summaryrefslogtreecommitdiff
path: root/examples/with-markdown
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2021-07-20 04:07:49 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-07-20 04:07:49 +0000
commit50f82e1a53ec5329990ee66fe62adba3fcbcb9e6 (patch)
treebee01a458fe44e48a396abcd51f912f09d295f55 /examples/with-markdown
parent07e533402e234d31b7cf9741bf2d08c32eda88c0 (diff)
downloadastro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.tar.gz
astro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.tar.zst
astro-50f82e1a53ec5329990ee66fe62adba3fcbcb9e6.zip
[ci] yarn format
Diffstat (limited to 'examples/with-markdown')
-rw-r--r--examples/with-markdown/public/styles/global.scss2
-rw-r--r--examples/with-markdown/src/components/VueCounter.vue22
2 files changed, 12 insertions, 12 deletions
diff --git a/examples/with-markdown/public/styles/global.scss b/examples/with-markdown/public/styles/global.scss
index 1eda4646f..5d758a003 100644
--- a/examples/with-markdown/public/styles/global.scss
+++ b/examples/with-markdown/public/styles/global.scss
@@ -3,4 +3,4 @@
body {
max-width: 900px;
margin: auto;
-} \ No newline at end of file
+}
diff --git a/examples/with-markdown/src/components/VueCounter.vue b/examples/with-markdown/src/components/VueCounter.vue
index 8179fb1d9..2703b8b9b 100644
--- a/examples/with-markdown/src/components/VueCounter.vue
+++ b/examples/with-markdown/src/components/VueCounter.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>