chore: 更新依赖

This commit is contained in:
kailong321200875
2024-03-21 10:33:55 +08:00
parent df5b7166b4
commit 467840bc4d
5 changed files with 42 additions and 60 deletions

View File

@@ -13,15 +13,14 @@ export const useRenderCheckbox = () => {
item.component === ComponentNameEnum.CHECKBOX_GROUP ? ElCheckbox : ElCheckboxButton
) as ReturnType<typeof defineComponent>
return componentProps?.options?.map((option) => {
const { value, ...other } = option
const { ...other } = option
return (
<Com
{...other}
disabled={option[disabledAlias || 'disabled']}
label={option[valueAlias || 'value']}
>
{option[labelAlias || 'label']}
</Com>
label={option[labelAlias || 'label']}
value={option[valueAlias || 'value']}
></Com>
)
})
}

View File

@@ -13,15 +13,14 @@ export const useRenderRadio = () => {
item.component === ComponentNameEnum.RADIO_GROUP ? ElRadio : ElRadioButton
) as ReturnType<typeof defineComponent>
return componentProps?.options?.map((option) => {
const { value, ...other } = option
const { ...other } = option
return (
<Com
{...other}
disabled={option[disabledAlias || 'disabled']}
label={option[valueAlias || 'value']}
>
{option[labelAlias || 'label']}
</Com>
label={option[labelAlias || 'label']}
value={option[valueAlias || 'value']}
></Com>
)
})
}