mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-09 04:58:38 +08:00
413 B
413 B
基本
- order: 0
最简单的用法
var Tabs = antd.Tab;
var TabPane = Tabs.TabPane;
function callback() {}
React.render(
<Tabs defaultActiveKey="2" onChange={callback}>
<TabPane tab='tab 1' key="1">first</TabPane>
<TabPane tab='tab 2' key="2">second</TabPane>
<TabPane tab='tab 3' key="3">third</TabPane>
</Tabs>
, document.getElementById('components-tab-demo-basic'));