@easyv/react-component-builder 0.22.2-beta → 0.22.2-beta.1
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.
|
@@ -187,7 +187,7 @@ module.exports = function (content, map, meta) {
|
|
|
187
187
|
callback(error);
|
|
188
188
|
return true;
|
|
189
189
|
}
|
|
190
|
-
/----------- common assets start
|
|
190
|
+
/----------- common assets start -------------/;
|
|
191
191
|
let commonAssets;
|
|
192
192
|
try {
|
|
193
193
|
let dataJsonFile = fs.existsSync(
|
|
@@ -203,7 +203,9 @@ module.exports = function (content, map, meta) {
|
|
|
203
203
|
);
|
|
204
204
|
} else {
|
|
205
205
|
delete require.cache[
|
|
206
|
-
require.resolve(
|
|
206
|
+
require.resolve(
|
|
207
|
+
path.resolve(configPath, name + '.common.assets.js'),
|
|
208
|
+
)
|
|
207
209
|
];
|
|
208
210
|
commonAssets = require(path.resolve(
|
|
209
211
|
configPath,
|
|
@@ -215,8 +217,7 @@ module.exports = function (content, map, meta) {
|
|
|
215
217
|
// error.message += ` in ${configPath}${name}.common.assets.json or ${configPath}${name}.common.assets.js`;
|
|
216
218
|
// callback(error);
|
|
217
219
|
}
|
|
218
|
-
/----------- common assets end
|
|
219
|
-
|
|
220
|
+
/----------- common assets end -------------/;
|
|
220
221
|
|
|
221
222
|
if (names.has(config.base.module_name)) {
|
|
222
223
|
callback(
|
|
@@ -359,6 +360,13 @@ module.exports = function (content, map, meta) {
|
|
|
359
360
|
item[keys.value] = values;
|
|
360
361
|
return item;
|
|
361
362
|
}
|
|
363
|
+
if (item.customField && typeof item.customField === 'function') {
|
|
364
|
+
const newItem = {
|
|
365
|
+
...item,
|
|
366
|
+
customField: item.customField.toString(),
|
|
367
|
+
};
|
|
368
|
+
return newItem;
|
|
369
|
+
}
|
|
362
370
|
return item;
|
|
363
371
|
});
|
|
364
372
|
if (!updateChart) {
|
|
@@ -377,7 +385,7 @@ module.exports = function (content, map, meta) {
|
|
|
377
385
|
}
|
|
378
386
|
// 公共资源配置
|
|
379
387
|
if (main.commonAssets && Array.isArray(main.commonAssets)) {
|
|
380
|
-
mainConfig.commonAssets = main.commonAssets
|
|
388
|
+
mainConfig.commonAssets = main.commonAssets;
|
|
381
389
|
}
|
|
382
390
|
|
|
383
391
|
// 子组件排序,有配置项则以chilren排序,否则以文件顺序排序
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyv/react-component-builder",
|
|
3
|
-
"version": "0.22.2-beta",
|
|
3
|
+
"version": "0.22.2-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"launcher",
|
|
6
6
|
"templates",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/core": "7.9.0",
|
|
21
|
-
"@babel/
|
|
21
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
22
22
|
"@babel/register": "^7.10.4",
|
|
23
|
-
"@easyv/react-gui": "1.20.
|
|
24
|
-
"@easyv/simulator": "0.6.1
|
|
23
|
+
"@easyv/react-gui": "1.20.7-beta.3",
|
|
24
|
+
"@easyv/simulator": "0.6.1",
|
|
25
25
|
"@svgr/webpack": "8.1.0",
|
|
26
26
|
"acorn": "^7.3.1",
|
|
27
27
|
"acorn-jsx": "^5.2.0",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"webpack-manifest-plugin": "4.1.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
58
57
|
"@easyv/sync-to-mirror": "^0.0.2",
|
|
59
58
|
"@types/lodash": "^4.14.157",
|
|
60
59
|
"@types/node": "^12.0.0",
|