<el-table :data="tableData"> <el-table-column prop="date" label="日期" width="180" v-if="XXXXXXXXXXX"> <template slot-scope="scope"> <span>{{ scope.row.date }}</span> </template> </el-table-column> </el-table> 比如上面的代码,正常情况我可以在template的slot-scope获取的当前行数...
<el-table-column prop="date"label="日期"width="180"> </el-table-column> <el-table-column label="姓名"width="180"><template slot-scope="scope">{{aa(scope.row.name)+scope.$index}}</template></el-table-column> <el-table-column prop="address"label="地址"> </el-table-column> </...
<el-table :data="tableData"> <el-table-column prop="date" label="日期" width="180" v-if="XXXXXXXXXXX"> <template slot-scope="scope"> <span>{{ scope.row.date }}</span> </template> </el-table-column> </el-table> 比如上面的代码,正常情况我可以在template的slot-scope获取的当前行数...
<el-table :data="tableData"> <el-table-column prop="date" label="日期" width="180" v-if="XXXXXXXXXXX"> <template slot-scope="scope"> <span>{{ scope.row.date }}</span> </template> </el-table-column> </el-table> 比如上面的代码,正常情况我可以在template的slot-scope获取的当前行数...