@cloudbase/framework-plugin-low-code 0.5.16 → 0.5.19

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.5.16",
3
+ "version": "0.5.19",
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",
@@ -440,10 +440,10 @@
440
440
  }
441
441
  </script>
442
442
  <script
443
- src="//qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/ajax/libs/mobx/5.15.7/mobx.umd.js"
443
+ src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/ajax/libs/mobx/5.15.7/mobx.umd.js"
444
444
  crossorigin="anonymous"
445
445
  ></script>
446
- <script src="//qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@0.3.19/dist/h5.browser.js"></script>
447
- <script src="//qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/npm/@zxing/library@0.18.6/umd/index.min.js"></script>
446
+ <script src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@0.3.19/dist/h5.browser.js"></script>
447
+ <script src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/npm/@zxing/library@0.18.6/umd/index.min.js"></script>
448
448
  </body>
449
449
  </html>
@@ -230,7 +230,7 @@ export const getRenderList = function (props) {
230
230
 
231
231
  // 单节点渲染
232
232
  const { fieldData, finalClassNameList, finalStyle } = getBindData({
233
- parentForItems,
233
+ forItems: parentForItems,
234
234
  scopeContext,
235
235
  wData: widgetsData,
236
236
  classNameList,
@@ -16,7 +16,6 @@ import { app } from './app/global-api'
16
16
  if (process.env.isApp) {
17
17
  initWebConfig(app, AppConfig);
18
18
  }
19
- attachFastClick && attachFastClick.attach && attachFastClick.attach(document.body)
20
19
 
21
20
  // 设置数据源请求的 loading 及 toast 处理
22
21
  setConfig({
@@ -87,14 +86,16 @@ if (process.env.NODE_ENV !== 'production') {
87
86
  }
88
87
 
89
88
  function render(props){
89
+ const target = props && props.container ? props.container.querySelector('#react-body') : document.getElementById('react-body');
90
90
  ReactDOM.render(
91
91
  <App />,
92
- props && props.container ? props.container.querySelector('#react-body') : document.getElementById('react-body')
92
+ target
93
93
  )
94
94
  }
95
95
 
96
96
  // if (!process.env.isAdminPortal) {
97
97
  if (!window.__POWERED_BY_QIANKUN__) {
98
+ attachFastClick && attachFastClick.attach && attachFastClick.attach(document.body)
98
99
  render()
99
100
  }
100
101
 
@@ -19,7 +19,7 @@ import handler$<%= handler.name %> from "./lowcode/handler/<%= handler.name %>.j
19
19
  <% var componentsMap = {}; useComponents.forEach(compItem => {%>
20
20
  <% if(compItem.entries && compItem.entries.components){ %>
21
21
  import { <%= compItem.name %> as <%= compItem.var %> } from "libraries/<%= compItem.moduleName %>@<%= compItem.version %>/<%= compItem.entries.components %>";
22
- <% } else if(compItem.entries && compItem.entries.components){ %><% if(!componentsMap[compItem.moduleName]){ componentsMap[compItem.moduleName] = true %>
22
+ <% } else if(compItem.entries && compItem.entries.entry){ %><% if(!componentsMap[compItem.moduleName]){ componentsMap[compItem.moduleName] = true %>
23
23
  import <%= compItem.moduleNameVar %> from "libraries/<%= compItem.moduleName %>@<%= compItem.version %>/<%= compItem.entries.entry %>";
24
24
  <% } %>const { <%= compItem.name %>: <%= compItem.var %> } = <%= compItem.moduleNameVar %>.components
25
25
  <% } else { %>import <%= compItem.var %> from "libraries/<%= compItem.moduleName %>@<%= compItem.version %>/components/<%= compItem.name %>";<% } %>