fix(table): 表格粘贴报错

This commit is contained in:
itellyou 2022-01-25 15:50:54 +08:00
parent df20ee1d56
commit 7f4b3e593a
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
text-indent: 0;
-webkit-user-select: none;
user-select: none;
z-index: 1;
z-index: 128;
}
.data-toolbar-active {

View File

@ -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);
}
});
});