@byteluck-fe/model-driven-core 7.0.0-props.10 → 7.0.0-props.116
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/esm/common/BaseControl/designer.js +23 -29
- package/dist/esm/common/BaseControl/property.js +16 -27
- package/dist/esm/common/BaseControl/runtime.js +4 -9
- package/dist/esm/common/ColumnControl/designer.js +17 -29
- package/dist/esm/common/ColumnControl/property.js +12 -20
- package/dist/esm/common/ColumnControl/runtime.js +12 -20
- package/dist/esm/common/ControlArray.js +4 -2
- package/dist/esm/common/FormControl/designer.js +12 -20
- package/dist/esm/common/FormControl/property.js +25 -31
- package/dist/esm/common/FormControl/runtime.js +12 -20
- package/dist/esm/common/LayoutControl/designer.js +37 -51
- package/dist/esm/common/LayoutControl/property.js +11 -17
- package/dist/esm/common/LayoutControl/runtime.js +12 -20
- package/dist/esm/common/ListControl/designer.js +35 -48
- package/dist/esm/common/ListControl/property.js +12 -20
- package/dist/esm/common/ListControl/runtime.js +12 -20
- package/dist/esm/common/SearchViewControl/designer.js +12 -20
- package/dist/esm/common/SearchViewControl/property.js +12 -20
- package/dist/esm/common/SearchViewControl/runtime.js +12 -20
- package/dist/esm/common/WrapControl/designer.js +12 -20
- package/dist/esm/common/WrapControl/property.js +11 -17
- package/dist/esm/common/WrapControl/runtime.js +12 -20
- package/dist/esm/framework/RegisterControls.js +2 -6
- package/dist/esm/framework/index.js +70 -29
- package/dist/index.umd.js +3 -1
- package/dist/types/common/BaseControl/property.d.ts +11 -2
- package/dist/types/common/BaseControl/types.d.ts +4 -0
- package/dist/types/common/ColumnControl/property.d.ts +3 -0
- package/dist/types/common/FormControl/property.d.ts +14 -0
- package/dist/types/common/ListControl/property.d.ts +18 -0
- package/dist/types/common/SearchViewControl/property.d.ts +3 -0
- package/dist/types/framework/index.d.ts +31 -0
- package/package.json +3 -3
|
@@ -20,7 +20,17 @@ interface PropertyInterface {
|
|
|
20
20
|
* @defaultValue false
|
|
21
21
|
*/
|
|
22
22
|
isHide: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 类名
|
|
25
|
+
* @public
|
|
26
|
+
* @noSchema
|
|
27
|
+
*/
|
|
23
28
|
className?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* 样式
|
|
31
|
+
* @public
|
|
32
|
+
* @noSchema
|
|
33
|
+
*/
|
|
24
34
|
style: BaseStyle;
|
|
25
35
|
/**
|
|
26
36
|
* 标题
|
|
@@ -29,9 +39,8 @@ interface PropertyInterface {
|
|
|
29
39
|
*/
|
|
30
40
|
caption: string;
|
|
31
41
|
/**
|
|
32
|
-
*
|
|
42
|
+
* 默认状态
|
|
33
43
|
* @public
|
|
34
|
-
* @defaultValue ''
|
|
35
44
|
*/
|
|
36
45
|
defaultState: 'readonly' | 'default';
|
|
37
46
|
}
|
|
@@ -12,6 +12,10 @@ export declare interface SettingOption {
|
|
|
12
12
|
label?: string;
|
|
13
13
|
name?: string;
|
|
14
14
|
tip?: string;
|
|
15
|
+
children?: SettingOption[];
|
|
16
|
+
layout?: 'horizontal' | 'vertical';
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
15
19
|
}
|
|
16
20
|
export declare interface HideOptions {
|
|
17
21
|
key: string;
|
|
@@ -39,6 +39,18 @@ interface BaseControlPropertyInterface extends PropertyInterface {
|
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
isCaptionItalic: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
|
|
44
|
+
* @defaultValue 'normal'
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
captionFontWeight: 'normal' | 'bold' | 'lighter';
|
|
48
|
+
/**
|
|
49
|
+
* 样式类
|
|
50
|
+
* @defaultValue []
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
className: string[];
|
|
42
54
|
/**
|
|
43
55
|
* 隐藏标题
|
|
44
56
|
* @defaultValue false
|
|
@@ -108,6 +120,8 @@ declare class BaseControlProperty extends Property implements BaseControlPropert
|
|
|
108
120
|
captionSize: string;
|
|
109
121
|
captionColor: string;
|
|
110
122
|
isCaptionItalic: boolean;
|
|
123
|
+
captionFontWeight: 'normal' | 'bold' | 'lighter';
|
|
124
|
+
className: string[];
|
|
111
125
|
isHideCaption: boolean;
|
|
112
126
|
isShowCaptionTip: boolean;
|
|
113
127
|
captionTip: string;
|
|
@@ -4,11 +4,29 @@ import { DesignerListControl } from './designer';
|
|
|
4
4
|
import { RuntimeListControl } from './runtime';
|
|
5
5
|
type ControlType<Mode extends MODE | 'Schema'> = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>;
|
|
6
6
|
interface ListControlPropertyInterface<Mode extends MODE | 'Schema', Control extends object = ControlType<Mode>> extends PropertyInterface {
|
|
7
|
+
/**
|
|
8
|
+
* 表头控件
|
|
9
|
+
*/
|
|
7
10
|
headers: Control[];
|
|
11
|
+
/**
|
|
12
|
+
* 表尾控件
|
|
13
|
+
*/
|
|
8
14
|
footers?: Control[];
|
|
15
|
+
/**
|
|
16
|
+
* 当前页码
|
|
17
|
+
*/
|
|
9
18
|
pageIndex: number;
|
|
19
|
+
/**
|
|
20
|
+
* 每页条数
|
|
21
|
+
*/
|
|
10
22
|
pageSize: number;
|
|
23
|
+
/**
|
|
24
|
+
* 每页条数选项
|
|
25
|
+
*/
|
|
11
26
|
pageSizeOptions: number[];
|
|
27
|
+
/**
|
|
28
|
+
* 总条数
|
|
29
|
+
*/
|
|
12
30
|
totalCount: number;
|
|
13
31
|
}
|
|
14
32
|
declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = ControlType<Mode>> extends Property implements ListControlPropertyInterface<Mode, Control> {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { LayoutControlProperty, LayoutControlPropertyInterface } from '../LayoutControl';
|
|
2
2
|
import { DataBind } from '../../framework';
|
|
3
3
|
interface SearchControlPropertyInterface extends LayoutControlPropertyInterface {
|
|
4
|
+
/**
|
|
5
|
+
* 绑定数据项
|
|
6
|
+
*/
|
|
4
7
|
dataBind: DataBind;
|
|
5
8
|
}
|
|
6
9
|
declare class SearchControlProperty extends LayoutControlProperty implements SearchControlPropertyInterface {
|
|
@@ -302,6 +302,16 @@ export declare class DataSourceOrderItem {
|
|
|
302
302
|
desc: boolean;
|
|
303
303
|
constructor(props: Partial<DataSourceOrderItem>);
|
|
304
304
|
}
|
|
305
|
+
export declare class ActionSetting {
|
|
306
|
+
appId: string;
|
|
307
|
+
dataCode: string;
|
|
308
|
+
formKey: string;
|
|
309
|
+
orders: DataSourceOrderItem[];
|
|
310
|
+
filters: Array<FieldFilterCondition | FieldFilterConditions>[];
|
|
311
|
+
isRelation: boolean;
|
|
312
|
+
relationBindCode: string;
|
|
313
|
+
constructor(props?: Partial<ActionSetting>);
|
|
314
|
+
}
|
|
305
315
|
export declare class DataSourceDataSetValue {
|
|
306
316
|
code: string;
|
|
307
317
|
value: string;
|
|
@@ -669,6 +679,16 @@ export declare class RangeDateValue {
|
|
|
669
679
|
* @public
|
|
670
680
|
*/
|
|
671
681
|
export declare class AddressValue {
|
|
682
|
+
/**
|
|
683
|
+
* 国家编码
|
|
684
|
+
* @defaultValue ''
|
|
685
|
+
*/
|
|
686
|
+
country?: string;
|
|
687
|
+
/**
|
|
688
|
+
* 国家显示文字
|
|
689
|
+
* @defaultValue ''
|
|
690
|
+
*/
|
|
691
|
+
countryDisplay?: string;
|
|
672
692
|
/**
|
|
673
693
|
* 市编码
|
|
674
694
|
* @defaultValue ''
|
|
@@ -971,6 +991,17 @@ export declare class MasterDetail {
|
|
|
971
991
|
headers: any[];
|
|
972
992
|
constructor(props?: Partial<MasterDetail>);
|
|
973
993
|
}
|
|
994
|
+
export declare class DrillRelation {
|
|
995
|
+
parentFieldCode: string;
|
|
996
|
+
childFieldCode: string;
|
|
997
|
+
operator: 'op_equal';
|
|
998
|
+
constructor(props?: Partial<DrillRelation>);
|
|
999
|
+
}
|
|
1000
|
+
export declare class DrillDownList {
|
|
1001
|
+
actionSetting: ActionSetting;
|
|
1002
|
+
relation: DrillRelation;
|
|
1003
|
+
constructor(props?: Partial<DrillDownList>);
|
|
1004
|
+
}
|
|
974
1005
|
export declare class Margin {
|
|
975
1006
|
marginTop: string;
|
|
976
1007
|
marginRight: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.116",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-shared": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-props.101",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "813a620df2989443f466a009c6b34b37caf79c52"
|
|
34
34
|
}
|