mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
This commit is contained in:
parent
9bb91c3a97
commit
dec1edd0de
2 changed files with 4 additions and 2 deletions
|
|
@ -928,7 +928,8 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
avID,
|
||||
blockID,
|
||||
id,
|
||||
previousID: window.siyuan.dragElement.previousElementSibling?.getAttribute("data-id")
|
||||
previousID: window.siyuan.dragElement.previousElementSibling?.getAttribute("data-id"),
|
||||
data: "unRefresh" // 不需要重新渲染
|
||||
}], [{
|
||||
action: "sortAttrViewView",
|
||||
avID,
|
||||
|
|
@ -1741,6 +1742,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
if (window.siyuan.dragElement) {
|
||||
window.siyuan.dragElement.style.opacity = "";
|
||||
window.siyuan.dragElement = undefined;
|
||||
document.onmousemove = null;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -856,7 +856,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
"duplicateAttrViewKey", "setAttrViewViewDesc", "setAttrViewCoverFrom", "setAttrViewCoverFromAssetKeyID",
|
||||
"setAttrViewBlockView", "setAttrViewCardSize", "setAttrViewCardAspectRatio", "hideAttrViewName", "setAttrViewShowIcon",
|
||||
"setAttrViewWrapField", "setAttrViewGroup"].includes(operation.action)) {
|
||||
if (!isUndo) {
|
||||
if (!isUndo && operation.data !== "unRefresh") {
|
||||
// 撤销 transaction 会进行推送,需使用推送来进行刷新最新数据 https://github.com/siyuan-note/siyuan/issues/13607
|
||||
refreshAV(protyle, operation);
|
||||
} else if (operation.action === "setAttrViewName") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue