@titaui/pc 1.10.45 → 1.10.48
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/lib/components/checkbox/index.css +1 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +10 -47
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/nav-top/components/menu/index.css +4 -2
- package/lib/components/nav-top/components/user-message/index.css +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +19 -1
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +3 -1
- package/lib/components/rich-editor/plugins/block/heading/index.js +5 -3
- package/lib/components/rich-editor/plugins/block/lists/index.js +4 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +13 -5
- package/lib/components/rich-editor/plugins/inline/color/selector.js +4 -2
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +3 -1
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +7 -5
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +17 -4
- package/lib/components/rich-editor/plugins/inline/strong/index.js +3 -1
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +3 -1
- package/lib/components/rich-editor/ui/editor/index.js +6 -1
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +7 -2
- package/lib/components/superset-charts/components/chart/index.js +12 -22
- package/lib/components/superset-charts/{init/insert-assets.js → fetch-assets-and-append/append-assets.js} +29 -24
- package/lib/components/superset-charts/{init/use-get-assets.js → fetch-assets-and-append/get-assets-with-cache.js} +26 -20
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/utils/axios.js +8 -4
- package/lib/components/toast/index.js +2 -10
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/package.json +2 -1
- package/lib/components/superset-charts/init/index.js +0 -61
- package/yarn-error.log +0 -22184
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SingleInsert = SingleInsert;
|
|
7
|
-
exports.lazyLoad = void 0;
|
|
8
|
-
|
|
9
|
-
var _insertAssets = _interopRequireDefault(require("./insert-assets"));
|
|
10
|
-
|
|
11
|
-
var _useGetAssets = require("./use-get-assets");
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
|
|
15
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
16
|
-
|
|
17
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18
|
-
|
|
19
|
-
function SingleInsert() {
|
|
20
|
-
var instance;
|
|
21
|
-
return function insert(assets) {
|
|
22
|
-
if (!instance) {
|
|
23
|
-
var _insert = new _insertAssets["default"]();
|
|
24
|
-
|
|
25
|
-
_insert.setAssets(assets);
|
|
26
|
-
|
|
27
|
-
instance = _insert.insertAssetsList();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return instance;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
var lazyLoad = /*#__PURE__*/function () {
|
|
35
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
36
|
-
var assets;
|
|
37
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
38
|
-
while (1) {
|
|
39
|
-
switch (_context.prev = _context.next) {
|
|
40
|
-
case 0:
|
|
41
|
-
_context.next = 2;
|
|
42
|
-
return (0, _useGetAssets.getAssets)();
|
|
43
|
-
|
|
44
|
-
case 2:
|
|
45
|
-
assets = _context.sent;
|
|
46
|
-
return _context.abrupt("return", SingleInsert()(assets));
|
|
47
|
-
|
|
48
|
-
case 4:
|
|
49
|
-
case "end":
|
|
50
|
-
return _context.stop();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, _callee);
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
return function lazyLoad() {
|
|
57
|
-
return _ref.apply(this, arguments);
|
|
58
|
-
};
|
|
59
|
-
}();
|
|
60
|
-
|
|
61
|
-
exports.lazyLoad = lazyLoad;
|