gxxc-ui 1.0.15 → 1.0.17
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/BackUI/index.d.ts +1 -1
- package/dist/BackUI/index.js +4 -3
- package/package.json +1 -1
package/dist/BackUI/index.d.ts
CHANGED
package/dist/BackUI/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["to", "before", "current", "className", "children"];
|
|
1
|
+
var _excluded = ["to", "before", "current", "className", "children", "backClick"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -13,6 +13,7 @@ var BackUI = function BackUI(props) {
|
|
|
13
13
|
current = props.current,
|
|
14
14
|
className = props.className,
|
|
15
15
|
children = props.children,
|
|
16
|
+
backClick = props.backClick,
|
|
16
17
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
17
18
|
var navigate = useNavigate();
|
|
18
19
|
var handleClick = function handleClick() {
|
|
@@ -23,8 +24,8 @@ var BackUI = function BackUI(props) {
|
|
|
23
24
|
}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
24
25
|
className: "sic-backui-button",
|
|
25
26
|
onClick: function onClick() {
|
|
26
|
-
if (
|
|
27
|
-
|
|
27
|
+
if (backClick) {
|
|
28
|
+
backClick(handleClick);
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
handleClick();
|