@cloudbase/framework-plugin-low-code 0.6.15 → 0.6.16
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.
|
@@ -406,14 +406,14 @@ function generateDataBinds(dataBinds, isComposite) {
|
|
|
406
406
|
funcCode = `() => ({__type: "scopedValue", getValue: ($scope)=>$scope.${bind.bindDataPath}})}`;
|
|
407
407
|
}
|
|
408
408
|
else if (bind.type === weapps_core_1.PropBindType.expression) {
|
|
409
|
-
let code = bind.bindDataPath
|
|
409
|
+
let code = bind.bindDataPath;
|
|
410
410
|
if (isComposite) {
|
|
411
411
|
funcCode = `(forItems) => { const $for = forItems; return (${code.replace(/\$comp/g, 'this.$WEAPPS_COMP')})}`;
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
funcCode = /\$scope\./.test(code)
|
|
415
|
-
? `(forItems, event) => ({__type: "scopedValue", getValue: ($scope) => { const $for = forItems;return (${code})}})`
|
|
416
|
-
: `(forItems, event) => { const $for = forItems;return (${code})}`;
|
|
415
|
+
? `(forItems, event) => ({__type: "scopedValue", getValue: ($scope) => { const $for = forItems;return (\n${code}\n)}})`
|
|
416
|
+
: `(forItems, event) => { const $for = forItems;return (\n${code}\n)}`;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
else if (bind.type === weapps_core_1.PropBindType.prop) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
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",
|