@next-core/brick-kit 2.90.2 → 2.91.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
7
18
 
8
19
 
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('history'), require('@babel/runtime/helpers/objectSpread2'), require('@babel/runtime/helpers/objectWithoutProperties'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/helpers/defineProperty'), require('react'), require('lodash'), require('@next-core/brick-utils'), require('@next-core/brick-http'), require('i18next'), require('moment'), require('@next-core/pipes'), require('@next-core/easyops-analytics'), require('js-yaml'), require('antd'), require('@ant-design/icons'), require('react-i18next'), require('@babel/runtime/helpers/esm/extends'), require('@next-core/illustrations'), require('@babel/runtime/helpers/decorate')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', 'history', '@babel/runtime/helpers/objectSpread2', '@babel/runtime/helpers/objectWithoutProperties', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/defineProperty', 'react', 'lodash', '@next-core/brick-utils', '@next-core/brick-http', 'i18next', 'moment', '@next-core/pipes', '@next-core/easyops-analytics', 'js-yaml', 'antd', '@ant-design/icons', 'react-i18next', '@babel/runtime/helpers/esm/extends', '@next-core/illustrations', '@babel/runtime/helpers/decorate'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.i18next, global.moment, global.pipes, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends$2, global.illustrations, global._decorate));
5
- })(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, i18next, moment, pipes, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends$2, illustrations, _decorate) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.i18next, global.moment, global.pipes, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends$1, global.illustrations, global._decorate));
5
+ })(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, i18next, moment, pipes, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends$1, illustrations, _decorate) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -34,7 +34,7 @@
34
34
  var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
35
35
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
36
36
  var yaml__default = /*#__PURE__*/_interopDefaultLegacy(yaml);
37
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$2);
37
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$1);
38
38
  var _decorate__default = /*#__PURE__*/_interopDefaultLegacy(_decorate);
39
39
 
40
40
  class BaseBar {
@@ -1260,6 +1260,54 @@
1260
1260
  };
1261
1261
  }();
1262
1262
 
1263
+ var auth = {};
1264
+ /** @internal */
1265
+
1266
+ function authenticate(newAuth) {
1267
+ Object.assign(auth, {
1268
+ org: newAuth.org,
1269
+ username: newAuth.username,
1270
+ userInstanceId: newAuth.userInstanceId,
1271
+ loginFrom: newAuth.loginFrom,
1272
+ accessRule: newAuth.accessRule,
1273
+ isAdmin: newAuth.isAdmin
1274
+ }); // re-init analytics to set user_id
1275
+
1276
+ if (easyopsAnalytics.userAnalytics.initialized) {
1277
+ easyopsAnalytics.userAnalytics.setUserId(newAuth.userInstanceId);
1278
+ }
1279
+ }
1280
+ /**
1281
+ * 获取当前登录认证信息。
1282
+ *
1283
+ * @returns 当前登录认证信息。
1284
+ */
1285
+
1286
+ function getAuth() {
1287
+ return _objectSpread__default["default"]({}, auth);
1288
+ }
1289
+ /** @internal */
1290
+
1291
+ function logout() {
1292
+ auth.org = undefined;
1293
+ auth.username = undefined;
1294
+ auth.userInstanceId = undefined;
1295
+ auth.accessRule = undefined;
1296
+ auth.isAdmin = undefined;
1297
+ resetPermissionPreChecks(); // re-init analytics to clear user_id
1298
+
1299
+ easyopsAnalytics.userAnalytics.setUserId();
1300
+ }
1301
+ /**
1302
+ * 查看当前是否已登录。
1303
+ *
1304
+ * @returns 当前是否已登录。
1305
+ */
1306
+
1307
+ function isLoggedIn() {
1308
+ return auth.username !== undefined;
1309
+ }
1310
+
1263
1311
  var permissionMap = new Map();
1264
1312
  function preCheckPermissions(_x) {
1265
1313
  return _preCheckPermissions.apply(this, arguments);
@@ -1316,6 +1364,10 @@
1316
1364
  }
1317
1365
 
1318
1366
  function checkPermissions() {
1367
+ if (getAuth().isAdmin) {
1368
+ return true;
1369
+ }
1370
+
1319
1371
  for (var _len = arguments.length, actions = new Array(_len), _key = 0; _key < _len; _key++) {
1320
1372
  actions[_key] = arguments[_key];
1321
1373
  }
@@ -5892,52 +5944,6 @@
5892
5944
  };
5893
5945
  }();
5894
5946
 
5895
- var auth = {};
5896
- /** @internal */
5897
-
5898
- function authenticate(newAuth) {
5899
- Object.assign(auth, {
5900
- org: newAuth.org,
5901
- username: newAuth.username,
5902
- userInstanceId: newAuth.userInstanceId,
5903
- loginFrom: newAuth.loginFrom,
5904
- accessRule: newAuth.accessRule
5905
- }); // re-init analytics to set user_id
5906
-
5907
- if (easyopsAnalytics.userAnalytics.initialized) {
5908
- easyopsAnalytics.userAnalytics.setUserId(newAuth.userInstanceId);
5909
- }
5910
- }
5911
- /**
5912
- * 获取当前登录认证信息。
5913
- *
5914
- * @returns 当前登录认证信息。
5915
- */
5916
-
5917
- function getAuth() {
5918
- return _objectSpread__default["default"]({}, auth);
5919
- }
5920
- /** @internal */
5921
-
5922
- function logout() {
5923
- auth.org = undefined;
5924
- auth.username = undefined;
5925
- auth.userInstanceId = undefined;
5926
- auth.accessRule = undefined;
5927
- resetPermissionPreChecks(); // re-init analytics to clear user_id
5928
-
5929
- easyopsAnalytics.userAnalytics.setUserId();
5930
- }
5931
- /**
5932
- * 查看当前是否已登录。
5933
- *
5934
- * @returns 当前是否已登录。
5935
- */
5936
-
5937
- function isLoggedIn() {
5938
- return auth.username !== undefined;
5939
- }
5940
-
5941
5947
  /**
5942
5948
  * Merge `app.defaultConfig` and `app.userConfig` to `app.config`.
5943
5949
  *
@@ -7907,7 +7913,8 @@
7907
7913
  username: auth.username,
7908
7914
  userInstanceId: auth.userInstanceId,
7909
7915
  loginFrom: auth.loginFrom,
7910
- accessRule: auth.accessRule
7916
+ accessRule: auth.accessRule,
7917
+ isAdmin: auth.isAdmin
7911
7918
  }, getRuntimeMisc()),
7912
7919
  flags: this.kernel.getFeatureFlags(),
7913
7920
  segues: this.segues,
@@ -8317,7 +8324,7 @@
8317
8324
 
8318
8325
  preCheckPermissions(container, context) {
8319
8326
  return _asyncToGenerator__default["default"](function* () {
8320
- if (isLoggedIn() && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
8327
+ if (isLoggedIn() && !getAuth().isAdmin && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
8321
8328
  var usedActions = computeRealValue(container.permissionsPreCheck, context, true);
8322
8329
  yield validatePermissions(usedActions);
8323
8330
  }
@@ -9301,7 +9308,7 @@
9301
9308
 
9302
9309
  brickUtils.restoreDynamicTemplates(storyboard); // 预加载权限信息
9303
9310
 
9304
- if (isLoggedIn()) {
9311
+ if (isLoggedIn() && !getAuth().isAdmin) {
9305
9312
  yield preCheckPermissions(storyboard);
9306
9313
  } // 如果找到匹配的 storyboard,那么根据路由匹配得到的 sub-storyboard 加载它的依赖库。
9307
9314
 
@@ -10805,92 +10812,153 @@
10805
10812
  };
10806
10813
  var defaultLocale = localeValues;
10807
10814
 
10808
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
10809
-
10810
- var _ref$1 = /*#__PURE__*/React__namespace.createElement("g", {
10811
- fill: "none"
10812
- }, /*#__PURE__*/React__namespace.createElement("path", {
10813
- d: "M61.108 51.8H15.892a2.8 2.8 0 0 0-1.941.782L5.6 60.615V74.2a5.6 5.6 0 0 0 5.6 5.6h54.6a5.6 5.6 0 0 0 5.6-5.6V60.615l-8.35-8.033a2.8 2.8 0 0 0-1.942-.782z",
10814
- fill: "#C4C4C4"
10815
- }), /*#__PURE__*/React__namespace.createElement("path", {
10816
- d: "M16.8 19.6h43.4a2.8 2.8 0 0 1 2.8 2.8v44.8a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V22.4a2.8 2.8 0 0 1 2.8-2.8z",
10817
- fill: "#F7F7F7"
10818
- }), /*#__PURE__*/React__namespace.createElement("path", {
10819
- d: "M23.8 26.6h29.4a2.8 2.8 0 0 1 2.8 2.8v9.8a2.8 2.8 0 0 1-2.8 2.8H23.8a2.8 2.8 0 0 1-2.8-2.8v-9.8a2.8 2.8 0 0 1 2.8-2.8zm0 26.6h22.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8zm0-7h29.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8z",
10820
- fill: "#E5E5E5"
10821
- }), /*#__PURE__*/React__namespace.createElement("path", {
10822
- d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7z",
10823
- fill: "#CDCDCD"
10824
- }), /*#__PURE__*/React__namespace.createElement("path", {
10825
- d: "M2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525zm6.3 49l-.17-.005A2.8 2.8 0 0 1 5.6 77V60.2h12.393l.175-.006c3.802-.04 7.95 5.943 19.61 6.19l.022-.002.022.002c10.856.218 15.009-5.902 19.558-6.175l.227-.009H71.4V77a2.8 2.8 0 0 1-2.63 2.795l-.17.005H8.4z",
10826
- fill: "#E5E5E5"
10827
- }), /*#__PURE__*/React__namespace.createElement("path", {
10828
- d: "M21 3.356S24.518 2.509 25.516 0c1.438 2.057 2.18 2.947 3.884 3.338-2.321.692-3.33 1.468-4.123 3.662-.912-2.584-1.741-2.919-4.277-3.644",
10829
- fill: "#F5F5F5"
10830
- }), /*#__PURE__*/React__namespace.createElement("path", {
10831
- d: "M63 10.125S72.382 7.923 75.044 1.4c3.834 5.35 5.81 7.663 10.356 8.68-6.19 1.797-8.878 3.816-10.995 9.52-2.43-6.72-4.643-7.59-11.405-9.475",
10832
- fill: "#E5E5E5"
10833
- }));
10834
-
10835
- function SvgEmptyGreyImage(props) {
10836
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
10837
- width: 86,
10838
- height: 80,
10839
- viewBox: "0 0 86 80",
10840
- xmlns: "http://www.w3.org/2000/svg"
10841
- }, props), _ref$1);
10842
- }
10843
-
10844
10815
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10845
10816
 
10846
- var _ref = /*#__PURE__*/React__namespace.createElement("g", {
10847
- fill: "none"
10817
+ var _ref = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
10818
+ x1: "5.718%",
10819
+ y1: "4.311%",
10820
+ x2: "83.05%",
10821
+ y2: "88.915%",
10822
+ id: "empty-image_svg__a"
10823
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10824
+ stopColor: "#D4D8E4",
10825
+ offset: "0%"
10826
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10827
+ stopColor: "#A9B0C4",
10828
+ offset: "100%"
10829
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
10830
+ x1: "0%",
10831
+ y1: "11.08%",
10832
+ x2: "80.548%",
10833
+ y2: "107.704%",
10834
+ id: "empty-image_svg__d"
10835
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10836
+ stopColor: "#C2C7DA",
10837
+ offset: "0%"
10838
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10839
+ stopColor: "#8F96B3",
10840
+ offset: "100%"
10841
+ })), /*#__PURE__*/React__namespace.createElement("path", {
10842
+ d: "M34 36h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4v-8a4 4 0 0 1 4-4z",
10843
+ id: "empty-image_svg__c"
10844
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
10845
+ x: "-37.5%",
10846
+ y: "-31.3%",
10847
+ width: "187.5%",
10848
+ height: "187.5%",
10849
+ filterUnits: "objectBoundingBox",
10850
+ id: "empty-image_svg__b"
10851
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
10852
+ dx: 1,
10853
+ dy: 2,
10854
+ in: "SourceAlpha",
10855
+ result: "shadowOffsetOuter1"
10856
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
10857
+ stdDeviation: 2,
10858
+ in: "shadowOffsetOuter1",
10859
+ result: "shadowBlurOuter1"
10860
+ }), /*#__PURE__*/React__namespace.createElement("feComposite", {
10861
+ in: "shadowBlurOuter1",
10862
+ in2: "SourceAlpha",
10863
+ operator: "out",
10864
+ result: "shadowBlurOuter1"
10865
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
10866
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
10867
+ in: "shadowBlurOuter1"
10868
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
10869
+ x1: "41.823%",
10870
+ y1: "24.795%",
10871
+ x2: "8.813%",
10872
+ y2: "86.427%",
10873
+ id: "empty-image_svg__g"
10874
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10875
+ stopColor: "#CCD0DD",
10876
+ offset: "0%"
10877
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10878
+ stopColor: "#9DA3B9",
10879
+ offset: "100%"
10880
+ })), /*#__PURE__*/React__namespace.createElement("path", {
10881
+ d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
10882
+ id: "empty-image_svg__f"
10883
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
10884
+ x: "-61.9%",
10885
+ y: "-79.5%",
10886
+ width: "223.7%",
10887
+ height: "223.7%",
10888
+ filterUnits: "objectBoundingBox",
10889
+ id: "empty-image_svg__e"
10890
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
10891
+ dy: -2,
10892
+ in: "SourceAlpha",
10893
+ result: "shadowOffsetOuter1"
10894
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
10895
+ stdDeviation: 2,
10896
+ in: "shadowOffsetOuter1",
10897
+ result: "shadowBlurOuter1"
10898
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
10899
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
10900
+ in: "shadowBlurOuter1"
10901
+ })));
10902
+
10903
+ var _ref2 = /*#__PURE__*/React__namespace.createElement("g", {
10904
+ fill: "none",
10905
+ fillRule: "evenodd"
10848
10906
  }, /*#__PURE__*/React__namespace.createElement("path", {
10849
- d: "M15.892 52.3a2.3 2.3 0 0 0-1.594.642L6.1 60.828V74.2a5.08 5.08 0 0 0 1.494 3.606A5.084 5.084 0 0 0 11.2 79.3h54.6a5.08 5.08 0 0 0 3.606-1.494A5.084 5.084 0 0 0 70.9 74.2V60.828l-8.198-7.886c-.517-.498-1.331-.642-46.81-.642z",
10850
- stroke: "#D9D9D9",
10851
- fill: "#FDFDFD"
10852
- }), /*#__PURE__*/React__namespace.createElement("path", {
10853
- d: "M16.8 19.6h43.4a2.8 2.8 0 0 1 2.8 2.8v44.8a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V22.4a2.8 2.8 0 0 1 2.8-2.8z",
10854
- stroke: "#EEE",
10855
- fill: "#F7F7F7"
10856
- }), /*#__PURE__*/React__namespace.createElement("path", {
10857
- d: "M23.8 26.6h29.4a2.8 2.8 0 0 1 2.8 2.8v9.8a2.8 2.8 0 0 1-2.8 2.8H23.8a2.8 2.8 0 0 1-2.8-2.8v-9.8a2.8 2.8 0 0 1 2.8-2.8zm0 26.6h22.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8zm0-7h29.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8z",
10858
- fill: "#E5E5E5"
10907
+ d: "M61.108 51.8H15.892a2.8 2.8 0 0 0-1.941.782L5.6 60.615V74.2a5.6 5.6 0 0 0 5.6 5.6h54.6a5.6 5.6 0 0 0 5.6-5.6V60.615l-8.35-8.033a2.8 2.8 0 0 0-1.942-.782z",
10908
+ fill: "#A6AAC3"
10859
10909
  }), /*#__PURE__*/React__namespace.createElement("path", {
10860
- d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7z",
10861
- fill: "#CDCDCD"
10910
+ d: "M51.686 19L63 30.314V66.2a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V25a6 6 0 0 1 6-6h31.686z",
10911
+ fill: "url(#empty-image_svg__a)"
10912
+ }), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
10913
+ fill: "#000",
10914
+ filter: "url(#empty-image_svg__b)",
10915
+ xlinkHref: "#empty-image_svg__c"
10862
10916
  }), /*#__PURE__*/React__namespace.createElement("path", {
10863
- d: "M2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525z",
10864
- fill: "#E5E5E5"
10917
+ stroke: "#FFF",
10918
+ d: "M42 36.5c.966 0 1.841.392 2.475 1.025A3.489 3.489 0 0 1 45.5 40h0v8c0 .966-.392 1.841-1.025 2.475A3.489 3.489 0 0 1 42 51.5h0-8a3.489 3.489 0 0 1-2.475-1.025A3.489 3.489 0 0 1 30.5 48h0v-8c0-.966.392-1.841 1.025-2.475A3.489 3.489 0 0 1 34 36.5h0z",
10919
+ strokeLinejoin: "square",
10920
+ fill: "url(#empty-image_svg__d)"
10921
+ })), /*#__PURE__*/React__namespace.createElement("g", {
10922
+ transform: "rotate(180 57.343 24.657)"
10923
+ }, /*#__PURE__*/React__namespace.createElement("use", {
10924
+ fill: "#000",
10925
+ filter: "url(#empty-image_svg__e)",
10926
+ xlinkHref: "#empty-image_svg__f"
10927
+ }), /*#__PURE__*/React__namespace.createElement("use", {
10928
+ fill: "url(#empty-image_svg__g)",
10929
+ xlinkHref: "#empty-image_svg__f"
10930
+ })), /*#__PURE__*/React__namespace.createElement("path", {
10931
+ d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7zM2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525z",
10932
+ fill: "#D6D8E4",
10933
+ opacity: 0.3
10865
10934
  }), /*#__PURE__*/React__namespace.createElement("path", {
10866
- d: "M17.998 60.7H6.1l.005 16.455c.038.573.287 1.089.669 1.471.389.39.919.632 1.64.674H37.8l30.955-.005a2.293 2.293 0 0 0 1.52-.72c.388-.411.625-.965.625-1.575V60.7l-13.505.009c-1.637.103-3.215 1.012-5.103 2.07-3.338 1.874-7.58 4.243-14.524 4.105l-.537-.015c-7.07-.261-11.352-2.607-14.53-4.352-1.837-1.009-3.277-1.834-4.703-1.817z",
10867
- stroke: "#D9D9D9",
10868
- fill: "#F7F5F5"
10935
+ d: "M8.4 79.8l-.17-.005A2.8 2.8 0 0 1 5.6 77V60.2h12.393l.175-.006c3.802-.04 7.95 5.943 19.61 6.19l.022-.002.022.002c10.856.218 15.009-5.902 19.558-6.175l.227-.009H71.4V77a2.8 2.8 0 0 1-2.63 2.795l-.17.005H8.4z",
10936
+ fill: "#D6D8E4"
10869
10937
  }), /*#__PURE__*/React__namespace.createElement("path", {
10870
10938
  d: "M21 3.356S24.518 2.509 25.516 0c1.438 2.057 2.18 2.947 3.884 3.338-2.321.692-3.33 1.468-4.123 3.662-.912-2.584-1.741-2.919-4.277-3.644",
10871
- fill: "#F5F5F5"
10939
+ fill: "#D6D8E4",
10940
+ opacity: 0.5
10872
10941
  }), /*#__PURE__*/React__namespace.createElement("path", {
10873
10942
  d: "M63 10.125S72.382 7.923 75.044 1.4c3.834 5.35 5.81 7.663 10.356 8.68-6.19 1.797-8.878 3.816-10.995 9.52-2.43-6.72-4.643-7.59-11.405-9.475",
10874
- fill: "#E5E5E5"
10943
+ fill: "#D6D8E4",
10944
+ opacity: 0.8
10875
10945
  }));
10876
10946
 
10877
- function SvgEmptyLightGreyImage(props) {
10947
+ function SvgEmptyImage(props) {
10878
10948
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
10879
10949
  width: 86,
10880
10950
  height: 80,
10881
10951
  viewBox: "0 0 86 80",
10882
- xmlns: "http://www.w3.org/2000/svg"
10883
- }, props), _ref);
10952
+ xmlns: "http://www.w3.org/2000/svg",
10953
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
10954
+ }, props), _ref, _ref2);
10884
10955
  }
10885
10956
 
10886
10957
  /**
10887
10958
  * 用于展示空数据的 React 组件。
10888
10959
  */
10889
10960
  function EasyopsEmpty(props) {
10890
- var _props$background;
10891
-
10892
- var background = (_props$background = props.background) !== null && _props$background !== void 0 ? _props$background : "white";
10893
- var emptyImage = background === "white" ? SvgEmptyGreyImage : SvgEmptyLightGreyImage;
10961
+ var emptyImage = SvgEmptyImage;
10894
10962
  var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
10895
10963
  var image = props.illustration ? illustration : /*#__PURE__*/React__default["default"].createElement(emptyImage);
10896
10964
  return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {