@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
44 lines (43 loc) • 1.82 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
import CalendarFoundation, { CalendarAdapter } from '@douyinfe/semi-foundation/lib/cjs/calendar/foundation';
import BaseComponent from '../_base/baseComponent';
import { DayColProps } from './interface';
import '@douyinfe/semi-foundation/lib/cjs/calendar/calendar.css';
export interface DayColState {
currPos: number;
showCurrTime: boolean;
}
export default class DayCol extends BaseComponent<DayColProps, DayColState> {
static propTypes: {
events: PropTypes.Requireable<any[]>;
displayValue: PropTypes.Requireable<Date>;
showCurrTime: PropTypes.Requireable<boolean>;
scrollHeight: PropTypes.Requireable<number>;
currPos: PropTypes.Requireable<number>;
handleClick: PropTypes.Requireable<(...args: any[]) => any>;
mode: PropTypes.Requireable<string>;
minEventHeight: PropTypes.Requireable<number>;
isWeekend: PropTypes.Requireable<boolean>;
dateGridRender: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
events: import("@douyinfe/semi-foundation/lib/cjs/calendar/foundation").EventObject[];
showCurrTime: boolean;
scrollHeight: number;
currPos: number;
mode: string;
minEventHeight: number;
};
static contextType: React.Context<import("../locale/interface").Locale>;
foundation: CalendarFoundation;
constructor(props: DayColProps);
componentDidMount(): void;
componentWillUnmount(): void;
get adapter(): CalendarAdapter<DayColProps, DayColState>;
renderEvents: () => React.JSX.Element[];
renderCurrTime: () => React.JSX.Element;
handleClick: DayColProps['handleClick'];
renderGrid: () => React.JSX.Element;
render(): React.JSX.Element;
}