amis-rpc-design/node_modules/rc-picker/es/panels/DecadePanel/DecadeBody.d.ts

16 lines
589 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { GenerateConfig } from '../../generate';
import type { CellRender, Locale } from '../../interface';
export declare const DECADE_COL_COUNT = 3;
export type YearBodyProps<DateType> = {
prefixCls: string;
generateConfig: GenerateConfig<DateType>;
viewDate: DateType;
disabledDate?: (date: DateType) => boolean;
onSelect: (value: DateType) => void;
cellRender?: CellRender<DateType>;
locale: Locale;
};
declare function DecadeBody<DateType>(props: YearBodyProps<DateType>): React.JSX.Element;
export default DecadeBody;