react-admin-component
Version:
react library
19 lines (18 loc) • 669 B
TypeScript
/// <reference types="react" />
import { FormBaseProps } from '../form-input';
import { FormProps } from 'antd/lib/form';
import moment from 'moment';
import 'moment/locale/zh-cn';
interface FormDateProps extends FormBaseProps, Omit<FormProps, 'onChange'> {
isRange?: boolean;
format?: string;
mountContainer?: string;
showTime?: boolean;
dateProps?: any;
placeholder?: string;
disabledDate?: () => any;
disabledTime?: () => any;
onChange?: (date: moment.Moment | null, dateString: string, setFieldsValue: Function) => void;
}
declare const FormDate: (props: FormDateProps) => JSX.Element;
export default FormDate;