aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/.playground/components/content/CounterButton.vue
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-19 17:30:39 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-19 17:30:39 +0800
commit3adc965dd09490b7efa1cce9f09b0a3b30970277 (patch)
treef813abb07d7b003984aa74e3154752b6ffc3ccd5 /docs/.playground/components/content/CounterButton.vue
parentc7c9ca6f0c8eddf6d34cd40779f3b2d9463f3a46 (diff)
downloadHydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.tar.gz
HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.zip
✨优化文档
Diffstat (limited to 'docs/.playground/components/content/CounterButton.vue')
-rw-r--r--docs/.playground/components/content/CounterButton.vue17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/.playground/components/content/CounterButton.vue b/docs/.playground/components/content/CounterButton.vue
new file mode 100644
index 0000000..35ef97b
--- /dev/null
+++ b/docs/.playground/components/content/CounterButton.vue
@@ -0,0 +1,17 @@
+<script setup>
+const count = ref(0)
+</script>
+
+<template>
+ <button @click="count++">
+ {{ count }}
+ </button>
+</template>
+
+<style scoped>
+button {
+ border: 1px #ddd solid;
+ padding: 3px 10px;
+ border-radius: 5px;
+}
+</style>