mirror of
https://github.com/doocs/md.git
synced 2024-11-28 21:46:25 +08:00
fix: reset table data
This commit is contained in:
parent
b563450e46
commit
47847aabc4
@ -106,8 +106,10 @@ export default {
|
|||||||
table += currRow.join("|");
|
table += currRow.join("|");
|
||||||
table += "|\n";
|
table += "|\n";
|
||||||
}
|
}
|
||||||
|
this.tableData = {};
|
||||||
this.editor.replaceSelection(`\n${table}\n`, cursor);
|
this.rowNum = 1;
|
||||||
|
this.colNum = 1;
|
||||||
|
this.editor.replaceSelection(`\n${table}\n`, "end");
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
this.editorRefresh();
|
this.editorRefresh();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user