表单组件代码
import {
h, computed, ref } from 'vue'
import type {
PropType } from 'vue'
import {
Form, Input, Radio, FormItem, Checkbox } from '@arco-design/web-vue'
type RestrictKey<T, K extends keyof any> = {
[P in keyof T]: P extends K ? never : T[P];
};
export type FormPropsType =RestrictKey<{
model?: string;
items: {
[key: string]: {
type: 'radio' | 'input' | 'checkbox' | 'slot'
config: RestrictKey<{
[key: string]: any;
field?: string;
},'field'>
slotFormConfig: {
modelValue: any
[key: string]: any
}
}
}
[key