Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
Ifar-Xml-Edtor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
Ifar-Xml-Edtor
Commits
862f9ad6
Commit
862f9ad6
authored
Jul 07, 2026
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(editor): 优化表格样式及打印分页效果
- 调整表格布局为自动,增强适应性 - 减小表格单元格内边距,提升内容密度 - 添加单元格内文字换行,避免内容溢出 - 优化打印样式,防止表格行和图片跨页中断
parent
59372871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/views/editor/functionals/index.ts
+4
-2
No files found.
src/views/editor/functionals/index.ts
View file @
862f9ad6
...
@@ -264,17 +264,19 @@ export function useEditor() {
...
@@ -264,17 +264,19 @@ export function useEditor() {
min-width: 0 !important;
min-width: 0 !important;
margin-top: 10px !important;
margin-top: 10px !important;
margin-bottom: 20px !important;
margin-bottom: 20px !important;
table-layout: auto !important;
}
}
table.cals-table th, table.cals-table td {
table.cals-table th, table.cals-table td {
border: 1px solid #000000 !important;
border: 1px solid #000000 !important;
padding: 8px 10px !important;
padding: 6px 8px !important;
word-break: break-word !important;
}
}
@media print {
@media print {
body {
body {
padding: 0 !important;
padding: 0 !important;
}
}
/* 打印优化:避免表格行或图片在中间被截断分页 */
/* 打印优化:避免表格行或图片在中间被截断分页 */
t
able, t
r, img {
tr, img {
page-break-inside: avoid !important;
page-break-inside: avoid !important;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment