docs(Popup): add transition component link (#4635)

This commit is contained in:
neverland
2019-09-30 11:16:42 +08:00
committed by GitHub
parent c4713ad0c2
commit 8493fda8b0
2 changed files with 8 additions and 26 deletions
+4 -13
View File
@@ -93,22 +93,13 @@ Use `get-container` prop to specify mount location
```html
<!-- mount to body -->
<van-popup
v-model="show"
get-container="body"
/>
<van-popup v-model="show" get-container="body" />
<!-- mount to #app -->
<van-popup
v-model="show"
get-container="#app"
/>
<van-popup v-model="show" get-container="#app" />
<!-- Specify the mount location by function -->
<van-popup
v-model="show"
:get-container="getContainer"
/>
<van-popup v-model="show" :get-container="getContainer" />
```
```js
@@ -140,7 +131,7 @@ export default {
| closeable | Whether to show close icon | *boolean* | `false` | 2.2.0 |
| close-icon | Close icon name | *string* | `cross` | 2.2.0 |
| close-icon-position | Close Icon Positioncan be set to `top-left` `bottom-left` `bottom-right` | *string* | `top-right` | 2.2.2 |
| transition | Transition | *string* | `popup-slide` | - |
| transition | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - | - |
| get-container | Return the mount node for Popup | *string \| () => Element* | - | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `false` | 2.2.1 |