@arco-design/web-react
Version:
Arco Design React UI Library.
36 lines (35 loc) • 1.18 kB
TypeScript
import React, { CSSProperties, ReactNode } from 'react';
import { Dayjs } from 'dayjs';
export interface DateInputRangeProps {
style?: CSSProperties;
className?: string | string[];
error?: boolean;
status?: 'error' | 'warning';
disabled?: boolean | boolean[];
placeholder?: string[];
value?: Dayjs[];
popupVisible?: boolean;
format?: string | string[];
size?: 'mini' | 'small' | 'default' | 'large';
allowClear?: boolean;
onClear?: (e: any) => void;
onPressEnter?: () => void;
onPressTab?: (e: any) => void;
editable?: boolean;
suffixIcon?: ReactNode;
onChange?: (e: any) => void;
inputValue?: string;
separator?: ReactNode;
changeFocusedInputIndex?: (index: number, silent?: boolean) => void;
focusedInputIndex?: number;
isPlaceholder?: boolean;
prefix?: ReactNode;
inputProps?: React.InputHTMLAttributes<HTMLInputElement>[];
onBlur?: (e: any) => void;
}
declare type DateInputHandle = {
focus: () => void;
blur: () => void;
};
declare const _default: React.ForwardRefExoticComponent<DateInputRangeProps & React.RefAttributes<DateInputHandle>>;
export default _default;