@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
40 lines (39 loc) • 1.76 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { IChartDataset } from '@qn-pandora/app-sdk';
import MetricPanelChartStyleService from '../../../../../base-pandora-visualization/services/chart-style/charts/metric-panel/metric';
import BasicComponent from '../../../../Base/BasicComponent';
import { ETitleIconColor, ITitle } from '../../../../../constants/metric-panel-style';
import { EColorMode } from '../conatsnts';
export interface IStyleProps {
dataset: IChartDataset;
chartStyleService: MetricPanelChartStyleService;
getPopupContainer?: () => HTMLElement;
}
export declare class TitleIcon extends BasicComponent<IStyleProps, {}> {
name: string;
get fieldsSelectOptions(): any[];
get fields(): IKeyValues<any>[];
get colorType(): ETitleIconColor;
get width(): number;
get field(): string | undefined;
get icon(): string | undefined;
get open(): boolean;
get titles(): ITitle[];
get placeholder(): string;
get colorOptions(): {
value: EColorMode;
text: React.JSX.Element;
}[];
setName(name: string): void;
handleColorChange(key: string, value: any): void;
handleTitleIconChange(key: string, value: IKeyValues | string | number): void;
getUseName(): Promise<void>;
handleTitleChange(title: ITitle, index: number): void;
handleAddTitle(): void;
handleDeleteTitle(index: number): void;
componentDidMount(): void;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<IStyleProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IStyleProps, any> & typeof TitleIcon) | (React.FunctionComponent<IStyleProps> & typeof TitleIcon), {}>;
export default _default;