UNPKG

@alitajs/antd-plus

Version:

基于 ant-design 封装的偏业务组件

28 lines (27 loc) 990 B
import moment, { MomentInput } from 'moment'; import { RangePickerProps } from 'antd/es/date-picker'; import { PeriodData } from './'; /** * 获取禁用的时间 * @param start * @param end */ export declare function disabledRangeTime(start: number, end: number): any[]; /** * Ant Design 日期选择组件,禁用今天之后的时间 * @param current */ export declare const disabledAfterTodayDate: RangePickerProps['disabledDate']; /** * 获取指定天的开始时间的时间戳 * @param time * @example 2020-01-01 >> 2020-01-01 00:00:00 >> 时间戳 */ export declare function startOf(time: MomentInput, type?: moment.unitOfTime.StartOf): number; /** * 获取指定天的结束时间的时间戳 * @param time * @example 2020-01-01 >> 2020-01-01 23:59:59 >> 时间戳 */ export declare function endOf(time: MomentInput, type?: moment.unitOfTime.StartOf): number; export declare function getRangePickerProps({ periodType, periodValue }: PeriodData): RangePickerProps;