[improvement] ImagePreview: add less vars

This commit is contained in:
陈嘉涵 2019-05-12 18:43:15 +08:00
parent 9de9a4f248
commit 189e1248b8
3 changed files with 12 additions and 3 deletions

View File

@ -81,6 +81,10 @@
- 支持`Number`类型的`size`属性
### ImagePreview
- 新增多个`LESS`变量
### Loading
- 新增`default`插槽

View File

@ -22,14 +22,14 @@
position: absolute;
top: 10px;
left: 50%;
color: @white;
font-size: 14px;
color: @image-preview-index-text-color;
font-size: @image-preview-index-font-size;
letter-spacing: 2px;
transform: translate(-50%, 0);
}
&__overlay {
background-color: rgba(0, 0, 0, .9);
background-color: @image-preview-overlay-background-color;
}
.van-swipe {

View File

@ -178,6 +178,11 @@
@info-background-color: @red;
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
// ImagePreview
@image-preview-index-text-color: @white;
@image-preview-index-font-size: 14px;
@image-preview-overlay-background-color: rgba(0, 0, 0, .9);
// List
@list-icon-margin-right: 5px;
@list-text-color: @gray-dark;