index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--
  2. * @Author: NMTuan
  3. * @Email: NMTuan@qq.com
  4. * @Date: 2024-02-20 16:11:39
  5. * @LastEditTime: 2024-02-20 21:22:21
  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 name="i-ri-cup-line"></HeaderIcon>
  14. <HeaderIcon name="i-ri-github-line" href="https://github.com/NMTuan/timeNow"></HeaderIcon>
  15. <ClientOnly>
  16. <HeaderToggleFullScreen></HeaderToggleFullScreen>
  17. </ClientOnly>
  18. <HeaderIcon @click="optionsVisiable = true" name="i-ri-equalizer-line"></HeaderIcon>
  19. <!-- <HeaderIcon name="i-ri-twitter-line"></HeaderIcon> -->
  20. <USlideover v-model="optionsVisiable">
  21. <UCard class="flex flex-col flex-1"
  22. :ui="{ body: { base: 'flex-1' }, ring: '', divide: 'divide-y divide-zinc-100 dark:divide-zinc-800' }">
  23. <template #header>
  24. <div class="flex items-center justify-between">
  25. <h3 class="text-base font-semibold leading-6 text-zinc-900 dark:text-zinc-300">
  26. Settings
  27. </h3>
  28. <UButton color="gray" variant="ghost" icon="i-ri-close-line" @click="optionsVisiable = false" />
  29. </div>
  30. </template>
  31. <p v-for="i in 100">{{ i }}</p>
  32. </UCard>
  33. </USlideover>
  34. </div>
  35. </template>
  36. <script setup>
  37. const optionsVisiable = ref(false)
  38. </script>