fix: control element rendering boundary error in table #527

This commit is contained in:
Hufe921
2024-04-27 11:34:19 +08:00
parent 3fdd4dedf4
commit f41cea2443
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1787,7 +1787,7 @@ export class CommandAdapt {
const { startIndex, endIndex } = this.range.getRange()
if (!~startIndex && !~endIndex) return
const { value, width, height } = payload
this.draw.insertElementList([
this.insertElementList([
{
value,
width,
+1
View File
@@ -286,6 +286,7 @@ export class Draw {
this.setEditorData(this.printModeData)
this.printModeData = null
}
this.range.clearRange()
this.mode = payload
this.render({
isSetCursor: false,