Vuetify: How to preselect active tab?

后端 未结 6 461
孤城傲影
孤城傲影 2021-01-02 02:02

I want to use Vuetify (v1.0.18) to render some static navigation using v-tabs. The routing is done on the server side, so I need a way to set the active tab

6条回答
  •  無奈伤痛
    2021-01-02 02:38

    I solved this with this.$refs

    
    

    Text for tab1 Text for tab2 Text for tab3

    // Inside a method
    someButton() {
      this.$refs.tab2.click()
    }
    

提交回复
热议问题