@kengic/vue 0.10.7 → 0.10.9
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 +2573 -2377
- package/dist/src/src/apis/WMS/models.d.ts +2 -0
- package/dist/src/src/components/KgTable/KgTable.hooks.d.ts +22 -2
- package/dist/src/src/components/KgTable/components/KgTable.Cell.d.ts +28 -2
- package/dist/src/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +1 -1
- package/dist/src/src/components/KgTable/index.store.d.ts +5 -1
- package/dist/src/src/components/KgTable/index.vm.d.ts +9 -0
- package/dist/src/src/components/KgVar/index.store.d.ts +69 -69
- package/dist/src/src/config/index.store.d.ts +26 -2
- package/dist/src/src/consts/i18n/en.d.ts +4 -0
- package/dist/src/src/consts/i18n/zh_CN.d.ts +4 -0
- package/dist/src/src/consts/index.d.ts +1 -1
- package/package.json +1 -1
@@ -253,6 +253,8 @@ export declare class VarGridDetail {
|
|
253
253
|
display_type_properties?: string | null;
|
254
254
|
/** 是否显示省略号(EllipsisFlag). */
|
255
255
|
ellipsis_flg?: number | null;
|
256
|
+
/** 是否支持过滤. */
|
257
|
+
filter_flag?: number | null;
|
256
258
|
/** 是否固定到左侧(FixToLeftFlag). */
|
257
259
|
fix_left_flg?: number | null;
|
258
260
|
/** 是否固定到右侧(FixToRightFlag). */
|
@@ -1,10 +1,17 @@
|
|
1
1
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
|
-
import { ComputedRef, Ref, UnwrapRef } from 'vue';
|
3
|
-
import { IKgTableRow } from './index.vm';
|
2
|
+
import { ComputedRef, Ref, UnwrapRef, VNode } from 'vue';
|
3
|
+
import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './index.vm';
|
4
4
|
import { IKgTableProps } from './KgTable';
|
5
|
+
export declare type IUseRenderBodyCell = {
|
6
|
+
/** 表格的列. */
|
7
|
+
renderBodyCell: (args: any, context?: KG_TABLE_CELL_CONTEXT) => VNode;
|
8
|
+
};
|
9
|
+
export declare function _useRenderBodyCell(): IUseRenderBodyCell;
|
5
10
|
export declare type IUseColumns = {
|
6
11
|
/** 表格的列. */
|
7
12
|
columns: ComputedRef<ColumnsType<IKgTableRow>>;
|
13
|
+
/** 当前过滤状态(哪些列有过滤, 哪些列没过滤). */
|
14
|
+
filteredInfo: Ref<Record<string, any>>;
|
8
15
|
/** 横向滚动宽度. */
|
9
16
|
scrollX: ComputedRef<string>;
|
10
17
|
};
|
@@ -18,3 +25,16 @@ export declare type IUseResizeObserver = {};
|
|
18
25
|
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
19
26
|
export declare type IUseDragColumn = {};
|
20
27
|
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): IUseDragColumn;
|
28
|
+
export interface IUseDatas {
|
29
|
+
/** 表格数据. */
|
30
|
+
datas: ComputedRef<Array<IKgTableRow>>;
|
31
|
+
/**
|
32
|
+
* 处理表格数据.
|
33
|
+
* @param response 查询接口返回数据.
|
34
|
+
*/
|
35
|
+
transformDatas(response: Ref<any>): {
|
36
|
+
datas: Ref<Array<IKgTableRow>>;
|
37
|
+
total: Ref<number>;
|
38
|
+
};
|
39
|
+
}
|
40
|
+
export declare function _useDatas(): IUseDatas;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
import { IKgTableRow } from '../index.vm';
|
2
|
+
import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../index.vm';
|
3
3
|
import './KgTable.Cell.less';
|
4
4
|
export declare const getProps: () => {
|
5
5
|
/** 行. */
|
@@ -8,6 +8,14 @@ export declare const getProps: () => {
|
|
8
8
|
kgValue: PropType<any>;
|
9
9
|
/** 变量名称. */
|
10
10
|
kgVarName: PropType<string | null>;
|
11
|
+
/**
|
12
|
+
* 所处环境.
|
13
|
+
* @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
|
14
|
+
*/
|
15
|
+
kgContext: {
|
16
|
+
type: PropType<string>;
|
17
|
+
default: KG_TABLE_CELL_CONTEXT;
|
18
|
+
};
|
11
19
|
/** 点击链接, 打开更新弹窗. */
|
12
20
|
onKgUpdateLinkClick: PropType<() => void>;
|
13
21
|
};
|
@@ -18,6 +26,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
26
|
kgValue: PropType<any>;
|
19
27
|
/** 变量名称. */
|
20
28
|
kgVarName: PropType<string | null>;
|
29
|
+
/**
|
30
|
+
* 所处环境.
|
31
|
+
* @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
|
32
|
+
*/
|
33
|
+
kgContext: {
|
34
|
+
type: PropType<string>;
|
35
|
+
default: KG_TABLE_CELL_CONTEXT;
|
36
|
+
};
|
21
37
|
/** 点击链接, 打开更新弹窗. */
|
22
38
|
onKgUpdateLinkClick: PropType<() => void>;
|
23
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -27,9 +43,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
43
|
kgValue: PropType<any>;
|
28
44
|
/** 变量名称. */
|
29
45
|
kgVarName: PropType<string | null>;
|
46
|
+
/**
|
47
|
+
* 所处环境.
|
48
|
+
* @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
|
49
|
+
*/
|
50
|
+
kgContext: {
|
51
|
+
type: PropType<string>;
|
52
|
+
default: KG_TABLE_CELL_CONTEXT;
|
53
|
+
};
|
30
54
|
/** 点击链接, 打开更新弹窗. */
|
31
55
|
onKgUpdateLinkClick: PropType<() => void>;
|
32
56
|
}>> & {
|
33
57
|
onKgUpdateLinkClick?: ((...args: any[]) => any) | undefined;
|
34
|
-
}, {
|
58
|
+
}, {
|
59
|
+
kgContext: string;
|
60
|
+
}>;
|
35
61
|
export default _default;
|
@@ -11,4 +11,4 @@ export declare type IUseServices = {
|
|
11
11
|
};
|
12
12
|
export declare function _useServices(): IUseServices;
|
13
13
|
/** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
|
14
|
-
export declare function
|
14
|
+
export declare function _useObserveMenuColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
|
@@ -3,7 +3,7 @@ import { StoreDefinition } from 'pinia';
|
|
3
3
|
import { Ref } from 'vue';
|
4
4
|
import { IPage } from '../../apis/WMS/models';
|
5
5
|
import { IKgEventCb } from '../../consts';
|
6
|
-
import { IKgTableRow } from './index.vm';
|
6
|
+
import { IKgTableRow, IKgTableRowHeight } from './index.vm';
|
7
7
|
/**
|
8
8
|
* 事件类型.
|
9
9
|
* 'ready': 就绪, 配置初始完成, 组件渲染完成
|
@@ -71,6 +71,8 @@ export interface IKgTableState {
|
|
71
71
|
isRetrievingMap: Map<string, boolean>;
|
72
72
|
/** 表格宽度. */
|
73
73
|
tableWidthMap: Map<string, number>;
|
74
|
+
/** 行高. */
|
75
|
+
rowHeightMap: Map<string, IKgTableRowHeight>;
|
74
76
|
/** 事件监听函数列表: ready. */
|
75
77
|
onReadyListenersMap: Map<string, Array<IKgTableReadyCb>>;
|
76
78
|
/** '双击某行'事件监听函数列表. */
|
@@ -95,6 +97,7 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
95
97
|
getIsRetrieved(): (formID: string | null | undefined) => boolean | null;
|
96
98
|
getIsRetrieving(): (formID: string | null | undefined) => boolean | null;
|
97
99
|
getTableWidth(): (formID: string | null | undefined) => number | null;
|
100
|
+
getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
|
98
101
|
}, {
|
99
102
|
/**
|
100
103
|
* 清理数据.
|
@@ -137,6 +140,7 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
137
140
|
setIsRetrieved(formID: string | null | undefined, value: boolean): void;
|
138
141
|
setIsRetrieving(formID: string | null | undefined, value: boolean): void;
|
139
142
|
setTableWidth(formID: string | null | undefined, value: number): void;
|
143
|
+
setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
|
140
144
|
/**
|
141
145
|
* 清空表格数据.
|
142
146
|
* @param formID 界面标识.
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
2
2
|
import { VarGridDetail } from '../../apis/WMS/models';
|
3
3
|
export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
|
4
|
+
/** 行高. */
|
5
|
+
export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
|
4
6
|
/** 表格的行对象. */
|
5
7
|
export declare type IKgTableRow<T = {}> = {
|
6
8
|
id?: string | null;
|
@@ -133,6 +135,13 @@ export interface IKgFormItemTypeProperties {
|
|
133
135
|
span?: number;
|
134
136
|
};
|
135
137
|
}
|
138
|
+
/** 表格的单元格所处环境. */
|
139
|
+
export declare const enum KG_TABLE_CELL_CONTEXT {
|
140
|
+
/** 表格的单元格. */
|
141
|
+
TABLE_CELL = "TABLE_CELL",
|
142
|
+
/** 表头的过滤器. */
|
143
|
+
TABLE_FILTER = "TABLE_FILTER"
|
144
|
+
}
|
136
145
|
/** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
|
137
146
|
export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
|
138
147
|
/** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
|
@@ -81,119 +81,119 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
81
81
|
/** 获取最顶层的界面标识, 即 level 最大的界面, 可能包含多个. */
|
82
82
|
getTopFormIDs(): Array<string>;
|
83
83
|
/** 获取界面层级. */
|
84
|
-
getFormLevel(): (frm_id
|
84
|
+
getFormLevel(): (frm_id: string | null | undefined) => number;
|
85
85
|
/**
|
86
86
|
* 翻译变量.
|
87
87
|
*/
|
88
|
-
t(): (frm_id
|
89
|
-
isRetrieving(): (frm_id
|
90
|
-
isRetrievingVarProfileMaster(): (frm_id
|
91
|
-
isRetrievingVarGridMaster(): (frm_id
|
88
|
+
t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
|
89
|
+
isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
|
90
|
+
isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
|
91
|
+
isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
|
92
92
|
/** 变量配置查询完成. */
|
93
|
-
isRetrieved(): (frm_id
|
94
|
-
isCreating(): (frm_id
|
95
|
-
isUpdating(): (frm_id
|
96
|
-
isCopying(): (frm_id
|
97
|
-
isDeleting(): (frm_id
|
98
|
-
isCreatingRequesting(): (frm_id
|
99
|
-
isUpdatingRequesting(): (frm_id
|
100
|
-
isCopyingRequesting(): (frm_id
|
101
|
-
isDeletingRequesting(): (frm_id
|
102
|
-
isOtherRequesting(): (frm_id
|
103
|
-
getVarCatalogs(): (frm_id
|
93
|
+
isRetrieved(): (frm_id: string | null | undefined) => boolean;
|
94
|
+
isCreating(): (frm_id: string | null | undefined) => boolean | null;
|
95
|
+
isUpdating(): (frm_id: string | null | undefined) => boolean | null;
|
96
|
+
isCopying(): (frm_id: string | null | undefined) => boolean | null;
|
97
|
+
isDeleting(): (frm_id: string | null | undefined) => boolean | null;
|
98
|
+
isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
99
|
+
isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
100
|
+
isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
101
|
+
isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
102
|
+
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
103
|
+
getVarCatalogs(): (frm_id: string | null | undefined) => Array<VarCatalog> | null;
|
104
104
|
/**
|
105
105
|
* 根据 frm_id 和 var_nam 获取 VarCatalog.
|
106
106
|
*/
|
107
|
-
getVarCatalog(): (frm_id
|
108
|
-
getVarLookup(): (frm_id
|
109
|
-
getVarPossibility(): (frm_id
|
110
|
-
getVarVariableConfig(): (frm_id
|
111
|
-
getVarVariableInput(): (frm_id
|
112
|
-
getVarButtons(): (frm_id
|
113
|
-
getVarSubmitConfig(): (frm_id
|
107
|
+
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarCatalog | null;
|
108
|
+
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarLookup | null;
|
109
|
+
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarPossibility | null;
|
110
|
+
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableConfig | null;
|
111
|
+
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableInput | null;
|
112
|
+
getVarButtons(): (frm_id: string | null | undefined) => Array<VarButton> | null;
|
113
|
+
getVarSubmitConfig(): (frm_id: string | null | undefined) => VarSubmitConfig | null;
|
114
114
|
/** 获取所有提交字段. */
|
115
|
-
getVarSubmitFields(): (frm_id
|
115
|
+
getVarSubmitFields(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
116
116
|
/** 获取创建时的提交字段. */
|
117
|
-
getVarSubmitFieldsForCreate(): (frm_id
|
117
|
+
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
118
118
|
/** 获取创建时的提交字段: 关键字段. */
|
119
|
-
getVarSubmitFieldsForCreateKey(): (frm_id
|
119
|
+
getVarSubmitFieldsForCreateKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
120
120
|
/** 获取创建时的提交字段: 普通字段. */
|
121
|
-
getVarSubmitFieldsForCreateNotKey(): (frm_id
|
121
|
+
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
122
122
|
/** 获取创建时的提交字段: 关键字段, 并且可见. */
|
123
|
-
getVarSubmitFieldsForCreateKeyVisible(): (frm_id
|
123
|
+
getVarSubmitFieldsForCreateKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
124
124
|
/** 获取创建时的提交字段: 普通字段, 并且可见. */
|
125
|
-
getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id
|
125
|
+
getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
126
126
|
/** 获取更新时的提交字段. */
|
127
|
-
getVarSubmitFieldsForUpdate(): (frm_id
|
127
|
+
getVarSubmitFieldsForUpdate(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
128
128
|
/** 获取更新时的提交字段: 关键字段. */
|
129
|
-
getVarSubmitFieldsForUpdateKey(): (frm_id
|
129
|
+
getVarSubmitFieldsForUpdateKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
130
130
|
/** 获取更新时的提交字段: 普通字段. */
|
131
|
-
getVarSubmitFieldsForUpdateNotKey(): (frm_id
|
131
|
+
getVarSubmitFieldsForUpdateNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
132
132
|
/** 获取更新时的提交字段: 关键字段, 并且可见. */
|
133
|
-
getVarSubmitFieldsForUpdateKeyVisible(): (frm_id
|
133
|
+
getVarSubmitFieldsForUpdateKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
134
134
|
/** 获取更新时的提交字段: 普通字段, 并且可见. */
|
135
|
-
getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id
|
135
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
136
136
|
/** 获取复制时的提交字段. */
|
137
|
-
getVarSubmitFieldsForCopy(): (frm_id
|
137
|
+
getVarSubmitFieldsForCopy(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
138
138
|
/** 获取复制时的提交字段: 关键字段. */
|
139
|
-
getVarSubmitFieldsForCopyKey(): (frm_id
|
139
|
+
getVarSubmitFieldsForCopyKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
140
140
|
/** 获取复制时的提交字段: 普通字段. */
|
141
|
-
getVarSubmitFieldsForCopyNotKey(): (frm_id
|
141
|
+
getVarSubmitFieldsForCopyNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
142
142
|
/** 获取复制时的提交字段: 关键字段, 并且可见. */
|
143
|
-
getVarSubmitFieldsForCopyKeyVisible(): (frm_id
|
143
|
+
getVarSubmitFieldsForCopyKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
144
144
|
/** 获取复制时的提交字段: 普通字段, 并且可见. */
|
145
|
-
getVarSubmitFieldsForCopyNotKeyVisible(): (frm_id
|
145
|
+
getVarSubmitFieldsForCopyNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
146
146
|
/** 获取删除时的提交字段. */
|
147
|
-
getVarSubmitFieldsForDelete(): (frm_id
|
147
|
+
getVarSubmitFieldsForDelete(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
148
148
|
/** 获取删除时的提交字段: 关键字段. */
|
149
|
-
getVarSubmitFieldsForDeleteKey(): (frm_id
|
149
|
+
getVarSubmitFieldsForDeleteKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
150
150
|
/** 获取删除时的提交字段: 普通字段. */
|
151
|
-
getVarSubmitFieldsForDeleteNotKey(): (frm_id
|
151
|
+
getVarSubmitFieldsForDeleteNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
152
152
|
/** 获取删除时的提交字段: 关键字段, 并且可见. */
|
153
|
-
getVarSubmitFieldsForDeleteKeyVisible(): (frm_id
|
153
|
+
getVarSubmitFieldsForDeleteKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
154
154
|
/** 获取删除时的提交字段: 普通字段, 并且可见. */
|
155
|
-
getVarSubmitFieldsForDeleteNotKeyVisible(): (frm_id
|
156
|
-
getVarSubmitField(): (frm_id
|
157
|
-
getVarButton(): (frm_id
|
158
|
-
getVarButtonConfig(): (frm_id
|
159
|
-
getVarButtonSearch(): (frm_id
|
160
|
-
getVarButtonCreate(): (frm_id
|
161
|
-
getVarButtonUpdate(): (frm_id
|
162
|
-
getVarButtonCopy(): (frm_id
|
163
|
-
getVarButtonDelete(): (frm_id
|
164
|
-
getVarProfileConfig(): (frm_id
|
165
|
-
getVarProfileMasters(): (frm_id
|
155
|
+
getVarSubmitFieldsForDeleteNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
156
|
+
getVarSubmitField(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarSubmitField | null;
|
157
|
+
getVarButton(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarButton | null;
|
158
|
+
getVarButtonConfig(): (frm_id: string | null | undefined) => VarButtonConfig | null;
|
159
|
+
getVarButtonSearch(): (frm_id: string | null | undefined) => VarButton | null;
|
160
|
+
getVarButtonCreate(): (frm_id: string | null | undefined) => VarButton | null;
|
161
|
+
getVarButtonUpdate(): (frm_id: string | null | undefined) => VarButton | null;
|
162
|
+
getVarButtonCopy(): (frm_id: string | null | undefined) => VarButton | null;
|
163
|
+
getVarButtonDelete(): (frm_id: string | null | undefined) => VarButton | null;
|
164
|
+
getVarProfileConfig(): (frm_id: string | null | undefined) => VarProfileConfig | null;
|
165
|
+
getVarProfileMasters(): (frm_id: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
166
166
|
/**
|
167
167
|
* 根据 frm_id 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
168
168
|
*/
|
169
|
-
getVarProfileDetail(): (frm_id
|
169
|
+
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
170
170
|
/**
|
171
171
|
* 根据 frm_id 获取 VarProfileDetail 列表.
|
172
172
|
*/
|
173
|
-
getVarProfileDetails(): (frm_id
|
173
|
+
getVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
174
174
|
/**
|
175
175
|
* 根据 frm_id 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
176
176
|
*/
|
177
|
-
getSystemVarProfileDetails(): (frm_id
|
177
|
+
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
178
178
|
/** 获取当前'查询条件视图'的 ID. */
|
179
|
-
getCurrentVarProfileMasterID(): (frm_id
|
180
|
-
getCurrentVarProfileMaster(): (frm_id
|
179
|
+
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
180
|
+
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => VarProfileMasterDTO | null;
|
181
181
|
/** 获取所有的 VarGridConfig. */
|
182
182
|
getVarGridConfigMap(): Map<string, VarGridConfig | null>;
|
183
|
-
getVarGridConfig(): (frm_id
|
184
|
-
getVarGridMasters(): (frm_id
|
185
|
-
getVarGridDetail(): (frm_id
|
183
|
+
getVarGridConfig(): (frm_id: string | null | undefined) => VarGridConfig | null;
|
184
|
+
getVarGridMasters(): (frm_id: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
185
|
+
getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
|
186
186
|
/** 根据 frm_id 获取当前的 VarGridMaster. */
|
187
187
|
/** 获取当前'表格视图'的 ID. */
|
188
|
-
getCurrentVarGridMasterID(): (frm_id
|
189
|
-
getCurrentVarGridMaster(): (frm_id
|
190
|
-
getCurrentVarGridDetails(): (frm_id
|
188
|
+
getCurrentVarGridMasterID(): (frm_id: string | null | undefined) => string | null;
|
189
|
+
getCurrentVarGridMaster(): (frm_id: string | null | undefined) => VarGridMasterDTO | null;
|
190
|
+
getCurrentVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
191
191
|
/**
|
192
192
|
* 根据 frm_id 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
193
193
|
*/
|
194
|
-
getSystemVarGridDetails(): (frm_id
|
195
|
-
getCurrentVisibleVarGridDetails(): (frm_id
|
196
|
-
getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id
|
194
|
+
getSystemVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
195
|
+
getCurrentVisibleVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
196
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id: string | null | undefined) => number | null;
|
197
197
|
}, {
|
198
198
|
/**
|
199
199
|
* 清理数据.
|
@@ -226,7 +226,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
226
226
|
* 查询所有变量配置.
|
227
227
|
* @param frm_id 界面标识.
|
228
228
|
*/
|
229
|
-
retrieve(frm_id
|
229
|
+
retrieve(frm_id: string | null | undefined): Promise<void>;
|
230
230
|
setIsCreating(frm_id: string, value: boolean): void;
|
231
231
|
/**
|
232
232
|
*
|
@@ -14,11 +14,35 @@ export declare type IKgStateOption = {
|
|
14
14
|
/** 默认为 '/sys/index'. */
|
15
15
|
[KG_APP.SYS]?: string;
|
16
16
|
};
|
17
|
+
KgTable?: {
|
18
|
+
/** 列的过滤. */
|
19
|
+
filter?: {
|
20
|
+
/**
|
21
|
+
* 是否启用功能.
|
22
|
+
* @default false
|
23
|
+
*/
|
24
|
+
on?: boolean;
|
25
|
+
};
|
26
|
+
/** 表格设置菜单. */
|
27
|
+
Setting?: {
|
28
|
+
/** 行高. */
|
29
|
+
rowHeight?: {
|
30
|
+
/**
|
31
|
+
* 是否启用功能.
|
32
|
+
* @default false
|
33
|
+
*/
|
34
|
+
on?: boolean;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
};
|
17
38
|
/** 仓库选择. */
|
18
39
|
KgWarehouse?: {
|
19
|
-
/**
|
40
|
+
/**
|
41
|
+
* 是否启用功能.
|
42
|
+
* @default true
|
43
|
+
*/
|
20
44
|
enable?: boolean;
|
21
|
-
/** 默认的仓库编码, 只有在 IKgStateOption.KgWarehouse.enable 为 false 时才生效. */
|
45
|
+
/** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.enable} 为 false 时才生效. */
|
22
46
|
defaultWarehouseID?: string;
|
23
47
|
};
|
24
48
|
};
|
@@ -53,6 +53,10 @@ declare const _default: {
|
|
53
53
|
column: string;
|
54
54
|
config: string;
|
55
55
|
emptyText: string;
|
56
|
+
rowHeight: string;
|
57
|
+
rowHeightH: string;
|
58
|
+
rowHeightL: string;
|
59
|
+
rowHeightM: string;
|
56
60
|
'save-var-grid-master-as-success-message': string;
|
57
61
|
saveVarGridMaster: string;
|
58
62
|
saveVarGridMasterAs: string;
|
@@ -53,6 +53,10 @@ declare const _default: {
|
|
53
53
|
column: string;
|
54
54
|
config: string;
|
55
55
|
emptyText: string;
|
56
|
+
rowHeight: string;
|
57
|
+
rowHeightH: string;
|
58
|
+
rowHeightL: string;
|
59
|
+
rowHeightM: string;
|
56
60
|
'save-var-grid-master-as-success-message': string;
|
57
61
|
saveVarGridMaster: string;
|
58
62
|
saveVarGridMasterAs: string;
|