diff --git a/packages/vtable/src/ts-types/icon.ts b/packages/vtable/src/ts-types/icon.ts index 571e3f3cb..29033baf9 100644 --- a/packages/vtable/src/ts-types/icon.ts +++ b/packages/vtable/src/ts-types/icon.ts @@ -1,6 +1,6 @@ // ****** Icon配置信息,header ,以及列Icon *******9 -import type { ITextAttribute } from '@src/vrender'; +import type { ITextAttribute, ITextGraphicAttribute } from '@src/vrender'; import type { Placement } from './table-engine'; export interface IIconBase { @@ -79,7 +79,11 @@ export interface IIconBase { export interface TextIcon extends IIconBase { type: 'text'; content: string; - style?: ITextAttribute; + /** + * 文字图标的样式,支持 fill、fontSize、underline 等文字及图形属性 + * 使用 Partial 以允许只配置需要的属性 + */ + style?: Partial; } export interface ImageIcon extends IIconBase { type: 'image';