2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 1
|
2016-06-19 11:14:21 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 带有图标的
|
|
|
|
en-US: With an Icon
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-01 21:24:04 +08:00
|
|
|
|
2016-06-19 11:14:21 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-07-01 21:24:04 +08:00
|
|
|
图标放在文字前面。
|
|
|
|
|
2016-06-19 11:14:21 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
The icon should be placed in front of the text.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2019-11-28 12:34:33 +08:00
|
|
|
import { HomeOutlined, UserOutlined } from '@ant-design/icons';
|
2022-05-21 22:14:15 +08:00
|
|
|
import { Breadcrumb } from 'antd';
|
|
|
|
import React from 'react';
|
2015-07-01 21:24:04 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2015-07-01 21:24:04 +08:00
|
|
|
<Breadcrumb>
|
|
|
|
<Breadcrumb.Item href="">
|
2019-11-28 12:34:33 +08:00
|
|
|
<HomeOutlined />
|
2015-07-01 21:24:04 +08:00
|
|
|
</Breadcrumb.Item>
|
|
|
|
<Breadcrumb.Item href="">
|
2019-11-28 12:34:33 +08:00
|
|
|
<UserOutlined />
|
2016-07-21 11:48:56 +08:00
|
|
|
<span>Application List</span>
|
2015-07-01 21:24:04 +08:00
|
|
|
</Breadcrumb.Item>
|
2019-05-07 14:57:32 +08:00
|
|
|
<Breadcrumb.Item>Application</Breadcrumb.Item>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Breadcrumb>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|