ebaoferc 1.0.5 → 1.0.6

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.
@@ -11,7 +11,7 @@ export declare const PaginationCommonProps: {
11
11
  showQuickJumper: boolean;
12
12
  showTotal: (total: number) => string;
13
13
  };
14
- export declare const TableCellText: (text: string | number, cellWidth: any, maxTooltipWidth: any, maxTooltipHeight: any) => "-" | import("react/jsx-runtime").JSX.Element;
14
+ export declare const TableCellText: (text: string | number, cellWidth: any, maxTooltipWidth: any, maxTooltipHeight: any) => import("react/jsx-runtime").JSX.Element | "-";
15
15
  export default function (props: StyledTableProps): import("react/jsx-runtime").JSX.Element;
16
16
  export declare const useRowSelection: () => {
17
17
  selectedRowKeys: any[];
@@ -1,4 +1,3 @@
1
1
  export * from './useBIHooks';
2
2
  export * from './useEnhancePagination';
3
- export * from './useTabRouteWatcher';
4
3
  export * from './useTabsTablePagination/index';
@@ -1,4 +1,3 @@
1
1
  export * from "./useBIHooks";
2
2
  export * from "./useEnhancePagination";
3
- export * from "./useTabRouteWatcher";
4
3
  export * from "./useTabsTablePagination/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebaoferc",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -46,8 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "d3": "^7.9.0",
49
- "dagre": "^0.8.5",
50
- "@umijs/max": "^4.3.6"
49
+ "dagre": "^0.8.5"
51
50
  },
52
51
  "devDependencies": {
53
52
  "@ant-design/icons": "^5.3.7",
@@ -1,5 +0,0 @@
1
- /**
2
- * 项目多tab模式,某个tab下,监听路由变化,当重新回到该tab时,执行回调
3
- * @param onRefresh 路由变化时执行的回调
4
- */
5
- export declare const useTabRouteWatcher: (onRefresh: () => void) => void;
@@ -1,26 +0,0 @@
1
- import { history } from '@umijs/max';
2
- import { useEffect, useRef } from 'react';
3
-
4
- /**
5
- * 项目多tab模式,某个tab下,监听路由变化,当重新回到该tab时,执行回调
6
- * @param onRefresh 路由变化时执行的回调
7
- */
8
- export var useTabRouteWatcher = function useTabRouteWatcher(onRefresh) {
9
- var pathname = useRef(window.location.pathname);
10
- useEffect(function () {
11
- var unlisten = history.listen(function (_ref) {
12
- var location = _ref.location;
13
- if (location.pathname === pathname.current) {
14
- try {
15
- onRefresh === null || onRefresh === void 0 || onRefresh();
16
- } catch (error) {
17
- console.error(error);
18
- }
19
- }
20
- });
21
- return function () {
22
- unlisten();
23
- };
24
- // eslint-disable-next-line react-hooks/exhaustive-deps
25
- }, []);
26
- };