@ticatec/uniface-flexi-module 0.1.1 → 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.
@@ -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
- this.#dictionaries = FlexiContext.getInstance().loadDictionaries(schema.dicts);
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];
@@ -79,7 +80,7 @@ export default class FlexiDataTable {
79
80
  * @param key
80
81
  */
81
82
  getDictionary(key) {
82
- return this.#dictionaries[key];
83
+ return this.#dictionaries?.[key];
83
84
  }
84
85
  /**
85
86
  * 获取数据字典值
@@ -7,7 +7,7 @@ export let actions = null;
7
7
  export let readonly = false;
8
8
  export let form;
9
9
  export let onFormInvalidate = null;
10
- let style = form._style;
10
+ let style = form.style;
11
11
  let blocks;
12
12
  onMount(async () => {
13
13
  form.setInvalidateHandler(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticatec/uniface-flexi-module",
3
- "version": "0.1.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",