import Taro , { FunctionComponent } from '@tarojs/taro' ; interface Props { name : 'icon_lc_ranking' | 'icon_lc_like' | 'icon_lc_share' | 'rank' | 'good' | 'day' | 'daka' ; size ? : number ; color ? : string | string [ ] ; } export const IconFont = ( props ) => { const { name , size , color } = props ; return < iconfont name = { name } size = { parseFloat ( Taro . pxTransform ( size ) ) } color = { color } / > ; } ; IconFont . defaultProps = { size : 18 , } ; IconFont . config = { usingComponents : { iconfont : './alipay/alipay' , } , } ; export default IconFont ;