(item)
| 141 | } |
| 142 | |
| 143 | prev(item) { |
| 144 | if (item) { |
| 145 | let parent = this.parent(item); |
| 146 | if (parent && parent.children.length > 0) { |
| 147 | let idx = parent.children.indexOf(item); |
| 148 | if (idx !== -1 && idx !== 0) { |
| 149 | return parent.children[idx - 1]; |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | return null; |
| 154 | } |
| 155 | |
| 156 | async open(item) { |
| 157 | if (this.isOpen(item)) { return true; } |
no test coverage detected