This commit is contained in:
oneao committed 2025-11-10 17:31:45 +08:00
1 parent 7ed98a04c1
commit dee2eab404
25 files changed
+1037 -518

No files matched your search

@@ -4,14 +4,30 @@
import React, { FunctionComponent } from 'react';
import { ViewProps } from 'react-native';
import { GProps } from 'react-native-svg';
import IconZhichu from './IconZhichu';
import IconShouru from './IconShouru';
import IconJiaotong from './IconJiaotong';
import IconShucai from './IconShucai';
import IconRiyongpin from './IconRiyongpin';
import IconYule from './IconYule';
import IconLingshi from './IconLingshi';
import IconQuxian1 from './IconQuxian1';
import IconWeixin from './IconWeixin';
import IconZhiwen from './IconZhiwen';
import IconQq from './IconQq';
export { default as IconZhichu } from './IconZhichu';
export { default as IconShouru } from './IconShouru';
export { default as IconJiaotong } from './IconJiaotong';
export { default as IconShucai } from './IconShucai';
export { default as IconRiyongpin } from './IconRiyongpin';
export { default as IconYule } from './IconYule';
export { default as IconLingshi } from './IconLingshi';
export { default as IconQuxian1 } from './IconQuxian1';
export { default as IconWeixin } from './IconWeixin';
export { default as IconZhiwen } from './IconZhiwen';
export { default as IconQq } from './IconQq';
export type IconNames = 'weixin' | 'zhiwen' | 'QQ';
export type IconNames = 'zhichu' | 'shouru' | 'jiaotong' | 'shucai' | 'riyongpin' | 'yule' | 'lingshi' | 'quxian1' | 'weixin' | 'zhiwen' | 'QQ';
interface Props extends GProps, ViewProps {
name: IconNames;
@@ -21,12 +37,28 @@ interface Props extends GProps, ViewProps {
let IconFont: FunctionComponent<Props> = ({ name, ...rest }) => {
switch (name) {
case 'zhichu':
return <IconZhichu key="1" {...rest} />;
case 'shouru':
return <IconShouru key="2" {...rest} />;
case 'jiaotong':
return <IconJiaotong key="3" {...rest} />;
case 'shucai':
return <IconShucai key="4" {...rest} />;
case 'riyongpin':
return <IconRiyongpin key="5" {...rest} />;
case 'yule':
return <IconYule key="6" {...rest} />;
case 'lingshi':
return <IconLingshi key="7" {...rest} />;
case 'quxian1':
return <IconQuxian1 key="8" {...rest} />;
case 'weixin':
return <IconWeixin key="1" {...rest} />;
return <IconWeixin key="9" {...rest} />;
case 'zhiwen':
return <IconZhiwen key="2" {...rest} />;
return <IconZhiwen key="10" {...rest} />;
case 'QQ':
return <IconQq key="3" {...rest} />;
return <IconQq key="11" {...rest} />;
}
return null;