mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
44dbee22ac
commit
274dca17b7
@ -31,6 +31,23 @@ popup 额外支持了 上下左右 四种动画方式,通过增加 type 属性
|
||||
<zan-popup type="right" show="{{ show }}"></zan-popup>
|
||||
```
|
||||
|
||||
#### 控制显示,隐藏
|
||||
|
||||
```html
|
||||
<zan-popup show="{{ isShow }}" bindclose="togglePopup"></zan-popup>
|
||||
```
|
||||
|
||||
```js
|
||||
data: {
|
||||
isShow: false
|
||||
},
|
||||
togglePopup() {
|
||||
this.setData({
|
||||
isShow: !this.data.isShow
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
### 具体参数和事件
|
||||
#### 参数说明
|
||||
| 参数 | 说明 | 类型 | 默认值 | 必须 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user