@kengic/vue 0.23.3 → 0.23.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +2047 -2036
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +6 -6
- package/dist/src/components/KgAppSelect/index.store.d.ts +4 -4
- package/dist/src/components/KgButton/KgButton.Item.d.ts +3 -3
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -3
- package/dist/src/components/KgButton/index.hooks.d.ts +39 -35
- package/dist/src/components/KgButton/index.store.d.ts +13 -12
- package/dist/src/components/KgForm/index.hooks.d.ts +17 -17
- package/dist/src/components/KgForm/index.store.d.ts +4 -4
- package/dist/src/components/KgSearch/index.hooks.d.ts +9 -9
- package/dist/src/components/KgSearch/index.store.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +31 -31
- package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
- package/dist/src/components/KgTable/index.hooks.d.ts +24 -24
- package/dist/src/components/KgTable/index.store.d.ts +11 -5
- package/dist/src/components/KgVar/index.hooks.d.ts +6 -6
- package/dist/src/components/KgVar/index.store.d.ts +6 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +6 -12
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -3
- package/dist/src/components/KgWarehouse/index.store.d.ts +4 -4
- package/dist/src/components/util.d.ts +5 -5
- package/dist/src/consts/index.vm.d.ts +25 -2
- package/package.json +1 -1
@@ -5,52 +5,52 @@ export declare type IUseKgForm = {
|
|
5
5
|
/**
|
6
6
|
* 监听事件: 表单控件的值发生变更.
|
7
7
|
*
|
8
|
-
* @param
|
9
|
-
* @param
|
8
|
+
* @param listener 事件监听函数.
|
9
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
10
10
|
*/
|
11
|
-
onChange(
|
11
|
+
onChange(listener: IKgFormChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
12
12
|
/**
|
13
13
|
* 监听事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
|
14
14
|
*
|
15
|
-
* @param
|
16
|
-
* @param
|
15
|
+
* @param listener 事件监听函数.
|
16
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
17
17
|
*/
|
18
|
-
onLookupBeforeOk(
|
18
|
+
onLookupBeforeOk(listener: IKgFormLookupBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
19
19
|
/**
|
20
20
|
* 监听事件: 查找弹窗打开之前.
|
21
21
|
*
|
22
|
-
* @param
|
23
|
-
* @param
|
22
|
+
* @param listener 事件监听函数.
|
23
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
24
24
|
*/
|
25
|
-
onLookupBeforeOpen(
|
25
|
+
onLookupBeforeOpen(listener: IKgFormLookupBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
26
26
|
/**
|
27
27
|
* 监听事件: 查找弹窗点击确定.
|
28
28
|
*
|
29
29
|
* @param listener 事件监听函数.
|
30
|
-
* @param
|
30
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
31
31
|
*/
|
32
|
-
onLookupOk(listener: IKgFormLookupOkEventListener,
|
32
|
+
onLookupOk(listener: IKgFormLookupOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
33
33
|
/**
|
34
34
|
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
35
35
|
*
|
36
36
|
* @param callback 事件监听函数.
|
37
|
-
* @param
|
37
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
38
38
|
*/
|
39
|
-
onSelectBeforeRequest(callback: IKgFormSelectBeforeRequestEventListener,
|
39
|
+
onSelectBeforeRequest(callback: IKgFormSelectBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
40
40
|
/**
|
41
41
|
* 监听事件: 查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
42
42
|
*
|
43
43
|
* @param callback 事件监听函数.
|
44
|
-
* @param
|
44
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
45
45
|
*/
|
46
|
-
onSelectBeforeSetDatas(callback: IKgFormSelectBeforeSetDatasEventListener,
|
46
|
+
onSelectBeforeSetDatas(callback: IKgFormSelectBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
47
47
|
/**
|
48
48
|
* 监听事件: 下拉列表选中某个(可能多个)数据.
|
49
49
|
*
|
50
50
|
* @param listener 事件监听函数.
|
51
|
-
* @param
|
51
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
52
52
|
*/
|
53
|
-
onSelectChange(listener: IKgFormSelectChangeEventListener,
|
53
|
+
onSelectChange(listener: IKgFormSelectChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
54
54
|
/**
|
55
55
|
* 状态数据.
|
56
56
|
*/
|
@@ -170,9 +170,9 @@ export interface IUseKgFormStoreActions {
|
|
170
170
|
* 注册事件监听.
|
171
171
|
* @param formID 界面标识.
|
172
172
|
* @param event 事件名称.
|
173
|
-
* @param
|
173
|
+
* @param listener 事件监听函数.
|
174
174
|
*/
|
175
|
-
addEventListener(formID: string, event: IKgFormEvent,
|
175
|
+
addEventListener(formID: string, event: IKgFormEvent, listener: IKgFormEventListener): void;
|
176
176
|
/**
|
177
177
|
* 清理数据.
|
178
178
|
* @param formID 页面标识.
|
@@ -189,9 +189,9 @@ export interface IUseKgFormStoreActions {
|
|
189
189
|
* 退订事件监听.
|
190
190
|
* @param formID 界面标识.
|
191
191
|
* @param event 事件名称.
|
192
|
-
* @param
|
192
|
+
* @param listener 事件监听函数.
|
193
193
|
*/
|
194
|
-
removeEventListener(formID: string, event: IKgFormEvent,
|
194
|
+
removeEventListener(formID: string, event: IKgFormEvent, listener?: IKgFormEventListener): void;
|
195
195
|
}
|
196
196
|
export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
|
197
197
|
export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
|
@@ -35,22 +35,22 @@ export declare type IUseKgSearch = {
|
|
35
35
|
model: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
|
36
36
|
/**
|
37
37
|
* 监听事件: ready, 查询字段初始完成, 组件渲染完成.
|
38
|
-
* @param
|
39
|
-
* @param
|
38
|
+
* @param listener 事件监听函数.
|
39
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
40
40
|
*/
|
41
|
-
onReady(
|
41
|
+
onReady(listener: IKgSearchReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
42
42
|
/**
|
43
43
|
* 监听事件: reset, 点击重置按钮.
|
44
|
-
* @param
|
45
|
-
* @param
|
44
|
+
* @param listener 事件监听函数.
|
45
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
46
46
|
*/
|
47
|
-
onReset(
|
47
|
+
onReset(listener: IKgSearchResetEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
48
48
|
/**
|
49
49
|
* 监听事件: search, 点击查询按钮, 并且表单验证通过.
|
50
|
-
* @param
|
51
|
-
* @param
|
50
|
+
* @param listener 事件监听函数.
|
51
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
52
52
|
*/
|
53
|
-
onSearch(
|
53
|
+
onSearch(listener: IKgSearchSearchEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
54
54
|
/** 重置. */
|
55
55
|
reset(): void;
|
56
56
|
/** 查询. */
|
@@ -80,9 +80,9 @@ export interface IUseKgSearchStoreActions {
|
|
80
80
|
* 注册事件监听.
|
81
81
|
* @param formID 界面标识.
|
82
82
|
* @param event 事件名称.
|
83
|
-
* @param
|
83
|
+
* @param listener 事件监听函数.
|
84
84
|
*/
|
85
|
-
addEventListener(formID: string, event: IKgSearchEvent,
|
85
|
+
addEventListener(formID: string, event: IKgSearchEvent, listener: IKgSearchEventListener): void;
|
86
86
|
/**
|
87
87
|
* 清理数据.
|
88
88
|
* @param formID 页面标识.
|
@@ -113,9 +113,9 @@ export interface IUseKgSearchStoreActions {
|
|
113
113
|
* 退订事件监听.
|
114
114
|
* @param formID 界面标识.
|
115
115
|
* @param event 事件名称.
|
116
|
-
* @param
|
116
|
+
* @param listener 事件监听函数.
|
117
117
|
*/
|
118
|
-
removeEventListener(formID: string, event: IKgSearchEvent,
|
118
|
+
removeEventListener(formID: string, event: IKgSearchEvent, listener?: IKgSearchEventListener): void;
|
119
119
|
setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
120
120
|
/**
|
121
121
|
* 设置表单数据.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance } from 'ant-design-vue';
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
4
|
-
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT,
|
4
|
+
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT } from '../../consts';
|
5
5
|
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
7
|
/**
|
@@ -79,11 +79,11 @@ export interface IUseKgSubmit {
|
|
79
79
|
* </li>
|
80
80
|
* </ul>
|
81
81
|
*
|
82
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
82
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
83
83
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
84
84
|
*/
|
85
85
|
getVarSubmitConfig(param?: {
|
86
|
-
buttonType?:
|
86
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
87
87
|
buttonVarName?: string | null;
|
88
88
|
}): VarSubmitConfig | null;
|
89
89
|
/**
|
@@ -107,13 +107,13 @@ export interface IUseKgSubmit {
|
|
107
107
|
* </li>
|
108
108
|
* </ul>
|
109
109
|
*
|
110
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
110
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
111
111
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
112
112
|
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
113
113
|
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
114
114
|
*/
|
115
115
|
getVarSubmitDetails(param?: {
|
116
|
-
buttonType?:
|
116
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
117
117
|
buttonVarName?: string | null;
|
118
118
|
isVisible?: 0 | 1 | null;
|
119
119
|
varName?: string | null;
|
@@ -128,11 +128,11 @@ export interface IUseKgSubmit {
|
|
128
128
|
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
129
129
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
130
130
|
*
|
131
|
-
* @param
|
132
|
-
* @param
|
131
|
+
* @param listener 事件监听函数.
|
132
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
133
133
|
* @return {} 移除事件监听函数.
|
134
134
|
*/
|
135
|
-
onAfterValidate(
|
135
|
+
onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
136
136
|
/**
|
137
137
|
* <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
|
138
138
|
* <ul>
|
@@ -141,27 +141,27 @@ export interface IUseKgSubmit {
|
|
141
141
|
* </ul>
|
142
142
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
143
143
|
*
|
144
|
-
* @param
|
145
|
-
* @param
|
144
|
+
* @param listener 事件监听函数.
|
145
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
146
146
|
* @return {} 移除事件监听函数.
|
147
147
|
*/
|
148
|
-
onBeforeOk(
|
148
|
+
onBeforeOk(listener: IKgSubmitBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
149
149
|
/**
|
150
150
|
* <p>监听事件: 打开提交弹窗之前.</p>
|
151
|
-
* @param
|
152
|
-
* @param
|
151
|
+
* @param listener 事件监听函数.
|
152
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
153
153
|
* @return {} 移除事件监听函数.
|
154
154
|
*/
|
155
|
-
onBeforeOpen(
|
155
|
+
onBeforeOpen(listener: IKgSubmitBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
156
156
|
/**
|
157
157
|
* <p>监听事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
|
158
158
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
159
159
|
*
|
160
|
-
* @param
|
161
|
-
* @param
|
160
|
+
* @param listener 事件监听函数.
|
161
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
162
162
|
* @return {} 移除事件监听函数.
|
163
163
|
*/
|
164
|
-
onBeforeRequest(
|
164
|
+
onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
165
165
|
/**
|
166
166
|
* <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
|
167
167
|
* <ul>
|
@@ -169,43 +169,43 @@ export interface IUseKgSubmit {
|
|
169
169
|
* <li>点击取消按钮,</li>
|
170
170
|
* <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
|
171
171
|
* </ul>
|
172
|
-
* @param
|
173
|
-
* @param
|
172
|
+
* @param listener 事件监听函数.
|
173
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
174
174
|
* @return {} 移除事件监听函数.
|
175
175
|
*/
|
176
|
-
onClose(
|
176
|
+
onClose(listener: IKgSubmitCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
177
177
|
/**
|
178
178
|
* <p>监听事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
|
179
|
-
* @param
|
180
|
-
* @param
|
179
|
+
* @param listener 事件监听函数.
|
180
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
181
181
|
* @return {} 移除事件监听函数.
|
182
182
|
*/
|
183
|
-
onError(
|
183
|
+
onError(listener: IKgSubmitErrorEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
184
184
|
/**
|
185
185
|
* <p>监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
|
186
|
-
* @param
|
187
|
-
* @param
|
186
|
+
* @param listener 事件监听函数.
|
187
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
188
188
|
* @return {} 移除事件监听函数.
|
189
189
|
*/
|
190
|
-
onOk(
|
190
|
+
onOk(listener: IKgSubmitOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
191
191
|
/**
|
192
192
|
* <p>监听事件: 打开提交弹窗.</p>
|
193
|
-
* @param
|
194
|
-
* @param
|
193
|
+
* @param listener 事件监听函数.
|
194
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
195
195
|
* @return {} 移除事件监听函数.
|
196
196
|
*/
|
197
|
-
onOpen(
|
197
|
+
onOpen(listener: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
198
198
|
/**
|
199
199
|
* <p>修改某个「提交表单字段」的部分属性.</p>
|
200
200
|
* <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」.</p>
|
201
201
|
*
|
202
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
202
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
203
203
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
204
204
|
* @param param.properties 要修改的部分属性.
|
205
205
|
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
206
206
|
*/
|
207
207
|
patchVarSubmitDetail(param: {
|
208
|
-
buttonType?:
|
208
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
209
209
|
buttonVarName?: string | null;
|
210
210
|
properties: VarSubmitDetail;
|
211
211
|
varName: string | null | undefined;
|
@@ -3,7 +3,7 @@ import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
|
3
3
|
import { StoreDefinition } from 'pinia';
|
4
4
|
import { Ref } from 'vue';
|
5
5
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
6
|
-
import { IKgEventListener,
|
6
|
+
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
7
7
|
import { KgAny } from '../../types';
|
8
8
|
import { IKgTableRow } from '../KgTable';
|
9
9
|
/**
|
@@ -141,11 +141,11 @@ export interface IUseKgSubmitStoreGetters {
|
|
141
141
|
getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
|
142
142
|
getFormRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
|
143
143
|
getVarSubmitConfig(): (formID: string | null | undefined, param?: {
|
144
|
-
buttonType?:
|
144
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
145
145
|
buttonVarName?: string | null;
|
146
146
|
}) => VarSubmitConfig | null;
|
147
147
|
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
148
|
-
buttonType?:
|
148
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
149
149
|
buttonVarName?: string | null;
|
150
150
|
isKey?: 0 | 1 | null;
|
151
151
|
isVisible?: 0 | 1 | null;
|
@@ -159,9 +159,9 @@ export interface IUseKgSubmitStoreActions {
|
|
159
159
|
* 注册事件监听.
|
160
160
|
* @param formID 界面标识.
|
161
161
|
* @param event 事件名称.
|
162
|
-
* @param
|
162
|
+
* @param listener 事件监听函数.
|
163
163
|
*/
|
164
|
-
addEventListener(formID: string, event: IKgSubmitEvent,
|
164
|
+
addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
|
165
165
|
/**
|
166
166
|
* 清理数据.
|
167
167
|
* @param formID 页面标识.
|
@@ -169,7 +169,7 @@ export interface IUseKgSubmitStoreActions {
|
|
169
169
|
dispose(formID?: string | null): void;
|
170
170
|
emit<T = IKgSubmitEventListenerParameter>(formID: string, event: IKgSubmitEvent, param: T): Promise<boolean>;
|
171
171
|
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
172
|
-
buttonType?:
|
172
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
173
173
|
buttonVarName?: string | null;
|
174
174
|
properties: VarSubmitDetail;
|
175
175
|
varName: string | null | undefined;
|
@@ -178,9 +178,9 @@ export interface IUseKgSubmitStoreActions {
|
|
178
178
|
* 退订事件监听.
|
179
179
|
* @param formID 界面标识.
|
180
180
|
* @param event 事件名称.
|
181
|
-
* @param
|
181
|
+
* @param listener 事件监听函数.
|
182
182
|
*/
|
183
|
-
removeEventListener(formID: string, event: IKgSubmitEvent,
|
183
|
+
removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
|
184
184
|
setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
|
185
185
|
setIsLoading(formID: string, value: boolean): void;
|
186
186
|
}
|
@@ -35,54 +35,54 @@ export interface IUseKgTable {
|
|
35
35
|
kgSearchFormID: ComputedRef<string>;
|
36
36
|
/**
|
37
37
|
* 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
38
|
-
* @param
|
39
|
-
* @param
|
38
|
+
* @param listener 事件监听函数.
|
39
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
40
40
|
*/
|
41
|
-
onAfterSearch(
|
41
|
+
onAfterSearch(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
42
42
|
/**
|
43
43
|
* 监听事件: 即将解析请求参数.
|
44
|
-
* @param
|
45
|
-
* @param
|
44
|
+
* @param listener 事件监听函数.
|
45
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
46
46
|
*/
|
47
|
-
onBeforeParseParameter(
|
47
|
+
onBeforeParseParameter(listener: IKgTableBeforeParseParameterEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
48
48
|
/**
|
49
49
|
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
50
|
-
* @param
|
51
|
-
* @param
|
50
|
+
* @param listener 事件监听函数.
|
51
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
52
52
|
* @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
|
53
53
|
*/
|
54
|
-
onBeforeRetrieve(
|
54
|
+
onBeforeRetrieve(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
55
55
|
/**
|
56
56
|
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
57
|
-
* @param
|
58
|
-
* @param
|
57
|
+
* @param listener 事件监听函数.
|
58
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
59
59
|
*/
|
60
|
-
onBeforeSearch(
|
60
|
+
onBeforeSearch(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
61
61
|
/**
|
62
62
|
* 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
63
|
-
* @param
|
64
|
-
* @param
|
63
|
+
* @param listener 事件监听函数.
|
64
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
65
65
|
*/
|
66
|
-
onBeforeSetDatas(
|
66
|
+
onBeforeSetDatas(listener: IKgTableBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
67
67
|
/**
|
68
68
|
* 监听事件: ready, 配置初始完成, 组件渲染完成.
|
69
|
-
* @param
|
70
|
-
* @param
|
69
|
+
* @param listener 事件监听函数.
|
70
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
71
71
|
*/
|
72
|
-
onReady(
|
72
|
+
onReady(listener: IKgTableReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
73
73
|
/**
|
74
74
|
* 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
75
|
-
* @param
|
76
|
-
* @param
|
75
|
+
* @param listener 事件监听函数.
|
76
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
77
77
|
* @deprecated 已废弃, 请使用 onAfterSearch() 方法.
|
78
78
|
*/
|
79
|
-
onRetrieve(
|
79
|
+
onRetrieve(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
80
80
|
/**
|
81
81
|
* 监听事件: 双击某行.
|
82
|
-
* @param
|
83
|
-
* @param
|
82
|
+
* @param listener 事件监听函数.
|
83
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
84
84
|
*/
|
85
|
-
onRowDoubleClick(
|
85
|
+
onRowDoubleClick(listener: IKgTableRowDoubleClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
86
86
|
/** 当前分页选项. */
|
87
87
|
pageSizeOption: ComputedRef<number>;
|
88
88
|
/** 所有分页选项. */
|
@@ -36,8 +36,14 @@ export declare type IKgTableBeforeRequestEventListenerParameter = {
|
|
36
36
|
};
|
37
37
|
export declare type IKgTableBeforeRequestEventListener = ((param: IKgTableBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
38
38
|
export declare type IKgTableBeforeSetDatasEventListenerParameter = {
|
39
|
-
/**
|
39
|
+
/**
|
40
|
+
* 列表数据.
|
41
|
+
*/
|
40
42
|
datas: Ref<Array<IKgTableRow>>;
|
43
|
+
/**
|
44
|
+
* 数据总数.
|
45
|
+
*/
|
46
|
+
total: Ref<Number>;
|
41
47
|
};
|
42
48
|
export declare type IKgTableBeforeSetDatasEventListener = ((param: IKgTableBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
43
49
|
export declare type IKgTableAfterRequestEventListenerParameter = {
|
@@ -136,9 +142,9 @@ export interface IUseKgTableStoreActions {
|
|
136
142
|
* 注册事件监听.
|
137
143
|
* @param formID 界面标识.
|
138
144
|
* @param event 事件名称.
|
139
|
-
* @param
|
145
|
+
* @param listener 事件监听函数.
|
140
146
|
*/
|
141
|
-
addEventListener(formID: string | null | undefined, event: IKgTableEvent,
|
147
|
+
addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: IKgTableEventListener): void;
|
142
148
|
/**
|
143
149
|
* 修改「表格配置」的部分属性.
|
144
150
|
*
|
@@ -175,9 +181,9 @@ export interface IUseKgTableStoreActions {
|
|
175
181
|
* 退订事件监听.
|
176
182
|
* @param formID 界面标识.
|
177
183
|
* @param event 事件名称.
|
178
|
-
* @param
|
184
|
+
* @param listener 事件监听函数.
|
179
185
|
*/
|
180
|
-
removeEventListener(formID: string | null | undefined, event: IKgTableEvent,
|
186
|
+
removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: IKgTableEventListener): void;
|
181
187
|
/**
|
182
188
|
* 设置列表数据.
|
183
189
|
* @param param.frmId 界面标识.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { IRemoveEventListenerHandler,
|
2
|
+
import { IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE } from '../../consts';
|
3
3
|
import { IUseKgButton } from '../KgButton';
|
4
4
|
import { IUseKgForm } from '../KgForm';
|
5
5
|
import { type IUseKgSearch } from '../KgSearch';
|
@@ -38,12 +38,12 @@ export declare type IUseKgVar = {
|
|
38
38
|
* </li>
|
39
39
|
* </ul>
|
40
40
|
*
|
41
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
41
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
42
42
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
43
43
|
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
|
44
44
|
*/
|
45
45
|
getVarConfigControl(param: {
|
46
|
-
buttonType?:
|
46
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
47
47
|
buttonVarName?: string | null;
|
48
48
|
varName: string | null | undefined;
|
49
49
|
}): ReturnType<IKgVarStore['getVarConfigControl']>;
|
@@ -94,10 +94,10 @@ export declare type IUseKgVar = {
|
|
94
94
|
/**
|
95
95
|
* 监听事件: 变量配置数据查询完成.
|
96
96
|
*
|
97
|
-
* @param
|
98
|
-
* @param
|
97
|
+
* @param listener 事件监听函数.
|
98
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
99
99
|
*/
|
100
|
-
onRetrieve(
|
100
|
+
onRetrieve(listener: IKgVarRetrieveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
101
101
|
/**
|
102
102
|
* 查询所有变量配置.
|
103
103
|
*
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
3
|
-
import { IKgEventListener,
|
3
|
+
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'retrieve': 变量配置查询完成
|
@@ -97,13 +97,12 @@ export interface IUseKgVarStoreGetters {
|
|
97
97
|
* 和 var_nam 获取 VarButton.
|
98
98
|
*/
|
99
99
|
getVarButton(): (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
|
100
|
-
getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
|
101
100
|
getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
|
102
101
|
getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
|
103
102
|
getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
|
104
103
|
getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
|
105
104
|
getVarConfigControl(): (formID: string | null | undefined, param: {
|
106
|
-
buttonType?:
|
105
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
107
106
|
buttonVarName?: string | null;
|
108
107
|
varName: string | null | undefined;
|
109
108
|
}) => VarConfigControl | null;
|
@@ -151,9 +150,9 @@ export interface IUseKgVarStoreActions {
|
|
151
150
|
* 注册事件监听.
|
152
151
|
* @param formID 界面标识.
|
153
152
|
* @param event 事件名称.
|
154
|
-
* @param
|
153
|
+
* @param listener 事件监听函数.
|
155
154
|
*/
|
156
|
-
addEventListener(formID: string, event: IKgVarEvent,
|
155
|
+
addEventListener(formID: string, event: IKgVarEvent, listener: IKgVarEventListener): void;
|
157
156
|
/**
|
158
157
|
* <p>离开一个界面, 即销毁一个界面.</p>
|
159
158
|
* <p>删除它的变量配置数据.</p>
|
@@ -209,9 +208,9 @@ export interface IUseKgVarStoreActions {
|
|
209
208
|
* 退订事件监听.
|
210
209
|
* @param formID 界面标识.
|
211
210
|
* @param event 事件名称.
|
212
|
-
* @param
|
211
|
+
* @param listener 事件监听函数.
|
213
212
|
*/
|
214
|
-
removeEventListener(formID: string, event: IKgVarEvent,
|
213
|
+
removeEventListener(formID: string, event: IKgVarEvent, listener?: IKgVarEventListener): void;
|
215
214
|
/**
|
216
215
|
* 查询所有变量配置.
|
217
216
|
*
|
package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const getProps: () => any;
|
3
|
-
export declare type
|
3
|
+
export declare type KgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
5
|
[x: string]: any;
|
6
6
|
}>;
|
@@ -1,13 +1,7 @@
|
|
1
|
-
import { ExtractPropTypes
|
2
|
-
export declare const getProps: () =>
|
3
|
-
|
4
|
-
}
|
5
|
-
|
6
|
-
|
7
|
-
onKgClose: PropType<() => void>;
|
8
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
9
|
-
onKgClose: PropType<() => void>;
|
10
|
-
}>> & {
|
11
|
-
onKgClose?: ((...args: any[]) => any) | undefined;
|
12
|
-
}, {}>;
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
13
7
|
export default _default;
|
@@ -6,10 +6,10 @@ import { IKgWarehouseMountedEventListener, IKgWarehouseStore } from './index.sto
|
|
6
6
|
export declare type IUseKgWarehouse = {
|
7
7
|
/**
|
8
8
|
* 监听事件: 组件加载完成.
|
9
|
-
* @param
|
10
|
-
* @param
|
9
|
+
* @param listener 事件监听函数.
|
10
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
11
11
|
*/
|
12
|
-
onMounted(
|
12
|
+
onMounted(listener: IKgWarehouseMountedEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
13
13
|
store: IKgWarehouseStore;
|
14
14
|
/**
|
15
15
|
* 弹窗当前是否显示.
|
@@ -30,15 +30,15 @@ export interface IUseKgWarehouseStoreActions {
|
|
30
30
|
/**
|
31
31
|
* 注册事件监听.
|
32
32
|
* @param event 事件名称.
|
33
|
-
* @param
|
33
|
+
* @param listener 事件监听函数.
|
34
34
|
*/
|
35
|
-
addEventListener(event: IKgWarehouseEvent,
|
35
|
+
addEventListener(event: IKgWarehouseEvent, listener: IKgWarehouseEventListener): void;
|
36
36
|
/**
|
37
37
|
* 退订事件监听.
|
38
38
|
* @param event 事件名称.
|
39
|
-
* @param
|
39
|
+
* @param listener 事件监听函数.
|
40
40
|
*/
|
41
|
-
removeEventListener(event: IKgWarehouseEvent,
|
41
|
+
removeEventListener(event: IKgWarehouseEvent, listener?: IKgWarehouseEventListener): void;
|
42
42
|
/**
|
43
43
|
* 触发事件.
|
44
44
|
* @param event 事件名称.
|