-
Notifications
You must be signed in to change notification settings - Fork 120
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
bug: Tabs组件的renderPane失效 #870
Labels
bug
Something isn't working
Comments
可以提供更多的信息么 目前的信息看不出问题在哪里 |
Molecule 这边的 Tabs 组件只负责渲染 Tabs 的 Header 内容。内容需要自行调用 renderPane 去渲染。至于 Tabs 的类型上会有 renderPane 的原因是因为 Molecule 里面复用了这个类型,这是一件可以优化点。事实上 Tabs 组件并没有用 renderPane。 可以参考 Panel 组件的源码实现:
可以直接修改文案的 padding 值,比如: .mo-panel__header .mo-tab__item{
padding: 0 20px;
} |
明白了,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Tabs组件的renderPane失效
以下是我的代码
但是点击对应切换后并没有完成页面渲染
Versions
To reproduce
Expected
Actually happening
The text was updated successfully, but these errors were encountered: