setting.ts 685 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @Author: NMTuan
  3. * @Email: NMTuan@qq.com
  4. * @Date: 2024-02-21 21:47:50
  5. * @LastEditTime: 2024-02-21 21:56:15
  6. * @LastEditors: NMTuan
  7. * @Description:
  8. * @FilePath: \timeNow\stores\setting.ts
  9. */
  10. import { defineStore } from 'pinia'
  11. export const useSettingStore = defineStore('setting', () => {
  12. const hour24 = ref(true) // 24小时制
  13. const showSecond = ref(true) // 显示秒数
  14. const flicker = ref(false) // 闪烁冒号
  15. const showMonthLine = ref(true)
  16. const showDayLine = ref(true)
  17. const showTimeLine = ref(true)
  18. return {
  19. hour24,
  20. showSecond,
  21. flicker,
  22. showMonthLine,
  23. showDayLine,
  24. showTimeLine
  25. }
  26. })