Uploader中设置`size-type`和`source-type`属性无效
Abbotton opened this issue · comments
示例代码中的chooseImage()
方法并没有生效, 在方法中单独写一句console.log()
都没执行.
设置size-type
和source-type
属性后,上传的图片还是原图, 没有压缩, 选择图片的地方还是相机和相册.
下面是.wxml
代码, 求指教:
<mp-cell prop="category_id" title="机械照片" wx:if="{{current_device_type == 2}}">
<mp-uploader bindfail="uploadError" bindsuccess="uploadSuccess" binddelete="deleteImg"
upload="{{uplaodFile}}" files="{{imgs}}" max-count="9" title="" delete size-type="{{['compressed']}}" ext-class="upload_wrap">
</mp-uploader>
</mp-cell>
发错地方了. 不好意思.