mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
4bdc02b5d2
@ -3,7 +3,7 @@ order: 0
|
||||
title: 基本
|
||||
---
|
||||
|
||||
最简单的用法,五秒后自动关闭。
|
||||
最简单的用法,4.5 秒后自动关闭。
|
||||
|
||||
````jsx
|
||||
import { Button, notification } from 'antd';
|
||||
|
@ -5,7 +5,7 @@ import warning from 'warning';
|
||||
|
||||
let defaultTop = 24;
|
||||
let notificationInstance;
|
||||
let defaultDuration = 45;
|
||||
let defaultDuration = 4.5;
|
||||
|
||||
function getNotificationInstance() {
|
||||
if (notificationInstance) {
|
||||
|
@ -42,6 +42,7 @@ english: Select
|
||||
| size | 选择框大小,可选 `large` `small` | String | default |
|
||||
| showSearch | 在选择框中显示搜索框 | boolean | false |
|
||||
| disabled | 是否禁用 | boolean | false |
|
||||
| defaultActiveFirstOption | 是否默认高亮第一个选项。 | boolean | true
|
||||
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](http://codepen.io/anon/pen/xVBOVQ?editors=001) | Function(triggerNode) | () => document.body |
|
||||
| labelInValue | 是否把每个选项的 label 包装到 value 中,决定 Select 的 value 类型。 | boolean | false |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user