@kengic/vue 0.21.1-beta.1 → 0.21.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +4675 -4334
  3. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +5 -4
  4. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -2
  5. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
  6. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +5 -4
  7. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +5 -4
  8. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +5 -4
  9. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
  10. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -2
  11. package/dist/src/components/KgButton/index.hooks.d.ts +70 -22
  12. package/dist/src/components/KgButton/index.store.d.ts +56 -18
  13. package/dist/src/components/KgModal/KgModal.d.ts +424 -86
  14. package/dist/src/components/KgModal/KgModal.hooks.d.ts +33 -0
  15. package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +74 -0
  16. package/dist/src/components/KgModal/index.d.ts +1 -2
  17. package/dist/src/components/KgModal/index.vm.d.ts +8 -194
  18. package/dist/src/components/KgResizable/KgResizable.d.ts +8 -8
  19. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +9 -3
  20. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -10
  21. package/dist/src/components/KgSearch/index.hooks.d.ts +132 -20
  22. package/dist/src/components/KgSearch/index.store.d.ts +206 -31
  23. package/dist/src/components/KgSubmit/KgSubmit.d.ts +7 -7
  24. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +5 -3
  25. package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts +7 -0
  26. package/dist/src/components/KgSubmit/components/{KgSubmit.Header.VarSubmitConfig.d.ts → KgSubmit.VarSubmitConfig.Modal.d.ts} +3 -2
  27. package/dist/src/components/KgSubmit/index.hooks.d.ts +15 -6
  28. package/dist/src/components/KgSubmit/index.store.d.ts +10 -0
  29. package/dist/src/components/KgSubmit/index.vm.d.ts +53 -7
  30. package/dist/src/components/KgTable/index.vm.d.ts +3 -1
  31. package/dist/src/config/index.hooks.d.ts +6 -29
  32. package/dist/src/config/index.store.d.ts +6 -4
  33. package/dist/src/consts/i18n/en.d.ts +1 -1
  34. package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
  35. package/dist/src/helpers/tsx.helper.d.ts +16 -6
  36. package/dist/src/utils/kg.util.d.ts +2 -1
  37. package/package.json +93 -93
  38. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +0 -41
  39. package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +0 -82
@@ -0,0 +1,33 @@
1
+ import { Ref } from 'vue';
2
+ import { IKgModalProps } from './KgModal';
3
+ /**
4
+ * 拖拽改变位置.
5
+ *
6
+ * @param param.getProps 组件参数.
7
+ * @param param.domRef 页面特殊元素对象.
8
+ */
9
+ export declare function useDragToMove(param: {
10
+ getProps: Ref<IKgModalProps>;
11
+ domRef: Ref<HTMLDivElement | null>;
12
+ }): void;
13
+ /**
14
+ * 拖拽改变大小.
15
+ *
16
+ * @param param.getProps 组件参数.
17
+ * @param param.domRef 页面特殊元素对象.
18
+ */
19
+ export declare function useDragToResize(param: {
20
+ getProps: Ref<IKgModalProps>;
21
+ domRef: Ref<HTMLDivElement | null>;
22
+ }): {
23
+ /**
24
+ * 鼠标按下事件.
25
+ *
26
+ * @param param.event 鼠标事件对象.
27
+ * @param param.handleType 拖拽位置.
28
+ */
29
+ onMousedown: (param: {
30
+ event: MouseEvent;
31
+ handleType: "top" | "left" | "right" | "bottom" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
32
+ }) => void;
33
+ };
@@ -0,0 +1,74 @@
1
+ import { PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /**
4
+ * 是否默认全屏.
5
+ */
6
+ kgIsDefaultFullscreen: {
7
+ type: PropType<boolean>;
8
+ default: boolean;
9
+ };
10
+ /**
11
+ * 是否显示关闭按钮.
12
+ */
13
+ kgIsShowCloseButton: {
14
+ type: PropType<boolean>;
15
+ default: boolean;
16
+ };
17
+ /**
18
+ * 是否显示全屏按钮.
19
+ */
20
+ kgIsShowFullscreenButton: {
21
+ type: PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ };
25
+ declare const _default: import("vue").DefineComponent<{
26
+ /**
27
+ * 是否默认全屏.
28
+ */
29
+ kgIsDefaultFullscreen: {
30
+ type: PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ /**
34
+ * 是否显示关闭按钮.
35
+ */
36
+ kgIsShowCloseButton: {
37
+ type: PropType<boolean>;
38
+ default: boolean;
39
+ };
40
+ /**
41
+ * 是否显示全屏按钮.
42
+ */
43
+ kgIsShowFullscreenButton: {
44
+ type: PropType<boolean>;
45
+ default: boolean;
46
+ };
47
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ /**
49
+ * 是否默认全屏.
50
+ */
51
+ kgIsDefaultFullscreen: {
52
+ type: PropType<boolean>;
53
+ default: boolean;
54
+ };
55
+ /**
56
+ * 是否显示关闭按钮.
57
+ */
58
+ kgIsShowCloseButton: {
59
+ type: PropType<boolean>;
60
+ default: boolean;
61
+ };
62
+ /**
63
+ * 是否显示全屏按钮.
64
+ */
65
+ kgIsShowFullscreenButton: {
66
+ type: PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ }>>, {
70
+ kgIsDefaultFullscreen: boolean;
71
+ kgIsShowCloseButton: boolean;
72
+ kgIsShowFullscreenButton: boolean;
73
+ }>;
74
+ export default _default;
@@ -1,2 +1 @@
1
- export { default as KgModal } from './KgModal';
2
- export { type IKgModalProps } from './index.vm';
1
+ export { default as KgModal, type IKgModalProps } from './KgModal';
@@ -1,194 +1,8 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const getProps: () => {
3
- /** 是否显示全屏按钮. */
4
- kgShowFullscreenButton: {
5
- type: PropType<boolean>;
6
- default: boolean;
7
- };
8
- /** 是否显示取消按钮. */
9
- kgShowCancelButton: {
10
- type: PropType<boolean>;
11
- default: boolean;
12
- };
13
- /** 是否显示确定按钮. */
14
- kgShowOkButton: {
15
- type: PropType<boolean>;
16
- default: boolean;
17
- };
18
- /** 高度是否撑满屏幕. */
19
- kgFullHeight: {
20
- type: PropType<boolean>;
21
- default: boolean;
22
- };
23
- prefixCls: StringConstructor;
24
- visible: {
25
- type: BooleanConstructor;
26
- default: undefined;
27
- };
28
- confirmLoading: {
29
- type: BooleanConstructor;
30
- default: undefined;
31
- };
32
- title: PropType<any>;
33
- closable: {
34
- type: BooleanConstructor;
35
- default: undefined;
36
- };
37
- closeIcon: PropType<any>;
38
- onOk: PropType<(e: MouseEvent) => void>;
39
- onCancel: PropType<(e: MouseEvent) => void>;
40
- 'onUpdate:visible': PropType<(visible: boolean) => void>;
41
- onChange: PropType<(visible: boolean) => void>;
42
- afterClose: PropType<() => void>;
43
- centered: {
44
- type: BooleanConstructor;
45
- default: undefined;
46
- };
47
- width: (StringConstructor | NumberConstructor)[];
48
- footer: PropType<any>;
49
- okText: PropType<any>;
50
- okType: PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
51
- cancelText: PropType<any>;
52
- icon: PropType<any>;
53
- maskClosable: {
54
- type: BooleanConstructor;
55
- default: undefined;
56
- };
57
- forceRender: {
58
- type: BooleanConstructor;
59
- default: undefined;
60
- };
61
- okButtonProps: PropType<Partial<ExtractPropTypes<{
62
- prefixCls: StringConstructor;
63
- type: PropType<import("ant-design-vue/lib/button").ButtonType>;
64
- htmlType: {
65
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
66
- default: string;
67
- };
68
- shape: {
69
- type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
70
- };
71
- size: {
72
- type: PropType<import("ant-design-vue/es/button").ButtonSize>;
73
- };
74
- loading: {
75
- type: PropType<boolean | {
76
- delay?: number | undefined;
77
- }>;
78
- default: () => boolean | {
79
- delay?: number | undefined;
80
- };
81
- };
82
- disabled: {
83
- type: BooleanConstructor;
84
- default: undefined;
85
- };
86
- ghost: {
87
- type: BooleanConstructor;
88
- default: undefined;
89
- };
90
- block: {
91
- type: BooleanConstructor;
92
- default: undefined;
93
- };
94
- danger: {
95
- type: BooleanConstructor;
96
- default: undefined;
97
- };
98
- icon: PropType<any>;
99
- href: StringConstructor;
100
- target: StringConstructor;
101
- title: StringConstructor;
102
- onClick: {
103
- type: PropType<(event: MouseEvent) => void>;
104
- };
105
- onMousedown: {
106
- type: PropType<(event: MouseEvent) => void>;
107
- };
108
- }>>>;
109
- cancelButtonProps: PropType<Partial<ExtractPropTypes<{
110
- prefixCls: StringConstructor;
111
- type: PropType<import("ant-design-vue/lib/button").ButtonType>;
112
- htmlType: {
113
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
114
- default: string;
115
- };
116
- shape: {
117
- type: PropType<import("ant-design-vue/lib/button").ButtonShape>;
118
- };
119
- size: {
120
- type: PropType<import("ant-design-vue/es/button").ButtonSize>;
121
- };
122
- loading: {
123
- type: PropType<boolean | {
124
- delay?: number | undefined;
125
- }>;
126
- default: () => boolean | {
127
- delay?: number | undefined;
128
- };
129
- };
130
- disabled: {
131
- type: BooleanConstructor;
132
- default: undefined;
133
- };
134
- ghost: {
135
- type: BooleanConstructor;
136
- default: undefined;
137
- };
138
- block: {
139
- type: BooleanConstructor;
140
- default: undefined;
141
- };
142
- danger: {
143
- type: BooleanConstructor;
144
- default: undefined;
145
- };
146
- icon: PropType<any>;
147
- href: StringConstructor;
148
- target: StringConstructor;
149
- title: StringConstructor;
150
- onClick: {
151
- type: PropType<(event: MouseEvent) => void>;
152
- };
153
- onMousedown: {
154
- type: PropType<(event: MouseEvent) => void>;
155
- };
156
- }>>>;
157
- destroyOnClose: {
158
- type: BooleanConstructor;
159
- default: undefined;
160
- };
161
- wrapClassName: StringConstructor;
162
- maskTransitionName: StringConstructor;
163
- transitionName: StringConstructor;
164
- getContainer: {
165
- type: PropType<string | false | HTMLElement | (() => HTMLElement)>;
166
- default: undefined;
167
- };
168
- zIndex: NumberConstructor;
169
- bodyStyle: {
170
- type: PropType<import("vue").CSSProperties>;
171
- default: import("vue").CSSProperties;
172
- };
173
- maskStyle: {
174
- type: PropType<import("vue").CSSProperties>;
175
- default: import("vue").CSSProperties;
176
- };
177
- mask: {
178
- type: BooleanConstructor;
179
- default: undefined;
180
- };
181
- keyboard: {
182
- type: BooleanConstructor;
183
- default: undefined;
184
- };
185
- wrapProps: ObjectConstructor;
186
- focusTriggerAfterClose: {
187
- type: BooleanConstructor;
188
- default: undefined;
189
- };
190
- modalRender: PropType<(arg: {
191
- originVNode: import("ant-design-vue/es/_util/type").VueNode;
192
- }) => import("ant-design-vue/es/_util/type").VueNode>;
193
- };
194
- export declare type IKgModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
1
+ /**
2
+ * 弹窗边框宽度.
3
+ */
4
+ export declare const KG_MODAL_BORDER_WIDTH = 1;
5
+ /**
6
+ * 弹窗滚动条的宽度。
7
+ */
8
+ export declare const KG_MODAL_SCROLL_WIDTH = 17;
@@ -3,7 +3,7 @@ import './KgResizable.less';
3
3
  export declare const getProps: () => {
4
4
  /** 拖拽条的位置. */
5
5
  kgType: {
6
- type: PropType<"left" | "top" | "right" | "bottom">;
6
+ type: PropType<"top" | "left" | "right" | "bottom">;
7
7
  default: string;
8
8
  };
9
9
  /** 是否禁用. */
@@ -47,7 +47,7 @@ export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<type
47
47
  declare const _default: import("vue").DefineComponent<{
48
48
  /** 拖拽条的位置. */
49
49
  kgType: {
50
- type: PropType<"left" | "top" | "right" | "bottom">;
50
+ type: PropType<"top" | "left" | "right" | "bottom">;
51
51
  default: string;
52
52
  };
53
53
  /** 是否禁用. */
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
89
89
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
90
90
  /** 拖拽条的位置. */
91
91
  kgType: {
92
- type: PropType<"left" | "top" | "right" | "bottom">;
92
+ type: PropType<"top" | "left" | "right" | "bottom">;
93
93
  default: string;
94
94
  };
95
95
  /** 是否禁用. */
@@ -132,12 +132,12 @@ declare const _default: import("vue").DefineComponent<{
132
132
  "onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
133
133
  "onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
134
134
  }, {
135
- kgType: "left" | "top" | "right" | "bottom";
136
- kgWidth: number;
137
- kgMinWidth: number;
135
+ kgMaxHeight: number;
138
136
  kgMaxWidth: number;
139
- kgHeight: number;
140
137
  kgMinHeight: number;
141
- kgMaxHeight: number;
138
+ kgMinWidth: number;
139
+ kgType: "top" | "left" | "right" | "bottom";
140
+ kgWidth: number;
141
+ kgHeight: number;
142
142
  }>;
143
143
  export default _default;
@@ -1,19 +1,25 @@
1
1
  import { PropType } from 'vue';
2
2
  export declare const getProps: () => {
3
- /** 主页面的页面标识. */
3
+ /**
4
+ * 主页面的页面标识.
5
+ */
4
6
  hostFormID: {
5
7
  type: PropType<string>;
6
8
  required: boolean;
7
9
  };
8
10
  };
9
11
  declare const _default: import("vue").DefineComponent<{
10
- /** 主页面的页面标识. */
12
+ /**
13
+ * 主页面的页面标识.
14
+ */
11
15
  hostFormID: {
12
16
  type: PropType<string>;
13
17
  required: boolean;
14
18
  };
15
19
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
- /** 主页面的页面标识. */
20
+ /**
21
+ * 主页面的页面标识.
22
+ */
17
23
  hostFormID: {
18
24
  type: PropType<string>;
19
25
  required: boolean;
@@ -1,31 +1,37 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgSearch.ConfigModal.less';
3
3
  export declare const getProps: () => {
4
- visible: PropType<boolean>;
5
- 'onUpdate:visible': PropType<(value: boolean) => void>;
6
- /** 主页面的页面标识. */
4
+ /**
5
+ * 主页面的页面标识.
6
+ */
7
7
  hostFormID: {
8
8
  type: PropType<string>;
9
9
  required: boolean;
10
10
  };
11
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
12
+ visible: PropType<boolean>;
11
13
  };
12
- export declare type IKgSearchConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
14
+ export declare type KgSearchConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
13
15
  declare const _default: import("vue").DefineComponent<{
14
- visible: PropType<boolean>;
15
- 'onUpdate:visible': PropType<(value: boolean) => void>;
16
- /** 主页面的页面标识. */
16
+ /**
17
+ * 主页面的页面标识.
18
+ */
17
19
  hostFormID: {
18
20
  type: PropType<string>;
19
21
  required: boolean;
20
22
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
22
- visible: PropType<boolean>;
23
23
  'onUpdate:visible': PropType<(value: boolean) => void>;
24
- /** 主页面的页面标识. */
24
+ visible: PropType<boolean>;
25
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
+ /**
27
+ * 主页面的页面标识.
28
+ */
25
29
  hostFormID: {
26
30
  type: PropType<string>;
27
31
  required: boolean;
28
32
  };
33
+ 'onUpdate:visible': PropType<(value: boolean) => void>;
34
+ visible: PropType<boolean>;
29
35
  }>> & {
30
36
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
31
37
  }, {}>;
@@ -1,41 +1,153 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { IRemoveEventListenerHandler } from '../../consts';
3
1
  import { IKgTableRequestParams } from '../KgTable';
4
- import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
5
- export declare type IUseKgSearch = {
2
+ import { IKgSearchEvent, IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb } from './index.store';
3
+ /**
4
+ * @param formID 界面标识.
5
+ */
6
+ export declare function useKgSearch(formID?: string | null): {
6
7
  formID: string;
7
8
  /** 状态数据. */
8
- store: IKgSearchStore;
9
- /** 是否就绪: 查询字段初始完成, 组件渲染完成. */
10
- isReady: ComputedRef<ReturnType<IKgSearchStore['getIsReady']>>;
9
+ store: import("pinia").Store<"KgSearch", {
10
+ isReadyMap: Map<string, boolean>;
11
+ modelMap: Map<string, Record<string, any>>;
12
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
13
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
14
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
15
+ operatorModelMap: Map<string, Record<string, string>>;
16
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
17
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
18
+ }, {
19
+ /** 表单数据对象. */
20
+ getIsReady(state: {
21
+ isReadyMap: Map<string, boolean>;
22
+ modelMap: Map<string, Record<string, any>>;
23
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
24
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
25
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
26
+ operatorModelMap: Map<string, Record<string, string>>;
27
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
28
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
29
+ } & import("pinia").PiniaCustomStateProperties<{
30
+ isReadyMap: Map<string, boolean>;
31
+ modelMap: Map<string, Record<string, any>>;
32
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
33
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
34
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
35
+ operatorModelMap: Map<string, Record<string, string>>;
36
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
37
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
38
+ }>): (formID: string | null | undefined) => boolean;
39
+ getModel(state: {
40
+ isReadyMap: Map<string, boolean>;
41
+ modelMap: Map<string, Record<string, any>>;
42
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
43
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
44
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
45
+ operatorModelMap: Map<string, Record<string, string>>;
46
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
47
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
48
+ } & import("pinia").PiniaCustomStateProperties<{
49
+ isReadyMap: Map<string, boolean>;
50
+ modelMap: Map<string, Record<string, any>>;
51
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
52
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
53
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
54
+ operatorModelMap: Map<string, Record<string, string>>;
55
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
56
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
57
+ }>): (formID: string | null | undefined) => Record<string, any> | null;
58
+ getOperatorModel(state: {
59
+ isReadyMap: Map<string, boolean>;
60
+ modelMap: Map<string, Record<string, any>>;
61
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
62
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
63
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
64
+ operatorModelMap: Map<string, Record<string, string>>;
65
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
66
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
67
+ } & import("pinia").PiniaCustomStateProperties<{
68
+ isReadyMap: Map<string, boolean>;
69
+ modelMap: Map<string, Record<string, any>>;
70
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
71
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
72
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
73
+ operatorModelMap: Map<string, Record<string, string>>;
74
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
75
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
76
+ }>): (formID: string | null | undefined) => Record<string, any> | null;
77
+ getSearchFn(state: {
78
+ isReadyMap: Map<string, boolean>;
79
+ modelMap: Map<string, Record<string, any>>;
80
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
81
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
82
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
83
+ operatorModelMap: Map<string, Record<string, string>>;
84
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
85
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
86
+ } & import("pinia").PiniaCustomStateProperties<{
87
+ isReadyMap: Map<string, boolean>;
88
+ modelMap: Map<string, Record<string, any>>;
89
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
90
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
91
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
92
+ operatorModelMap: Map<string, Record<string, string>>;
93
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
94
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
95
+ }>): (formID: string | null | undefined) => import("./index.store").IKgSearchSearchFn | null;
96
+ getResetFn(state: {
97
+ isReadyMap: Map<string, boolean>;
98
+ modelMap: Map<string, Record<string, any>>;
99
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
100
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
101
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
102
+ operatorModelMap: Map<string, Record<string, string>>;
103
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
104
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
105
+ } & import("pinia").PiniaCustomStateProperties<{
106
+ isReadyMap: Map<string, boolean>;
107
+ modelMap: Map<string, Record<string, any>>;
108
+ onReadyListenersMap: Map<string, IKgSearchReadyCb[]>;
109
+ onResetListenersMap: Map<string, IKgSearchResetCb[]>;
110
+ onSearchListenersMap: Map<string, IKgSearchSearchCb[]>;
111
+ operatorModelMap: Map<string, Record<string, string>>;
112
+ resetFnMap: Map<string, import("./index.store").IKgSearchResetFn>;
113
+ searchFnMap: Map<string, import("./index.store").IKgSearchSearchFn>;
114
+ }>): (formID: string | null | undefined) => import("./index.store").IKgSearchResetFn | null;
115
+ }, {
116
+ dispose(formID: string | null | undefined): void;
117
+ addEventListener(formID: string, event: IKgSearchEvent, cb: import("./index.store").IKgSearchCb): void;
118
+ removeEventListener(formID: string, event: IKgSearchEvent, cb?: import("./index.store").IKgSearchCb | undefined): void;
119
+ emit(formID: string, event: IKgSearchEvent, param: IKgTableRequestParams): Promise<boolean>;
120
+ setIsReady(formID: string | null | undefined, ready?: boolean | undefined): void;
121
+ setModel(formID: string | null | undefined, model?: Record<string, any> | null | undefined): void;
122
+ setOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null | undefined): void;
123
+ patchModel(formID: string | null | undefined, properties?: Record<string, any> | null | undefined): Promise<void>;
124
+ patchOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null | undefined): Promise<void>;
125
+ setSearchFn(formID: string | null | undefined, fn?: import("./index.store").IKgSearchSearchFn | null | undefined): void;
126
+ setResetFn(formID: string | null | undefined, fn?: import("./index.store").IKgSearchResetFn | null | undefined): void;
127
+ }>;
128
+ isReady: import("vue").ComputedRef<boolean>;
11
129
  /** 表单数据对象. */
12
- model: Ref<ReturnType<IKgSearchStore['getModel']>>;
130
+ model: import("vue").ComputedRef<Record<string, any> | null>;
13
131
  /** 高级查询的操作符表单数据对象. */
14
- operatorModel: ComputedRef<ReturnType<IKgSearchStore['getOperatorModel']>>;
15
- /** 查询. */
16
- search(param?: boolean | IKgTableRequestParams): void;
17
- /** 重置. */
18
- reset(): void;
132
+ operatorModel: import("vue").ComputedRef<Record<string, any> | null>;
133
+ search: (args?: boolean | IKgTableRequestParams) => void;
134
+ reset: () => void | undefined;
19
135
  /**
20
136
  * 事件: ready, 查询字段初始完成, 组件渲染完成.
21
137
  * @param cb 回调函数.
22
138
  * @param once 是否只会触发一次. 默认为 undefined.
23
139
  */
24
- onReady(cb: IKgSearchReadyCb, once?: boolean): IRemoveEventListenerHandler;
140
+ onReady: (cb: IKgSearchReadyCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
25
141
  /**
26
142
  * 事件: search, 点击查询按钮, 并且表单验证通过.
27
143
  * @param cb 回调函数.
28
144
  * @param once 是否只会触发一次. 默认为 undefined.
29
145
  */
30
- onSearch(cb: IKgSearchSearchCb, once?: boolean): IRemoveEventListenerHandler;
146
+ onSearch: (cb: IKgSearchSearchCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
31
147
  /**
32
148
  * 事件: reset, 点击重置按钮.
33
149
  * @param cb 回调函数.
34
150
  * @param once 是否只会触发一次. 默认为 undefined.
35
151
  */
36
- onReset(cb: IKgSearchResetCb, once?: boolean): IRemoveEventListenerHandler;
152
+ onReset: (cb: IKgSearchResetCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
37
153
  };
38
- /**
39
- * @param formID 界面标识.
40
- */
41
- export declare function useKgSearch(formID?: string | null): IUseKgSearch;