@cloudbase/framework-plugin-low-code 0.6.29 → 0.6.30

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/framework-plugin-low-code",
3
- "version": "0.6.29",
3
+ "version": "0.6.30",
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",
@@ -24,7 +24,9 @@ const evtListeners = {<% Object.entries(eventHandlers).map(([handlerName, listen
24
24
  key: '<%= l.key %>',
25
25
  handler: <% if (l.type == 'rematch') {%> _handler<%= l.handler %> <%} else {%> <%= l.handler %> <%} %>,
26
26
  data: <%= stringifyObj(l.data, {depth: null}) %>,
27
- boundData: {<% Object.entries(l.boundData).map(([prop, expr])=>{%>'<%= prop %>':(lists, forItems, event, $context) => {const $for=forItems; return <%= expr %>},
27
+ boundData: {<% Object.entries(l.boundData).map(([prop, expr])=>{%>'<%= prop %>':(lists, forItems, event, $context) => {const $for=forItems; return (
28
+ <%= expr %>
29
+ )},
28
30
  <%}) %>}
29
31
  },<%})%>
30
32
  ],<%})%>
@@ -52,7 +54,9 @@ const handler = {<% handlers.forEach(h => {%>
52
54
 
53
55
  const dataBinds = {<% Object.entries(dataBinds).map(([id, widgetBinds])=>{%>
54
56
  <%= id %>: { <% Object.entries(widgetBinds).map(([prop, expr]) => { %>
55
- <%= prop %>: function (lists, forItems, event, $context) {const $for=forItems; return <%= expr %>; },<% }) %>
57
+ <%= prop %>: function (lists, forItems, event, $context) {const $for=forItems; return (
58
+ <%= expr %>
59
+ ); },<% }) %>
56
60
  },<%}) %>
57
61
  }
58
62
 
@@ -19,14 +19,18 @@ const evtListeners = {<% Object.entries(eventHanlders).map(([handlerName, listen
19
19
  key: '<%= l.key %>',
20
20
  handler: <% if (l.type === 'rematch') {%> handlers.<%= l.handler %> <%} else if (l.type == 'material') {%> function(...args) { return require('../../materials/<%= l.handlerModule %>/actions/<%= l.handler %>/index').default(...args) } <%} else {%> <%= l.handler %> <%} %>,
21
21
  data: <%= stringifyObj(l.data, {depth: null}) %>,
22
- boundData: {<% Object.entries(l.boundData).map(([prop, expr])=>{%>'<%= prop %>':(lists, forItems, event, $context) => {const $for = forItems; return <%= expr %>},
22
+ boundData: {<% Object.entries(l.boundData).map(([prop, expr])=>{%>'<%= prop %>':(lists, forItems, event, $context) => {const $for = forItems; return (
23
+ <%= expr %>
24
+ )},
23
25
  <%}) %>}
24
26
  },<%})%>
25
27
  ],<%})%>
26
28
  }
27
29
  const dataBinds = {<% Object.entries(dataBinds).map(([id, widgetBinds])=>{%>
28
30
  <%= id %>: { <% Object.entries(widgetBinds).map(([prop, expr]) => { %>
29
- <%= prop %>: function (lists, forItems, event, $context) {const $for = forItems; return <%= expr %>; },<% }) %>
31
+ <%= prop %>: function (lists, forItems, event, $context) {const $for = forItems; return (
32
+ <%= expr %>
33
+ ); },<% }) %>
30
34
  },<%}) %>
31
35
  }
32
36