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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template lang="pug">
  2. .card.f-col.start.b-solid.rounded.bg-primary
  3. header.t-right.dark
  4. h3 {{ card.name }}
  5. main
  6. section
  7. img(alt="Vue logo" style="width: 100%;" src="@/assets/logo.png")
  8. footer
  9. button(@click="state.count++") {{ state.count }}
  10. button(@click="close") close
  11. </template>
  12. <script setup>
  13. import { defineProps, reactive, getCurrentInstance } from 'vue'
  14. const instance = getCurrentInstance()
  15. const props = defineProps({
  16. msg: String,
  17. card: Object
  18. })
  19. const state = reactive({
  20. count: 0,
  21. loaded: false,
  22. profile: null
  23. })
  24. const close = e => {
  25. instance.emit('remove', props.card)
  26. }
  27. </script>
  28. <style lang="postcss">
  29. @import '@/sss/theme.sss'
  30. @import '@/sss/variables.sss'
  31. .card
  32. margin: 0 $ms-3 0 0
  33. height: $ms-8
  34. width: $ms-7
  35. header, main, footer
  36. padding: 0 $ms-1
  37. header
  38. padding-top: $ms-1
  39. footer
  40. padding-bottom: $ms-1
  41. </style>