--- order: 99 debug: true title: zh-CN: 基本 en-US: Nest --- ## zh-CN 默认选中第一项。 ## en-US Default activate first tab. ````jsx import { Tabs, Select } from 'antd'; const TabPane = Tabs.TabPane; const Option = Select.Option; const positionList = ['left', 'right', 'top', 'bottom']; const list = new Array(20).fill().map((_, index) => index); class Demo extends React.Component { state = { parentPos: undefined, childPos: undefined, parentType: undefined, childType: undefined, }; render() { const { parentPos, childPos, parentType, childType } = this.state; return (
{list.map(key => ( TTTT {key} ))} Content of Tab Pane 2
); } } ReactDOM.render( , mountNode); ````