feat(Overlay): add default slot (#4571)

This commit is contained in:
neverland
2019-09-25 14:50:48 +08:00
committed by GitHub
parent d2f6185934
commit 0fe9874379
6 changed files with 32 additions and 23 deletions
+8 -9
View File
@@ -14,16 +14,9 @@ Vue.use(Overlay);
### Basic Usage
```html
<van-button
type="primary"
text="Show Overlay"
@click="show = true"
/>
<van-button type="primary" text="Show Overlay" @click="show = true" />
<van-overlay
:show="show"
@click="show = false"
/>
<van-overlay :show="show" @click="show = false" />
```
```js
@@ -52,3 +45,9 @@ export default {
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when clicked | event: Event |
### Slots
| Name | Description |
|------|------|
| default | Default slot |