24 lines
697 B
TypeScript
24 lines
697 B
TypeScript
import * as React from 'react';
|
|
import type { CellRender, Locale } from '../../interface';
|
|
export type Unit = {
|
|
label: React.ReactText;
|
|
value: number;
|
|
disabled: boolean;
|
|
};
|
|
export type TimeUnitColumnProps<DateType> = {
|
|
prefixCls?: string;
|
|
units?: Unit[];
|
|
value?: number;
|
|
active?: boolean;
|
|
hideDisabledOptions?: boolean;
|
|
onSelect?: (value: number) => void;
|
|
type: 'hour' | 'minute' | 'second' | 'meridiem';
|
|
info: {
|
|
today: DateType;
|
|
locale: Locale;
|
|
cellRender: CellRender<DateType, number>;
|
|
};
|
|
};
|
|
declare function TimeUnitColumn<DateType>(props: TimeUnitColumnProps<DateType>): React.JSX.Element;
|
|
export default TimeUnitColumn;
|