Skip to content

Commit

Permalink
fix: 删除无用空格 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong authored Nov 9, 2024
1 parent c12f2bf commit b2bc5c0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/generate-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,8 @@ import { default as Icon2 } from '../IconHarmonyTemplate'
const IconSVG:FunctionComponent<SVG_IconProps> = (props: SVG_IconProps) => {
const realProps = { ...defaultProps, ...props }
return (
<> {
process.env.TARO_ENV !== 'jdharmony_cpp' ? <Icon {...realProps} name={realProps.name || '${componentName}'} svg64={'${svg64String}'}>
</Icon> : <Icon2 {...realProps} name={realProps.name || '${componentName}'} svgSrc={'${svgSrc}'}>
</Icon2>
}
</>
<>{process.env.TARO_ENV !== 'jdharmony_cpp' ? <Icon {...realProps} name={realProps.name || '${componentName}'} svg64={'${svg64String}'}></Icon> : <Icon2 {...realProps} name={realProps.name || '${componentName}'} svgSrc={'${svgSrc}'}></Icon2>}</>
)
}
Expand Down

0 comments on commit b2bc5c0

Please sign in to comment.