* zin: modify the prop of thinkresult widget.
This commit is contained in:
@@ -7,6 +7,8 @@ class thinkResult extends wg
|
||||
protected static array $defineProps = array(
|
||||
'wizard: object', // 模型数据
|
||||
'mode?: string="view"', // 模型展示模式 preview|view
|
||||
'blocks: array', // 模型节点
|
||||
'blockCount: int' // 模型区块数量
|
||||
);
|
||||
|
||||
protected function buildModel(): wg|node
|
||||
@@ -22,7 +24,7 @@ class thinkResult extends wg
|
||||
(
|
||||
setClass('think-result-content col items-center px-7 py-6'),
|
||||
div(setClass('w-full h-10 text-center text-md py-2.5 ellipsis overflow-hidden whitespace-nowrap'), $wizard->introduction),
|
||||
div(setClass('my-4'), setStyle('min-height', '200px'), $this->buildModel()),
|
||||
div(setClass('w-full my-4'), setStyle('min-height', '200px'), $this->buildModel()),
|
||||
div(setClass('w-full text-center text-md py-2.5'), html(htmlspecialchars_decode($wizard->suggestion)))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user