ElementUi 一下事件的默认参数写法
<el-tabs
v-model="selectedYearStr"
type="border-card"
@tab-click="onSelectYear"
>
</el-tabs>
onSelectYear(tab: any, event: any) {
console.log(tab, event)
this.selectedYearNum = Number(this.selectedYearStr.substring(4))
}