|
|
|
|
@ -1168,14 +1168,7 @@ export class Draw {
|
|
|
|
|
this._createPage(i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 绘制元素
|
|
|
|
|
if (isLazy) {
|
|
|
|
|
this._lazyRender()
|
|
|
|
|
} else {
|
|
|
|
|
this._immediateRender()
|
|
|
|
|
}
|
|
|
|
|
// 移除多余页
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
const curPageCount = this.pageRowList.length
|
|
|
|
|
const prePageCount = this.pageList.length
|
|
|
|
|
if (prePageCount > curPageCount) {
|
|
|
|
|
@ -1184,7 +1177,12 @@ export class Draw {
|
|
|
|
|
this.pageList.splice(curPageCount, deleteCount)
|
|
|
|
|
.forEach(page => page.remove())
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 绘制元素
|
|
|
|
|
if (isLazy) {
|
|
|
|
|
this._lazyRender()
|
|
|
|
|
} else {
|
|
|
|
|
this._immediateRender()
|
|
|
|
|
}
|
|
|
|
|
// 光标重绘
|
|
|
|
|
if (isSetCursor) {
|
|
|
|
|
const positionContext = this.position.getPositionContext()
|
|
|
|
|
|