Browse Source

:arrow_up: lute

Liyuan Li 5 years ago
parent
commit
8ded66cf58
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/ts/util/editorCommonEvent.ts
  2. 2 2
      types/index.d.ts

+ 1 - 1
src/ts/util/editorCommonEvent.ts

@@ -76,7 +76,7 @@ export const cutEvent =
 
 export const scrollCenter = (vditor: IVditor) => {
     if (vditor.currentMode === "wysiwyg" && vditor.options.comment.enable) {
-        vditor.options.comment.adjustTop(vditor.wysiwyg.getComments(vditor, true))
+        vditor.options.comment.adjustTop(vditor.wysiwyg.getComments(vditor, true));
     }
     if (!vditor.options.typewriterMode) {
         return;

+ 2 - 2
types/index.d.ts

@@ -647,6 +647,6 @@ interface IVditor {
 }
 
 interface ICommentsData {
-    id: string
-    top: number
+    id: string;
+    top: number;
 }