fix: merge table cell boundary error #661
This commit is contained in:
@@ -1355,9 +1355,15 @@ export class CommandAdapt {
|
|||||||
d++
|
d++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 重新渲染
|
// 设置上下文信息
|
||||||
const curIndex = startTd.value.length - 1
|
this.position.setPositionContext({
|
||||||
|
...positionContext,
|
||||||
|
trIndex: anchorTd.trIndex,
|
||||||
|
tdIndex: anchorTd.tdIndex
|
||||||
|
})
|
||||||
|
const curIndex = anchorTd.value.length - 1
|
||||||
this.range.setRange(curIndex, curIndex)
|
this.range.setRange(curIndex, curIndex)
|
||||||
|
// 重新渲染
|
||||||
this.draw.render()
|
this.draw.render()
|
||||||
this.tableTool.render()
|
this.tableTool.render()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,6 +380,8 @@ export class TableParticle {
|
|||||||
td.height = height
|
td.height = height
|
||||||
td.rowIndex = t
|
td.rowIndex = t
|
||||||
td.colIndex = colIndex
|
td.colIndex = colIndex
|
||||||
|
td.trIndex = t
|
||||||
|
td.tdIndex = d
|
||||||
// 当前列x轴累加
|
// 当前列x轴累加
|
||||||
preX += width
|
preX += width
|
||||||
// 一行中的最后td
|
// 一行中的最后td
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ export interface ITd {
|
|||||||
colspan: number
|
colspan: number
|
||||||
rowspan: number
|
rowspan: number
|
||||||
value: IElement[]
|
value: IElement[]
|
||||||
|
trIndex?: number
|
||||||
|
tdIndex?: number
|
||||||
isLastRowTd?: boolean
|
isLastRowTd?: boolean
|
||||||
isLastColTd?: boolean
|
isLastColTd?: boolean
|
||||||
isLastTd?: boolean
|
isLastTd?: boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user