UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

47 lines (46 loc) 1.62 kB
import { CSSProperties, ReactNode } from 'react'; import { Moment } from 'moment'; import { TimeUnit } from './enum'; import DaysView from './DaysView'; import { FieldType } from '../data-set/enum'; export default class TimesView extends DaysView { static displayName: string; static type: FieldType; currentUnit?: TimeUnit; panel: HTMLDivElement | null; getViewClassName(): string; get showHour(): boolean; get showMinute(): boolean; get showSecond(): boolean; get use12Hours(): boolean; get timeUnitQueue(): TimeUnit[]; get barStyle(): CSSProperties; get activeStyle(): CSSProperties; savePanel(node: any): void; getObservableProps(props: any, context: any): any; componentDidMount(): void; componentWillUnmount(): void; handleDateTimeSelect(): void; handleKeyDownHome(e: any): void; handleKeyDownEnd(e: any): void; handleKeyDownLeft(e: any): void; handleKeyDownRight(e: any): void; handleKeyDownUp(e: any): void; handleKeyDownDown(e: any): void; handleKeyDownPageUp(e: any): void; handleKeyDownPageDown(e: any): void; handleTimeCellClick(date: Moment, unit: TimeUnit): void; handleWheel(e: any): void; renderHeader(): ReactNode; renderFooter(): ReactNode; renderPanel(): JSX.Element; renderPanelBody(): ReactNode; renderCell(props: object): ReactNode; getTimeBar(unit: TimeUnit): ReactNode; getPanelClass(): string; getCurrentUnit(): TimeUnit; getPrevUnit(): TimeUnit; getNextUnit(): TimeUnit; changeUnit(unit?: TimeUnit): void; choose(date: Moment): void; }