ant-design/components/empty/demo/customize.md
2019-01-29 12:30:21 +08:00

541 B

order title
2
zh-CN en-US
自定义 Customize

zh-CN

自定义图片、描述、附属内容。

en-US

Customize image, description and extra content.

import { Empty, Button } from 'antd';

ReactDOM.render(
  <Empty
    image="https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original"
    description={
      <span>
        Customize <a href="#API">Description</a>
      </span>
    }
  >
    <Button type="primary">Create Now</Button>
  </Empty>,
  mountNode
);