UNPKG

@aplus-frontend/ui

Version:

17 lines (16 loc) 606 B
import { Ref, ComputedRef } from 'vue'; import { ApFieldDateRangeProps, BasicApFieldProps } from '../interface'; import { Dayjs } from 'dayjs'; import { ZoneAlias } from '@aplus-frontend/utils'; import { VueNode } from '@aplus-frontend/antdv/es/_util/type'; export declare const useDefaultPresets: (props: BasicApFieldProps<{ disabledDate?: (date: Dayjs) => boolean; presets?: ApFieldDateRangeProps["presets"]; timezone?: Ref<ZoneAlias | undefined>; }>) => { presets: ComputedRef<{ label: VueNode; value: Dayjs[]; }[] | undefined>; changeCurrentDate: () => void; };