@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
24 lines (23 loc) • 1.09 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { DataSourceItemObject } from 'antd/es/auto-complete';
import { AutoSelectValue } from '@qn-pandora/pandora-component';
import { ChartType, IBaseLine } from '../../../../constants/chart-style';
interface IBaseLineProps {
source?: any;
value: IBaseLine;
chartType: ChartType;
onChange: (value: IBaseLine, source: any) => void;
onDelete: (source: any) => void;
defaultColor: string[];
fields: DataSourceItemObject[];
getPopupContainer?: () => HTMLElement;
}
export declare class BaseLine extends React.Component<IBaseLineProps, any> {
handleChange(prop: keyof IBaseLine, newValue: any): void;
handleValueChange(e: AutoSelectValue): void;
handleDelete(): void;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<IBaseLineProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IBaseLineProps, any> & typeof BaseLine) | (React.FunctionComponent<IBaseLineProps> & typeof BaseLine), {}>;
export default _default;