Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu菜单在父级菜单设置disabled后,子级group的children没有禁用 #6792

Open
5 tasks done
blackawn opened this issue Mar 5, 2025 · 0 comments
Open
5 tasks done
Labels
untriaged need to sort

Comments

@blackawn
Copy link

blackawn commented Mar 5, 2025

描述错误

当父级菜单设置disabled后,子级group的children没有应用到禁用样式

配置如下

{
    label: "舞,舞,舞",
    key: "dance-dance-dance",
    icon: renderIcon(BookIcon),
    disabled: true,
    children: [
      {
        type: "group",
        label: "人物",
        key: "people",
        children: [
          {
            label: "叙事者",
            key: "narrator",
            icon: renderIcon(PersonIcon),
          },
          {
            label: "羊男",
            key: "sheep-man",
            icon: renderIcon(PersonIcon),
          },
        ],
      },

复现步骤

Image

最小复现链接

https://codesandbox.io/p/sandbox/headless-http-hmf9dj

系统信息

windows

使用的包管理器

pnpm

验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

1 participant