@cloudbase/lowcode-builder 1.8.94 → 1.8.95
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/lib/builder/core/index.js +0 -6
- package/lib/builder/h5/index.js +24 -6
- package/lib/builder/mp/index.js +1 -1
- package/lib/builder/util/common.d.ts +1 -1
- package/lib/builder/util/common.js +1 -2
- package/lib/builder.web.js +8 -55
- package/package.json +2 -2
- package/template/html/index.html.ejs +1 -1
- package/template/mp/common/data-patch.js +10 -3
- package/template/mp/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.95",
|
|
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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@babel/core": "7.21.4",
|
|
49
49
|
"@babel/preset-env": "7.21.4",
|
|
50
50
|
"@cloudbase/cals": "^1.0.75",
|
|
51
|
-
"@cloudbase/lowcode-generator": "^1.8.
|
|
51
|
+
"@cloudbase/lowcode-generator": "^1.8.28",
|
|
52
52
|
"axios": "^0.21.0",
|
|
53
53
|
"browserfs": "^1.4.3",
|
|
54
54
|
"browserify-zlib": "^0.2.0",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
crossorigin
|
|
546
546
|
src="<%=
|
|
547
547
|
cdnEndpoints.cdngo
|
|
548
|
-
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
548
|
+
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.b11c3f67fb9d0033778b.bundle.js"
|
|
549
549
|
></script>
|
|
550
550
|
</body>
|
|
551
551
|
</html>
|
|
@@ -37,9 +37,16 @@ function patchProp(baseWidget, pendingWidget, patch, prefixes) {
|
|
|
37
37
|
if (pendingWidget._waIf === false && baseWidget._waIf === false) {
|
|
38
38
|
return
|
|
39
39
|
}
|
|
40
|
-
const allProps = Object.keys(pendingWidget)
|
|
41
|
-
// Attention:
|
|
42
|
-
|
|
40
|
+
const allProps = Array.from(new Set([...Object.keys(pendingWidget), ...Object.keys(baseWidget)]));
|
|
41
|
+
// Attention: can not set xxx value to undefined with setData
|
|
42
|
+
let hasUndefined = false;
|
|
43
|
+
const differentProps = allProps.filter(prop => {
|
|
44
|
+
if(pendingWidget[prop] === undefined) {
|
|
45
|
+
hasUndefined = true;
|
|
46
|
+
}
|
|
47
|
+
// Attention: since setData will copy data deeply, if property is object, it should be treated as different
|
|
48
|
+
return typeof pendingWidget[prop] === 'object' || pendingWidget[prop] !== baseWidget[prop]
|
|
49
|
+
})
|
|
43
50
|
if (differentProps.length === 1 || differentProps.length <= allProps.length / 3) {
|
|
44
51
|
differentProps.map(patchProp => {
|
|
45
52
|
patch[prefixes + '.' + patchProp] = pendingWidget[patchProp]
|
package/template/mp/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dependencies": {<% if(importJSSDK) {%>
|
|
6
6
|
"@cloudbase/js-sdk": "2.5.6-beta.1",<% } %>
|
|
7
7
|
"@cloudbase/oauth": "0.1.1-alpha.5",
|
|
8
|
-
"@cloudbase/weda-client": "1.0.
|
|
8
|
+
"@cloudbase/weda-client": "1.0.31",
|
|
9
9
|
"@cloudbase/weda-cloud-sdk": "1.0.59",
|
|
10
10
|
"mobx": "^5.15.4",
|
|
11
11
|
"lodash.get": "^4.4.2",
|