| 1 | interface SvgProps { |
| 2 | name: string; // 图标的名称 ==> 必传 |
| 3 | color?: string; //图标的颜色 ==> 非必传 |
| 4 | prefix?: string; // 图标的前缀 ==> 非必传(默认为"icon") |
| 5 | iconStyle?: { [key: string]: any }; // 图标的样式 ==> 非必传 |
| 6 | } |
| 7 | |
| 8 | export default function SvgIcon(props: SvgProps) { |
| 9 | const { name, prefix = "icon", iconStyle = { width: "100px", height: "100px" } } = props; |
nothing calls this directly
no outgoing calls
no test coverage detected