mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
20 lines
442 B
Markdown
20 lines
442 B
Markdown
---
|
|
order: 4
|
|
title: 自定义描述文案
|
|
---
|
|
|
|
自定义描述文案,指定的 tip 文案会直接代替 `...`。
|
|
|
|
````jsx
|
|
import { Spin, Alert } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Spin tip="正在读取数据...">
|
|
<Alert message="消息提示的文案"
|
|
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
|
|
type="info"
|
|
/>
|
|
</Spin>
|
|
, mountNode);
|
|
````
|