@alicloud/cloud-charts
Version:

42 lines (41 loc) • 1.45 kB
TypeScript
import * as React from 'react';
import { MobileProps } from '../common/platform';
import './index.scss';
interface WcontainerProps extends MobileProps {
className?: string;
style?: React.CSSProperties;
width?: string | number;
height?: string | number;
arrange?: 'normal' | 'cross';
title?: React.ReactNode;
titleBorder?: boolean;
operation?: React.ReactNode;
titleStyle?: React.CSSProperties;
contentStyle?: React.CSSProperties;
fullContent?: boolean;
catchError?: boolean;
onError?(error: Error, info: React.ErrorInfo): boolean | void;
}
interface WcontainerState {
criticalError?: Error;
}
declare class Wcontainer extends React.Component<WcontainerProps, WcontainerState> {
static displayName: string;
static defaultProps: {
arrange: string;
height: string;
operation: string;
titleBorder: boolean;
catchError: boolean;
};
static divider: any;
static combiner: string;
constructor(props: WcontainerProps);
renderTitle(title: React.ReactNode, titleBorder: boolean, operation: React.ReactNode, titleStyle: React.CSSProperties): JSX.Element;
renderMainNormal(contentStyle: React.CSSProperties, fullContent: boolean): JSX.Element;
renderMainCross(contentStyle: React.CSSProperties): JSX.Element;
renderError(): JSX.Element;
container: HTMLDivElement;
render(): JSX.Element;
}
export default Wcontainer;