UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

28 lines (27 loc) 804 B
import * as React from 'react'; import { IItemProps } from '../../Common/Form/Item'; import BasicComponent from '../../Base/BasicComponent'; export interface IFontConfig { color?: string[]; } export interface IFontStyle { color?: string; fontSize?: number; } export interface ITitleItemProps extends IItemProps { fontConfig?: IFontConfig; value?: IFontStyle; label: string; onChange?: (value: IFontStyle) => void; getPopupContainer?: () => HTMLElement; } export default class TitleItem extends BasicComponent<ITitleItemProps, {}> { static defaultProps: { fontConfig: { color: string[]; }; }; emitValue(key: string, val: string | number): void; handleChange(key: string): (value: any) => void; render(): React.JSX.Element; }