@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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
8
|
+
var _utils = _interopRequireDefault(require("../utils"));
|
|
9
|
+
var _schema = _interopRequireDefault(require("./data/schema"));
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
|
+
console.log(_utils["default"]);
|
|
13
|
+
function App() {
|
|
14
|
+
var ref = (0, _react.useRef)();
|
|
15
|
+
(0, _react.useEffect)(function () {
|
|
16
|
+
_utils["default"].designer.initEngine().then( /*#__PURE__*/function () {
|
|
17
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(engine) {
|
|
18
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
19
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20
|
+
case 0:
|
|
21
|
+
_context.next = 2;
|
|
22
|
+
return engine.injectAssets(["antd"]);
|
|
23
|
+
case 2:
|
|
24
|
+
_context.next = 4;
|
|
25
|
+
return engine.init(ref.current, _schema["default"]);
|
|
26
|
+
case 4:
|
|
27
|
+
case "end":
|
|
28
|
+
return _context.stop();
|
|
29
|
+
}
|
|
30
|
+
}, _callee);
|
|
31
|
+
}));
|
|
32
|
+
return function (_x) {
|
|
33
|
+
return _ref.apply(this, arguments);
|
|
34
|
+
};
|
|
35
|
+
}());
|
|
36
|
+
}, []);
|
|
37
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
38
|
+
ref: ref,
|
|
39
|
+
style: {
|
|
40
|
+
width: "100%",
|
|
41
|
+
height: "100%"
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(App, null), document.getElementById('root'));
|
package/lib/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/lib/index.js
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.utils = exports.SchemaRender = exports.RestFormApi = exports.RestApi = exports.Layout = exports.ClientCache = void 0;
|
|
5
5
|
var utils = _interopRequireWildcard(require("./utils"));
|
|
6
|
-
exports.RestApi = utils.RestApi;
|
|
7
|
-
exports.RestFormApi = utils.RestFormApi;
|
|
8
|
-
exports.ClientCache = utils.ClientCache;
|
|
9
6
|
exports.utils = utils;
|
|
7
|
+
var _RestApi = require("./utils/common/RestApi");
|
|
8
|
+
exports.RestApi = _RestApi.RestApi;
|
|
9
|
+
var _RestFormApi = require("./utils/common/RestFormApi");
|
|
10
|
+
exports.RestFormApi = _RestFormApi.RestFormApi;
|
|
11
|
+
var _ClientCache = require("./utils/common/ClientCache");
|
|
12
|
+
exports.ClientCache = _ClientCache.ClientCache;
|
|
10
13
|
var _layout = require("./components/layout");
|
|
11
14
|
exports.Layout = _layout.Layout;
|
|
12
15
|
var _schemaRender = require("./components/schema-render");
|
|
@@ -7,19 +7,14 @@ function onFulfilled(res) {
|
|
|
7
7
|
return res.data;
|
|
8
8
|
}
|
|
9
9
|
function onRejected(error) {
|
|
10
|
-
var _error$response,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var msg = (_window$antd = window.antd) === null || _window$antd === void 0 ? void 0 : _window$antd.message;
|
|
16
|
-
switch (statusCode) {
|
|
17
|
-
case 500:
|
|
18
|
-
msg === null || msg === void 0 ? void 0 : msg.error(message).then();
|
|
19
|
-
break;
|
|
20
|
-
case 400:
|
|
21
|
-
msg === null || msg === void 0 ? void 0 : msg.error(message).then();
|
|
22
|
-
break;
|
|
10
|
+
var _error$response = error.response,
|
|
11
|
+
status = _error$response.status,
|
|
12
|
+
statusText = _error$response.statusText;
|
|
13
|
+
if (status == 400) {
|
|
14
|
+
return error.response.data || {};
|
|
23
15
|
}
|
|
24
|
-
return
|
|
16
|
+
return {
|
|
17
|
+
success: false,
|
|
18
|
+
message: statusText
|
|
19
|
+
};
|
|
25
20
|
}
|
|
@@ -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
|
/**
|
|
@@ -82,7 +82,7 @@ var RestApi = exports.RestApi = /*#__PURE__*/function () {
|
|
|
82
82
|
_context2.next = 7;
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
|
-
this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!"
|
|
85
|
+
this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!", res.message).then();
|
|
86
86
|
_context2.next = 7;
|
|
87
87
|
return options === null || options === void 0 ? void 0 : (_options$onError = options.onError) === null || _options$onError === void 0 ? void 0 : _options$onError.call(options, res);
|
|
88
88
|
case 7:
|
|
@@ -118,7 +118,7 @@ var RestApi = exports.RestApi = /*#__PURE__*/function () {
|
|
|
118
118
|
_context3.next = 7;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
|
-
this.showError("\u65B0\u589E\u5931\u8D25!"
|
|
121
|
+
this.showError("\u65B0\u589E\u5931\u8D25!", res.message).then();
|
|
122
122
|
_context3.next = 7;
|
|
123
123
|
return options === null || options === void 0 ? void 0 : (_options$onError2 = options.onError) === null || _options$onError2 === void 0 ? void 0 : _options$onError2.call(options, res);
|
|
124
124
|
case 7:
|
|
@@ -154,7 +154,7 @@ var RestApi = exports.RestApi = /*#__PURE__*/function () {
|
|
|
154
154
|
_context4.next = 7;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
|
-
this.showError("\u66F4\u65B0\u5931\u8D25!"
|
|
157
|
+
this.showError("\u66F4\u65B0\u5931\u8D25!", res.message).then();
|
|
158
158
|
_context4.next = 7;
|
|
159
159
|
return options === null || options === void 0 ? void 0 : (_options$onError3 = options.onError) === null || _options$onError3 === void 0 ? void 0 : _options$onError3.call(options, res);
|
|
160
160
|
case 7:
|
|
@@ -190,7 +190,7 @@ var RestApi = exports.RestApi = /*#__PURE__*/function () {
|
|
|
190
190
|
_context5.next = 7;
|
|
191
191
|
break;
|
|
192
192
|
}
|
|
193
|
-
this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!"
|
|
193
|
+
this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!", res.message).then();
|
|
194
194
|
_context5.next = 7;
|
|
195
195
|
return options === null || options === void 0 ? void 0 : (_options$onError4 = options.onError) === null || _options$onError4 === void 0 ? void 0 : _options$onError4.call(options, res);
|
|
196
196
|
case 7:
|
|
@@ -207,18 +207,18 @@ var RestApi = exports.RestApi = /*#__PURE__*/function () {
|
|
|
207
207
|
return deleteById;
|
|
208
208
|
}();
|
|
209
209
|
_proto.showError = /*#__PURE__*/function () {
|
|
210
|
-
var _showError = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(msg) {
|
|
210
|
+
var _showError = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(type, msg) {
|
|
211
211
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
212
212
|
while (1) switch (_context6.prev = _context6.next) {
|
|
213
213
|
case 0:
|
|
214
|
-
_message2["default"] === null || _message2["default"] === void 0 ? void 0 : _message2["default"].error(this.title + "
|
|
214
|
+
_message2["default"] === null || _message2["default"] === void 0 ? void 0 : _message2["default"].error("{" + this.title + "}" + type + (msg || "")).then();
|
|
215
215
|
case 1:
|
|
216
216
|
case "end":
|
|
217
217
|
return _context6.stop();
|
|
218
218
|
}
|
|
219
219
|
}, _callee6, this);
|
|
220
220
|
}));
|
|
221
|
-
function showError(_x13) {
|
|
221
|
+
function showError(_x13, _x14) {
|
|
222
222
|
return _showError.apply(this, arguments);
|
|
223
223
|
}
|
|
224
224
|
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;
|
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.schemaCache = exports.loadPlugins =
|
|
5
|
+
exports.schemaCache = exports.loadPlugins = void 0;
|
|
6
6
|
exports.uuid = uuid;
|
|
7
7
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
8
8
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
9
9
|
var _uuid = require("uuid");
|
|
10
10
|
var _ClientCache = require("./ClientCache");
|
|
11
|
-
exports.ClientCache = _ClientCache.ClientCache;
|
|
12
11
|
var _api = require("../api");
|
|
13
|
-
var _RestApi = require("./RestApi");
|
|
14
|
-
exports.RestApi = _RestApi.RestApi;
|
|
15
|
-
var _RestFormApi = require("./RestFormApi");
|
|
16
|
-
exports.RestFormApi = _RestFormApi.RestFormApi;
|
|
17
12
|
var _LoadPlugins = require("./LoadPlugins");
|
|
18
13
|
exports.loadPlugins = _LoadPlugins.loadPlugins;
|
|
19
14
|
function uuid(prefix, separator) {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = exports.AntdAssets = void 0;
|
|
5
|
+
var AntdAssets = exports.AntdAssets = {
|
|
6
|
+
packages: [{
|
|
7
|
+
"package": "antd-material",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"library": "AntdMaterial",
|
|
10
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
|
|
11
|
+
}, {
|
|
12
|
+
"package": "antd-pro-material",
|
|
13
|
+
"version": "0.1.0",
|
|
14
|
+
"library": "AntdProMaterial",
|
|
15
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
|
|
16
|
+
}],
|
|
17
|
+
components: [{
|
|
18
|
+
"exportName": "AntdMaterialMeta",
|
|
19
|
+
"npm": {
|
|
20
|
+
"package": "antd-material",
|
|
21
|
+
"version": "1.0.0"
|
|
22
|
+
},
|
|
23
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/meta.js"
|
|
24
|
+
}, {
|
|
25
|
+
"exportName": "ZhubangyunAntdProMaterialMeta",
|
|
26
|
+
"npm": {
|
|
27
|
+
"package": "@zhubangyun/antd-pro-material",
|
|
28
|
+
"version": "1.0.0"
|
|
29
|
+
},
|
|
30
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/meta.js"
|
|
31
|
+
}]
|
|
32
|
+
};
|
|
33
|
+
var _default = exports["default"] = AntdAssets;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var BaseAssets = {
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"packages": [{
|
|
8
|
+
"package": "dayjs",
|
|
9
|
+
"version": "1.11.10",
|
|
10
|
+
"library": "dayjs",
|
|
11
|
+
"external": true,
|
|
12
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/dayjs/dayjs.min.js"]
|
|
13
|
+
}, {
|
|
14
|
+
"package": "lodash",
|
|
15
|
+
"version": "4.6.1",
|
|
16
|
+
"library": "_",
|
|
17
|
+
"external": true,
|
|
18
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lodash/4.6.1/lodash.min.js"]
|
|
19
|
+
}, {
|
|
20
|
+
"package": "antd",
|
|
21
|
+
"version": "5.16.4",
|
|
22
|
+
"library": "antd",
|
|
23
|
+
"id": "antd",
|
|
24
|
+
"external": true,
|
|
25
|
+
"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"]
|
|
26
|
+
}, {
|
|
27
|
+
"package": "root-material",
|
|
28
|
+
"version": "0.1.0",
|
|
29
|
+
"library": "RootMaterial",
|
|
30
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css"]
|
|
31
|
+
}],
|
|
32
|
+
"components": [{
|
|
33
|
+
"exportName": "RootMaterialMeta",
|
|
34
|
+
"npm": {
|
|
35
|
+
"package": "root-material",
|
|
36
|
+
"version": "1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/meta.js"
|
|
39
|
+
}],
|
|
40
|
+
"sort": {
|
|
41
|
+
"categoryList": ["布局", "通用", "导航", "数据录入", "数据展示", "反馈", "大屏组件", "图表", "基础元素", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "引导", "信息输入", "信息展示", "信息反馈", "布局容器类", "增强组件", "工具组件"],
|
|
42
|
+
"groupList": ["", "原子组件", "精选组件", "增强分组", "图表组件", "默认分组"]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var _default = exports["default"] = BaseAssets;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var ChartAssets = {
|
|
6
|
+
packages: [{
|
|
7
|
+
"package": "g2",
|
|
8
|
+
"version": "5.1.19",
|
|
9
|
+
"library": "G2",
|
|
10
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/antv/g2/5.1.19/g2.min.js"]
|
|
11
|
+
}, {
|
|
12
|
+
"package": "datav",
|
|
13
|
+
"version": "1.2.5",
|
|
14
|
+
"library": "datav",
|
|
15
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/datav/1.2.5/datav.min.js"]
|
|
16
|
+
}, {
|
|
17
|
+
"package": "chart-material",
|
|
18
|
+
"version": "0.1.0",
|
|
19
|
+
"library": "ChartMaterial",
|
|
20
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.css"]
|
|
21
|
+
}],
|
|
22
|
+
components: [{
|
|
23
|
+
"exportName": "ChartMaterialMeta",
|
|
24
|
+
"npm": {
|
|
25
|
+
"package": "chart-material",
|
|
26
|
+
"version": "1.0.0"
|
|
27
|
+
},
|
|
28
|
+
"url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/meta.js"
|
|
29
|
+
}]
|
|
30
|
+
};
|
|
31
|
+
var _default = exports["default"] = ChartAssets;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var DesignAssets = {
|
|
6
|
+
packages: [{
|
|
7
|
+
"package": "@alifd/next",
|
|
8
|
+
"version": "1.26.4",
|
|
9
|
+
"library": "Next",
|
|
10
|
+
"urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/next-with-locales.min.js"]
|
|
11
|
+
}],
|
|
12
|
+
components: []
|
|
13
|
+
};
|
|
14
|
+
var _default = exports["default"] = DesignAssets;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.
|
|
5
|
+
exports.assetsParse = assetsParse;
|
|
6
6
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
7
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -29,11 +29,11 @@ function genLowcodeComp(schema, components) {
|
|
|
29
29
|
return LowcodeComp;
|
|
30
30
|
}(_react["default"].Component);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function assetsParse(_x) {
|
|
33
|
+
return _assetsParse.apply(this, arguments);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
35
|
+
function _assetsParse() {
|
|
36
|
+
_assetsParse = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(assets) {
|
|
37
37
|
var rawComponents, packages, libraryAsset, libraryMap, packagesMap, assetLoader, newComponents, componentDescriptions, remoteComponentDescriptions, lowcodeComponentsArray, proCodeComponentsMap, genLowCodeComponentsMap, components, lowCodeComponents;
|
|
38
38
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
39
39
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -188,5 +188,5 @@ function _parseAssets() {
|
|
|
188
188
|
}
|
|
189
189
|
}, _callee2);
|
|
190
190
|
}));
|
|
191
|
-
return
|
|
191
|
+
return _assetsParse.apply(this, arguments);
|
|
192
192
|
}
|