@byteluck-fe/model-driven-core 2.7.0-alpha.21 → 2.7.0-alpha.25
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 +62 -63
- package/dist/esm/common/BaseControl/property.js +57 -47
- package/dist/esm/common/BaseControl/runtime.js +23 -24
- package/dist/esm/common/ColumnControl/designer.js +26 -27
- package/dist/esm/common/ColumnControl/property.js +54 -55
- package/dist/esm/common/ColumnControl/runtime.js +26 -27
- package/dist/esm/common/ControlArray.js +12 -12
- package/dist/esm/common/FormControl/designer.js +28 -29
- package/dist/esm/common/FormControl/property.js +64 -65
- package/dist/esm/common/FormControl/runtime.js +27 -28
- package/dist/esm/common/LayoutControl/designer.js +62 -63
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +28 -29
- package/dist/esm/common/ListControl/designer.js +59 -60
- package/dist/esm/common/ListControl/property.js +27 -28
- package/dist/esm/common/ListControl/runtime.js +30 -31
- package/dist/esm/common/SearchViewControl/designer.js +26 -27
- package/dist/esm/common/SearchViewControl/property.js +25 -26
- package/dist/esm/common/SearchViewControl/runtime.js +26 -27
- package/dist/esm/common/WrapControl/designer.js +26 -27
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +26 -27
- package/dist/esm/framework/RegisterControls.js +12 -12
- package/dist/esm/framework/index.js +391 -431
- package/dist/esm/framework/isDataBind.js +1 -2
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _classCallCheck(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _getPrototypeOf(o) {
|
|
26
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _getPrototypeOf(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possibleConstructorReturn(self, call) {
|
|
45
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assertThisInitialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _setPrototypeOf(o, p) {
|
|
51
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _setPrototypeOf(o, p);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
var _typeof = function(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
};
|
|
61
|
+
function _isNativeReflectConstruct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,17 +69,17 @@ function _is_native_reflect_construct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _createSuper(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possibleConstructorReturn(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { RulesMessage, JSONCopy } from "@byteluck-fe/model-driven-shared";
|
|
@@ -90,21 +90,21 @@ import { isDataBind } from "../../framework/isDataBind";
|
|
|
90
90
|
var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
91
91
|
"use strict";
|
|
92
92
|
_inherits(BaseControlPropertyRules, PropertyRules);
|
|
93
|
-
var _super =
|
|
93
|
+
var _super = _createSuper(BaseControlPropertyRules);
|
|
94
94
|
function BaseControlPropertyRules(props) {
|
|
95
|
-
|
|
95
|
+
_classCallCheck(this, BaseControlPropertyRules);
|
|
96
96
|
var _this;
|
|
97
97
|
_this = _super.call(this, props);
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
_defineProperty(_assertThisInitialized(_this), "dataBind", {});
|
|
99
|
+
_defineProperty(_assertThisInitialized(_this), "caption", {
|
|
100
100
|
type: "string",
|
|
101
101
|
required: true,
|
|
102
102
|
message: RulesMessage.getMessage("pleaseEnterCaption")
|
|
103
103
|
});
|
|
104
|
-
|
|
104
|
+
_defineProperty(_assertThisInitialized(_this), "isHideCaption", {
|
|
105
105
|
type: "boolean"
|
|
106
106
|
});
|
|
107
|
-
|
|
107
|
+
_defineProperty(_assertThisInitialized(_this), "labelPosition", {
|
|
108
108
|
type: "enum",
|
|
109
109
|
enum: [
|
|
110
110
|
"top",
|
|
@@ -117,17 +117,17 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
117
117
|
// type: 'string',
|
|
118
118
|
// message: RulesMessage.getMessage('pleaseEnterPlaceholder'),
|
|
119
119
|
// }
|
|
120
|
-
|
|
120
|
+
_defineProperty(_assertThisInitialized(_this), "defaultState", {
|
|
121
121
|
type: "enum",
|
|
122
122
|
enum: [
|
|
123
123
|
"default",
|
|
124
124
|
"readonly"
|
|
125
125
|
]
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
_defineProperty(_assertThisInitialized(_this), "required", {
|
|
128
128
|
type: "boolean"
|
|
129
129
|
});
|
|
130
|
-
|
|
130
|
+
_defineProperty(_assertThisInitialized(_this), "captionTip", {
|
|
131
131
|
type: "string",
|
|
132
132
|
required: false,
|
|
133
133
|
message: RulesMessage.getMessage("pleaseEnterCaptionTip")
|
|
@@ -180,9 +180,9 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
180
180
|
var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
181
181
|
"use strict";
|
|
182
182
|
_inherits(BaseControlPropertyRuntimeRules, PropertyRuntimeRules);
|
|
183
|
-
var _super =
|
|
183
|
+
var _super = _createSuper(BaseControlPropertyRuntimeRules);
|
|
184
184
|
function BaseControlPropertyRuntimeRules(props) {
|
|
185
|
-
|
|
185
|
+
_classCallCheck(this, BaseControlPropertyRuntimeRules);
|
|
186
186
|
var _this;
|
|
187
187
|
_this = _super.call(this, props);
|
|
188
188
|
_this.push({
|
|
@@ -202,101 +202,100 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
202
202
|
*/ var BaseControlProperty = /*#__PURE__*/ function(Property) {
|
|
203
203
|
"use strict";
|
|
204
204
|
_inherits(BaseControlProperty, Property);
|
|
205
|
-
var _super =
|
|
205
|
+
var _super = _createSuper(BaseControlProperty);
|
|
206
206
|
function BaseControlProperty(props) {
|
|
207
|
-
|
|
207
|
+
_classCallCheck(this, BaseControlProperty);
|
|
208
208
|
var _this;
|
|
209
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9, _props10;
|
|
210
209
|
_this = _super.call(this, props);
|
|
211
210
|
/**
|
|
212
211
|
* 标题
|
|
213
212
|
* @defaultValue ''
|
|
214
213
|
* @public
|
|
215
|
-
*/
|
|
214
|
+
*/ _defineProperty(_assertThisInitialized(_this), "caption", void 0);
|
|
216
215
|
/**
|
|
217
216
|
* 隐藏标题
|
|
218
217
|
* @defaultValue false
|
|
219
218
|
* @public
|
|
220
|
-
*/
|
|
219
|
+
*/ _defineProperty(_assertThisInitialized(_this), "isHideCaption", void 0);
|
|
221
220
|
/**
|
|
222
221
|
* 显示气泡提示
|
|
223
222
|
* @defaultValue false
|
|
224
223
|
* @public
|
|
225
|
-
*/
|
|
224
|
+
*/ _defineProperty(_assertThisInitialized(_this), "isShowCaptionTip", void 0);
|
|
226
225
|
/**
|
|
227
226
|
* 气泡提示语
|
|
228
227
|
* @defaultValue ''
|
|
229
228
|
* @public
|
|
230
|
-
*/
|
|
229
|
+
*/ _defineProperty(_assertThisInitialized(_this), "captionTip", void 0);
|
|
231
230
|
/**
|
|
232
231
|
* 标题布局
|
|
233
232
|
* @defaultValue ''
|
|
234
233
|
* @public
|
|
235
|
-
*/
|
|
234
|
+
*/ _defineProperty(_assertThisInitialized(_this), "labelPosition", void 0);
|
|
236
235
|
/**
|
|
237
236
|
* 绑定数据项
|
|
238
237
|
* @public
|
|
239
|
-
*/
|
|
238
|
+
*/ _defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
|
|
240
239
|
/**
|
|
241
240
|
* 默认值
|
|
242
241
|
* @public
|
|
243
|
-
*/
|
|
242
|
+
*/ _defineProperty(_assertThisInitialized(_this), "defaultValue", void 0);
|
|
244
243
|
/**
|
|
245
244
|
* 提示文字
|
|
246
245
|
* @defaultValue ''
|
|
247
246
|
* @public
|
|
248
|
-
*/
|
|
247
|
+
*/ _defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
|
|
249
248
|
/**
|
|
250
249
|
* 默认状态
|
|
251
250
|
* @defaultValue 'default'
|
|
252
251
|
* @public
|
|
253
|
-
*/
|
|
252
|
+
*/ _defineProperty(_assertThisInitialized(_this), "defaultState", void 0);
|
|
254
253
|
/**
|
|
255
254
|
* 必填
|
|
256
255
|
* @defaultValue false
|
|
257
256
|
* @public
|
|
258
|
-
*/
|
|
257
|
+
*/ _defineProperty(_assertThisInitialized(_this), "required", void 0);
|
|
259
258
|
/**
|
|
260
259
|
* 必填提示文案
|
|
261
260
|
* @defaultValue ''
|
|
262
|
-
*/
|
|
261
|
+
*/ _defineProperty(_assertThisInitialized(_this), "requiredMessage", void 0);
|
|
263
262
|
var _props_caption;
|
|
264
|
-
_this.caption = (_props_caption =
|
|
263
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
265
264
|
var _props_isHideCaption;
|
|
266
|
-
_this.isHideCaption = (_props_isHideCaption =
|
|
265
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
267
266
|
var _props_isShowCaptionTip;
|
|
268
|
-
_this.isShowCaptionTip = (_props_isShowCaptionTip =
|
|
267
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
269
268
|
var _props_captionTip;
|
|
270
|
-
_this.captionTip = (_props_captionTip =
|
|
269
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
|
|
271
270
|
var _props_defaultState;
|
|
272
|
-
_this.defaultState = (_props_defaultState =
|
|
271
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
273
272
|
var _props_labelPosition;
|
|
274
|
-
_this.labelPosition = (_props_labelPosition =
|
|
273
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : "top";
|
|
275
274
|
var _props_placeholder;
|
|
276
|
-
_this.placeholder = (_props_placeholder =
|
|
275
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
277
276
|
var _props_required;
|
|
278
|
-
_this.required = (_props_required =
|
|
277
|
+
_this.required = (_props_required = props === null || props === void 0 ? void 0 : props.required) !== null && _props_required !== void 0 ? _props_required : false;
|
|
279
278
|
var _props_requiredMessage;
|
|
280
|
-
_this.requiredMessage = (_props_requiredMessage =
|
|
279
|
+
_this.requiredMessage = (_props_requiredMessage = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : "";
|
|
281
280
|
//form 组件优先初始化DataBind
|
|
282
|
-
_this.dataBind = new DataBind(
|
|
281
|
+
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
283
282
|
var _props_defaultValue;
|
|
284
|
-
_this.defaultValue = (_props_defaultValue =
|
|
283
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
285
284
|
return _this;
|
|
286
285
|
}
|
|
287
286
|
return BaseControlProperty;
|
|
288
287
|
}(Property);
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
_defineProperty(BaseControlProperty, "Rules", BaseControlPropertyRules);
|
|
289
|
+
_defineProperty(BaseControlProperty, "RuntimeRules", BaseControlPropertyRuntimeRules);
|
|
291
290
|
var OptionAndDataSourcePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
292
291
|
"use strict";
|
|
293
292
|
_inherits(OptionAndDataSourcePropertyRules, BaseControlPropertyRules);
|
|
294
|
-
var _super =
|
|
293
|
+
var _super = _createSuper(OptionAndDataSourcePropertyRules);
|
|
295
294
|
function OptionAndDataSourcePropertyRules(props) {
|
|
296
|
-
|
|
295
|
+
_classCallCheck(this, OptionAndDataSourcePropertyRules);
|
|
297
296
|
var _this;
|
|
298
297
|
_this = _super.call(this, props);
|
|
299
|
-
|
|
298
|
+
_defineProperty(_assertThisInitialized(_this), "optionConfig", {
|
|
300
299
|
type: "enum",
|
|
301
300
|
enum: [
|
|
302
301
|
"custom",
|
|
@@ -304,19 +303,19 @@ var OptionAndDataSourcePropertyRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
304
303
|
],
|
|
305
304
|
message: RulesMessage.getMessage("PleaseSelectTheCorrectOptionSettings")
|
|
306
305
|
});
|
|
307
|
-
|
|
306
|
+
_defineProperty(_assertThisInitialized(_this), "options", [
|
|
308
307
|
{
|
|
309
308
|
type: "array",
|
|
310
309
|
message: RulesMessage.getMessage("isNotArray")
|
|
311
310
|
}
|
|
312
311
|
]);
|
|
313
|
-
|
|
312
|
+
_defineProperty(_assertThisInitialized(_this), "datasourceBind", [
|
|
314
313
|
{
|
|
315
314
|
type: "object",
|
|
316
315
|
message: RulesMessage.getMessage("isNotObject")
|
|
317
316
|
}
|
|
318
317
|
]);
|
|
319
|
-
initOptionAndDataSourceRules.call(
|
|
318
|
+
initOptionAndDataSourceRules.call(_assertThisInitialized(_this), props);
|
|
320
319
|
return _this;
|
|
321
320
|
}
|
|
322
321
|
return OptionAndDataSourcePropertyRules;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _classCallCheck(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _getPrototypeOf(o) {
|
|
26
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _getPrototypeOf(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possibleConstructorReturn(self, call) {
|
|
45
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assertThisInitialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _setPrototypeOf(o, p) {
|
|
51
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _setPrototypeOf(o, p);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
var _typeof = function(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
};
|
|
61
|
+
function _isNativeReflectConstruct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,17 +69,17 @@ function _is_native_reflect_construct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _createSuper(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possibleConstructorReturn(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { RuntimeControl } from "../BaseControl";
|
|
@@ -87,16 +87,15 @@ import BaseControlProperty from "./property";
|
|
|
87
87
|
var FormControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(FormControl, RuntimeControl);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(FormControl);
|
|
91
91
|
function FormControl(props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, FormControl);
|
|
93
93
|
var _this;
|
|
94
|
-
var _props;
|
|
95
94
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
_this.props = new BaseControlProperty(
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "form");
|
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "value", void 0);
|
|
98
|
+
_this.props = new BaseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
99
|
return _this;
|
|
101
100
|
}
|
|
102
101
|
return FormControl;
|