ant-design/components/spin/demo/tip.md

28 lines
590 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 4
title:
zh-CN: 自定义描述文案
en-US: Customize description
2016-03-31 09:40:55 +08:00
---
2016-02-19 20:20:45 +08:00
## zh-CN
2016-02-21 14:48:14 +08:00
自定义描述文案,指定的 tip 文案会直接代替 `...`
2016-02-19 20:20:45 +08:00
## en-US
Customize description content, specified tip content will replace the dots in `Spin`.
2016-02-19 20:20:45 +08:00
````jsx
2016-02-21 14:48:14 +08:00
import { Spin, Alert } from 'antd';
2016-02-19 20:20:45 +08:00
ReactDOM.render(
2016-02-21 14:48:14 +08:00
<Spin tip="正在读取数据...">
<Alert message="消息提示的文案"
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
type="info"
/>
2016-02-21 14:48:14 +08:00
</Spin>
2016-02-19 20:20:45 +08:00
, mountNode);
````