Commit f3da3b11 by 陈超

T

parent e83fec91
......@@ -141,9 +141,16 @@
},
childStyle: function() {
return function(idx, item) {
console.log(idx)
console.log(item)
return true ? { background: 'F5F5F5' } : { background: 'transparent' }
let child = item.child
let count = 0
let index = 0
for(let i in child) {
if(i == idx) {
index = count
}
count += 1
}
return index < (count - 1) ? { background: 'F5F5F5' } : { background: 'transparent' }
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment