@zhubangyun/lowcode-core 1.1.3 → 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.
- package/es/{pages → demo}/data/assets.d.ts +2 -2
- package/es/{pages → demo}/data/assets.js +7 -7
- package/es/demo/index.js +40 -0
- package/es/index.d.ts +3 -3
- package/es/index.js +3 -3
- package/es/utils/common/Request.js +9 -14
- package/es/utils/common/RestApi.d.ts +1 -1
- package/es/utils/common/RestApi.js +7 -7
- package/es/utils/common/index.d.ts +0 -3
- package/es/utils/common/index.js +0 -3
- package/es/utils/designer/assets/assets.data.antd.d.ts +3 -0
- package/es/utils/designer/assets/assets.data.antd.js +29 -0
- package/es/utils/designer/assets/assets.data.base.d.ts +3 -0
- package/es/utils/designer/assets/assets.data.base.js +41 -0
- package/es/utils/designer/assets/assets.data.chart.d.ts +3 -0
- package/es/utils/designer/assets/assets.data.chart.js +27 -0
- package/es/utils/designer/assets/assets.data.design.d.ts +3 -0
- package/es/utils/designer/assets/assets.data.design.js +10 -0
- package/es/utils/designer/assets/assets.parse.d.ts +3 -0
- package/es/utils/{lowcode/parseAssets.js → designer/assets/assets.parse.js} +5 -5
- package/es/utils/designer/assets/assets.typing.d.ts +298 -0
- package/es/utils/designer/assets/assets.typing.js +54 -0
- package/es/utils/designer/assets/index.d.ts +10 -0
- package/es/utils/designer/assets/index.js +50 -0
- package/es/utils/designer/engine/index.d.ts +19 -0
- package/es/utils/designer/engine/index.js +116 -0
- package/es/utils/designer/index.d.ts +3 -0
- package/es/utils/designer/index.js +27 -0
- package/es/utils/index.d.ts +4 -9
- package/es/utils/index.js +6 -6
- package/lib/{pages → demo}/data/assets.d.ts +2 -2
- package/lib/{pages → demo}/data/assets.js +7 -7
- package/lib/demo/index.js +45 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.js +6 -3
- package/lib/utils/common/Request.js +9 -14
- package/lib/utils/common/RestApi.d.ts +1 -1
- package/lib/utils/common/RestApi.js +7 -7
- package/lib/utils/common/index.d.ts +0 -3
- package/lib/utils/common/index.js +1 -6
- package/lib/utils/designer/assets/assets.data.antd.d.ts +3 -0
- package/lib/utils/designer/assets/assets.data.antd.js +33 -0
- package/lib/utils/designer/assets/assets.data.base.d.ts +3 -0
- package/lib/utils/designer/assets/assets.data.base.js +45 -0
- package/lib/utils/designer/assets/assets.data.chart.d.ts +3 -0
- package/lib/utils/designer/assets/assets.data.chart.js +31 -0
- package/lib/utils/designer/assets/assets.data.design.d.ts +3 -0
- package/lib/utils/designer/assets/assets.data.design.js +14 -0
- package/lib/utils/designer/assets/assets.parse.d.ts +3 -0
- package/lib/utils/{lowcode/parseAssets.js → designer/assets/assets.parse.js} +6 -6
- package/lib/utils/designer/assets/assets.typing.d.ts +298 -0
- package/lib/utils/designer/assets/assets.typing.js +47 -0
- package/lib/utils/designer/assets/index.d.ts +10 -0
- package/lib/utils/designer/assets/index.js +55 -0
- package/lib/utils/designer/engine/index.d.ts +19 -0
- package/lib/utils/designer/engine/index.js +121 -0
- package/lib/utils/designer/index.d.ts +3 -0
- package/lib/utils/designer/index.js +34 -0
- package/lib/utils/index.d.ts +4 -9
- package/lib/utils/index.js +8 -9
- package/package.json +4 -2
- package/readme.md +2 -0
- package/es/pages/index.js +0 -31
- package/es/utils/lowcode/index.d.ts +0 -1
- package/es/utils/lowcode/index.js +0 -1
- package/es/utils/lowcode/parseAssets.d.ts +0 -3
- package/lib/pages/index.js +0 -34
- package/lib/utils/lowcode/index.d.ts +0 -1
- package/lib/utils/lowcode/index.js +0 -6
- package/lib/utils/lowcode/parseAssets.d.ts +0 -3
- /package/es/{pages → demo}/data/schema.d.ts +0 -0
- /package/es/{pages → demo}/data/schema.js +0 -0
- /package/es/{pages → demo}/index.d.ts +0 -0
- /package/es/{pages → demo}/index.less +0 -0
- /package/lib/{pages → demo}/data/schema.d.ts +0 -0
- /package/lib/{pages → demo}/data/schema.js +0 -0
- /package/lib/{pages → demo}/index.d.ts +0 -0
- /package/lib/{pages → demo}/index.less +0 -0
|
@@ -8,11 +8,11 @@ declare const _default: {
|
|
|
8
8
|
description?: undefined;
|
|
9
9
|
} | {
|
|
10
10
|
title: string;
|
|
11
|
+
description: string;
|
|
11
12
|
package: string;
|
|
12
13
|
version: string;
|
|
13
|
-
description: string;
|
|
14
|
-
urls: string[];
|
|
15
14
|
library: string;
|
|
15
|
+
urls: string[];
|
|
16
16
|
})[];
|
|
17
17
|
components: {
|
|
18
18
|
exportName: string;
|
|
@@ -9,18 +9,18 @@ export default {
|
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"library": "AntdMaterial",
|
|
11
11
|
"urls": ["https://cdn.zhiyunhe.com/plugin/dayjs/dayjs.min.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
|
|
12
|
-
}, {
|
|
13
|
-
"title": "fusion组件库",
|
|
14
|
-
"package": "@alifd/next",
|
|
15
|
-
"version": "1.26.4",
|
|
16
|
-
"description": "不可删除否则会出问题",
|
|
17
|
-
"urls": ["https://g.alicdn.com/code/lib/alifd__next/1.26.4/next-with-locales.min.js"],
|
|
18
|
-
"library": "Next"
|
|
19
12
|
}, {
|
|
20
13
|
"package": "chart-material",
|
|
21
14
|
"version": "0.1.0",
|
|
22
15
|
"library": "ChartMaterial",
|
|
23
16
|
"urls": ["https://cdn.zhiyunhe.com/plugin/antv/g2/5.1.19/g2.min.js", "https://cdn.zhiyunhe.com/plugin/datav/1.2.5/datav.min.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.css"]
|
|
17
|
+
}, {
|
|
18
|
+
"title": "fusion组件库",
|
|
19
|
+
"description": "不可删除否则会出问题",
|
|
20
|
+
"package": "@alifd/next",
|
|
21
|
+
"version": "1.26.4",
|
|
22
|
+
"library": "Next",
|
|
23
|
+
"urls": ["https://g.alicdn.com/code/lib/alifd__next/1.26.4/next-with-locales.min.js"]
|
|
24
24
|
}],
|
|
25
25
|
"components": [{
|
|
26
26
|
"exportName": "RootMaterialMeta",
|
package/es/demo/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import React, { Fragment, useEffect, useRef } from "react";
|
|
4
|
+
import ReactDOM from "react-dom";
|
|
5
|
+
import utils from "../utils";
|
|
6
|
+
import Schema from "./data/schema";
|
|
7
|
+
console.log(utils);
|
|
8
|
+
function App() {
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
useEffect(function () {
|
|
11
|
+
utils.designer.initEngine().then( /*#__PURE__*/function () {
|
|
12
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(engine) {
|
|
13
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15
|
+
case 0:
|
|
16
|
+
_context.next = 2;
|
|
17
|
+
return engine.injectAssets(["antd"]);
|
|
18
|
+
case 2:
|
|
19
|
+
_context.next = 4;
|
|
20
|
+
return engine.init(ref.current, Schema);
|
|
21
|
+
case 4:
|
|
22
|
+
case "end":
|
|
23
|
+
return _context.stop();
|
|
24
|
+
}
|
|
25
|
+
}, _callee);
|
|
26
|
+
}));
|
|
27
|
+
return function (_x) {
|
|
28
|
+
return _ref.apply(this, arguments);
|
|
29
|
+
};
|
|
30
|
+
}());
|
|
31
|
+
}, []);
|
|
32
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
ref: ref,
|
|
34
|
+
style: {
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%"
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
ReactDOM.render( /*#__PURE__*/React.createElement(App, null), document.getElementById('root'));
|
package/es/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as utils from "./utils";
|
|
2
|
-
export { RestApi } from "./utils";
|
|
3
|
-
export { RestFormApi } from "./utils";
|
|
4
|
-
export { ClientCache } from "./utils";
|
|
2
|
+
export { RestApi } from "./utils/common/RestApi";
|
|
3
|
+
export { RestFormApi } from "./utils/common/RestFormApi";
|
|
4
|
+
export { ClientCache } from "./utils/common/ClientCache";
|
|
5
5
|
export { Layout } from "./components/layout";
|
|
6
6
|
export { SchemaRender } from "./components/schema-render";
|
|
7
7
|
export { utils };
|
package/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as utils from "./utils";
|
|
2
|
-
export { RestApi } from "./utils";
|
|
3
|
-
export { RestFormApi } from "./utils";
|
|
4
|
-
export { ClientCache } from "./utils";
|
|
2
|
+
export { RestApi } from "./utils/common/RestApi";
|
|
3
|
+
export { RestFormApi } from "./utils/common/RestFormApi";
|
|
4
|
+
export { ClientCache } from "./utils/common/ClientCache";
|
|
5
5
|
export { Layout } from "./components/layout";
|
|
6
6
|
export { SchemaRender } from "./components/schema-render";
|
|
7
7
|
export { utils };
|
|
@@ -2,19 +2,14 @@ export function onFulfilled(res) {
|
|
|
2
2
|
return res.data;
|
|
3
3
|
}
|
|
4
4
|
export function onRejected(error) {
|
|
5
|
-
var _error$response,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var msg = (_window$antd = window.antd) === null || _window$antd === void 0 ? void 0 : _window$antd.message;
|
|
11
|
-
switch (statusCode) {
|
|
12
|
-
case 500:
|
|
13
|
-
msg === null || msg === void 0 ? void 0 : msg.error(message).then();
|
|
14
|
-
break;
|
|
15
|
-
case 400:
|
|
16
|
-
msg === null || msg === void 0 ? void 0 : msg.error(message).then();
|
|
17
|
-
break;
|
|
5
|
+
var _error$response = error.response,
|
|
6
|
+
status = _error$response.status,
|
|
7
|
+
statusText = _error$response.statusText;
|
|
8
|
+
if (status == 400) {
|
|
9
|
+
return error.response.data || {};
|
|
18
10
|
}
|
|
19
|
-
return
|
|
11
|
+
return {
|
|
12
|
+
success: false,
|
|
13
|
+
message: statusText
|
|
14
|
+
};
|
|
20
15
|
}
|
|
@@ -33,7 +33,7 @@ export declare class RestApi<DataType> {
|
|
|
33
33
|
* 通过id删除
|
|
34
34
|
*/
|
|
35
35
|
deleteById(id: string, options?: BaseRequestOptions<DataType>): Promise<boolean>;
|
|
36
|
-
showError(msg?: string): Promise<void>;
|
|
36
|
+
showError(type?: string, msg?: string): Promise<void>;
|
|
37
37
|
}
|
|
38
38
|
export interface BaseType {
|
|
39
39
|
/**
|
|
@@ -77,7 +77,7 @@ export var RestApi = /*#__PURE__*/function () {
|
|
|
77
77
|
_context2.next = 7;
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
80
|
-
this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!"
|
|
80
|
+
this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!", res.message).then();
|
|
81
81
|
_context2.next = 7;
|
|
82
82
|
return options === null || options === void 0 ? void 0 : (_options$onError = options.onError) === null || _options$onError === void 0 ? void 0 : _options$onError.call(options, res);
|
|
83
83
|
case 7:
|
|
@@ -113,7 +113,7 @@ export var RestApi = /*#__PURE__*/function () {
|
|
|
113
113
|
_context3.next = 7;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
|
-
this.showError("\u65B0\u589E\u5931\u8D25!"
|
|
116
|
+
this.showError("\u65B0\u589E\u5931\u8D25!", res.message).then();
|
|
117
117
|
_context3.next = 7;
|
|
118
118
|
return options === null || options === void 0 ? void 0 : (_options$onError2 = options.onError) === null || _options$onError2 === void 0 ? void 0 : _options$onError2.call(options, res);
|
|
119
119
|
case 7:
|
|
@@ -149,7 +149,7 @@ export var RestApi = /*#__PURE__*/function () {
|
|
|
149
149
|
_context4.next = 7;
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
-
this.showError("\u66F4\u65B0\u5931\u8D25!"
|
|
152
|
+
this.showError("\u66F4\u65B0\u5931\u8D25!", res.message).then();
|
|
153
153
|
_context4.next = 7;
|
|
154
154
|
return options === null || options === void 0 ? void 0 : (_options$onError3 = options.onError) === null || _options$onError3 === void 0 ? void 0 : _options$onError3.call(options, res);
|
|
155
155
|
case 7:
|
|
@@ -185,7 +185,7 @@ export var RestApi = /*#__PURE__*/function () {
|
|
|
185
185
|
_context5.next = 7;
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
|
-
this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!"
|
|
188
|
+
this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!", res.message).then();
|
|
189
189
|
_context5.next = 7;
|
|
190
190
|
return options === null || options === void 0 ? void 0 : (_options$onError4 = options.onError) === null || _options$onError4 === void 0 ? void 0 : _options$onError4.call(options, res);
|
|
191
191
|
case 7:
|
|
@@ -202,18 +202,18 @@ export var RestApi = /*#__PURE__*/function () {
|
|
|
202
202
|
return deleteById;
|
|
203
203
|
}();
|
|
204
204
|
_proto.showError = /*#__PURE__*/function () {
|
|
205
|
-
var _showError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(msg) {
|
|
205
|
+
var _showError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(type, msg) {
|
|
206
206
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
207
207
|
while (1) switch (_context6.prev = _context6.next) {
|
|
208
208
|
case 0:
|
|
209
|
-
_message === null || _message === void 0 ? void 0 : _message.error(this.title + "
|
|
209
|
+
_message === null || _message === void 0 ? void 0 : _message.error("{" + this.title + "}" + type + (msg || "")).then();
|
|
210
210
|
case 1:
|
|
211
211
|
case "end":
|
|
212
212
|
return _context6.stop();
|
|
213
213
|
}
|
|
214
214
|
}, _callee6, this);
|
|
215
215
|
}));
|
|
216
|
-
function showError(_x13) {
|
|
216
|
+
function showError(_x13, _x14) {
|
|
217
217
|
return _showError.apply(this, arguments);
|
|
218
218
|
}
|
|
219
219
|
return showError;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ClientCache } from "./ClientCache";
|
|
2
|
-
export { RestApi } from "./RestApi";
|
|
3
|
-
export { RestFormApi } from "./RestFormApi";
|
|
4
|
-
export { ClientCache } from "./ClientCache";
|
|
5
2
|
export { loadPlugins } from "./LoadPlugins";
|
|
6
3
|
export declare function uuid(prefix?: string, separator?: string): string;
|
|
7
4
|
export declare const schemaCache: ClientCache;
|
package/es/utils/common/index.js
CHANGED
|
@@ -3,9 +3,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
import { v4 } from "uuid";
|
|
4
4
|
import { ClientCache } from "./ClientCache";
|
|
5
5
|
import { request } from "../api";
|
|
6
|
-
export { RestApi } from "./RestApi";
|
|
7
|
-
export { RestFormApi } from "./RestFormApi";
|
|
8
|
-
export { ClientCache } from "./ClientCache";
|
|
9
6
|
export { loadPlugins } from "./LoadPlugins";
|
|
10
7
|
export function uuid(prefix, separator) {
|
|
11
8
|
return [prefix, separator, v4()].filter(function (v) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export var AntdAssets = {
|
|
2
|
+
packages: [{
|
|
3
|
+
"package": "antd-material",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"library": "AntdMaterial",
|
|
6
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
|
|
7
|
+
}, {
|
|
8
|
+
"package": "antd-pro-material",
|
|
9
|
+
"version": "0.1.0",
|
|
10
|
+
"library": "AntdProMaterial",
|
|
11
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
|
|
12
|
+
}],
|
|
13
|
+
components: [{
|
|
14
|
+
"exportName": "AntdMaterialMeta",
|
|
15
|
+
"npm": {
|
|
16
|
+
"package": "antd-material",
|
|
17
|
+
"version": "1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/meta.js"
|
|
20
|
+
}, {
|
|
21
|
+
"exportName": "ZhubangyunAntdProMaterialMeta",
|
|
22
|
+
"npm": {
|
|
23
|
+
"package": "@zhubangyun/antd-pro-material",
|
|
24
|
+
"version": "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/meta.js"
|
|
27
|
+
}]
|
|
28
|
+
};
|
|
29
|
+
export default AntdAssets;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var BaseAssets = {
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"packages": [{
|
|
4
|
+
"package": "dayjs",
|
|
5
|
+
"version": "1.11.10",
|
|
6
|
+
"library": "dayjs",
|
|
7
|
+
"external": true,
|
|
8
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/dayjs/dayjs.min.js"]
|
|
9
|
+
}, {
|
|
10
|
+
"package": "lodash",
|
|
11
|
+
"version": "4.6.1",
|
|
12
|
+
"library": "_",
|
|
13
|
+
"external": true,
|
|
14
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lodash/4.6.1/lodash.min.js"]
|
|
15
|
+
}, {
|
|
16
|
+
"package": "antd",
|
|
17
|
+
"version": "5.16.4",
|
|
18
|
+
"library": "antd",
|
|
19
|
+
"id": "antd",
|
|
20
|
+
"external": true,
|
|
21
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/antd/5.17.0/antd.min.js", "https://cdn.zhiyunhe.com/plugin/antd/5.17.0/reset.min.css", "https://cdn.zhiyunhe.com/plugin/antdIcon/1.0.0/antdIcon.min.js"]
|
|
22
|
+
}, {
|
|
23
|
+
"package": "root-material",
|
|
24
|
+
"version": "0.1.0",
|
|
25
|
+
"library": "RootMaterial",
|
|
26
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css"]
|
|
27
|
+
}],
|
|
28
|
+
"components": [{
|
|
29
|
+
"exportName": "RootMaterialMeta",
|
|
30
|
+
"npm": {
|
|
31
|
+
"package": "root-material",
|
|
32
|
+
"version": "1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/meta.js"
|
|
35
|
+
}],
|
|
36
|
+
"sort": {
|
|
37
|
+
"categoryList": ["布局", "通用", "导航", "数据录入", "数据展示", "反馈", "大屏组件", "图表", "基础元素", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "引导", "信息输入", "信息展示", "信息反馈", "布局容器类", "增强组件", "工具组件"],
|
|
38
|
+
"groupList": ["", "原子组件", "精选组件", "增强分组", "图表组件", "默认分组"]
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export default BaseAssets;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var ChartAssets = {
|
|
2
|
+
packages: [{
|
|
3
|
+
"package": "g2",
|
|
4
|
+
"version": "5.1.19",
|
|
5
|
+
"library": "G2",
|
|
6
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/antv/g2/5.1.19/g2.min.js"]
|
|
7
|
+
}, {
|
|
8
|
+
"package": "datav",
|
|
9
|
+
"version": "1.2.5",
|
|
10
|
+
"library": "datav",
|
|
11
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/datav/1.2.5/datav.min.js"]
|
|
12
|
+
}, {
|
|
13
|
+
"package": "chart-material",
|
|
14
|
+
"version": "0.1.0",
|
|
15
|
+
"library": "ChartMaterial",
|
|
16
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.css"]
|
|
17
|
+
}],
|
|
18
|
+
components: [{
|
|
19
|
+
"exportName": "ChartMaterialMeta",
|
|
20
|
+
"npm": {
|
|
21
|
+
"package": "chart-material",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
},
|
|
24
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/meta.js"
|
|
25
|
+
}]
|
|
26
|
+
};
|
|
27
|
+
export default ChartAssets;
|
|
@@ -22,11 +22,11 @@ function genLowcodeComp(schema, components) {
|
|
|
22
22
|
return LowcodeComp;
|
|
23
23
|
}(React.Component);
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
26
|
-
return
|
|
25
|
+
export function assetsParse(_x) {
|
|
26
|
+
return _assetsParse.apply(this, arguments);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
28
|
+
function _assetsParse() {
|
|
29
|
+
_assetsParse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(assets) {
|
|
30
30
|
var rawComponents, packages, libraryAsset, libraryMap, packagesMap, assetLoader, newComponents, componentDescriptions, remoteComponentDescriptions, lowcodeComponentsArray, proCodeComponentsMap, genLowCodeComponentsMap, components, lowCodeComponents;
|
|
31
31
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
32
32
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -181,5 +181,5 @@ function _parseAssets() {
|
|
|
181
181
|
}
|
|
182
182
|
}, _callee2);
|
|
183
183
|
}));
|
|
184
|
-
return
|
|
184
|
+
return _assetsParse.apply(this, arguments);
|
|
185
185
|
}
|