优化 canvasToPng
This commit is contained in:
9
types/uni-app.d.ts
vendored
9
types/uni-app.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user