UNPKG

hongluan-ui

Version:
10 lines (9 loc) 456 B
import type { SetupContext } from 'vue'; import type { useLocale } from 'hongluan-ui/es/hooks'; import type { RangePickerSharedEmits } from '../props/shared'; export declare 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;