更新代码
This commit is contained in:
@@ -50,6 +50,10 @@ export default {
|
||||
operation: {
|
||||
type: Array,
|
||||
default: ()=> ([{ label: '总', prop: '' }, { label: '日', prop: '' }])
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
@@ -62,6 +66,7 @@ export default {
|
||||
handleSwitch(label, prop, index) {
|
||||
console.log(label, prop)
|
||||
this.activeIndex = index;
|
||||
this.$emit('switch-change', { label, prop, index });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user