@byteluck-fe/model-driven-controls 7.0.0-props.64 → 7.0.0-props.65
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/baseControls/Iframe/designer.js +2 -1
- package/dist/esm/layoutControls/BlankContainer/designer.js +2 -1
- package/dist/esm/layoutControls/BlankContainer/property.js +10 -5
- package/dist/esm/layoutControls/BlankContainer/schema.json +32 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/layoutControls/BlankContainer/property.d.ts +29 -0
- package/package.json +2 -2
|
@@ -135,7 +135,8 @@ _define_property(BlankContainerControl, "setting", [
|
|
|
135
135
|
showItems: [
|
|
136
136
|
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
137
137
|
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
138
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
138
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
139
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
139
140
|
],
|
|
140
141
|
visible: true
|
|
141
142
|
},
|
|
@@ -74,6 +74,7 @@ function _is_native_reflect_construct() {
|
|
|
74
74
|
})();
|
|
75
75
|
}
|
|
76
76
|
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
77
|
+
import { FONT_WEIGHT } from '../../framework';
|
|
77
78
|
var BlankContainerPropertyRules = /*#__PURE__*/ function(_LayoutControlProperty_Rules) {
|
|
78
79
|
"use strict";
|
|
79
80
|
_inherits(BlankContainerPropertyRules, _LayoutControlProperty_Rules);
|
|
@@ -95,14 +96,18 @@ var BlankContainerProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
95
96
|
function BlankContainerProperty(props) {
|
|
96
97
|
_class_call_check(this, BlankContainerProperty);
|
|
97
98
|
var _this;
|
|
98
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
99
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
99
100
|
_this = _call_super(this, BlankContainerProperty, [
|
|
100
101
|
props
|
|
101
|
-
]), _define_property(_this, "caption", void 0), _define_property(_this, "position", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "showShadow", void 0);
|
|
102
|
+
]), _define_property(_this, "caption", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "position", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "showShadow", void 0);
|
|
102
103
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '空白容器';
|
|
103
|
-
_this.
|
|
104
|
-
_this.
|
|
105
|
-
_this.
|
|
104
|
+
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
105
|
+
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
106
|
+
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
107
|
+
_this.captionFontWeight = (_ref1 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref1 !== void 0 ? _ref1 : FONT_WEIGHT.NORMAL;
|
|
108
|
+
_this.position = (_ref2 = props === null || props === void 0 ? void 0 : props.position) !== null && _ref2 !== void 0 ? _ref2 : 'left';
|
|
109
|
+
_this.backgroundColor = (_ref3 = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
110
|
+
_this.showShadow = (_ref4 = props === null || props === void 0 ? void 0 : props.showShadow) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
106
111
|
return _this;
|
|
107
112
|
}
|
|
108
113
|
return BlankContainerProperty;
|
|
@@ -26,6 +26,38 @@
|
|
|
26
26
|
"readonly"
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
|
+
"captionSize": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "标题大小",
|
|
32
|
+
"default": ""
|
|
33
|
+
},
|
|
34
|
+
"captionColor": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "标题颜色",
|
|
37
|
+
"default": ""
|
|
38
|
+
},
|
|
39
|
+
"isCaptionItalic": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "标题斜体",
|
|
42
|
+
"default": false
|
|
43
|
+
},
|
|
44
|
+
"captionFontWeight": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"normal",
|
|
48
|
+
"bold",
|
|
49
|
+
"lighter",
|
|
50
|
+
"bolder"
|
|
51
|
+
],
|
|
52
|
+
"description": "标题字重;",
|
|
53
|
+
"default": "normal",
|
|
54
|
+
"enumDescription": [
|
|
55
|
+
"常规",
|
|
56
|
+
"粗体",
|
|
57
|
+
"更细",
|
|
58
|
+
"更粗"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
29
61
|
"position": {
|
|
30
62
|
"type": "string",
|
|
31
63
|
"enum": [
|