Skip to content

Commit 6345658

Browse files
committed
chore:修改router版本
1 parent 0977bc0 commit 6345658

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

examples/base/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"react-dom": "~17.0.2",
3535
"react-redux": "~7.2.6",
3636
"react-router-dom": "^6.2.1",
37+
"react-router": "^6.2.1",
3738
"swr": "^1.3.0",
3839
"uiw": "^4.21.13"
3940
},

examples/website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"@uiw/reset.css": "1.0.5",
3838
"react": "~17.0.2",
3939
"react-dom": "~17.0.2",
40-
"react-router-dom": "6.2.1",
40+
"react-router-dom": "^6.2.1",
41+
"react-router": "^6.2.1",
4142
"react-test-renderer": "17.0.2",
4243
"uiw": "^4.21.13",
4344
"uiw-admin": "5.3.19"

packages/authorized/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@types/react-dom": "~17.0.11",
5454
"react": "~17.0.2",
5555
"react-dom": "~17.0.2",
56-
"react-router-dom": "^6.2.1"
56+
"react-router-dom": "^6.2.1",
57+
"react-router": "^6.2.1"
5758
}
5859
}

packages/basic-layouts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"react": "~17.0.2",
5858
"react-dom": "~17.0.2",
5959
"react-router-dom": "^6.2.1",
60+
"react-router": "^6.2.1",
6061
"uiw": "^4.15.0"
6162
}
6263
}

packages/basic-layouts/src/index.tsx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,12 @@ import Layout from '@uiw/react-layout';
33
import Button from '@uiw/react-button';
44
import classnames from 'classnames';
55
import DocumentTitle from '@uiw-admin/document-title';
6-
import {
7-
RoutersProps,
8-
useLocation,
9-
useNavigate,
10-
Navigate,
11-
} from '@uiw-admin/router-control';
6+
import { RoutersProps } from '@uiw-admin/router-control';
127
import LogoHeader from './LogoHeader';
13-
import Menu, { onNavigate } from './Menu';
8+
import Menu from './Menu';
149
import Bread from './Breadcrumb';
1510
import './index.css';
16-
import {
17-
getMenu,
18-
BreadcrumbMap,
19-
getSideMenusMap,
20-
getMenuList,
21-
getCurrentPath,
22-
getDiffIndex,
23-
} from './utils';
11+
import { getMenu, BreadcrumbMap } from './utils';
2412
import BodyContent, { WarpBody } from './Content';
2513
import HeaderRightMenu, { HeaderRightProps } from './HeaderRightMenu';
2614
import FullScreen from './FullScreen';

packages/components/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"react": "~17.0.2",
5959
"react-dom": "~17.0.2",
6060
"react-router-dom": "^6.2.1",
61+
"react-router": "^6.2.1",
6162
"uiw": "^4.15.0"
6263
}
6364
}

packages/exceptions/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"react": "~17.0.2",
5353
"react-dom": "~17.0.2",
5454
"react-router-dom": "^6.2.1",
55+
"react-router": "^6.2.1",
5556
"uiw": "^4.15.0"
5657
}
5758
}

packages/layout-tabs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"react": "~17.0.2",
5656
"react-dom": "~17.0.2",
5757
"react-router-dom": "^6.2.1",
58+
"react-router": "^6.2.1",
5859
"uiw": "^4.15.0"
5960
}
6061
}

packages/layout-tabs/src/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import React from 'react';
22
import { Tabs, Icon } from 'uiw';
3-
import { RoutersProps } from '@uiw-admin/router-control';
3+
import {
4+
RoutersProps,
5+
useNavigate,
6+
useLocation,
7+
Location,
8+
} from '@uiw-admin/router-control';
49
import { getRoutesList, getMatch, getMatchRender } from './utils';
510
import { matchPath } from 'react-router';
611
import './styles/index.css';
7-
import { useNavigate, useLocation, Location } from 'react-router-dom';
812

913
export interface LayoutTabsProps {
1014
/** 子集路由 */

packages/router-control/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"react": "~17.0.2",
5454
"react-dom": "~17.0.2",
5555
"react-redux": "^7.2.6",
56-
"react-router-dom": "^6.2.1"
56+
"react-router-dom": "^6.2.1",
57+
"react-router": "^6.2.1"
5758
}
5859
}

0 commit comments

Comments
 (0)