fix(table): 表格粘贴报错
This commit is contained in:
parent
df20ee1d56
commit
7f4b3e593a
|
@ -11,7 +11,7 @@
|
|||
text-indent: 0;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
z-index: 1;
|
||||
z-index: 128;
|
||||
}
|
||||
|
||||
.data-toolbar-active {
|
||||
|
|
|
@ -388,8 +388,8 @@ class Table<T extends TableOptions = TableOptions> extends Plugin<T> {
|
|||
const td = $(tdChild);
|
||||
if (td.name !== 'td') {
|
||||
const newTd = $(`<td></td>`);
|
||||
newTd.append(td);
|
||||
td.before(newTd);
|
||||
newTd.append(td);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue