UNPKG

@cainiaofe/cn-ui-m

Version:
11 lines (10 loc) 872 B
import { ReactNode } from 'react'; import { IPrecision } from '../types'; export type CnDatePickerFilter = Partial<Record<IPrecision, (val: number, extend: { date: Date; }) => boolean>>; export declare const convertDateToStringArray: (date: Date | undefined | null, precision: IPrecision) => string[]; export declare const convertStringArrayToDate: (value: Array<string | null | undefined>, precision: IPrecision) => Date; export declare const generateDatePickerColumns: (selected: string[], min: Date, max: Date, precision: IPrecision, renderLabel: (type: IPrecision, data: number) => ReactNode, filter: CnDatePickerFilter | undefined) => import("../../cn-picker").CnPickerColumn[]; export declare const defaultRenderLabel: (precision: IPrecision, data: number) => string; export declare const defaultI18nRenderLabel: (precision: IPrecision, data: number) => string;