-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59d3511
commit cb3694c
Showing
15 changed files
with
112 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,42 @@ | ||
import { transformObjectToOption } from '@/utils/common'; | ||
import { transformRecordToOption } from '@/utils/common'; | ||
|
||
export const loginModuleLabels: Record<UnionKey.LoginModule, App.I18n.I18nKey> = { | ||
export const themeSchemaRecord: Record<UnionKey.ThemeScheme, App.I18n.I18nKey> = { | ||
light: 'theme.themeSchema.light', | ||
dark: 'theme.themeSchema.dark', | ||
auto: 'theme.themeSchema.auto' | ||
}; | ||
|
||
export const loginModuleRecord: Record<UnionKey.LoginModule, App.I18n.I18nKey> = { | ||
'pwd-login': 'page.login.pwdLogin.title', | ||
'code-login': 'page.login.codeLogin.title', | ||
register: 'page.login.register.title', | ||
'reset-pwd': 'page.login.resetPwd.title', | ||
'bind-wechat': 'page.login.bindWeChat.title' | ||
}; | ||
|
||
export const themeLayoutModeLabels: Record<UnionKey.ThemeLayoutMode, string> = { | ||
export const themeLayoutModeRecord: Record<UnionKey.ThemeLayoutMode, string> = { | ||
vertical: '左侧菜单模式', | ||
horizontal: '顶部菜单模式', | ||
'vertical-mix': '左侧菜单混合模式', | ||
'horizontal-mix': '顶部菜单混合模式' | ||
}; | ||
export const themeLayoutModeOptions = transformObjectToOption(themeLayoutModeLabels); | ||
export const themeLayoutModeOptions = transformRecordToOption(themeLayoutModeRecord); | ||
|
||
export const themeScrollModeLabels: Record<UnionKey.ThemeScrollMode, string> = { | ||
export const themeScrollModeRecord: Record<UnionKey.ThemeScrollMode, string> = { | ||
wrapper: '外层滚动', | ||
content: '主体滚动' | ||
}; | ||
export const themeScrollModeOptions = transformObjectToOption(themeScrollModeLabels); | ||
export const themeScrollModeOptions = transformRecordToOption(themeScrollModeRecord); | ||
|
||
export const themeTabModeLabels: Record<UnionKey.ThemeTabMode, string> = { | ||
export const themeTabModeRecord: Record<UnionKey.ThemeTabMode, string> = { | ||
chrome: '谷歌风格', | ||
button: '按钮风格' | ||
}; | ||
export const themeTabModeOptions = transformObjectToOption(themeTabModeLabels); | ||
export const themeTabModeOptions = transformRecordToOption(themeTabModeRecord); | ||
|
||
export const themeHorizontalMenuPositionLabels: Record<UnionKey.ThemeHorizontalMenuPosition, string> = { | ||
export const themeHorizontalMenuPositionRecord: Record<UnionKey.ThemeHorizontalMenuPosition, string> = { | ||
'flex-start': '居左', | ||
center: '居中', | ||
'flex-end': '居右' | ||
}; | ||
export const themeHorizontalMenuPositionOptions = transformObjectToOption(themeHorizontalMenuPositionLabels); | ||
|
||
// export const themeAnimateModeLabels: Record<UnionKey.ThemeAnimateMode, string> = { | ||
// 'zoom-fade': '渐变', | ||
// 'zoom-out': '闪现', | ||
// 'fade-slide': '滑动', | ||
// fade: '消退', | ||
// 'fade-bottom': '底部消退', | ||
// 'fade-scale': '缩放消退' | ||
// }; | ||
// export const themeAnimateModeOptions = transformObjectToOption(themeAnimateModeLabels); | ||
export const themeHorizontalMenuPositionOptions = transformRecordToOption(themeHorizontalMenuPositionRecord); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup lang="ts"> | ||
import { $t } from '@/locales'; | ||
defineOptions({ | ||
name: 'DarkMode' | ||
}); | ||
</script> | ||
|
||
<template> | ||
<ADivider>{{ $t('themeDrawer.darkMode') }}</ADivider> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters