@byteluck-fe/model-driven-core-all 2.6.0-alpha.9 → 2.7.0-alpha.0
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.
|
@@ -88,7 +88,7 @@ import { DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
|
88
88
|
import { Property } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
export function getHackerControl(comid, type, tipMessage) {
|
|
90
90
|
var HackerControlClass;
|
|
91
|
-
|
|
91
|
+
// 伪造一个组件
|
|
92
92
|
if (type === 'runtime') {
|
|
93
93
|
HackerControlClass = /*#__PURE__*/ (function(RuntimeControl1) {
|
|
94
94
|
"use strict";
|
|
@@ -144,7 +144,7 @@ export function getHackerControl(comid, type, tipMessage) {
|
|
|
144
144
|
}
|
|
145
145
|
return HackerPropertyClass;
|
|
146
146
|
}(Property);
|
|
147
|
-
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>");
|
|
148
148
|
var control = {
|
|
149
149
|
Runtime: HackerControlClass,
|
|
150
150
|
Designer: HackerControlClass,
|
|
@@ -97,8 +97,8 @@ export function loadScriptFromFetch(url, globalModules) {
|
|
|
97
97
|
fetch: nativeFetch
|
|
98
98
|
};
|
|
99
99
|
return new Promise(function(resolve, reject) {
|
|
100
|
-
|
|
101
|
-
options.fetch(
|
|
100
|
+
// const newUrl = url.replace(/^(https?:)?\/\/.*?\/component/, '/component')
|
|
101
|
+
options.fetch(url).then(function(response) {
|
|
102
102
|
var module2 = {
|
|
103
103
|
exports: {}
|
|
104
104
|
};
|
|
@@ -187,7 +187,7 @@ function pushControl(type, control, registered, isLoaded, props) {
|
|
|
187
187
|
if (registered.has(control.Runtime.controlType)) {
|
|
188
188
|
warn("repeat register ".concat(control.Runtime.controlType));
|
|
189
189
|
}
|
|
190
|
-
// let oldVersion
|
|
190
|
+
// let oldVersion // 此处不能赋值
|
|
191
191
|
// component_id_version_list.every(id => {
|
|
192
192
|
// const index = String(control.Runtime.controlType).indexOf(':')
|
|
193
193
|
// if (id.startsWith(control.Runtime.controlType) && index > -1) {
|