【iview】iview如何获取表格中被选中行的值

html:

<Table highlight-row ref="currentRowTable" :columns="columns3" :data="data1" @on-current-change="handleRowChange"></Table>
//必须要有highlight-row,handleRowChange是自己定义的方法


methods:{
    handleRowChange(currentRow, oldCurrentRow){
        //console.log(currentRow)
        //console.log(oldCurrentRow)
    }
}

猜你喜欢

转载自blog.csdn.net/qq_39583930/article/details/89445801
今日推荐