From 2477a1bede2307406168f4ee70667e1de3586df0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 28 Mar 2023 10:22:32 +0800 Subject: [PATCH] :rotating_light: --- app/src/mobile/util/search.ts | 2 +- app/src/protyle/wysiwyg/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/mobile/util/search.ts b/app/src/mobile/util/search.ts index a16896afd..1ebd06d5a 100644 --- a/app/src/mobile/util/search.ts +++ b/app/src/mobile/util/search.ts @@ -67,7 +67,7 @@ export const popSearch = () => { title: '', icon:"iconSearch", html: '
', - bindEvent(HTMLElement) { + bindEvent() { initToolbarSearch(); const searchElement = document.getElementById("searchPanel"); // 不能使用 getEventName() https://ld246.com/article/1638887457149 diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 0d278ed6c..645e78a4e 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -405,7 +405,7 @@ export class WYSIWYG { target.removeAttribute("style"); const id = nodeElement.getAttribute("data-node-id"); const x = event.clientX; - const colIndex = parseInt(target.getAttribute("data-col-index")) + const colIndex = parseInt(target.getAttribute("data-col-index")); const colElement = nodeElement.querySelectorAll("table col")[colIndex] as HTMLElement; // 清空初始化 table 时的最小宽度 if (colElement.style.minWidth) {