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