/** * 图标配置 */ export class Icon { /** 图标类型 */ type: string; /** 图标主题风格。可选实心、描线、双色等主题风格,适用于官方图标 */ theme: 'fill' | 'outline' | 'twotone' = 'outline'; /** 是否有旋转动画 */ spin = false; /** 仅适用双色图标,设置双色图标的主要颜色,仅对当前 icon 生效(十六进制颜色) */ twoToneColor: string; /** 指定来自 IconFont 的图标类型 */ iconfont: string; /** 样式 */ style: string; /** svg */ svg: string; }