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

[Tabs]:外层Tabs会更改内层Tabs的默认的type #796

Closed
star-hamster opened this issue Apr 26, 2022 · 3 comments
Closed

[Tabs]:外层Tabs会更改内层Tabs的默认的type #796

star-hamster opened this issue Apr 26, 2022 · 3 comments
Assignees

Comments

@star-hamster
Copy link
Contributor

注意:根据下面内容复现错误问题,以方便测试。

描述错误

外层Tabs会更改内层Tabs的默认的type

提供在线重现示例

import React from 'react';
import ReactDOM from 'react-dom';
import { Tabs } from 'uiw';

class Demo extends React.Component {
  render() {
    return (
      <div style={{backgroundColor:'green'}}>
      <Tabs activeKey="1" type="line" onTabClick={(tab, key, e) => {
          console.log("=>", key, tab);
        }}>
          <Tabs.Pane label="用户管理" key="1">用户管理
            <Tabs activeKey="1" type="default" onTabClick={(tab, key, e) => {
              console.log("=>", key, tab);
            }}>
            <Tabs.Pane label="用户管理" key="1">用户管理</Tabs.Pane>
            <Tabs.Pane label="配置管理" key="2">配置管理</Tabs.Pane>
            <Tabs.Pane sequence="fadeIn up" label="角色管理" key="3">角色管理</Tabs.Pane>
            <Tabs.Pane label="大爷欢乐多" key="4"><div>大爷欢乐多22</div></Tabs.Pane>
          </Tabs>
          </Tabs.Pane>
          <Tabs.Pane label="配置管理" key="2">配置管理</Tabs.Pane>
          <Tabs.Pane sequence="fadeIn up" label="角色管理" key="3">角色管理</Tabs.Pane>
          <Tabs.Pane label="大爷欢乐多" key="4"><div>大爷欢乐多22</div></Tabs.Pane>
      </Tabs></div>
    );
  }
}
ReactDOM.render(<Demo />, _mount_);

预期行为

内层Tabs可以有默认的type

截图

image

桌面(请填写以下信息):

  • UIW:4.21.3
@cuilanxin
Copy link
Collaborator

@nullptr-z
Copy link
Collaborator

@cuilanxin bug任然存在
image

@cuilanxin
Copy link
Collaborator

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

No branches or pull requests

3 participants