UNPKG

chowa

Version:

UI component library based on React

34 lines (33 loc) 1.04 kB
/** * @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 FullWeekProps { value: moment.Moment; events: Event[]; editable: boolean; appendable: boolean; onContextMenu: (mom: moment.Moment, event: CEvent, e: React.MouseEvent) => void; } export interface FullWeekState { renderMoms: moment.Moment[]; renderEvents: CEvent[][][]; } declare class FullWeek extends React.PureComponent<FullWeekProps, FullWeekState> { constructor(props: FullWeekProps); componentDidUpdate(preProps: FullWeekProps): void; compileRenderParams(value: moment.Moment, events: Event[]): { renderMoms: any[]; renderEvents: any[]; }; render(): JSX.Element; } export default FullWeek;