We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29785a0 + 9abfac8 commit 6a69ff1Copy full SHA for 6a69ff1
packages/vtable/src/ts-types/icon.ts
@@ -1,6 +1,6 @@
1
// ****** Icon配置信息,header ,以及列Icon *******9
2
3
-import type { ITextAttribute } from '@src/vrender';
+import type { ITextAttribute, ITextGraphicAttribute } from '@src/vrender';
4
import type { Placement } from './table-engine';
5
6
export interface IIconBase {
@@ -79,7 +79,11 @@ export interface IIconBase {
79
export interface TextIcon extends IIconBase {
80
type: 'text';
81
content: string;
82
- style?: ITextAttribute;
+ /**
83
+ * 文字图标的样式,支持 fill、fontSize、underline 等文字及图形属性
84
+ * 使用 Partial 以允许只配置需要的属性
85
+ */
86
+ style?: Partial<ITextGraphicAttribute>;
87
}
88
export interface ImageIcon extends IIconBase {
89
type: 'image';
0 commit comments