@cloudbase/lowcode-builder 1.3.12 → 1.3.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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",
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
crossorigin
|
|
476
476
|
src="<%=
|
|
477
477
|
cdnEndpoints.cdngo
|
|
478
|
-
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
478
|
+
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.e8d1597a7c671defbbac.bundle.js"
|
|
479
479
|
></script>
|
|
480
480
|
</body>
|
|
481
481
|
</html>
|
|
@@ -27,7 +27,7 @@ function createGlboalApi() {
|
|
|
27
27
|
const mpApp = createMpApp({
|
|
28
28
|
appConfig: <%= appConfig %>
|
|
29
29
|
});
|
|
30
|
-
const globalAPI = {
|
|
30
|
+
const globalAPI = Object.assign(mpApp, {
|
|
31
31
|
id: '<%= appId %>',
|
|
32
32
|
domain: '<%= domain %>',
|
|
33
33
|
pages: {},
|
|
@@ -45,7 +45,7 @@ function createGlboalApi() {
|
|
|
45
45
|
return $page.invokeComponentMethod(params)
|
|
46
46
|
},
|
|
47
47
|
// ... other sdk apis & apis from mp
|
|
48
|
-
} // The global api exposed to lowcode
|
|
48
|
+
}) // The global api exposed to lowcode
|
|
49
49
|
|
|
50
50
|
globalAPI.__internal__.enumOptions = enumOptions
|
|
51
51
|
globalAPI.utils.formatEnum = formatEnum
|
|
@@ -707,13 +707,14 @@ class UserWidget {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
// 优先 custom
|
|
710
|
-
if (target.custom
|
|
710
|
+
if (prop in target.custom) {
|
|
711
711
|
return target.custom[prop];
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
// 再尝试内置的方法和属性
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
if (prop in target.sys) {
|
|
716
|
+
return target.sys[prop];
|
|
717
|
+
}
|
|
717
718
|
|
|
718
719
|
// 兼容原来的 widget。最后直接代理到 widget 上,主要是访问组件的属性
|
|
719
720
|
// return target._widget[prop];
|