Tencent / weui

A UI library by WeChat official design team, includes the most useful widgets/modules in mobile web applications.

Home Page:https://weui.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uploader中设置`size-type`和`source-type`属性无效

Abbotton opened this issue · comments

官方文档

示例代码中的chooseImage()方法并没有生效, 在方法中单独写一句console.log()都没执行.

设置size-typesource-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>

发错地方了. 不好意思.