@byteluck-fe/model-driven-core 6.1.0-3 → 6.1.0-3-beta.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.
Files changed (53) hide show
  1. package/README.md +69 -69
  2. package/dist/esm/common/BaseControl/designer.js +29 -23
  3. package/dist/esm/common/BaseControl/property.js +18 -19
  4. package/dist/esm/common/BaseControl/runtime.js +8 -11
  5. package/dist/esm/common/ColumnControl/property.js +34 -38
  6. package/dist/esm/common/FormControl/property.js +55 -64
  7. package/dist/esm/common/LayoutControl/designer.js +13 -4
  8. package/dist/esm/common/ListControl/designer.js +12 -4
  9. package/dist/esm/common/ListControl/property.js +5 -8
  10. package/dist/esm/framework/index.js +595 -693
  11. package/dist/index.umd.js +1 -1
  12. package/dist/types/api-doc-index.d.ts +4 -4
  13. package/dist/types/common/BaseControl/designer.d.ts +71 -71
  14. package/dist/types/common/BaseControl/index.d.ts +13 -13
  15. package/dist/types/common/BaseControl/property.d.ts +44 -44
  16. package/dist/types/common/BaseControl/runtime.d.ts +23 -23
  17. package/dist/types/common/BaseControl/types.d.ts +47 -35
  18. package/dist/types/common/ColumnControl/designer.d.ts +20 -20
  19. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  20. package/dist/types/common/ColumnControl/property.d.ts +74 -74
  21. package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
  22. package/dist/types/common/ControlArray.d.ts +9 -9
  23. package/dist/types/common/FormControl/designer.d.ts +13 -13
  24. package/dist/types/common/FormControl/index.d.ts +12 -12
  25. package/dist/types/common/FormControl/property.d.ts +100 -100
  26. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  27. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  28. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  29. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  30. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  31. package/dist/types/common/ListControl/designer.d.ts +16 -16
  32. package/dist/types/common/ListControl/index.d.ts +12 -12
  33. package/dist/types/common/ListControl/property.d.ts +18 -18
  34. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  35. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  36. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  37. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  38. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  39. package/dist/types/common/Validator.d.ts +15 -15
  40. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  41. package/dist/types/common/WrapControl/index.d.ts +12 -12
  42. package/dist/types/common/WrapControl/property.d.ts +6 -6
  43. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  44. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  45. package/dist/types/common/index.d.ts +12 -12
  46. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  47. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  48. package/dist/types/framework/RegisterControls.d.ts +37 -37
  49. package/dist/types/framework/index.d.ts +950 -946
  50. package/dist/types/framework/isDataBind.d.ts +2 -2
  51. package/dist/types/index.d.ts +4 -4
  52. package/dist/types/type.d.ts +91 -91
  53. package/package.json +3 -3
package/README.md CHANGED
@@ -1,69 +1,69 @@
1
- # Core
2
- 引擎控件核心定义
3
-
4
- 定义了控件的基类和一些工具类的实现
5
-
6
- ```
7
- │ index.ts // 入口文件
8
- │ type.ts // 类型
9
-
10
- ├─common // 基础类
11
- │ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
12
- │ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
13
- │ │ index.ts
14
- │ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
15
- │ │ Validator.ts // 校验
16
- │ │
17
- │ ├─BaseControl // 基础控件
18
- │ │ designer.ts
19
- │ │ index.ts
20
- │ │ property.ts
21
- │ │ runtime.ts
22
- │ │ types.ts
23
- │ │
24
- │ ├─ColumnControl // 列控件
25
- │ │ designer.ts
26
- │ │ index.ts
27
- │ │ property.ts
28
- │ │ runtime.ts
29
- │ │ types.ts
30
- │ │
31
- │ ├─FormControl // 表单控件
32
- │ │ designer.ts
33
- │ │ index.ts
34
- │ │ property.ts
35
- │ │ runtime.ts
36
- │ │ types.ts
37
- │ │
38
- │ ├─LayoutControl // 布局控件
39
- │ │ designer.ts
40
- │ │ index.ts
41
- │ │ property.ts
42
- │ │ runtime.ts
43
- │ │ types.ts
44
- │ │
45
- │ ├─ListControl // 列表控件
46
- │ │ designer.ts
47
- │ │ index.ts
48
- │ │ property.ts
49
- │ │ runtime.ts
50
- │ │ types.ts
51
- │ │
52
- │ ├─SearchViewControl // 查询容器控件
53
- │ │ designer.ts
54
- │ │ index.ts
55
- │ │ property.ts
56
- │ │ runtime.ts
57
- │ │ types.ts
58
- │ │
59
- │ └─WrapControl // 容器控件
60
- │ designer.ts
61
- │ index.ts
62
- │ property.ts
63
- │ runtime.ts
64
- │ types.ts
65
-
66
- └─framework // 工具类
67
- index.ts // 很多工具类
68
- RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
69
- ```
1
+ # Core
2
+ 引擎控件核心定义
3
+
4
+ 定义了控件的基类和一些工具类的实现
5
+
6
+ ```
7
+ │ index.ts // 入口文件
8
+ │ type.ts // 类型
9
+
10
+ ├─common // 基础类
11
+ │ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
12
+ │ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
13
+ │ │ index.ts
14
+ │ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
15
+ │ │ Validator.ts // 校验
16
+ │ │
17
+ │ ├─BaseControl // 基础控件
18
+ │ │ designer.ts
19
+ │ │ index.ts
20
+ │ │ property.ts
21
+ │ │ runtime.ts
22
+ │ │ types.ts
23
+ │ │
24
+ │ ├─ColumnControl // 列控件
25
+ │ │ designer.ts
26
+ │ │ index.ts
27
+ │ │ property.ts
28
+ │ │ runtime.ts
29
+ │ │ types.ts
30
+ │ │
31
+ │ ├─FormControl // 表单控件
32
+ │ │ designer.ts
33
+ │ │ index.ts
34
+ │ │ property.ts
35
+ │ │ runtime.ts
36
+ │ │ types.ts
37
+ │ │
38
+ │ ├─LayoutControl // 布局控件
39
+ │ │ designer.ts
40
+ │ │ index.ts
41
+ │ │ property.ts
42
+ │ │ runtime.ts
43
+ │ │ types.ts
44
+ │ │
45
+ │ ├─ListControl // 列表控件
46
+ │ │ designer.ts
47
+ │ │ index.ts
48
+ │ │ property.ts
49
+ │ │ runtime.ts
50
+ │ │ types.ts
51
+ │ │
52
+ │ ├─SearchViewControl // 查询容器控件
53
+ │ │ designer.ts
54
+ │ │ index.ts
55
+ │ │ property.ts
56
+ │ │ runtime.ts
57
+ │ │ types.ts
58
+ │ │
59
+ │ └─WrapControl // 容器控件
60
+ │ designer.ts
61
+ │ index.ts
62
+ │ property.ts
63
+ │ runtime.ts
64
+ │ types.ts
65
+
66
+ └─framework // 工具类
67
+ index.ts // 很多工具类
68
+ RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
69
+ ```
@@ -71,6 +71,7 @@ function _define_property(obj, key, value) {
71
71
  return obj;
72
72
  }
73
73
  function _instanceof(left, right) {
74
+ "@swc/helpers - instanceof";
74
75
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
75
76
  return !!right[Symbol.hasInstance](left);
76
77
  } else {
@@ -128,9 +129,17 @@ function _ts_generator(thisArg, body) {
128
129
  },
129
130
  trys: [],
130
131
  ops: []
131
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
132
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
133
- return this;
132
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
133
+ return d(g, "next", {
134
+ value: verb(0)
135
+ }), d(g, "throw", {
136
+ value: verb(1)
137
+ }), d(g, "return", {
138
+ value: verb(2)
139
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
140
+ value: function() {
141
+ return this;
142
+ }
134
143
  }), g;
135
144
  function verb(n) {
136
145
  return function(v) {
@@ -220,6 +229,7 @@ var Control = /*#__PURE__*/ function _target() {
220
229
  function Control(props) {
221
230
  var _this = this;
222
231
  _class_call_check(this, Control);
232
+ var _ref, _ref1, _ref2, _ref3;
223
233
  _define_property(this, "id", void 0); // 唯一标识符
224
234
  _define_property(this, "name", void 0);
225
235
  _define_property(this, "icon", void 0);
@@ -236,22 +246,18 @@ var Control = /*#__PURE__*/ function _target() {
236
246
  _define_property(this, "updateSetting", updateSetting);
237
247
  _define_property(this, "removeSetting", removeSetting);
238
248
  this._callControlHooks('preInstance', props);
239
- var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlName = _ref.controlName, controlIcon = _ref.controlIcon, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, controlEventKeys = _ref.controlEventKeys, controlCustomEvents = _ref.controlCustomEvents, name = _ref.name, setting = _ref.setting, slots = _ref.slots, slotPosition = _ref.slotPosition;
249
+ var _ref4 = _instanceof(this, Control) ? this.constructor : void 0, controlName = _ref4.controlName, controlIcon = _ref4.controlIcon, controlType = _ref4.controlType, controlFieldType = _ref4.controlFieldType, controlEventKeys = _ref4.controlEventKeys, controlCustomEvents = _ref4.controlCustomEvents, name = _ref4.name, setting = _ref4.setting, slots = _ref4.slots, slotPosition = _ref4.slotPosition;
240
250
  if (!(controlName && controlIcon && controlType)) {
241
251
  referenceError("The ".concat(name, " controlName,controlIcon,controlType is not define"));
242
252
  }
243
- var _props_id;
244
- this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(10);
253
+ this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
245
254
  this.name = controlName;
246
255
  this.icon = controlIcon;
247
- var _props_type;
248
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : controlType;
256
+ this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
249
257
  this.props = new Property(props === null || props === void 0 ? void 0 : props.props, (_instanceof(this, Control) ? this.constructor : void 0).controlName);
250
- var _props_controlType;
251
- this.controlType = (_props_controlType = props === null || props === void 0 ? void 0 : props.controlType) !== null && _props_controlType !== void 0 ? _props_controlType : 'base';
258
+ this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
252
259
  this.setting = JSONCopy(setting);
253
- var _props_fieldType;
254
- this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : controlFieldType;
260
+ this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
255
261
  this.eventKeys = JSONCopy(controlEventKeys);
256
262
  this.customEvents = JSONCopy(controlCustomEvents);
257
263
  this.slots = JSONCopy(slots);
@@ -496,10 +502,10 @@ _define_property(Control, "removeSettingItem", removeSetting);
496
502
  _define_property(Control, "updateSettingItem", updateSetting);
497
503
  export default Control;
498
504
  export { Control as DesignerControl };
499
- /**
500
- * @function 删除控件或者实例上的setting的方法
501
- * @description 其中的this可能是DesignerControl的类,也可以是实例
502
- * @param keys 需要删除的key或key组成的数组
505
+ /**
506
+ * @function 删除控件或者实例上的setting的方法
507
+ * @description 其中的this可能是DesignerControl的类,也可以是实例
508
+ * @param keys 需要删除的key或key组成的数组
503
509
  * */ function removeSetting(keys) {
504
510
  var _this = this;
505
511
  var deleteKeys = Array.isArray(keys) ? keys : [
@@ -527,13 +533,13 @@ export { Control as DesignerControl };
527
533
  }
528
534
  });
529
535
  }
530
- /**
531
- * @function 修改控件或者实例上的setting的方法
532
- * @description 其中的this可能是DesignerControl的类,也可以是实例
533
- * @param settingKey 需要修改的key或者key组成的数组
534
- * @param value 修改之后的visible值
535
- * @param value.showItems 需要添加或替换的showItems
536
- * @param value.type 默认是replace替换,可以更改为push新增
536
+ /**
537
+ * @function 修改控件或者实例上的setting的方法
538
+ * @description 其中的this可能是DesignerControl的类,也可以是实例
539
+ * @param settingKey 需要修改的key或者key组成的数组
540
+ * @param value 修改之后的visible值
541
+ * @param value.showItems 需要添加或替换的showItems
542
+ * @param value.type 默认是replace替换,可以更改为push新增
537
543
  * */ function updateSetting(settingKey, value) {
538
544
  var _this = this;
539
545
  var keys = typeof settingKey === 'string' ? [
@@ -133,35 +133,34 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
133
133
  }
134
134
  return PropertyRuntimeRules;
135
135
  }(_wrap_native_super(Array));
136
- /**
137
- * 全局属性
138
- * @public
136
+ /**
137
+ * 全局属性
138
+ * @public
139
139
  */ var Property = function Property(props) {
140
140
  "use strict";
141
141
  var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
142
142
  _class_call_check(this, Property);
143
- /**
144
- * 是否隐藏
145
- * @public
146
- * @defaultValue false
143
+ var _ref, _ref1;
144
+ /**
145
+ * 是否隐藏
146
+ * @public
147
+ * @defaultValue false
147
148
  */ _define_property(this, "isHide", void 0);
148
149
  _define_property(this, "className", void 0);
149
150
  _define_property(this, "style", void 0);
150
- /**
151
- * 标题
152
- * @public
153
- * @defaultValue ''
151
+ /**
152
+ * 标题
153
+ * @public
154
+ * @defaultValue ''
154
155
  */ _define_property(this, "caption", void 0);
155
- /**
156
- * 标题
157
- * @public
158
- * @defaultValue ''
156
+ /**
157
+ * 标题
158
+ * @public
159
+ * @defaultValue ''
159
160
  */ _define_property(this, "defaultState", void 0);
160
- var _props_isHide;
161
- this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
161
+ this.isHide = (_ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref !== void 0 ? _ref : false;
162
162
  this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
163
- var _props_caption;
164
- this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : caption;
163
+ this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : caption;
165
164
  };
166
165
  _define_property(Property, "mode", void 0);
167
166
  _define_property(Property, "Rules", PropertyRules);
@@ -31,6 +31,7 @@ function _define_property(obj, key, value) {
31
31
  return obj;
32
32
  }
33
33
  function _instanceof(left, right) {
34
+ "@swc/helpers - instanceof";
34
35
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
35
36
  return !!right[Symbol.hasInstance](left);
36
37
  } else {
@@ -44,6 +45,7 @@ var Control = /*#__PURE__*/ function _target() {
44
45
  "use strict";
45
46
  function Control(props) {
46
47
  _class_call_check(this, Control);
48
+ var _ref, _ref1, _ref2, _ref3, _ref4;
47
49
  _define_property(this, "id", void 0); // 唯一标识符
48
50
  _define_property(this, "type", void 0);
49
51
  _define_property(this, "controlType", void 0);
@@ -52,22 +54,17 @@ var Control = /*#__PURE__*/ function _target() {
52
54
  _define_property(this, "customEvents", []);
53
55
  _define_property(this, "pageStatus", void 0);
54
56
  _define_property(this, "parent", null);
55
- var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, name = _ref.name, controlCustomEvents = _ref.controlCustomEvents;
57
+ var _ref5 = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref5.controlType, controlFieldType = _ref5.controlFieldType, name = _ref5.name, controlCustomEvents = _ref5.controlCustomEvents;
56
58
  if (!controlType) {
57
59
  referenceError("The ".concat(name, " controlType is not define"));
58
60
  }
59
- var _props_id;
60
- this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(10);
61
- var _props_type;
62
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : controlType;
61
+ this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
62
+ this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
63
63
  this.props = new Property(props === null || props === void 0 ? void 0 : props.props);
64
64
  this.customEvents = controlCustomEvents;
65
- var _props_controlType;
66
- this.controlType = (_props_controlType = props === null || props === void 0 ? void 0 : props.controlType) !== null && _props_controlType !== void 0 ? _props_controlType : 'base';
67
- var _props_fieldType;
68
- this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : controlFieldType;
69
- var _props_pageStatus;
70
- this.pageStatus = (_props_pageStatus = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && _props_pageStatus !== void 0 ? _props_pageStatus : PAGE_STATUS.UNKNOWN;
65
+ this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
66
+ this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
67
+ this.pageStatus = (_ref4 = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && _ref4 !== void 0 ? _ref4 : PAGE_STATUS.UNKNOWN;
71
68
  }
72
69
  _create_class(Control, [
73
70
  {
@@ -96,58 +96,54 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
96
96
  }
97
97
  return ColumnControlPropertyRules;
98
98
  }(PropertyRules);
99
- /**
100
- * 列基本属性
101
- * @public
99
+ /**
100
+ * 列基本属性
101
+ * @public
102
102
  */ var ColumnControlProperty = /*#__PURE__*/ function(Property) {
103
103
  "use strict";
104
104
  _inherits(ColumnControlProperty, Property);
105
105
  function ColumnControlProperty(props) {
106
106
  _class_call_check(this, ColumnControlProperty);
107
107
  var _this;
108
+ var _ref, _ref1, _ref2, _ref3, _ref4;
108
109
  _this = _call_super(this, ColumnControlProperty, [
109
110
  props
110
- ]), /**
111
- * 宽度类型
112
- * @defaultValue 'auto'
113
- */ _define_property(_this, "widthType", void 0), /**
114
- * 宽度
115
- * @defaultValue 150
116
- */ _define_property(_this, "width", void 0), /**
117
- * 标题
118
- */ _define_property(_this, "caption", void 0), /**
119
- * 绑定数据项
120
- */ _define_property(_this, "dataBind", void 0), /**
121
- * 自适应页面宽度
122
- */ _define_property(_this, "autoWidth", void 0), /**
123
- * 冻结
124
- * @defaultValue 'none'
125
- */ _define_property(_this, "fixed", void 0), /**
126
- * 表头排序
127
- * @defaultValue true
128
- */ _define_property(_this, "sort", void 0), /**
129
- * 对齐
130
- */ _define_property(_this, "align", void 0), /**
131
- * @internal
132
- */ _define_property(_this, "colSpan", void 0), /**
133
- * 自动高度
134
- * @defaultValue false
111
+ ]), /**
112
+ * 宽度类型
113
+ * @defaultValue 'auto'
114
+ */ _define_property(_this, "widthType", void 0), /**
115
+ * 宽度
116
+ * @defaultValue 150
117
+ */ _define_property(_this, "width", void 0), /**
118
+ * 标题
119
+ */ _define_property(_this, "caption", void 0), /**
120
+ * 绑定数据项
121
+ */ _define_property(_this, "dataBind", void 0), /**
122
+ * 自适应页面宽度
123
+ */ _define_property(_this, "autoWidth", void 0), /**
124
+ * 冻结
125
+ * @defaultValue 'none'
126
+ */ _define_property(_this, "fixed", void 0), /**
127
+ * 表头排序
128
+ * @defaultValue true
129
+ */ _define_property(_this, "sort", void 0), /**
130
+ * 对齐
131
+ */ _define_property(_this, "align", void 0), /**
132
+ * @internal
133
+ */ _define_property(_this, "colSpan", void 0), /**
134
+ * 自动高度
135
+ * @defaultValue false
135
136
  */ _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
136
- var _props_width;
137
- _this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
137
+ _this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 150;
138
138
  _this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || 'auto';
139
- var _props_caption;
140
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
141
- var _props_fixed;
142
- _this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : 'none';
139
+ _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : '';
140
+ _this.fixed = (_ref2 = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref2 !== void 0 ? _ref2 : 'none';
143
141
  _this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
144
142
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
145
- var _props_sort;
146
- _this.sort = (_props_sort = props === null || props === void 0 ? void 0 : props.sort) !== null && _props_sort !== void 0 ? _props_sort : true;
143
+ _this.sort = (_ref3 = props === null || props === void 0 ? void 0 : props.sort) !== null && _ref3 !== void 0 ? _ref3 : true;
147
144
  _this.align = props === null || props === void 0 ? void 0 : props.align;
148
145
  _this.colSpan = props === null || props === void 0 ? void 0 : props.colSpan;
149
- var _props_autoHeight;
150
- _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
146
+ _this.autoHeight = (_ref4 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref4 !== void 0 ? _ref4 : false;
151
147
  return _this;
152
148
  }
153
149
  return ColumnControlProperty;
@@ -184,81 +184,72 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
184
184
  }
185
185
  return BaseControlPropertyRuntimeRules;
186
186
  }(PropertyRuntimeRules);
187
- /**
188
- * 表单控件公共属性
189
- * @public
187
+ /**
188
+ * 表单控件公共属性
189
+ * @public
190
190
  */ var BaseControlProperty = /*#__PURE__*/ function(Property) {
191
191
  "use strict";
192
192
  _inherits(BaseControlProperty, Property);
193
193
  function BaseControlProperty(props) {
194
194
  _class_call_check(this, BaseControlProperty);
195
195
  var _this;
196
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
196
197
  _this = _call_super(this, BaseControlProperty, [
197
198
  props
198
- ]), /**
199
- * 标题
200
- * @defaultValue ''
201
- * @public
202
- */ _define_property(_this, "caption", void 0), /**
203
- * 隐藏标题
204
- * @defaultValue false
205
- * @public
206
- */ _define_property(_this, "isHideCaption", void 0), /**
207
- * 显示气泡提示
208
- * @defaultValue false
209
- * @public
210
- */ _define_property(_this, "isShowCaptionTip", void 0), /**
211
- * 气泡提示语
212
- * @defaultValue ''
213
- * @public
214
- */ _define_property(_this, "captionTip", void 0), /**
215
- * 标题布局
216
- * @defaultValue ''
217
- * @public
218
- */ _define_property(_this, "labelPosition", void 0), /**
219
- * 绑定数据项
220
- * @public
221
- */ _define_property(_this, "dataBind", void 0), /**
222
- * 默认值
223
- * @public
224
- */ _define_property(_this, "defaultValue", void 0), /**
225
- * 提示文字
226
- * @defaultValue ''
227
- * @public
228
- */ _define_property(_this, "placeholder", void 0), /**
229
- * 默认状态
230
- * @defaultValue 'default'
231
- * @public
232
- */ _define_property(_this, "defaultState", void 0), /**
233
- * 必填
234
- * @defaultValue false
235
- * @public
236
- */ _define_property(_this, "required", void 0), /**
237
- * 必填提示文案
238
- * @defaultValue ''
199
+ ]), /**
200
+ * 标题
201
+ * @defaultValue ''
202
+ * @public
203
+ */ _define_property(_this, "caption", void 0), /**
204
+ * 隐藏标题
205
+ * @defaultValue false
206
+ * @public
207
+ */ _define_property(_this, "isHideCaption", void 0), /**
208
+ * 显示气泡提示
209
+ * @defaultValue false
210
+ * @public
211
+ */ _define_property(_this, "isShowCaptionTip", void 0), /**
212
+ * 气泡提示语
213
+ * @defaultValue ''
214
+ * @public
215
+ */ _define_property(_this, "captionTip", void 0), /**
216
+ * 标题布局
217
+ * @defaultValue ''
218
+ * @public
219
+ */ _define_property(_this, "labelPosition", void 0), /**
220
+ * 绑定数据项
221
+ * @public
222
+ */ _define_property(_this, "dataBind", void 0), /**
223
+ * 默认值
224
+ * @public
225
+ */ _define_property(_this, "defaultValue", void 0), /**
226
+ * 提示文字
227
+ * @defaultValue ''
228
+ * @public
229
+ */ _define_property(_this, "placeholder", void 0), /**
230
+ * 默认状态
231
+ * @defaultValue 'default'
232
+ * @public
233
+ */ _define_property(_this, "defaultState", void 0), /**
234
+ * 必填
235
+ * @defaultValue false
236
+ * @public
237
+ */ _define_property(_this, "required", void 0), /**
238
+ * 必填提示文案
239
+ * @defaultValue ''
239
240
  */ _define_property(_this, "requiredMessage", void 0);
240
- var _props_caption;
241
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
242
- var _props_isHideCaption;
243
- _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
244
- var _props_isShowCaptionTip;
245
- _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
246
- var _props_captionTip;
247
- _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
248
- var _props_defaultState;
249
- _this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
250
- var _props_labelPosition;
251
- _this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
252
- var _props_placeholder;
253
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
254
- var _props_required;
255
- _this.required = (_props_required = props === null || props === void 0 ? void 0 : props.required) !== null && _props_required !== void 0 ? _props_required : false;
256
- var _props_requiredMessage;
257
- _this.requiredMessage = (_props_requiredMessage = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : '';
241
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
242
+ _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
243
+ _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
244
+ _this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
245
+ _this.defaultState = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref4 !== void 0 ? _ref4 : 'default';
246
+ _this.labelPosition = (_ref5 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref5 !== void 0 ? _ref5 : 'top';
247
+ _this.placeholder = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref6 !== void 0 ? _ref6 : '';
248
+ _this.required = (_ref7 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref7 !== void 0 ? _ref7 : false;
249
+ _this.requiredMessage = (_ref8 = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _ref8 !== void 0 ? _ref8 : '';
258
250
  //form 组件优先初始化DataBind
259
251
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
260
- var _props_defaultValue;
261
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
252
+ _this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
262
253
  return _this;
263
254
  }
264
255
  return BaseControlProperty;
@@ -113,6 +113,7 @@ function _inherits(subClass, superClass) {
113
113
  if (superClass) _set_prototype_of(subClass, superClass);
114
114
  }
115
115
  function _instanceof(left, right) {
116
+ "@swc/helpers - instanceof";
116
117
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
117
118
  return !!right[Symbol.hasInstance](left);
118
119
  } else {
@@ -216,9 +217,17 @@ function _ts_generator(thisArg, body) {
216
217
  },
217
218
  trys: [],
218
219
  ops: []
219
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
220
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
221
- return this;
220
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
221
+ return d(g, "next", {
222
+ value: verb(0)
223
+ }), d(g, "throw", {
224
+ value: verb(1)
225
+ }), d(g, "return", {
226
+ value: verb(2)
227
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
228
+ value: function() {
229
+ return this;
230
+ }
222
231
  }), g;
223
232
  function verb(n) {
224
233
  return function(v) {
@@ -341,7 +350,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
341
350
  key: "validate",
342
351
  value: function validate(messages, ignore) {
343
352
  var _this = this;
344
- var _this1 = this, _superprop_get_validate = function() {
353
+ var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
345
354
  return _get(_get_prototype_of(LayoutControl.prototype), "validate", _this);
346
355
  };
347
356
  return _async_to_generator(function() {
@@ -209,9 +209,17 @@ function _ts_generator(thisArg, body) {
209
209
  },
210
210
  trys: [],
211
211
  ops: []
212
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
213
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
214
- return this;
212
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
213
+ return d(g, "next", {
214
+ value: verb(0)
215
+ }), d(g, "throw", {
216
+ value: verb(1)
217
+ }), d(g, "return", {
218
+ value: verb(2)
219
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
220
+ value: function() {
221
+ return this;
222
+ }
215
223
  }), g;
216
224
  function verb(n) {
217
225
  return function(v) {
@@ -311,7 +319,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
311
319
  key: "validate",
312
320
  value: function validate(messages, ignore) {
313
321
  var _this = this;
314
- var _this1 = this, _superprop_get_validate = function() {
322
+ var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
315
323
  return _get(_get_prototype_of(ListControl.prototype), "validate", _this);
316
324
  };
317
325
  return _async_to_generator(function() {