@ticatec/uniface-flexi-module 0.1.0 → 0.1.2
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.
|
@@ -86,6 +86,7 @@ export default class FlexiDataTable {
|
|
|
86
86
|
protected _round: boolean;
|
|
87
87
|
protected _indicatorColumn?: IndicatorColumn;
|
|
88
88
|
initialize(schema: FlexiDataTableSchema): Promise<void>;
|
|
89
|
+
get indicatorColumn(): IndicatorColumn | undefined;
|
|
89
90
|
protected set actionsColumn(value: ActionsColumn);
|
|
90
91
|
get isRound(): boolean;
|
|
91
92
|
get actionsColumn(): ActionsColumn | undefined;
|
|
@@ -12,7 +12,8 @@ export default class FlexiDataTable {
|
|
|
12
12
|
this._indicatorColumn = { displayNo: true, ...schema.indicatorColumn };
|
|
13
13
|
}
|
|
14
14
|
if (schema.dicts && schema.dicts.length > 0) {
|
|
15
|
-
|
|
15
|
+
console.debug('读取数据字典', schema.dicts);
|
|
16
|
+
this.#dictionaries = await FlexiContext.getInstance().loadDictionaries(schema.dicts);
|
|
16
17
|
}
|
|
17
18
|
if (schema.actionsColumn) {
|
|
18
19
|
const getActions = this[schema.actionsColumn.getActions];
|
|
@@ -51,6 +52,9 @@ export default class FlexiDataTable {
|
|
|
51
52
|
this.#columns.push(column);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
55
|
+
get indicatorColumn() {
|
|
56
|
+
return this._indicatorColumn;
|
|
57
|
+
}
|
|
54
58
|
set actionsColumn(value) {
|
|
55
59
|
this.#actionsColumn = value;
|
|
56
60
|
}
|
|
@@ -76,7 +80,7 @@ export default class FlexiDataTable {
|
|
|
76
80
|
* @param key
|
|
77
81
|
*/
|
|
78
82
|
getDictionary(key) {
|
|
79
|
-
return this.#dictionaries[key];
|
|
83
|
+
return this.#dictionaries?.[key];
|
|
80
84
|
}
|
|
81
85
|
/**
|
|
82
86
|
* 获取数据字典值
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/uniface-flexi-module",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A flexible form framework for Svelte applications with dynamic field types, criteria panels, and modular components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"type": "module",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://github.com/ticatec/uniface-flexi-module"
|
|
32
|
+
"url": "https://github.com/x`ticatec/uniface-flexi-module"
|
|
33
33
|
},
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/ticatec/uniface-flexi-module/issues"
|