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

希望umi4多页签条宽度能自适应 #593

Open
ghuan opened this issue Jul 28, 2023 · 0 comments
Open

希望umi4多页签条宽度能自适应 #593

ghuan opened this issue Jul 28, 2023 · 0 comments
Labels

Comments

@ghuan
Copy link

ghuan commented Jul 28, 2023

What happens?

我在ant design pro 项目中启用umi4的多页签功能,发现页签过多时,右侧多个页签将无法显示,虽然有鼠标滚动,但是貌似页签条宽度还是过长,建议宽度能自适应,并且能有一个关闭当前页签的功能,
另外,ant design pro 提供了黑色主题功能,切换黑色主题后,页签条bar背景颜色没有动态修改为黑色。
也许这两个问题都是pro切换设置,未动态渲染多页签的原因

Mini Showcase Repository(REQUIRED)

How To Reproduce

  1. 创建pro项目:pro create myapp
  2. 配置启用多页签:
//开启多页签
  keepalive: [/./],
  tabsLayout: {
  hasDropdown: true,
  hasFixedHeader: true,
  },
  1. npm install,npm start 启动
  2. 多开几个菜单,切换黑色主题

Context

  • Umi Version: 4.0.73
  • Node Version: 18.0
  • Platform: windows10
    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants