UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

25 lines (24 loc) 1.3 kB
/// <reference types="hoist-non-react-statics" /> import React from 'react'; import { ITime } from '@qn-pandora/pandora-component'; import BasicComponent from '../../../../../components/Base/BasicComponent'; import { ITimeRange } from '../../../../../services/search-condition'; import { ChartTimeType, TimeShiftUnit } from '../../../../../services'; interface ITimeSelectorContentProps { className?: string; value?: ITimeRange; onChange?: (value: ITimeRange) => void; [key: string]: any; } export declare class TimeSelectorContent extends BasicComponent<ITimeSelectorContentProps, any> { get timeShift(): string; get timeShiftValue(): number; get timeShiftUnit(): TimeShiftUnit.Second | TimeShiftUnit; handleTimeTypeChange(timeType: ChartTimeType): void; handleTimePickerChange(time: ITime): void; handleTimeShiftValueChange(shiftValue: number): void; handleTimeShiftUnitChange(unit: any): void; render(): React.JSX.Element; } declare const _default: React.ComponentClass<ITimeSelectorContentProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<ITimeSelectorContentProps, any> & typeof TimeSelectorContent) | (React.FunctionComponent<ITimeSelectorContentProps> & typeof TimeSelectorContent), {}>; export default _default;