Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <div v-for="(item, index) in items" :key="index">
- <list-item
- :item="item"
- class="item"
- v-on:itemchanged="$emit('reloadlist')"
- />
- </div>
- </div>
- </template>
- <script>
- import listItem from "./listItem"
- export default {
- props: ['items'],
- components: {
- listItem
- }
- }
- </script>
- <style scoped>
- .item {
- background: #e6e6e6e6;
- padding: 5px;
- margin-top: 5px;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement