import { PlusColumn, FieldValues, Mutable } from 'haotai-ui/es/types'; import { PlusFormProps } from 'haotai-ui/es/components'; import { RowProps, ColProps } from 'element-plus'; export type PlusSearchSelfProps = { modelValue?: FieldValues; defaultValues?: FieldValues; columns?: PlusColumn[]; hasFooter?: boolean; hasReset?: boolean; hasUnfold?: boolean; searchText?: string; resetText?: string; retractText?: string; expandText?: string; searchLoading?: boolean; inline?: boolean; showNumber?: number; labelPosition?: 'left' | 'right' | 'top'; rowProps?: Partial>; colProps?: Partial>; /** * 搜索是否需要校验 ,默认不需要校验表单 * @variation v0.1.15 * @default false */ needValidate?: boolean; /** * @desc 是否开启多层级数据双向绑定 * @version ht-v0.0.17 */ multiLevelModel?: boolean; }; export type PlusSearchProps = PlusSearchSelfProps & PlusFormProps; export interface PlusSearchEmits { (e: 'update:modelValue', values: FieldValues): void; (e: 'search', values: FieldValues): void; (e: 'change', values: FieldValues, column: PlusColumn): void; (e: 'reset', values: FieldValues): void; (e: 'collapse', isShowUnfold: boolean): void; }