@kengic/vue 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +178 -139
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +4201 -3969
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +8 -0
- package/dist/src/components/KgButton/index.hooks.d.ts +74 -199
- package/dist/src/components/KgButton/index.store.d.ts +48 -184
- package/dist/src/components/KgForm/index.hooks.d.ts +22 -28
- package/dist/src/components/KgForm/index.store.d.ts +22 -15
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -4
- package/dist/src/components/KgSearch/index.hooks.d.ts +31 -136
- package/dist/src/components/KgSearch/index.store.d.ts +59 -175
- package/dist/src/components/KgSubmit/index.hooks.d.ts +80 -279
- package/dist/src/components/KgSubmit/index.store.d.ts +40 -225
- package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
- package/dist/src/components/KgTable/index.hooks.d.ts +65 -428
- package/dist/src/components/KgTable/index.store.d.ts +87 -621
- package/dist/src/components/KgVar/index.hooks.d.ts +105 -3622
- package/dist/src/components/KgVar/index.store.d.ts +129 -3213
- package/dist/src/config/index.hooks.d.ts +31 -38
- package/dist/src/config/index.store.d.ts +74 -52
- package/dist/src/consts/i18n/en.d.ts +1 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
- package/dist/src/consts/index.d.ts +20 -13
- package/dist/src/consts/index.vm.d.ts +78 -51
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
- package/dist/src/utils/kg-route.util.d.ts +3 -2
- package/dist/src/utils/kg.util.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +0 -0
- /package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +0 -0
- /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
- /package/dist/src/components/KgSearch/{KgSearch.hooks.d.ts → KgSearch.service.d.ts} +0 -0
- /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
- /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +0 -0
@@ -1,42 +1,35 @@
|
|
1
1
|
import { Pinia } from 'pinia';
|
2
|
+
import { ComputedRef } from 'vue';
|
3
|
+
import { Description } from '../apis/WMS/models';
|
4
|
+
import { IKgStore, P, T } from './index.store';
|
5
|
+
export interface IUseKg {
|
6
|
+
/**
|
7
|
+
* 获取当前语言下的某个描述.
|
8
|
+
*
|
9
|
+
* @param.codeName 描述组名.
|
10
|
+
* @param.codeValue 描述数值.
|
11
|
+
*/
|
12
|
+
getDescription(param: {
|
13
|
+
codeName: string | null | undefined;
|
14
|
+
codeValue: string | null | undefined;
|
15
|
+
}): Description | null;
|
16
|
+
/** 当前语言. */
|
17
|
+
locale: IKgStore['getLocale'];
|
18
|
+
/**
|
19
|
+
* 组件库的配置参数.
|
20
|
+
*/
|
21
|
+
option: ComputedRef<IKgStore['getOption']>;
|
22
|
+
/** 检查权限. */
|
23
|
+
p: P;
|
24
|
+
/**
|
25
|
+
* 路由对象.
|
26
|
+
*/
|
27
|
+
router: ComputedRef<IKgStore['getRouter']>;
|
28
|
+
store: IKgStore;
|
29
|
+
/** 翻译. */
|
30
|
+
t: T;
|
31
|
+
}
|
2
32
|
/**
|
3
33
|
* @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未初始化, 此时需要手动传入 pinia 实例.
|
4
34
|
*/
|
5
|
-
export declare function useKg(pinia?: Pinia):
|
6
|
-
store: import("pinia").Store<"Kg", import("./index.store").IKgState, {
|
7
|
-
getLocale(): import("vue").ComputedRef<import("..").IKgLocale> | null;
|
8
|
-
getRouter(): import("vue-router").Router | null;
|
9
|
-
getUseUserStore(): import("pinia").StoreDefinition<string, import("./index.store").UserState, {
|
10
|
-
getToken(): string;
|
11
|
-
getRoleList(): any[];
|
12
|
-
getUserWarehouses(): import("..").SysUserWarehouseDTO[];
|
13
|
-
getSessionTimeout(): boolean;
|
14
|
-
getUserInfo(): import("./index.store").UserInfo;
|
15
|
-
}, {}> | null;
|
16
|
-
getUsePermissionStore(): import("pinia").StoreDefinition<string, import("./index.store").PermissionState, {
|
17
|
-
getPermCodeList(): string[] | number[];
|
18
|
-
getBackMenuList(): import("..").Menu[];
|
19
|
-
}, import("pinia")._ActionsTree> | null;
|
20
|
-
getOption(): import("./index.store").IKgOption;
|
21
|
-
getPublicPath(): string;
|
22
|
-
}, {
|
23
|
-
setLocale(locale: import("vue").ComputedRef<import("..").IKgLocale> | null): void;
|
24
|
-
setRouter(router: import("vue-router").Router): void;
|
25
|
-
setUseUserStore(useUserStore: import("pinia").StoreDefinition<any, any, any, any>): void;
|
26
|
-
setUsePermissionStore(usePermissionStore: import("pinia").StoreDefinition<any, any, any, any>): void;
|
27
|
-
setT(i18n: any): void;
|
28
|
-
setP(fn: import("./index.store").P): void;
|
29
|
-
setOption(option: import("./index.store").IKgOption): void;
|
30
|
-
t(key: string | null | undefined, ...arg: any[]): string;
|
31
|
-
p(permissionCode?: string | string[] | null | undefined): boolean;
|
32
|
-
}>;
|
33
|
-
/** 当前语言. */
|
34
|
-
locale: import("vue").ComputedRef<import("..").IKgLocale>;
|
35
|
-
router: any;
|
36
|
-
/** 配置参数. */
|
37
|
-
option: import("vue").ComputedRef<import("./index.store").IKgOption>;
|
38
|
-
/** 翻译. */
|
39
|
-
t: (key: string | null | undefined, ...arg: any[]) => string;
|
40
|
-
/** 检查权限. */
|
41
|
-
p: (permissionCode?: string | string[] | null | undefined) => boolean;
|
42
|
-
};
|
35
|
+
export declare function useKg(pinia?: Pinia): IUseKg;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
|
-
import { SysUserWarehouseDTO } from '../apis/WMS/models';
|
4
|
+
import { Description, SysUserWarehouseDTO } from '../apis/WMS/models';
|
5
5
|
import { IKgLocale, KG_APP, Menu } from '../consts';
|
6
6
|
export declare type IKgOption = {
|
7
7
|
/** 模块首页地址. */
|
@@ -161,54 +161,61 @@ export interface PermissionState {
|
|
161
161
|
/** 全部权限配置. */
|
162
162
|
allAuthList: AuthItem[];
|
163
163
|
}
|
164
|
-
export interface
|
164
|
+
export interface IUseKgStoreState {
|
165
|
+
/**
|
166
|
+
* <p>系统描述.</p>
|
167
|
+
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
168
|
+
*/
|
169
|
+
descriptionMap: Map<string, Map<string, Description>>;
|
165
170
|
/** 语言. */
|
166
171
|
locale: ComputedRef<IKgLocale> | null;
|
167
|
-
/**
|
168
|
-
|
172
|
+
/** 配置参数. */
|
173
|
+
option: IKgOption;
|
169
174
|
/** 检查权限的方法. */
|
170
175
|
pFunction: P | null;
|
171
176
|
router: Router | null;
|
172
|
-
/**
|
173
|
-
|
177
|
+
/** 翻译的方法. */
|
178
|
+
tFunction: T | null;
|
174
179
|
/** 权限数据. */
|
175
180
|
usePermissionStore: StoreDefinition | null;
|
176
|
-
/**
|
177
|
-
|
181
|
+
/** 用户数据. */
|
182
|
+
useUserStore: StoreDefinition | null;
|
178
183
|
}
|
179
|
-
export
|
180
|
-
/**
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
184
|
+
export interface IUseKgStoreGetters {
|
185
|
+
/**
|
186
|
+
* 根据 codeName 和 codeValue 获取当前语言下的某个描述.
|
187
|
+
*/
|
188
|
+
getDescription(): (param: {
|
189
|
+
codeName: string | null | undefined;
|
190
|
+
codeValue: string | null | undefined;
|
191
|
+
}) => Description | null;
|
192
|
+
/**
|
193
|
+
* 根据 codeName 获取当前语言下的它的所有描述.
|
194
|
+
*/
|
195
|
+
getDescriptions(): (param: {
|
196
|
+
codeName: string | null | undefined;
|
197
|
+
}) => Array<Description>;
|
198
|
+
/** 组件库的配置参数. */
|
199
|
+
getLocale(): ComputedRef<IKgLocale> | null;
|
200
|
+
/**
|
201
|
+
* 配置参数.
|
202
|
+
*/
|
203
|
+
getOption(): IKgOption;
|
204
|
+
/**
|
205
|
+
* 后端接口地址前缀.
|
206
|
+
*/
|
207
|
+
getPublicPath(): IKgOption;
|
208
|
+
getRouter(): Router | null;
|
209
|
+
/**
|
210
|
+
* 菜单数据.
|
211
|
+
*/
|
190
212
|
getUsePermissionStore(): StoreDefinition<string, PermissionState, {
|
191
213
|
getPermCodeList(): string[] | number[];
|
192
214
|
getBackMenuList(): Menu[];
|
193
215
|
}> | null;
|
194
|
-
/**
|
195
|
-
|
196
|
-
|
197
|
-
setLocale(locale: ComputedRef<IKgLocale> | null): void;
|
198
|
-
setRouter(router: Router): void;
|
199
|
-
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
200
|
-
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
201
|
-
setT(i18n: any): void;
|
202
|
-
setP(fn: P): void;
|
203
|
-
setOption(option: IKgOption): void;
|
204
|
-
/** 翻译. */
|
205
|
-
t: T;
|
206
|
-
/** 检查权限. */
|
207
|
-
p: P;
|
208
|
-
}>;
|
209
|
-
export declare const useKgStore: StoreDefinition<"Kg", IKgState, {
|
210
|
-
getLocale(): ComputedRef<IKgLocale> | null;
|
211
|
-
getRouter(): Router | null;
|
216
|
+
/**
|
217
|
+
* 权限数据.
|
218
|
+
*/
|
212
219
|
getUseUserStore(): StoreDefinition<string, UserState, {
|
213
220
|
getToken(): string;
|
214
221
|
getRoleList(): any[];
|
@@ -216,24 +223,39 @@ export declare const useKgStore: StoreDefinition<"Kg", IKgState, {
|
|
216
223
|
getSessionTimeout(): boolean;
|
217
224
|
getUserInfo(): UserInfo;
|
218
225
|
}, {}> | null;
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
getOption(): IKgOption;
|
226
|
+
}
|
227
|
+
export interface IUseKgStoreActions {
|
228
|
+
/** 检查权限. */
|
229
|
+
p: P;
|
224
230
|
/**
|
225
|
-
*
|
231
|
+
* 请求某组描述数据.
|
232
|
+
*
|
233
|
+
* @param param.codeName 描述组名.
|
226
234
|
*/
|
227
|
-
|
228
|
-
|
235
|
+
requestDescriptions(param: {
|
236
|
+
codeName: string | null | undefined;
|
237
|
+
}): Promise<void>;
|
238
|
+
/**
|
239
|
+
* 设置某组描述的数据.
|
240
|
+
*
|
241
|
+
* @param param.codeName 描述组名.
|
242
|
+
* @param param.descriptions 描述数据.
|
243
|
+
*/
|
244
|
+
setDescriptions(param: {
|
245
|
+
codeName: string | null | undefined;
|
246
|
+
descriptions: Array<Description>;
|
247
|
+
}): void;
|
229
248
|
setLocale(locale: ComputedRef<IKgLocale> | null): void;
|
249
|
+
setOption(option: IKgOption): void;
|
250
|
+
setP(fn: P): void;
|
230
251
|
setRouter(router: Router): void;
|
231
|
-
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
232
|
-
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
233
252
|
setT(i18n: any): void;
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
}
|
253
|
+
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
254
|
+
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
255
|
+
/** 翻译. */
|
256
|
+
t: T;
|
257
|
+
}
|
258
|
+
export declare type IUseKgStore = StoreDefinition<'Kg', IUseKgStoreState, IUseKgStoreGetters, IUseKgStoreActions>;
|
259
|
+
export declare type IKgStore = ReturnType<IUseKgStore>;
|
260
|
+
export declare const useKgStore: IUseKgStore;
|
239
261
|
export {};
|
@@ -30,7 +30,7 @@ export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
|
30
30
|
/**
|
31
31
|
* 表单控件类型.
|
32
32
|
* @see VarConfigControl.ctrl_prop
|
33
|
-
* @see
|
33
|
+
* @see IKgVarConfigControlProperties
|
34
34
|
*/
|
35
35
|
export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
|
36
36
|
/** 文本. */
|
@@ -41,26 +41,26 @@ export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
|
|
41
41
|
INPUT_NUMBER = "INPUT_NUMBER",
|
42
42
|
/**
|
43
43
|
* <p>多行文本.</p>
|
44
|
-
* <p>配置属性参见 {@link
|
44
|
+
* <p>配置属性参见 {@link IKgVarConfigControlProperties.TEXT_AREA}.</p>
|
45
45
|
*/
|
46
46
|
TEXT_AREA = "TEXT_AREA",
|
47
47
|
/** 多选框. */
|
48
48
|
CHECKBOX = "CHECKBOX",
|
49
49
|
/**
|
50
50
|
* <p>多选框列表.</p>
|
51
|
-
* <p>配置属性参见 {@link
|
51
|
+
* <p>配置属性参见 {@link IKgVarConfigControlProperties.CHECKBOX_GROUP}.</p>
|
52
52
|
*/
|
53
53
|
CHECKBOX_GROUP = "CHECKBOX_GROUP",
|
54
54
|
/**
|
55
55
|
* <p>单选框列表.</p>
|
56
|
-
* <p>配置属性参见 {@link
|
56
|
+
* <p>配置属性参见 {@link IKgVarConfigControlProperties.RADIO_GROUP}.</p>
|
57
57
|
*/
|
58
58
|
RADIO_GROUP = "RADIO_GROUP",
|
59
59
|
/** 开关. */
|
60
60
|
SWITCH = "SWITCH",
|
61
61
|
/**
|
62
62
|
* <p>下拉列表单选.<p>
|
63
|
-
* <p>配置属性参见 {@link
|
63
|
+
* <p>配置属性参见 {@link IKgVarConfigControlProperties.SELECT}.</p>
|
64
64
|
*/
|
65
65
|
SELECT = "SELECT",
|
66
66
|
/** 下拉列表多选. */
|
@@ -100,7 +100,7 @@ export declare const enum KG_FORM_CONTEXT {
|
|
100
100
|
/**
|
101
101
|
* 表格单元格的显示类型.
|
102
102
|
* @see VarGridDetail.display_type_properties
|
103
|
-
* @see
|
103
|
+
* @see IKgVarGridDetailDisplayTypeProperties
|
104
104
|
*/
|
105
105
|
export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
|
106
106
|
/** 布尔数据, 使用 KgYesOrNo 组件显示. */
|
@@ -111,19 +111,26 @@ export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
|
|
111
111
|
PROGRESS = "PROGRESS",
|
112
112
|
/** 文件大小, 将以字节(byte)为单位的数字格式化显示(XXX MB, XXX GB, ...). */
|
113
113
|
FILE_SIZE = "FILE_SIZE",
|
114
|
-
/**
|
114
|
+
/** 超链接, 点击打开更新弹窗. */
|
115
115
|
UPDATE_LINK = "UPDATE_LINK",
|
116
|
-
/**
|
116
|
+
/** 超链接, 点击跳转到其他路由. */
|
117
117
|
ROUTE_LINK = "ROUTE_LINK",
|
118
118
|
/**
|
119
|
-
* <p
|
120
|
-
* <p
|
121
|
-
*
|
122
|
-
*
|
119
|
+
* <p>描述. 显示该列的值所对应的描述, 而不是直接显示该列的值.</p>
|
120
|
+
* <p>
|
121
|
+
* 描述的来源有 2 种, 按优先级从高到低依次为:
|
122
|
+
* <ul>
|
123
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 不为空, 则描述来源于系统描述表, 并且默认的 codeValue 就是该列的值,</li>
|
124
|
+
* <li>
|
125
|
+
* <p>否则, 描述来源于描述列.</p>
|
126
|
+
* <p>默认情况下, 描述列的列名为原始列的列名加上 _dsc 或者 Dsc 后缀, 比如原始列的列名为 xyz, 则描述列的列名为 xyz_dsc 或者 xyzDsc, 可以通过 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 将描述列的列名配置为其他值,</p>
|
127
|
+
* </li>
|
128
|
+
* </ul>
|
129
|
+
* </p>
|
123
130
|
*/
|
124
131
|
DESC = "DESC",
|
125
132
|
/**
|
126
|
-
* <p
|
133
|
+
* <p>图片, 可以点击预览大图.</p>
|
127
134
|
*/
|
128
135
|
IMAGE = "IMAGE"
|
129
136
|
}
|
@@ -25,7 +25,7 @@ export declare type IKgLocale = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
|
|
25
25
|
* 按钮确认弹窗的参数.
|
26
26
|
* <p>对应于 {@link VarButton#modal_props} 字段.</p>
|
27
27
|
*/
|
28
|
-
export declare type
|
28
|
+
export declare type IKgVarButtonModalProperties = ModalFuncProps & {
|
29
29
|
/** 是否隐藏取消按钮. */
|
30
30
|
kgHideCancelButton?: boolean;
|
31
31
|
};
|
@@ -33,7 +33,7 @@ export declare type IKgButtonModalProps = ModalFuncProps & {
|
|
33
33
|
* <p>提交弹窗的配置参数.</p>
|
34
34
|
* <p>对应于 {@link VarSubmitConfig#props} 字段.</p>
|
35
35
|
*/
|
36
|
-
export interface
|
36
|
+
export interface IKgVarSubmitConfigProperties {
|
37
37
|
/** 确认按钮. */
|
38
38
|
okButton?: {
|
39
39
|
/** 确认按钮的文本, 实际是一个变量名, 根据变量进行翻译. */
|
@@ -46,7 +46,7 @@ export interface IKgVarSubmitConfigProps {
|
|
46
46
|
* @see VarConfigControl.ctrl_prop
|
47
47
|
* @see KG_FORM_ITEM_TYPE
|
48
48
|
*/
|
49
|
-
export interface
|
49
|
+
export interface IKgVarConfigControlProperties {
|
50
50
|
DATE_RANGE: {
|
51
51
|
/**
|
52
52
|
* <p>是否允许为空.</p>
|
@@ -102,29 +102,66 @@ export interface IKgVariableConfigProps {
|
|
102
102
|
};
|
103
103
|
}
|
104
104
|
/**
|
105
|
-
*
|
105
|
+
* 对应的是 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
|
106
|
+
*
|
106
107
|
* @see VarGridDetail.display_type_properties
|
107
108
|
* @see KG_TABLE_CELL_DISPLAY_TYPE
|
108
109
|
*/
|
109
|
-
export interface
|
110
|
-
|
110
|
+
export interface IKgVarGridDetailDisplayTypeProperties {
|
111
|
+
DESC: {
|
112
|
+
description?: {
|
113
|
+
/**
|
114
|
+
* <p>对应的是 {@link Description.codnam}.</p>
|
115
|
+
* <p>当该配置项不为空时, 表示则描述来源于系统描述表.<p>
|
116
|
+
*/
|
117
|
+
codeName?: string;
|
118
|
+
/**
|
119
|
+
* <p>对应的是 {@link Description.codval}.</p>
|
120
|
+
* <p>默认值为该列的值.</p>
|
121
|
+
* <p>
|
122
|
+
* 可以是一个 JS 表达式, 组件库会解析该表达式, 并得到真正的值. 比如表达式 \`${row.id}\` 表示获取该行的 id 列的值. 表达式中可以使用下列变量:
|
123
|
+
* <ul>
|
124
|
+
* <li>row: 表示该行数据,</li>
|
125
|
+
* </ul>
|
126
|
+
* </p>
|
127
|
+
*/
|
128
|
+
codeValue?: string;
|
129
|
+
/**
|
130
|
+
* <p>是否延迟获取系统描述数据.</p>
|
131
|
+
* <p>默认情况下, 在页面加载后会立即获取 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 对应的系统描述数据. 这种场景适合数据较少的枚举数据.</p>
|
132
|
+
* <p>如果描述数据特别多, 比如每一行的描述都不一样, 则可以将该配置项的值配置为 true, 表示会在表格每次查询的时候, 才去请求这些列表数据对应的系统描述数据.</p>
|
133
|
+
*
|
134
|
+
* @default false
|
135
|
+
*/
|
136
|
+
isDefer?: boolean;
|
137
|
+
};
|
111
138
|
/**
|
112
|
-
*
|
113
|
-
*
|
139
|
+
* <p>默认情况下, 当原始列的列名为 xyz 时, 描述列的列名为 xyz_dsc 或者 xyzDsc.</p>
|
140
|
+
* <p>通过该配置项可以将描述列的列名配置为其他值.</p>
|
114
141
|
*/
|
115
|
-
|
142
|
+
dscFieldName?: string;
|
116
143
|
/**
|
117
|
-
*
|
118
|
-
* @default
|
144
|
+
* 是否显示为一个 Tag 标签.
|
145
|
+
* @default false
|
119
146
|
*/
|
120
|
-
|
147
|
+
isTag?: boolean;
|
121
148
|
/**
|
122
|
-
*
|
123
|
-
* @
|
149
|
+
* <ul>
|
150
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 true, 则此属性用来定义每个值对应的标签颜色分别是什么,</li>
|
151
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 false, 则此属性会被忽略,</li>
|
152
|
+
* </ul>
|
124
153
|
*/
|
125
|
-
|
154
|
+
tagColors?: Array<{
|
155
|
+
/** 值. */
|
156
|
+
value: any;
|
157
|
+
/**
|
158
|
+
* 颜色.
|
159
|
+
* @default 'default'
|
160
|
+
*/
|
161
|
+
color?: string;
|
162
|
+
}>;
|
126
163
|
};
|
127
|
-
/** @deprecated 请使用 {@link
|
164
|
+
/** @deprecated 请使用 {@link IKgVarGridDetailDisplayTypeProperties.DESC}. */
|
128
165
|
ENUM: Array<{
|
129
166
|
/** 变量名称. */
|
130
167
|
varName: string;
|
@@ -136,6 +173,21 @@ export interface IKgGridDetailDisplayTypeProps {
|
|
136
173
|
*/
|
137
174
|
color?: string;
|
138
175
|
}>;
|
176
|
+
FILE_SIZE: {};
|
177
|
+
IMAGE: {
|
178
|
+
/**
|
179
|
+
* 宽度.
|
180
|
+
*
|
181
|
+
* @default 29
|
182
|
+
*/
|
183
|
+
width?: number;
|
184
|
+
/**
|
185
|
+
* 宽度.
|
186
|
+
*
|
187
|
+
* @default 29
|
188
|
+
*/
|
189
|
+
height?: number;
|
190
|
+
};
|
139
191
|
PROGRESS: {
|
140
192
|
/** 左侧数值对应的列. */
|
141
193
|
leftColumn: string;
|
@@ -147,51 +199,26 @@ export interface IKgGridDetailDisplayTypeProps {
|
|
147
199
|
*/
|
148
200
|
textWidth?: 'auto' | string;
|
149
201
|
};
|
150
|
-
FILE_SIZE: {};
|
151
|
-
UPDATE_LINK: {};
|
152
202
|
ROUTE_LINK: {
|
153
203
|
/** 要跳转的路由地址. */
|
154
204
|
path: string;
|
155
205
|
};
|
156
|
-
|
206
|
+
UPDATE_LINK: {};
|
207
|
+
YN: {
|
157
208
|
/**
|
158
|
-
*
|
159
|
-
* @default
|
209
|
+
* 显示为'否'的值.
|
210
|
+
* @default 0
|
160
211
|
*/
|
161
|
-
|
212
|
+
nValue?: any;
|
162
213
|
/**
|
163
|
-
*
|
214
|
+
* 是否将 null/undefined 当成 false.
|
164
215
|
* @default false
|
165
216
|
*/
|
166
|
-
|
167
|
-
/**
|
168
|
-
* <ul>
|
169
|
-
* <li>如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 true, 则此属性用来定义每个值对应的标签颜色分别是什么,</li>
|
170
|
-
* <li>如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 false, 则此属性会被忽略,</li>
|
171
|
-
* </ul>
|
172
|
-
*/
|
173
|
-
tagColors?: Array<{
|
174
|
-
/** 值. */
|
175
|
-
value: any;
|
176
|
-
/**
|
177
|
-
* 颜色.
|
178
|
-
* @default 'default'
|
179
|
-
*/
|
180
|
-
color?: string;
|
181
|
-
}>;
|
182
|
-
};
|
183
|
-
IMAGE: {
|
184
|
-
/**
|
185
|
-
* 宽度.
|
186
|
-
*
|
187
|
-
* @default 29
|
188
|
-
*/
|
189
|
-
width?: number;
|
217
|
+
nilAsFalse?: boolean;
|
190
218
|
/**
|
191
|
-
*
|
192
|
-
*
|
193
|
-
* @default 29
|
219
|
+
* 显示为'是'的值.
|
220
|
+
* @default 1
|
194
221
|
*/
|
195
|
-
|
222
|
+
yValue?: any;
|
196
223
|
};
|
197
224
|
}
|
@@ -1418,4 +1418,4 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
1418
1418
|
}) => void;
|
1419
1419
|
setVarConfigControls: (varConfigControls: Array<VarConfigControl>) => void;
|
1420
1420
|
getVarText: (varNam: string | null | undefined) => string;
|
1421
|
-
}, "
|
1421
|
+
}, "initCreateVarDdaQuery" | "setIsLoading" | "setResultSetMetadataColumns" | "setFrmId" | "patchSysPermission" | "updateVarDda" | "createVarButton" | "patchVarButton" | "deleteVarButton" | "setVarProfileDetails" | "setVarGridDetails" | "setVarSubmitDetails" | "createVarConfigDescription" | "updateVarConfigDescription" | "setVarConfigControls" | "getVarText">>;
|
@@ -7,9 +7,10 @@ export declare class KgRouteUtil {
|
|
7
7
|
*/
|
8
8
|
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* 根据菜单地址地址获取菜单.
|
11
|
+
*
|
11
12
|
* @param menus 菜单列表.
|
12
|
-
* @param path
|
13
|
+
* @param path 菜单地址.
|
13
14
|
* @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
|
14
15
|
*/
|
15
16
|
static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
2
|
import dayjs, { Dayjs } from 'dayjs';
|
3
|
-
import {
|
3
|
+
import { IKgVarButtonModalProperties } from '../consts';
|
4
4
|
/**
|
5
5
|
* 通用工具.
|
6
6
|
*/
|
@@ -94,7 +94,7 @@ export declare class KgUtil {
|
|
94
94
|
* https://www.antdv.com/components/modal
|
95
95
|
* @param props
|
96
96
|
*/
|
97
|
-
static confirm(props:
|
97
|
+
static confirm(props: IKgVarButtonModalProperties): ModalFunc;
|
98
98
|
/**
|
99
99
|
* 如果此错误不是表单验证错误, 则抛出此错误.
|
100
100
|
*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.23.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",
|
/package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|