mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat(Uploader): update delete icon style (#2410)
This commit is contained in:
parent
9b45b71b88
commit
cee926059e
@ -510,8 +510,9 @@
|
||||
@uploader-upload-border-color: @gray-3;
|
||||
@uploader-upload-border-radius: 4px;
|
||||
@uploader-upload-background-color: @white;
|
||||
@uploader-delete-color: @white;
|
||||
@uploader-delete-background-color: rgba(0, 0, 0, .45);
|
||||
@uploader-delete-color: @gray-6;
|
||||
@uploader-delete-icon-size: 18px;
|
||||
@uploader-delete-background-color: @white;
|
||||
@uploader-file-background-color: @background-color;
|
||||
@uploader-file-icon-size: 20px;
|
||||
@uploader-file-icon-color: @gray-7;
|
||||
|
@ -51,15 +51,12 @@
|
||||
|
||||
&-delete {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
top: -8px;
|
||||
right: -8px;
|
||||
color: @uploader-delete-color;
|
||||
text-align: center;
|
||||
font-size: @uploader-delete-icon-size;
|
||||
background-color: @uploader-delete-background-color;
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
<view class="van-uploader__file-name van-ellipsis">{{ item.name || item.url || item.path }}</view>
|
||||
</view>
|
||||
<van-icon
|
||||
name="delete"
|
||||
name="clear"
|
||||
class="van-uploader__preview-delete"
|
||||
data-index="{{ index }}"
|
||||
bind:tap="deleteItem"
|
||||
|
Loading…
x
Reference in New Issue
Block a user