mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +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 += "|\n";
|
||||
}
|
||||
|
||||
this.editor.replaceSelection(`\n${table}\n`, cursor);
|
||||
this.tableData = {};
|
||||
this.rowNum = 1;
|
||||
this.colNum = 1;
|
||||
this.editor.replaceSelection(`\n${table}\n`, "end");
|
||||
this.$emit("close");
|
||||
this.editorRefresh();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user