mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +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 && (
|
{!readPretty && file.id && (
|
||||||
<Button size={'small'} type={'text'} icon={<DownloadOutlined />} onClick={onDownload} />
|
<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} />
|
<Button size={'small'} type={'text'} icon={<DeleteOutlined />} onClick={onDelete} />
|
||||||
)}
|
)}
|
||||||
</Space>
|
</Space>
|
||||||
</span>
|
</span>
|
||||||
{file.status === 'uploading' && (
|
{file.status === 'uploading' && (
|
||||||
<div className={`${prefixCls}-list-item-progress`}>
|
<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>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,6 +77,7 @@ export const useStyles = genStyleHook('upload', (token) => {
|
|||||||
},
|
},
|
||||||
[`${componentCls}-list-picture-card ${componentCls}-list-item-progress`]: {
|
[`${componentCls}-list-picture-card ${componentCls}-list-item-progress`]: {
|
||||||
bottom: 'calc(50% - 11px)',
|
bottom: 'calc(50% - 11px)',
|
||||||
|
left: `${token.margin / 2}px`,
|
||||||
pointerEvents: 'none',
|
pointerEvents: 'none',
|
||||||
},
|
},
|
||||||
[`${antCls}-btn`]: {
|
[`${antCls}-btn`]: {
|
||||||
|
Loading…
Reference in New Issue
Block a user