UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

32 lines (31 loc) 1.19 kB
/// <reference types="react-grid-layout" /> /// <reference types="hoist-non-react-statics" /> import * as React from 'react'; import { ResponsiveProps, Layout } from '../../../../components/Common/ReactGridLayout'; import { EThemeTypes } from '../../../../constants'; declare type TProps = Omit<ResponsiveProps, 'cols' | 'layouts' | 'style'> & { cols: number; rowHeight: number; margin: [number, number]; layouts: Layout[]; onLayoutChange: (layout: Layout[]) => void; autoRelayout?: boolean; theme: EThemeTypes; isEditing: boolean; }; interface IState { width: number; } export { Layout as ILayout }; export declare class ResponsiveGridLayout extends React.Component<TProps, IState> { state: { width: number; }; componentWillReceiveProps(props: TProps): void; handleBoundsChange(bound?: { width: number; }): void; render(): React.JSX.Element; } declare const _default: React.ComponentClass<TProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<TProps, any> & typeof ResponsiveGridLayout) | (React.FunctionComponent<TProps> & typeof ResponsiveGridLayout), {}>; export default _default;