mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(uploader): preview-size repeat px (#2340)
This commit is contained in:
parent
164ee03a4c
commit
ab96a26913
@ -17,14 +17,14 @@
|
||||
src="{{ item.url || item.path }}"
|
||||
alt="{{ item.name || ('图片' + index) }}"
|
||||
class="van-uploader__preview-image"
|
||||
style="width: {{ computedPreviewSize }}px; height: {{ computedPreviewSize }}px;"
|
||||
style="width: {{ computedPreviewSize }}; height: {{ computedPreviewSize }};"
|
||||
data-url="{{ item.url || item.path }}"
|
||||
bind:tap="doPreviewImage"
|
||||
/>
|
||||
<view
|
||||
wx:else
|
||||
class="van-uploader__file"
|
||||
style="width: {{ computedPreviewSize }}px; height: {{ computedPreviewSize }}px;"
|
||||
style="width: {{ computedPreviewSize }}; height: {{ computedPreviewSize }};"
|
||||
>
|
||||
<van-icon name="description" class="van-uploader__file-icon" />
|
||||
<view class="van-uploader__file-name van-ellipsis">{{ item.name || item.url || item.path }}</view>
|
||||
@ -48,7 +48,7 @@
|
||||
<!-- 默认上传样式 -->
|
||||
<view
|
||||
class="van-uploader__upload"
|
||||
style="width: {{ computedPreviewSize }}px; height: {{ computedPreviewSize }}px;"
|
||||
style="width: {{ computedPreviewSize }}; height: {{ computedPreviewSize }};"
|
||||
bind:tap="startUpload"
|
||||
>
|
||||
<van-icon name="plus" class="van-uploader__upload-icon" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user