2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 5
|
2016-09-01 18:12:12 +08:00
|
|
|
title:
|
2016-08-23 14:15:34 +08:00
|
|
|
zh-CN: 迷你型
|
|
|
|
en-US: Mini tab
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-06-19 17:26:24 +08:00
|
|
|
|
2016-08-03 10:39:20 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-06-19 17:26:24 +08:00
|
|
|
用在弹出框等较狭窄的容器内。
|
|
|
|
|
2016-08-03 10:39:20 +08:00
|
|
|
## en-US
|
|
|
|
|
2016-09-01 18:12:12 +08:00
|
|
|
Small size can be used in Modal.
|
2016-08-03 10:39:20 +08:00
|
|
|
|
2017-01-19 15:19:03 +08:00
|
|
|
````__react
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Tabs } from 'antd';
|
|
|
|
const TabPane = Tabs.TabPane;
|
2015-06-19 17:26:24 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2015-10-22 21:01:52 +08:00
|
|
|
<Tabs defaultActiveKey="2" size="small">
|
2016-08-03 10:39:20 +08:00
|
|
|
<TabPane tab="Tab 1" key="1">Content of tab 1</TabPane>
|
|
|
|
<TabPane tab="Tab 2" key="2">Content of tab 2</TabPane>
|
|
|
|
<TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
|
2015-06-19 17:26:24 +08:00
|
|
|
</Tabs>
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-06-19 17:26:24 +08:00
|
|
|
````
|