vue 的checkbox如何點擊選中時 獲取 該行數(shù)據(jù)
郎朗坤
2018-08-10 15:57:16
TA貢獻1826條經(jīng)驗 獲得超6個贊
給input加一個事件
<template scope="scope"> <div v-if="scope.row"> <el-checkbox @change="getRow(scope.row)" v-if="scope.row.platformUsername"></el-checkbox> <el-checkbox disabled v-if="!scope.row.platformUsername"></el-checkbox> </div> </template>
不知道你用的是不是elementui的表格
舉報