!2575 修复:批量选择模型后出现删除按钮亮显后又置灰

pull/2572/MERGE
钱若寒 8 months ago committed by ChenX
parent 227e7a7eed
commit 606eebc1d9

@ -239,14 +239,16 @@ export default class UserCollect extends Component<{}, {}>
document.ondrop = null;
}}
onMouseDown={(e) =>
{
if (!this.isBatch && item.type === '1')
this.resourceStore.WhenResourceDrag(e, item);
}}
onClick={(e) =>
{
if (this.isBatch)
{
this.HandleCheckChange(item);
return;
}
if (item.type === '1')
this.resourceStore.WhenResourceDrag(e, item);
}}
>
<div className="itemOptions">
@ -286,6 +288,11 @@ export default class UserCollect extends Component<{}, {}>
</Popover>
</div>
<Checkbox
onMouseDown={(e) =>
{
//因为上层捕捉了鼠标事件,所以这里组织冒泡,避免上次继续响应鼠标按下导致触发绘制模块
e.stopPropagation();
}}
style={{
display: this.isBatch ? "block" : "none",
position: "absolute",
@ -295,6 +302,7 @@ export default class UserCollect extends Component<{}, {}>
{
this.HandleCheckChange(item);
}}
checked={this.batchDelete.indexOf(item.collect_id) !== -1}
/>
</div>
);

Loading…
Cancel
Save