wujingjing
2024-12-23 6d82ad4fb10f7015059b1b2cbcf72e8a949e83fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { buildProps } from 'element-plus/es/utils/vue/props/runtime';
import type { PropType } from 'vue';
import type { FormItemConfig } from '/@/components/form/yw-form';
 
export const searchFormProps = buildProps({
    /** @description 查询参数 */
    queryParams: {
        type: Object as PropType<Record<string, any>>,
        default: {},
    },
    /** @description 表单项配置 */
    formItems: {
        type: Array<FormItemConfig>,
        default: [],
    },
    /** @description 排序状态 */
    isDrag: {
        type: Boolean,
        default: false,
    },
} as const);
 
export type searchFormEmits = {
    (event: 'resetClick'): void;
    (event: 'queryClick'): void;
    (event: 'addClick'): void;
    (event: 'dragStatusChange'): void;
};