@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 +11 -0
- package/dist/index.bundle.js +184 -116
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +186 -118
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/internal/checkPermissions.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -16,7 +16,7 @@ import yaml from 'js-yaml';
|
|
|
16
16
|
import { Modal, message, Empty, ConfigProvider } from 'antd';
|
|
17
17
|
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
18
18
|
import { withTranslation } from 'react-i18next';
|
|
19
|
-
import _extends$
|
|
19
|
+
import _extends$1 from '@babel/runtime/helpers/esm/extends';
|
|
20
20
|
import { getIllustration } from '@next-core/illustrations';
|
|
21
21
|
import _decorate from '@babel/runtime/helpers/decorate';
|
|
22
22
|
|
|
@@ -1243,6 +1243,54 @@ var PermissionApi_validatePermissions = /*#__PURE__*/function () {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
}();
|
|
1245
1245
|
|
|
1246
|
+
var auth = {};
|
|
1247
|
+
/** @internal */
|
|
1248
|
+
|
|
1249
|
+
function authenticate(newAuth) {
|
|
1250
|
+
Object.assign(auth, {
|
|
1251
|
+
org: newAuth.org,
|
|
1252
|
+
username: newAuth.username,
|
|
1253
|
+
userInstanceId: newAuth.userInstanceId,
|
|
1254
|
+
loginFrom: newAuth.loginFrom,
|
|
1255
|
+
accessRule: newAuth.accessRule,
|
|
1256
|
+
isAdmin: newAuth.isAdmin
|
|
1257
|
+
}); // re-init analytics to set user_id
|
|
1258
|
+
|
|
1259
|
+
if (userAnalytics.initialized) {
|
|
1260
|
+
userAnalytics.setUserId(newAuth.userInstanceId);
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* 获取当前登录认证信息。
|
|
1265
|
+
*
|
|
1266
|
+
* @returns 当前登录认证信息。
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1269
|
+
function getAuth() {
|
|
1270
|
+
return _objectSpread({}, auth);
|
|
1271
|
+
}
|
|
1272
|
+
/** @internal */
|
|
1273
|
+
|
|
1274
|
+
function logout() {
|
|
1275
|
+
auth.org = undefined;
|
|
1276
|
+
auth.username = undefined;
|
|
1277
|
+
auth.userInstanceId = undefined;
|
|
1278
|
+
auth.accessRule = undefined;
|
|
1279
|
+
auth.isAdmin = undefined;
|
|
1280
|
+
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
1281
|
+
|
|
1282
|
+
userAnalytics.setUserId();
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* 查看当前是否已登录。
|
|
1286
|
+
*
|
|
1287
|
+
* @returns 当前是否已登录。
|
|
1288
|
+
*/
|
|
1289
|
+
|
|
1290
|
+
function isLoggedIn() {
|
|
1291
|
+
return auth.username !== undefined;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1246
1294
|
var permissionMap = new Map();
|
|
1247
1295
|
function preCheckPermissions(_x) {
|
|
1248
1296
|
return _preCheckPermissions.apply(this, arguments);
|
|
@@ -1299,6 +1347,10 @@ function _validatePermissions() {
|
|
|
1299
1347
|
}
|
|
1300
1348
|
|
|
1301
1349
|
function checkPermissions() {
|
|
1350
|
+
if (getAuth().isAdmin) {
|
|
1351
|
+
return true;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1302
1354
|
for (var _len = arguments.length, actions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1303
1355
|
actions[_key] = arguments[_key];
|
|
1304
1356
|
}
|
|
@@ -5875,52 +5927,6 @@ var UserAdminApi_searchAllUsersInfo = /*#__PURE__*/function () {
|
|
|
5875
5927
|
};
|
|
5876
5928
|
}();
|
|
5877
5929
|
|
|
5878
|
-
var auth = {};
|
|
5879
|
-
/** @internal */
|
|
5880
|
-
|
|
5881
|
-
function authenticate(newAuth) {
|
|
5882
|
-
Object.assign(auth, {
|
|
5883
|
-
org: newAuth.org,
|
|
5884
|
-
username: newAuth.username,
|
|
5885
|
-
userInstanceId: newAuth.userInstanceId,
|
|
5886
|
-
loginFrom: newAuth.loginFrom,
|
|
5887
|
-
accessRule: newAuth.accessRule
|
|
5888
|
-
}); // re-init analytics to set user_id
|
|
5889
|
-
|
|
5890
|
-
if (userAnalytics.initialized) {
|
|
5891
|
-
userAnalytics.setUserId(newAuth.userInstanceId);
|
|
5892
|
-
}
|
|
5893
|
-
}
|
|
5894
|
-
/**
|
|
5895
|
-
* 获取当前登录认证信息。
|
|
5896
|
-
*
|
|
5897
|
-
* @returns 当前登录认证信息。
|
|
5898
|
-
*/
|
|
5899
|
-
|
|
5900
|
-
function getAuth() {
|
|
5901
|
-
return _objectSpread({}, auth);
|
|
5902
|
-
}
|
|
5903
|
-
/** @internal */
|
|
5904
|
-
|
|
5905
|
-
function logout() {
|
|
5906
|
-
auth.org = undefined;
|
|
5907
|
-
auth.username = undefined;
|
|
5908
|
-
auth.userInstanceId = undefined;
|
|
5909
|
-
auth.accessRule = undefined;
|
|
5910
|
-
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
5911
|
-
|
|
5912
|
-
userAnalytics.setUserId();
|
|
5913
|
-
}
|
|
5914
|
-
/**
|
|
5915
|
-
* 查看当前是否已登录。
|
|
5916
|
-
*
|
|
5917
|
-
* @returns 当前是否已登录。
|
|
5918
|
-
*/
|
|
5919
|
-
|
|
5920
|
-
function isLoggedIn() {
|
|
5921
|
-
return auth.username !== undefined;
|
|
5922
|
-
}
|
|
5923
|
-
|
|
5924
5930
|
/**
|
|
5925
5931
|
* Merge `app.defaultConfig` and `app.userConfig` to `app.config`.
|
|
5926
5932
|
*
|
|
@@ -7890,7 +7896,8 @@ class LocationContext {
|
|
|
7890
7896
|
username: auth.username,
|
|
7891
7897
|
userInstanceId: auth.userInstanceId,
|
|
7892
7898
|
loginFrom: auth.loginFrom,
|
|
7893
|
-
accessRule: auth.accessRule
|
|
7899
|
+
accessRule: auth.accessRule,
|
|
7900
|
+
isAdmin: auth.isAdmin
|
|
7894
7901
|
}, getRuntimeMisc()),
|
|
7895
7902
|
flags: this.kernel.getFeatureFlags(),
|
|
7896
7903
|
segues: this.segues,
|
|
@@ -8300,7 +8307,7 @@ class LocationContext {
|
|
|
8300
8307
|
|
|
8301
8308
|
preCheckPermissions(container, context) {
|
|
8302
8309
|
return _asyncToGenerator$4(function* () {
|
|
8303
|
-
if (isLoggedIn() && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8310
|
+
if (isLoggedIn() && !getAuth().isAdmin && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8304
8311
|
var usedActions = computeRealValue(container.permissionsPreCheck, context, true);
|
|
8305
8312
|
yield validatePermissions(usedActions);
|
|
8306
8313
|
}
|
|
@@ -9284,7 +9291,7 @@ class Router {
|
|
|
9284
9291
|
|
|
9285
9292
|
restoreDynamicTemplates(storyboard); // 预加载权限信息
|
|
9286
9293
|
|
|
9287
|
-
if (isLoggedIn()) {
|
|
9294
|
+
if (isLoggedIn() && !getAuth().isAdmin) {
|
|
9288
9295
|
yield preCheckPermissions(storyboard);
|
|
9289
9296
|
} // 如果找到匹配的 storyboard,那么根据路由匹配得到的 sub-storyboard 加载它的依赖库。
|
|
9290
9297
|
|
|
@@ -10447,7 +10454,7 @@ var locale$4 = {
|
|
|
10447
10454
|
var TimePicker$1 = locale$4;
|
|
10448
10455
|
|
|
10449
10456
|
var locale$3 = {
|
|
10450
|
-
lang: _extends$
|
|
10457
|
+
lang: _extends$1({
|
|
10451
10458
|
placeholder: '请选择日期',
|
|
10452
10459
|
yearPlaceholder: '请选择年份',
|
|
10453
10460
|
quarterPlaceholder: '请选择季度',
|
|
@@ -10458,7 +10465,7 @@ var locale$3 = {
|
|
|
10458
10465
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
10459
10466
|
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
10460
10467
|
}, locale$5),
|
|
10461
|
-
timePickerLocale: _extends$
|
|
10468
|
+
timePickerLocale: _extends$1({}, TimePicker$1)
|
|
10462
10469
|
}; // should add whitespace between char in Button
|
|
10463
10470
|
|
|
10464
10471
|
locale$3.lang.ok = '确 定'; // All settings at:
|
|
@@ -10644,7 +10651,7 @@ var locale$1 = {
|
|
|
10644
10651
|
var TimePicker = locale$1;
|
|
10645
10652
|
|
|
10646
10653
|
var locale = {
|
|
10647
|
-
lang: _extends$
|
|
10654
|
+
lang: _extends$1({
|
|
10648
10655
|
placeholder: 'Select date',
|
|
10649
10656
|
yearPlaceholder: 'Select year',
|
|
10650
10657
|
quarterPlaceholder: 'Select quarter',
|
|
@@ -10655,7 +10662,7 @@ var locale = {
|
|
|
10655
10662
|
rangeMonthPlaceholder: ['Start month', 'End month'],
|
|
10656
10663
|
rangeWeekPlaceholder: ['Start week', 'End week']
|
|
10657
10664
|
}, locale$2),
|
|
10658
|
-
timePickerLocale: _extends$
|
|
10665
|
+
timePickerLocale: _extends$1({}, TimePicker)
|
|
10659
10666
|
}; // All settings at:
|
|
10660
10667
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
10661
10668
|
|
|
@@ -10788,92 +10795,153 @@ var localeValues = {
|
|
|
10788
10795
|
};
|
|
10789
10796
|
var defaultLocale = localeValues;
|
|
10790
10797
|
|
|
10791
|
-
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); }
|
|
10792
|
-
|
|
10793
|
-
var _ref$1 = /*#__PURE__*/React.createElement("g", {
|
|
10794
|
-
fill: "none"
|
|
10795
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
10796
|
-
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",
|
|
10797
|
-
fill: "#C4C4C4"
|
|
10798
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10799
|
-
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",
|
|
10800
|
-
fill: "#F7F7F7"
|
|
10801
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10802
|
-
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",
|
|
10803
|
-
fill: "#E5E5E5"
|
|
10804
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10805
|
-
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",
|
|
10806
|
-
fill: "#CDCDCD"
|
|
10807
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10808
|
-
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",
|
|
10809
|
-
fill: "#E5E5E5"
|
|
10810
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10811
|
-
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",
|
|
10812
|
-
fill: "#F5F5F5"
|
|
10813
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10814
|
-
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",
|
|
10815
|
-
fill: "#E5E5E5"
|
|
10816
|
-
}));
|
|
10817
|
-
|
|
10818
|
-
function SvgEmptyGreyImage(props) {
|
|
10819
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
10820
|
-
width: 86,
|
|
10821
|
-
height: 80,
|
|
10822
|
-
viewBox: "0 0 86 80",
|
|
10823
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10824
|
-
}, props), _ref$1);
|
|
10825
|
-
}
|
|
10826
|
-
|
|
10827
10798
|
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); }
|
|
10828
10799
|
|
|
10829
|
-
var _ref = /*#__PURE__*/React.createElement("
|
|
10830
|
-
|
|
10800
|
+
var _ref = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
10801
|
+
x1: "5.718%",
|
|
10802
|
+
y1: "4.311%",
|
|
10803
|
+
x2: "83.05%",
|
|
10804
|
+
y2: "88.915%",
|
|
10805
|
+
id: "empty-image_svg__a"
|
|
10806
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10807
|
+
stopColor: "#D4D8E4",
|
|
10808
|
+
offset: "0%"
|
|
10809
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10810
|
+
stopColor: "#A9B0C4",
|
|
10811
|
+
offset: "100%"
|
|
10812
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10813
|
+
x1: "0%",
|
|
10814
|
+
y1: "11.08%",
|
|
10815
|
+
x2: "80.548%",
|
|
10816
|
+
y2: "107.704%",
|
|
10817
|
+
id: "empty-image_svg__d"
|
|
10818
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10819
|
+
stopColor: "#C2C7DA",
|
|
10820
|
+
offset: "0%"
|
|
10821
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10822
|
+
stopColor: "#8F96B3",
|
|
10823
|
+
offset: "100%"
|
|
10824
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10825
|
+
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",
|
|
10826
|
+
id: "empty-image_svg__c"
|
|
10827
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10828
|
+
x: "-37.5%",
|
|
10829
|
+
y: "-31.3%",
|
|
10830
|
+
width: "187.5%",
|
|
10831
|
+
height: "187.5%",
|
|
10832
|
+
filterUnits: "objectBoundingBox",
|
|
10833
|
+
id: "empty-image_svg__b"
|
|
10834
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10835
|
+
dx: 1,
|
|
10836
|
+
dy: 2,
|
|
10837
|
+
in: "SourceAlpha",
|
|
10838
|
+
result: "shadowOffsetOuter1"
|
|
10839
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10840
|
+
stdDeviation: 2,
|
|
10841
|
+
in: "shadowOffsetOuter1",
|
|
10842
|
+
result: "shadowBlurOuter1"
|
|
10843
|
+
}), /*#__PURE__*/React.createElement("feComposite", {
|
|
10844
|
+
in: "shadowBlurOuter1",
|
|
10845
|
+
in2: "SourceAlpha",
|
|
10846
|
+
operator: "out",
|
|
10847
|
+
result: "shadowBlurOuter1"
|
|
10848
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10849
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
10850
|
+
in: "shadowBlurOuter1"
|
|
10851
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10852
|
+
x1: "41.823%",
|
|
10853
|
+
y1: "24.795%",
|
|
10854
|
+
x2: "8.813%",
|
|
10855
|
+
y2: "86.427%",
|
|
10856
|
+
id: "empty-image_svg__g"
|
|
10857
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10858
|
+
stopColor: "#CCD0DD",
|
|
10859
|
+
offset: "0%"
|
|
10860
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10861
|
+
stopColor: "#9DA3B9",
|
|
10862
|
+
offset: "100%"
|
|
10863
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10864
|
+
d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
|
|
10865
|
+
id: "empty-image_svg__f"
|
|
10866
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10867
|
+
x: "-61.9%",
|
|
10868
|
+
y: "-79.5%",
|
|
10869
|
+
width: "223.7%",
|
|
10870
|
+
height: "223.7%",
|
|
10871
|
+
filterUnits: "objectBoundingBox",
|
|
10872
|
+
id: "empty-image_svg__e"
|
|
10873
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10874
|
+
dy: -2,
|
|
10875
|
+
in: "SourceAlpha",
|
|
10876
|
+
result: "shadowOffsetOuter1"
|
|
10877
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10878
|
+
stdDeviation: 2,
|
|
10879
|
+
in: "shadowOffsetOuter1",
|
|
10880
|
+
result: "shadowBlurOuter1"
|
|
10881
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10882
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
10883
|
+
in: "shadowBlurOuter1"
|
|
10884
|
+
})));
|
|
10885
|
+
|
|
10886
|
+
var _ref2 = /*#__PURE__*/React.createElement("g", {
|
|
10887
|
+
fill: "none",
|
|
10888
|
+
fillRule: "evenodd"
|
|
10831
10889
|
}, /*#__PURE__*/React.createElement("path", {
|
|
10832
|
-
d: "
|
|
10833
|
-
|
|
10834
|
-
fill: "#FDFDFD"
|
|
10835
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10836
|
-
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",
|
|
10837
|
-
stroke: "#EEE",
|
|
10838
|
-
fill: "#F7F7F7"
|
|
10839
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10840
|
-
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",
|
|
10841
|
-
fill: "#E5E5E5"
|
|
10890
|
+
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",
|
|
10891
|
+
fill: "#A6AAC3"
|
|
10842
10892
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10843
|
-
d: "
|
|
10844
|
-
fill: "#
|
|
10893
|
+
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",
|
|
10894
|
+
fill: "url(#empty-image_svg__a)"
|
|
10895
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("use", {
|
|
10896
|
+
fill: "#000",
|
|
10897
|
+
filter: "url(#empty-image_svg__b)",
|
|
10898
|
+
xlinkHref: "#empty-image_svg__c"
|
|
10845
10899
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10846
|
-
|
|
10847
|
-
|
|
10900
|
+
stroke: "#FFF",
|
|
10901
|
+
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",
|
|
10902
|
+
strokeLinejoin: "square",
|
|
10903
|
+
fill: "url(#empty-image_svg__d)"
|
|
10904
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
10905
|
+
transform: "rotate(180 57.343 24.657)"
|
|
10906
|
+
}, /*#__PURE__*/React.createElement("use", {
|
|
10907
|
+
fill: "#000",
|
|
10908
|
+
filter: "url(#empty-image_svg__e)",
|
|
10909
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10910
|
+
}), /*#__PURE__*/React.createElement("use", {
|
|
10911
|
+
fill: "url(#empty-image_svg__g)",
|
|
10912
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10913
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10914
|
+
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",
|
|
10915
|
+
fill: "#D6D8E4",
|
|
10916
|
+
opacity: 0.3
|
|
10848
10917
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10849
|
-
d: "
|
|
10850
|
-
|
|
10851
|
-
fill: "#F7F5F5"
|
|
10918
|
+
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",
|
|
10919
|
+
fill: "#D6D8E4"
|
|
10852
10920
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10853
10921
|
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",
|
|
10854
|
-
fill: "#
|
|
10922
|
+
fill: "#D6D8E4",
|
|
10923
|
+
opacity: 0.5
|
|
10855
10924
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10856
10925
|
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",
|
|
10857
|
-
fill: "#
|
|
10926
|
+
fill: "#D6D8E4",
|
|
10927
|
+
opacity: 0.8
|
|
10858
10928
|
}));
|
|
10859
10929
|
|
|
10860
|
-
function
|
|
10930
|
+
function SvgEmptyImage(props) {
|
|
10861
10931
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10862
10932
|
width: 86,
|
|
10863
10933
|
height: 80,
|
|
10864
10934
|
viewBox: "0 0 86 80",
|
|
10865
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10866
|
-
|
|
10935
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10936
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
10937
|
+
}, props), _ref, _ref2);
|
|
10867
10938
|
}
|
|
10868
10939
|
|
|
10869
10940
|
/**
|
|
10870
10941
|
* 用于展示空数据的 React 组件。
|
|
10871
10942
|
*/
|
|
10872
10943
|
function EasyopsEmpty(props) {
|
|
10873
|
-
var
|
|
10874
|
-
|
|
10875
|
-
var background = (_props$background = props.background) !== null && _props$background !== void 0 ? _props$background : "white";
|
|
10876
|
-
var emptyImage = background === "white" ? SvgEmptyGreyImage : SvgEmptyLightGreyImage;
|
|
10944
|
+
var emptyImage = SvgEmptyImage;
|
|
10877
10945
|
var illustration = useMemo(() => props.illustration && getIllustration(props.illustration), [props.illustration]);
|
|
10878
10946
|
var image = props.illustration ? illustration : /*#__PURE__*/React__default.createElement(emptyImage);
|
|
10879
10947
|
return /*#__PURE__*/React__default.createElement(Empty, {
|