index.vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!--
  2. * @Author: NMTuan
  3. * @Email: NMTuan@qq.com
  4. * @Date: 2024-02-20 16:11:39
  5. * @LastEditTime: 2024-02-22 12:42:38
  6. * @LastEditors: NMTuan
  7. * @Description:
  8. * @FilePath: \timeNow\components\header\index.vue
  9. -->
  10. <template>
  11. <div class="w-full text-right pr-6 pt-6">
  12. <!-- -->
  13. <HeaderIcon @click="donateVisiable = true" name="i-ri-cup-line"></HeaderIcon>
  14. <UModal v-model="donateVisiable" :ui="{ width: 'sm:max-w-4xl' }">
  15. <div class="py-16">
  16. <div class="flex justify-around">
  17. <img class="h-96" src="/wepay.jpg" alt="">
  18. <img class="h-96" src="/alipay.jpg" alt="">
  19. </div>
  20. </div>
  21. </UModal>
  22. <HeaderIcon name="i-ri-github-line" href="https://github.com/NMTuan/timeNow"></HeaderIcon>
  23. <ClientOnly>
  24. <HeaderToggleFullScreen></HeaderToggleFullScreen>
  25. </ClientOnly>
  26. <!-- <HeaderIcon name="i-ri-twitter-line"></HeaderIcon> -->
  27. <HeaderIcon @click="optionsVisiable = true" name="i-ri-equalizer-line"></HeaderIcon>
  28. <USlideover v-model="optionsVisiable">
  29. <UCard class="flex flex-col flex-1"
  30. :ui="{ body: { base: 'flex-1' }, ring: '', divide: 'divide-y divide-zinc-100 dark:divide-zinc-800' }">
  31. <template #header>
  32. <div class="flex items-center justify-between">
  33. <h3 class="text-base font-semibold leading-6 text-zinc-900 dark:text-zinc-300">
  34. Settings
  35. </h3>
  36. <UButton color="gray" variant="ghost" icon="i-ri-close-line" @click="optionsVisiable = false" />
  37. </div>
  38. </template>
  39. <UFormGroup class="mb-6">
  40. <template #label>
  41. <div class="text-base">表盘</div>
  42. </template>
  43. <UCheckbox class="my-4" v-model="settingStore.hour24" label="24小时制"></UCheckbox>
  44. <UCheckbox class="my-4" v-model="settingStore.showSecond" label="显示秒数"></UCheckbox>
  45. <UCheckbox class="my-4" v-model="settingStore.flicker" label="冒号闪动"></UCheckbox>
  46. </UFormGroup>
  47. <UFormGroup class="mb-6">
  48. <template #label>
  49. <div class="text-base">底部</div>
  50. </template>
  51. <UCheckbox class="my-4" v-model="settingStore.showTimeLine" label="显示日进度"></UCheckbox>
  52. <UCheckbox class="my-4" v-model="settingStore.showDayLine" label="显示月进度"></UCheckbox>
  53. <UCheckbox class="my-4" v-model="settingStore.showMonthLine" label="显示年进度"></UCheckbox>
  54. </UFormGroup>
  55. </UCard>
  56. </USlideover>
  57. </div>
  58. </template>
  59. <script setup>
  60. const settingStore = useSettingStore()
  61. const optionsVisiable = ref(false)
  62. const donateVisiable = ref(false)
  63. </script>