|
this.dataList[this.activeIndex].class = 'image-layer'
// var item = {}
// for (var k in this.dataList[this.activeIndex]) {
// item[k] = this.dataList[this.activeIndex][k]
// }
$('#yxyx-list').update({
index: this.activeIndex, item: item
})
const index = e.index
this.activeIndex = index
this.currentOpt = this.dataList[index]
this.currentOpt.class = 'image-layer checked'
this.showOpt = true
$('#yxyx-list').update({
index: index, item: this.dataList[index]
})
添加的checked生效了,去掉checked不生效,一直是checked状态,求解。 |
|