/// import type { BaseDatePickerProps } from '@sinoui/core/DatePicker/BaseDatePicker'; /** * 年月选择组件的属性 */ export interface YearMonthPickerProps extends Omit { /** * 值。格式为 ·YYYY-MM`。示例:`2022-03`。 */ value?: string; /** * 值变化时的回调函数。date格式:YYYY-MM */ onChange?: (date?: string) => void; /** * 最小值 */ min?: string; /** * 最大值 */ max?: string; /** * 指定自定义的值渲染函数。默认情况下,直接显示`value`属性值。 */ renderValue?: (value?: Date) => React.ReactNode; } /** * 日期选择组件 * * @param props 组件属性 */ export default function DatePicker(props: YearMonthPickerProps): JSX.Element;