@cloudbase/framework-plugin-low-code 0.7.5 → 0.7.6
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.
|
@@ -214,7 +214,14 @@ function translateStyleByHandler(style = {}, handler) {
|
|
|
214
214
|
setStyleValue(result, key, value);
|
|
215
215
|
}
|
|
216
216
|
else if (value !== undefined && value !== null) {
|
|
217
|
+
try {
|
|
218
|
+
|
|
217
219
|
setStyleValue(result, key, handler(value));
|
|
220
|
+
}catch(e){
|
|
221
|
+
console.log(style,key,value)
|
|
222
|
+
console.log(e)
|
|
223
|
+
throw e
|
|
224
|
+
}
|
|
218
225
|
}
|
|
219
226
|
return result;
|
|
220
227
|
}, {});
|
|
@@ -257,6 +264,7 @@ function toREM(cssLen) {
|
|
|
257
264
|
return calPxToREM(cssLen);
|
|
258
265
|
}
|
|
259
266
|
else {
|
|
267
|
+
console.log(cssLen)
|
|
260
268
|
throw new Error('cssLen type error');
|
|
261
269
|
}
|
|
262
270
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -35,7 +35,7 @@ function createGlboalApi() {
|
|
|
35
35
|
return <%= appConfig %>;
|
|
36
36
|
},
|
|
37
37
|
resolveStaticResourceUrl(staticUrl) {
|
|
38
|
-
if (/^\//.test(staticUrl)) {
|
|
38
|
+
if (/^\//.test(staticUrl) && !window._isPrivate) {
|
|
39
39
|
const domain = globalAPI?.__internal__?.getConfig?.()?.staticResourceDomain || globalAPI?.domain || ''
|
|
40
40
|
const url = `https://${domain}${staticUrl}`;
|
|
41
41
|
return url;
|