export interface EmopFormItemDataType { /** * 控件类型 */ type: 'str' | 'lov' | 'bool' | 'date' | 'num' | 'radio' | 'textarea' | 'password' | 'button'; /** * 控件唯一标识符 */ key: string; /** * 控件值 */ value: any; /** * 当数据为空时显示的文本 */ placeholder?: string; /** * 选项值,当type为lov或radio时该配置有效 */ options?: { key: string, val: string; }[]; /** * 最小值,当type为num时该配置有效 */ min?: number; /** * 最大值,当type为num时该配置有效 */ max?: number; /** * 步进值,当type为num时该配置有效 */ step?: number; /** * 验证错误时提示的文本 */ errorTips?: string; /** * 校验状态 */ validateStatus?: string; /** * 是否禁止输入 */ disabled?: boolean; /** * 是否支持手动写入,当type为lov时该配置有效 */ tags?: boolean; /** * 是否支持多选,当type为lov时该配置有效 */ multiple?: boolean; /** * 是否可见 */ visible?: boolean; /** * 是否启用 */ enable?: boolean; /** * 是否允许清除 */ allowClear?: boolean; /** * 是否必填 */ required?: boolean; /** * 当输入框修改内容后的回调函数 */ changeFn?: Function; /** * 文本域的默认行数 */ row?: number; /** * type为button时的配置 */ btn?: { fn?: Function; alias: string; type?: 'primary' | 'dashed' | 'link' | 'text'; danger?: boolean; }; }