@kengic/vue 0.21.5-beta.2 → 0.22.1-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/CHANGELOG.md +156 -68
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +10150 -10225
  4. package/dist/project/index.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
  6. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
  7. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
  8. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
  9. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
  10. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
  11. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
  12. package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
  13. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
  14. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
  15. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
  16. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
  17. package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
  18. package/dist/src/apis/WMS/models.d.ts +179 -251
  19. package/dist/src/components/KgButton/index.hooks.d.ts +141 -68
  20. package/dist/src/components/KgButton/index.store.d.ts +175 -54
  21. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
  33. package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
  34. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
  35. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
  36. package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
  37. package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
  38. package/dist/src/components/KgVar/index.hooks.d.ts +2642 -2027
  39. package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
  40. package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
  41. package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
  42. package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
  43. package/dist/src/consts/i18n/en.d.ts +5 -4
  44. package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
  45. package/dist/src/consts/index.d.ts +4 -4
  46. package/dist/src/consts/index.vm.d.ts +8 -11
  47. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
  48. package/dist/src/utils/kg-route.util.d.ts +3 -2
  49. package/dist/src/utils/kg-var.util.d.ts +23 -11
  50. package/dist/src/utils/kg.util.d.ts +19 -10
  51. package/package.json +4 -4
  52. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
  53. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
  54. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
  55. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
  56. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
  57. /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
  58. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -1,57 +1,20 @@
1
- import { KG_BUTTON_TYPE } from '../../consts';
2
- import { IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonEvent, IKgButtonImportOkCb, IKgButtonOtherOkCb, IKgButtonUpdateBeforeClickCb } from './index.store';
3
- /**
4
- * @param formID 界面标识.
5
- */
6
- export declare function useKgButton(formID?: string | null): {
1
+ import { ComputedRef } from 'vue';
2
+ import { VarButton } from '../../apis/WMS/models';
3
+ import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
4
+ import { IKgButtonClickCb, IKgButtonImportOkCb, IKgButtonSubmitCancelCb, IKgButtonSubmitSaveCb, useKgButtonStore } from './index.store';
5
+ export interface IUseKgButton {
6
+ /**
7
+ * 界面标识.
8
+ */
7
9
  formID: string;
8
- store: import("pinia").Store<"KgButton", {
9
- isCreateClickInterceptedMap: Map<string, boolean>;
10
- clickListenersMap: Map<string, IKgButtonClickCb[]>;
11
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
12
- importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
13
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
14
- submitCancelListenersMap: Map<string, import("./index.store").IKgButtonSubmitCancelCb[]>;
15
- submitSaveListenersMap: Map<string, import("./index.store").IKgButtonSubmitSaveCb[]>;
16
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
17
- }, {
18
- getIsCreateClickIntercepted(state: {
19
- isCreateClickInterceptedMap: Map<string, boolean>;
20
- clickListenersMap: Map<string, IKgButtonClickCb[]>;
21
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
22
- importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
23
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
24
- submitCancelListenersMap: Map<string, import("./index.store").IKgButtonSubmitCancelCb[]>;
25
- submitSaveListenersMap: Map<string, import("./index.store").IKgButtonSubmitSaveCb[]>;
26
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
27
- } & import("pinia").PiniaCustomStateProperties<{
28
- isCreateClickInterceptedMap: Map<string, boolean>;
29
- clickListenersMap: Map<string, IKgButtonClickCb[]>;
30
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
31
- importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
32
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
33
- submitCancelListenersMap: Map<string, import("./index.store").IKgButtonSubmitCancelCb[]>;
34
- submitSaveListenersMap: Map<string, import("./index.store").IKgButtonSubmitSaveCb[]>;
35
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
36
- }>): (param: {
37
- formID: string;
38
- }) => boolean;
39
- }, {
40
- dispose(formID: string | null | undefined): void;
41
- addEventListener(formID: string, event: IKgButtonEvent, cb: import("./index.store").IKgButtonCb): void;
42
- removeEventListener(formID: string, event: IKgButtonEvent, cb?: import("./index.store").IKgButtonCb | undefined): void;
43
- emit(formID: string, event: IKgButtonEvent, param: any): Promise<boolean>;
44
- setIsCreateClickIntercepted(param: {
45
- formID: string;
46
- isIntercepted: boolean;
47
- }): void;
48
- click(formID: string, type: KG_BUTTON_TYPE, variableName?: string | undefined): void;
49
- }>;
10
+ /**
11
+ * 状态数据.
12
+ */
13
+ store: ReturnType<typeof useKgButtonStore>;
50
14
  /**
51
15
  * <p>手动点击某个按钮.</p>
52
16
  * <p>调用此方法相当于手动触发某个按钮的点击事件.</p>
53
17
  *
54
- * @param param.
55
18
  * @param param.type 按钮类型.
56
19
  * @param param.variableName 按钮变量名称.
57
20
  */
@@ -60,45 +23,155 @@ export declare function useKgButton(formID?: string | null): {
60
23
  variableName?: string;
61
24
  }): void;
62
25
  /**
63
- * 事件: 点击按钮.
64
- * @param cb 回调函数.
65
- * @param once 是否只会触发一次. 默认为 undefined.
26
+ * <p>「当前按钮」.</p>
66
27
  */
67
- onClick: (cb: IKgButtonClickCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
28
+ currentButton: ComputedRef<VarButton | null>;
68
29
  /**
69
- * 事件: 点击更新按钮之后, 执行默认逻辑之前. 如果返回 true, 则不再执行后续的默认逻辑.
70
- * @param cb 回调函数.
71
- * @param once 是否只会触发一次. 默认为 undefined.
30
+ * <p>「查询按钮」.</p>
72
31
  */
73
- onUpdateBeforeClick: (cb: IKgButtonUpdateBeforeClickCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
32
+ searchButton: ComputedRef<VarButton | null>;
74
33
  /**
75
- * 事件: 删除成功, 删除接口调用成功.
76
- * @param cb 回调函数.
77
- * @param once 是否只会触发一次. 默认为 undefined.
34
+ * <p>判断「当前按钮」的 click 事件是否被拦截.</p>
78
35
  */
79
- onDeleteOk: (cb: IKgButtonDeleteOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
36
+ isCurrentButtonClickIntercepted: ComputedRef<boolean>;
80
37
  /**
81
- * 事件: 导入成功, 导入接口调用成功.
38
+ * <p>判断「当前按钮」是否正在请求后端接口.</p>
39
+ */
40
+ isCurrentButtonRequesting: ComputedRef<boolean>;
41
+ /**
42
+ * <p>设置「当前按钮」. 比如点击「创建」按钮, 则此时「创建」按钮就是「当前按钮」, 同一时间最多只会有一个按钮处于「正在执行」状态.</p>
43
+ *
44
+ * <ul>
45
+ * <li>
46
+ * <p>如果参数 {@link param} === null, 表示清空「当前按钮」.</p>
47
+ * <p>调用方式如下: <code>setCurrentButton(null);</code></p>
48
+ * </li>
49
+ * <li>
50
+ * <p>否则, 如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG_BUTTON_TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
51
+ * <p>调用方式如下: <code>setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });</code></p>
52
+ * </li>
53
+ * <li>
54
+ * <p>否则, 如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG_BUTTON_TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
55
+ * <p>根据参数 {@link param.varName} 获取按钮.</p>
56
+ * <p>调用方式如下: <code>setCurrentButton({ varName: 'SOME-OTHER-BUTTON' });</code></p>
57
+ * </li>
58
+ * </ul>
59
+ *
60
+ * @param param.type <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
61
+ * @param param.varName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
62
+ */
63
+ setCurrentButton(param: {
64
+ type?: KG_BUTTON_TYPE;
65
+ varName?: string | null;
66
+ } | null): Promise<void>;
67
+ /**
68
+ * <p>判断某个按钮是否是「当前按钮」.</p>
69
+ *
70
+ * <ul>
71
+ * <li>
72
+ * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG_BUTTON_TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
73
+ * <p>调用方式如下: <code>isCurrentButton({ type: KG_BUTTON_TYPE.CREATE });</code></p>
74
+ * </li>
75
+ * <li>
76
+ * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG_BUTTON_TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
77
+ * <p>根据参数 {@link param.varName} 获取按钮.</p>
78
+ * <p>调用方式如下: <code>isCurrentButton({ varName: 'SOME-OTHER-BUTTON' });</code></p>
79
+ * </li>
80
+ * </ul>
81
+ *
82
+ * @param param.type <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
83
+ * @param param.varName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
84
+ */
85
+ isCurrentButton(param: {
86
+ type?: KG_BUTTON_TYPE;
87
+ varName?: string;
88
+ }): boolean;
89
+ /**
90
+ * <p>判断某个按钮的 click 事件是否被拦截.</p>
91
+ * <p>用户调用 <code>kgVar.kgButton().onClick(cb)</code> 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
92
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
93
+ *
94
+ * <ul>
95
+ * <li>
96
+ * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG_BUTTON_TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
97
+ * <p>调用方式如下: <code>isClickIntercepted({ type: KG_BUTTON_TYPE.CREATE });</code></p>
98
+ * </li>
99
+ * <li>
100
+ * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG_BUTTON_TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
101
+ * <p>根据参数 {@link param.varName} 获取按钮.</p>
102
+ * <p>调用方式如下: <code>isClickIntercepted({ varName: 'SOME-OTHER-BUTTON' });</code></p>
103
+ * </li>
104
+ * </ul>
105
+ *
106
+ * @param param.type <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
107
+ * @param param.varName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
108
+ */
109
+ isClickIntercepted(param: {
110
+ type?: KG_BUTTON_TYPE;
111
+ varName?: string | null;
112
+ }): boolean;
113
+ /**
114
+ * <p>设置某个按钮的 click 事件是否被拦截.</p>
115
+ *
116
+ * <ul>
117
+ * <li>
118
+ * <p>如果参数 {@link param.type} !== <code>undefined</code> && {@link param.type} !== {@link KG_BUTTON_TYPE.OTHER}, 则根据参数 {@link param.type} 获取按钮.</p>
119
+ * <p>调用方式如下: <code>setIsClickIntercepted({ type: KG_BUTTON_TYPE.CREATE, isIntercepted: true });</code></p>
120
+ * </li>
121
+ * <li>
122
+ * <p>如果参数 {@link param.type} === <code>undefined</code> || {@link param.type} === {@link KG_BUTTON_TYPE.OTHER}, 则参数 {@link param.varName} 必须传值, 否则报错.</p>
123
+ * <p>根据参数 {@link param.varName} 获取按钮.</p>
124
+ * <p>调用方式如下: <code>setIsClickIntercepted({ varName: 'SOME-OTHER-BUTTON', isIntercepted: true });</code></p>
125
+ * </li>
126
+ * </ul>
127
+ *
128
+ * @param param.isIntercepted 是否被拦截.
129
+ * @param param.type <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
130
+ * @param param.varName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
131
+ */
132
+ setIsClickIntercepted(param: {
133
+ isIntercepted: boolean;
134
+ type?: KG_BUTTON_TYPE;
135
+ varName?: string | null;
136
+ }): void;
137
+ /**
138
+ * 设置「当前按钮」是否正在请求后端接口.
139
+ *
140
+ * @param param.isRequesting 「当前按钮」是否正在请求后端接口.
141
+ */
142
+ setIsCurrentButtonRequesting(param: {
143
+ isRequesting: boolean;
144
+ }): void;
145
+ /**
146
+ * 事件: 点击按钮.
147
+ *
82
148
  * @param cb 回调函数.
83
149
  * @param once 是否只会触发一次. 默认为 undefined.
84
150
  */
85
- onImportOk: (cb: IKgButtonImportOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
151
+ onClick(cb: IKgButtonClickCb, once?: boolean): IRemoveEventListenerHandler;
86
152
  /**
87
- * 事件: other 类型的按钮接口调用成功.
153
+ * 事件: 导入成功, 导入接口调用成功.
154
+ *
88
155
  * @param cb 回调函数.
89
156
  * @param once 是否只会触发一次. 默认为 undefined.
90
157
  */
91
- onOtherOk: (cb: IKgButtonOtherOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
158
+ onImportOk(cb: IKgButtonImportOkCb, once?: boolean): IRemoveEventListenerHandler;
92
159
  /**
93
160
  * 事件: 表格内编辑时, 点击保存按钮.
161
+ *
94
162
  * @param cb 回调函数.
95
163
  * @param once 是否只会触发一次. 默认为 undefined.
96
164
  */
97
- onSubmitSave: (cb: IKgButtonDeleteOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
165
+ onSubmitSave(cb: IKgButtonSubmitSaveCb, once?: boolean): IRemoveEventListenerHandler;
98
166
  /**
99
167
  * 事件: 表格内编辑时, 点击取消按钮.
168
+ *
100
169
  * @param cb 回调函数.
101
170
  * @param once 是否只会触发一次. 默认为 undefined.
102
171
  */
103
- onSubmitCancel: (cb: IKgButtonDeleteOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
104
- };
172
+ onSubmitCancel(cb: IKgButtonSubmitCancelCb, once?: boolean): IRemoveEventListenerHandler;
173
+ }
174
+ /**
175
+ * @param formID 界面标识.
176
+ */
177
+ export declare function useKgButton(formID?: string | null): IUseKgButton;
@@ -1,87 +1,206 @@
1
1
  import { VarButton } from '../../apis/WMS/models';
2
2
  import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
3
- import { IKgTableRow } from '../KgTable';
4
3
  /**
5
4
  * 事件类型.
6
5
  * 'click': 点击按钮
7
- * 'updateBeforeClick': 点击更新按钮之后, 执行默认逻辑之前. 如果返回 Promise.resolve(false), 则不执行默认逻辑
8
- * 'deleteOk': 删除成功, 删除接口调用成功
9
6
  * 'importOk': 导入成功, 导入接口调用成功
10
- * 'otherOk': other 类型的按钮接口调用成功
11
7
  * 'submitSave': 表格内编辑时, 点击保存按钮
12
8
  * 'submitCancel': 表格内编辑时, 点击取消按钮
13
9
  */
14
- export declare type IKgButtonEvent = 'click' | 'updateBeforeClick' | 'deleteOk' | 'importOk' | 'otherOk' | 'submitSave' | 'submitCancel';
10
+ export declare type IKgButtonEvent = 'click' | 'importOk' | 'submitSave' | 'submitCancel';
15
11
  export declare type IKgButtonClickCbParam = {
12
+ /**
13
+ * 被点击的按钮.
14
+ */
16
15
  button: VarButton;
17
16
  };
18
- export declare type IKgButtonClickCb = ((button: VarButton) => Promise<boolean>) & IKgEventCb;
19
- export declare type IKgButtonUpdateBeforeClickCbParam = {
20
- button?: VarButton | null;
21
- row?: IKgTableRow | null;
22
- };
23
- export declare type IKgButtonUpdateBeforeClickCb = ((args: IKgButtonUpdateBeforeClickCbParam) => Promise<boolean>) & IKgEventCb;
24
- export declare type IKgButtonDeleteOkCbParam = {
25
- button?: VarButton | null;
26
- /** 删除的行. */
27
- rows: Array<IKgTableRow> | null;
28
- };
29
- export declare type IKgButtonDeleteOkCb = ((args: IKgButtonDeleteOkCbParam) => Promise<boolean>) & IKgEventCb;
17
+ export declare type IKgButtonClickCb = ((param: IKgButtonClickCbParam) => Promise<boolean>) & IKgEventCb;
30
18
  export declare type IKgButtonImportOkCbParam = {
31
19
  button?: VarButton | null;
32
20
  };
33
21
  export declare type IKgButtonImportOkCb = ((args: IKgButtonImportOkCbParam) => Promise<boolean>) & IKgEventCb;
34
- export declare type IKgButtonOtherOkCbParam = {
35
- button?: VarButton | null;
36
- /** 接口返回的数据. */
37
- data: any;
38
- };
39
- export declare type IKgButtonOtherOkCb = ((args: IKgButtonOtherOkCbParam) => Promise<boolean>) & IKgEventCb;
40
22
  export declare type IKgButtonSubmitSaveCb = (() => Promise<boolean>) & IKgEventCb;
41
23
  export declare type IKgButtonSubmitCancelCb = (() => Promise<boolean>) & IKgEventCb;
42
- export declare type IKgButtonCbParam = IKgButtonClickCbParam | IKgButtonUpdateBeforeClickCbParam | IKgButtonDeleteOkCbParam | IKgButtonImportOkCbParam | IKgButtonOtherOkCbParam | any;
43
- export declare type IKgButtonCb = IKgButtonClickCb | IKgButtonUpdateBeforeClickCb | IKgButtonDeleteOkCb | IKgButtonImportOkCb | IKgButtonOtherOkCb | IKgButtonSubmitSaveCb | IKgButtonSubmitCancelCb;
24
+ export declare type IKgButtonCbParam = IKgButtonClickCbParam | IKgButtonImportOkCbParam;
25
+ export declare type IKgButtonCb = IKgButtonClickCb | IKgButtonImportOkCb | IKgButtonSubmitSaveCb | IKgButtonSubmitCancelCb;
44
26
  export declare const useKgButtonStore: import("pinia").StoreDefinition<"KgButton", {
45
27
  /**
46
- * <p>创建按钮的 click 事件是否被拦截.</p>
47
- * <p>用户调用 kgButton.onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被拦截了.</p>
48
- * <p>被拦截之后, 创建按钮的默认逻辑不会执行(即打开提交弹窗, 并加载各种数据等等), 由用户自行处理.</p>
28
+ * <p>当前按钮.</p>
29
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
49
30
  */
50
- isCreateClickInterceptedMap: Map<string, boolean>;
31
+ currentButtonMap: Map<string, VarButton | null>;
32
+ /**
33
+ * <p>当前按钮是否正在请求后端接口.</p>
34
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
35
+ */
36
+ isCurrentButtonRequestingMap: Map<string, boolean>;
37
+ /**
38
+ * <p>按钮的 click 事件是否被拦截.</p>
39
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
40
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
41
+ */
42
+ isClickInterceptedMap: Map<string, boolean>;
51
43
  clickListenersMap: Map<string, IKgButtonClickCb[]>;
52
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
53
44
  importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
54
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
55
45
  submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
56
46
  submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
57
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
58
47
  }, {
59
- getIsCreateClickIntercepted(state: {
60
- isCreateClickInterceptedMap: Map<string, boolean>;
48
+ isClickIntercepted(state: {
49
+ currentButtonMap: Map<string, VarButton | null>;
50
+ isCurrentButtonRequestingMap: Map<string, boolean>;
51
+ isClickInterceptedMap: Map<string, boolean>;
61
52
  clickListenersMap: Map<string, IKgButtonClickCb[]>;
62
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
63
53
  importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
64
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
65
54
  submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
66
55
  submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
67
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
68
56
  } & import("pinia").PiniaCustomStateProperties<{
69
57
  /**
70
- * <p>创建按钮的 click 事件是否被拦截.</p>
71
- * <p>用户调用 kgButton.onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被拦截了.</p>
72
- * <p>被拦截之后, 创建按钮的默认逻辑不会执行(即打开提交弹窗, 并加载各种数据等等), 由用户自行处理.</p>
58
+ * <p>当前按钮.</p>
59
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
60
+ */
61
+ currentButtonMap: Map<string, VarButton | null>;
62
+ /**
63
+ * <p>当前按钮是否正在请求后端接口.</p>
64
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
65
+ */
66
+ isCurrentButtonRequestingMap: Map<string, boolean>;
67
+ /**
68
+ * <p>按钮的 click 事件是否被拦截.</p>
69
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
70
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
73
71
  */
74
- isCreateClickInterceptedMap: Map<string, boolean>;
72
+ isClickInterceptedMap: Map<string, boolean>;
75
73
  clickListenersMap: Map<string, IKgButtonClickCb[]>;
76
- deleteOkListenersMap: Map<string, IKgButtonDeleteOkCb[]>;
77
74
  importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
78
- otherOkListenersMap: Map<string, IKgButtonOtherOkCb[]>;
79
75
  submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
80
76
  submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
81
- updateBeforeClickListenersMap: Map<string, IKgButtonUpdateBeforeClickCb[]>;
82
- }>): (param: {
83
- formID: string;
77
+ }>): (formID: string | undefined | null, param: {
78
+ type?: KG_BUTTON_TYPE;
79
+ varName?: string | null;
84
80
  }) => boolean;
81
+ isCurrentButtonRequesting(state: {
82
+ currentButtonMap: Map<string, VarButton | null>;
83
+ isCurrentButtonRequestingMap: Map<string, boolean>;
84
+ isClickInterceptedMap: Map<string, boolean>;
85
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
86
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
87
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
88
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
89
+ } & import("pinia").PiniaCustomStateProperties<{
90
+ /**
91
+ * <p>当前按钮.</p>
92
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
93
+ */
94
+ currentButtonMap: Map<string, VarButton | null>;
95
+ /**
96
+ * <p>当前按钮是否正在请求后端接口.</p>
97
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
98
+ */
99
+ isCurrentButtonRequestingMap: Map<string, boolean>;
100
+ /**
101
+ * <p>按钮的 click 事件是否被拦截.</p>
102
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
103
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
104
+ */
105
+ isClickInterceptedMap: Map<string, boolean>;
106
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
107
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
108
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
109
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
110
+ }>): (formID: string | undefined | null) => boolean;
111
+ getCurrentButton: (state: {
112
+ currentButtonMap: Map<string, VarButton | null>;
113
+ isCurrentButtonRequestingMap: Map<string, boolean>;
114
+ isClickInterceptedMap: Map<string, boolean>;
115
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
116
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
117
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
118
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
119
+ } & import("pinia").PiniaCustomStateProperties<{
120
+ /**
121
+ * <p>当前按钮.</p>
122
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
123
+ */
124
+ currentButtonMap: Map<string, VarButton | null>;
125
+ /**
126
+ * <p>当前按钮是否正在请求后端接口.</p>
127
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
128
+ */
129
+ isCurrentButtonRequestingMap: Map<string, boolean>;
130
+ /**
131
+ * <p>按钮的 click 事件是否被拦截.</p>
132
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
133
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
134
+ */
135
+ isClickInterceptedMap: Map<string, boolean>;
136
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
137
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
138
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
139
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
140
+ }>) => (formID: string | null | undefined) => VarButton | null;
141
+ isCurrentButton(state: {
142
+ currentButtonMap: Map<string, VarButton | null>;
143
+ isCurrentButtonRequestingMap: Map<string, boolean>;
144
+ isClickInterceptedMap: Map<string, boolean>;
145
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
146
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
147
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
148
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
149
+ } & import("pinia").PiniaCustomStateProperties<{
150
+ /**
151
+ * <p>当前按钮.</p>
152
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
153
+ */
154
+ currentButtonMap: Map<string, VarButton | null>;
155
+ /**
156
+ * <p>当前按钮是否正在请求后端接口.</p>
157
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
158
+ */
159
+ isCurrentButtonRequestingMap: Map<string, boolean>;
160
+ /**
161
+ * <p>按钮的 click 事件是否被拦截.</p>
162
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
163
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
164
+ */
165
+ isClickInterceptedMap: Map<string, boolean>;
166
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
167
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
168
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
169
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
170
+ }>): (formID: string, param: {
171
+ varName?: string;
172
+ type?: KG_BUTTON_TYPE;
173
+ }) => boolean;
174
+ getSearchButton(state: {
175
+ currentButtonMap: Map<string, VarButton | null>;
176
+ isCurrentButtonRequestingMap: Map<string, boolean>;
177
+ isClickInterceptedMap: Map<string, boolean>;
178
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
179
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
180
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
181
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
182
+ } & import("pinia").PiniaCustomStateProperties<{
183
+ /**
184
+ * <p>当前按钮.</p>
185
+ * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
186
+ */
187
+ currentButtonMap: Map<string, VarButton | null>;
188
+ /**
189
+ * <p>当前按钮是否正在请求后端接口.</p>
190
+ * <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
191
+ */
192
+ isCurrentButtonRequestingMap: Map<string, boolean>;
193
+ /**
194
+ * <p>按钮的 click 事件是否被拦截.</p>
195
+ * <p>用户调用 kgVar.kgButton().onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
196
+ * <p>被拦截之后, 该按钮的默认逻辑不会执行(例如打开提交弹窗, 加载各种数据等等), 后续由用户自行处理.</p>
197
+ */
198
+ isClickInterceptedMap: Map<string, boolean>;
199
+ clickListenersMap: Map<string, IKgButtonClickCb[]>;
200
+ importOkListenersMap: Map<string, IKgButtonImportOkCb[]>;
201
+ submitCancelListenersMap: Map<string, IKgButtonSubmitCancelCb[]>;
202
+ submitSaveListenersMap: Map<string, IKgButtonSubmitSaveCb[]>;
203
+ }>): (formID: string | null | undefined) => VarButton | null;
85
204
  }, {
86
205
  dispose(formID: string | null | undefined): void;
87
206
  /**
@@ -105,16 +224,18 @@ export declare const useKgButtonStore: import("pinia").StoreDefinition<"KgButton
105
224
  * @param param 数据.
106
225
  */
107
226
  emit(formID: string, event: IKgButtonEvent, param: IKgButtonCbParam): Promise<boolean>;
108
- /**
109
- *
110
- * @param param
111
- * @param param.formID 界面标识.
112
- * @param param.isIntercepted 是否拦截.
113
- */
114
- setIsCreateClickIntercepted(param: {
115
- formID: string;
227
+ setIsClickIntercepted(formID: string | undefined | null, param: {
116
228
  isIntercepted: boolean;
229
+ type?: KG_BUTTON_TYPE;
230
+ varName?: string | null;
231
+ }): void;
232
+ setIsCurrentButtonRequesting(formID: string | undefined | null, param: {
233
+ isRequesting: boolean;
117
234
  }): void;
235
+ setCurrentButton(formID: string, param: {
236
+ type?: KG_BUTTON_TYPE;
237
+ varName?: string | null;
238
+ } | null): Promise<void>;
118
239
  /**
119
240
  * <p>手动点击某个按钮.</p>
120
241
  * <p>调用此方法相当于手动触发某个按钮的点击事件.</p>
@@ -1,15 +1,13 @@
1
- import { ComputedRef } from 'vue';
2
1
  import { IKgFormItemProps } from './index.vm';
3
2
  export declare function _useFormRules(props: IKgFormItemProps): {
4
3
  /** 表单验证规则. */
5
- formRules: ComputedRef<import("ant-design-vue/es/form").RuleObject[]>;
4
+ formRules: import("vue").ComputedRef<import("ant-design-vue/es/form").RuleObject[]>;
6
5
  /** 正在计算表单验证规则. */
7
6
  isFormRulesLoading: import("vue").Ref<boolean>;
8
7
  };
9
- export declare type IUseKgFormItem<T = Record<string, any>> = {
8
+ export declare function useKgFormItem<T = Record<string, any>>(props?: IKgFormItemProps): {
10
9
  /** 控件类型. */
11
- controlType: ComputedRef<string | null | undefined>;
10
+ controlType: import("vue").ComputedRef<string | null | undefined>;
12
11
  /** 控件配置参数. */
13
- controlProperties: ComputedRef<T>;
12
+ controlProperties: import("vue").ComputedRef<T>;
14
13
  };
15
- export declare function useKgFormItem<T = Record<string, any>>(props?: IKgFormItemProps): IUseKgFormItem<T>;
@@ -3,9 +3,9 @@
3
3
  * <p>组件 Checkbox 的 checked 属性使用的是 true/false, 本组件实际传入的参数为 1/0, 因此存在数据转换.</p>
4
4
  */
5
5
  declare const _default: import("vue").DefineComponent<{
6
+ /** 是否勾选. */
6
7
  kgVarName: {
7
8
  type: import("vue").PropType<string>;
8
- /** 是否勾选. */
9
9
  required: boolean;
10
10
  };
11
11
  kgContext: {
@@ -45,10 +45,10 @@ declare const _default: import("vue").DefineComponent<{
45
45
  onKgChange: import("vue").PropType<(value: any) => void>;
46
46
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
47
47
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
48
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
+ /** 是否勾选. */
49
50
  kgVarName: {
50
51
  type: import("vue").PropType<string>;
51
- /** 是否勾选. */
52
52
  required: boolean;
53
53
  };
54
54
  kgContext: {
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  onKgChange: import("vue").PropType<(value: any) => void>;
41
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value" | "kgCheckboxGroupChange")[], "kgSubmit" | "kgChange" | "update:value" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  kgVarName: {
45
45
  type: import("vue").PropType<string>;
46
46
  required: boolean;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  onKgChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
43
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  kgVarName: {
46
46
  type: import("vue").PropType<string>;
47
47
  required: boolean;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  onKgChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
43
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  kgVarName: {
46
46
  type: import("vue").PropType<string>;
47
47
  required: boolean;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  onKgChange: import("vue").PropType<(value: any) => void>;
41
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  kgVarName: {
45
45
  type: import("vue").PropType<string>;
46
46
  required: boolean;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  onKgChange: import("vue").PropType<(value: any) => void>;
41
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  kgVarName: {
45
45
  type: import("vue").PropType<string>;
46
46
  required: boolean;