@gem-mine/rmc-calendar
Version:
React Mobile Calendar Component(web and react-native)
21 lines (20 loc) • 653 B
TypeScript
import * as React from 'react';
import { Models } from '../panel/DataTypes';
export interface ConfirmPanelPropsType {
type?: 'one' | 'range';
locale: Models.Locale;
disableBtn?: boolean;
startDateTime?: Date;
endDateTime?: Date;
formatStr?: string;
renderConfirm?: (data?: Models.ConfirmParams) => Models.ConfirmPanelData;
onOk: () => void;
onCancel: () => void;
}
export default class ConfirmPanel extends React.PureComponent<ConfirmPanelPropsType, {}> {
static defaultProps: ConfirmPanelPropsType;
onOk: () => void;
onCancel: () => void;
formatDate(date: Date): string;
render(): JSX.Element;
}