mirror of
https://github.com/PlayEdu/backend
synced 2025-06-11 20:27:09 +08:00
图片列表全选按钮逻辑优化
This commit is contained in:
parent
242d29bf5e
commit
2fa7a1dd4e
@ -192,23 +192,23 @@ const ResourceImagesPage = () => {
|
||||
></UploadImageSub>
|
||||
{selectKey.length > 0 && (
|
||||
<Button className="ml-16" onClick={() => cancelAll()}>
|
||||
取消选择
|
||||
取消操作
|
||||
</Button>
|
||||
)}
|
||||
{selectKey.length === 0 && (
|
||||
<Button className="ml-16" onClick={() => selectAll()}>
|
||||
批量操作
|
||||
</Button>
|
||||
)}
|
||||
{imageList.length !== 0 && (
|
||||
<>
|
||||
<Button className="ml-16" onClick={() => selectAll()}>
|
||||
全选
|
||||
</Button>
|
||||
<Button
|
||||
className="ml-16"
|
||||
disabled={selectKey.length === 0}
|
||||
type="primary"
|
||||
onClick={() => removeResource()}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
</>
|
||||
<Button
|
||||
className="ml-16"
|
||||
disabled={selectKey.length === 0}
|
||||
type="primary"
|
||||
onClick={() => removeResource()}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="d-flex"></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user