chore: make prop optional in Flatpickr
This commit is contained in:
parent
359b75feac
commit
22c1fa2be1
|
|
@ -67,11 +67,10 @@ import {computed, onBeforeUnmount, onMounted, ref, toRefs, useAttrs, watch, watc
|
|||
const props = withDefaults(defineProps<{
|
||||
modelValue: DateOption | DateOption[] | null,
|
||||
/** https://flatpickr.js.org/options/ */
|
||||
config: Options,
|
||||
events: HookKey[],
|
||||
disabled: boolean,
|
||||
config?: Options,
|
||||
events?: HookKey[],
|
||||
disabled?: boolean,
|
||||
}>(), {
|
||||
modelValue: null,
|
||||
config: () => ({
|
||||
defaultDate: undefined,
|
||||
wrap: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue