From 24bdf793e9a8361050705f3b356e95d695737e9a Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 10 Mar 2025 17:37:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=AE=BD=E5=BA=A6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Tree.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/Tree.vue b/core/core-frontend/src/custom-component/v-query/Tree.vue index 1cca661431..2ec2908f6d 100644 --- a/core/core-frontend/src/custom-component/v-query/Tree.vue +++ b/core/core-frontend/src/custom-component/v-query/Tree.vue @@ -231,10 +231,10 @@ const fakeValue = '' const treeValue = ref() const getCustomWidth = () => { if (placeholder?.value?.placeholderShow) { - if (props.config.queryConditionWidth === undefined) { - return queryConditionWidth() + if (props.config.queryConditionWidth !== undefined) { + return props.config.queryConditionWidth } - return props.config.queryConditionWidth + return queryConditionWidth() } return 227 } @@ -258,7 +258,7 @@ const selectStyle = computed(() => { :filter-node-method="filterMethod" :showWholePath="showWholePath" collapse-tags-tooltip - key="multipleTree" + :key="'multipleTree' + getCustomWidth()" filterable :style="selectStyle" multiple @@ -273,7 +273,7 @@ const selectStyle = computed(() => { :placeholder="placeholderText" :render-after-expand="false" v-else-if="!multiple && !loading" - key="singleTree" + :key="'singleTree' + getCustomWidth()" :showWholePath="showWholePath" :style="selectStyle" filterable