@byteluck-fe/model-driven-core 2.6.0-alpha.4 → 2.6.0-alpha.8
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 +4 -4
- package/dist/esm/common/BaseControl/designer.js +225 -305
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +9 -9
- package/dist/esm/common/BaseControl/runtime.js +16 -16
- package/dist/esm/common/ColumnControl/designer.js +5 -5
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +36 -36
- package/dist/esm/common/ColumnControl/runtime.js +5 -5
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +8 -8
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +66 -66
- package/dist/esm/common/FormControl/runtime.js +5 -5
- package/dist/esm/common/LayoutControl/designer.js +102 -196
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -7
- package/dist/esm/common/ListControl/designer.js +84 -184
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -5
- package/dist/esm/common/ListControl/runtime.js +7 -7
- package/dist/esm/common/SearchViewControl/designer.js +5 -5
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -4
- package/dist/esm/common/SearchViewControl/runtime.js +5 -5
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -5
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -5
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +179 -122
- package/dist/esm/framework/index.js +326 -326
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +62 -62
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +22 -22
- package/dist/types/common/BaseControl/runtime.d.ts +22 -22
- package/dist/types/common/BaseControl/types.d.ts +35 -35
- package/dist/types/common/ColumnControl/designer.d.ts +10 -10
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +73 -73
- package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
- package/dist/types/common/ControlArray.d.ts +8 -8
- package/dist/types/common/FormControl/designer.d.ts +13 -13
- package/dist/types/common/FormControl/index.d.ts +12 -12
- package/dist/types/common/FormControl/property.d.ts +96 -96
- package/dist/types/common/FormControl/runtime.d.ts +11 -11
- package/dist/types/common/LayoutControl/designer.d.ts +21 -21
- package/dist/types/common/LayoutControl/index.d.ts +12 -12
- package/dist/types/common/LayoutControl/property.d.ts +6 -6
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
- package/dist/types/common/ListControl/designer.d.ts +16 -16
- package/dist/types/common/ListControl/index.d.ts +12 -12
- package/dist/types/common/ListControl/property.d.ts +12 -12
- package/dist/types/common/ListControl/runtime.d.ts +12 -12
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
- package/dist/types/common/SearchViewControl/index.d.ts +12 -12
- package/dist/types/common/SearchViewControl/property.d.ts +8 -8
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
- package/dist/types/common/Validator.d.ts +15 -15
- package/dist/types/common/WrapControl/designer.d.ts +11 -11
- package/dist/types/common/WrapControl/index.d.ts +12 -12
- package/dist/types/common/WrapControl/property.d.ts +6 -6
- package/dist/types/common/WrapControl/runtime.d.ts +11 -11
- package/dist/types/common/controlHooksEmitter.d.ts +4 -4
- package/dist/types/common/index.d.ts +12 -12
- package/dist/types/common/initLinkOperationRules.d.ts +6 -6
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
- package/dist/types/framework/RegisterControls.d.ts +33 -33
- package/dist/types/framework/index.d.ts +616 -616
- package/dist/types/index.d.ts +3 -3
- package/dist/types/type.d.ts +91 -91
- package/package.json +3 -3
|
@@ -126,17 +126,17 @@ function _createSuper(Derived) {
|
|
|
126
126
|
return _possibleConstructorReturn(this, result);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
import { BaseStyle } from
|
|
129
|
+
import { BaseStyle } from '../../framework';
|
|
130
130
|
var PropertyRules = function PropertyRules(props) {
|
|
131
131
|
"use strict";
|
|
132
132
|
_classCallCheck(this, PropertyRules);
|
|
133
133
|
this.isHide = {
|
|
134
|
-
type:
|
|
134
|
+
type: 'boolean'
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
var PropertyRuntimeRules = /*#__PURE__*/ function(
|
|
137
|
+
var PropertyRuntimeRules = /*#__PURE__*/ function(Array) {
|
|
138
138
|
"use strict";
|
|
139
|
-
_inherits(PropertyRuntimeRules,
|
|
139
|
+
_inherits(PropertyRuntimeRules, Array);
|
|
140
140
|
var _super = _createSuper(PropertyRuntimeRules);
|
|
141
141
|
function PropertyRuntimeRules(props) {
|
|
142
142
|
_classCallCheck(this, PropertyRuntimeRules);
|
|
@@ -146,13 +146,13 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
|
|
|
146
146
|
}(_wrapNativeSuper(Array));
|
|
147
147
|
var Property = function Property(props) {
|
|
148
148
|
"use strict";
|
|
149
|
-
var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
149
|
+
var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
150
150
|
_classCallCheck(this, Property);
|
|
151
|
-
var
|
|
152
|
-
this.isHide = (
|
|
151
|
+
var ref;
|
|
152
|
+
this.isHide = (ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && ref !== void 0 ? ref : false;
|
|
153
153
|
this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
|
|
154
|
-
var
|
|
155
|
-
this.caption = (
|
|
154
|
+
var ref1;
|
|
155
|
+
this.caption = (ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref1 !== void 0 ? ref1 : caption;
|
|
156
156
|
};
|
|
157
157
|
Property.Rules = PropertyRules;
|
|
158
158
|
Property.RuntimeRules = PropertyRuntimeRules;
|
|
@@ -19,36 +19,36 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
19
19
|
}
|
|
20
20
|
function _instanceof(left, right) {
|
|
21
21
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
22
|
-
return
|
|
22
|
+
return right[Symbol.hasInstance](left);
|
|
23
23
|
} else {
|
|
24
24
|
return left instanceof right;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
import Property from
|
|
28
|
-
import { genNonDuplicateId, referenceError } from
|
|
29
|
-
import { PAGE_STATUS } from
|
|
27
|
+
import Property from './property';
|
|
28
|
+
import { genNonDuplicateId, referenceError } from '@byteluck-fe/model-driven-shared';
|
|
29
|
+
import { PAGE_STATUS } from '../../framework';
|
|
30
30
|
var Control = /*#__PURE__*/ function _target() {
|
|
31
31
|
"use strict";
|
|
32
32
|
function Control(props) {
|
|
33
33
|
_classCallCheck(this, Control);
|
|
34
34
|
this.customEvents = [];
|
|
35
35
|
this.parent = null;
|
|
36
|
-
var
|
|
36
|
+
var ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = ref.controlType, controlFieldType = ref.controlFieldType, name = ref.name, controlCustomEvents = ref.controlCustomEvents;
|
|
37
37
|
if (!controlType) {
|
|
38
38
|
referenceError("The ".concat(name, " controlType is not define"));
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
this.id = (
|
|
42
|
-
var
|
|
43
|
-
this.type = (
|
|
40
|
+
var ref1;
|
|
41
|
+
this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : genNonDuplicateId(10);
|
|
42
|
+
var ref2;
|
|
43
|
+
this.type = (ref2 = props === null || props === void 0 ? void 0 : props.type) !== null && ref2 !== void 0 ? ref2 : controlType;
|
|
44
44
|
this.props = new Property(props === null || props === void 0 ? void 0 : props.props);
|
|
45
45
|
this.customEvents = controlCustomEvents;
|
|
46
|
-
var
|
|
47
|
-
this.controlType = (
|
|
48
|
-
var
|
|
49
|
-
this.fieldType = (
|
|
50
|
-
var
|
|
51
|
-
this.pageStatus = (
|
|
46
|
+
var ref3;
|
|
47
|
+
this.controlType = (ref3 = props === null || props === void 0 ? void 0 : props.controlType) !== null && ref3 !== void 0 ? ref3 : 'base';
|
|
48
|
+
var ref4;
|
|
49
|
+
this.fieldType = (ref4 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref4 !== void 0 ? ref4 : controlFieldType;
|
|
50
|
+
var ref5;
|
|
51
|
+
this.pageStatus = (ref5 = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && ref5 !== void 0 ? ref5 : PAGE_STATUS.UNKNOWN;
|
|
52
52
|
}
|
|
53
53
|
_createClass(Control, [
|
|
54
54
|
{
|
|
@@ -65,7 +65,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
65
65
|
]);
|
|
66
66
|
return Control;
|
|
67
67
|
}();
|
|
68
|
-
Control.controlType =
|
|
68
|
+
Control.controlType = 'control';
|
|
69
69
|
Control.__is_control__ = true;
|
|
70
70
|
Control.controlCustomEvents = [];
|
|
71
71
|
export default Control;
|
|
@@ -69,17 +69,17 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { DesignerControl } from
|
|
73
|
-
import ColumnControlProperty from
|
|
74
|
-
var ColumnControl = /*#__PURE__*/ function(
|
|
72
|
+
import { DesignerControl } from '../BaseControl';
|
|
73
|
+
import ColumnControlProperty from './property';
|
|
74
|
+
var ColumnControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
75
75
|
"use strict";
|
|
76
|
-
_inherits(ColumnControl,
|
|
76
|
+
_inherits(ColumnControl, DesignerControl1);
|
|
77
77
|
var _super = _createSuper(ColumnControl);
|
|
78
78
|
function ColumnControl(props) {
|
|
79
79
|
_classCallCheck(this, ColumnControl);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
_this.controlType =
|
|
82
|
+
_this.controlType = 'column';
|
|
83
83
|
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
4
|
export default {
|
|
5
5
|
Designer: Designer,
|
|
6
6
|
Runtime: Runtime,
|
|
7
7
|
Property: Property
|
|
8
8
|
};
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -69,59 +69,59 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { Property, PropertyRules } from
|
|
73
|
-
import { RulesMessage } from
|
|
74
|
-
import { initOptionAndDataSourceRules } from
|
|
75
|
-
import { DataBind, AutoWidth } from
|
|
76
|
-
var ColumnControlPropertyRules = /*#__PURE__*/ function(
|
|
72
|
+
import { Property, PropertyRules } from '../BaseControl';
|
|
73
|
+
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
74
|
+
import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
|
|
75
|
+
import { DataBind, AutoWidth } from '../../framework';
|
|
76
|
+
var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules1) {
|
|
77
77
|
"use strict";
|
|
78
|
-
_inherits(ColumnControlPropertyRules,
|
|
78
|
+
_inherits(ColumnControlPropertyRules, PropertyRules1);
|
|
79
79
|
var _super = _createSuper(ColumnControlPropertyRules);
|
|
80
80
|
function ColumnControlPropertyRules(props) {
|
|
81
81
|
_classCallCheck(this, ColumnControlPropertyRules);
|
|
82
82
|
var _this;
|
|
83
83
|
_this = _super.call(this, props);
|
|
84
84
|
_this.caption = {
|
|
85
|
-
type:
|
|
85
|
+
type: 'string',
|
|
86
86
|
required: true,
|
|
87
|
-
message: RulesMessage.getMessage(
|
|
87
|
+
message: RulesMessage.getMessage('pleaseEnterCaption')
|
|
88
88
|
};
|
|
89
89
|
_this.width = {
|
|
90
|
-
type:
|
|
90
|
+
type: 'number',
|
|
91
91
|
required: false,
|
|
92
|
-
message: RulesMessage.getMessage(
|
|
92
|
+
message: RulesMessage.getMessage('pleaseEnterColumnWidth')
|
|
93
93
|
};
|
|
94
|
-
_this.width.required = props.widthType ===
|
|
94
|
+
_this.width.required = props.widthType === 'px';
|
|
95
95
|
return _this;
|
|
96
96
|
}
|
|
97
97
|
return ColumnControlPropertyRules;
|
|
98
98
|
}(PropertyRules);
|
|
99
|
-
/**
|
|
99
|
+
var ColumnControlProperty = /**
|
|
100
100
|
* 列基本属性
|
|
101
101
|
* @public
|
|
102
|
-
*/
|
|
102
|
+
*/ /*#__PURE__*/ function(Property1) {
|
|
103
103
|
"use strict";
|
|
104
|
-
_inherits(ColumnControlProperty,
|
|
104
|
+
_inherits(ColumnControlProperty, Property1);
|
|
105
105
|
var _super = _createSuper(ColumnControlProperty);
|
|
106
106
|
function ColumnControlProperty(props) {
|
|
107
107
|
_classCallCheck(this, ColumnControlProperty);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
var
|
|
111
|
-
_this.width = (
|
|
112
|
-
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) ||
|
|
113
|
-
var
|
|
114
|
-
_this.caption = (
|
|
115
|
-
var
|
|
116
|
-
_this.fixed = (
|
|
110
|
+
var ref;
|
|
111
|
+
_this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : 150;
|
|
112
|
+
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || 'auto';
|
|
113
|
+
var ref1;
|
|
114
|
+
_this.caption = (ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref1 !== void 0 ? ref1 : '';
|
|
115
|
+
var ref2;
|
|
116
|
+
_this.fixed = (ref2 = props === null || props === void 0 ? void 0 : props.fixed) !== null && ref2 !== void 0 ? ref2 : 'none';
|
|
117
117
|
_this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
|
|
118
118
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
119
|
-
var
|
|
120
|
-
_this.sort = (
|
|
119
|
+
var ref3;
|
|
120
|
+
_this.sort = (ref3 = props === null || props === void 0 ? void 0 : props.sort) !== null && ref3 !== void 0 ? ref3 : true;
|
|
121
121
|
_this.align = props === null || props === void 0 ? void 0 : props.align;
|
|
122
122
|
_this.colSpan = props === null || props === void 0 ? void 0 : props.colSpan;
|
|
123
|
-
var
|
|
124
|
-
_this.autoHeight = (
|
|
123
|
+
var ref4;
|
|
124
|
+
_this.autoHeight = (ref4 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && ref4 !== void 0 ? ref4 : false;
|
|
125
125
|
return _this;
|
|
126
126
|
}
|
|
127
127
|
return ColumnControlProperty;
|
|
@@ -136,25 +136,25 @@ var ColumnOptionAndDataSourcePropertyRules = /*#__PURE__*/ function(ColumnContro
|
|
|
136
136
|
var _this;
|
|
137
137
|
_this = _super.call(this, props);
|
|
138
138
|
_this.optionConfig = {
|
|
139
|
-
type:
|
|
139
|
+
type: 'enum',
|
|
140
140
|
enum: [
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
'custom',
|
|
142
|
+
'datasource',
|
|
143
|
+
'none'
|
|
144
144
|
],
|
|
145
|
-
message: RulesMessage.getMessage(
|
|
145
|
+
message: RulesMessage.getMessage('PleaseSelectTheCorrectOptionSettings')
|
|
146
146
|
};
|
|
147
147
|
_this.options = [
|
|
148
148
|
{
|
|
149
|
-
type:
|
|
150
|
-
message: RulesMessage.getMessage(
|
|
151
|
-
}
|
|
149
|
+
type: 'array',
|
|
150
|
+
message: RulesMessage.getMessage('isNotArray')
|
|
151
|
+
},
|
|
152
152
|
];
|
|
153
153
|
_this.datasourceBind = [
|
|
154
154
|
{
|
|
155
|
-
type:
|
|
156
|
-
message: RulesMessage.getMessage(
|
|
157
|
-
}
|
|
155
|
+
type: 'object',
|
|
156
|
+
message: RulesMessage.getMessage('isNotObject')
|
|
157
|
+
},
|
|
158
158
|
];
|
|
159
159
|
initOptionAndDataSourceRules.call(_assertThisInitialized(_this), props);
|
|
160
160
|
return _this;
|
|
@@ -69,17 +69,17 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { RuntimeControl } from
|
|
73
|
-
import ColumnControlProperty from
|
|
74
|
-
var ColumnControl = /*#__PURE__*/ function(
|
|
72
|
+
import { RuntimeControl } from '../BaseControl';
|
|
73
|
+
import ColumnControlProperty from './property';
|
|
74
|
+
var ColumnControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
75
75
|
"use strict";
|
|
76
|
-
_inherits(ColumnControl,
|
|
76
|
+
_inherits(ColumnControl, RuntimeControl1);
|
|
77
77
|
var _super = _createSuper(ColumnControl);
|
|
78
78
|
function ColumnControl(props) {
|
|
79
79
|
_classCallCheck(this, ColumnControl);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
_this.controlType =
|
|
82
|
+
_this.controlType = 'column';
|
|
83
83
|
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
@@ -23,11 +23,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
23
23
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24
24
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
25
25
|
}
|
|
26
|
-
import { isArray, isPlainObject } from
|
|
26
|
+
import { isArray, isPlainObject } from '@byteluck-fe/model-driven-shared';
|
|
27
27
|
export function setPropertyDontEnum(obj, property) {
|
|
28
|
-
var
|
|
28
|
+
var ref;
|
|
29
29
|
// 如果没有被设置过不允许枚举的话,说明是第一次被设置,需要设置属性不允许枚举
|
|
30
|
-
if ((
|
|
30
|
+
if ((ref = Object.getOwnPropertyDescriptors(obj)[property]) === null || ref === void 0 ? void 0 : ref.enumerable) {
|
|
31
31
|
Object.defineProperty(obj, property, {
|
|
32
32
|
enumerable: false
|
|
33
33
|
});
|
|
@@ -36,17 +36,17 @@ export function setPropertyDontEnum(obj, property) {
|
|
|
36
36
|
export function defineParent(control, parent) {
|
|
37
37
|
control.parent = parent;
|
|
38
38
|
// 如果没有被设置过不允许枚举的话,说明是第一次被代理,需要设置parent属性不允许枚举
|
|
39
|
-
setPropertyDontEnum(control,
|
|
39
|
+
setPropertyDontEnum(control, 'parent');
|
|
40
40
|
}
|
|
41
41
|
export function defineArrayParent(controls, parent) {
|
|
42
42
|
controls.forEach(function(item) {
|
|
43
43
|
defineParent(item, parent);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
var targetKey = Symbol(
|
|
46
|
+
var targetKey = Symbol('targetKey');
|
|
47
47
|
function getTargetValue(value) {
|
|
48
|
-
var
|
|
49
|
-
return (
|
|
48
|
+
var _targetKey;
|
|
49
|
+
return (_targetKey = value[targetKey]) !== null && _targetKey !== void 0 ? _targetKey : value;
|
|
50
50
|
}
|
|
51
51
|
function proxyState(target, parent) {
|
|
52
52
|
defineArrayParent(target, parent);
|
|
@@ -70,7 +70,7 @@ function proxyState(target, parent) {
|
|
|
70
70
|
}
|
|
71
71
|
var _Reflect;
|
|
72
72
|
// 更改长度为当前长度,代表没变,直接返回true,否则在safari 13.x版本的严格模式会引起页面崩溃
|
|
73
|
-
if (isArray(target) && property ===
|
|
73
|
+
if (isArray(target) && property === 'length' && value === target.length) {
|
|
74
74
|
return true;
|
|
75
75
|
}
|
|
76
76
|
var result = (_Reflect = Reflect).set.apply(_Reflect, [
|
|
@@ -69,26 +69,26 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { DesignerControl } from
|
|
73
|
-
import BaseControlProperty from
|
|
74
|
-
var FormControl = /*#__PURE__*/ function(
|
|
72
|
+
import { DesignerControl } from '../BaseControl';
|
|
73
|
+
import BaseControlProperty from './property';
|
|
74
|
+
var FormControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
75
75
|
"use strict";
|
|
76
|
-
_inherits(FormControl,
|
|
76
|
+
_inherits(FormControl, DesignerControl1);
|
|
77
77
|
var _super = _createSuper(FormControl);
|
|
78
78
|
function FormControl(props) {
|
|
79
79
|
_classCallCheck(this, FormControl);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
_this.controlType =
|
|
82
|
+
_this.controlType = 'form';
|
|
83
83
|
_this.props = new BaseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return FormControl;
|
|
87
87
|
}(DesignerControl);
|
|
88
88
|
FormControl.controlEventKeys = [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
'on_change',
|
|
90
|
+
'on_focus',
|
|
91
|
+
'on_blur',
|
|
92
92
|
];
|
|
93
93
|
export default FormControl;
|
|
94
94
|
export { FormControl as DesignerFormControl };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
4
|
export default {
|
|
5
5
|
Designer: Designer,
|
|
6
6
|
Runtime: Runtime,
|
|
7
7
|
Property: Property
|
|
8
8
|
};
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|