|
|
|
|
@ -714,7 +714,17 @@ export class Draw {
|
|
|
|
|
}
|
|
|
|
|
// 选区记录
|
|
|
|
|
const { startIndex, endIndex } = this.range.getRange()
|
|
|
|
|
if (startIndex !== endIndex && startIndex < index && index <= endIndex) {
|
|
|
|
|
if (startIndex !== endIndex && startIndex <= index && index <= endIndex) {
|
|
|
|
|
// 从行尾开始-绘制最小宽度
|
|
|
|
|
if (startIndex === index) {
|
|
|
|
|
const nextElement = this.elementList[startIndex + 1]
|
|
|
|
|
if (nextElement && nextElement.value === ZERO) {
|
|
|
|
|
rangeRecord.x = x + metrics.width
|
|
|
|
|
rangeRecord.y = y
|
|
|
|
|
rangeRecord.height = curRow.height
|
|
|
|
|
rangeRecord.width += this.options.rangeMinWidth
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const positionContext = this.position.getPositionContext()
|
|
|
|
|
// 表格需限定上下文
|
|
|
|
|
if (
|
|
|
|
|
@ -735,6 +745,7 @@ export class Draw {
|
|
|
|
|
rangeRecord.width += rangeWidth
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
index++
|
|
|
|
|
x += metrics.width
|
|
|
|
|
// 绘制表格内元素
|
|
|
|
|
|