更新代码

This commit is contained in:
ahanhanhan
2024-02-22 17:10:22 +08:00
parent 459de38465
commit ec24be53db
2 changed files with 89 additions and 5 deletions

View File

@@ -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 });
}
}
}