mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
dba6ed203d
commit
6790c990ba
1 changed files with 6 additions and 3 deletions
|
|
@ -307,12 +307,15 @@ export class Files extends Model {
|
||||||
}
|
}
|
||||||
liElement.classList.remove("dragover__top", "dragover__bottom", "dragover");
|
liElement.classList.remove("dragover__top", "dragover__bottom", "dragover");
|
||||||
const sourceType = window.siyuan.dragElement.getAttribute("data-type");
|
const sourceType = window.siyuan.dragElement.getAttribute("data-type");
|
||||||
if (["NodeListItem", "NodeHeading"].includes(sourceType)) {
|
if (window.siyuan.dragElement.parentElement?.classList.contains("protyle-gutters")) {
|
||||||
// 编辑器情景菜单拖拽
|
if (["NodeListItem", "NodeHeading"].includes(sourceType)) {
|
||||||
liElement.classList.add("dragover");
|
// 编辑器情景菜单拖拽
|
||||||
|
liElement.classList.add("dragover");
|
||||||
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetType = liElement.getAttribute("data-type");
|
const targetType = liElement.getAttribute("data-type");
|
||||||
if (sourceType === "navigation-root" && targetType !== "navigation-root") {
|
if (sourceType === "navigation-root" && targetType !== "navigation-root") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue