Commit f3da3b11 by 陈超

T

parent e83fec91
...@@ -141,9 +141,16 @@ ...@@ -141,9 +141,16 @@
}, },
childStyle: function() { childStyle: function() {
return function(idx, item) { return function(idx, item) {
console.log(idx) let child = item.child
console.log(item) let count = 0
return true ? { background: 'F5F5F5' } : { background: 'transparent' } 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