Vanessa 2023-07-12 00:07:16 +08:00
parent c6cbb15ed4
commit 65e1a32268
6 changed files with 60 additions and 36 deletions

View file

@ -188,12 +188,14 @@ export const openMenuPanel = (protyle: IProtyle,
}
transaction(protyle, [{
action: "sortAttrViewCol",
parentID: avId,
avID: avId,
viewID: data.viewID,
previousID: (targetElement.classList.contains("dragover__top") ? targetElement.previousElementSibling?.getAttribute("data-id") : targetElement.getAttribute("data-id")) || "",
id: sourceId,
}], [{
action: "sortAttrViewCol",
parentID: avId,
avID: avId,
viewID: data.viewID,
previousID: sourceElement.previousElementSibling?.getAttribute("data-id") || "",
id: sourceId,
}]);