UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

49 lines (48 loc) 949 B
import { DatePickerPresets } from './date'; /** * Props */ export interface Props { clear?: boolean; readonly?: boolean; disabled?: boolean; placeholder?: string; shadow?: boolean; presets?: DatePickerPresets[]; } /** * RangeProps */ export interface RangeProps { startKey?: string; endKey?: string; clear?: boolean; readonly?: boolean; disabled?: boolean; shadow?: boolean; placeholderStart?: string; placeholderEnd?: string; } /** * RangePickerProps */ export interface RangePickerProps { startKey?: string; endKey?: string; clear?: boolean; readonly?: boolean; disabled?: boolean; shadow?: boolean; placeholderStart?: string; placeholderEnd?: string; } /** * 组件事件类型 */ export type Emits = { (event: 'change', date?: string): void; (event: 'clear'): void; }; export type DateEmit = { (event: 'change', date?: string): void; };