mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🐛 历史表格不应拖拽
This commit is contained in:
parent
c30b85d01f
commit
adf506f381
2 changed files with 7 additions and 13 deletions
|
|
@ -44,11 +44,9 @@ const renderCompare = (element: HTMLElement) => {
|
|||
breadcrumbDocName: false,
|
||||
breadcrumbContext: false,
|
||||
},
|
||||
typewriterMode: false,
|
||||
after(editor) {
|
||||
disabledProtyle(editor.protyle);
|
||||
}
|
||||
typewriterMode: false
|
||||
});
|
||||
disabledProtyle(leftEditor.protyle);
|
||||
rightEditor = new Protyle(rightElement.lastElementChild as HTMLElement, {
|
||||
blockId: "",
|
||||
action: [Constants.CB_GET_HISTORY],
|
||||
|
|
@ -60,11 +58,9 @@ const renderCompare = (element: HTMLElement) => {
|
|||
breadcrumbDocName: false,
|
||||
breadcrumbContext: false,
|
||||
},
|
||||
typewriterMode: false,
|
||||
after(editor) {
|
||||
disabledProtyle(editor.protyle);
|
||||
}
|
||||
typewriterMode: false
|
||||
});
|
||||
disabledProtyle(rightEditor.protyle);
|
||||
}
|
||||
|
||||
fetchPost("/api/repo/openRepoSnapshotDoc", {id: element.getAttribute("data-id")}, (response) => {
|
||||
|
|
@ -137,11 +133,11 @@ export const showDiff = (ids: string) => {
|
|||
</div>
|
||||
<div class="fn__flex-1 fn__flex">
|
||||
<div class="fn__flex-1">
|
||||
<textarea class="history__text fn__none"></textarea>
|
||||
<textarea style="height: 100%;width: 100%;" class="history__text fn__none"></textarea>
|
||||
<div style="min-height: 100%;"></div>
|
||||
</div>
|
||||
<div class="fn__none fn__flex-1" style="border-left: 1px solid var(--b3-border-color);">
|
||||
<textarea class="history__text fn__none"></textarea>
|
||||
<textarea style="height: 100%;width: 100%;" class="history__text fn__none"></textarea>
|
||||
<div style="min-height: 100%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -332,10 +332,8 @@ export const openHistory = () => {
|
|||
breadcrumbContext: false,
|
||||
},
|
||||
typewriterMode: false,
|
||||
after(editor) {
|
||||
disabledProtyle(editor.protyle);
|
||||
}
|
||||
});
|
||||
disabledProtyle(historyEditor.protyle);
|
||||
const repoElement = dialog.element.querySelector('#historyContainer [data-type="repo"]');
|
||||
const selectElement = repoElement.querySelector(".b3-select") as HTMLSelectElement;
|
||||
selectElement.addEventListener("change", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue