// highlight-current-row //一定要设置 不然的话 你点击也没有什么效果
<el-table
ref="singleTableRef"
:data="tableData"
highlight-current-row
@current-change="handleCurrentChange"
style="
width: calc(100% - 20px);
margin-left: 10px;
margin-top: 10px;
height: calc(100% - 111px);
"
>
<el-table-column prop="sort" label="排序" style="width: 8%" />
<el-table-column prop="name" label="岗位名称" style="width: 23%"
element plus 如何设置选中el-table和点击列表获取行信息,以及默认显示选中的行,高亮行
猜你喜欢
转载自blog.csdn.net/u010782109/article/details/131706667
今日推荐
周排行