收藏
回答

代码不符合规范

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug 扩展组件-Uploader 微信iOS客户端 7.0.11 2.10.1

https://developers.weixin.qq.com/miniprogram/dev/extended/weui/uploader.html

虽然无伤大雅,但是还是跟你们报告一下,组件内uploader.wxml文件内出现了不应出现的div标签

<view class="weui-uploader {{extClass}}"> <view class="weui-uploader__hd"> <div class="weui-uploader__overview"> <view class="weui-uploader__title">{{title}}</view> <view class="weui-uploader__info" wx:if="{{maxCount > 1}}">{{currentFiles.length}}/{{maxCount}}</view> </div> <view wx:if="{{tips}}" class="weui-uploader__tips">{{tips}}</view> <view wx:else><slot name="tips"></slot></view> </view> <view class="weui-uploader__bd"> <view class="weui-uploader__files"> <block wx:for="{{currentFiles}}" wx:key="*this"> <view wx:if="{{item.error}}" data-index="{{index}}" bindtap="previewImage" class="weui-uploader__file weui-uploader__file_status"> <image class="weui-uploader__img" src="{{item.url}}" mode="aspectFill" /> <view class="weui-uploader__file-content"> <icon type="warn" size="23" color="#F43530"></icon> </view> </view> <view wx:elif="{{item.loading}}" data-index="{{index}}" bindtap="previewImage" class="weui-uploader__file weui-uploader__file_status"> <image class="weui-uploader__img" src="{{item.url}}" mode="aspectFill" /> <view class="weui-uploader__file-content"> <view class="weui-loading"></view> </view> </view> <view wx:else class="weui-uploader__file" data-index="{{index}}" bindtap="previewImage"> <image class="weui-uploader__img" src="{{item.url}}" mode="aspectFill" /> </view> </block> </view> <view wx:if="{{currentFiles.length < maxCount}}" class="weui-uploader__input-box"> <view class="weui-uploader__input" bindtap="chooseImage"></view> </view> </view> </view> <mp-gallery hide-on-click="{{true}}" show-delete="{{showDelete}}" show="{{showPreview}}" binddelete="deletePic" img-urls="{{previewImageUrls}}" current="{{previewCurrent}}"></mp-gallery>
最后一次编辑于  2020-02-26
回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2020-02-26

    导入的的都是这样吗?

    2020-02-26
    有用
    回复 2
    • 🐋
      🐋
      2020-02-27
      从这里下载的,,源代码里的,刚又重新下载了一下,确实有
      2020-02-27
      回复
    • 是小白啊
      是小白啊
      2020-02-27回复🐋
      好的,我们跟进看下
      2020-02-27
      回复
登录 后发表内容
问题标签