@byteluck-fe/model-driven-core 7.0.0-props.1 → 7.0.0-props.10
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 +17 -12
- package/dist/esm/common/BaseControl/property.js +7 -20
- package/dist/esm/common/BaseControl/runtime.js +7 -11
- package/dist/esm/common/ColumnControl/property.js +7 -36
- package/dist/esm/common/FormControl/property.js +15 -80
- package/dist/esm/common/LayoutControl/designer.js +12 -4
- package/dist/esm/common/ListControl/designer.js +12 -4
- package/dist/esm/common/ListControl/property.js +5 -8
- package/dist/esm/framework/index.js +237 -351
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/property.d.ts +17 -7
- package/dist/types/common/ColumnControl/property.d.ts +21 -8
- package/dist/types/common/FormControl/property.d.ts +5 -72
- package/dist/types/common/LayoutControl/property.d.ts +5 -3
- package/dist/types/common/ListControl/property.d.ts +12 -3
- package/dist/types/common/SearchViewControl/property.d.ts +6 -3
- package/dist/types/common/WrapControl/property.d.ts +5 -3
- package/dist/types/framework/index.d.ts +3 -1
- package/package.json +3 -3
|
@@ -128,9 +128,17 @@ function _ts_generator(thisArg, body) {
|
|
|
128
128
|
},
|
|
129
129
|
trys: [],
|
|
130
130
|
ops: []
|
|
131
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
132
|
-
return
|
|
133
|
-
|
|
131
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
132
|
+
return d(g, "next", {
|
|
133
|
+
value: verb(0)
|
|
134
|
+
}), d(g, "throw", {
|
|
135
|
+
value: verb(1)
|
|
136
|
+
}), d(g, "return", {
|
|
137
|
+
value: verb(2)
|
|
138
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
139
|
+
value: function() {
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
134
142
|
}), g;
|
|
135
143
|
function verb(n) {
|
|
136
144
|
return function(v) {
|
|
@@ -220,6 +228,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
220
228
|
function Control(props) {
|
|
221
229
|
var _this = this;
|
|
222
230
|
_class_call_check(this, Control);
|
|
231
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
223
232
|
_define_property(this, "id", void 0); // 唯一标识符
|
|
224
233
|
_define_property(this, "name", void 0);
|
|
225
234
|
_define_property(this, "icon", void 0);
|
|
@@ -236,22 +245,18 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
236
245
|
_define_property(this, "updateSetting", updateSetting);
|
|
237
246
|
_define_property(this, "removeSetting", removeSetting);
|
|
238
247
|
this._callControlHooks('preInstance', props);
|
|
239
|
-
var
|
|
248
|
+
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
249
|
if (!(controlName && controlIcon && controlType)) {
|
|
241
250
|
referenceError("The ".concat(name, " controlName,controlIcon,controlType is not define"));
|
|
242
251
|
}
|
|
243
|
-
|
|
244
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(10);
|
|
252
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
|
|
245
253
|
this.name = controlName;
|
|
246
254
|
this.icon = controlIcon;
|
|
247
|
-
|
|
248
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : controlType;
|
|
255
|
+
this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
|
|
249
256
|
this.props = new Property(props === null || props === void 0 ? void 0 : props.props, (_instanceof(this, Control) ? this.constructor : void 0).controlName);
|
|
250
|
-
|
|
251
|
-
this.controlType = (_props_controlType = props === null || props === void 0 ? void 0 : props.controlType) !== null && _props_controlType !== void 0 ? _props_controlType : 'base';
|
|
257
|
+
this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
|
|
252
258
|
this.setting = JSONCopy(setting);
|
|
253
|
-
|
|
254
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : controlFieldType;
|
|
259
|
+
this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
|
|
255
260
|
this.eventKeys = JSONCopy(controlEventKeys);
|
|
256
261
|
this.customEvents = JSONCopy(controlCustomEvents);
|
|
257
262
|
this.slots = JSONCopy(slots);
|
|
@@ -134,34 +134,21 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
|
|
|
134
134
|
return PropertyRuntimeRules;
|
|
135
135
|
}(_wrap_native_super(Array));
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* 属性实现
|
|
138
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
|
|
147
|
-
*/ _define_property(this, "isHide", void 0);
|
|
143
|
+
var _ref, _ref1;
|
|
144
|
+
_define_property(this, "isHide", void 0);
|
|
148
145
|
_define_property(this, "className", void 0);
|
|
149
146
|
_define_property(this, "style", void 0);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
* @defaultValue ''
|
|
154
|
-
*/ _define_property(this, "caption", void 0);
|
|
155
|
-
/**
|
|
156
|
-
* 标题
|
|
157
|
-
* @public
|
|
158
|
-
* @defaultValue ''
|
|
159
|
-
*/ _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;
|
|
147
|
+
_define_property(this, "caption", void 0);
|
|
148
|
+
_define_property(this, "defaultState", void 0);
|
|
149
|
+
this.isHide = (_ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref !== void 0 ? _ref : false;
|
|
162
150
|
this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
|
|
163
|
-
|
|
164
|
-
this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : caption;
|
|
151
|
+
this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : caption;
|
|
165
152
|
};
|
|
166
153
|
_define_property(Property, "mode", void 0);
|
|
167
154
|
_define_property(Property, "Rules", PropertyRules);
|
|
@@ -44,6 +44,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
44
44
|
"use strict";
|
|
45
45
|
function Control(props) {
|
|
46
46
|
_class_call_check(this, Control);
|
|
47
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
47
48
|
_define_property(this, "id", void 0); // 唯一标识符
|
|
48
49
|
_define_property(this, "type", void 0);
|
|
49
50
|
_define_property(this, "controlType", void 0);
|
|
@@ -52,22 +53,17 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
52
53
|
_define_property(this, "customEvents", []);
|
|
53
54
|
_define_property(this, "pageStatus", void 0);
|
|
54
55
|
_define_property(this, "parent", null);
|
|
55
|
-
var
|
|
56
|
+
var _ref5 = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref5.controlType, controlFieldType = _ref5.controlFieldType, name = _ref5.name, controlCustomEvents = _ref5.controlCustomEvents;
|
|
56
57
|
if (!controlType) {
|
|
57
58
|
referenceError("The ".concat(name, " controlType is not define"));
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
this.
|
|
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;
|
|
60
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
|
|
61
|
+
this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
|
|
63
62
|
this.props = new Property(props === null || props === void 0 ? void 0 : props.props);
|
|
64
63
|
this.customEvents = controlCustomEvents;
|
|
65
|
-
|
|
66
|
-
this.
|
|
67
|
-
|
|
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;
|
|
64
|
+
this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
|
|
65
|
+
this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
|
|
66
|
+
this.pageStatus = (_ref4 = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && _ref4 !== void 0 ? _ref4 : PAGE_STATUS.UNKNOWN;
|
|
71
67
|
}
|
|
72
68
|
_create_class(Control, [
|
|
73
69
|
{
|
|
@@ -105,49 +105,20 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
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
|
|
135
|
-
*/ _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;
|
|
111
|
+
]), _define_property(_this, "widthType", void 0), _define_property(_this, "width", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "autoWidth", void 0), _define_property(_this, "fixed", void 0), _define_property(_this, "sort", void 0), _define_property(_this, "align", void 0), _define_property(_this, "colSpan", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
|
|
112
|
+
_this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 150;
|
|
138
113
|
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || 'auto';
|
|
139
|
-
|
|
140
|
-
_this.
|
|
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';
|
|
114
|
+
_this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
115
|
+
_this.fixed = (_ref2 = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref2 !== void 0 ? _ref2 : 'none';
|
|
143
116
|
_this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
|
|
144
117
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
145
|
-
|
|
146
|
-
_this.sort = (_props_sort = props === null || props === void 0 ? void 0 : props.sort) !== null && _props_sort !== void 0 ? _props_sort : true;
|
|
118
|
+
_this.sort = (_ref3 = props === null || props === void 0 ? void 0 : props.sort) !== null && _ref3 !== void 0 ? _ref3 : true;
|
|
147
119
|
_this.align = props === null || props === void 0 ? void 0 : props.align;
|
|
148
120
|
_this.colSpan = props === null || props === void 0 ? void 0 : props.colSpan;
|
|
149
|
-
|
|
150
|
-
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
121
|
+
_this.autoHeight = (_ref4 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
151
122
|
return _this;
|
|
152
123
|
}
|
|
153
124
|
return ColumnControlProperty;
|
|
@@ -193,90 +193,25 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
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, _ref10, _ref11, _ref12;
|
|
196
197
|
_this = _call_super(this, BaseControlProperty, [
|
|
197
198
|
props
|
|
198
|
-
]),
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
* 标题斜体
|
|
212
|
-
* @defaultValue false
|
|
213
|
-
* @public
|
|
214
|
-
*/ _define_property(_this, "isCaptionItalic", void 0), /**
|
|
215
|
-
* 隐藏标题
|
|
216
|
-
* @defaultValue false
|
|
217
|
-
* @public
|
|
218
|
-
*/ _define_property(_this, "isHideCaption", void 0), /**
|
|
219
|
-
* 显示气泡提示
|
|
220
|
-
* @defaultValue false
|
|
221
|
-
* @public
|
|
222
|
-
*/ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
223
|
-
* 气泡提示语
|
|
224
|
-
* @defaultValue ''
|
|
225
|
-
* @public
|
|
226
|
-
*/ _define_property(_this, "captionTip", void 0), /**
|
|
227
|
-
* 标题布局
|
|
228
|
-
* @defaultValue ''
|
|
229
|
-
* @public
|
|
230
|
-
*/ _define_property(_this, "labelPosition", void 0), /**
|
|
231
|
-
* 绑定数据项
|
|
232
|
-
* @public
|
|
233
|
-
*/ _define_property(_this, "dataBind", void 0), /**
|
|
234
|
-
* 默认值
|
|
235
|
-
* @public
|
|
236
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
237
|
-
* 提示文字
|
|
238
|
-
* @defaultValue ''
|
|
239
|
-
* @public
|
|
240
|
-
*/ _define_property(_this, "placeholder", void 0), /**
|
|
241
|
-
* 默认状态
|
|
242
|
-
* @defaultValue 'default'
|
|
243
|
-
* @public
|
|
244
|
-
*/ _define_property(_this, "defaultState", void 0), /**
|
|
245
|
-
* 必填
|
|
246
|
-
* @defaultValue false
|
|
247
|
-
* @public
|
|
248
|
-
*/ _define_property(_this, "required", void 0), /**
|
|
249
|
-
* 必填提示文案
|
|
250
|
-
* @defaultValue ''
|
|
251
|
-
*/ _define_property(_this, "requiredMessage", void 0);
|
|
252
|
-
var _props_caption;
|
|
253
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
254
|
-
var _props_captionSize;
|
|
255
|
-
_this.captionSize = (_props_captionSize = props === null || props === void 0 ? void 0 : props.captionSize) !== null && _props_captionSize !== void 0 ? _props_captionSize : '';
|
|
256
|
-
var _props_captionColor;
|
|
257
|
-
_this.captionColor = (_props_captionColor = props === null || props === void 0 ? void 0 : props.captionColor) !== null && _props_captionColor !== void 0 ? _props_captionColor : '';
|
|
258
|
-
var _props_isCaptionItalic;
|
|
259
|
-
_this.isCaptionItalic = (_props_isCaptionItalic = props === null || props === void 0 ? void 0 : props.isCaptionItalic) !== null && _props_isCaptionItalic !== void 0 ? _props_isCaptionItalic : false;
|
|
260
|
-
var _props_isHideCaption;
|
|
261
|
-
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
262
|
-
var _props_isShowCaptionTip;
|
|
263
|
-
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
264
|
-
var _props_captionTip;
|
|
265
|
-
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
266
|
-
var _props_defaultState;
|
|
267
|
-
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
268
|
-
var _props_labelPosition;
|
|
269
|
-
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
270
|
-
var _props_placeholder;
|
|
271
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
|
|
272
|
-
var _props_required;
|
|
273
|
-
_this.required = (_props_required = props === null || props === void 0 ? void 0 : props.required) !== null && _props_required !== void 0 ? _props_required : false;
|
|
274
|
-
var _props_requiredMessage;
|
|
275
|
-
_this.requiredMessage = (_props_requiredMessage = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : '';
|
|
199
|
+
]), _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, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "labelPosition", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "required", void 0), _define_property(_this, "requiredMessage", void 0);
|
|
200
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
|
|
201
|
+
_this.captionSize = (_ref1 = props === null || props === void 0 ? void 0 : props.captionSize) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
202
|
+
_this.captionColor = (_ref2 = props === null || props === void 0 ? void 0 : props.captionColor) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
203
|
+
_this.isCaptionItalic = (_ref3 = props === null || props === void 0 ? void 0 : props.isCaptionItalic) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
204
|
+
_this.isHideCaption = (_ref4 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
205
|
+
_this.isShowCaptionTip = (_ref5 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
206
|
+
_this.captionTip = (_ref6 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
207
|
+
_this.defaultState = (_ref7 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref7 !== void 0 ? _ref7 : 'default';
|
|
208
|
+
_this.labelPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref8 !== void 0 ? _ref8 : 'top';
|
|
209
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
210
|
+
_this.required = (_ref10 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
211
|
+
_this.requiredMessage = (_ref11 = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _ref11 !== void 0 ? _ref11 : '';
|
|
276
212
|
//form 组件优先初始化DataBind
|
|
277
213
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
278
|
-
|
|
279
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
214
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
|
|
280
215
|
return _this;
|
|
281
216
|
}
|
|
282
217
|
return BaseControlProperty;
|
|
@@ -216,9 +216,17 @@ function _ts_generator(thisArg, body) {
|
|
|
216
216
|
},
|
|
217
217
|
trys: [],
|
|
218
218
|
ops: []
|
|
219
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
220
|
-
return
|
|
221
|
-
|
|
219
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
220
|
+
return d(g, "next", {
|
|
221
|
+
value: verb(0)
|
|
222
|
+
}), d(g, "throw", {
|
|
223
|
+
value: verb(1)
|
|
224
|
+
}), d(g, "return", {
|
|
225
|
+
value: verb(2)
|
|
226
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
227
|
+
value: function() {
|
|
228
|
+
return this;
|
|
229
|
+
}
|
|
222
230
|
}), g;
|
|
223
231
|
function verb(n) {
|
|
224
232
|
return function(v) {
|
|
@@ -341,7 +349,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
341
349
|
key: "validate",
|
|
342
350
|
value: function validate(messages, ignore) {
|
|
343
351
|
var _this = this;
|
|
344
|
-
var _this1 = this, _superprop_get_validate = function() {
|
|
352
|
+
var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
|
|
345
353
|
return _get(_get_prototype_of(LayoutControl.prototype), "validate", _this);
|
|
346
354
|
};
|
|
347
355
|
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
|
|
214
|
-
|
|
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() {
|
|
@@ -78,21 +78,18 @@ var ListControlProperty = /*#__PURE__*/ function(Property) {
|
|
|
78
78
|
function ListControlProperty(parent, props, mode) {
|
|
79
79
|
_class_call_check(this, ListControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
81
82
|
_this = _call_super(this, ListControlProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "headers", void 0), _define_property(_this, "footers", void 0), _define_property(_this, "pageIndex", void 0), _define_property(_this, "pageSize", void 0), _define_property(_this, "pageSizeOptions", void 0), _define_property(_this, "totalCount", void 0);
|
|
84
85
|
defineControlArrayToProperty(_this, 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
85
86
|
defineControlArrayToProperty(_this, 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
|
|
86
|
-
|
|
87
|
-
_this.
|
|
88
|
-
|
|
89
|
-
_this.pageSize = (_props_pageSize = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _props_pageSize !== void 0 ? _props_pageSize : 20;
|
|
90
|
-
var _props_pageSizeOptions;
|
|
91
|
-
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
87
|
+
_this.pageIndex = (_ref = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _ref !== void 0 ? _ref : 1;
|
|
88
|
+
_this.pageSize = (_ref1 = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _ref1 !== void 0 ? _ref1 : 20;
|
|
89
|
+
_this.pageSizeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _ref2 !== void 0 ? _ref2 : [
|
|
92
90
|
20
|
|
93
91
|
];
|
|
94
|
-
|
|
95
|
-
_this.totalCount = (_props_totalCount = props === null || props === void 0 ? void 0 : props.totalCount) !== null && _props_totalCount !== void 0 ? _props_totalCount : 0;
|
|
92
|
+
_this.totalCount = (_ref3 = props === null || props === void 0 ? void 0 : props.totalCount) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
96
93
|
return _this;
|
|
97
94
|
}
|
|
98
95
|
return ListControlProperty;
|