Ben Lin
2024-10-22 78999ce1626d2a786f3a705281eeba79c2f1d6dd
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/* stylelint-disable scss/percent-placeholder-pattern */
%ResetBorder {
  border: 0;
  box-shadow: none;
}
 
%CompWidth {
  & > .ant-input,
  & > .ant-input-number,
  & > .ant-select,
  & > .ant-cascader-picker,
  & > .ant-calendar-picker,
  & > .ant-time-picker {
    width: 100%;
  }
}
 
.vxe-form {
  .vxe-form--item-content {
    @extend %CompWidth;
  }
}
 
.vxe-table--filter-antd-wrapper {
  & > .ant-input,
  & > .ant-input-number,
  & > .ant-select,
  & > .ant-rate {
    width: 180px;
  }
}
 
.vxe-cell,
.vxe-tree-cell {
  @extend %CompWidth;
 
  & > .ant-rate {
    vertical-align: bottom;
 
    .anticon-star {
      display: block;
    }
  }
}
 
.col--valid-error {
  & > .vxe-cell,
  & > .vxe-tree-cell {
    & > .ant-input,
    & > .ant-select .ant-input,
    & > .ant-select .ant-select-selection,
    & > .ant-input-number,
    & > .ant-cascader-picker .ant-cascader-input,
    & > .ant-calendar-picker .ant-calendar-picker-input {
      box-shadow: none;
    }
  }
}
 
.vxe-table.cell--highlight {
  .vxe-cell,
  .vxe-tree-cell {
    & > .ant-input,
    & > .ant-input-number {
      @extend %ResetBorder;
 
      padding: 0;
    }
 
    & > .ant-select {
      .ant-input {
        @extend %ResetBorder;
 
        padding: 0;
      }
 
      .ant-select-selection {
        @extend %ResetBorder;
 
        .ant-select-selection__rendered {
          margin: 0;
        }
      }
    }
 
    & > .ant-input-number {
      .ant-input-number-input {
        padding: 0;
      }
 
      .ant-input-number-handler-wrap,
      .ant-input-number-handler-down {
        @extend %ResetBorder;
      }
    }
 
    & > .ant-cascader-picker {
      .ant-input {
        @extend %ResetBorder;
      }
 
      .ant-cascader-picker-label {
        padding: 0;
      }
    }
 
    & > .ant-calendar-picker {
      .ant-calendar-picker-input {
        @extend %ResetBorder;
 
        padding: 0;
      }
    }
 
    & > .ant-time-picker {
      .ant-time-picker-input {
        @extend %ResetBorder;
 
        padding: 0;
      }
    }
  }
}