Advertisement
asimryu

listView.vue

Apr 28th, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <template>
  2. <div>
  3. <div v-for="(item, index) in items" :key="index">
  4. <list-item
  5. :item="item"
  6. class="item"
  7. v-on:itemchanged="$emit('reloadlist')"
  8. />
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import listItem from "./listItem"
  14. export default {
  15. props: ['items'],
  16. components: {
  17. listItem
  18. }
  19. }
  20. </script>
  21. <style scoped>
  22. .item {
  23. background: #e6e6e6e6;
  24. padding: 5px;
  25. margin-top: 5px;
  26. }
  27. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement