赞
踩
默认第一行高亮:highlight-current-row ,切换时也高亮
<el-table :data="taskTabList"
style="width: 100%"
:data="taskTabList"
border
highlight-current-row
ref="monthlyPlanTable">
<el-table-column prop="created_at" label="任务"></el-table-column>
<el-table-column prop="created_at" label="开始时间"></el-table-column>
<el-table-column prop="created_at" label="状态"></el-table-column>
</el-table>
watch: {
taskTabList: function () {
this.$nextTick(function () {
this.$refs.monthlyPlanTable.setCurrentRow(this.taskTabList[0])
})
}
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。