Skip to content

Commit

Permalink
fix(title): title text style type should not include string #20799
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-p committed Mar 3, 2025
1 parent 56c4fc0 commit 24f9901
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/component/title/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24f9901

Please sign in to comment.