fix TextEditor initial line number
This commit is contained in:
@@ -7,7 +7,7 @@ const textarea = ref<HTMLTextAreaElement>(
|
|||||||
null as unknown as HTMLTextAreaElement
|
null as unknown as HTMLTextAreaElement
|
||||||
);
|
);
|
||||||
|
|
||||||
const currentLine = ref<number>(0);
|
const currentLine = ref<number>(1);
|
||||||
const totalLines = computed(
|
const totalLines = computed(
|
||||||
() => editor.data?.editedContent.split('\n').length ?? 0
|
() => editor.data?.editedContent.split('\n').length ?? 0
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user