fix: adjust image size when paste

This commit is contained in:
jialin
2024-10-17 13:32:38 +08:00
parent a47f7cc0ce
commit 349676d908
6 changed files with 85 additions and 57 deletions
@@ -1,5 +1,5 @@
import AutoImage from '@/components/auto-image';
import { CloseCircleOutlined, EyeOutlined } from '@ant-design/icons';
import { Image } from 'antd';
import _ from 'lodash';
import React, { useCallback } from 'react';
import '../style/thumb-img.less';
@@ -32,10 +32,9 @@ const ThumbImg: React.FC<{
}}
>
<span className="img">
<Image
<AutoImage
src={item.dataUrl}
width={item.width}
height={item.height}
height={100}
preview={{
mask: <EyeOutlined />
}}