34 lines
614 B
JavaScript
34 lines
614 B
JavaScript
|
Component({
|
||
|
externalClasses: ['i-class'],
|
||
|
properties: {
|
||
|
visible: {
|
||
|
type: Boolean,
|
||
|
value: false
|
||
|
},
|
||
|
|
||
|
mask: {
|
||
|
type: Boolean,
|
||
|
value: true
|
||
|
},
|
||
|
|
||
|
maskClosable: {
|
||
|
type: Boolean,
|
||
|
value: true
|
||
|
},
|
||
|
|
||
|
mode: {
|
||
|
type: String,
|
||
|
value: 'left' // left right
|
||
|
}
|
||
|
},
|
||
|
data: {},
|
||
|
methods: {
|
||
|
handleMaskClick() {
|
||
|
if (!this.data.maskClosable) {
|
||
|
return;
|
||
|
}
|
||
|
this.triggerEvent('close', {});
|
||
|
}
|
||
|
}
|
||
|
});
|