diff --git a/src/component/title/install.ts b/src/component/title/install.ts index 54fbb0e6eb..47a788aba4 100644 --- a/src/component/title/install.ts +++ b/src/component/title/install.ts @@ -38,6 +38,9 @@ import ExtensionAPI from '../../core/ExtensionAPI'; import {windowOpen} from '../../util/format'; import { EChartsExtensionInstallRegisters } from '../../extension'; +interface TitleTextStyleOption extends LabelOption { + width?: number +} export interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin { @@ -75,9 +78,9 @@ export interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, Bord */ itemGap?: number - textStyle?: LabelOption + textStyle?: TitleTextStyleOption - subtextStyle?: LabelOption + subtextStyle?: TitleTextStyleOption /** * If trigger mouse or touch event