diff options
author | 2021-12-22 16:11:05 -0500 | |
---|---|---|
committer | 2021-12-22 16:11:05 -0500 | |
commit | 6ddd7678ffb6598ae6e263706813cb5e94535f02 (patch) | |
tree | d4b45f7590b59c3574bd6593b17d8066f71007c6 /examples/with-nanostores/src/components/AdminsVue.vue | |
parent | 305ce4182fbe89abcfb88008ddce178bd8863b6a (diff) | |
download | astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.gz astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.zst astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.zip |
Use accessible indentation (#2253)
Diffstat (limited to 'examples/with-nanostores/src/components/AdminsVue.vue')
-rw-r--r-- | examples/with-nanostores/src/components/AdminsVue.vue | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/examples/with-nanostores/src/components/AdminsVue.vue b/examples/with-nanostores/src/components/AdminsVue.vue index 2f83e9fc1..5eb73dd3d 100644 --- a/examples/with-nanostores/src/components/AdminsVue.vue +++ b/examples/with-nanostores/src/components/AdminsVue.vue @@ -1,19 +1,19 @@ <template> - <div> - <h1>Vue</h1> - <ul> - <li v-for="admin in list" :key="admin.id"> - {{ JSON.stringify(admin, null, 2) }} - </li> - </ul> - <div> - <h3>Counter</h3> - <p>{{ count.value }}</p> - <button @click="decreaseCounter">-1</button> - <button @click="increaseCounter">+1</button> - </div> - <br /> - </div> + <div> + <h1>Vue</h1> + <ul> + <li v-for="admin in list" :key="admin.id"> + {{ JSON.stringify(admin, null, 2) }} + </li> + </ul> + <div> + <h3>Counter</h3> + <p>{{ count.value }}</p> + <button @click="decreaseCounter">-1</button> + <button @click="increaseCounter">+1</button> + </div> + <br /> + </div> </template> <script> @@ -23,11 +23,11 @@ import { admins } from '../store/admins.js'; import { counter, increaseCounter, decreaseCounter } from '../store/counter.js'; export default { - setup() { - const list = useStore(admins); - const count = useStore(counter); + setup() { + const list = useStore(admins); + const count = useStore(counter); - return { list, count, increaseCounter, decreaseCounter }; - }, + return { list, count, increaseCounter, decreaseCounter }; + }, }; </script> |