|
|
|
@ -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>
|
|
|
|
|
);
|
|
|
|
|