|
|
|
|
@ -1851,6 +1851,12 @@ export class Draw {
|
|
|
|
|
startIndex !== endIndex &&
|
|
|
|
|
startIndex <= index &&
|
|
|
|
|
index <= endIndex
|
|
|
|
|
) {
|
|
|
|
|
const positionContext = this.position.getPositionContext()
|
|
|
|
|
// 表格需限定上下文
|
|
|
|
|
if (
|
|
|
|
|
(!positionContext.isTable && !element.tdId) ||
|
|
|
|
|
positionContext.tdId === element.tdId
|
|
|
|
|
) {
|
|
|
|
|
// 从行尾开始-绘制最小宽度
|
|
|
|
|
if (startIndex === index) {
|
|
|
|
|
@ -1862,12 +1868,6 @@ export class Draw {
|
|
|
|
|
rangeRecord.width += this.options.rangeMinWidth
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const positionContext = this.position.getPositionContext()
|
|
|
|
|
// 表格需限定上下文
|
|
|
|
|
if (
|
|
|
|
|
(!positionContext.isTable && !element.tdId) ||
|
|
|
|
|
positionContext.tdId === element.tdId
|
|
|
|
|
) {
|
|
|
|
|
let rangeWidth = metrics.width
|
|
|
|
|
// 最小选区宽度
|
|
|
|
|
if (rangeWidth === 0 && curRow.elementList.length === 1) {
|
|
|
|
|
|