v3.0.6
This commit is contained in:
37
source/wx/xzs-student/component/iView/alert/index.js
Normal file
37
source/wx/xzs-student/component/iView/alert/index.js
Normal file
@@ -0,0 +1,37 @@
|
||||
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');
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user