1.安装 npm install react-svg-y --save 2.引用 import Svg from 'react-svg-y' 3.svg API 属性 属性名(name) 类型(type) 必要性(Required) 默认值(default) 描述(description) type String true 无 svg的类型 width String false "1.875rem" height String false "1.875rem" fill String false svg的颜色 4. 使用方式