diff options
author | 2021-07-20 04:07:49 +0000 | |
---|---|---|
committer | 2021-07-20 04:07:49 +0000 | |
commit | 50f82e1a53ec5329990ee66fe62adba3fcbcb9e6 (patch) | |
tree | bee01a458fe44e48a396abcd51f912f09d295f55 /examples/framework-vue/src/components | |
parent | 07e533402e234d31b7cf9741bf2d08c32eda88c0 (diff) | |
download | astro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.tar.gz astro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.tar.zst astro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.zip |
[ci] yarn format
Diffstat (limited to 'examples/framework-vue/src/components')
-rw-r--r-- | examples/framework-vue/src/components/Counter.vue | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/framework-vue/src/components/Counter.vue b/examples/framework-vue/src/components/Counter.vue index 8179fb1d9..2703b8b9b 100644 --- a/examples/framework-vue/src/components/Counter.vue +++ b/examples/framework-vue/src/components/Counter.vue @@ -1,11 +1,11 @@ <template> <div class="counter"> - <button @click="subtract()">-</button> - <pre>{{ count }}</pre> - <button @click="add()">+</button> + <button @click="subtract()">-</button> + <pre>{{ count }}</pre> + <button @click="add()">+</button> </div> <div class="children"> - <slot /> + <slot /> </div> </template> @@ -13,15 +13,15 @@ import { ref } from 'vue'; export default { setup() { - const count = ref(0) - const add = () => count.value = count.value + 1; - const subtract = () => count.value = count.value - 1; + const count = ref(0); + const add = () => (count.value = count.value + 1); + const subtract = () => (count.value = count.value - 1); return { count, add, - subtract - } - } -} + subtract, + }; + }, +}; </script> |