feat(Popup): add closeable prop (#4362)

This commit is contained in:
neverland
2019-09-04 17:58:34 +08:00
committed by GitHub
parent 0bd3997373
commit e64beee5b0
7 changed files with 92 additions and 115 deletions
+12
View File
@@ -49,6 +49,17 @@ Use `position` prop to set popup display position
/>
```
### Close Icon
```html
<van-popup
v-model="show"
closeable
position="bottom"
:style="{ height: '20%' }"
/>
```
### Round Corner
```html
@@ -112,6 +123,7 @@ export default {
| close-on-click-overlay | Whether to close when click overlay | *boolean* | `true` | - |
| transition | Transition | *string* | `popup-slide` | - |
| get-container | Return the mount node for Popup | *string \| () => HTMLElement* | - | - |
| closeable | Whether to show close icon | *boolean* | `false` | 2.2.0 |
### Events