@kengic/vue 0.26.3 → 0.26.5-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +519 -457
- package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
- package/dist/src/components/KgButton/index.store.d.ts +4 -4
- package/dist/src/components/KgForm/index.store.d.ts +9 -9
- package/dist/src/components/KgSearch/index.store.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.hooks.d.ts +16 -2
- package/dist/src/components/KgSubmit/index.store.d.ts +22 -14
- package/dist/src/components/KgTable/index.store.d.ts +6 -6
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/consts/index.vm.d.ts +2 -1
- package/dist/src/project/src/store/modules/locale.d.ts +7 -7
- package/dist/src/project/src/utils/cache/memory.d.ts +3 -1
- package/dist/src/utils/kg-var.util.d.ts +0 -14
- package/dist/src/utils/kg.util.d.ts +13 -2
- package/package.json +1 -1
@@ -21,8 +21,8 @@ export interface IUseKgAppSelectStoreState {
|
|
21
21
|
* 当前模块.
|
22
22
|
*/
|
23
23
|
currentApp: KG_APP | null;
|
24
|
-
|
25
|
-
|
24
|
+
gotoAppEventListenerMap: Map<string, Array<IKgAppSelectGotoAppEventListener>>;
|
25
|
+
gotoPathEventListenerMap: Map<string, Array<IKgAppSelectGotoPathEventListener>>;
|
26
26
|
}
|
27
27
|
export interface IUseKgAppSelectStoreGetters {
|
28
28
|
getCurrentApp(): KG_APP;
|
@@ -27,13 +27,13 @@ export declare type IKgButtonSubmitCancelEventListener = ((param: IKgButtonSubmi
|
|
27
27
|
export declare type IKgButtonEventListenerParameter = IKgButtonClickEventListenerParameter | IKgButtonImportOkEventListenerParameter | IKgButtonSubmitSaveEventListenerParameter | IKgButtonSubmitCancelEventListenerParameter;
|
28
28
|
export declare type IKgButtonEventListener = IKgButtonClickEventListener | IKgButtonImportOkEventListener | IKgButtonSubmitSaveEventListener | IKgButtonSubmitCancelEventListener;
|
29
29
|
export interface IUseKgButtonStoreState {
|
30
|
-
|
30
|
+
clickEventListenerMap: Map<string, Array<IKgButtonClickEventListener>>;
|
31
31
|
/**
|
32
32
|
* <p>当前按钮.</p>
|
33
33
|
* <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
|
34
34
|
*/
|
35
35
|
currentButtonMap: Map<string, VarButton | null>;
|
36
|
-
|
36
|
+
importOkEventListenerMap: Map<string, Array<IKgButtonImportOkEventListener>>;
|
37
37
|
/**
|
38
38
|
* <p>按钮的 click 事件是否被拦截.</p>
|
39
39
|
* <p>用户调用 kgVar.kgButton.onClick(listener) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
|
@@ -45,8 +45,8 @@ export interface IUseKgButtonStoreState {
|
|
45
45
|
* <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
|
46
46
|
*/
|
47
47
|
isCurrentButtonRequestingMap: Map<string, boolean>;
|
48
|
-
|
49
|
-
|
48
|
+
submitCancelEventListenerMap: Map<string, Array<IKgButtonSubmitCancelEventListener>>;
|
49
|
+
submitSaveEventListenerMap: Map<string, Array<IKgButtonSubmitSaveEventListener>>;
|
50
50
|
}
|
51
51
|
export interface IUseKgButtonStoreGetters {
|
52
52
|
getButtonDescription(): (formID: string | null | undefined, param: {
|
@@ -5,14 +5,14 @@ import { IKgTableRow } from '../KgTable';
|
|
5
5
|
/**
|
6
6
|
* 事件类型.
|
7
7
|
* 'change': 表单控件的值发生变更
|
8
|
-
* '
|
8
|
+
* 'onSelectBeforeRequest': 即将发起查询请求, 如果返回 true 表示不会发起请求,
|
9
9
|
* 'selectBeforeSetDatas': 下拉列表查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
|
10
10
|
* 'selectChange': 下拉列表选中某个(可能多个)数据
|
11
11
|
* 'lookupBeforeOpen': 查找弹窗打开之前
|
12
12
|
* 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
|
13
13
|
* 'lookupOk': 查找弹窗点击确定
|
14
14
|
*/
|
15
|
-
export declare type IKgFormEvent = 'change' | '
|
15
|
+
export declare type IKgFormEvent = 'change' | 'onSelectBeforeRequest' | 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
|
16
16
|
export declare type IKgFormChangeEventListenerParameter = {
|
17
17
|
/**
|
18
18
|
* 表单控件所处环境.
|
@@ -168,13 +168,13 @@ export declare type IKgFormLookupOkEventListener = ((param: IKgFormLookupOkEvent
|
|
168
168
|
export declare type IKgFormEventListenerParameter = IKgFormChangeEventListenerParameter | IKgFormSelectBeforeRequestEventListenerParameter | IKgFormSelectBeforeSetDatasEventListenerParameter | IKgFormSelectChangeEventListenerParameter | IKgFormLookupBeforeOpenEventListenerParameter | IKgFormLookupBeforeOkEventListenerParameter | IKgFormLookupOkEventListenerParameter;
|
169
169
|
export declare type IKgFormEventListener = IKgFormChangeEventListener | IKgFormSelectBeforeRequestEventListener | IKgFormSelectBeforeSetDatasEventListener | IKgFormSelectChangeEventListener | IKgFormLookupBeforeOpenEventListener | IKgFormLookupBeforeOkEventListener | IKgFormLookupOkEventListener;
|
170
170
|
export interface IUseKgFormStoreState {
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
171
|
+
changeEventListenerMap: Map<string, Array<IKgFormChangeEventListener>>;
|
172
|
+
lookupBeforeOkEventListenerMap: Map<string, Array<IKgFormLookupBeforeOkEventListener>>;
|
173
|
+
lookupBeforeOpenEventListenerMap: Map<string, Array<IKgFormLookupBeforeOpenEventListener>>;
|
174
|
+
lookupOkEventListenerMap: Map<string, Array<IKgFormLookupOkEventListener>>;
|
175
|
+
selectBeforeRequestEventListenerMap: Map<string, Array<IKgFormSelectBeforeRequestEventListener>>;
|
176
|
+
selectBeforeSetDatasEventListenerMap: Map<string, Array<IKgFormSelectBeforeSetDatasEventListener>>;
|
177
|
+
selectChangeEventListenerMap: Map<string, Array<IKgFormSelectChangeEventListener>>;
|
178
178
|
}
|
179
179
|
export interface IUseKgFormStoreGetters {
|
180
180
|
}
|
@@ -33,11 +33,11 @@ export interface IUseKgSearchStoreState {
|
|
33
33
|
*/
|
34
34
|
isReadyMap: Map<string, boolean>;
|
35
35
|
/** 事件监听函数列表: ready. */
|
36
|
-
|
36
|
+
onReadyEventListenerMap: Map<string, Array<IKgSearchReadyEventListener>>;
|
37
37
|
/** 事件监听函数列表: reset. */
|
38
|
-
|
38
|
+
onResetEventListenerMap: Map<string, Array<IKgSearchResetEventListener>>;
|
39
39
|
/** 事件监听函数列表: search. */
|
40
|
-
|
40
|
+
onSearchEventListenerMap: Map<string, Array<IKgSearchSearchEventListener>>;
|
41
41
|
/** 重置方法, 可供外部调用, 用来触发重置操作. */
|
42
42
|
resetFnMap: Map<string, IKgSearchResetFn>;
|
43
43
|
/** 查询方法, 可供外部调用, 用来触发查询操作. */
|
@@ -2,7 +2,7 @@ import { FormInstance } from 'ant-design-vue';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
4
4
|
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
|
5
|
-
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener,
|
5
|
+
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
7
|
/**
|
8
8
|
* <p>添加一个「提交表单字段」.</p>
|
@@ -158,6 +158,13 @@ export interface IUseKgSubmit {
|
|
158
158
|
* @return {} 移除事件监听函数.
|
159
159
|
*/
|
160
160
|
onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
161
|
+
/**
|
162
|
+
* <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗.</p>
|
163
|
+
* @param listener 事件监听函数.
|
164
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
165
|
+
* @return {} 移除事件监听函数.
|
166
|
+
*/
|
167
|
+
onBeforeCancel(listener: IKgSubmitOnBeforeCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
161
168
|
/**
|
162
169
|
* <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
|
163
170
|
* <ul>
|
@@ -187,6 +194,13 @@ export interface IUseKgSubmit {
|
|
187
194
|
* @return {} 移除事件监听函数.
|
188
195
|
*/
|
189
196
|
onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
197
|
+
/**
|
198
|
+
* <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗.</p>
|
199
|
+
* @param listener 事件监听函数.
|
200
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
201
|
+
* @return {} 移除事件监听函数.
|
202
|
+
*/
|
203
|
+
onCancel(listener: IKgSubmitOnCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
190
204
|
/**
|
191
205
|
* <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
|
192
206
|
* <ul>
|
@@ -219,7 +233,7 @@ export interface IUseKgSubmit {
|
|
219
233
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
220
234
|
* @return {} 移除事件监听函数.
|
221
235
|
*/
|
222
|
-
onOpen(listener:
|
236
|
+
onOpen(listener: IKgSubmitOnOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
223
237
|
/**
|
224
238
|
* <p>修改某个「提交表单字段」的部分属性.</p>
|
225
239
|
*
|
@@ -9,15 +9,17 @@ import { IKgTableRow } from '../KgTable';
|
|
9
9
|
/**
|
10
10
|
* 事件类型.
|
11
11
|
* 'beforeOpen': 打开提交弹窗之前
|
12
|
-
* '
|
12
|
+
* 'onOpen': 打开提交弹窗
|
13
13
|
* 'beforeOk': 点击确认按钮之后, 执行默认逻辑之前
|
14
14
|
* 'afterValidate': 点击确认按钮之后, 表单验证完成,
|
15
15
|
* 'beforeRequest': 发起接口请求之前. 表单验证完成, 参数解析完成,
|
16
16
|
* 'ok': 请求成功, 关闭提交弹窗之后
|
17
|
+
* 'onBeforeCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗,
|
18
|
+
* 'onCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗,
|
17
19
|
* 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
|
18
20
|
* 'close': 关闭提交弹窗
|
19
21
|
*/
|
20
|
-
export declare type IKgSubmitEvent = 'beforeOpen' | '
|
22
|
+
export declare type IKgSubmitEvent = 'beforeOpen' | 'onOpen' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'onBeforeCancel' | 'onCancel' | 'error' | 'close';
|
21
23
|
export declare type IKgSubmitBeforeOpenEventListenerParameter = {
|
22
24
|
isCreating: boolean | null;
|
23
25
|
isUpdating: boolean | null;
|
@@ -26,7 +28,7 @@ export declare type IKgSubmitBeforeOpenEventListenerParameter = {
|
|
26
28
|
row: IKgTableRow | null;
|
27
29
|
};
|
28
30
|
export declare type IKgSubmitBeforeOpenEventListener = ((param: IKgSubmitBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
29
|
-
export declare type
|
31
|
+
export declare type IKgSubmitOnOpenEventListenerParameter = {
|
30
32
|
/** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
|
31
33
|
isCreating: boolean | null;
|
32
34
|
/** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
|
@@ -40,7 +42,7 @@ export declare type IKgSubmitOpenEventListenerParameter = {
|
|
40
42
|
/** @deprecated 请直接使用 {@link IUseKgSearch.formModel} */
|
41
43
|
model: Ref<Record<string, any>>;
|
42
44
|
};
|
43
|
-
export declare type
|
45
|
+
export declare type IKgSubmitOnOpenEventListener = ((param: IKgSubmitOnOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
44
46
|
export declare type IKgSubmitBeforeOkEventListenerParameter = {
|
45
47
|
/**
|
46
48
|
* 表单数据对象.
|
@@ -95,19 +97,23 @@ export declare type IKgSubmitOkEventListenerParameter = {
|
|
95
97
|
result: any | null;
|
96
98
|
};
|
97
99
|
export declare type IKgSubmitOkEventListener = ((param: IKgSubmitOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
100
|
+
export declare type IKgSubmitOnBeforeCancelEventListenerParameter = {};
|
101
|
+
export declare type IKgSubmitOnBeforeCancelEventListener = ((param: IKgSubmitOnBeforeCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
102
|
+
export declare type IKgSubmitOnCancelEventListenerParameter = {};
|
103
|
+
export declare type IKgSubmitOnCancelEventListener = ((param: IKgSubmitOnCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
98
104
|
export declare type IKgSubmitErrorEventListenerParameter = {};
|
99
105
|
export declare type IKgSubmitErrorEventListener = ((param: IKgSubmitErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
100
106
|
export declare type IKgSubmitCloseEventListenerParameter = {} | null | undefined;
|
101
107
|
export declare type IKgSubmitCloseEventListener = ((param: IKgSubmitCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
102
|
-
export declare type IKgSubmitEventListenerParameter = IKgSubmitBeforeOpenEventListenerParameter |
|
103
|
-
export declare type IKgSubmitEventListener = IKgSubmitBeforeOpenEventListener |
|
108
|
+
export declare type IKgSubmitEventListenerParameter = IKgSubmitBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitBeforeOkEventListenerParameter | IKgSubmitAfterValidateEventListenerParameter | IKgSubmitBeforeRequestEventListenerParameter | IKgSubmitOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitErrorEventListenerParameter | IKgSubmitCloseEventListenerParameter;
|
109
|
+
export declare type IKgSubmitEventListener = IKgSubmitBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitBeforeOkEventListener | IKgSubmitAfterValidateEventListener | IKgSubmitBeforeRequestEventListener | IKgSubmitOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitErrorEventListener | IKgSubmitCloseEventListener;
|
104
110
|
export interface IUseKgSubmitStoreState {
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
+
afterValidateEventListenerMap: Map<string, Array<IKgSubmitAfterValidateEventListener>>;
|
112
|
+
beforeOkEventListenerMap: Map<string, Array<IKgSubmitBeforeOkEventListener>>;
|
113
|
+
beforeOpenEventListenerMap: Map<string, Array<IKgSubmitBeforeOpenEventListener>>;
|
114
|
+
beforeRequestEventListenerMap: Map<string, Array<IKgSubmitBeforeRequestEventListener>>;
|
115
|
+
closeEventListenerMap: Map<string, Array<IKgSubmitCloseEventListener>>;
|
116
|
+
errorEventListenerMap: Map<string, Array<IKgSubmitErrorEventListener>>;
|
111
117
|
/** 表单数据对象. */
|
112
118
|
formModelMap: Map<string, Record<string, any>>;
|
113
119
|
/** 表单对象. */
|
@@ -118,8 +124,10 @@ export interface IUseKgSubmitStoreState {
|
|
118
124
|
*/
|
119
125
|
formRulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
|
120
126
|
isLoadingMap: Map<string, boolean>;
|
121
|
-
|
122
|
-
|
127
|
+
okEventListenerMap: Map<string, Array<IKgSubmitOkEventListener>>;
|
128
|
+
onBeforeCancelEventListenerMap: Map<string, Array<IKgSubmitOnBeforeCancelEventListener>>;
|
129
|
+
onCancelEventListenerMap: Map<string, Array<IKgSubmitOnCancelEventListener>>;
|
130
|
+
openEventListenerMap: Map<string, Array<IKgSubmitOnOpenEventListener>>;
|
123
131
|
}
|
124
132
|
export interface IUseKgSubmitStoreGetters {
|
125
133
|
getFormModel(): (formID?: string | null) => Record<string, any> | null;
|
@@ -58,10 +58,10 @@ export declare type IKgTableAfterRequestEventListener = ((param: IKgTableAfterRe
|
|
58
58
|
export declare type IKgTableEventListenerParameter = IKgTableReadyEventListenerParameter | IKgTableRowDoubleClickEventListenerParameter | IKgTableBeforeParseRequestParameterEventListenerParameter | IKgTableBeforeRequestEventListenerParameter | IKgTableBeforeSetDatasEventListenerParameter | IKgTableAfterRequestEventListenerParameter;
|
59
59
|
export declare type IKgTableEventListener = IKgTableReadyEventListener | IKgTableRowDoubleClickEventListener | IKgTableBeforeParseParameterEventListener | IKgTableBeforeRequestEventListener | IKgTableBeforeSetDatasEventListener | IKgTableAfterRequestEventListener;
|
60
60
|
export interface IUseKgTableStoreState {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
afterRequestEventListenerMap: Map<string, Array<IKgTableAfterRequestEventListener>>;
|
62
|
+
beforeParseParameterEventListenerMap: Map<string, Array<IKgTableBeforeParseParameterEventListener>>;
|
63
|
+
beforeRequestEventListenerMap: Map<string, Array<IKgTableBeforeRequestEventListener>>;
|
64
|
+
beforeSetDatasEventListenerMap: Map<string, Array<IKgTableBeforeSetDatasEventListener>>;
|
65
65
|
/** 列表数据. */
|
66
66
|
datasMap: Map<String, Array<any>>;
|
67
67
|
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
@@ -88,14 +88,14 @@ export interface IUseKgTableStoreState {
|
|
88
88
|
*/
|
89
89
|
isShowDescriptionMap: Map<string, boolean>;
|
90
90
|
/** 事件监听函数列表: ready. */
|
91
|
-
|
91
|
+
onReadyEventListenerMap: Map<string, Array<IKgTableReadyEventListener>>;
|
92
92
|
/**
|
93
93
|
* <p>查询参数.</p>
|
94
94
|
* <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
|
95
95
|
*/
|
96
96
|
requestParamsMap: Map<string, Record<string, any>>;
|
97
97
|
/** '双击某行'事件监听函数列表. */
|
98
|
-
|
98
|
+
rowDoubleClickEventListenerMap: Map<string, Array<IKgTableRowDoubleClickEventListener>>;
|
99
99
|
/** 行高. */
|
100
100
|
rowHeightMap: Map<string, IKgTableRowHeight>;
|
101
101
|
/** 勾选的行的主键. */
|
@@ -36,7 +36,7 @@ export interface IUseKgVarStoreState {
|
|
36
36
|
*/
|
37
37
|
levelMap: Map<string, number>;
|
38
38
|
/** 事件监听函数列表: retrieve. */
|
39
|
-
|
39
|
+
onRetrieveEventListenerMap: Map<string, Array<IKgVarRetrieveEventListener>>;
|
40
40
|
varButtonConfigMap: Map<string, VarButtonConfig | null>;
|
41
41
|
varButtonMap: Map<string, Array<VarButton>>;
|
42
42
|
varChildDetailMap: Map<string, Array<VarChildDetail>>;
|
@@ -623,7 +623,7 @@ export interface IKgVarGridDetailDisplayTypeProperties {
|
|
623
623
|
description?: {
|
624
624
|
/**
|
625
625
|
* <p>对应的是 {@link Description.codnam}.</p>
|
626
|
-
* <p>当该配置项不为空时,
|
626
|
+
* <p>当该配置项不为空时, 表示描述来自于系统描述表, 否则来自于 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 对应的列.<p>
|
627
627
|
*/
|
628
628
|
codeName?: string;
|
629
629
|
/**
|
@@ -649,6 +649,7 @@ export interface IKgVarGridDetailDisplayTypeProperties {
|
|
649
649
|
/**
|
650
650
|
* <p>默认情况下, 当原始列的列名为 xyz 时, 描述列的列名为 xyz_dsc 或者 xyzDsc.</p>
|
651
651
|
* <p>通过该配置项可以将描述列的列名配置为其他值.</p>
|
652
|
+
* @default <列名>_dsc 或者 <列名>Dsc
|
652
653
|
*/
|
653
654
|
dscFieldName?: string;
|
654
655
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { LocaleSetting, LocaleType } from '../../../types';
|
2
2
|
interface LocaleState {
|
3
3
|
localInfo: LocaleSetting;
|
4
|
-
pathTitleMap:
|
4
|
+
pathTitleMap: Record<string, string>;
|
5
5
|
}
|
6
6
|
export declare const _useLocaleStore: import("pinia").StoreDefinition<"app-locale", LocaleState, {
|
7
7
|
getShowPicker(): boolean;
|
@@ -13,11 +13,11 @@ export declare const _useLocaleStore: import("pinia").StoreDefinition<"app-local
|
|
13
13
|
fallback: LocaleType;
|
14
14
|
availableLocales: LocaleType[];
|
15
15
|
};
|
16
|
-
pathTitleMap:
|
17
|
-
} & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path:
|
16
|
+
pathTitleMap: Record<string, string>;
|
17
|
+
} & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: string) => string;
|
18
18
|
}, {
|
19
19
|
setLocaleInfo(info: Partial<LocaleSetting>): void;
|
20
|
-
setPathTitle(path:
|
20
|
+
setPathTitle(path: string, title: string): void;
|
21
21
|
}>;
|
22
22
|
export declare function useLocaleStore(): import("pinia").Store<"app-locale", LocaleState, {
|
23
23
|
getShowPicker(): boolean;
|
@@ -29,10 +29,10 @@ export declare function useLocaleStore(): import("pinia").Store<"app-locale", Lo
|
|
29
29
|
fallback: LocaleType;
|
30
30
|
availableLocales: LocaleType[];
|
31
31
|
};
|
32
|
-
pathTitleMap:
|
33
|
-
} & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path:
|
32
|
+
pathTitleMap: Record<string, string>;
|
33
|
+
} & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: string) => string;
|
34
34
|
}, {
|
35
35
|
setLocaleInfo(info: Partial<LocaleSetting>): void;
|
36
|
-
setPathTitle(path:
|
36
|
+
setPathTitle(path: string, title: string): void;
|
37
37
|
}>;
|
38
38
|
export {};
|
@@ -9,7 +9,9 @@ export declare class Memory<T = any, V = any> {
|
|
9
9
|
private alive;
|
10
10
|
constructor(alive?: number);
|
11
11
|
get getCache(): { [key in keyof T]?: Cache<V> | undefined; };
|
12
|
-
setCache(cache:
|
12
|
+
setCache(cache: {
|
13
|
+
[key in keyof T]?: Cache<V>;
|
14
|
+
}): void;
|
13
15
|
get<K extends keyof T>(key: K): { [key in keyof T]?: Cache<V> | undefined; }[K];
|
14
16
|
set<K extends keyof T>(key: K, value: V, expires?: number): V;
|
15
17
|
remove<K extends keyof T>(key: K): V | undefined;
|
@@ -13,20 +13,6 @@ export declare class KgVarUtil {
|
|
13
13
|
static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
|
14
14
|
/**
|
15
15
|
* <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
|
16
|
-
* <ul>
|
17
|
-
* <li>
|
18
|
-
* {NOW}
|
19
|
-
* <p>当前时间(YYYY-MM-DD HH:mm:ss)</p>
|
20
|
-
* </li>
|
21
|
-
* <li>
|
22
|
-
* {USER}
|
23
|
-
* <p>当前登录的用户名.</p>
|
24
|
-
* </li>
|
25
|
-
* <li>
|
26
|
-
* {ROW}
|
27
|
-
* <p>当前勾选后对应的属性.</p>
|
28
|
-
* </li>
|
29
|
-
* </ul>
|
30
16
|
*
|
31
17
|
* @param param.$dayjs dayjs.
|
32
18
|
* @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
|
@@ -49,13 +49,24 @@ export declare class KgUtil {
|
|
49
49
|
* <ul>
|
50
50
|
* <li>{WAREHOUSE}: 当前仓库编号</li>
|
51
51
|
* <li>{LOCALE}: 当前语言</li>
|
52
|
+
* <li>{NOW}: 当前时间</li>
|
53
|
+
* <li>{USER}: 当前用户</li>
|
54
|
+
* <li>{ROW}: 当前勾选行对应的属性</li>
|
52
55
|
* </ul>
|
53
56
|
* </li>
|
54
57
|
* </ol>
|
55
58
|
*
|
56
|
-
* @param
|
59
|
+
* @param param.$dayjs dayjs.
|
60
|
+
* @param param.formID 界面标识.
|
61
|
+
* @param param.value 参数的原始值.
|
62
|
+
* @param param.varName 变量名称.
|
57
63
|
*/
|
58
|
-
static parseParamFromString(
|
64
|
+
static parseParamFromString(param: {
|
65
|
+
$dayjs?: typeof dayjs;
|
66
|
+
formID?: string | null;
|
67
|
+
value: string;
|
68
|
+
varName?: string | null;
|
69
|
+
}): string;
|
59
70
|
/**
|
60
71
|
* 处理请求参数: 解析 Dayjs 类型的参数值.
|
61
72
|
* @param param.formID 界面标识.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.
|
3
|
+
"version": "0.26.5-beta.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|