From 7ddad3a582c22230090f18b12f5bd0b9e78f3a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7M?= Date: Thu, 25 Feb 2021 11:43:47 +0800 Subject: [PATCH] Update index.h5.tsx.template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持H5环境下IconNames的类型导出 --- src/templates/index.h5.tsx.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/index.h5.tsx.template b/src/templates/index.h5.tsx.template index ee96935..13cb057 100644 --- a/src/templates/index.h5.tsx.template +++ b/src/templates/index.h5.tsx.template @@ -4,9 +4,10 @@ import React, { FunctionComponent } from 'react'; #rpx-1:import Taro from '@tarojs/taro';:# import Icon from './h5'; +import { IconNames } from './index'; interface Props { - name: '#names#'; + name: IconNames; size?: number; color?: string | string[]; style?: React.CSSProperties; @@ -21,5 +22,5 @@ const IconFont: FunctionComponent = (props) => { IconFont.defaultProps = { size: #size#, }; - +export { IconNames } export default IconFont;