mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-27 10:34:26 +08:00
2bced36f0c
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
38 lines
527 B
Markdown
Executable File
38 lines
527 B
Markdown
Executable File
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 基本
|
|
en-US: Basic
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
最简单的用法,浮层的大小由内容区域决定。
|
|
|
|
## en-US
|
|
|
|
The most basic example. The size of the floating layer depends on the contents region.
|
|
|
|
````jsx
|
|
import { Popover, Button } from 'antd';
|
|
|
|
const content = (
|
|
<div>
|
|
<p>Content</p>
|
|
<p>Content</p>
|
|
</div>
|
|
);
|
|
|
|
ReactDOM.render(
|
|
<Popover content={content} title="Title">
|
|
<Button type="primary">Hover me</Button>
|
|
</Popover>
|
|
, mountNode);
|
|
````
|
|
|
|
<style>
|
|
p {
|
|
margin: 0;
|
|
}
|
|
</style>
|