/// import { StyledProps } from "../_type"; import { RangeDateType } from "../calendar/DateProps"; import { CommonDropdownProps } from "../dropdown/Dropdown"; export interface CommonDatePickerProps extends Omit, StyledProps { /** * 是否禁用 * @default false */ disabled?: boolean; /** * placeholder * @default "选择日期" 或 “选择时间”(包含时间选择时) */ placeholder?: string; /** * 是否支持清空 * @default false * @since 2.3.2 */ clearable?: boolean; /** * 可选择范围 */ range?: RangeDateType; /** * 头部渲染内容 */ header?: React.ReactNode; /** * 日期展示格式 * - `2.7.4` 支持毫秒, HH:mm:ss.SSS * @default "YYYY-MM-DD" 或 "YYYY-MM-DD HH:mm:ss"(包含时间选择时) */ format?: string; /** * 输入内容变化回调 * @since 2.7.4 */ onInputValueChange?: (value: string, context: { valid: boolean; }) => void; }