ToggleSelect the method to check and cancel the check box by clicking the current row of the table

 <Table 
        ref="table"
        stripe
        highlight-row
        @on-row-click='getProjectData'
        :columns="tables.columns2"
        :data="tables.data1"
        @on-select="beSelected"></Table>
                     
    getProjectData (val, index) {
      this.$refs.table.toggleSelect(index);
    },

 

Guess you like

Origin www.cnblogs.com/yn-cn/p/12759799.html