UNPKG

chowa

Version:

UI component library based on React

32 lines (31 loc) 977 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import * as moment from 'moment'; import { CEvent } from '../tool'; import { Event } from './index'; export interface FullMonthProps { value: moment.Moment; events: Event[]; editable: boolean; appendable: boolean; onContextMenu: (mom: moment.Moment, event: CEvent, e: React.MouseEvent) => void; } export interface FullMonthState { renderMoms: moment.Moment[][]; renderEvents: CEvent[][][]; } declare class FullMonth extends React.PureComponent<FullMonthProps, FullMonthState> { constructor(props: FullMonthProps); componentDidUpdate(preProps: FullMonthProps): void; private compileRenderParams; private renderDay; render(): JSX.Element; } export default FullMonth;