File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ function BasicLayoutScreen(props: KktproPageProps) {
32
32
menus : [
33
33
{
34
34
title : '欢迎来到uiw' ,
35
- icon : ' smile' ,
35
+ icon : < Icon type = " smile" /> ,
36
36
onClick : ( ) => layouts . closeMenu ( ) ,
37
37
} ,
38
38
{
39
39
title : '修改密码' ,
40
- icon : ' setting' ,
40
+ icon : < Icon type = " setting" /> ,
41
41
onClick : ( ) => layouts . closeMenu ( ) ,
42
42
} ,
43
43
] ,
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export default function Demo() {
28
28
const handleSearch = ( val : string ) => {
29
29
setVal ( val )
30
30
}
31
- // console.log(table)
32
31
return (
33
32
< ProTable
34
33
// 操作栏按钮
Original file line number Diff line number Diff line change 1
1
import React , { useMemo } from 'react' ;
2
- import { Menu , Avatar , Popover } from 'uiw' ;
2
+ import { Menu , Avatar , Popover , Icon } from 'uiw' ;
3
3
import { useNavigate , NavigateFunction } from 'react-router-dom' ;
4
4
import { UseLayoutsProps } from '../useLayouts' ;
5
5
import './index.css' ;
@@ -63,7 +63,7 @@ export default function HeaderRightMenu({
63
63
账号 { profile ?. userName || 'admin' }
64
64
</ span >
65
65
) ,
66
- icon : ' user' ,
66
+ icon : < Icon type = " user" /> ,
67
67
} ,
68
68
{
69
69
divider : true ,
@@ -73,13 +73,13 @@ export default function HeaderRightMenu({
73
73
...menus ,
74
74
{
75
75
title : '刷新权限' ,
76
- icon : ' reload' ,
76
+ icon : < Icon type = " reload" /> ,
77
77
onClick : ( ) => onReloadAuth ( ) ,
78
78
style : { display : hideReloadButton ? 'none' : '' } ,
79
79
} ,
80
80
{
81
81
title : '退出登录' ,
82
- icon : ' logout' ,
82
+ icon : < Icon type = " logout" /> ,
83
83
style : { display : hideLogoutButton ? 'none' : '' } ,
84
84
onClick : ( ) => {
85
85
if ( onLogout ) {
You can’t perform that action at this time.
0 commit comments