chore: rename variables and comments

This commit is contained in:
chenjiahan
2021-03-02 17:55:22 +08:00
parent a0addef294
commit 6e5329cbe0
50 changed files with 85 additions and 82 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import {
formatMonthTitle,
} from '../utils';
// Composition
// Composables
import { useToggle } from '@vant/use';
import { useExpose } from '../../composables/use-expose';
import { useHeight } from '../../composables/use-height';
+3 -3
View File
@@ -17,7 +17,7 @@ import {
getDayByOffset,
} from './utils';
// Composition
// Composables
import { raf, useRect, onMountedOrActivated } from '@vant/use';
import { useRefs } from '../composables/use-refs';
import { useExpose } from '../composables/use-expose';
@@ -424,7 +424,7 @@ export default createComponent({
}
};
const togglePopup = (value: boolean) => emit('update:show', value);
const updateShow = (value: boolean) => emit('update:show', value);
const renderMonth = (date: Date, index: number) => {
const showMonthTitle = index !== 0 || !props.showSubtitle;
@@ -533,7 +533,7 @@ export default createComponent({
teleport={props.teleport}
closeOnPopstate={props.closeOnPopstate}
closeOnClickOverlay={props.closeOnClickOverlay}
{...{ 'onUpdate:show': togglePopup }}
{...{ 'onUpdate:show': updateShow }}
>
{renderCalendar()}
</Popup>