|
|
@ -55,7 +55,7 @@ export default defineComponent({ |
|
|
|
vLoading: propTypes.bool.def(false), |
|
|
|
labelPosition: propTypes.string.def('left'), |
|
|
|
}, |
|
|
|
emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onEnter','hiddenFilterButton','changeDialogWidth'], |
|
|
|
emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onEnter','hiddenFilterButton','changeDialogWidth','onInput'], |
|
|
|
setup(props, { slots, expose, emit }) { |
|
|
|
// element form 实例 |
|
|
|
const elFormRef = ref<ComponentRef<typeof ElForm>>() |
|
|
@ -204,6 +204,9 @@ export default defineComponent({ |
|
|
|
const onBlur = (field, e) => { |
|
|
|
emit('onBlur', field, e) |
|
|
|
} |
|
|
|
const onInput = (field,value) => { |
|
|
|
emit('onInput', field,value) |
|
|
|
} |
|
|
|
// 渲染formItem |
|
|
|
const renderFormItem = (item: FormSchema) => { |
|
|
|
// 单独给只有options属性的组件做判断 |
|
|
@ -382,6 +385,7 @@ export default defineComponent({ |
|
|
|
style={item.componentProps?.style} |
|
|
|
onChange={(e)=>{onChange(item.field, e)}} |
|
|
|
onBlur={(e)=>{onBlur(item.field, e)}} |
|
|
|
onInput={(value)=>{onInput(item.field,value)}} |
|
|
|
{...(notRenderOptions.includes(item?.component as string) && |
|
|
|
item?.componentProps?.options |
|
|
|
? { options: item?.componentProps?.options || [] } |
|
|
|