@cloudtower/eagle 0.27.3-gobackbutton → 0.27.3-gobackbutton2
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/dist/components.css +444 -434
- package/dist/esm/index.js +37 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +1 -0
- package/dist/style.css +484 -474
- package/dist/umd/index.js +36 -0
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -5
package/dist/umd/index.js
CHANGED
|
@@ -6918,6 +6918,41 @@
|
|
|
6918
6918
|
}, Text);
|
|
6919
6919
|
};
|
|
6920
6920
|
|
|
6921
|
+
const GobackButtonStyle = "gmyahx3";
|
|
6922
|
+
const GobackButton = props => {
|
|
6923
|
+
const {
|
|
6924
|
+
onClick,
|
|
6925
|
+
path,
|
|
6926
|
+
index,
|
|
6927
|
+
title,
|
|
6928
|
+
history
|
|
6929
|
+
} = props;
|
|
6930
|
+
const goto = () => {
|
|
6931
|
+
if (path) {
|
|
6932
|
+
history.push(path);
|
|
6933
|
+
return;
|
|
6934
|
+
}
|
|
6935
|
+
if (index) {
|
|
6936
|
+
history.go(index);
|
|
6937
|
+
return;
|
|
6938
|
+
}
|
|
6939
|
+
if (onClick) {
|
|
6940
|
+
onClick == null ? void 0 : onClick();
|
|
6941
|
+
return;
|
|
6942
|
+
}
|
|
6943
|
+
history.goBack();
|
|
6944
|
+
};
|
|
6945
|
+
return /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
6946
|
+
className: core.cx(GobackButtonStyle)
|
|
6947
|
+
}, /* @__PURE__ */React__namespace.default.createElement(Icon, {
|
|
6948
|
+
src: iconsReact.ArrowChevronLeft16BoldTertiaryIcon,
|
|
6949
|
+
hoverSrc: iconsReact.ArrowChevronLeft16BoldBlueIcon,
|
|
6950
|
+
onClick: goto
|
|
6951
|
+
}, /* @__PURE__ */React__namespace.default.createElement("span", {
|
|
6952
|
+
className: core.cx(Typo.Label.l4_bold, "link-text")
|
|
6953
|
+
}, title)));
|
|
6954
|
+
};
|
|
6955
|
+
|
|
6921
6956
|
function getAntdKit() {
|
|
6922
6957
|
const kit = {
|
|
6923
6958
|
loading: Loading,
|
|
@@ -7012,6 +7047,7 @@
|
|
|
7012
7047
|
card: Card,
|
|
7013
7048
|
overflowTooltip: OverflowTooltip,
|
|
7014
7049
|
I18nNameTag,
|
|
7050
|
+
GoBackButton: GobackButton,
|
|
7015
7051
|
SwitchWithText,
|
|
7016
7052
|
CronPlan,
|
|
7017
7053
|
NamesTooltip,
|