test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
40 lines (39 loc) • 1.42 kB
TypeScript
import React, { ReactNode } from 'react';
import { PopupProps } from '../../packages/popup/index';
import { Day, InputDate, SelectedType } from '../calendar/type';
import '@nascent/nutui-icons-react/lib/style.css';
type CalendarRef = {
scrollToDate: (date: string) => void;
};
export interface CalendarItemProps extends PopupProps {
type: SelectedType;
autoBackfill: boolean;
popup: boolean;
title: string;
value?: InputDate;
defaultValue?: InputDate;
startDate: InputDate;
endDate: InputDate;
showToday: boolean;
startText: ReactNode;
endText: ReactNode;
confirmText: ReactNode;
showTitle: boolean;
showSubTitle: boolean;
scrollAnimation: boolean;
firstDayOfWeek: number;
firstClickAsFirstDay: boolean;
isSwitch: boolean;
isQuick: boolean;
disableDate: (date: Day) => boolean;
renderHeaderButtons: () => string | JSX.Element;
renderDay: (date: Day) => string | JSX.Element;
renderDayTop: (date: Day) => string | JSX.Element;
renderDayBottom: (date: Day) => string | JSX.Element;
onConfirm: (data: string) => void;
onUpdate: () => void;
onDayClick: (data: string) => void;
onPageChange: (data: any) => void;
}
export declare const CalendarItem: React.ForwardRefExoticComponent<Partial<CalendarItemProps> & Omit<React.HTMLAttributes<HTMLDivElement>, ""> & React.RefAttributes<CalendarRef>>;
export {};