import { CascaderProps } from 'element-plus' type Ttype = | 'select' | 'input' | 'password' | 'dateRange' | 'select' | 'radio' | 'switch' | 'checkbox' | 'customCheckBox' | 'textarea' | 'cascader' | 'panel' | 'date' | 'datetime' | 'upload' | 'remoteSearch' export interface IFormItem { field: string type: Ttype label: string placeholder?: string options?: IOptions[] otherOptions?: IOptions[] rule?: any[] readonly?: boolean disabled?: boolean props?: CascaderProps opts?: any[] | Record allowCreate?: boolean filterable?: boolean format?: string valueFormat?: string colLayout?: Record autosize?: any maxlength?: number showWordLimit?: boolean disabledDate?: (val: Date) => boolean remoteMethod?: (val: any) => any formatter?: (val: any) => any // input text 的格式化 } export interface IOptions { value: string | number | boolean label: string }