HelloWorld.vue 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. Learn more about IDE Support for Vue in the
  23. <a
  24. href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
  25. target="_blank"
  26. >Vue Docs Scaling up Guide</a
  27. >.
  28. </p>
  29. <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
  30. </template>
  31. <style scoped>
  32. .read-the-docs {
  33. color: #888;
  34. }
  35. </style>