@byteluck-fe/model-driven-controls 2.9.3 → 2.10.0-alpha.1
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/formControls/Amount/designer.js +4 -0
- package/dist/esm/formControls/Amount/property.js +7 -0
- package/dist/esm/formControls/Calc/designer.js +4 -0
- package/dist/esm/formControls/Calc/property.js +7 -0
- package/dist/esm/formControls/Number/property.js +1 -1
- package/dist/esm/formControls/Textarea/designer.js +2 -1
- package/dist/esm/formControls/Textarea/property.js +14 -19
- package/dist/esm/formControls/VuePage/designer.js +2 -2
- package/dist/esm/formControls/VuePage/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Amount/property.d.ts +6 -0
- package/dist/types/formControls/Calc/property.d.ts +6 -0
- package/dist/types/formControls/Number/property.d.ts +2 -2
- package/dist/types/formControls/Textarea/property.d.ts +4 -16
- package/dist/types/formControls/VuePage/designer.d.ts +3 -3
- package/dist/types/formControls/VuePage/runtime.d.ts +3 -3
- package/package.json +5 -5
|
@@ -43,6 +43,12 @@ declare class AmountProperty extends BaseControlProperty {
|
|
|
43
43
|
* @defaultValue ''
|
|
44
44
|
*/
|
|
45
45
|
precision: number | '';
|
|
46
|
+
/**
|
|
47
|
+
* 单位位置 left right align-right
|
|
48
|
+
* @defaultValue 'right'
|
|
49
|
+
* @public
|
|
50
|
+
* */
|
|
51
|
+
unitPosition: 'left' | 'right' | 'align-right';
|
|
46
52
|
/**
|
|
47
53
|
* 选项配置 custom datasource
|
|
48
54
|
* @defaultValue 'datasource'
|
|
@@ -42,6 +42,12 @@ declare class CalcProperty extends BaseControlProperty {
|
|
|
42
42
|
* 默认值
|
|
43
43
|
* */
|
|
44
44
|
defaultValue: CalcValue;
|
|
45
|
+
/**
|
|
46
|
+
* 单位位置 left right align-right
|
|
47
|
+
* @defaultValue 'right'
|
|
48
|
+
* @public
|
|
49
|
+
* */
|
|
50
|
+
unitPosition: 'left' | 'right' | 'align-right';
|
|
45
51
|
/**
|
|
46
52
|
* 页面加载时计算
|
|
47
53
|
* */
|
|
@@ -64,11 +64,11 @@ declare class NumberProperty extends BaseControlProperty {
|
|
|
64
64
|
* */
|
|
65
65
|
isShowUnit: boolean;
|
|
66
66
|
/**
|
|
67
|
-
* 单位位置 left right
|
|
67
|
+
* 单位位置 left right align-right
|
|
68
68
|
* @defaultValue 'right'
|
|
69
69
|
* @public
|
|
70
70
|
* */
|
|
71
|
-
unitPosition: 'left' | 'right';
|
|
71
|
+
unitPosition: 'left' | 'right' | 'align-right';
|
|
72
72
|
/**
|
|
73
73
|
* 自定义单位
|
|
74
74
|
* @defaultValue ''
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuleItem } from 'async-validator';
|
|
2
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { BaseControlProperty, BaseControlPropertyRules, MetaRowHeight, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
3
3
|
declare class TextareaControlPropertyRules extends BaseControlPropertyRules {
|
|
4
4
|
maxLength: RuleItem;
|
|
5
5
|
minLength: RuleItem;
|
|
@@ -35,23 +35,11 @@ declare class TextareaProperty extends BaseControlProperty {
|
|
|
35
35
|
*/
|
|
36
36
|
defaultValue: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @defaultValue
|
|
38
|
+
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
39
|
+
* @defaultValue MetaRowHeight
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 自适应内容高度
|
|
45
|
-
* @defaultValue false
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
autoSize: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 最大适应行数
|
|
51
|
-
* @defaultValue 无默认值
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
maxRows?: Number;
|
|
42
|
+
rowHeightSetting: MetaRowHeight;
|
|
55
43
|
constructor(props?: Partial<TextareaProperty>);
|
|
56
44
|
}
|
|
57
45
|
export default TextareaProperty;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
import VuePageProperty from './property';
|
|
3
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import { FieldTypes, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
4
4
|
declare class VuePageControl extends DesignerFormControl {
|
|
5
5
|
static controlFieldType: FieldTypes;
|
|
6
6
|
static controlEventKeys: string[];
|
|
7
7
|
static get controlName(): string;
|
|
8
8
|
static get controlIcon(): string;
|
|
9
|
-
static get controlType():
|
|
9
|
+
static get controlType(): CONTROL_TYPE;
|
|
10
10
|
static readonly setting: SettingOption[];
|
|
11
11
|
readonly props: VuePageProperty;
|
|
12
|
-
constructor(props?: Partial<Schema<
|
|
12
|
+
constructor(props?: Partial<Schema<CONTROL_TYPE.VUE_PAGE>>);
|
|
13
13
|
}
|
|
14
14
|
export default VuePageControl;
|
|
15
15
|
export { VuePageControl as DesignerVuePageControl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
2
|
+
import { CONTROL_TYPE, FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
3
|
import VuePageProperty from './property';
|
|
4
4
|
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
5
|
declare class VuePageControl extends RuntimeFormControl {
|
|
6
|
-
static get controlType():
|
|
6
|
+
static get controlType(): CONTROL_TYPE;
|
|
7
7
|
static controlFieldType: FieldTypes;
|
|
8
8
|
readonly props: VuePageProperty;
|
|
9
|
-
constructor(props?: Partial<Schema<
|
|
9
|
+
constructor(props?: Partial<Schema<CONTROL_TYPE.VUE_PAGE>>);
|
|
10
10
|
}
|
|
11
11
|
export default VuePageControl;
|
|
12
12
|
export { VuePageControl as RuntimeVuePageControl };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0-alpha.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "2.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "2.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "2.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.10.0-alpha.1",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "2.10.0-alpha.1",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "2.10.0-alpha.1",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "859862cb0980a3361b0f451be393c2638b07f669"
|
|
35
35
|
}
|