diff --git a/packages/@core/ui-kit/menu-ui/src/components/menu.vue b/packages/@core/ui-kit/menu-ui/src/components/menu.vue index b6be6bd5..13f9754a 100644 --- a/packages/@core/ui-kit/menu-ui/src/components/menu.vue +++ b/packages/@core/ui-kit/menu-ui/src/components/menu.vue @@ -175,10 +175,10 @@ function calcSliceIndex() { } function debounce(fn: () => void, wait = 33.34) { - let timmer: ReturnType | null; + let timer: ReturnType | null; return () => { - timmer && clearTimeout(timmer); - timmer = setTimeout(() => { + timer && clearTimeout(timer); + timer = setTimeout(() => { fn(); }, wait); }; diff --git a/packages/effects/common-ui/src/authentication/forget-password.vue b/packages/effects/common-ui/src/authentication/forget-password.vue index a296199e..e94f5b5e 100644 --- a/packages/effects/common-ui/src/authentication/forget-password.vue +++ b/packages/effects/common-ui/src/authentication/forget-password.vue @@ -42,7 +42,7 @@ const emailStatus = computed(() => { return formState.submitted && !formState.email ? 'error' : 'default'; }); -function handleSubmut() { +function handleSubmit() { formState.submitted = true; if (emailStatus.value !== 'default') { return; @@ -76,7 +76,7 @@ function goToLogin() { />
- + {{ $t('authentication.sendResetLink') }} diff --git a/packages/effects/common-ui/src/authentication/register.vue b/packages/effects/common-ui/src/authentication/register.vue index 3969c2f0..e2c91273 100644 --- a/packages/effects/common-ui/src/authentication/register.vue +++ b/packages/effects/common-ui/src/authentication/register.vue @@ -43,7 +43,7 @@ const router = useRouter(); const formState = reactive({ agreePolicy: false, - comfirmPassword: '', + confirmPassword: '', password: '', submitted: false, username: '', @@ -57,8 +57,8 @@ const passwordStatus = computed(() => { return formState.submitted && !formState.password ? 'error' : 'default'; }); -const comfirmPasswordStatus = computed(() => { - return formState.submitted && formState.password !== formState.comfirmPassword +const confirmPasswordStatus = computed(() => { + return formState.submitted && formState.password !== formState.confirmPassword ? 'error' : 'default'; }); @@ -116,12 +116,12 @@ function goToLogin() { diff --git a/packages/effects/common-ui/src/fallback/fallback.ts b/packages/effects/common-ui/src/fallback/fallback.ts index 616a3f3a..5f8e1937 100644 --- a/packages/effects/common-ui/src/fallback/fallback.ts +++ b/packages/effects/common-ui/src/fallback/fallback.ts @@ -16,7 +16,7 @@ interface FallbackProps { /** * @zh_CN 内置类型 */ - status?: '403' | '404' | '500' | 'comming-soon' | 'offline'; + status?: '403' | '404' | '500' | 'coming-soon' | 'offline'; /** * @zh_CN 页面提示语 */ diff --git a/packages/effects/common-ui/src/fallback/fallback.vue b/packages/effects/common-ui/src/fallback/fallback.vue index a0cd19a7..4425a685 100644 --- a/packages/effects/common-ui/src/fallback/fallback.vue +++ b/packages/effects/common-ui/src/fallback/fallback.vue @@ -19,7 +19,7 @@ const props = withDefaults(defineProps(), { homePath: '/', image: '', showBack: true, - status: 'comming-soon', + status: 'coming-soon', title: '', }); @@ -27,7 +27,7 @@ const Icon403 = defineAsyncComponent(() => import('./icons/icon-403.vue')); const Icon404 = defineAsyncComponent(() => import('./icons/icon-404.vue')); const Icon500 = defineAsyncComponent(() => import('./icons/icon-500.vue')); const IconHello = defineAsyncComponent( - () => import('./icons/icon-comming-soon.vue'), + () => import('./icons/icon-coming-soon.vue'), ); const IconOffline = defineAsyncComponent( () => import('./icons/icon-offline.vue'), @@ -51,7 +51,7 @@ const titleText = computed(() => { case 'offline': { return $t('fallback.offlineError'); } - case 'comming-soon': { + case 'coming-soon': { return $t('fallback.comingSoon'); } default: { @@ -97,7 +97,7 @@ const fallbackIcon = computed(() => { case 'offline': { return IconOffline; } - case 'comming-soon': { + case 'coming-soon': { return IconHello; } default: { diff --git a/packages/effects/common-ui/src/fallback/icons/icon-comming-soon.vue b/packages/effects/common-ui/src/fallback/icons/icon-coming-soon.vue similarity index 100% rename from packages/effects/common-ui/src/fallback/icons/icon-comming-soon.vue rename to packages/effects/common-ui/src/fallback/icons/icon-coming-soon.vue diff --git a/packages/effects/layouts/src/basic/menu/extra-menu.vue b/packages/effects/layouts/src/basic/menu/extra-menu.vue index aadea248..a140c43d 100644 --- a/packages/effects/layouts/src/basic/menu/extra-menu.vue +++ b/packages/effects/layouts/src/basic/menu/extra-menu.vue @@ -8,7 +8,7 @@ import { Menu, MenuProps } from '@vben-core/menu-ui'; import { useNavigation } from './use-navigation'; interface Props extends MenuProps { - collspae?: boolean; + collapse?: boolean; menus: MenuRecordRaw[]; }