diff --git a/src/App.vue b/src/App.vue
index 8601d19..81f7f87 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -314,7 +314,14 @@ export default {
margin-top: 10px;
}
}
-
+.no-break {
+ page-break-inside: avoid;
+ }
+/* 表格行不被分割 */
+ table, tr, td, th {
+ page-break-inside: avoid;
+ }
+
/** 基础信息设置tab **/
.edit-container {
diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue
index 27520d0..e224bfd 100644
--- a/src/components/Template/BaseInfoFormPackage.vue
+++ b/src/components/Template/BaseInfoFormPackage.vue
@@ -315,10 +315,12 @@ export default {
}
.flex1 {
+ page-break-inside: avoid;
flex: 1;
}
.flex {
+ page-break-inside: avoid;
display: flex;
}
diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index 077ae6e..c8a2f30 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -940,6 +940,7 @@ export default {
text-align: left;
vertical-align: middle;
border-right: 1px solid #ebeef5;
+ page-break-inside: avoid;
box-sizing: border-box;
}
@@ -959,6 +960,7 @@ export default {
.body-cell {
color: #606266;
+ page-break-inside: avoid;
background-color: #fff;
}
diff --git a/src/components/Template/Table.vue b/src/components/Template/Table.vue
index 91c525d..0545679 100644
--- a/src/components/Template/Table.vue
+++ b/src/components/Template/Table.vue
@@ -3,7 +3,7 @@