[Improvement] Popup: add click-overlay event (#647)

This commit is contained in:
neverland
2018-02-24 15:22:41 +08:00
committed by GitHub
parent c0f870ceb9
commit 5d25d7aff9
5 changed files with 45 additions and 45 deletions
+6
View File
@@ -49,3 +49,9 @@ Use `position` prop to set popup display position
| transition | Transition | `String` | `popup-slide` | - |
| prevent-scroll | Prevent background scroll | `Boolean` | `false` | - |
| get-container | Return the mount node for Popup | `Function` | - | `() => HTMLElement` |
### Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
| click-overlay | Triggered when click overlay | - |
+6
View File
@@ -49,3 +49,9 @@ export default {
| transition | transition 名称 | `String` | `popup-slide` | - |
| prevent-scroll | 是否防止滚动穿透 | `Boolean` | `false` | - |
| get-container | 指定弹出层挂载的 HTML 节点 | `Function` | - | `() => HTMLElement` |
### Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| click-overlay | 点击蒙层时触发 | - |