@airpower/web 0.2.31 → 0.2.33
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
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
|
}
|
|
@@ -16751,16 +16751,16 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
|
16751
16751
|
class QueryRequest extends Transformer {
|
|
16752
16752
|
/**
|
|
16753
16753
|
* ### 初始化一个请求类
|
|
16754
|
-
* @param
|
|
16754
|
+
* @param FilterClass 如传入 `filter` 的类 将自动初始化一个空 `filter`
|
|
16755
16755
|
*/
|
|
16756
|
-
constructor(
|
|
16756
|
+
constructor(FilterClass) {
|
|
16757
16757
|
super();
|
|
16758
16758
|
/**
|
|
16759
16759
|
* ### 查询信息
|
|
16760
16760
|
*/
|
|
16761
16761
|
__publicField(this, "filter");
|
|
16762
16762
|
__publicField(this, "sort");
|
|
16763
|
-
this.filter =
|
|
16763
|
+
this.filter = new FilterClass();
|
|
16764
16764
|
}
|
|
16765
16765
|
/**
|
|
16766
16766
|
* ### 设置排序对象
|
|
@@ -16,9 +16,9 @@ export declare class QueryRequest<E extends RootEntity = RootEntity> extends Tra
|
|
|
16
16
|
sort?: QuerySort;
|
|
17
17
|
/**
|
|
18
18
|
* ### 初始化一个请求类
|
|
19
|
-
* @param
|
|
19
|
+
* @param FilterClass 如传入 `filter` 的类 将自动初始化一个空 `filter`
|
|
20
20
|
*/
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(FilterClass: ITransformerConstructor<E>);
|
|
22
22
|
/**
|
|
23
23
|
* ### 设置排序对象
|
|
24
24
|
* @param sort 排序对象
|