HelloWorld.vue 787 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script setup lang="ts">
  2. import { ref } from 'vue'
  3. defineProps<{ msg: string }>()
  4. const count = ref(0)
  5. </script>
  6. <template>
  7. <h1>{{ msg }}</h1>
  8. <div class="card">
  9. <button type="button" @click="count++">count is {{ count }}</button>
  10. <p>
  11. Edit
  12. <code>components/HelloWorld.vue</code> to test HMR
  13. </p>
  14. </div>
  15. <p>
  16. Check out
  17. <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
  18. >create-vue</a
  19. >, the official Vue + Vite starter
  20. </p>
  21. <p>
  22. Install
  23. <a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>
  24. in your IDE for a better DX
  25. </p>
  26. <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
  27. </template>
  28. <style scoped>
  29. .read-the-docs {
  30. color: #888;
  31. }
  32. </style>