@airpower/web 0.2.18 → 0.2.19
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.
|
@@ -15,16 +15,16 @@ export declare function Field<K extends EnumKey = EnumKey>(config?: FieldConfigO
|
|
|
15
15
|
* @param TargetClass 目标类
|
|
16
16
|
* @param key 属性名
|
|
17
17
|
*/
|
|
18
|
-
export declare function getFieldConfig<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M): IFieldConfig<K>;
|
|
18
|
+
export declare function getFieldConfig<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): IFieldConfig<K>;
|
|
19
19
|
/**
|
|
20
20
|
* ### 获取属性的枚举字典
|
|
21
21
|
* @param TargetClass 目标类
|
|
22
22
|
* @param key 属性名
|
|
23
23
|
*/
|
|
24
|
-
export declare function getDictionary<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M): WebEnumConstructor<K> | undefined;
|
|
24
|
+
export declare function getDictionary<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): WebEnumConstructor<K> | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* ### 获取属性的标题
|
|
27
27
|
* @param TargetClass 目标类
|
|
28
28
|
* @param key string 属性名
|
|
29
29
|
*/
|
|
30
|
-
export declare function getFieldLabel<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): string;
|
|
30
|
+
export declare function getFieldLabel<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): string;
|
|
@@ -12,15 +12,15 @@ export declare function Form(config?: FieldConfigOptionalKey<IFormField>): (targ
|
|
|
12
12
|
* @param TargetClass 目标类
|
|
13
13
|
* @param key 属性名
|
|
14
14
|
*/
|
|
15
|
-
export declare function getFormConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): IFormField;
|
|
15
|
+
export declare function getFormConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): IFormField;
|
|
16
16
|
/**
|
|
17
17
|
* ### 获取标记了表单配置的字段列表
|
|
18
18
|
* @param TargetClass 目标类
|
|
19
19
|
*/
|
|
20
|
-
export declare function getFormFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
|
|
20
|
+
export declare function getFormFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
|
|
21
21
|
/**
|
|
22
22
|
* ### 获取指定类的表单字段配置项列表
|
|
23
23
|
* @param TargetClass 目标类
|
|
24
24
|
* @param keyList 选择字段列表
|
|
25
25
|
*/
|
|
26
|
-
export declare function getFormConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): IFormField[];
|
|
26
|
+
export declare function getFormConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): IFormField[];
|
|
@@ -12,15 +12,15 @@ export declare function Search(config?: FieldConfigOptionalKey<ISearchField>): (
|
|
|
12
12
|
* @param TargetClass 目标类
|
|
13
13
|
* @param key 属性名
|
|
14
14
|
*/
|
|
15
|
-
export declare function getSearchConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): ISearchField;
|
|
15
|
+
export declare function getSearchConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): ISearchField;
|
|
16
16
|
/**
|
|
17
17
|
* ### 获取标记了搜索配置的字段列表
|
|
18
18
|
* @param TargetClass 目标类
|
|
19
19
|
*/
|
|
20
|
-
export declare function getSearchFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
|
|
20
|
+
export declare function getSearchFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
|
|
21
21
|
/**
|
|
22
22
|
* ### 获取指定类的搜索字段配置项列表
|
|
23
23
|
* @param TargetClass 目标类
|
|
24
24
|
* @param keyList 选择字段列表
|
|
25
25
|
*/
|
|
26
|
-
export declare function getSearchConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): ISearchField[];
|
|
26
|
+
export declare function getSearchConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): ISearchField[];
|
|
@@ -12,15 +12,15 @@ export declare function Table(config?: FieldConfigOptionalKey<ITableColumn>): (t
|
|
|
12
12
|
* @param TargetClass 目标类
|
|
13
13
|
* @param key 属性名
|
|
14
14
|
*/
|
|
15
|
-
export declare function getTableConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): ITableColumn;
|
|
15
|
+
export declare function getTableConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): ITableColumn;
|
|
16
16
|
/**
|
|
17
17
|
* ### 获取标记了表格配置的字段列表
|
|
18
18
|
* @param TargetClass 目标类
|
|
19
19
|
*/
|
|
20
|
-
export declare function getTableFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
|
|
20
|
+
export declare function getTableFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
|
|
21
21
|
/**
|
|
22
22
|
* ### 获取字段标记的表格字段配置列表
|
|
23
23
|
* @param TargetClass 目标类
|
|
24
24
|
* @param keyList 字段列表
|
|
25
25
|
*/
|
|
26
|
-
export declare function getTableConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): Array<ITableColumn>;
|
|
26
|
+
export declare function getTableConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): Array<ITableColumn>;
|