@pusdn/pgz-comp-elep
Version:
PGZ组件库,Vue3 中基于Element-plus二次封装基础组件文档
27 lines (26 loc) • 800 B
TypeScript
import type { FormProps } from 'element-plus';
import type { Mutable } from 'element-plus/es/utils';
export interface FormOpts {
formData: Record<string, any>;
rules?: Record<string, any>;
fieldList: Array<any>;
operatorList?: Array<{
label: string;
fun: Function;
bind?: Record<string, any>;
isHideBtn?: boolean;
render?: Function;
}>;
listTypeInfo?: Record<string, any[]>;
labelWidth?: string;
btnSlotName?: string;
labelPosition?: "left" | "right" | "top";
}
export interface TFormSelfProps {
className?: string;
formOpts: FormOpts;
widthSize?: 1 | 2 | 3 | 4 | 5 | 6;
labelPosition?: "left" | "right" | "top";
isTrim?: boolean;
}
export type TFormProps = TFormSelfProps & Partial<Mutable<FormProps>>;