mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:46:08 +00:00
fix(client): fix upload progress style (#4698)
This commit is contained in:
parent
6e0074fb66
commit
ed89dd04c8
@ -134,14 +134,14 @@ function AttachmentListItem(props) {
|
||||
{!readPretty && file.id && (
|
||||
<Button size={'small'} type={'text'} icon={<DownloadOutlined />} onClick={onDownload} />
|
||||
)}
|
||||
{!readPretty && !disabled && (
|
||||
{!readPretty && !disabled && file.status !== 'uploading' && (
|
||||
<Button size={'small'} type={'text'} icon={<DeleteOutlined />} onClick={onDelete} />
|
||||
)}
|
||||
</Space>
|
||||
</span>
|
||||
{file.status === 'uploading' && (
|
||||
<div className={`${prefixCls}-list-item-progress`}>
|
||||
<Progress size={2} type={'line'} showInfo={false} percent={file.percent} />
|
||||
<Progress strokeWidth={4} type={'line'} showInfo={false} percent={Number(file.percent)} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
@ -77,6 +77,7 @@ export const useStyles = genStyleHook('upload', (token) => {
|
||||
},
|
||||
[`${componentCls}-list-picture-card ${componentCls}-list-item-progress`]: {
|
||||
bottom: 'calc(50% - 11px)',
|
||||
left: `${token.margin / 2}px`,
|
||||
pointerEvents: 'none',
|
||||
},
|
||||
[`${antCls}-btn`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user