This commit is contained in:
yehuozhili 2020-09-03 09:32:23 +08:00
commit f9a808d668
3 changed files with 5 additions and 29317 deletions

29315
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

BIN
src/assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -1,6 +1,6 @@
import { memo } from 'react';
import * as Icon from '@ant-design/icons';
//import IconImg from 'assets/icon.png';
import IconImg from 'assets/icon.png';
const XIcon = memo(props => {
const { color, size, type, spin, isTpl } = props;
@ -8,7 +8,10 @@ const XIcon = memo(props => {
const MyIcon = Icon[type];
return isTpl ? (
<div style={{ textAlign: 'center' }}>图标</div>
<div style={{ textAlign: 'center' }}>
<img style={{ verticalAlign: '-20px', width: '82px' }} src={IconImg} alt={type} />
图标
</div>
) : (
<MyIcon twoToneColor={color} style={{ fontSize: size }} spin={spin} />
);