feat: 下载调整

This commit is contained in:
2025-12-11 18:44:06 +08:00
parent 1ac4807851
commit 3b78393e54
2 changed files with 10 additions and 6 deletions

View File

@ -9,7 +9,7 @@ const isDOM = (obj) => obj instanceof HTMLElement;
* @param {string} name 文件名
*/
export const downloadPDF = async (dom, name = '导出文件') => {
if(!isDOM(dom)) return;
if (!isDOM(dom)) return;
try {
// 等待一段时间确保所有图表完全渲染
@ -89,6 +89,9 @@ export function downloadDocWithStyle(textContent) {
text-align: justify;
text-justify: inter-character;
}
.center-subtitle {
display: flex;align-items: center;justify-content: space-between; color: red;margin-top: 30px;padding: 0 30px;font-size: 18px;font-weight: 700;
}
</style>
</head>
<body>