weui-miniprogram icon indicating copy to clipboard operation
weui-miniprogram copied to clipboard

[BUG]Uploader中的chooseImage()方法未执行

Open Abbotton opened this issue 4 years ago • 1 comments

Bug描述

Uploader中的chooseImage()方法未执行, 只写一行console.log()都不行, 设置了size-typesource-type属性,但不生效. 我看了下issues. 发现之前有人提过, #80 然后官方回复说修复了. 但现在在我这儿使用的话确实有问题.

复现方式

复制官方文档中的代码执行一下即可还原.

版本信息

  • weui: useExtendedLib
  • 开发者工具: Stable 1.05.2107090
<mp-uploader bindfail="uploadError" bindsuccess="uploadSuccess" binddelete="deleteImg"
    upload="{{uplaodFile}}" files="{{imgs}}" max-count="9" delete size-type="{{['compressed']}}">
</mp-uploader>

Abbotton avatar Jul 19 '21 03:07 Abbotton

又尝试了一下, 设置了max-size="{{2*1024*1024}}"属性后,超过设置大小的图片已经无法上传, 但又报了另外一个错误 微信截图_20210719120615

Abbotton avatar Jul 19 '21 04:07 Abbotton