From 3f7e4f5dc89127eeab326fbc4b31a545f515a376 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 20 十月 2025 15:24:15 +0800 Subject: [PATCH] fix: bug --- packages/components/src/Input/ChooseInputWithPicker.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/packages/components/src/Input/ChooseInputWithPicker.vue b/packages/components/src/Input/ChooseInputWithPicker.vue index e89cb4e..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: 'code', + 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