123456789101112131415161718 |
- <script setup lang="ts">
- import { ref } from "vue";
- const count = ref(0);
- </script>
- <template>
- <div class="home-content">
- <span>{{ count }}</span>
- <button @click="count++">test</button>
- </div>
- </template>
- <style lang="scss" scoped>
- .home-content {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- </style>
|