HelloWorld.vue 846 B

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