* zin: modify the prop of thinkresult widget.

This commit is contained in:
wangzemei
2024-05-30 15:28:11 +08:00
parent d79976f8c3
commit c5a45fc643
+3 -1
View File
@@ -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)))
);
}