|
|
|
@ -222,7 +222,10 @@ export class Draw {
|
|
|
|
this.intersectionPageNo = 0
|
|
|
|
this.intersectionPageNo = 0
|
|
|
|
this.lazyRenderIntersectionObserver = null
|
|
|
|
this.lazyRenderIntersectionObserver = null
|
|
|
|
|
|
|
|
|
|
|
|
this.render({ isSetCursor: false })
|
|
|
|
this.render({
|
|
|
|
|
|
|
|
isInit: true,
|
|
|
|
|
|
|
|
isSetCursor: false
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public getMode(): EditorMode {
|
|
|
|
public getMode(): EditorMode {
|
|
|
|
@ -1708,7 +1711,8 @@ export class Draw {
|
|
|
|
isSubmitHistory = true,
|
|
|
|
isSubmitHistory = true,
|
|
|
|
isSetCursor = true,
|
|
|
|
isSetCursor = true,
|
|
|
|
isCompute = true,
|
|
|
|
isCompute = true,
|
|
|
|
isLazy = true
|
|
|
|
isLazy = true,
|
|
|
|
|
|
|
|
isInit = false
|
|
|
|
} = payload || {}
|
|
|
|
} = payload || {}
|
|
|
|
let { curIndex } = payload || {}
|
|
|
|
let { curIndex } = payload || {}
|
|
|
|
const innerWidth = this.getInnerWidth()
|
|
|
|
const innerWidth = this.getInnerWidth()
|
|
|
|
@ -1823,7 +1827,7 @@ export class Draw {
|
|
|
|
this.eventBus.emit('pageSizeChange', this.pageRowList.length)
|
|
|
|
this.eventBus.emit('pageSizeChange', this.pageRowList.length)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 文档内容改变
|
|
|
|
// 文档内容改变
|
|
|
|
if (isSubmitHistory) {
|
|
|
|
if (isSubmitHistory && !isInit) {
|
|
|
|
if (this.listener.contentChange) {
|
|
|
|
if (this.listener.contentChange) {
|
|
|
|
this.listener.contentChange()
|
|
|
|
this.listener.contentChange()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|