HomeLargeTitle.vue 1015 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <Touchable direction="row" center :padding="[25, 0, 20, 0]" @click="emit('click')">
  3. <slot name="icon">
  4. <Image :src="icon" :width="75" :height="46" mode="widthFix" />
  5. </slot>
  6. <Width :width="15" />
  7. <Text :text="title" fontConfig="h4" :color="active ? '#55989a' : '#5f3f2c'" fontFamily="SongtiSCBlack" />
  8. </Touchable>
  9. </template>
  10. <script setup lang="ts">
  11. import Image from '@/components/basic/Image.vue';
  12. import Text from '@/components/basic/Text.vue';
  13. import Touchable from '@/components/feedback/Touchable.vue';
  14. import FlexRow from '@/components/layout/FlexRow.vue';
  15. import Width from '@/components/layout/space/Width.vue';
  16. const props = defineProps({
  17. title: {
  18. type: String,
  19. default: '',
  20. },
  21. icon: {
  22. type: String,
  23. default: 'https://xy.wenlvti.net/app_static/images/home/HomeTitleIcon.png',
  24. },
  25. lightCount: {
  26. type: Number,
  27. default: 2,
  28. },
  29. active: {
  30. type: Boolean,
  31. default: false,
  32. },
  33. });
  34. const emit = defineEmits(['click']);
  35. </script>