UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

17 lines (16 loc) 563 B
import { ModelRef, Ref } from 'vue'; import { Emits, Props } from '../types'; /** * hook */ export declare const useDatePicker: (props: Props, selectRef: Ref<HTMLDivElement | null>, modelValue: ModelRef<string | undefined>, emit: Emits) => { classNames: import('vue').ComputedRef<Record<string, boolean>>; visible: Ref<boolean, boolean>; onChange: (date: string | undefined) => void; handleShow: () => void; handleClear: () => void; handleSelectPresets: (item: { label: string; value: string; }) => Promise<void>; };