HelloWorld.vue 626 B

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