Guest User

Untitled

a guest
Jan 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <tree-view-item
  2. v-for="(entry, index) in tree"
  3. :key="index"
  4.  
  5. :entry="entry"
  6. :mode="mode"
  7. :deepness="deepness"
  8. >
  9. <slot :entry="entry"></slot>
  10. </tree-view-item>
  11.  
  12. <tree-view
  13. :entries="tree"
  14. mode="folders"
  15. :deepness="3"
  16. >
  17. <template slot-scope="{ entry }">
  18. {{ entry.name }}
  19. </template>
  20. </tree-view>
  21.  
  22. <!-- tree-view-item's template -->
  23. <li>
  24. <slot></slot>
  25.  
  26. <tree-view
  27. v-if="entry.children"
  28. v-show="open"
  29. :entries="entry.children"
  30. :mode="mode"
  31. :deepness="deepness"
  32. >
  33. <template slot-scope="{ entry }">
  34. {{ entry.name }}
  35. </template>
  36. </tree-view>
  37. </li>
Add Comment
Please, Sign In to add comment