amis-rpc-design/node_modules/rc-picker/lib/panels/TimePanel/TimeUnitColumn.d.ts
2023-10-07 19:42:30 +08:00

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;