SsHeadline.vue 579 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup lang="ts">
  2. import { useGlobalStore } from '@/stores/global';
  3. const global = useGlobalStore();
  4. </script>
  5. <template>
  6. <view class="headline" :class="{ spread: global.spread }">
  7. <view class="title">随时随地,问问商小川</view>
  8. </view>
  9. </template>
  10. <style scoped lang="scss">
  11. .headline {
  12. margin-bottom: 32rpx;
  13. transition: all 0.3s linear;
  14. overflow: hidden;
  15. .title {
  16. color: #101333;
  17. font-size: 56rpx;
  18. line-height: 56rpx;
  19. font-weight: 600;
  20. margin: 32rpx 0;
  21. text-align: center;
  22. }
  23. &.spread {
  24. height: 0;
  25. margin-bottom: 0;
  26. }
  27. }
  28. </style>