minishouyin/node_modules/rc-picker/es/PickerPanel/TimePanel/TimePanelBody/TimeColumn.d.ts

18 lines
617 B
TypeScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
import * as React from 'react';
export type Unit<ValueType = number | string> = {
label: React.ReactText;
value: ValueType;
disabled?: boolean;
};
export interface TimeUnitColumnProps {
units: Unit[];
value: number | string;
optionalValue?: number | string;
type: 'hour' | 'minute' | 'second' | 'millisecond' | 'meridiem';
onChange: (value: number | string) => void;
onHover: (value: number | string) => void;
onDblClick?: VoidFunction;
changeOnScroll?: boolean;
}
export default function TimeColumn<DateType extends object>(props: TimeUnitColumnProps): React.JSX.Element;