啊鑫
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
@import '../style/var';
 
.van-dropdown-menu {
  user-select: none;
 
  &__bar {
    position: relative;
    display: flex;
    height: @dropdown-menu-height;
    background-color: @dropdown-menu-background-color;
    box-shadow: @dropdown-menu-box-shadow;
 
    &--opened {
      z-index: @dropdown-item-z-index + 1;
    }
  }
 
  &__item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0; // hack for flex ellipsis
    cursor: pointer;
 
    &:active {
      opacity: @active-opacity;
    }
 
    &--disabled {
      &:active {
        opacity: 1;
      }
 
      .van-dropdown-menu__title {
        color: @dropdown-menu-title-disabled-text-color;
      }
    }
  }
 
  &__title {
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    padding: @dropdown-menu-title-padding;
    color: @dropdown-menu-title-text-color;
    font-size: @dropdown-menu-title-font-size;
    line-height: @dropdown-menu-title-line-height;
 
    &::after {
      position: absolute;
      top: 50%;
      right: -4px;
      margin-top: -5px;
      border: 3px solid;
      border-color: transparent transparent @gray-4 @gray-4;
      transform: rotate(-45deg);
      opacity: 0.8;
      content: '';
    }
 
    &--active {
      color: @dropdown-menu-title-active-text-color;
 
      &::after {
        border-color: transparent transparent currentColor currentColor;
      }
    }
 
    &--down {
      &::after {
        margin-top: -1px;
        transform: rotate(135deg);
      }
    }
  }
}