@byteluck-fe/model-driven-core-all 2.23.0-beta.13 → 2.23.0-beta.14
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.
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -77,12 +73,28 @@ function _type_of(obj) {
|
|
|
77
73
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
74
|
}
|
|
79
75
|
function _is_native_reflect_construct() {
|
|
76
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
+
if (Reflect.construct.sham) return false;
|
|
78
|
+
if (typeof Proxy === "function") return true;
|
|
80
79
|
try {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
}
|
|
80
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
+
return true;
|
|
82
|
+
} catch (e) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function _create_super(Derived) {
|
|
87
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
+
return function _createSuperInternal() {
|
|
89
|
+
var Super = _get_prototype_of(Derived), result;
|
|
90
|
+
if (hasNativeReflectConstruct) {
|
|
91
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
+
} else {
|
|
94
|
+
result = Super.apply(this, arguments);
|
|
95
|
+
}
|
|
96
|
+
return _possible_constructor_return(this, result);
|
|
97
|
+
};
|
|
86
98
|
}
|
|
87
99
|
import { RuntimeControl } from '@byteluck-fe/model-driven-core';
|
|
88
100
|
import { DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
@@ -94,12 +106,12 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
94
106
|
HackerControlClass = /*#__PURE__*/ function(RuntimeControl) {
|
|
95
107
|
"use strict";
|
|
96
108
|
_inherits(HackerControl, RuntimeControl);
|
|
109
|
+
var _super = _create_super(HackerControl);
|
|
97
110
|
function HackerControl(props) {
|
|
98
111
|
_class_call_check(this, HackerControl);
|
|
99
112
|
var _this;
|
|
100
|
-
_this =
|
|
101
|
-
|
|
102
|
-
]), _define_property(_this, "props", {});
|
|
113
|
+
_this = _super.call(this, props);
|
|
114
|
+
_define_property(_assert_this_initialized(_this), "props", {});
|
|
103
115
|
return _this;
|
|
104
116
|
}
|
|
105
117
|
_create_class(HackerControl, null, [
|
|
@@ -116,12 +128,12 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
116
128
|
HackerControlClass = /*#__PURE__*/ function(DesignerControl) {
|
|
117
129
|
"use strict";
|
|
118
130
|
_inherits(HackerControl, DesignerControl);
|
|
131
|
+
var _super = _create_super(HackerControl);
|
|
119
132
|
function HackerControl(props) {
|
|
120
133
|
_class_call_check(this, HackerControl);
|
|
121
134
|
var _this;
|
|
122
|
-
_this =
|
|
123
|
-
|
|
124
|
-
]), _define_property(_this, "props", {});
|
|
135
|
+
_this = _super.call(this, props);
|
|
136
|
+
_define_property(_assert_this_initialized(_this), "props", {});
|
|
125
137
|
return _this;
|
|
126
138
|
}
|
|
127
139
|
_create_class(HackerControl, null, [
|
|
@@ -138,9 +150,10 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
138
150
|
var HackerPropertyClass = /*#__PURE__*/ function(Property) {
|
|
139
151
|
"use strict";
|
|
140
152
|
_inherits(HackerPropertyClass, Property);
|
|
153
|
+
var _super = _create_super(HackerPropertyClass);
|
|
141
154
|
function HackerPropertyClass() {
|
|
142
155
|
_class_call_check(this, HackerPropertyClass);
|
|
143
|
-
return
|
|
156
|
+
return _super.apply(this, arguments);
|
|
144
157
|
}
|
|
145
158
|
return HackerPropertyClass;
|
|
146
159
|
}(Property);
|
|
@@ -190,7 +190,7 @@ function _registerCustomControls() {
|
|
|
190
190
|
//qiyu 2022-4-18 逐个加载自定义组件,只有异常的组件加载为hackerControl
|
|
191
191
|
return [
|
|
192
192
|
4,
|
|
193
|
-
Promise.all(components.map(
|
|
193
|
+
Promise.all(components.map(function() {
|
|
194
194
|
var _ref = _async_to_generator(function(item) {
|
|
195
195
|
var isLoaded, control, url, e, link, reg, reg1, styleLink;
|
|
196
196
|
return _ts_generator(this, function(_state) {
|