You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
613 B

# 图标
- order: 2
10 years ago
有图标的标签。
---
````jsx
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
var Icon = antd.Icon;
var tabContent = [
<span><Icon type="apple" />选项卡一</span>,
<span><Icon type="android" />选项卡二</span>,
<span><Icon type="lock" />选项卡三</span>,
10 years ago
];
React.render(
<Tabs defaultActiveKey="2">
<TabPane tab={tabContent[0]} key="1">选项卡一</TabPane>
<TabPane tab={tabContent[1]} key="2">选项卡二</TabPane>
<TabPane tab={tabContent[2]} key="3">选项卡三</TabPane>
</Tabs>
, document.getElementById('components-tabs-demo-icon'));
````