feat(I18n): Add Ii8n

feat(LocaleDropdown): Add LocaleDropdown Component

feat(store): Add localeStore
This commit is contained in:
kailong321200875
2022-01-03 09:41:34 +08:00
parent 45d657d44c
commit 3810b8c3b2
42 changed files with 1033 additions and 625 deletions

View File

@@ -1,7 +1,11 @@
<script setup lang="ts">
import { VThemeSwitch } from '@/components/ThemeSwitch'
import { ThemeSwitch } from '@/components/ThemeSwitch'
import { LocaleDropdown } from '@/components/LocaleDropdown'
import { useDesign } from '@/hooks/web/useDesign'
import { useI18n } from '@/hooks/web/useI18n'
import { ElCalendar } from 'element-plus'
import { VFrom } from '@/components/Form'
const { t } = useI18n()
const { getPrefixCls } = useDesign()
@@ -10,7 +14,20 @@ const prefixCls = getPrefixCls('login')
<template>
<div :class="prefixCls" class="h-[calc(100%)] relative">
<VThemeSwitch />
<Icon icon="icon:icon" />
<Icon icon="ant-design:eye-outlined" />
<ThemeSwitch />
<LocaleDropdown />
<ElCalendar />
<VFrom
:schema="[
{
label: 'input',
field: 'field1',
component: 'InputPassword'
}
]"
/>
{{ t('formDemo.default') }}
</div>
</template>