|
@@ -537,26 +537,28 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
contentClone.querySelectorAll("table").forEach((table, tableIndex) => {
|
|
contentClone.querySelectorAll("table").forEach((table, tableIndex) => {
|
|
- table.style.borderCollapse = "collapse";
|
|
|
|
|
|
+ table.style.borderCollapse = "separate";
|
|
|
|
+ //table.style.borderSpacing = "1px"; // 使用间距来模拟边框
|
|
table.style.width = "100%";
|
|
table.style.width = "100%";
|
|
- table.style.border = "0.5pt solid #000000"; // 表格外边框
|
|
|
|
|
|
+ table.style.border = "none";
|
|
|
|
+ table.style.backgroundColor = "#000000"; // 表格背景色作为边框颜色
|
|
|
|
|
|
table.querySelectorAll("tr").forEach((row, rowIndex) => {
|
|
table.querySelectorAll("tr").forEach((row, rowIndex) => {
|
|
row.querySelectorAll("td, th").forEach((cell, cellIndex) => {
|
|
row.querySelectorAll("td, th").forEach((cell, cellIndex) => {
|
|
cell.style.padding = "5px";
|
|
cell.style.padding = "5px";
|
|
|
|
|
|
- // 设置右边框和下边框
|
|
|
|
- cell.style.borderRight = "0.5pt solid #000000";
|
|
|
|
- cell.style.borderBottom = "0.5pt solid #000000";
|
|
|
|
|
|
+ // 只设置右边框和下边框
|
|
|
|
+ cell.style.borderRight = "0.1pt solid #ffffff";
|
|
|
|
+ cell.style.borderBottom = "0.1pt solid #ffffff";
|
|
|
|
|
|
// 为第一行设置上边框
|
|
// 为第一行设置上边框
|
|
if (rowIndex === 0) {
|
|
if (rowIndex === 0) {
|
|
- cell.style.borderTop = "0.5pt solid #000000";
|
|
|
|
|
|
+ cell.style.borderTop = "0.1pt solid #ffffff";
|
|
}
|
|
}
|
|
|
|
|
|
// 为第一列设置左边框
|
|
// 为第一列设置左边框
|
|
if (cellIndex === 0) {
|
|
if (cellIndex === 0) {
|
|
- cell.style.borderLeft = "0.5pt solid #000000";
|
|
|
|
|
|
+ cell.style.borderLeft = "0.1pt solid #ffffff";
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|