element-ui 怎么解决el-checkbox label绑定的值为对象时,实现默认勾选
that.currentValue.map((item) => {
const idx = that.selectArr.findIndex(sla => sla[that.valueName] === item[that.valueName])
that.selectArr[idx] = item
})
that.selectArr为全部数组
that.currentValue 为选中的数组数据

浙公网安备 33010602011771号