@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/dist/index.esm.js
CHANGED
|
@@ -10797,24 +10797,31 @@ var localeValues = {
|
|
|
10797
10797
|
};
|
|
10798
10798
|
var defaultLocale = localeValues;
|
|
10799
10799
|
|
|
10800
|
-
var emptyImage = "
|
|
10800
|
+
var emptyImage = "empty-image.397ff6359f4066d8.png";
|
|
10801
10801
|
|
|
10802
10802
|
/**
|
|
10803
10803
|
* 用于展示空数据的 React 组件。
|
|
10804
10804
|
*/
|
|
10805
10805
|
function EasyopsEmpty(props) {
|
|
10806
10806
|
var illustration = useMemo(() => props.illustration && getIllustration(props.illustration), [props.illustration]);
|
|
10807
|
-
var image = props.illustration ? illustration : emptyImage;
|
|
10807
|
+
var image = props.illustration ? illustration : getImageUrl(emptyImage);
|
|
10808
10808
|
return /*#__PURE__*/React.createElement(Empty, {
|
|
10809
10809
|
image: image,
|
|
10810
10810
|
imageStyle: props.imageStyle,
|
|
10811
10811
|
description: props.description
|
|
10812
10812
|
});
|
|
10813
10813
|
}
|
|
10814
|
+
|
|
10815
|
+
function getImageUrl(url) {
|
|
10816
|
+
var _window$CORE_ROOT;
|
|
10817
|
+
|
|
10818
|
+
return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
|
|
10819
|
+
}
|
|
10814
10820
|
/**
|
|
10815
10821
|
* 调用后获得一个默认的展示空数据的 React 组件。
|
|
10816
10822
|
*/
|
|
10817
10823
|
|
|
10824
|
+
|
|
10818
10825
|
function renderEasyopsEmpty() {
|
|
10819
10826
|
return /*#__PURE__*/React.createElement(EasyopsEmpty, null);
|
|
10820
10827
|
}
|