ReactJs:找不到 Material TreeView 展开图标的加号方形图标

问题描述 投票:0回答:1

我正在努力寻找一些可能非常简单的东西,并且应该是许多人的要求,但我仍然没有在互联网上找到任何帮助

我在我的反应应用程序中使用材料

TreeView

import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import ExpandMoreIcon from "@mui/icons-material/ExpandMoreOutlined";

<TreeView
    aria-label="file system navigator"
    defaultCollapseIcon={<ExpandMoreIcon />}
    defaultExpandIcon={<ChevronRightIcon />}
    sx={{
        height: 240,
        flexGrow: 1,
        maxWidth: 400,
        overflowY: "auto",
        marginTop: "0.6rem",
    }}
>

当前

ExpandMoreIcon
ChevronRightIcon
正在使用,所以树看起来像这样

但我想更改展开和折叠图标以匹配此设计

我认为已经有可用于此设计的展开/折叠图标,因为它是树结构的一种非常常见的样式,但与我的想法相反,我在整个互联网上找不到与此相关的任何内容

我在这里搜索https://materialui.co/icons,但没有图标数学

plus inside a square

我也在这里搜索,https://v4.mui.com/components/material-icons/

当我尝试智能时,我也找不到任何图标

@mui/icons-material/...

任何帮助将不胜感激!

reactjs material-ui treeview
1个回答
0
投票
Mui 的 Box 图标内确实有一个加号。检查

这个

© www.soinside.com 2019 - 2024. All rights reserved.