import { defineAsyncComponent } from 'vue' import { formInputProps } from '@cip/components/cip-form-input/form-input-props' import { useFormInput, useElementFormEvent } from '@cip/components/hooks/form-input' import { ElButton } from 'element-plus' import './mobile.less' const CipFormItem = defineAsyncComponent(() => import('../../../cip-form-item')) export default { props: formInputProps, setup (props, context) { const { handleChange } = useElementFormEvent() const formInput = useFormInput(props, context) const { securityConfig, emitModelValue } = formInput const updateModelValue = (val, index) => { const data = props.modelValue data[index] = val emitModelValue(data) } const addItem = () => { const val = Array.isArray(props.modelValue) ? props.modelValue : [] val.push({}) handleChange(val) emitModelValue(val) } return () =>