--- order: 6 title: 位置 --- ## zh-CN 有四个位置,`tabPosition="left|right|top|bottom"`。 ## en-US Tab's position: left, right, top or bottom. ````jsx import { Tabs, Select } from 'antd'; const TabPane = Tabs.TabPane; const Option = Select.Option; const Demo = React.createClass({ getInitialState() { return { tabPosition: 'top', }; }, changeTabPosition(tabPosition) { this.setState({ tabPosition }); }, render() { return (
页签位置:
Content of Tab 1 Content of Tab 2 Content of Tab 3
); }, }); ReactDOM.render(, mountNode); ````