chore: update types

This commit is contained in:
vben
2024-06-02 20:47:50 +08:00
parent b200ae9997
commit ce0c3834ed
31 changed files with 485 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { LocaleSupportType } from '@vben/types';
import type { SupportedLanguagesType } from '@vben/types';
import { IcBaselineLanguage } from '@vben-core/iconify';
import {
@@ -18,7 +18,7 @@ defineOptions({
const menus = SUPPORT_LANGUAGES;
async function handleUpdate(value: string) {
const locale = value as LocaleSupportType;
const locale = value as SupportedLanguagesType;
updatePreferences({
app: {
locale,

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { LocaleSupportType } from '@vben/types';
import type { SupportedLanguagesType } from '@vben/types';
import {
COLOR_PRIMARY_RESETS,
@@ -12,7 +12,7 @@ import { loadLocaleMessages } from '@vben/locales';
import Preferences from './preferences.vue';
function updateLocale(value: string) {
const locale = value as LocaleSupportType;
const locale = value as SupportedLanguagesType;
updatePreferences({
app: { locale },
});

View File

@@ -22,7 +22,7 @@ const appName = computed(() => preferences.app.name);
>
<AuthenticationFromView
v-if="authPanelLeft"
class="min-h-full w-2/5"
class="-enter-x min-h-full w-2/5"
transition-name="slide-left"
/>
@@ -50,7 +50,7 @@ const appName = computed(() => preferences.app.name);
<div
class="absolute inset-0 h-full w-full bg-[var(--color-authentication)]"
>
<div class="flex-col-center mr-20 h-full">
<div class="flex-col-center -enter-x mr-20 h-full">
<SloganIcon :alt="appName" class="animate-float h-64 w-2/5" />
<div class="text-1xl mt-6 font-sans text-white lg:text-2xl">
{{ $t('authentication.layout-title') }}
@@ -75,12 +75,7 @@ const appName = computed(() => preferences.app.name);
</div>
<AuthenticationFromView
v-if="authPanelRight"
class="min-h-full w-2/5 flex-1"
class="enter-x min-h-full w-2/5 flex-1"
/>
</div>
</template>
<!-- background-image: radial-gradient(
rgba(255, 255, 255, 0.1) 1px,
transparent 1px
); -->