[Improvement] Popup: get-container support selector (#1699)

This commit is contained in:
neverland
2018-08-27 17:10:50 +08:00
committed by GitHub
parent ab00a16b6a
commit 9e22eb4c1f
11 changed files with 43 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ export default {
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | `false` |
| lock-scroll | Whether to lock background scroll | `Boolean` | `true` |
| before-close | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: function) => void | - |
| get-container | Return the mount node for Dialog | `() => HTMLElement` | - |
| get-container | Return the mount node for Dialog | `String | () => HTMLElement` | - |
### Event

View File

@@ -144,7 +144,7 @@ export default {
| close-on-click-overlay | 点击蒙层时是否关闭弹窗 | `Boolean` | `false` |
| lock-scroll | 是否锁定背景滚动 | `Boolean` | `true` |
| before-close | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 可以阻止弹窗关闭 | (action: string, done: function) => void | - |
| get-container | 指定弹窗挂载的 HTML 节点 | `() => HTMLElement` | - |
| get-container | 指定挂载的节点,可以传入 CSS 选择器,<br>或一个返回 DOM 节点的函数 | `String | () => HTMLElement` | - |
### Event