import type { PopperProps } from '@sinoui/core/Popper'; import type { TextInputProps } from '@sinoui/core/TextInput'; import React from 'react'; import type ViewModel from './ViewModel'; /** * 基础日历选择组件的属性 */ export interface BaseDatePickerProps extends Omit { /** * 值 */ value?: Date; /** * 值变化时的回调函数 */ onChange?: (date?: Date) => void; /** * 是否是pc端设备 */ isPc?: boolean; /** * 最小值 */ min?: Date; /** * 最大值 */ max?: Date; /** * 弹窗标题。默认为`设置${label}`。在移动端弹窗时使用。 */ modalTitle?: string; /** * 指定自定义的值渲染函数。默认情况下,直接显示`value`属性值。 */ renderValue: (value?: Date) => React.ReactNode; /** * 是否将弹出内容以传送门的方式渲染。默认为`true`。 */ portal?: boolean; /** * 给弹窗设置属性。 */ popperProps?: PopperProps; /** * 日历开始的视图。默认为日期视图。 */ startViewModel: ViewModel.dates | ViewModel.months; } /** * 基础的日期选择组件 * * @param props */ export default function BaseDatePicker(props: BaseDatePickerProps): JSX.Element;