use-shortcut.d.ts 449 B

123456789
  1. import type { SetupContext } from 'vue';
  2. import type { useLocale } from 'element-plus/es/hooks';
  3. import type { RangePickerSharedEmits } from '../props/shared';
  4. export type Shortcut = {
  5. text: string;
  6. value: [Date, Date] | (() => [Date, Date]);
  7. onClick?: (ctx: Omit<SetupContext<RangePickerSharedEmits>, 'expose'>) => void;
  8. };
  9. export declare const useShortcut: (lang: ReturnType<typeof useLocale>["lang"]) => (shortcut: Shortcut) => void;