Skip to content

Commit

Permalink
docs(VDatePicker): hide displayValue from props list
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Sek committed Jan 17, 2025
1 parent cb2d96b commit 8775ade
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { MaybeTransition } from '@/composables/transition'

// Utilities
import { computed, ref, shallowRef, watch } from 'vue'
import { genericComponent, propsFactory } from '@/util'
import { genericComponent, omit, propsFactory } from '@/util'

// Types
import type { PropType } from 'vue'
Expand Down Expand Up @@ -41,7 +41,7 @@ export const makeVDatePickerMonthProps = propsFactory({
default: 'picker-reverse-transition',
},

...makeCalendarProps(),
...omit(makeCalendarProps(), ['displayValue']),
}, 'VDatePickerMonth')

export const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({
Expand All @@ -58,7 +58,10 @@ export const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({
setup (props, { emit, slots }) {
const daysRef = ref()

const { daysInMonth, model, weekNumbers } = useCalendar(props)
const { daysInMonth, model, weekNumbers } = useCalendar({
...props,
displayValue: null,
})
const adapter = useDate()

const rangeStart = shallowRef()
Expand Down

0 comments on commit 8775ade

Please sign in to comment.