diff --git a/src/settings/SettingsOverlayContent.tsx b/src/settings/SettingsOverlayContent.tsx
index c7a1caa..8ef3bb5 100644
--- a/src/settings/SettingsOverlayContent.tsx
+++ b/src/settings/SettingsOverlayContent.tsx
@@ -5,12 +5,13 @@ import BackgroundPage from '@/layout/background/BackgroundPage'
import ThemeProvider from '@/utils/ThemeProvider'
import BlockSettings from '@/layout/grid/BlockSettings'
import SearchSetting from '@/layout/grid/SearchSetting'
+import TimeSetting from '@/layout/grid/TimeSetting'
export default defineComponent(() => {
const router = useRouterStore()
return () => (
-
+
{router.path === 'settings-user' ? (
@@ -20,6 +21,8 @@ export default defineComponent(() => {
) : router.path === 'settings-search' ? (
+ ) : router.path === 'settings-time' ? (
+
) : null}
diff --git a/src/settings/useSettingsStore.ts b/src/settings/useSettingsStore.ts
index 9e6e3b4..3d824d0 100644
--- a/src/settings/useSettingsStore.ts
+++ b/src/settings/useSettingsStore.ts
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
import { computed, reactive } from 'vue'
export type VisibleState = 'show' | 'auto' | ''
-
+export type TimeUnit = 'date' | 'week' | '12hour' | 'lunal' | 'second';
export default defineStore(
'settings',
() => {
@@ -15,8 +15,8 @@ export default defineStore(
showSider: 'show' as VisibleState,
showDock: 'show' as VisibleState,
showPet: 'show' as VisibleState,
- showDate: true,
showTime: true,
+ timeOptions: ['date', 'week', '12hour', 'lunal', 'second'] as TimeUnit[],
showAdder: true,
showHistory: true,
// 尺寸
@@ -27,7 +27,8 @@ export default defineStore(
showBlockLabel: true,
// 搜索
searchWidth: 30,
- searchRadius: 12
+ searchRadius: 12,
+ searchOpacity: 0.75
})
return { state, blockInner: computed(() => state.blockSize - 2 * state.blockPadding) }
diff --git a/src/utils/ThemeProvider.tsx b/src/utils/ThemeProvider.tsx
index 346f726..24395d1 100644
--- a/src/utils/ThemeProvider.tsx
+++ b/src/utils/ThemeProvider.tsx
@@ -19,10 +19,10 @@ export default defineComponent({
colorBgBase: props.dark ? '#393a41' : '#fff',
colorBorder: 'transparent'
},
-
+
components: {
Slider: {
-
+ railSize: 6
},
Button: {
colorPrimary: '#f88e14'
diff --git a/src/widgets/calendar/index.ts b/src/widgets/calendar/index.ts
index a8445f9..933419b 100644
--- a/src/widgets/calendar/index.ts
+++ b/src/widgets/calendar/index.ts
@@ -5,7 +5,7 @@ export default {
name: 'calendar',
label: '日历',
description: '日历信息',
- icon: '/icons/calendarIcon.png',
+ icon: '/tab/icons/calendarIcon.png',
modal: asyncLoader(() => import('./Modal')),
list: [
{
diff --git a/src/widgets/constellation/Large.tsx b/src/widgets/constellation/Large.tsx
index 81e92bb..4555fd8 100644
--- a/src/widgets/constellation/Large.tsx
+++ b/src/widgets/constellation/Large.tsx
@@ -10,7 +10,7 @@ export default defineComponent(() => {
{
{
>
{zodiacMap.get(store.state.selectCode)}
diff --git a/src/widgets/constellation/Middle.tsx b/src/widgets/constellation/Middle.tsx
index f08d1f0..bfe89ec 100644
--- a/src/widgets/constellation/Middle.tsx
+++ b/src/widgets/constellation/Middle.tsx
@@ -9,7 +9,7 @@ export default defineComponent(() => {
{
{dayjs().format('YYYY.MM.DD')}
@@ -35,7 +35,7 @@ export default defineComponent(() => {
{zodiacMap.get(store.state.selectCode)}
diff --git a/src/widgets/constellation/Modal.tsx b/src/widgets/constellation/Modal.tsx
index 604590b..2bcf467 100644
--- a/src/widgets/constellation/Modal.tsx
+++ b/src/widgets/constellation/Modal.tsx
@@ -11,7 +11,7 @@ export default defineComponent(() => {
{
@@ -22,27 +22,27 @@ export default defineComponent(() => {
{zodiacMap.get(store.state.selectCode)}
{
open.value = true
@@ -64,7 +64,7 @@ export default defineComponent(() => {
'absolute top-1/2 -translate-y-1/2 hover:scale-110 duration-150 w-10 cursor-pointer',
page.value === 1 ? 'right-5' : 'left-5 rotate-180 '
)}
- src="/icons/constellation/xingzuo_right.png"
+ src="/tab/icons/constellation/xingzuo_right.png"
>
{Array.from(zodiacMap)
@@ -82,7 +82,7 @@ export default defineComponent(() => {
>
@@ -111,8 +111,8 @@ export default defineComponent(() => {
index
- ? '/icons/stared.png'
- : '/icons/starun.png'
+ ? '/tab/icons/stared.png'
+ : '/tab/icons/starun.png'
}
class={'w-[20px] h-[20px]'}
>
@@ -126,8 +126,8 @@ export default defineComponent(() => {
index
- ? '/icons/stared.png'
- : '/icons/starun.png'
+ ? '/tab/icons/stared.png'
+ : '/tab/icons/starun.png'
}
class={'w-[20px] h-[20px]'}
>
@@ -141,8 +141,8 @@ export default defineComponent(() => {
index
- ? '/icons/stared.png'
- : '/icons/starun.png'
+ ? '/tab/icons/stared.png'
+ : '/tab/icons/starun.png'
}
class={'w-[20px] h-[20px]'}
>
diff --git a/src/widgets/constellation/Small.tsx b/src/widgets/constellation/Small.tsx
index b4c4562..a241753 100644
--- a/src/widgets/constellation/Small.tsx
+++ b/src/widgets/constellation/Small.tsx
@@ -5,18 +5,18 @@ export default defineComponent(() => {
-
+
游戏折扣
立即查看
-
+
diff --git a/src/widgets/constellation/index.ts b/src/widgets/constellation/index.ts
index 3c76508..9e48747 100644
--- a/src/widgets/constellation/index.ts
+++ b/src/widgets/constellation/index.ts
@@ -5,7 +5,7 @@ export default {
name: 'constellation',
label: '星座运势',
description: '你可查看星座运势',
- icon: '/icons/constellation_icon.png',
+ icon: '/tab/icons/constellation_icon.png',
modal: asyncLoader(() => import('./Modal')),
list: [
{
diff --git a/src/widgets/constellation/starCicle.tsx b/src/widgets/constellation/starCicle.tsx
index f98340a..8d5ad7a 100644
--- a/src/widgets/constellation/starCicle.tsx
+++ b/src/widgets/constellation/starCicle.tsx
@@ -27,7 +27,7 @@ export default defineComponent({
backgroundPosition: 'center'
}}
>
-
+