使用antd中tabs的嵌套,发现在tabPosition为left中嵌套top,会出现切换tab不显示内容的bug
import { Tabs, Select } from 'antd';
const TabPane = Tabs.TabPane;
const Option = Select.Option;
const Tab1 = React.createClass({
getInitialState() {
return {
};
},
render() {
return (
/* 在这里嵌入一个tab2子标签,可是tab2子标签切换tab的时候,
Content of Tab 2
Content of Tab 3
的内容都不会显示
*/
);
},
});
ReactDOM.render( , mountNode);
import { Tabs, Select } from 'antd';
const TabPane = Tabs.TabPane;
const Option = Select.Option;
const Tab2 = React.createClass({
getInitialState() {
return {
};
},
render() {
return (
Content of Tab 1
Content of Tab 2
Content of Tab 3
);
},
});
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
bug 的话请提 issue,并附上可重现在线 demo