From 1849fe6eef6821c8b783d747649ccebdc00a5130 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 19 Nov 2024 15:16:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9xtSelect=20=E7=9A=84?= =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/xtSelect/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/xtSelect/index.vue b/src/components/xtSelect/index.vue index ba10a0ef..cc7d1c3d 100644 --- a/src/components/xtSelect/index.vue +++ b/src/components/xtSelect/index.vue @@ -75,7 +75,7 @@ const props = defineProps({ edit: { type: Boolean, default: true }, hidePagination: { type: Boolean, default: false }, tableWidth: { type: Number, default: 600 }, - tableHeight: { type: Number, default: 400 }, + tableHeight: { type: Number, default: 300 }, apiObj: { type: Object, default: null }, params: { type: Object, default: () => {} }, label: { type: [String, Number, Array], default: "" }, @@ -126,7 +126,7 @@ onMounted(() => { selectLabel.value = selectedOption ? selectedOption[props.labelField] : ""; - } else { + } else if (props.obj) { selectLabel.value = props.obj[props.labelField]; } }