[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
+1 -1
View File
@@ -88,7 +88,7 @@ export default {
| overlay | 是否显示遮罩层 | `Boolean` | `true` |
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | `true` |
| lazy-render | 是否在首次显示弹层时才渲染 DOM 节点 | `Boolean` | `true` |
| get-container | 指定挂载的 HTML 节点 | `() => HTMLElement` | - |
| get-container | 指定挂载的节点,可以传入 CSS 选择器,<br>或一个返回 DOM 节点的函数 | `String | () => HTMLElement` | - |
### Event