38 lines
715 B
JavaScript
38 lines
715 B
JavaScript
Component({
|
|
externalClasses: ['i-class'],
|
|
options: {
|
|
multipleSlots: true
|
|
},
|
|
properties: {
|
|
//info, success, warning, error
|
|
type: {
|
|
type: String,
|
|
value: 'info'
|
|
},
|
|
closable: {
|
|
type: Boolean,
|
|
value: false
|
|
},
|
|
showIcon: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
desc: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
},
|
|
data: {
|
|
closed: false
|
|
},
|
|
methods: {
|
|
handleTap() {
|
|
this.setData({
|
|
closed: !this.data.closed,
|
|
});
|
|
this.triggerEvent('close');
|
|
},
|
|
|
|
}
|
|
});
|