溪客(编程代码) 溪客(编程代码)

  • 今天是2025年05月10日 Saturday
  • 首页
  • 知识
  • 网址
  • AI助手

React

首页 / 知识 / React
  • 基础
    • style&class
    • 部署
    • 部署到非根目录
    • 一些实践建议
    • 错误处理
    • Maximum call stack size exceeded
    • 输出html
  • umi
    • 自动维护token、refresh token
    • 异常
    • qiankun
    • Pro菜单图标
    • Module '"umi"' has no exported member 'xx'
  • 认知
    • 浅比较与深比较
  • 环境
    • HTTPS
    • 端口
  • hooks
    • useCallback
    • useContext
    • useEffect
    • useImperativeHandle
    • useLayoutEffect
    • useMemo
    • useReducer
    • useRef
    • useState
    • 自定义hook
  • ant.design
    • Modal
    • Table
  • ant.design pro
    • 国际化&本地化
    • 水印
    • 自定义菜单
    • 隐藏菜单and头部等
    • 实现多标签栏
    • Tabel增加列拖动
  • 3th
    • 图片

使用  ant.design pro 的menu


icon怎么取值?


没找到相对应的文档,经过测试,可以使用如下方式

使用的是ant.design图标

https://4x.ant.design/components/icon-cn/


使用时,去除名字后面的Outlined

如

SettingOutlined

则配置的项目为  Setting

{
  path: '/system',
  name: '系统管理',
  icon: 'Setting',
  routes: [

  ]
}


© 2022 - 溪客(编程代码) - 粤ICP备10217501号 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)