Skip to content

Commit

Permalink
fix(select): fix disabled status
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Sep 19, 2024
1 parent e2f4f01 commit 0c3358f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/select/hooks/useSelectOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const useSelectOptions = (props: TdSelectProps, keys: Ref<KeysType>, inpu

const options = computed(() => {
let dynamicIndex = 0;

// 统一处理 keys,处理通用数据
const innerOptions: UniOption[] =
props.options?.map((option) => {
Expand All @@ -29,7 +28,7 @@ export const useSelectOptions = (props: TdSelectProps, keys: Ref<KeysType>, inpu
index: dynamicIndex,
label: get(option, label),
value: get(option, value),
disabled: get(option, disabled),
disabled: get(option, disabled) || false,
};
dynamicIndex++;
return res;
Expand Down

0 comments on commit 0c3358f

Please sign in to comment.