🐛: layer 类型

This commit is contained in:
sight
2022-07-09 10:32:27 +08:00
parent a939c48b79
commit 04dd4ab102
4 changed files with 27 additions and 23 deletions

View File

@@ -264,7 +264,10 @@ export function getDrawerAnimationClass(offset: any, isClose: boolean = false) {
}
//计算图片大小 并缩放
export async function calculatePhotosArea(url: string, options: object) {
export async function calculatePhotosArea(
url: string,
options: object
): Promise<Array<string>> {
let img = new Image();
img.src = url;
return new Promise((resolve, reject) => {