How does element-ui use js to trigger tab handover?

how to use vue to trigger this function similar to jquery triger () to realize tab switching. I think the tab switching of element does not give the switching operation of api


vue is a data-driven view.

<el-tabs v-model="activeName">

this v-model binding property is changed to name of the tab-pane you want to cut, and then switch

.
this.activeName = 'second'

button triggers tab switching


you can change the style of tab by changing class

Menu