From 0c3358fd5f19008aff63ad6ae7d4969d269109c9 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 19 Sep 2024 17:46:52 +0800 Subject: [PATCH] fix(select): fix disabled status --- src/select/hooks/useSelectOptions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/select/hooks/useSelectOptions.ts b/src/select/hooks/useSelectOptions.ts index b4d9d8571a..721d08a9a0 100644 --- a/src/select/hooks/useSelectOptions.ts +++ b/src/select/hooks/useSelectOptions.ts @@ -18,7 +18,6 @@ export const useSelectOptions = (props: TdSelectProps, keys: Ref, inpu const options = computed(() => { let dynamicIndex = 0; - // 统一处理 keys,处理通用数据 const innerOptions: UniOption[] = props.options?.map((option) => { @@ -29,7 +28,7 @@ export const useSelectOptions = (props: TdSelectProps, keys: Ref, inpu index: dynamicIndex, label: get(option, label), value: get(option, value), - disabled: get(option, disabled), + disabled: get(option, disabled) || false, }; dynamicIndex++; return res;