UNPKG

element-plus

Version:

A Component Library for Vue 3

10 lines (9 loc) 449 B
import type { SetupContext } from 'vue'; import type { useLocale } from 'element-plus/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;