board.vue 949 B

1234567891011121314151617181920212223242526
  1. <!--
  2. * @Author: NMTuan
  3. * @Email: NMTuan@qq.com
  4. * @Date: 2024-02-18 11:48:34
  5. * @LastEditTime: 2024-02-22 13:17:49
  6. * @LastEditors: NMTuan
  7. * @Description:
  8. * @FilePath: \timeNow\components\clock\board.vue
  9. -->
  10. <template>
  11. <div class="text-zinc-200 text-[22vw] leading-[24vw] text-center font-digital-dismay">
  12. <span>{{ dateStore.hour12 }}</span>
  13. <span class="transition-all"
  14. :class="[settingStore.flicker && (dateStore.second % 2 === 0 ? 'opacity-1' : 'opacity-0')]">:</span>
  15. <span>{{ dateStore.minute }}</span>
  16. <template v-if="settingStore.showSecond">
  17. <span class="transition-all"
  18. :class="[settingStore.flicker && (dateStore.second % 2 === 0 ? 'opacity-1' : 'opacity-0')]">:</span>
  19. <span>{{ dateStore.second }}</span>
  20. </template>
  21. </div>
  22. </template>
  23. <script setup>
  24. const dateStore = useDateStore()
  25. const settingStore = useSettingStore()
  26. </script>