@kengic/vue 0.26.3 → 0.26.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,8 +21,8 @@ export interface IUseKgAppSelectStoreState {
21
21
  * 当前模块.
22
22
  */
23
23
  currentApp: KG_APP | null;
24
- gotoAppEventListenersMap: Map<string, Array<IKgAppSelectGotoAppEventListener>>;
25
- gotoPathEventListenersMap: Map<string, Array<IKgAppSelectGotoPathEventListener>>;
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
- clickEventListenersMap: Map<string, Array<IKgButtonClickEventListener>>;
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
- importOkEventListenersMap: Map<string, Array<IKgButtonImportOkEventListener>>;
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
- submitCancelEventListenersMap: Map<string, Array<IKgButtonSubmitCancelEventListener>>;
49
- submitSaveEventListenersMap: Map<string, Array<IKgButtonSubmitSaveEventListener>>;
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
- * 'selectBeforeRequest': 即将发起查询请求, 如果返回 true 表示不会发起请求,
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' | 'selectBeforeRequest' | 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
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
- changeEventListenersMap: Map<string, Array<IKgFormChangeEventListener>>;
172
- lookupBeforeOkEventListenersMap: Map<string, Array<IKgFormLookupBeforeOkEventListener>>;
173
- lookupBeforeOpenEventListenersMap: Map<string, Array<IKgFormLookupBeforeOpenEventListener>>;
174
- lookupOkEventListenersMap: Map<string, Array<IKgFormLookupOkEventListener>>;
175
- selectBeforeRequestEventListenersMap: Map<string, Array<IKgFormSelectBeforeRequestEventListener>>;
176
- selectBeforeSetDatasEventListenersMap: Map<string, Array<IKgFormSelectBeforeSetDatasEventListener>>;
177
- selectChangeEventListenersMap: Map<string, Array<IKgFormSelectChangeEventListener>>;
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
- onReadyEventListenersMap: Map<string, Array<IKgSearchReadyEventListener>>;
36
+ onReadyEventListenerMap: Map<string, Array<IKgSearchReadyEventListener>>;
37
37
  /** 事件监听函数列表: reset. */
38
- onResetEventListenersMap: Map<string, Array<IKgSearchResetEventListener>>;
38
+ onResetEventListenerMap: Map<string, Array<IKgSearchResetEventListener>>;
39
39
  /** 事件监听函数列表: search. */
40
- onSearchEventListenersMap: Map<string, Array<IKgSearchSearchEventListener>>;
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, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
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: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
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
- * 'open': 打开提交弹窗
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' | 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close';
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 IKgSubmitOpenEventListenerParameter = {
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 IKgSubmitOpenEventListener = ((param: IKgSubmitOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
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 | IKgSubmitOpenEventListenerParameter | IKgSubmitBeforeOkEventListenerParameter | IKgSubmitAfterValidateEventListenerParameter | IKgSubmitBeforeRequestEventListenerParameter | IKgSubmitOkEventListenerParameter | IKgSubmitErrorEventListenerParameter | IKgSubmitCloseEventListenerParameter;
103
- export declare type IKgSubmitEventListener = IKgSubmitBeforeOpenEventListener | IKgSubmitOpenEventListener | IKgSubmitBeforeOkEventListener | IKgSubmitAfterValidateEventListener | IKgSubmitBeforeRequestEventListener | IKgSubmitOkEventListener | IKgSubmitErrorEventListener | IKgSubmitCloseEventListener;
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
- afterValidateEventListenersMap: Map<string, Array<IKgSubmitAfterValidateEventListener>>;
106
- beforeOkEventListenersMap: Map<string, Array<IKgSubmitBeforeOkEventListener>>;
107
- beforeOpenEventListenersMap: Map<string, Array<IKgSubmitBeforeOpenEventListener>>;
108
- beforeRequestEventListenersMap: Map<string, Array<IKgSubmitBeforeRequestEventListener>>;
109
- closeEventListenersMap: Map<string, Array<IKgSubmitCloseEventListener>>;
110
- errorEventListenersMap: Map<string, Array<IKgSubmitErrorEventListener>>;
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
- okEventListenersMap: Map<string, Array<IKgSubmitOkEventListener>>;
122
- openEventListenersMap: Map<string, Array<IKgSubmitOpenEventListener>>;
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
- afterRequestEventListenersMap: Map<string, Array<IKgTableAfterRequestEventListener>>;
62
- beforeParseParameterEventListenersMap: Map<string, Array<IKgTableBeforeParseParameterEventListener>>;
63
- beforeRequestEventListenersMap: Map<string, Array<IKgTableBeforeRequestEventListener>>;
64
- beforeSetDatasEventListenersMap: Map<string, Array<IKgTableBeforeSetDatasEventListener>>;
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
- onReadyEventListenersMap: Map<string, Array<IKgTableReadyEventListener>>;
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
- rowDoubleClickEventListenersMap: Map<string, Array<IKgTableRowDoubleClickEventListener>>;
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
- onRetrieveEventListenersMap: Map<string, Array<IKgVarRetrieveEventListener>>;
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>当该配置项不为空时, 表示则描述来源于系统描述表.<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: object;
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: object;
17
- } & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: any) => any;
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: any, title: any): void;
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: object;
33
- } & import("pinia").PiniaCustomStateProperties<LocaleState>) => (path: any) => any;
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: any, title: any): void;
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: any): void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.3",
3
+ "version": "0.26.4",
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",