feat: add isTable property to the RangeContext interface

pr675
Hufe921 2 years ago
parent 1df98b9359
commit 9ad991a393

@ -2125,6 +2125,8 @@ export class CommandAdapt {
} }
// 区域信息 // 区域信息
const zone = this.draw.getZone().getZone() const zone = this.draw.getZone().getZone()
// 表格信息
const isTable = this.position.getPositionContext().isTable
return deepClone({ return deepClone({
isCollapsed, isCollapsed,
startElement, startElement,
@ -2132,7 +2134,8 @@ export class CommandAdapt {
startPageNo, startPageNo,
endPageNo, endPageNo,
rangeRects, rangeRects,
zone zone,
isTable
}) })
} }

@ -27,4 +27,5 @@ export type RangeContext = {
endPageNo: number endPageNo: number
rangeRects: RangeRect[] rangeRects: RangeRect[]
zone: EditorZone zone: EditorZone
isTable: boolean
} }

Loading…
Cancel
Save