Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. {{item.lists}}
  2. <div v-for="(listitem, index) in item.lists" :key="index"
  3. class="media align-items-center bg-white ui-bordered py-3 mb-2">
  4. <div class="component-move ion ion-ios-move text-muted text-big p-4"></div>
  5.  
  6. <div class="media-body">
  7. <div class="container mt-2">
  8. <div class="row">
  9. <viewlist :item="listitem" :name="`${listitem.id}-${index}`"/>
  10. </div>
  11. </div>
  12. </div>
  13. </div>
  14.  
  15. <editlistitem :name="item" :item="ListItem"/>
  16.  
  17. watch: {
  18. 'item.value': function (value) {
  19.  
  20. let vm = this;
  21.  
  22. _.each (vm.item.children, function (child) {
  23. child.id === value ? child.value = true : child.value = false;
  24. });
  25. }
  26. },
  27.  
  28. <viewlist :item="listitem" :name="`${listitem.id}-${index}`"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement