@next-core/brick-kit 2.92.0 → 2.92.1
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/{EasyopsEmpty → assets}/empty-image.397ff6359f4066d8.png +0 -0
- package/dist/index.bundle.js +9 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +9 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/package.json +2 -2
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.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
|
|
7
18
|
|
|
8
19
|
|
|
File without changes
|
package/dist/index.bundle.js
CHANGED
|
@@ -10796,24 +10796,31 @@
|
|
|
10796
10796
|
};
|
|
10797
10797
|
var defaultLocale = localeValues;
|
|
10798
10798
|
|
|
10799
|
-
var emptyImage = "
|
|
10799
|
+
var emptyImage = "empty-image.397ff6359f4066d8.png";
|
|
10800
10800
|
|
|
10801
10801
|
/**
|
|
10802
10802
|
* 用于展示空数据的 React 组件。
|
|
10803
10803
|
*/
|
|
10804
10804
|
function EasyopsEmpty(props) {
|
|
10805
10805
|
var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
|
|
10806
|
-
var image = props.illustration ? illustration : emptyImage;
|
|
10806
|
+
var image = props.illustration ? illustration : getImageUrl(emptyImage);
|
|
10807
10807
|
return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
|
|
10808
10808
|
image: image,
|
|
10809
10809
|
imageStyle: props.imageStyle,
|
|
10810
10810
|
description: props.description
|
|
10811
10811
|
});
|
|
10812
10812
|
}
|
|
10813
|
+
|
|
10814
|
+
function getImageUrl(url) {
|
|
10815
|
+
var _window$CORE_ROOT;
|
|
10816
|
+
|
|
10817
|
+
return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
|
|
10818
|
+
}
|
|
10813
10819
|
/**
|
|
10814
10820
|
* 调用后获得一个默认的展示空数据的 React 组件。
|
|
10815
10821
|
*/
|
|
10816
10822
|
|
|
10823
|
+
|
|
10817
10824
|
function renderEasyopsEmpty() {
|
|
10818
10825
|
return /*#__PURE__*/React__default["default"].createElement(EasyopsEmpty, null);
|
|
10819
10826
|
}
|