Created
October 6, 2020 21:53
-
-
Save shijiezhou1/997aeb49ce24322acdb6987332c03f00 to your computer and use it in GitHub Desktop.
Vue3 Todo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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