UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

35 lines (34 loc) 1.26 kB
import React from 'react'; import type { IScopedContext } from 'jamis-core'; import { ScopedContext } from 'jamis-core'; import type { ChartProps } from './types'; export declare class Chart extends React.Component<ChartProps> { static defaultProps: Partial<ChartProps>; static propsList: Array<string>; ref: any; echarts?: any; unSensor: Function; pending?: object; pendingCtx?: any; timer: ReturnType<typeof setTimeout>; mounted: boolean; reloadCancel?: Function; constructor(props: ChartProps); componentDidMount(): void; componentDidUpdate(prevProps: ChartProps): void; componentWillUnmount(): void; handleClick(ctx: object): void; refFn(ref: any): void; reload(subpath?: string, query?: any): void; receive(data: object): void; renderChart(config?: object, data?: any): void; reloadEcharts(config: any): void; render(): JSX.Element; } export declare class ChartRenderer extends Chart { static contextType: React.Context<IScopedContext<import("jamis-core").ScopedComponentType>>; context: React.ContextType<typeof ScopedContext>; constructor(props: ChartProps, context: IScopedContext); componentWillUnmount(): void; setData(values: object): void; }