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.
@@ -9,7 +9,7 @@ interface IProps {
9
9
  style?: {
10
10
  [key: string]: string | number;
11
11
  };
12
- backclick?: (e: any) => void;
12
+ backClick?: any;
13
13
  }
14
14
  declare const BackUI: (props: IProps & Record<string, any>) => React.JSX.Element;
15
15
  export default BackUI;
@@ -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 (props.backclick) {
27
- props.backclick(handleClick);
27
+ if (backClick) {
28
+ backClick(handleClick);
28
29
  return;
29
30
  }
30
31
  handleClick();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxxc-ui",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",