当我尝试使用第一列或第二列进行排序时,除了最后一列中的复选框外,行将被排序。最后一列是否基于我的代码不相交?
<el-table :data="items" stripe style="width: 50%">
<el-table-column prop="email" label="email" sortable></el-table-column>
<el-table-column prop="username" label="Username" sortable></el-table-column>
<el-table-column label="Enable">
<template slot-scope="scope">
<el-checkbox :checked="scope.row.isSelected" @change="toggleEnable(scope.row)" />
</template>
</el-table-column>
</el-table>https://stackoverflow.com/questions/58835399
复制相似问题