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