UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

20 lines (19 loc) 945 B
/// <reference types="hoist-non-react-statics" /> import * as React from 'react'; import PropTypes from 'prop-types'; import { EThemeTypes } from '../../../../../../constants'; import BasicComponent from '../../../../../../components/Base/BasicComponent'; export interface IThemeProps { className?: string; onToggle?: (nextTheme: EThemeTypes) => void; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; } export declare class ThemeAction extends BasicComponent<IThemeProps, {}> { static contextTypes: { baseDashboardStore: PropTypes.Requireable<object>; }; toggleTheme(theme: EThemeTypes): void; render(): React.JSX.Element; } declare const _default: React.ComponentClass<IThemeProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IThemeProps, any> & typeof ThemeAction) | (React.FunctionComponent<IThemeProps> & typeof ThemeAction), {}>; export default _default;