@byteluck-fe/model-driven-core-all 2.5.0-alpha.9 → 2.5.0-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.
- package/dist/esm/getHackerControl.js +3 -16
- package/dist/esm/loadRemoteScripts.js +2 -2
- package/dist/esm/registerCustomControls.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/getHackerControl.d.ts +23 -23
- package/dist/types/index.d.ts +9 -9
- package/dist/types/loadRemoteScripts.d.ts +7 -7
- package/dist/types/registerByteluckControls.d.ts +6 -6
- package/dist/types/registerCustomControls.d.ts +22 -22
- package/dist/types/upgradeCustomControlSchema.d.ts +2 -2
- package/package.json +6 -6
|
@@ -23,19 +23,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
23
23
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
24
|
return Constructor;
|
|
25
25
|
}
|
|
26
|
-
function _defineProperty(obj, key, value) {
|
|
27
|
-
if (key in obj) {
|
|
28
|
-
Object.defineProperty(obj, key, {
|
|
29
|
-
value: value,
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true
|
|
33
|
-
});
|
|
34
|
-
} else {
|
|
35
|
-
obj[key] = value;
|
|
36
|
-
}
|
|
37
|
-
return obj;
|
|
38
|
-
}
|
|
39
26
|
function _getPrototypeOf(o) {
|
|
40
27
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
41
28
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -111,7 +98,7 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
111
98
|
_classCallCheck(this, HackerControl);
|
|
112
99
|
var _this;
|
|
113
100
|
_this = _super.call(this, props);
|
|
114
|
-
|
|
101
|
+
_this.props = {};
|
|
115
102
|
return _this;
|
|
116
103
|
}
|
|
117
104
|
_createClass(HackerControl, null, [
|
|
@@ -133,7 +120,7 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
133
120
|
_classCallCheck(this, HackerControl);
|
|
134
121
|
var _this;
|
|
135
122
|
_this = _super.call(this, props);
|
|
136
|
-
|
|
123
|
+
_this.props = {};
|
|
137
124
|
return _this;
|
|
138
125
|
}
|
|
139
126
|
_createClass(HackerControl, null, [
|
|
@@ -157,7 +144,7 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
157
144
|
}
|
|
158
145
|
return HackerPropertyClass;
|
|
159
146
|
}(Property);
|
|
160
|
-
var template = '<div style="background:#fff0ef;color:#ff6459;padding:8px 16px;border-radius:4px;"><i class="
|
|
147
|
+
var template = '<div style="background:#fff0ef;color:#ff6459;padding:8px 16px;border-radius:4px;"><i class="low-code iconshibaimian" style="margin-right:4px"></i>'.concat(tipMessage, "</div>");
|
|
161
148
|
var control = {
|
|
162
149
|
Runtime: HackerControlClass,
|
|
163
150
|
Designer: HackerControlClass,
|
|
@@ -191,8 +191,8 @@ export function loadScriptFromFetch(url, globalModules) {
|
|
|
191
191
|
fetch: nativeFetch
|
|
192
192
|
};
|
|
193
193
|
return new Promise(function(resolve, reject) {
|
|
194
|
-
|
|
195
|
-
options.fetch(
|
|
194
|
+
// const newUrl = url.replace(/^(https?:)?\/\/.*?\/component/, '/component')
|
|
195
|
+
options.fetch(url).then(function(response) {
|
|
196
196
|
var module = {
|
|
197
197
|
exports: {}
|
|
198
198
|
};
|
|
@@ -293,7 +293,7 @@ function pushControl(type, control, registered, isLoaded, props) {
|
|
|
293
293
|
if (registered.has(control.Runtime.controlType)) {
|
|
294
294
|
warn("repeat register ".concat(control.Runtime.controlType));
|
|
295
295
|
}
|
|
296
|
-
// let oldVersion
|
|
296
|
+
// let oldVersion // 此处不能赋值
|
|
297
297
|
// component_id_version_list.every(id => {
|
|
298
298
|
// const index = String(control.Runtime.controlType).indexOf(':')
|
|
299
299
|
// if (id.startsWith(control.Runtime.controlType) && index > -1) {
|