Skip to content

Commit

Permalink
fix(uploader): ios 下无法回显的问题修复 (#2550)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong authored Aug 22, 2024
1 parent 663c161 commit c30e44a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/packages/uploader/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react'
import { Del, Failure, Link as LinkIcon, Loading } from '@nutui/icons-react'
import Progress from '@/packages/progress'

import Image from '@/packages/image'
import { FileItem } from '@/packages/uploader/file-item'
import { ERROR } from '@/packages/uploader/upload'

Expand Down Expand Up @@ -59,7 +61,7 @@ export const Preview: React.FunctionComponent<any> = ({
{item.type?.includes('image') ? (
<>
{item.url && (
<img
<Image
className="nut-uploader-preview-img-c"
style={{ objectFit: 'fill' }}
src={item.url}
Expand All @@ -71,7 +73,7 @@ export const Preview: React.FunctionComponent<any> = ({
) : (
<>
{previewUrl ? (
<img
<Image
className="nut-uploader-preview-img-c"
src={previewUrl}
alt=""
Expand Down

0 comments on commit c30e44a

Please sign in to comment.