vant-weapp/dist/popup/index.js
2018-04-28 12:08:10 +08:00

36 lines
514 B
JavaScript

Component({
properties: {
show: {
type: Boolean,
value: false
},
overlay: {
type: Boolean,
value: true
},
closeOnClickOverlay: {
type: Boolean,
value: true
},
// 弹出方向
type: {
type: String,
value: 'center'
}
},
methods: {
handleMaskClick() {
this.triggerEvent('click-overlay', {});
if (!this.data.closeOnClickOverlay) {
return;
}
this.triggerEvent('close', {});
}
}
});