feat: 下载调整
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user