slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
15 lines (14 loc) • 441 B
TypeScript
export interface AbstractNode {
tag: string;
attrs: {
[key: string]: string;
};
children?: AbstractNode[];
}
export interface IconDefinition {
name: string;
theme: ThemeType;
icon: ((primaryColor: string, secondaryColor: string) => AbstractNode) | AbstractNode;
}
export type ThemeType = 'filled' | 'outlined' | 'twotone';
export type ThemeTypeUpperCase = 'Filled' | 'Outlined' | 'TwoTone';