ant-design/components/tooltip/demo/basic.md

17 lines
279 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
title: 基本
---
2015-06-03 17:08:43 +08:00
最简单的用法。
````jsx
import { Tooltip } from 'antd';
2015-06-03 17:08:43 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
2016-06-22 14:09:29 +08:00
<Tooltip title="提示文字" onVisibleChange={visible => console.log(visible)}>
2015-06-03 20:46:25 +08:00
<span>鼠标移上来就会出现提示</span>
2015-06-03 17:08:43 +08:00
</Tooltip>
, mountNode);
2015-06-03 17:08:43 +08:00
````