import {defineComponent} from 'vue' import {Form} from 'ant-design-vue' import StdFormItem from '@/components/StdDataEntry/StdFormItem.vue' import './style.less' export default defineComponent({ props: ['dataList', 'dataSource', 'error', 'layout'], emits: ['update:dataSource'], setup(props, {slots}) { return () => { const template: any = [] props.dataList.forEach((v: any) => { if (v.edit.type) { template.push( {v.edit.type(v.edit, props.dataSource, v.dataIndex)} ) } }) if (slots.action) { template.push(
{slots.action()}
) } return
{template}
} } })