Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

HelloWorld.vue 956B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template lang="pug">
  2. .wrapper(v-if="state.loaded")
  3. h1 {{ msg }}
  4. p
  5. a(href="https://vitejs.dev/guide/features.html" target="_blank") Vite Documentation |
  6. a(href="https://v3.vuejs.org/" target="_blank") Vue 3 Documentation
  7. button(@click="state.count++") count is: {{ state.count }}
  8. p Edit
  9. code components/HelloWorld.vue
  10. p to test hot module replacement.
  11. </template>
  12. <script setup>
  13. import { defineProps, reactive } from 'vue'
  14. import { api } from '@/utils'
  15. import { Profile } from '@/entities/profile'
  16. defineProps({
  17. msg: String
  18. })
  19. const state = reactive({
  20. count: 0,
  21. loaded: false,
  22. profile: null
  23. })
  24. state.profile = new Profile({
  25. email: 'donot@disturb.org',
  26. street: '123 strawberry ln',
  27. apt: 2,
  28. city: 'candyland',
  29. state: 'lollipop',
  30. zip: 90002
  31. })
  32. console.log(state.profile)
  33. console.log(state.profile.isValid())
  34. </script>
  35. <style lang="postcss">
  36. a
  37. color: #42b983
  38. </style>