mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-03-04 05:17:08 +00:00
merged
This commit is contained in:
commit
f9a808d668
29315
npm-shrinkwrap.json
generated
29315
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
BIN
src/assets/icon.png
Normal file
BIN
src/assets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
@ -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} />
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user