优化 canvasToPng

This commit is contained in:
icssoa
2025-07-29 13:26:31 +08:00
parent 28a6627224
commit 3b0e006ca0
8 changed files with 215 additions and 210 deletions

9
types/uni-app.d.ts vendored
View File

@@ -377,6 +377,15 @@ declare const onUnhandledRejection: (
declare const onUnload: (hook: () => any, target?: ComponentInternalInstance | null) => void;
declare interface UniElement {
firstChild: UniElement;
lastChild: UniElement;
previousSibling: UniElement;
parentElement: UniElement;
children: UniElement[];
attributes: Map<string, any>;
dataset: Map<string, any>;
style: CSSStyleDeclaration;
classList: string[];
takeSnapshot(options: {
success: (res: { tempFilePath: string }) => void;
fail: (err: { errCode: number; errMsg: string }) => void;