@dckj-npm/lowcode-code-generator 1.1.4 → 1.1.5

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.
@@ -1,6 +1,6 @@
1
1
  // src/standalone-loader.ts
2
2
  import fetch from "node-fetch";
3
- var packageVersion = "1.1.4";
3
+ var packageVersion = "1.1.5";
4
4
  var DEFAULT_WORKER_JS = `https://cdn.jsdelivr.net/npm/@dckj-npm/lowcode-code-generator@${packageVersion}/dist/standalone-worker.min.js`;
5
5
  var DEFAULT_TIMEOUT_IN_MS = 60 * 1e3;
6
6
  var workerJsCache = /* @__PURE__ */ new Map();
@@ -33,7 +33,7 @@ __export(standalone_loader_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(standalone_loader_exports);
35
35
  var import_node_fetch = __toESM(require("node-fetch"));
36
- var packageVersion = "1.1.4";
36
+ var packageVersion = "1.1.5";
37
37
  var DEFAULT_WORKER_JS = `https://cdn.jsdelivr.net/npm/@dckj-npm/lowcode-code-generator@${packageVersion}/dist/standalone-worker.min.js`;
38
38
  var DEFAULT_TIMEOUT_IN_MS = 60 * 1e3;
39
39
  var workerJsCache = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/lowcode-code-generator",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "出码引擎 for LowCode Engine(额外添加vue3处理方案)",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,12 +16,7 @@
16
16
  "standalone",
17
17
  "standalone-worker",
18
18
  "standalone-loader",
19
- "loader",
20
- "CHANGELOG.md",
21
- "README.md",
22
- "CONTRIBUTING.md",
23
- "example-schema.json",
24
- "example-schema.json5"
19
+ "loader"
25
20
  ],
26
21
  "bin": {
27
22
  "lowcode-code-generator": "bin/lowcode-code-generator.js"
package/CHANGELOG.md DELETED
@@ -1,280 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [1.0.7-beta.2](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.3...@alilc/lowcode-code-generator@1.0.7-beta.2) (2022-11-24)
6
-
7
- ### Bug Fixes
8
-
9
- * 🐛 解决 react 中 jsx 出码的时候对于循环数据漏包 __$evalArray 的问题 ([3b9b177](https://github.com/alibaba/lowcode-engine/commit/3b9b177b052169cd0c1078cf8b488f04cb374dac))
10
- * 🐛 解决出码缺乏对于 i18n 数据的 params 的处理的问题 ([2cf788c](https://github.com/alibaba/lowcode-engine/commit/2cf788c1716ae63fef20004348c59a5a65c6b3d2)), closes [#288](https://github.com/alibaba/lowcode-engine/issues/288)
11
- * 🐛 解决小程序环境没有 window, 而 rax 出码中却默认在 __$eval 中用到 window 的问题 ([ce531ae](https://github.com/alibaba/lowcode-engine/commit/ce531aeb457711fac92d828b431cfc3d643b3682))
12
- * add support for jsx expression ([453e069](https://github.com/alibaba/lowcode-engine/commit/453e0699ece06d98e59227e23248baf1de4082aa))
13
- * 修复生成的 icejs 项目不支持 constants 的问题, fixes [#1259](https://github.com/alibaba/lowcode-engine/issues/1259) ([a079fbc](https://github.com/alibaba/lowcode-engine/commit/a079fbc256f8275e8a69eb6d8abb6f6b08179578))
14
- * 修正 react 框架出码中在严格模式对 methods 和 context 的处理 ([b1a6100](https://github.com/alibaba/lowcode-engine/commit/b1a61006bba4292790899c7c49c9c611a9384472))
15
- ### [1.0.7-beta.1](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.7-beta.0...@alilc/lowcode-code-generator@1.0.7-beta.1) (2022-10-26)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * fix empty string lost when generate variable ([2cf74cd](https://github.com/alibaba/lowcode-engine/commit/2cf74cd04b4f48a3501d37329d39784f6964366a))
21
-
22
- ### [1.0.7-beta.0](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.6-beta.0...@alilc/lowcode-code-generator@1.0.7-beta.0) (2022-10-25)
23
-
24
- ### [1.0.6-beta.0](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.3...@alilc/lowcode-code-generator@1.0.6-beta.0) (2022-10-25)
25
-
26
-
27
- ### Features
28
-
29
- * 🎸 设计态支持数据源引擎配置 ([04631f8](https://github.com/alibaba/lowcode-engine/commit/04631f813782dbf6d175f51c40ccc75ca4c099d2))
30
- * 大纲树支持节点过滤 ([f30db20](https://github.com/alibaba/lowcode-engine/commit/f30db20606f5f2fdac0017305b1dda7ab2258c4b))
31
- * 为 renderer 追加 displayName,以支持后续的反射功能 ([6399cce](https://github.com/alibaba/lowcode-engine/commit/6399cce05ae494dac6facf4366949b0b97576079))
32
- * 资产包支持一个package从另一个package异步导出 ([#1150](https://github.com/alibaba/lowcode-engine/issues/1150)) ([6b78157](https://github.com/alibaba/lowcode-engine/commit/6b78157b211d6eabf60297b9ce980a3e10cc8272))
33
- * add availableActions for ComponentMeta ([de1f60b](https://github.com/alibaba/lowcode-engine/commit/de1f60bbee157267e2c2212df1077cc49ce506f4))
34
- * add code coverage action ([ed3ddcf](https://github.com/alibaba/lowcode-engine/commit/ed3ddcf5c942a8e78e1f247e41d4159da97e75a8))
35
- * add componentMeta getter for setingPropEntry ([2f8b954](https://github.com/alibaba/lowcode-engine/commit/2f8b9545de0210260001a832b52f608238ac4191))
36
- * add expanded to shell SettingPropEntry ([534e294](https://github.com/alibaba/lowcode-engine/commit/534e29429d445d97c71d95d4c4e492868527bb6b))
37
- * add flag createIfNode for ShellNode#getProp ([152a24d](https://github.com/alibaba/lowcode-engine/commit/152a24d65528d0a3b7990c9aa87e6d8d09aa9b2a))
38
- * add getComponentsMap() for DocumentModel ([f956645](https://github.com/alibaba/lowcode-engine/commit/f9566454ef83eb4c48b68d63a766c3d0ff927c73))
39
- * add getExtraPropValue setExtraPropValue to shell SettingPropEntry ([70e7c1c](https://github.com/alibaba/lowcode-engine/commit/70e7c1c2e8998e80d58447759efdf651105724a9))
40
- * add id setter for DocumentModel ([941ae05](https://github.com/alibaba/lowcode-engine/commit/941ae0592586334694c48197aaa6692d49cefbce))
41
- * add importSchema event for documentModel ([4b8ec09](https://github.com/alibaba/lowcode-engine/commit/4b8ec09e86e3950a9d4066c28e681a59273b4c93))
42
- * add isGroup & items to shell SettingPropEntry ([7b76ff3](https://github.com/alibaba/lowcode-engine/commit/7b76ff357e4e638454c31a9b1324fb68966ec522))
43
- * add mergeChldren API for shell node ([a47d4ee](https://github.com/alibaba/lowcode-engine/commit/a47d4eea28cf4479e3b3a2bd1d194a6433666825))
44
- * add onMountNode event for DocumentModel ([dcc247c](https://github.com/alibaba/lowcode-engine/commit/dcc247c7d54f6af2ed36d46bfd79c7eacf7bd604))
45
- * add renderer for simulatorHost ([1cfc8d6](https://github.com/alibaba/lowcode-engine/commit/1cfc8d668b8897ef3a53c11520312cc6d18338f9))
46
- * add script for synchronizing packages to intranet registry ([b4f463e](https://github.com/alibaba/lowcode-engine/commit/b4f463e7d45f7b476de04bd4d98ad9f74d53cf13))
47
- * add scrollToNode for simulator host ([#1075](https://github.com/alibaba/lowcode-engine/issues/1075)) ([0bcd9ff](https://github.com/alibaba/lowcode-engine/commit/0bcd9ff78227aeddaf2fdc22d10fbd662fed91d3))
48
- * add setVisible for Node ([ba90327](https://github.com/alibaba/lowcode-engine/commit/ba90327eac0f5f82f6349bb9a7684bf51259e9c9))
49
- * add showArea & hideArea method for skeleton ([8f6b53e](https://github.com/alibaba/lowcode-engine/commit/8f6b53e67d89ee7af754132f0994a759522b3821))
50
- * add slotNode for shell prop ([d9a44c5](https://github.com/alibaba/lowcode-engine/commit/d9a44c5de7861e9180567b4afb787e381cefac61))
51
- * add some features ([18d1a4f](https://github.com/alibaba/lowcode-engine/commit/18d1a4fe1d952bcd4715e693def09fee94da49a5))
52
- * add some necessary methods and attributes ([4fd7f27](https://github.com/alibaba/lowcode-engine/commit/4fd7f27f8eb33b66324ede279b412940fc1f7032))
53
- * add some params for onDragstart & onDrag & onDragend ([d1c9838](https://github.com/alibaba/lowcode-engine/commit/d1c9838343ba1bdd4c02c1cfbf1f920dd8c87e7d))
54
- * add top attrbute for Shell SettingPropEntry ([51aca3d](https://github.com/alibaba/lowcode-engine/commit/51aca3d330b6483c05b71867f1b362a9f5db6cfe))
55
- * added lowcode engine standard specs ([f25feba](https://github.com/alibaba/lowcode-engine/commit/f25feba63f181efa83f1a8dff530e1c39ab1b34c))
56
- * added lowcode engine standard specs ([57df803](https://github.com/alibaba/lowcode-engine/commit/57df803179ca9cec4e8ab1dac1be577175732e65))
57
- * added thisRequiredInJSE API to control whether JSExpression expression access context must use this ([#702](https://github.com/alibaba/lowcode-engine/issues/702)) ([da7f77e](https://github.com/alibaba/lowcode-engine/commit/da7f77ee91b3bf441a4a57614872df32d6a1d041))
58
- * assetLoader loda scripts with async=false ([f6ad4a1](https://github.com/alibaba/lowcode-engine/commit/f6ad4a157df8c0ff7db327f4770f454998693d9a))
59
- * change loop sertter config, set defaultValue prop to JsonSetter ([aa6b9c8](https://github.com/alibaba/lowcode-engine/commit/aa6b9c8f7a5353771af9f46216310f044e57c533))
60
- * cp dist files of simulator-renderer to that of engine ([03c5397](https://github.com/alibaba/lowcode-engine/commit/03c53971df6de8c35620fd77743ac4f57a82d323))
61
- * export nodeChildrenSymbol && remove some unnecessary editor.set ([e83adce](https://github.com/alibaba/lowcode-engine/commit/e83adcee815eea73b6b1ed4f43f4d684c11818ca))
62
- * fix render-core leaf hoc component condition config should get from leaf exportSchema fn ([85704c3](https://github.com/alibaba/lowcode-engine/commit/85704c36946191a1b88db789cfac59e9d027a371))
63
- * low-code components support lifecycle and function execution ([176583f](https://github.com/alibaba/lowcode-engine/commit/176583f48af573d30c0d2c36faa3d901b0541c06))
64
- * **material-parser:** check module before install it; fix default value issue in ts parser ([fc452f7](https://github.com/alibaba/lowcode-engine/commit/fc452f7166f02acfba6076c1a9425e6f5880b5f6))
65
- * modify the output method of rendering module parsing errors ([8255b79](https://github.com/alibaba/lowcode-engine/commit/8255b7945836ee5d25fae73913faa6d0af7b3ff3))
66
- * pass e to customizeIgnoreSelectors ([900b239](https://github.com/alibaba/lowcode-engine/commit/900b2394323e85f0dce5df83dfc773f96da23e24))
67
- * refine nesting drawer ([4c032d0](https://github.com/alibaba/lowcode-engine/commit/4c032d0d0ead9731c038bd62dccc4a7d96435183))
68
- * refine nesting drawer ([94a211e](https://github.com/alibaba/lowcode-engine/commit/94a211e2795f74721cfd2ae3ff38a1d3607e9cd0))
69
- * refine pop drawer ([abf8fae](https://github.com/alibaba/lowcode-engine/commit/abf8fae3ef4d62b5688362e1b98f1b508a207029))
70
- * requestHandlersMap should be optional ([ee7160e](https://github.com/alibaba/lowcode-engine/commit/ee7160ea3c625d421c07730ef51711b8f14392a0))
71
- * return unbind function for onChangeDetecting & onChangeSelection ([30267cb](https://github.com/alibaba/lowcode-engine/commit/30267cb173fca2cd80a61450b9f2fe2bceac0f06))
72
- * support for hiding settings tabs when there is only one item ([#669](https://github.com/alibaba/lowcode-engine/issues/669)) ([cbd95a1](https://github.com/alibaba/lowcode-engine/commit/cbd95a1778415406670f37507ce957af6b3ecd4a))
73
- * support for NotFoundComponent design state is optional ([#1013](https://github.com/alibaba/lowcode-engine/issues/1013)) ([d3c891e](https://github.com/alibaba/lowcode-engine/commit/d3c891e2a46d138e31c81a7f9b804a8240154df5))
74
- * support opening document with id ([3f7c0cd](https://github.com/alibaba/lowcode-engine/commit/3f7c0cd5191b7924f2630c58e6439f4d4a936ac9))
75
- * support SPA mode ([1f9150e](https://github.com/alibaba/lowcode-engine/commit/1f9150e4b260d522bd7cb31497069b700a1e8576))
76
- * sync utils/constants ([#506](https://github.com/alibaba/lowcode-engine/issues/506)) ([2871b5b](https://github.com/alibaba/lowcode-engine/commit/2871b5ba4c3dbf1ed76bf4d6359fb457190a9b22))
77
- * the tips when dragging a component from the component panel same with the moving component ([dbe0764](https://github.com/alibaba/lowcode-engine/commit/dbe0764ff4901450f03ca56b62167fbc87d2524a))
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * 🐛 解决 react 中 jsx 出码的时候对于循环数据漏包 __$evalArray 的问题 ([3b9b177](https://github.com/alibaba/lowcode-engine/commit/3b9b177b052169cd0c1078cf8b488f04cb374dac))
83
- * 🐛 解决出码缺乏对于 i18n 数据的 params 的处理的问题 ([2cf788c](https://github.com/alibaba/lowcode-engine/commit/2cf788c1716ae63fef20004348c59a5a65c6b3d2)), closes [#288](https://github.com/alibaba/lowcode-engine/issues/288)
84
- * 🐛 解决小程序环境没有 window, 而 rax 出码中却默认在 __$eval 中用到 window 的问题 ([ce531ae](https://github.com/alibaba/lowcode-engine/commit/ce531aeb457711fac92d828b431cfc3d643b3682))
85
- * 🐛 修复数据源引擎请求处理器映射严格模式下被过滤的问题 ([75626d8](https://github.com/alibaba/lowcode-engine/commit/75626d877db017b8862b1d5e64d75f3af7ff667a))
86
- * 🐛 修正 i18n 里面的一个参数命名问题 ([20c6fca](https://github.com/alibaba/lowcode-engine/commit/20c6fca03e99b11fa5c257cbbda0d4d23f410090))
87
- * 新元素无法在大纲树拖拽 ([3d41fd5](https://github.com/alibaba/lowcode-engine/commit/3d41fd5d0783048a7cfb54c6f80d058856153d25))
88
- * 修复React17选中组件bug ([750d282](https://github.com/alibaba/lowcode-engine/commit/750d282c03a880204fefdef01e180510465b82f8))
89
- * 修正 react 框架出码中在严格模式对 methods 和 context 的处理 ([b1a6100](https://github.com/alibaba/lowcode-engine/commit/b1a61006bba4292790899c7c49c9c611a9384472))
90
- * 左侧抽屉固定模式层级不足 ([c657cee](https://github.com/alibaba/lowcode-engine/commit/c657cee0694e3126dee89588a2aa17c4e118f786))
91
- * add lowcode-designer, lowcode-utils dependencies ([d250242](https://github.com/alibaba/lowcode-engine/commit/d2502427ca988881747a35bd8da49f024939b833))
92
- * add support for jsx expression ([1043ef8](https://github.com/alibaba/lowcode-engine/commit/1043ef82b1e9ceefc3b74fd21eb28e9a740bd1db))
93
- * addon-combine affect metadata unexpectedly ([fc5fbc6](https://github.com/alibaba/lowcode-engine/commit/fc5fbc63a04a32bc887754f32e74c76149d74b05))
94
- * adjust synchronize-order of packages ([81a7304](https://github.com/alibaba/lowcode-engine/commit/81a73049bd848524e1156761ded08ddf325863ba))
95
- * change typescript type export to export type ([50e4a03](https://github.com/alibaba/lowcode-engine/commit/50e4a03b7d810131ce413cc057b43d4a726f1ebe))
96
- * change typescript type export to export type ([573504b](https://github.com/alibaba/lowcode-engine/commit/573504b0e3537ca60d234ce2b2f3feedb323405e))
97
- * declare parameter appHelper for valid engine options ([058a842](https://github.com/alibaba/lowcode-engine/commit/058a84226af8ca19d8c7d63599d80d0cdf70281c))
98
- * defaultValue should be evaluated inspite of condition result is falsy, fixes [#1045](https://github.com/alibaba/lowcode-engine/issues/1045) ([fcfce3c](https://github.com/alibaba/lowcode-engine/commit/fcfce3cbeb5a53600c40aea07ffef19c9c9591c4))
99
- * delete the defaultValue configuration outside the loop ([acf7449](https://github.com/alibaba/lowcode-engine/commit/acf7449ca231d45e8ed7e1d9416817ea11b1266f))
100
- * delete unused typescript types ([63f5d2c](https://github.com/alibaba/lowcode-engine/commit/63f5d2ca3e0bda92898fd0df28c9500707812082))
101
- * delete unused typescript types ([2432aed](https://github.com/alibaba/lowcode-engine/commit/2432aed83d55407d2f8b5f94910ada7ea78bb59e))
102
- * designer/loadIncrementalAssets await Sequential ([#841](https://github.com/alibaba/lowcode-engine/issues/841)) ([8232424](https://github.com/alibaba/lowcode-engine/commit/823242469743d235923b3b946ec7d2db70887ead))
103
- * error thrown when triggering undo after save schema on SchemaPane ([9be46e7](https://github.com/alibaba/lowcode-engine/commit/9be46e7b34e3a40cbc489dbae4bfd0915c2090e3))
104
- * fallback focusNode to root if empty ([a9a118f](https://github.com/alibaba/lowcode-engine/commit/a9a118fe6e79080245c6eea42ed26772b7c784ca))
105
- * **filter:** unique key prop warning ([3fe6e41](https://github.com/alibaba/lowcode-engine/commit/3fe6e41536cd3a9b9c7eaca5b353de4bd1f91b11))
106
- * **filter:** unique key prop warning ([06e6920](https://github.com/alibaba/lowcode-engine/commit/06e6920602bdf21b6e1ffe5cfa3dfe4856e7c57e))
107
- * fix css resources with parameters not loading correctly ([f859752](https://github.com/alibaba/lowcode-engine/commit/f85975211814147d40ae5330a76cb21cb6c66916))
108
- * fix css resources with parameters not loading correctly ([9a5a04a](https://github.com/alibaba/lowcode-engine/commit/9a5a04ac9560fb6a51bf4e0ed8ea446381d39c35))
109
- * fix dataSource needs to be compatible due to empty schema ([98bc477](https://github.com/alibaba/lowcode-engine/commit/98bc477d80dbf7993f89befdb42762d78a55fb1b))
110
- * fix displayName spell mistake ([2b2bcbd](https://github.com/alibaba/lowcode-engine/commit/2b2bcbdaebde6a3ce974072f586386ef7ef3497c))
111
- * fix internal project.getSchema default stage is error ([0d40db2](https://github.com/alibaba/lowcode-engine/commit/0d40db2581f4fe5a9e22f763f21aec641e366c34))
112
- * fix lint issues for renderer-core/renderer/base ([d85437d](https://github.com/alibaba/lowcode-engine/commit/d85437d4af1043371e27dfde98cecf914b93a126))
113
- * fix lint issues for renderer-core/renderer/base ([4b59190](https://github.com/alibaba/lowcode-engine/commit/4b59190c7f9d518bc7efac44b7eeee73f1b5d177))
114
- * fix low-code component rendering problems: 1. thisRequiredInJSE does not take effect 2. jsx components cannot obtain source components ([5dd4625](https://github.com/alibaba/lowcode-engine/commit/5dd462544fbbbccfa97165f2bcfeed8629fab2a3))
115
- * fix material-spec demo ([438cccd](https://github.com/alibaba/lowcode-engine/commit/438cccd58e4341638070c1d8b2d4e78e4e20e3fb))
116
- * fix misused doc urls ([16a8857](https://github.com/alibaba/lowcode-engine/commit/16a88578634b9da2f04698df5ca5a5e69151bb97))
117
- * fix monitor utils incorrect assignment method ([bf280c6](https://github.com/alibaba/lowcode-engine/commit/bf280c6fa1e46d084fc8f20323164816fad4076f))
118
- * fix outline-pane invisible occasionally when dragging tree node ([031c7f2](https://github.com/alibaba/lowcode-engine/commit/031c7f25f10a6cfebfc7929c9226f4e4167a359f))
119
- * fix outline-tree initialization failed ([a2d5c6f](https://github.com/alibaba/lowcode-engine/commit/a2d5c6fd90ca0226bbbfea01a4b28c8b8d307a78))
120
- * fix render module state expression initialization exception ([5bd68ee](https://github.com/alibaba/lowcode-engine/commit/5bd68ee6b448fa58b022870b3f8175d8b77febde))
121
- * fix render module state expression initialization exception ([9c545cc](https://github.com/alibaba/lowcode-engine/commit/9c545cca6004f65e2f206ea001cefa3fa3cfa807))
122
- * fix setter hooks error ([8a3a0b8](https://github.com/alibaba/lowcode-engine/commit/8a3a0b824162e25a930711c6fef511b4b369e897))
123
- * fix test case failures of designer ([4b0521a](https://github.com/alibaba/lowcode-engine/commit/4b0521a47494f78e120f75021e0a076fb00ce53e))
124
- * Fix the conversion failure of some props expressions under Slot props of low-code components ([7db5461](https://github.com/alibaba/lowcode-engine/commit/7db5461706c739fac673b2466bc2fda7661242e4))
125
- * fix the leaf hoc component fails to monitor Node changes, and modify the logic for get node ([6ee6b07](https://github.com/alibaba/lowcode-engine/commit/6ee6b07a10ba4aac583def52d8ff1fa78d111d0b))
126
- * fix the leaf hoc component fails to monitor Node changes, and modify the logic for get node ([f400172](https://github.com/alibaba/lowcode-engine/commit/f4001728259047b09db75d76a8c3ef1e1bcb4e0a))
127
- * fix the problem that material.getComponentMetasMap returns the wrong result ([e02933c](https://github.com/alibaba/lowcode-engine/commit/e02933c18bc15519b2eba8ad946282502a509611))
128
- * Fix the rendering error caused by incorrect key value when configuring the loop ([1026763](https://github.com/alibaba/lowcode-engine/commit/1026763dc5a77d4395a1e86e5a0084ab4fb4230c))
129
- * fix the unit test failure problem caused by thisRequiredInJSE modification ([c2c59b7](https://github.com/alibaba/lowcode-engine/commit/c2c59b7ff72ba06156bbcdb952262739d6188209))
130
- * fix unnecessary props calculation ([f1fed75](https://github.com/alibaba/lowcode-engine/commit/f1fed75f39be8289ede1ec558b04428a69e25b5f))
131
- * fixed an issue where materials would be rendered multiple times ([9d187cc](https://github.com/alibaba/lowcode-engine/commit/9d187ccb7de55857e861d3fc881c610506872d03))
132
- * fixed an issue where materials would be rendered multiple times ([64cc328](https://github.com/alibaba/lowcode-engine/commit/64cc3283c15342151a8f93c46a276681f3575153))
133
- * fixed focusNodeSelector configuration not taking effect ([9beae9c](https://github.com/alibaba/lowcode-engine/commit/9beae9c3269901bf03a29033121c7d480571bce5))
134
- * fixed the issue that thisRequiredInJSE did not take effect in some scenarios ([7e5a919](https://github.com/alibaba/lowcode-engine/commit/7e5a919f9352397f11741fd911495996469c0256))
135
- * in ES require changed to import ([b4d7d6d](https://github.com/alibaba/lowcode-engine/commit/b4d7d6d8c290a335a2c1f60731d4417b23444941))
136
- * in ES require changed to import ([7c8cd36](https://github.com/alibaba/lowcode-engine/commit/7c8cd36a10a7caa61de31a15abd93ab8a97fbe08))
137
- * leaf should be type of ShellNode other than InnerNode ([5bb8cf5](https://github.com/alibaba/lowcode-engine/commit/5bb8cf5d12d38d70b69fa28deb2f8aa0afa9b9b9))
138
- * lowcode component exec lifecycle has error ([f99a47e](https://github.com/alibaba/lowcode-engine/commit/f99a47e502080134454795f5e361cfa4fba3f03b))
139
- * lowcode component leaf dont have export prop, exec leaf.export make error ([9d51dcd](https://github.com/alibaba/lowcode-engine/commit/9d51dcdae38850be0206861f2cae74ca68805c25))
140
- * missing engine options config info ([a79875c](https://github.com/alibaba/lowcode-engine/commit/a79875cf8698d3912b50526d97f6ac72e9a21fc9))
141
- * missing engine options config info ([9ccded0](https://github.com/alibaba/lowcode-engine/commit/9ccded006ef44cd538abaa140250e519243bf090))
142
- * npm run clean error in windows ([a176e9d](https://github.com/alibaba/lowcode-engine/commit/a176e9d245981fb5718c8d144f477202b3796be6))
143
- * project event listeners will not be invoked sometimes ([a0c772f](https://github.com/alibaba/lowcode-engine/commit/a0c772fb903cf5eb9e0b811b64bbe3846d4ba8ac))
144
- * project.exportSchema api lack stage param & setAssets should be a async fn ([0ea76a7](https://github.com/alibaba/lowcode-engine/commit/0ea76a746fac8ea8e7b999d42434c468c85d6372))
145
- * project.exportSchema should export componentsMap of all documents ([969a130](https://github.com/alibaba/lowcode-engine/commit/969a130b373fb028f8051e96cb9d79f1de0a2a1c))
146
- * removed incorrectly calling childWhitelist hook logic during drag and drop ([#1141](https://github.com/alibaba/lowcode-engine/issues/1141)) ([6576346](https://github.com/alibaba/lowcode-engine/commit/6576346b9185bedb090be9c84129e077cf5389b3))
147
- * renderer not rendering correct components when loading components with loadAsyncLibrary api ([9b3b4f9](https://github.com/alibaba/lowcode-engine/commit/9b3b4f9b0e35ef3ea2f0117f0cdb2254e15d5389))
148
- * should pass index param when creating a Prop instance under a list type Prop instance, fix [#780](https://github.com/alibaba/lowcode-engine/issues/780) ([a8de3f2](https://github.com/alibaba/lowcode-engine/commit/a8de3f299c7b26fa939d2b2ea1428143e2b5fb01))
149
- * simulator eclipses setting area [#773](https://github.com/alibaba/lowcode-engine/issues/773) ([b4b30a3](https://github.com/alibaba/lowcode-engine/commit/b4b30a359932f5c0e8fde1b28f54a883c87901d8))
150
- * spec typo ([#1064](https://github.com/alibaba/lowcode-engine/issues/1064)) ([ecb9dca](https://github.com/alibaba/lowcode-engine/commit/ecb9dca2b9386ef6fadfd009d161a9203b9b9558))
151
- * try catch calculation of dynamic setter ([f61e2a2](https://github.com/alibaba/lowcode-engine/commit/f61e2a2b8a3d8d6754474cd392bc259917c7eb10))
152
- * type=legao dont make request ([98ececa](https://github.com/alibaba/lowcode-engine/commit/98ececa9c11f93e5f849b201b5b5e7ff453733d7))
153
- * **types:** rrror declaration of the children prop ([951d1cb](https://github.com/alibaba/lowcode-engine/commit/951d1cb103fa46c0e7926d6138657c7d10cc4f88))
154
- * use the original object if it is not a shell object ([5ea53f7](https://github.com/alibaba/lowcode-engine/commit/5ea53f706b6571946bcfa56b8655b55717381771))
155
- * use the outer documentation url of unique key, fixes [#868](https://github.com/alibaba/lowcode-engine/issues/868) ([d770007](https://github.com/alibaba/lowcode-engine/commit/d770007ff8c39e6cf527e07a7d6468dbb88c776d))
156
- * use the outer documentation url of unique key, fixes [#868](https://github.com/alibaba/lowcode-engine/issues/868) ([912ee22](https://github.com/alibaba/lowcode-engine/commit/912ee22180a424f63298c319c62fb481513af904))
157
- * use uppercase resize trigger names based on material spec ([7fda0ef](https://github.com/alibaba/lowcode-engine/commit/7fda0efe131e0e2e3141849cf3f87307e7ce1b36))
158
- * when designMode is not design, the hidden attribute does not take effect ([3dd0b6d](https://github.com/alibaba/lowcode-engine/commit/3dd0b6d0a86267e3029c176ff49aff793ce3e186))
159
-
160
- ### [1.0.4](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.4-beta.0...@alilc/lowcode-code-generator@1.0.4) (2022-04-12)
161
-
162
-
163
- ### Bug Fixes
164
-
165
- * 🐛 解决 react 中 jsx 出码的时候对于循环数据漏包 __$evalArray 的问题 ([eb4cc69](https://github.com/alibaba/lowcode-engine/commit/eb4cc693f5dbcae54546c569eb8fa331d074e062))
166
-
167
- ### [1.0.4-beta.1](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.4-beta.0...@alilc/lowcode-code-generator@1.0.4-beta.1) (2022-04-11)
168
-
169
-
170
- ### Bug Fixes
171
-
172
- * 🐛 解决 react 中 jsx 出码的时候对于循环数据漏包 __$evalArray 的问题 ([987f4ce](https://github.com/alibaba/lowcode-engine/commit/987f4cea54ef8a75d0b63a0268b5a20b2938b8a7))
173
-
174
- ### [1.0.4-beta.0](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.3...@alilc/lowcode-code-generator@1.0.4-beta.0) (2022-04-10)
175
-
176
-
177
- ### Features
178
-
179
- * **material-parser:** check module before install it; fix default value issue in ts parser ([fc452f7](https://github.com/alibaba/lowcode-engine/commit/fc452f7166f02acfba6076c1a9425e6f5880b5f6))
180
-
181
-
182
- ### Bug Fixes
183
-
184
- * 🐛 修正 i18n 里面的一个参数命名问题 ([1e9e388](https://github.com/alibaba/lowcode-engine/commit/1e9e388ce9104d76c4f6d9bc513c57e5059d7982))
185
- * 🐛 解决出码缺乏对于 i18n 数据的 params 的处理的问题 ([1eb9add](https://github.com/alibaba/lowcode-engine/commit/1eb9addd8df2323f9aabac87af32ac2efcd6bf22)), closes [#288](https://github.com/alibaba/lowcode-engine/issues/288)
186
- * 🐛 解决小程序环境没有 window, 而 rax 出码中却默认在 __$eval 中用到 window 的问题 ([67dabb0](https://github.com/alibaba/lowcode-engine/commit/67dabb04beb32b6e94eb1276222e53b416e47c9d))
187
- * Fix the conversion failure of some props expressions under Slot props of low-code components ([7db5461](https://github.com/alibaba/lowcode-engine/commit/7db5461706c739fac673b2466bc2fda7661242e4))
188
- * fix unnecessary props calculation ([f1fed75](https://github.com/alibaba/lowcode-engine/commit/f1fed75f39be8289ede1ec558b04428a69e25b5f))
189
- * 修正 react 框架出码中在严格模式对 methods 和 context 的处理 ([79db4ac](https://github.com/alibaba/lowcode-engine/commit/79db4ac97f34f24b7f7460fb3fc67521967f8cc5))
190
-
191
- ### [1.0.3](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.2...@alilc/lowcode-code-generator@1.0.3) (2022-03-29)
192
-
193
-
194
- ### Features
195
-
196
- * add getConvertedExtraKey / getOriginalExtraKey to utils ([8e7bb9d](https://github.com/alibaba/lowcode-engine/commit/8e7bb9d4b86454dd77c6928eb769cd764cad8630))
197
-
198
-
199
- ### Bug Fixes
200
-
201
- * 🐛 出码: 解决 componentName 和 exportName 不一致时生成的 import 语句的问题 ([eefc091](https://github.com/alibaba/lowcode-engine/commit/eefc091ee7e86d6214d20d486212cb5aff237946))
202
- * component cannot be redisplayed by configuration after rendering is closed ([c54f369](https://github.com/alibaba/lowcode-engine/commit/c54f369e1860d818479dda9d6429f851c0b08fa6))
203
- * fix loop configuration auto fill empty array issue ([d087092](https://github.com/alibaba/lowcode-engine/commit/d087092fd712eff0556adacda692d3ff6f2f9f22))
204
- * make important true by default ([c63b6e1](https://github.com/alibaba/lowcode-engine/commit/c63b6e1bfadc3fc87ed41840952e02ffbff24fab))
205
- * make insertAfter & insertBefore work ([70fd372](https://github.com/alibaba/lowcode-engine/commit/70fd3720d098d6e227acb9281ee22feee66b9c0b))
206
- * npm源 ([437adcc](https://github.com/alibaba/lowcode-engine/commit/437adccf5f2dbb400de6e2bef10cfc4b65286f2b))
207
- * prop should return undefined when all items are undefined ([5bb9ec7](https://github.com/alibaba/lowcode-engine/commit/5bb9ec7a1dfaabfdb5369226b54d5f63a7999e59))
208
- * should not create new prop while querying fileName ([19c207d](https://github.com/alibaba/lowcode-engine/commit/19c207d29de045f473ba73baaf34e7294d40261a))
209
- * variable binding lost after modify the mock value ([ef95b56](https://github.com/alibaba/lowcode-engine/commit/ef95b5683273d8302bde1582de8afe3d87a808d8))
210
- * Workbench should receive the original skeleton other than shell skeleton ([d5c3ca1](https://github.com/alibaba/lowcode-engine/commit/d5c3ca1068ce2c2140980bd059d0da333574dc34))
211
-
212
- ### [1.0.2](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.2-beta.1...@alilc/lowcode-code-generator@1.0.2) (2022-03-08)
213
-
214
- ### [1.0.2-beta.1](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.2-beta.0...@alilc/lowcode-code-generator@1.0.2-beta.1) (2022-03-08)
215
-
216
-
217
- ### Bug Fixes
218
-
219
- * 🐛 补充 icejs 模板中缺失的依赖包 ([a94553e](https://github.com/alibaba/lowcode-engine/commit/a94553e503d439b67478df6a34950d9e3d15a063))
220
-
221
- ### [1.0.2-beta.0](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.0...@alilc/lowcode-code-generator@1.0.2-beta.0) (2022-03-08)
222
-
223
-
224
- ### Features
225
-
226
- * 在 skeleton 增加几个方法和事件 ([a7d436a](https://github.com/alibaba/lowcode-engine/commit/a7d436a0525a0ce0c7229710077111f283b452f4))
227
- * modify npm private control & version ([ee55d02](https://github.com/alibaba/lowcode-engine/commit/ee55d024a7f964ccf35a0efabec817364cea8041))
228
- * modify yuque link in README ([d522034](https://github.com/alibaba/lowcode-engine/commit/d522034879d20a7b5ed12f8fe02a30662a2ea7c6))
229
- * remove CHANGELOG.md ([b996414](https://github.com/alibaba/lowcode-engine/commit/b996414c436b5d2439c8368eb4e001cdbcd02892))
230
- * remove module field in material-parser package.json ([6141c27](https://github.com/alibaba/lowcode-engine/commit/6141c273c9c32eea22b5374679fe625e6ea15394))
231
- * rename build:umd ([23c7959](https://github.com/alibaba/lowcode-engine/commit/23c795931e1d5cf43e9c21cd902441c69c1ecc63))
232
- * replace tnpm with npm ([36caf0f](https://github.com/alibaba/lowcode-engine/commit/36caf0f18980c16f7ebb82ac845ad6b33e033567))
233
- * support UMD packageing for react-renderer ([982d0d6](https://github.com/alibaba/lowcode-engine/commit/982d0d676b3dfbfc10a2190c0040126d6925ed37))
234
-
235
-
236
- ### Bug Fixes
237
-
238
- * 🐛 去掉 npm 上没有的依赖 ([#68](https://github.com/alibaba/lowcode-engine/issues/68)) ([e7ce779](https://github.com/alibaba/lowcode-engine/commit/e7ce77987eb05871dd1675d2a88367c5569bfbff))
239
- * 兼容 setters 为空的情况 ([56b459a](https://github.com/alibaba/lowcode-engine/commit/56b459a017a8350a911ef20f0166d1e62b6390e4))
240
- * 解决 package.json 中误添加了没有用到的数据源类型的 handler 的包的问题 ([#56](https://github.com/alibaba/lowcode-engine/issues/56)) ([76341c8](https://github.com/alibaba/lowcode-engine/commit/76341c8456b227192bb65537dc3d16033db0b3a1))
241
- * 解决出码的一些问题 ([#87](https://github.com/alibaba/lowcode-engine/issues/87)) ([4a01c97](https://github.com/alibaba/lowcode-engine/commit/4a01c97ea6bf23eb677888ba1aba54e5c9f4f630))
242
- * 修复 setup 的逻辑 ([1cfb15a](https://github.com/alibaba/lowcode-engine/commit/1cfb15aebea9796af23b2135f2aa4409d81283d7))
243
- * 修正一些对内的地址 ([07cc1f2](https://github.com/alibaba/lowcode-engine/commit/07cc1f2954530c64a1a3d260e8d532c9e19892e8))
244
- * 增加必要的方法 ([1b38a81](https://github.com/alibaba/lowcode-engine/commit/1b38a812653656aa02100a3b1b2a581188d1b3ef))
245
- * fix tsconfig of material-parser ([46725cb](https://github.com/alibaba/lowcode-engine/commit/46725cb9f3166912c8f5b42f1e0b1177158c1ee3))
246
- * lint&fix auto generated types.ts ([7dde970](https://github.com/alibaba/lowcode-engine/commit/7dde9701c7960b29523abddf32421cdbac47016d))
247
- * The outline tree does not display the loop flag when the loop is an empty array ([191e284](https://github.com/alibaba/lowcode-engine/commit/191e284f2fa190c2b3aecb4df31849b2bdc99d38))
248
-
249
- ### [1.0.1](https://github.com/alibaba/lowcode-engine/compare/@alilc/lowcode-code-generator@1.0.0...@alilc/lowcode-code-generator@1.0.1) (2022-03-08)
250
-
251
-
252
- ### Features
253
-
254
- * 在 skeleton 增加几个方法和事件 ([a7d436a](https://github.com/alibaba/lowcode-engine/commit/a7d436a0525a0ce0c7229710077111f283b452f4))
255
- * modify npm private control & version ([ee55d02](https://github.com/alibaba/lowcode-engine/commit/ee55d024a7f964ccf35a0efabec817364cea8041))
256
- * modify yuque link in README ([d522034](https://github.com/alibaba/lowcode-engine/commit/d522034879d20a7b5ed12f8fe02a30662a2ea7c6))
257
- * remove CHANGELOG.md ([b996414](https://github.com/alibaba/lowcode-engine/commit/b996414c436b5d2439c8368eb4e001cdbcd02892))
258
- * remove module field in material-parser package.json ([6141c27](https://github.com/alibaba/lowcode-engine/commit/6141c273c9c32eea22b5374679fe625e6ea15394))
259
- * rename build:umd ([23c7959](https://github.com/alibaba/lowcode-engine/commit/23c795931e1d5cf43e9c21cd902441c69c1ecc63))
260
- * replace tnpm with npm ([36caf0f](https://github.com/alibaba/lowcode-engine/commit/36caf0f18980c16f7ebb82ac845ad6b33e033567))
261
- * support UMD packageing for react-renderer ([982d0d6](https://github.com/alibaba/lowcode-engine/commit/982d0d676b3dfbfc10a2190c0040126d6925ed37))
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * 🐛 修正一些示例地址 ([8d21283](https://github.com/alibaba/lowcode-engine/commit/8d212832e77a1ec763db668683917705774acd0d))
267
- * 兼容 setters 为空的情况 ([56b459a](https://github.com/alibaba/lowcode-engine/commit/56b459a017a8350a911ef20f0166d1e62b6390e4))
268
- * 修复 setup 的逻辑 ([1cfb15a](https://github.com/alibaba/lowcode-engine/commit/1cfb15aebea9796af23b2135f2aa4409d81283d7))
269
- * 修正一些对内的地址 ([07cc1f2](https://github.com/alibaba/lowcode-engine/commit/07cc1f2954530c64a1a3d260e8d532c9e19892e8))
270
- * 增加必要的方法 ([1b38a81](https://github.com/alibaba/lowcode-engine/commit/1b38a812653656aa02100a3b1b2a581188d1b3ef))
271
- * fix tsconfig of material-parser ([46725cb](https://github.com/alibaba/lowcode-engine/commit/46725cb9f3166912c8f5b42f1e0b1177158c1ee3))
272
- * lint&fix auto generated types.ts ([7dde970](https://github.com/alibaba/lowcode-engine/commit/7dde9701c7960b29523abddf32421cdbac47016d))
273
- * The outline tree does not display the loop flag when the loop is an empty array ([191e284](https://github.com/alibaba/lowcode-engine/commit/191e284f2fa190c2b3aecb4df31849b2bdc99d38))
274
-
275
- ## 1.0.0 (2022-02-17)
276
-
277
-
278
- ### Features
279
-
280
- * first commit - genesis ([4f4ac51](https://github.com/alibaba/lowcode-engine/commit/4f4ac5115d18357a7399632860808f6cffc33fad))
package/CONTRIBUTING.md DELETED
@@ -1,40 +0,0 @@
1
- # 如何共建
2
-
3
- 1. 拉取最新代码,切换到 develop 分支,基于 develop 分支切出一个 feature 或 hotfix 分支
4
- 2. 到 `lowcode-engine` 项目根目录下,执行 `lerna bootstrap && lerna run build --scope "@alilc/lowcode-types"` 来安装依赖并构建
5
- 3. 到 `lowcode-engine/modules/code-generator`下,安装依赖(`npm i`),然后先跑一遍 `npm test` 看看是否所有用例都能通过 (如果网络条件不太好,建议使用 [cnpm - 淘宝提供的中国 NPM 镜像](https://npmmirror.com/))
6
- 4. 在 tests 目录下编写您的需求/问题的测试用例
7
- 5. 修改 src 下的一些代码,然后运行 `npm test` 或 `npm start` 启动 jest 进行调测
8
- 6. 确保所有的测试用例都能通过时,提 MR 给 @牧毅 -- MR 将在 1 个工作日内给您回复意见。
9
-
10
- 当然,欢迎提前私聊沟通 @牧毅,或加入 低代码渲染/出码服务金牌用户群 讨论沟通。
11
-
12
- # FAQ
13
-
14
- ## 如何查看单测覆盖率?
15
-
16
- 执行 `npm test:cov` 命令,这样会自动生成单测覆盖率的报告到 `coverage` 目录下。
17
-
18
- ## 如何只执行一个测试用例?
19
-
20
- ```sh
21
- npm test -t 'demo2-utils-name-alias'
22
- ```
23
-
24
- ## 更新特定测试用例的 expected:
25
-
26
- ```sh
27
- npm test:update-snapshots -t 'demo2-utils-name-alias'
28
- ```
29
-
30
- ## 如何只执行某个测试用例文件?
31
-
32
- 执行 `npx jest 测试用例的文件路径` 即可,如:
33
-
34
- ```sh
35
- npx jest tests/plugins/common/requireUtils.test.ts
36
- ```
37
-
38
- ## 如何调试某个测试用例?
39
-
40
- 建议需要打断点的地方通过 VSCode 打上断点,然后打开 VSCode 的 JavaScript Debug Terminal,在其中执行 `npx jest tests/path/to/your/test/file.ts` 或 `npx jest -t your-test-case-title` 来执行你的测试用例 -- 这样执行到打了断点的语句时会自动断住,以便调试。
@@ -1,276 +0,0 @@
1
- {
2
- "version": "1.0.0",
3
- "componentsMap": [
4
- {
5
- "componentName": "Button",
6
- "package": "@alifd/next",
7
- "version": "1.19.18",
8
- "destructuring": true,
9
- "exportName": "Button"
10
- },
11
- {
12
- "componentName": "Button.Group",
13
- "package": "@alifd/next",
14
- "version": "1.19.18",
15
- "destructuring": true,
16
- "exportName": "Button",
17
- "subName": "Group"
18
- },
19
- {
20
- "componentName": "Input",
21
- "package": "@alifd/next",
22
- "version": "1.19.18",
23
- "destructuring": true,
24
- "exportName": "Input"
25
- },
26
- {
27
- "componentName": "Form",
28
- "package": "@alifd/next",
29
- "version": "1.19.18",
30
- "destructuring": true,
31
- "exportName": "Form"
32
- },
33
- {
34
- "componentName": "Form.Item",
35
- "package": "@alifd/next",
36
- "version": "1.19.18",
37
- "destructuring": true,
38
- "exportName": "Form",
39
- "subName": "Item"
40
- },
41
- {
42
- "componentName": "NumberPicker",
43
- "package": "@alifd/next",
44
- "version": "1.19.18",
45
- "destructuring": true,
46
- "exportName": "NumberPicker"
47
- },
48
- {
49
- "componentName": "Select",
50
- "package": "@alifd/next",
51
- "version": "1.19.18",
52
- "destructuring": true,
53
- "exportName": "Select"
54
- }
55
- ],
56
- "componentsTree": [
57
- {
58
- "componentName": "Page",
59
- "id": "node$1",
60
- "meta": {
61
- "title": "测试",
62
- "router": "/"
63
- },
64
- "props": {
65
- "ref": "outerView",
66
- "autoLoading": true
67
- },
68
- "fileName": "test",
69
- "state": {
70
- "text": "outer"
71
- },
72
- "lifeCycles": {
73
- "componentDidMount": {
74
- "type": "JSFunction",
75
- "value": "function componentDidMount() { console.log('componentDidMount'); }"
76
- }
77
- },
78
- "dataSource": {
79
- "list": [
80
- {
81
- "id": "urlParams",
82
- "type": "urlParams"
83
- },
84
-
85
- {
86
- "id": "user",
87
- "type": "fetch",
88
- "options": {
89
- "method": "GET",
90
- "uri": "https://shs.xxx.com/mock/1458/demo/user",
91
- "isSync": true
92
- },
93
- "dataHandler": {
94
- "type": "JSFunction",
95
- "value": "function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data;\n}"
96
- }
97
- },
98
-
99
- {
100
- "id": "orders",
101
- "type": "fetch",
102
- "options": {
103
- "method": "GET",
104
- "uri": "https://shs.xxx.com/mock/1458/demo/orders",
105
- "isSync": true
106
- },
107
- "dataHandler": {
108
- "type": "JSFunction",
109
- "value": "function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data.result;\n}"
110
- }
111
- }
112
- ],
113
- "dataHandler": {
114
- "type": "JSFunction",
115
- "value": "function (dataMap) {\n console.info(\"All datasources loaded:\", dataMap);\n}"
116
- }
117
- },
118
- "children": [
119
- {
120
- "componentName": "Form",
121
- "id": "node$2",
122
- "props": {
123
- "labelCol": {
124
- "type": "JSExpression",
125
- "value": "this.state.colNum"
126
- },
127
- "style": {},
128
- "ref": "testForm"
129
- },
130
- "children": [
131
- {
132
- "componentName": "Form.Item",
133
- "id": "node$3",
134
- "props": {
135
- "label": "姓名:",
136
- "name": "name",
137
- "initValue": "李雷"
138
- },
139
- "children": [
140
- {
141
- "componentName": "Input",
142
- "id": "node$4",
143
- "props": {
144
- "placeholder": "请输入",
145
- "size": "medium",
146
- "style": {
147
- "width": 320
148
- }
149
- }
150
- }
151
- ]
152
- },
153
- {
154
- "componentName": "Form.Item",
155
- "id": "node$5",
156
- "props": {
157
- "label": "年龄:",
158
- "name": "age",
159
- "initValue": "22"
160
- },
161
- "children": [
162
- {
163
- "componentName": "NumberPicker",
164
- "id": "node$6",
165
- "props": {
166
- "size": "medium",
167
- "type": "normal"
168
- }
169
- }
170
- ]
171
- },
172
- {
173
- "componentName": "Form.Item",
174
- "id": "node$7",
175
- "props": {
176
- "label": "职业:",
177
- "name": "profession"
178
- },
179
- "children": [
180
- {
181
- "componentName": "Select",
182
- "id": "node$8",
183
- "props": {
184
- "dataSource": [
185
- {
186
- "label": "教师",
187
- "value": "t"
188
- },
189
- {
190
- "label": "医生",
191
- "value": "d"
192
- },
193
- {
194
- "label": "歌手",
195
- "value": "s"
196
- }
197
- ]
198
- }
199
- }
200
- ]
201
- },
202
- {
203
- "componentName": "Div",
204
- "id": "node$9",
205
- "props": {
206
- "style": {
207
- "textAlign": "center"
208
- }
209
- },
210
- "children": [
211
- {
212
- "componentName": "Button.Group",
213
- "id": "node$a",
214
- "props": {},
215
- "children": [
216
- {
217
- "componentName": "Button",
218
- "id": "node$b",
219
- "condition": {
220
- "type": "JSExpression",
221
- "value": "this.index >= 1"
222
- },
223
- "loop": ["a", "b", "c"],
224
- "props": {
225
- "type": "primary",
226
- "style": {
227
- "margin": "0 5px 0 5px"
228
- }
229
- },
230
- "children": [
231
- {
232
- "type": "JSExpression",
233
- "value": "this.item"
234
- }
235
- ]
236
- }
237
- ]
238
- }
239
- ]
240
- }
241
- ]
242
- }
243
- ]
244
- }
245
- ],
246
- "constants": {
247
- "ENV": "prod",
248
- "DOMAIN": "xxx.xxx.com"
249
- },
250
- "css": "body {font-size: 12px;} .table { width: 100px;}",
251
- "config": {
252
- "sdkVersion": "1.0.3",
253
- "historyMode": "hash",
254
- "targetRootID": "J_Container",
255
- "layout": {
256
- "componentName": "BasicLayout",
257
- "props": {
258
- "logo": "...",
259
- "name": "测试网站"
260
- }
261
- },
262
- "theme": {
263
- "package": "@alife/theme-fusion",
264
- "version": "^0.1.0",
265
- "primary": "#ff9966"
266
- }
267
- },
268
- "meta": {
269
- "name": "demo应用",
270
- "git_group": "appGroup",
271
- "project_name": "app_demo",
272
- "description": "这是一个测试应用",
273
- "spma": "spa23d",
274
- "creator": "Test"
275
- }
276
- }
@@ -1,276 +0,0 @@
1
- {
2
- version: '1.0.0',
3
- componentsMap: [
4
- {
5
- componentName: 'Button',
6
- package: '@alifd/next',
7
- version: '1.19.18',
8
- destructuring: true,
9
- exportName: 'Button',
10
- },
11
- {
12
- componentName: 'Button.Group',
13
- package: '@alifd/next',
14
- version: '1.19.18',
15
- destructuring: true,
16
- exportName: 'Button',
17
- subName: 'Group',
18
- },
19
- {
20
- componentName: 'Input',
21
- package: '@alifd/next',
22
- version: '1.19.18',
23
- destructuring: true,
24
- exportName: 'Input',
25
- },
26
- {
27
- componentName: 'Form',
28
- package: '@alifd/next',
29
- version: '1.19.18',
30
- destructuring: true,
31
- exportName: 'Form',
32
- },
33
- {
34
- componentName: 'Form.Item',
35
- package: '@alifd/next',
36
- version: '1.19.18',
37
- destructuring: true,
38
- exportName: 'Form',
39
- subName: 'Item',
40
- },
41
- {
42
- componentName: 'NumberPicker',
43
- package: '@alifd/next',
44
- version: '1.19.18',
45
- destructuring: true,
46
- exportName: 'NumberPicker',
47
- },
48
- {
49
- componentName: 'Select',
50
- package: '@alifd/next',
51
- version: '1.19.18',
52
- destructuring: true,
53
- exportName: 'Select',
54
- },
55
- ],
56
- componentsTree: [
57
- {
58
- componentName: 'Page',
59
- id: 'node$1',
60
- meta: {
61
- title: '测试',
62
- router: '/',
63
- },
64
- props: {
65
- ref: 'outerView',
66
- autoLoading: true,
67
- },
68
- fileName: 'test',
69
- state: {
70
- text: 'outer',
71
- },
72
- lifeCycles: {
73
- componentDidMount: {
74
- type: 'JSFunction',
75
- value: "function componentDidMount() { console.log('componentDidMount'); }",
76
- },
77
- },
78
- dataSource: {
79
- list: [
80
- {
81
- id: 'urlParams',
82
- type: 'urlParams',
83
- },
84
-
85
- {
86
- id: 'user',
87
- type: 'fetch',
88
- options: {
89
- method: 'GET',
90
- uri: 'https://shs.xxx.com/mock/1458/demo/user',
91
- isSync: true,
92
- },
93
- dataHandler: {
94
- type: 'JSFunction',
95
- value: 'function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data;\n}',
96
- },
97
- },
98
-
99
- {
100
- id: 'orders',
101
- type: 'fetch',
102
- options: {
103
- method: 'GET',
104
- uri: 'https://shs.xxx.com/mock/1458/demo/orders',
105
- isSync: true,
106
- },
107
- dataHandler: {
108
- type: 'JSFunction',
109
- value: 'function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data.result;\n}',
110
- },
111
- },
112
- ],
113
- dataHandler: {
114
- type: 'JSFunction',
115
- value: 'function (dataMap) {\n console.info("All datasources loaded:", dataMap);\n}',
116
- },
117
- },
118
- children: [
119
- {
120
- componentName: 'Form',
121
- id: 'node$2',
122
- props: {
123
- labelCol: {
124
- type: 'JSExpression',
125
- value: 'this.state.colNum',
126
- },
127
- style: {},
128
- ref: 'testForm',
129
- },
130
- children: [
131
- {
132
- componentName: 'Form.Item',
133
- id: 'node$3',
134
- props: {
135
- label: '姓名:',
136
- name: 'name',
137
- initValue: '李雷',
138
- },
139
- children: [
140
- {
141
- componentName: 'Input',
142
- id: 'node$4',
143
- props: {
144
- placeholder: '请输入',
145
- size: 'medium',
146
- style: {
147
- width: 320,
148
- },
149
- },
150
- },
151
- ],
152
- },
153
- {
154
- componentName: 'Form.Item',
155
- id: 'node$5',
156
- props: {
157
- label: '年龄:',
158
- name: 'age',
159
- initValue: '22',
160
- },
161
- children: [
162
- {
163
- componentName: 'NumberPicker',
164
- id: 'node$6',
165
- props: {
166
- size: 'medium',
167
- type: 'normal',
168
- },
169
- },
170
- ],
171
- },
172
- {
173
- componentName: 'Form.Item',
174
- id: 'node$7',
175
- props: {
176
- label: '职业:',
177
- name: 'profession',
178
- },
179
- children: [
180
- {
181
- componentName: 'Select',
182
- id: 'node$8',
183
- props: {
184
- dataSource: [
185
- {
186
- label: '教师',
187
- value: 't',
188
- },
189
- {
190
- label: '医生',
191
- value: 'd',
192
- },
193
- {
194
- label: '歌手',
195
- value: 's',
196
- },
197
- ],
198
- },
199
- },
200
- ],
201
- },
202
- {
203
- componentName: 'Div',
204
- id: 'node$9',
205
- props: {
206
- style: {
207
- textAlign: 'center',
208
- },
209
- },
210
- children: [
211
- {
212
- componentName: 'Button.Group',
213
- id: 'node$a',
214
- props: {},
215
- children: [
216
- {
217
- componentName: 'Button',
218
- id: 'node$b',
219
- condition: {
220
- type: 'JSExpression',
221
- value: 'this.index >= 1',
222
- },
223
- loop: ['a', 'b', 'c'],
224
- props: {
225
- type: 'primary',
226
- style: {
227
- margin: '0 5px 0 5px',
228
- },
229
- },
230
- children: [
231
- {
232
- type: 'JSExpression',
233
- value: 'this.item',
234
- },
235
- ],
236
- },
237
- ],
238
- },
239
- ],
240
- },
241
- ],
242
- },
243
- ],
244
- },
245
- ],
246
- constants: {
247
- ENV: 'prod',
248
- DOMAIN: 'xxx.xxx.com',
249
- },
250
- css: 'body {font-size: 12px;} .table { width: 100px;}',
251
- config: {
252
- sdkVersion: '1.0.3',
253
- historyMode: 'hash',
254
- targetRootID: 'J_Container',
255
- layout: {
256
- componentName: 'BasicLayout',
257
- props: {
258
- logo: '...',
259
- name: '测试网站',
260
- },
261
- },
262
- theme: {
263
- package: '@alife/theme-fusion',
264
- version: '^0.1.0',
265
- primary: '#ff9966',
266
- },
267
- },
268
- meta: {
269
- name: 'demo应用',
270
- git_group: 'appGroup',
271
- project_name: 'app_demo',
272
- description: '这是一个测试应用',
273
- spma: 'spa23d',
274
- creator: 'Test',
275
- },
276
- }