From c2463c02a17f92df55ec77ed2da3fb724290c072 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 20 十月 2025 17:34:30 +0800 Subject: [PATCH] fix: bug --- packages/components/src/Input/ChooseInputWithPicker.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/packages/components/src/Input/ChooseInputWithPicker.vue b/packages/components/src/Input/ChooseInputWithPicker.vue index 1d07b64..90c72c8 100644 --- a/packages/components/src/Input/ChooseInputWithPicker.vue +++ b/packages/components/src/Input/ChooseInputWithPicker.vue @@ -18,11 +18,13 @@ enumValueKey?: string; valueEnum?: ValueEnum; modelValue: string | number; + disabled?: boolean; }; const props = withDefaults(defineProps<Props>(), { enumLabelKey: 'label', enumValueKey: 'value', + disabled: false, }); const emit = defineEmits<{ @@ -38,6 +40,9 @@ ); function handleOpen() { + if (props.disabled) { + return; + } const _modelValue = [props.modelValue]; Portal.add((key) => { return h( -- Gitblit v1.9.1