UNPKG

@element-plus/nightly

Version:

A Component Library for Vue 3

10 lines (9 loc) 458 B
import type { SetupContext } from 'vue'; import type { useLocale } from '@element-plus/nightly/es/hooks'; import type { RangePickerSharedEmits } from '../props/shared'; export type Shortcut = { text: string; value: [Date, Date] | (() => [Date, Date]); onClick?: (ctx: Omit<SetupContext<RangePickerSharedEmits>, 'expose'>) => void; }; export declare const useShortcut: (lang: ReturnType<typeof useLocale>["lang"]) => (shortcut: Shortcut) => void;