@kengic/vue 0.10.10-beta.0 → 0.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1747 -1755
- package/dist/src/src/apis/WMS/models.d.ts +4 -16
- package/dist/src/src/components/KgTable/KgTable.hooks.d.ts +4 -1
- package/dist/src/src/components/KgVar/index.hooks.d.ts +4 -2
- package/dist/src/src/components/KgVar/index.store.d.ts +6 -7
- package/dist/src/src/components/KgVar/index.store.service.d.ts +1 -2
- package/package.json +1 -1
@@ -175,18 +175,18 @@ export declare class VarDTO {
|
|
175
175
|
varCatalogs?: Array<VarCatalog> | null;
|
176
176
|
/** 变量控件配置. */
|
177
177
|
varConfigs?: Array<VarVariableConfig> | null;
|
178
|
-
/** 表格. */
|
179
|
-
varGrid?: VarGridDTO | null;
|
180
178
|
/** 表格配置. */
|
181
179
|
varGridConfig?: VarGridConfig | null;
|
180
|
+
/** 表格视图列表. */
|
181
|
+
varGridMasters?: Array<VarGridMasterDTO> | null;
|
182
182
|
/** 变量查找. */
|
183
183
|
varLookups?: Array<VarLookup> | null;
|
184
184
|
/** 变量下拉列表配置. */
|
185
185
|
varPossibilities?: Array<VarPossibility> | null;
|
186
|
-
/** 表格. */
|
187
|
-
varProfile?: VarProfileDTO | null;
|
188
186
|
/** 查询条件配置. */
|
189
187
|
varProfileConfig?: VarProfileConfig | null;
|
188
|
+
/** 查询条件视图列表. */
|
189
|
+
varProfileMasters?: Array<VarProfileMasterDTO> | null;
|
190
190
|
/** 表单配置. */
|
191
191
|
varSubmitConfig?: VarSubmitConfig | null;
|
192
192
|
/** 提交字段. */
|
@@ -237,12 +237,6 @@ export declare class VarGridConfig {
|
|
237
237
|
show_check_column_flg?: number | null;
|
238
238
|
constructor(obj?: VarGridConfig);
|
239
239
|
}
|
240
|
-
/** 表格. */
|
241
|
-
export declare class VarGridDTO {
|
242
|
-
/** 表格视图列表. */
|
243
|
-
varGridMasters?: Array<VarGridMasterDTO> | null;
|
244
|
-
constructor(obj?: VarGridDTO);
|
245
|
-
}
|
246
240
|
/** 表格视图明细. */
|
247
241
|
export declare class VarGridDetail {
|
248
242
|
/** 对齐方式. */
|
@@ -389,12 +383,6 @@ export declare class VarProfileConfig {
|
|
389
383
|
vis_flg?: number | null;
|
390
384
|
constructor(obj?: VarProfileConfig);
|
391
385
|
}
|
392
|
-
/** 查询条件. */
|
393
|
-
export declare class VarProfileDTO {
|
394
|
-
/** 查询条件列表. */
|
395
|
-
varProfileMasters?: Array<VarProfileMasterDTO> | null;
|
396
|
-
constructor(obj?: VarProfileDTO);
|
397
|
-
}
|
398
386
|
/** 查询条件明细. */
|
399
387
|
export declare class VarProfileDetail {
|
400
388
|
/** 默认的高级查询方式(DefaultDynamicQueryOperator). */
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
|
+
import { SorterResult } from 'ant-design-vue/es/table/interface';
|
2
3
|
import { ComputedRef, Ref, UnwrapRef, VNode } from 'vue';
|
3
4
|
import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './index.vm';
|
4
5
|
import { IKgTableProps } from './KgTable';
|
@@ -11,7 +12,9 @@ export declare type IUseColumns = {
|
|
11
12
|
/** 表格的列. */
|
12
13
|
columns: ComputedRef<ColumnsType<IKgTableRow>>;
|
13
14
|
/** 当前过滤状态(哪些列有过滤, 哪些列没过滤). */
|
14
|
-
|
15
|
+
filterInfo: Ref<Record<string, any>>;
|
16
|
+
/** 当前排序状态. */
|
17
|
+
sorterInfo: Ref<SorterResult<any>>;
|
15
18
|
/** 横向滚动宽度. */
|
16
19
|
scrollX: ComputedRef<string>;
|
17
20
|
};
|
@@ -42,15 +42,17 @@ export declare type IUseKgVar = {
|
|
42
42
|
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
43
43
|
/** 所有的 VarProfileMaster 列表. */
|
44
44
|
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
45
|
-
/** 当前的 VarProfileMaster. */
|
46
|
-
currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
|
47
45
|
/** 当前的 VarProfileMaster ID. */
|
48
46
|
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
47
|
+
/** 当前的 VarProfileMaster. */
|
48
|
+
currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
|
49
49
|
/** 当前的 VarProfileDetail 列表. */
|
50
50
|
currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
51
51
|
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
52
52
|
/** 所有的 VarGridMaster 列表. */
|
53
53
|
varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
|
54
|
+
/** 当前的 VarGridMaster ID. */
|
55
|
+
currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
|
54
56
|
/** 当前的 VarGridMaster. */
|
55
57
|
currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
|
56
58
|
/** 系统的 VarGridDetail 列表. */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type StoreDefinition } from 'pinia';
|
2
|
-
import { VarButton, VarButtonConfig, VarCatalog, VarGridConfig, VarGridDetail,
|
2
|
+
import { VarButton, VarButtonConfig, VarCatalog, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableConfig, VarVariableInput } from '../../apis/WMS/models';
|
3
3
|
import { IKgEventCb } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
@@ -63,14 +63,14 @@ export interface IKgVarState {
|
|
63
63
|
varSubmitConfigMap: Map<string, VarSubmitConfig | null>;
|
64
64
|
varSubmitFieldMap: Map<string, Array<VarSubmitField>>;
|
65
65
|
varProfileConfigMap: Map<string, VarProfileConfig | null>;
|
66
|
-
|
67
|
-
|
66
|
+
varProfileMasterMap: Map<string, {
|
67
|
+
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
68
68
|
/** 当前选中的 VarProfileMaster ID. */
|
69
69
|
currentVarProfileMasterID: string | null;
|
70
70
|
}>;
|
71
71
|
varGridConfigMap: Map<string, VarGridConfig | null>;
|
72
|
-
|
73
|
-
|
72
|
+
varGridMasterMap: Map<string, {
|
73
|
+
varGridMasters: Array<VarGridMasterDTO> | null;
|
74
74
|
/** 当前表格视图. */
|
75
75
|
currentVarGridMasterID: string | null;
|
76
76
|
}>;
|
@@ -175,7 +175,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
175
175
|
* 根据 frm_id 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
176
176
|
*/
|
177
177
|
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
178
|
-
/** 获取当前
|
178
|
+
/** 获取当前 VarProfileMaster 的 ID. */
|
179
179
|
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
180
180
|
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => VarProfileMasterDTO | null;
|
181
181
|
/** 获取所有的 VarGridConfig. */
|
@@ -183,7 +183,6 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
183
183
|
getVarGridConfig(): (frm_id: string | null | undefined) => VarGridConfig | null;
|
184
184
|
getVarGridMasters(): (frm_id: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
185
185
|
getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
|
186
|
-
/** 根据 frm_id 获取当前的 VarGridMaster. */
|
187
186
|
/** 获取当前'表格视图'的 ID. */
|
188
187
|
getCurrentVarGridMasterID(): (frm_id: string | null | undefined) => string | null;
|
189
188
|
getCurrentVarGridMaster(): (frm_id: string | null | undefined) => VarGridMasterDTO | null;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail,
|
1
|
+
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
|
2
2
|
export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
|
3
3
|
export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
|
4
|
-
export declare function transformVarGridDTO(varGridDTO?: VarGridDTO | null): VarGridDTO | null;
|
5
4
|
export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
6
5
|
export declare function transformVarSubmitConfig(varSubmitConfig?: VarSubmitConfig | null): VarSubmitConfig | null;
|
7
6
|
export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
|