@easyv/react-component-builder 0.17.2 → 0.18.1-beta.0

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.
@@ -107,7 +107,7 @@ module.exports = function (content, map, meta) {
107
107
  this.addContextDependency(path.resolve(configPath));
108
108
 
109
109
  glob(
110
- `*.data.{json,js}`,
110
+ `{*.data.{json,js},subConfigs/*.data.{json,js}}`,
111
111
  {
112
112
  cwd: configPath,
113
113
  },
@@ -119,10 +119,6 @@ module.exports = function (content, map, meta) {
119
119
  return;
120
120
  }
121
121
 
122
- if (matches.length === 0) {
123
- return;
124
- }
125
-
126
122
  try {
127
123
  // 读取配置文件
128
124
  const main = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-component-builder",
3
- "version": "0.17.2",
3
+ "version": "0.18.1-beta.0",
4
4
  "files": [
5
5
  "launcher",
6
6
  "templates",
@@ -17,8 +17,8 @@
17
17
  "dependencies": {
18
18
  "@babel/core": "7.9.0",
19
19
  "@babel/register": "^7.10.4",
20
- "@easyv/react-gui": "^1.6.6",
21
- "@easyv/simulator": "^0.4.0",
20
+ "@easyv/react-gui": "1.6.6",
21
+ "@easyv/simulator": "0.5.1-beta.0",
22
22
  "@svgr/webpack": "4.3.3",
23
23
  "acorn": "^7.3.1",
24
24
  "acorn-jsx": "^5.2.0",
@@ -67,4 +67,4 @@
67
67
  },
68
68
  "assets": "https://easyv-develop.oss-cn-hangzhou.aliyuncs.com/"
69
69
  }
70
- }
70
+ }
@@ -0,0 +1,11 @@
1
+ export function bindChildren(configs,data){
2
+ const bindedChildren = configs.map((config) =>{
3
+ let childData = data.find((d)=>(d.id === config.id))
4
+ return{
5
+ id:config.id,
6
+ config,
7
+ data:childData
8
+ }
9
+ });
10
+ return bindedChildren;
11
+ }