2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-08-02 16:06:46 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 基本
|
|
|
|
en-US: Basic
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-06-03 17:08:43 +08:00
|
|
|
|
2016-08-02 16:06:46 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-06-03 17:08:43 +08:00
|
|
|
最简单的用法。
|
|
|
|
|
2016-08-02 16:06:46 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
The simplest usage.
|
|
|
|
|
2015-06-03 17:08:43 +08:00
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Tooltip } from 'antd';
|
2015-06-03 17:08:43 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2016-08-02 16:06:46 +08:00
|
|
|
<Tooltip title="prompt text">
|
|
|
|
<span>Text will show when mouse enter.</span>
|
2015-06-03 17:08:43 +08:00
|
|
|
</Tooltip>
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-06-03 17:08:43 +08:00
|
|
|
````
|