Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b9f2b92
feat: 实现表格跨页拆分 #41
ThunderYu Aug 18, 2024
1afd045
fix: 修复合并表格时虚拟表格构建错误的问题
ThunderYu Aug 19, 2024
eb7a87b
fix: 修复zipElementList中跨页表格结构处理异常问题
ThunderYu Aug 19, 2024
cab3d24
fix: 不再改变整行挪到下一页的表格行id
ThunderYu Aug 19, 2024
4b18e7d
fix: 限定表格行minHeight最大不能超过页面内容区域高度
ThunderYu Aug 21, 2024
5ad8c3e
refactor: 简化表格行minHeight最大值的处理
ThunderYu Aug 21, 2024
35103ca
refactor: 简化表格行minHeight最大值的处理
ThunderYu Aug 21, 2024
861dd48
fix: 修复表格行minHeight撑满页面时,内容超出页面高度会导致卡死的问题
ThunderYu Aug 22, 2024
473b22a
fix: 修复表格前第一行是空行时,拖拽行超过页高会导致多出一张空白页的问题
ThunderYu Aug 26, 2024
51b0edb
fix: 修复表格跨页拆分后的内容无法框选的问题
ThunderYu Aug 29, 2024
d288c48
fix: 修复表格跨页拆分后光标及位置上下文
ThunderYu Aug 29, 2024
f6b9173
fix: 修复表格跨页拆分后,在其中录入中文异常的问题
ThunderYu Aug 30, 2024
c15019a
Merge branch 'main' into split-table
ThunderYu Aug 30, 2024
4c3a479
fix: 修复在表格跨页处输入中文时的异常
ThunderYu Sep 2, 2024
88f3296
Merge branch 'main' into split-table
ThunderYu Sep 2, 2024
4785c83
fix: fix: 修复跨页拆分出的单元格中可能出现预期外的零宽字符,从而影响单元格可编辑性及尺寸的问题
ThunderYu Sep 2, 2024
7fe338a
fix: 修复空单元格跨页拆分异常问题
ThunderYu Sep 2, 2024
9bda30f
Merge branch 'main' into split-table
ThunderYu Sep 6, 2024
9ca6bb5
fix: 排版过程中合并跨页表格时修正位置上下文
ThunderYu Sep 6, 2024
f0fdede
fix: 修复位置上下文在表格中时分页模式切换为连页模式报错
ThunderYu Sep 6, 2024
567d5d2
Merge branch 'main' into split-table
ThunderYu Sep 14, 2024
2fcbbe0
feat: 上方插入新行功能支持表格跨页场景
ThunderYu Sep 20, 2024
73a1df5
feat: 下方插入新行功能支持表格跨页场景
ThunderYu Sep 23, 2024
d2c712f
refactor: 重构表格跨页行列操作实现
ThunderYu Sep 26, 2024
e97ce1d
Merge branch 'main' into split-table
ThunderYu Oct 8, 2024
3b6ed88
fix: 表格排版前重新计算行列索引,以解决执行插入行等操作后可能出现的渲染异常问题
ThunderYu Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
441 changes: 353 additions & 88 deletions src/editor/core/draw/Draw.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/editor/core/draw/frame/Footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Footer {
this.rowList = this.draw.computeRowList({
innerWidth,
elementList: this.elementList
})
}).rowList
}

private _computePositionList() {
Expand Down
2 changes: 1 addition & 1 deletion src/editor/core/draw/frame/Header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Header {
innerWidth,
elementList: this.elementList,
surroundElementList
})
}).rowList
}

private _computePositionList() {
Expand Down
2 changes: 1 addition & 1 deletion src/editor/core/draw/frame/Placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Placeholder {
this.rowList = this.draw.computeRowList({
innerWidth,
elementList: this.elementList
})
}).rowList
}

private _computePositionList() {
Expand Down
3 changes: 3 additions & 0 deletions src/editor/core/draw/particle/ListParticle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class ListParticle {
): Map<string, number> {
const listStyleMap = new Map<string, number>()
let start = 0
if (!elementList[start]) {
return listStyleMap
}
let curListId = elementList[start].listId
let curElementList: IElement[] = []
const elementLength = elementList.length
Expand Down
Loading