仓库地址修改
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
Component({
|
||||
externalClasses: ['i-class', 'i-class-mask', 'i-class-header'],
|
||||
|
||||
options: {
|
||||
multipleSlots: true
|
||||
},
|
||||
|
||||
properties: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
maskClosable: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
showCancel: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
cancelText: {
|
||||
type: String,
|
||||
value: '取消'
|
||||
},
|
||||
actions: {
|
||||
type: Array,
|
||||
value: []
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleClickMask () {
|
||||
if (!this.data.maskClosable) return;
|
||||
this.handleClickCancel();
|
||||
},
|
||||
|
||||
handleClickItem ({ currentTarget = {} }) {
|
||||
const dataset = currentTarget.dataset || {};
|
||||
const { index } = dataset;
|
||||
this.triggerEvent('click', { index });
|
||||
},
|
||||
|
||||
handleClickCancel () {
|
||||
this.triggerEvent('cancel');
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user