mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-29 18:35:07 +08:00
chore: update 184
This commit is contained in:
@ -226,6 +226,11 @@ export default defineComponent({
|
||||
vModel={formModel.value[item.field]}
|
||||
{...(autoSetPlaceholder && setTextPlaceholder(item))}
|
||||
{...setComponentProps(item)}
|
||||
style={
|
||||
item?.component === 'Input'
|
||||
? { width: '189.5px', ...item.componentProps?.style }
|
||||
: { ...item.componentProps?.style }
|
||||
}
|
||||
{...(notRenderOptions.includes(item?.component as string) &&
|
||||
item?.componentProps?.options
|
||||
? { options: item?.componentProps?.options || [] }
|
||||
|
@ -11,7 +11,12 @@ export const useRenderCheckbox = () => {
|
||||
typeof defineComponent
|
||||
>
|
||||
return item?.componentProps?.options?.map((option) => {
|
||||
return <Com label={option[labelAlias || 'value']}>{option[valueAlias || 'label']}</Com>
|
||||
const { value, ...other } = option
|
||||
return (
|
||||
<Com label={option[labelAlias || 'value']} {...other}>
|
||||
{option[valueAlias || 'label']}
|
||||
</Com>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,12 @@ export const useRenderRadio = () => {
|
||||
typeof defineComponent
|
||||
>
|
||||
return item?.componentProps?.options?.map((option) => {
|
||||
return <Com label={option[labelAlias || 'value']}>{option[valueAlias || 'label']}</Com>
|
||||
const { value, ...other } = option
|
||||
return (
|
||||
<Com label={option[labelAlias || 'value']} {...other}>
|
||||
{option[valueAlias || 'label']}
|
||||
</Com>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user