fix: error

This commit is contained in:
xingyu4j
2022-11-08 10:33:14 +08:00
parent 84cb1bd4db
commit 3a7f309866
4 changed files with 129 additions and 152 deletions

View File

@ -11,7 +11,7 @@ export const useRenderCheckbox = () => {
typeof defineComponent
>
return item?.componentProps?.options?.map((option) => {
const { value, ...other } = option
const { ...other } = option
return (
<Com label={option[labelAlias || 'value']} {...other}>
{option[valueAlias || 'label']}

View File

@ -11,7 +11,7 @@ export const useRenderRadio = () => {
typeof defineComponent
>
return item?.componentProps?.options?.map((option) => {
const { value, ...other } = option
const { ...other } = option
return (
<Com label={option[labelAlias || 'value']} {...other}>
{option[valueAlias || 'label']}