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.

23 lines
425 B

---
order: 2
title: 图标
---
10 years ago
有图标的标签。
````jsx
import { Tabs, Icon } from 'antd';
const TabPane = Tabs.TabPane;
9 years ago
ReactDOM.render(
<Tabs defaultActiveKey="2">
9 years ago
<TabPane tab={<span><Icon type="apple" />选项卡一</span>} key="1">
选项卡一
</TabPane>
<TabPane tab={<span><Icon type="android" />选项卡二</span>} key="2">
选项卡二
</TabPane>
</Tabs>
, mountNode);
````