From 10ab6a46af767c69c290e9baf07079910e282a4e Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 16 十二月 2024 17:31:44 +0800 Subject: [PATCH] 发布、调整输入框大小 --- src/components/vue-flow/ui/nodes/OutputNode.vue | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/components/vue-flow/ui/nodes/OutputNode.vue b/src/components/vue-flow/ui/nodes/OutputNode.vue index 052ed66..3a1e21c 100644 --- a/src/components/vue-flow/ui/nodes/OutputNode.vue +++ b/src/components/vue-flow/ui/nodes/OutputNode.vue @@ -1,13 +1,25 @@ <template> - <NodeBasicLayout v-model:title="data.title" :type="NodeType.Output" :description="VueFlowHelper.getConfigValue(data, 'description', '鍙悜鐢ㄦ埛鍙戦�佹秷鎭紝骞朵笖鏀寔杩涜鏇翠赴瀵岀殑浜や簰锛屼緥濡傝姹傜敤鎴锋壒鍑嗚繘琛屾煇椤规晱鎰熸搷浣溿�佸厑璁哥敤鎴峰湪妯″瀷杈撳嚭鍐呭鐨勫熀纭�涓婄洿鎺ヤ慨鏀瑰苟鎻愪氦銆�')"> + <NodeBasicLayout + :maxWidth="520" + v-model:title="data.title" + :type="NodeType.Output" + :description=" + VueFlowHelper.getConfigValue( + data, + 'description', + '鍙悜鐢ㄦ埛鍙戦�佹秷鎭紝骞朵笖鏀寔杩涜鏇翠赴瀵岀殑浜や簰锛屼緥濡傝姹傜敤鎴锋壒鍑嗚繘琛屾煇椤规晱鎰熸搷浣溿�佸厑璁哥敤鎴峰湪妯″瀷杈撳嚭鍐呭鐨勫熀纭�涓婄洿鎺ヤ慨鏀瑰苟鎻愪氦銆�' + ) + " + > <Handle :id="targetHandleId" type="target" :position="Position.Left" /> <FieldLayout level="2" :title="VueFlowHelper.getParams(outputParams, 'output_msg').label"> <el-input v-model="VueFlowHelper.getParams(outputParams, 'output_msg').value.msg" type="textarea" - :rows="4" + :autosize="{ minRows: 4, maxRows: 6 }" :placeholder="VueFlowHelper.getParams(outputParams, 'output_msg').placeholder" autocomplete="off" + class="nowheel" > </el-input> </FieldLayout> @@ -18,7 +30,9 @@ <el-input v-model="VueFlowHelper.getParams(outputParams, 'output_result').value.value" type="textarea" - :rows="4" + class="nowheel" + + :autosize="{ minRows: 4, maxRows: 6 }" v-if="VueFlowHelper.getParams(outputParams, 'output_result').value.type === InteractionType.Input" > </el-input> -- Gitblit v1.9.3