Skip to content

Commit

Permalink
Fix docs navigation example
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanreyes committed Mar 31, 2023
1 parent d3bc740 commit 7691008
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/.vitepress/components/calendar/NavigationMove.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,23 +194,24 @@ const positionOptions = ref([{ value: 1 }, { value: 2 }]);
const transitioning = ref(false);
function onMove(arg) {
if (calendar.value == null) return;
if (typeof arg === 'number') {
calendar.value.moveBy(arg, {
transition: this.transition,
position: this.position,
transition: transition.value,
position: position.value,
});
} else {
calendar.value.move(arg, {
transition: this.transition,
position: this.position,
transition: transition.value,
position: position.value,
});
}
}
function onMoveFocus(arg) {
calendar.value.focusDate(arg, {
transition: this.transition,
position: this.position,
transition: transition.value,
position: position.value,
});
}
</script>

0 comments on commit 7691008

Please sign in to comment.