chore: fix switch typo (#13201)

This commit is contained in:
Zane 2024-11-15 22:17:34 +08:00 committed by GitHub
parent 10b72e8ec1
commit 676177c027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ export default defineComponent({
return (
<div
class={bem('header-subtitle', { 'with-swicth': canSwitch })}
class={bem('header-subtitle', { 'with-switch': canSwitch })}
onClick={onClickSubtitle}
>
{canSwitch

View File

@ -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<CalendarSwitchMode>('none');
</script>
<template>
<SwicthModeField v-model="switchMode" />
<SwitchModeField v-model="switchMode" />
<demo-block card :title="t('basicUsage')">
<van-cell

View File

@ -80,7 +80,7 @@
&__header-subtitle {
font-size: var(--van-calendar-header-subtitle-font-size);
&--with-swicth {
&--with-switch {
display: flex;
align-items: center;
padding: 0 var(--van-padding-base);