import type { TextInputProps } from '@sinoui/core/TextInput'; import type React from 'react'; import type { PopperProps } from '../Popper'; /** * */ export interface Props extends Omit { /** * 值 */ value?: string; /** * 值变更时的回调函数 */ onChange?: (value: string) => void; /** * 最小日期 */ min?: string; /** * 最大日期 */ max?: string; /** * 默认年份 */ defaultYear?: number; /** * 默认月份 */ defaultMonth?: number; /** * 是否采用portal形式 */ portal?: boolean; /** * 指定弹窗属性 */ popperProps?: PopperProps; /** * 是否是pc设备 */ isPc?: boolean; /** * 是否展示下月日期 */ showNextMonthDates?: boolean; /** * 指定自定义的值渲染函数。默认情况下,直接显示`value`属性值。 */ renderValue?: (value?: Date) => React.ReactNode; /** * 小时间隔 */ hourStep?: number; /** * 分钟间隔 */ minuteStep?: number; /** * */ skipMonthsView?: boolean; /** * 是否展示今天 */ showToday?: boolean; /** * 星期开始位置。`0`表示开始的是星期日,`1`表示星期一。默认为`1`。 */ startOfWeek?: 0 | 1; /** * 最小小时数。默认为`0`。 */ minHour?: number; /** * 最大小时数。默认为`23`。 */ maxHour?: number; /** * 最小分钟数。默认为`0`。 */ minMinute?: number; /** * 最大分钟数。默认为`59`。 */ maxMinute?: number; } /** * 日期时间选择组件 * * @param props */ export default function DateTimePicker(props: Props): JSX.Element;