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
@@ -18,16 +18,9 @@ Vue.use(Overlay);
### 基础用法
```html
<van-button
type="primary"
text="显示遮罩层"
@click="show = true"
/>
<van-button type="primary" text="显示遮罩层" @click="show = true" />
<van-overlay
:show="show"
@click="show = false"
/>
<van-overlay :show="show" @click="show = false" />
```
```js
@@ -56,3 +49,9 @@ export default {
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| click | 点击时触发 | event: Event |
### Slots
| 名称 | 说明 |
|------|------|
| default | 默认插槽 |