@airpower/web 0.2.31 → 0.2.32
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/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13612,7 +13612,7 @@ function getFormConfig(Class, field) {
|
|
|
13612
13612
|
return DecoratorUtil.getFieldConfig(Class, field.toString(), KEY$2, true) || {};
|
|
13613
13613
|
}
|
|
13614
13614
|
function getFormConfigList(Class) {
|
|
13615
|
-
const fieldList = Object.keys(Class
|
|
13615
|
+
const fieldList = Object.keys(new Class());
|
|
13616
13616
|
const list = fieldList.map((field) => getFormConfig(Class, field)).filter((item) => !!item.key);
|
|
13617
13617
|
return list.filter((item) => !item.hide).sort((a, b) => (b.order || 0) - (a.order || 0));
|
|
13618
13618
|
}
|
|
@@ -16735,7 +16735,7 @@ function getTableConfig(Class, field) {
|
|
|
16735
16735
|
return DecoratorUtil.getFieldConfig(Class, field, KEY, true) || {};
|
|
16736
16736
|
}
|
|
16737
16737
|
function getTableConfigList(Class) {
|
|
16738
|
-
const fieldList = Object.keys(Class
|
|
16738
|
+
const fieldList = Object.keys(new Class());
|
|
16739
16739
|
const list = fieldList.map((field) => getTableConfig(Class, field)).filter((item) => !!item.key);
|
|
16740
16740
|
return list.sort((a, b) => (b.order || 0) - (a.order || 0));
|
|
16741
16741
|
}
|