Prettified Code!

pull/2965/head
hengyunabc committed by GitHub Action
parent 8e4dd907ff
commit 3bc5053c69

@ -86,8 +86,8 @@ const isLastItemOfArray = (item, arr) => arr[arr.length - 1] === item;
:item="child"
@focusout="
isLastItemOfArray(child, item.children) &&
child.children.length === 0 &&
(open = false)
child.children.length === 0 &&
(open = false)
"
/>
@ -104,8 +104,8 @@ const isLastItemOfArray = (item, arr) => arr[arr.length - 1] === item;
:item="grandchild"
@focusout="
isLastItemOfArray(grandchild, child.children) &&
isLastItemOfArray(child, item.children) &&
(open = false)
isLastItemOfArray(child, item.children) &&
(open = false)
"
/>
</li>

Loading…
Cancel
Save