[Improvement] Dialog: add get-container prop (#1176)

This commit is contained in:
neverland 2018-05-28 17:48:39 +08:00 committed by GitHub
parent 2833445d39
commit 0a6afa2545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,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 closecall done to close dialog | (action: string, done: function) => void | - |
| get-container | Return the mount node for Dialog | `() => HTMLElement` | - |
### Event

View File

@ -143,6 +143,7 @@ export default {
| close-on-click-overlay | 点击蒙层时是否关闭弹窗 | `Boolean` | `false` |
| lock-scroll | 是否锁定背景滚动 | `Boolean` | `true` |
| before-close | 关闭前的回调函数,调用 done 后关闭弹窗 | (action: string, done: function) => void | - |
| get-container | 指定弹窗挂载的 HTML 节点 | `() => HTMLElement` | - |
### Event