啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
@import '../style/var';
 
.van-image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  &__swipe {
    height: 100%;
 
    &-item {
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
  }
 
  &__cover {
    position: absolute;
    top: 0;
    left: 0;
  }
 
  &__image {
    width: 100%;
    transition-property: transform;
 
    &--vertical {
      width: auto;
      height: 100%;
    }
 
    img {
      // disable desktop browser image drag
      -webkit-user-drag: none;
    }
 
    .van-image {
      &__error {
        top: 30%;
        height: 40%;
      }
 
      &__error-icon {
        font-size: 36px;
      }
 
      &__loading {
        background-color: transparent;
      }
    }
  }
 
  &__index {
    position: absolute;
    top: @padding-md;
    left: 50%;
    color: @image-preview-index-text-color;
    font-size: @image-preview-index-font-size;
    line-height: @image-preview-index-line-height;
    text-shadow: @image-preview-index-text-shadow;
    transform: translate(-50%, 0);
  }
 
  &__overlay {
    background-color: @image-preview-overlay-background-color;
  }
 
  &__close-icon {
    position: absolute;
    z-index: @image-preview-close-icon-z-index;
    color: @image-preview-close-icon-color;
    font-size: @image-preview-close-icon-size;
    cursor: pointer;
 
    &:active {
      color: @image-preview-close-icon-active-color;
    }
 
    &--top-left {
      top: @image-preview-close-icon-margin;
      left: @image-preview-close-icon-margin;
    }
 
    &--top-right {
      top: @image-preview-close-icon-margin;
      right: @image-preview-close-icon-margin;
    }
 
    &--bottom-left {
      bottom: @image-preview-close-icon-margin;
      left: @image-preview-close-icon-margin;
    }
 
    &--bottom-right {
      right: @image-preview-close-icon-margin;
      bottom: @image-preview-close-icon-margin;
    }
  }
}