@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
31 lines (30 loc) • 1.17 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import * as React from 'react';
import PropTypes from 'prop-types';
import BasicComponent from '../../../../../components/Base/BasicComponent';
export interface IRefreshProps {
className?: string;
onRefresh?: () => void;
value?: number;
onChange?: (value: number) => void;
}
export declare class Refresh extends BasicComponent<IRefreshProps, any> {
static contextTypes: {
baseDashboardStore: PropTypes.Requireable<object>;
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
};
ref: React.RefObject<HTMLDivElement>;
active: boolean;
toActive(): void;
toDisActive(e: any): void;
get options(): {
key: string;
text: string;
active: boolean;
onClick: () => void | undefined;
}[];
componentDidMount(): void;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<IRefreshProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IRefreshProps, any> & typeof Refresh) | (React.FunctionComponent<IRefreshProps> & typeof Refresh), {}>;
export default _default;