summaryrefslogtreecommitdiff
path: root/examples/framework-multiple/src/components/VueCounter.vue
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-multiple/src/components/VueCounter.vue')
-rw-r--r--examples/framework-multiple/src/components/VueCounter.vue27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/framework-multiple/src/components/VueCounter.vue b/examples/framework-multiple/src/components/VueCounter.vue
new file mode 100644
index 000000000..8179fb1d9
--- /dev/null
+++ b/examples/framework-multiple/src/components/VueCounter.vue
@@ -0,0 +1,27 @@
+<template>
+ <div class="counter">
+ <button @click="subtract()">-</button>
+ <pre>{{ count }}</pre>
+ <button @click="add()">+</button>
+ </div>
+ <div class="children">
+ <slot />
+ </div>
+</template>
+
+<script>
+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;
+
+ return {
+ count,
+ add,
+ subtract
+ }
+ }
+}
+</script>
c9c7?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Fred K. Schott 29-914/+698 2022-04-10correct changesetsGravatar Fred K. Schott 3-3/+11 2022-04-10chore: webapi test now use chai (#3048)Gravatar Juan Martín Seery 16-814/+539 2022-04-10update test names containing spacesGravatar Fred K. Schott 26-17/+17 2022-04-11[ci] formatGravatar FredKSchott 2-8/+7 2022-04-10Fix SSR static build public file copying. fixes #3016 (#3037)Gravatar Steve Lee 8-5/+48 * Fix SSR static build public file copying * chore: update lockfile * remove dirname and use URL constructor * Cleanup test and actually test what it says it tests Co-authored-by: Nate Moore <nate@skypack.dev> 2022-04-10fix our weird beta release issues (#3031)Gravatar Fred K. Schott 4-6/+116 2022-04-10update tailwind integration readmeGravatar Fred K. Schott 2-9/+38 2022-04-10Fixed MD Lint issues (#3038)Gravatar Rafid Muhymin Wafi 1-12/+11