Skip to content

Instantly share code, notes, and snippets.

@shijiezhou1
Created October 6, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shijiezhou1/997aeb49ce24322acdb6987332c03f00 to your computer and use it in GitHub Desktop.
Save shijiezhou1/997aeb49ce24322acdb6987332c03f00 to your computer and use it in GitHub Desktop.
Vue3 Todo
<template>
<ul>
<li
v-for="(todolist, index) in TodoLists"
:key="index"
>
<span class="name">{{todolist.name}}</span>
<span
class="delete"
@click="Delete(todolist.id)"
>x</span>
</li>
</ul>
</template>
<script>
export default {
props: {
TodoLists: Array,
Delete: Function
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment