4141 >
4242 <v-md-preview
4343 :text =" text"
44+ :tab-size =" tabSize"
4445 :scroll-container =" getPreviewScrollContainer"
4546 @change =" handleChange"
4647 ref =" preview"
@@ -73,7 +74,7 @@ const component = {
7374 this .setFocusEnd ();
7475 },
7576 // Must implement
76- editorFocusEnd () {
77+ editorFocusEnd () {
7778 this .focus ();
7879
7980 this .$refs .editorEgine .setRange ({
@@ -82,7 +83,7 @@ const component = {
8283 });
8384 },
8485 // Must implement
85- delLineLeft () {
86+ delLineLeft () {
8687 const { editorEgine } = this .$refs ;
8788 const { start } = editorEgine .getRange ();
8889
@@ -91,25 +92,25 @@ const component = {
9192 this .replaceSelectionText (' \n ' );
9293 },
9394 // Must implement
94- getCursorLineLeftText () {
95+ getCursorLineLeftText () {
9596 const { start , end } = this .$refs .editorEgine .getRange ();
9697
9798 return start === end ? this .text .slice (0 , start).split (' \n ' ).pop () : null ;
9899 },
99100 // Must implement
100- editorRegisterHotkeys (... arg ) {
101+ editorRegisterHotkeys (... arg ) {
101102 this .$refs .editorEgine .registerHotkeys (... arg);
102103 },
103104 // Must implement
104- editorScrollToTop (scrollTop ) {
105+ editorScrollToTop (scrollTop ) {
105106 this .$refs .editorScroller .scrollTo (scrollTop);
106107 },
107108 // Must implement
108- getScrollInfo () {
109+ getScrollInfo () {
109110 return this .$refs .editorScroller .getScrollInfo ();
110111 },
111112 // Must implement
112- heightAtLine (... arg ) {
113+ heightAtLine (... arg ) {
113114 return this .$refs .editorEgine .heightAtLine (... arg);
114115 },
115116 // Must implement
@@ -135,7 +136,7 @@ const component = {
135136 this .$refs .editorEgine .insertText (text);
136137 },
137138 // Must implement
138- getCurrentSelectedStr () {
139+ getCurrentSelectedStr () {
139140 const { start , end } = this .$refs .editorEgine .getRange ();
140141
141142 return end > start ? this .text .slice (start, end) : null ;
0 commit comments