From 29546b71e7a69bb5c9ab54f0d57bdea1d1ae83ad Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 25 Jul 2025 13:37:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:xtSelect=E4=B8=ADcount=5Fcanhandover?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=A4=A7=E4=BA=8E=E9=9B=B6=E6=89=8D=E8=83=BD?= =?UTF-8?q?=E8=A2=AB=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/xtSelect/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/xtSelect/index.vue b/src/components/xtSelect/index.vue index 8b47e54d..c6cd0080 100644 --- a/src/components/xtSelect/index.vue +++ b/src/components/xtSelect/index.vue @@ -56,6 +56,7 @@ v-if="multiple" type="selection" width="40" + :selectable="selectable" :reserve-selection="true" > @@ -89,7 +90,7 @@ const props = defineProps({ }); const emit = defineEmits(["update:modelValue", "update:obj", "update:label", "change"]); - +const selectable = (row) => row.count_canhandover?row.count_canhandover>0:true; // 控制 popover 显示与隐藏的状态 const showPopover = ref(false); const inputRef = ref();