ant-design/components/breadcrumb/demo/withIcon.md
2018-11-28 15:11:02 +08:00

548 B

order title
1
zh-CN en-US
带有图标的 With an Icon

zh-CN

图标放在文字前面。

en-US

The icon should be placed in front of the text.

import { Breadcrumb, Icon } from 'antd';

ReactDOM.render(
  <Breadcrumb>
    <Breadcrumb.Item href="">
      <Icon type="home" />
    </Breadcrumb.Item>
    <Breadcrumb.Item href="">
      <Icon type="user" />
      <span>Application List</span>
    </Breadcrumb.Item>
    <Breadcrumb.Item>
      Application
    </Breadcrumb.Item>
  </Breadcrumb>,
  mountNode
);