From 676177c027688f4febedcdea5647dec265fe36b2 Mon Sep 17 00:00:00 2001 From: Zane Date: Fri, 15 Nov 2024 22:17:34 +0800 Subject: [PATCH] chore: fix switch typo (#13201) --- packages/vant/src/calendar/CalendarHeader.tsx | 2 +- .../demo/{SwicthModeField.vue => SwitchModeField.vue} | 0 packages/vant/src/calendar/demo/index.vue | 4 ++-- packages/vant/src/calendar/index.less | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename packages/vant/src/calendar/demo/{SwicthModeField.vue => SwitchModeField.vue} (100%) diff --git a/packages/vant/src/calendar/CalendarHeader.tsx b/packages/vant/src/calendar/CalendarHeader.tsx index 2f707357e..cfc68c603 100644 --- a/packages/vant/src/calendar/CalendarHeader.tsx +++ b/packages/vant/src/calendar/CalendarHeader.tsx @@ -142,7 +142,7 @@ export default defineComponent({ return (
{canSwitch diff --git a/packages/vant/src/calendar/demo/SwicthModeField.vue b/packages/vant/src/calendar/demo/SwitchModeField.vue similarity index 100% rename from packages/vant/src/calendar/demo/SwicthModeField.vue rename to packages/vant/src/calendar/demo/SwitchModeField.vue diff --git a/packages/vant/src/calendar/demo/index.vue b/packages/vant/src/calendar/demo/index.vue index 9b6d139ad..c4f1726c3 100644 --- a/packages/vant/src/calendar/demo/index.vue +++ b/packages/vant/src/calendar/demo/index.vue @@ -3,7 +3,7 @@ import VanCell from '../../cell'; import VanCalendar from '..'; import { reactive, ref } from 'vue'; import { useTranslate } from '../../../docs/site'; -import SwicthModeField from './SwicthModeField.vue'; +import SwitchModeField from './SwitchModeField.vue'; import TiledDisplay from './TiledDisplay.vue'; import type { CalendarDayItem, CalendarSwitchMode } from '../types'; @@ -197,7 +197,7 @@ const switchMode = ref('none');