@next-core/brick-kit 2.95.1 → 2.96.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/assets/{empty-image.397ff6359f4066d8.png → big-empty-image.397ff6359f4066d8.png} +0 -0
- package/dist/assets/empty-image.8e18d87fea570ef0.png +0 -0
- package/dist/index.bundle.js +13 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +13 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts +1 -0
- 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.96.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.95.1...@next-core/brick-kit@2.96.0) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* some adjustment for EasyopsEmpty's empty image ([cc5af32](https://github.com/easyops-cn/next-core/commit/cc5af32a93d7497ff236c2189e730a3f771d3866)), closes [Refs#MONITOR-2681](https://github.com/Refs/issues/MONITOR-2681)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.95.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.95.0...@next-core/brick-kit@2.95.1) (2021-12-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/brick-kit
|
package/dist/assets/{empty-image.397ff6359f4066d8.png → big-empty-image.397ff6359f4066d8.png}
RENAMED
|
File without changes
|
|
Binary file
|
package/dist/index.bundle.js
CHANGED
|
@@ -10862,17 +10862,27 @@
|
|
|
10862
10862
|
};
|
|
10863
10863
|
var defaultLocale = localeValues;
|
|
10864
10864
|
|
|
10865
|
-
var emptyImage = "empty-image.
|
|
10865
|
+
var emptyImage = "empty-image.8e18d87fea570ef0.png";
|
|
10866
|
+
|
|
10867
|
+
var bigEmptyImage = "big-empty-image.397ff6359f4066d8.png";
|
|
10866
10868
|
|
|
10867
10869
|
/**
|
|
10868
10870
|
* 用于展示空数据的 React 组件。
|
|
10869
10871
|
*/
|
|
10870
10872
|
function EasyopsEmpty(props) {
|
|
10873
|
+
var _props$imageStyle;
|
|
10874
|
+
|
|
10871
10875
|
var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
|
|
10872
|
-
|
|
10876
|
+
|
|
10877
|
+
var _emptyImage = props.useBigEmptyImage ? bigEmptyImage : emptyImage;
|
|
10878
|
+
|
|
10879
|
+
var image = props.illustration ? illustration : getImageUrl(_emptyImage);
|
|
10880
|
+
var imageStyle = (_props$imageStyle = props.imageStyle) !== null && _props$imageStyle !== void 0 ? _props$imageStyle : props.useBigEmptyImage ? undefined : {
|
|
10881
|
+
height: "60px"
|
|
10882
|
+
};
|
|
10873
10883
|
return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
|
|
10874
10884
|
image: image,
|
|
10875
|
-
imageStyle:
|
|
10885
|
+
imageStyle: imageStyle,
|
|
10876
10886
|
description: props.description
|
|
10877
10887
|
});
|
|
10878
10888
|
}
|