ebaoferc 2.0.6 → 2.0.7

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.
@@ -10,7 +10,7 @@ export declare const PaginationCommonProps: {
10
10
  showQuickJumper: boolean;
11
11
  showTotal: (total: number) => string;
12
12
  };
13
- export declare const TableCellText: (text: string | number, maxTooltipWidth: any, maxTooltipHeight: any) => import("react/jsx-runtime").JSX.Element | "-";
13
+ export declare const TableCellText: (text: string | number, maxTooltipWidth: any, maxTooltipHeight: any) => "-" | import("react/jsx-runtime").JSX.Element;
14
14
  export default function (props: StyledTableProps): import("react/jsx-runtime").JSX.Element;
15
15
  export declare const useRowSelection: () => {
16
16
  selectedRowKeys: any[];
@@ -2,4 +2,4 @@ export type RefreshCallback = () => void | Promise<void>;
2
2
  /**
3
3
  * 当路由返回到当前 tab 时触发回调,用于刷新当前页数据。
4
4
  */
5
- export declare const useRefreshForTab: (fn?: RefreshCallback) => void;
5
+ export declare const useRefreshForTab: (history: any, fn?: RefreshCallback) => void;
@@ -1,9 +1,8 @@
1
- import { history } from '@umijs/max';
2
1
  import { useEffect, useRef } from 'react';
3
2
  /**
4
3
  * 当路由返回到当前 tab 时触发回调,用于刷新当前页数据。
5
4
  */
6
- export var useRefreshForTab = function useRefreshForTab(fn) {
5
+ export var useRefreshForTab = function useRefreshForTab(history, fn) {
7
6
  var pathname = useRef(window.location.pathname);
8
7
  useEffect(function () {
9
8
  var unlisten = history.listen(function (_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebaoferc",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "A react library developed with dumi",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -78,14 +78,13 @@
78
78
  "prettier": "^2.7.1",
79
79
  "prettier-plugin-organize-imports": "^3.0.0",
80
80
  "prettier-plugin-packagejson": "^2.2.18",
81
- "react": "^18.0.0",
82
- "react-dom": "^18.0.0",
81
+ "react": "^18.3.0",
82
+ "react-dom": "^18.3.0",
83
83
  "stylelint": "^14.9.1"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@ant-design/icons": "^5.3.7",
87
87
  "@ant-design/pro-components": "^2.7.1",
88
- "@umijs/max": "4.4.11",
89
88
  "ahooks": "^3.7.10",
90
89
  "antd": "^5.24.7",
91
90
  "classnames": "^2.5.1",