From a2d4c4b9af69c73b3e1b39f3b0b36f67daaf222e Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Mon, 17 Aug 2020 07:56:42 +0800 Subject: [PATCH] =?UTF-8?q?ucToast=20=E6=94=AF=E6=8C=81position:top/bottom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ucToast/ucToast.vue | 483 ++++++++++++++++++++++---------------------- unitool/index.js | 2 +- 2 files changed, 246 insertions(+), 239 deletions(-) diff --git a/ucToast/ucToast.vue b/ucToast/ucToast.vue index 5e45da7..4958560 100644 --- a/ucToast/ucToast.vue +++ b/ucToast/ucToast.vue @@ -9,252 +9,259 @@ based on *duration: 消失时间(Number),默认2000 *distance: 弹窗间距,默认128,可设为0代表重叠 *clickable: 是否点击消失(Boolean),默认false + *position: top|bottom, 出现在屏幕顶部或底部,默认为 top --> diff --git a/unitool/index.js b/unitool/index.js index d6ca542..a406310 100644 --- a/unitool/index.js +++ b/unitool/index.js @@ -112,7 +112,7 @@ module.exports = { cloudPath = tempFiles[0].name // #endif } else if (mediaType === 'video') { - let [errorChoose, { tempFilePath, tempFile, name }] = await uni.chooseVideo({ sourceType }) + let [errorChoose, { tempFilePath, tempFile, duration, size, width, height, name }] = await uni.chooseVideo({ sourceType }) filePath = tempFilePath cloudPath = 'cloud.mp4' // #ifdef H5