Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/vtable/src/ts-types/icon.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -79,7 +79,11 @@ export interface IIconBase {
export interface TextIcon extends IIconBase {
type: 'text';
content: string;
style?: ITextAttribute;
/**
* 文字图标的样式,支持 fill、fontSize、underline 等文字及图形属性
* 使用 Partial 以允许只配置需要的属性
*/
style?: Partial<ITextGraphicAttribute>;
}
export interface ImageIcon extends IIconBase {
type: 'image';
Expand Down
Loading