@byteluck-fe/model-driven-controls 7.0.0-props.63 → 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/api-doc-index.js +1 -0
- package/dist/esm/baseControls/Iframe/designer.js +2 -1
- package/dist/esm/layoutControls/BlankContainer/designer.js +191 -0
- package/dist/esm/layoutControls/BlankContainer/index.js +11 -0
- package/dist/esm/layoutControls/BlankContainer/property.js +117 -0
- package/dist/esm/layoutControls/BlankContainer/runtime.js +112 -0
- package/dist/esm/layoutControls/BlankContainer/schema.json +89 -0
- package/dist/esm/layoutControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +1 -0
- package/dist/types/layoutControls/BlankContainer/designer.d.ts +13 -0
- package/dist/types/layoutControls/BlankContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/BlankContainer/property.d.ts +74 -0
- package/dist/types/layoutControls/BlankContainer/runtime.d.ts +9 -0
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -76,6 +76,7 @@ export { default as Col } from './layoutControls/Col/property';
|
|
|
76
76
|
export { default as Row } from './layoutControls/Row/property';
|
|
77
77
|
export { default as GridRow } from './layoutControls/GridRow/property';
|
|
78
78
|
export { default as CardGroup } from './layoutControls/CardGroup/property';
|
|
79
|
+
export { default as BlankContainer } from './layoutControls/BlankContainer/property';
|
|
79
80
|
export { default as SubTableColumn } from './layoutControls/SubTableColumn/property';
|
|
80
81
|
export { default as SubTableRow } from './layoutControls/SubTableRow/property';
|
|
81
82
|
export { default as GridTableColumn } from './layoutControls/GridTableColumn/property';
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import BlankContainerProperty from './property';
|
|
89
|
+
var BlankContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(BlankContainerControl, DesignerLayoutControl);
|
|
92
|
+
function BlankContainerControl(props) {
|
|
93
|
+
_class_call_check(this, BlankContainerControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, BlankContainerControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new BlankContainerProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(BlankContainerControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlName",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return '空白容器';
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: "controlIcon",
|
|
110
|
+
get: function get() {
|
|
111
|
+
return 'iconkongbairongqi';
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "controlType",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return 'blank-container';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]);
|
|
121
|
+
return BlankContainerControl;
|
|
122
|
+
}(DesignerLayoutControl);
|
|
123
|
+
_define_property(BlankContainerControl, "excludes", []);
|
|
124
|
+
_define_property(BlankContainerControl, "setting", [
|
|
125
|
+
{
|
|
126
|
+
key: 'caption',
|
|
127
|
+
showItems: [
|
|
128
|
+
COMMON_SETTING_TYPE.CAPTION,
|
|
129
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
130
|
+
],
|
|
131
|
+
visible: true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: 'caption-style',
|
|
135
|
+
showItems: [
|
|
136
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
137
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
138
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
139
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
140
|
+
],
|
|
141
|
+
visible: true
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
key: 'common-button-radio',
|
|
145
|
+
visible: true,
|
|
146
|
+
name: 'position',
|
|
147
|
+
label: '居中方式',
|
|
148
|
+
default: 'left',
|
|
149
|
+
options: [
|
|
150
|
+
{
|
|
151
|
+
value: 'left',
|
|
152
|
+
label: '左对齐'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
value: 'center',
|
|
156
|
+
label: '居中'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
value: 'right',
|
|
160
|
+
label: '右对齐'
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: 'color',
|
|
166
|
+
visible: true,
|
|
167
|
+
name: 'backgroundColor',
|
|
168
|
+
layout: 'horizontal',
|
|
169
|
+
label: '背景色'
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
key: 'common-switch',
|
|
173
|
+
visible: true,
|
|
174
|
+
name: 'showShadow',
|
|
175
|
+
label: '开启阴影',
|
|
176
|
+
default: false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
key: 'common-setting',
|
|
180
|
+
visible: true,
|
|
181
|
+
showItems: [
|
|
182
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
key: 'super-setting',
|
|
187
|
+
visible: true
|
|
188
|
+
}
|
|
189
|
+
]);
|
|
190
|
+
export default BlankContainerControl;
|
|
191
|
+
export { BlankContainerControl as DesignerBlankContainerControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_blank_container
|
|
3
|
+
* description: 空白容器布局组件。用于作为自由编排内容的占位容器。支持标题字体样式、标题居中方式、背景色和阴影开关设置,适合页面分区与内容承载场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
5
|
+
if (self === void 0) {
|
|
6
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7
|
+
}
|
|
8
|
+
return self;
|
|
9
|
+
}
|
|
10
|
+
function _call_super(_this, derived, args) {
|
|
11
|
+
derived = _get_prototype_of(derived);
|
|
12
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
13
|
+
}
|
|
14
|
+
function _class_call_check(instance, Constructor) {
|
|
15
|
+
if (!(instance instanceof Constructor)) {
|
|
16
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function _define_property(obj, key, value) {
|
|
20
|
+
if (key in obj) {
|
|
21
|
+
Object.defineProperty(obj, key, {
|
|
22
|
+
value: value,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
obj[key] = value;
|
|
29
|
+
}
|
|
30
|
+
return obj;
|
|
31
|
+
}
|
|
32
|
+
function _get_prototype_of(o) {
|
|
33
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
34
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
35
|
+
};
|
|
36
|
+
return _get_prototype_of(o);
|
|
37
|
+
}
|
|
38
|
+
function _inherits(subClass, superClass) {
|
|
39
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
40
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
41
|
+
}
|
|
42
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
43
|
+
constructor: {
|
|
44
|
+
value: subClass,
|
|
45
|
+
writable: true,
|
|
46
|
+
configurable: true
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
50
|
+
}
|
|
51
|
+
function _possible_constructor_return(self, call) {
|
|
52
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
53
|
+
return call;
|
|
54
|
+
}
|
|
55
|
+
return _assert_this_initialized(self);
|
|
56
|
+
}
|
|
57
|
+
function _set_prototype_of(o, p) {
|
|
58
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
59
|
+
o.__proto__ = p;
|
|
60
|
+
return o;
|
|
61
|
+
};
|
|
62
|
+
return _set_prototype_of(o, p);
|
|
63
|
+
}
|
|
64
|
+
function _type_of(obj) {
|
|
65
|
+
"@swc/helpers - typeof";
|
|
66
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
67
|
+
}
|
|
68
|
+
function _is_native_reflect_construct() {
|
|
69
|
+
try {
|
|
70
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
71
|
+
} catch (_) {}
|
|
72
|
+
return (_is_native_reflect_construct = function() {
|
|
73
|
+
return !!result;
|
|
74
|
+
})();
|
|
75
|
+
}
|
|
76
|
+
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
77
|
+
import { FONT_WEIGHT } from '../../framework';
|
|
78
|
+
var BlankContainerPropertyRules = /*#__PURE__*/ function(_LayoutControlProperty_Rules) {
|
|
79
|
+
"use strict";
|
|
80
|
+
_inherits(BlankContainerPropertyRules, _LayoutControlProperty_Rules);
|
|
81
|
+
function BlankContainerPropertyRules() {
|
|
82
|
+
_class_call_check(this, BlankContainerPropertyRules);
|
|
83
|
+
var _this;
|
|
84
|
+
_this = _call_super(this, BlankContainerPropertyRules, arguments), _define_property(_this, "caption", {
|
|
85
|
+
type: 'string',
|
|
86
|
+
required: true,
|
|
87
|
+
message: '请输入标题'
|
|
88
|
+
});
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
return BlankContainerPropertyRules;
|
|
92
|
+
}(LayoutControlProperty.Rules);
|
|
93
|
+
var BlankContainerProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
94
|
+
"use strict";
|
|
95
|
+
_inherits(BlankContainerProperty, LayoutControlProperty);
|
|
96
|
+
function BlankContainerProperty(props) {
|
|
97
|
+
_class_call_check(this, BlankContainerProperty);
|
|
98
|
+
var _this;
|
|
99
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
100
|
+
_this = _call_super(this, BlankContainerProperty, [
|
|
101
|
+
props
|
|
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);
|
|
103
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '空白容器';
|
|
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;
|
|
111
|
+
return _this;
|
|
112
|
+
}
|
|
113
|
+
return BlankContainerProperty;
|
|
114
|
+
}(LayoutControlProperty);
|
|
115
|
+
_define_property(BlankContainerProperty, "Rules", BlankContainerPropertyRules);
|
|
116
|
+
export default BlankContainerProperty;
|
|
117
|
+
export { BlankContainerProperty, BlankContainerPropertyRules, };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import BlankContainerProperty from './property';
|
|
89
|
+
var BlankContainerControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(BlankContainerControl, RuntimeLayoutControl);
|
|
92
|
+
function BlankContainerControl(props) {
|
|
93
|
+
_class_call_check(this, BlankContainerControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, BlankContainerControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new BlankContainerProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(BlankContainerControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'blank-container';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return BlankContainerControl;
|
|
110
|
+
}(RuntimeLayoutControl);
|
|
111
|
+
export default BlankContainerControl;
|
|
112
|
+
export { BlankContainerControl as RuntimeBlankContainerControl };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rok_blank_container",
|
|
3
|
+
"description": "空白容器布局组件。用于作为自由编排内容的占位容器。支持标题字体样式、标题居中方式、背景色和阴影开关设置,适合页面分区与内容承载场景。",
|
|
4
|
+
"parameters": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"isHide": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "是否隐藏",
|
|
10
|
+
"default": false
|
|
11
|
+
},
|
|
12
|
+
"caption": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "标题",
|
|
15
|
+
"default": "空白容器"
|
|
16
|
+
},
|
|
17
|
+
"defaultState": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"default",
|
|
21
|
+
"readonly"
|
|
22
|
+
],
|
|
23
|
+
"description": "默认状态",
|
|
24
|
+
"enumDescription": [
|
|
25
|
+
"default",
|
|
26
|
+
"readonly"
|
|
27
|
+
]
|
|
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
|
+
},
|
|
61
|
+
"position": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"left",
|
|
65
|
+
"center",
|
|
66
|
+
"right"
|
|
67
|
+
],
|
|
68
|
+
"description": "标题对齐方式;",
|
|
69
|
+
"default": "left",
|
|
70
|
+
"enumDescription": [
|
|
71
|
+
"左对齐",
|
|
72
|
+
"居中",
|
|
73
|
+
"右对齐"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"backgroundColor": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "背景色",
|
|
79
|
+
"default": ""
|
|
80
|
+
},
|
|
81
|
+
"showShadow": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"description": "是否开启阴影",
|
|
84
|
+
"default": false
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": []
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -3,6 +3,7 @@ export { default as Col } from './Col';
|
|
|
3
3
|
export { default as Row } from './Row';
|
|
4
4
|
export { default as GridRow } from './GridRow';
|
|
5
5
|
export { default as CardGroup } from './CardGroup';
|
|
6
|
+
export { default as BlankContainer } from './BlankContainer';
|
|
6
7
|
export { default as SubTableColumn } from './SubTableColumn';
|
|
7
8
|
export { default as SubTableRow } from './SubTableRow';
|
|
8
9
|
export { default as GridTableColumn } from './GridTableColumn';
|