vxe-table 4.4.1 → 4.4.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/es/button/style.css +27 -27
  2. package/es/checkbox/style.css +11 -11
  3. package/es/export/style.css +12 -12
  4. package/es/filter/style.css +13 -13
  5. package/es/form/style.css +33 -33
  6. package/es/grid/style.css +8 -8
  7. package/es/icon/style.css +10 -10
  8. package/es/input/style.css +82 -82
  9. package/es/list/style.css +1 -1
  10. package/es/loading/style.css +3 -3
  11. package/es/menu/style.css +7 -7
  12. package/es/modal/style.css +20 -20
  13. package/es/pager/style.css +31 -31
  14. package/es/pulldown/style.css +7 -7
  15. package/es/radio/style.css +20 -20
  16. package/es/select/style.css +23 -23
  17. package/es/style.css +1 -1
  18. package/es/style.min.css +1 -1
  19. package/es/switch/style.css +11 -11
  20. package/es/table/src/body.js +1 -1
  21. package/es/table/src/table.js +1 -1
  22. package/es/table/style.css +118 -118
  23. package/es/textarea/style.css +23 -23
  24. package/es/toolbar/style.css +20 -20
  25. package/es/tools/log.js +1 -1
  26. package/es/tooltip/style.css +17 -17
  27. package/es/v-x-e-table/index.js +1 -1
  28. package/es/v-x-e-table/style.css +12 -12
  29. package/es/vxe-button/style.css +27 -27
  30. package/es/vxe-checkbox/style.css +11 -11
  31. package/es/vxe-form/style.css +33 -33
  32. package/es/vxe-grid/style.css +8 -8
  33. package/es/vxe-icon/style.css +9 -9
  34. package/es/vxe-input/style.css +82 -82
  35. package/es/vxe-list/style.css +1 -1
  36. package/es/vxe-loading/style.css +3 -3
  37. package/es/vxe-modal/style.css +20 -20
  38. package/es/vxe-module-export/style.css +12 -12
  39. package/es/vxe-module-filter/style.css +13 -13
  40. package/es/vxe-module-menu/style.css +7 -7
  41. package/es/vxe-pager/style.css +31 -31
  42. package/es/vxe-pulldown/style.css +7 -7
  43. package/es/vxe-radio/style.css +20 -20
  44. package/es/vxe-select/style.css +23 -23
  45. package/es/vxe-switch/style.css +11 -11
  46. package/es/vxe-table/style.css +118 -118
  47. package/es/vxe-textarea/style.css +23 -23
  48. package/es/vxe-toolbar/style.css +20 -20
  49. package/es/vxe-tooltip/style.css +17 -17
  50. package/lib/button/style/style.css +27 -27
  51. package/lib/button/style/style.min.css +1 -1
  52. package/lib/checkbox/style/style.css +11 -11
  53. package/lib/checkbox/style/style.min.css +1 -1
  54. package/lib/export/style/style.css +12 -12
  55. package/lib/export/style/style.min.css +1 -1
  56. package/lib/filter/style/style.css +13 -13
  57. package/lib/filter/style/style.min.css +1 -1
  58. package/lib/form/style/style.css +33 -33
  59. package/lib/form/style/style.min.css +1 -1
  60. package/lib/grid/style/style.css +8 -8
  61. package/lib/grid/style/style.min.css +1 -1
  62. package/lib/icon/style/style.css +10 -10
  63. package/lib/icon/style/style.min.css +10 -10
  64. package/lib/index.umd.js +8 -4
  65. package/lib/index.umd.min.js +1 -1
  66. package/lib/input/style/style.css +82 -82
  67. package/lib/input/style/style.min.css +1 -1
  68. package/lib/list/style/style.css +1 -1
  69. package/lib/list/style/style.min.css +1 -1
  70. package/lib/loading/style/style.css +3 -3
  71. package/lib/loading/style/style.min.css +1 -1
  72. package/lib/menu/style/style.css +7 -7
  73. package/lib/menu/style/style.min.css +1 -1
  74. package/lib/modal/style/style.css +20 -20
  75. package/lib/modal/style/style.min.css +1 -1
  76. package/lib/pager/style/style.css +31 -31
  77. package/lib/pager/style/style.min.css +1 -1
  78. package/lib/pulldown/style/style.css +7 -7
  79. package/lib/pulldown/style/style.min.css +1 -1
  80. package/lib/radio/style/style.css +20 -20
  81. package/lib/radio/style/style.min.css +1 -1
  82. package/lib/select/style/style.css +23 -23
  83. package/lib/select/style/style.min.css +1 -1
  84. package/lib/style.css +1 -1
  85. package/lib/style.min.css +1 -1
  86. package/lib/switch/style/style.css +11 -11
  87. package/lib/switch/style/style.min.css +1 -1
  88. package/lib/table/src/body.js +2 -1
  89. package/lib/table/src/body.min.js +1 -1
  90. package/lib/table/src/table.js +4 -1
  91. package/lib/table/src/table.min.js +1 -1
  92. package/lib/table/style/style.css +118 -118
  93. package/lib/table/style/style.min.css +1 -1
  94. package/lib/textarea/style/style.css +23 -23
  95. package/lib/textarea/style/style.min.css +1 -1
  96. package/lib/toolbar/style/style.css +20 -20
  97. package/lib/toolbar/style/style.min.css +1 -1
  98. package/lib/tools/log.js +1 -1
  99. package/lib/tools/log.min.js +1 -1
  100. package/lib/tooltip/style/style.css +17 -17
  101. package/lib/tooltip/style/style.min.css +1 -1
  102. package/lib/v-x-e-table/index.js +1 -1
  103. package/lib/v-x-e-table/index.min.js +1 -1
  104. package/lib/v-x-e-table/style/style.css +12 -12
  105. package/lib/v-x-e-table/style/style.min.css +1 -1
  106. package/lib/vxe-button/style/style.css +27 -27
  107. package/lib/vxe-button/style/style.min.css +1 -1
  108. package/lib/vxe-checkbox/style/style.css +11 -11
  109. package/lib/vxe-checkbox/style/style.min.css +1 -1
  110. package/lib/vxe-form/style/style.css +33 -33
  111. package/lib/vxe-form/style/style.min.css +1 -1
  112. package/lib/vxe-grid/style/style.css +8 -8
  113. package/lib/vxe-grid/style/style.min.css +1 -1
  114. package/lib/vxe-icon/style/style.css +9 -9
  115. package/lib/vxe-icon/style/style.min.css +1 -1
  116. package/lib/vxe-input/style/style.css +82 -82
  117. package/lib/vxe-input/style/style.min.css +1 -1
  118. package/lib/vxe-list/style/style.css +1 -1
  119. package/lib/vxe-list/style/style.min.css +1 -1
  120. package/lib/vxe-loading/style/style.css +3 -3
  121. package/lib/vxe-loading/style/style.min.css +1 -1
  122. package/lib/vxe-modal/style/style.css +20 -20
  123. package/lib/vxe-modal/style/style.min.css +1 -1
  124. package/lib/vxe-module-export/style/style.css +12 -12
  125. package/lib/vxe-module-export/style/style.min.css +1 -1
  126. package/lib/vxe-module-filter/style/style.css +13 -13
  127. package/lib/vxe-module-filter/style/style.min.css +1 -1
  128. package/lib/vxe-module-menu/style/style.css +7 -7
  129. package/lib/vxe-module-menu/style/style.min.css +1 -1
  130. package/lib/vxe-pager/style/style.css +31 -31
  131. package/lib/vxe-pager/style/style.min.css +1 -1
  132. package/lib/vxe-pulldown/style/style.css +7 -7
  133. package/lib/vxe-pulldown/style/style.min.css +1 -1
  134. package/lib/vxe-radio/style/style.css +20 -20
  135. package/lib/vxe-radio/style/style.min.css +1 -1
  136. package/lib/vxe-select/style/style.css +23 -23
  137. package/lib/vxe-select/style/style.min.css +1 -1
  138. package/lib/vxe-switch/style/style.css +11 -11
  139. package/lib/vxe-switch/style/style.min.css +1 -1
  140. package/lib/vxe-table/style/style.css +118 -118
  141. package/lib/vxe-table/style/style.min.css +1 -1
  142. package/lib/vxe-textarea/style/style.css +23 -23
  143. package/lib/vxe-textarea/style/style.min.css +1 -1
  144. package/lib/vxe-toolbar/style/style.css +20 -20
  145. package/lib/vxe-toolbar/style/style.min.css +1 -1
  146. package/lib/vxe-tooltip/style/style.css +17 -17
  147. package/lib/vxe-tooltip/style/style.min.css +1 -1
  148. package/package.json +2 -2
  149. package/packages/table/src/body.ts +1 -1
  150. package/packages/table/src/table.ts +1 -1
  151. package/styles/button.scss +27 -27
  152. package/styles/checkbox.scss +11 -11
  153. package/styles/cssvar.scss +257 -0
  154. package/styles/export.scss +12 -12
  155. package/styles/filter.scss +13 -13
  156. package/styles/form.scss +31 -31
  157. package/styles/grid.scss +8 -8
  158. package/styles/input.scss +75 -75
  159. package/styles/list.scss +1 -1
  160. package/styles/loading.scss +3 -3
  161. package/styles/menu.scss +7 -7
  162. package/styles/modal.scss +20 -20
  163. package/styles/modules.scss +1 -0
  164. package/styles/old-icon.scss +9 -9
  165. package/styles/pager.scss +31 -31
  166. package/styles/pulldown.scss +7 -7
  167. package/styles/radio.scss +20 -20
  168. package/styles/select.scss +23 -23
  169. package/styles/switch.scss +11 -11
  170. package/styles/table.scss +126 -126
  171. package/styles/textarea.scss +22 -22
  172. package/styles/toolbar.scss +20 -20
  173. package/styles/tooltip.scss +17 -17
  174. package/types/button.d.ts +23 -2
  175. package/types/checkbox-group.d.ts +11 -2
  176. package/types/checkbox.d.ts +11 -2
  177. package/types/colgroup.d.ts +19 -3
  178. package/types/column.d.ts +142 -61
  179. package/types/component.d.ts +7 -2
  180. package/types/form-gather.d.ts +10 -1
  181. package/types/form-item.d.ts +16 -1
  182. package/types/form.d.ts +10 -1
  183. package/types/grid.d.ts +72 -2
  184. package/types/index.d.ts +1 -1
  185. package/types/input.d.ts +11 -2
  186. package/types/list.d.ts +11 -2
  187. package/types/modal.d.ts +40 -2
  188. package/types/optgroup.d.ts +10 -1
  189. package/types/option.d.ts +10 -1
  190. package/types/pager.d.ts +17 -2
  191. package/types/pulldown.d.ts +26 -9
  192. package/types/radio-button.d.ts +11 -2
  193. package/types/radio-group.d.ts +11 -2
  194. package/types/radio.d.ts +11 -2
  195. package/types/select.d.ts +11 -2
  196. package/types/switch.d.ts +11 -2
  197. package/types/table.d.ts +20 -3
  198. package/types/textarea.d.ts +11 -2
  199. package/types/toolbar.d.ts +17 -2
  200. package/types/tooltip.d.ts +11 -2
  201. /package/es/icon/style/{iconfont.1685110524528.ttf → iconfont.1685611928442.ttf} +0 -0
  202. /package/es/icon/style/{iconfont.1685110524528.woff → iconfont.1685611928442.woff} +0 -0
  203. /package/es/icon/style/{iconfont.1685110524528.woff2 → iconfont.1685611928442.woff2} +0 -0
  204. /package/es/{iconfont.1685110524528.ttf → iconfont.1685611928442.ttf} +0 -0
  205. /package/es/{iconfont.1685110524528.woff → iconfont.1685611928442.woff} +0 -0
  206. /package/es/{iconfont.1685110524528.woff2 → iconfont.1685611928442.woff2} +0 -0
  207. /package/lib/icon/style/{iconfont.1685110524528.ttf → iconfont.1685611928442.ttf} +0 -0
  208. /package/lib/icon/style/{iconfont.1685110524528.woff → iconfont.1685611928442.woff} +0 -0
  209. /package/lib/icon/style/{iconfont.1685110524528.woff2 → iconfont.1685611928442.woff2} +0 -0
  210. /package/lib/{iconfont.1685110524528.ttf → iconfont.1685611928442.ttf} +0 -0
  211. /package/lib/{iconfont.1685110524528.woff → iconfont.1685611928442.woff} +0 -0
  212. /package/lib/{iconfont.1685110524528.woff2 → iconfont.1685611928442.woff2} +0 -0
package/styles/menu.scss CHANGED
@@ -13,20 +13,20 @@
13
13
  top: 0;
14
14
  left: 0;
15
15
  font-size: 12px;
16
- border: 1px solid $vxe-table-popup-border-color;
16
+ border: 1px solid var(--vxe-table-popup-border-color);
17
17
  box-shadow: 3px 3px 4px -2px rgba(0,0,0,.6);
18
18
  padding: 0 1px;
19
19
  user-select: none;
20
- color: $vxe-table-font-color;
21
- font-family: $vxe-font-family;
22
- background-color: $vxe-table-menu-background-color;
20
+ color: var(--vxe-table-font-color);
21
+ font-family: var(--vxe-font-family);
22
+ background-color: var(--vxe-table-menu-background-color);
23
23
  }
24
24
  .vxe-context-menu--link {
25
25
  display: block;
26
26
  padding: 0 2.5em;
27
- width: $vxe-table-menu-item-width;
27
+ width: var(--vxe-table-menu-item-width);
28
28
  line-height: 26px;
29
- color: $vxe-table-font-color;
29
+ color: var(--vxe-table-font-color);
30
30
  cursor: pointer;
31
31
  .vxe-context-menu--link-prefix,
32
32
  .vxe-context-menu--link-suffix {
@@ -84,7 +84,7 @@
84
84
  }
85
85
  &.link--disabled {
86
86
  & > .vxe-context-menu--link {
87
- color: $vxe-disabled-color;
87
+ color: var(--vxe-disabled-color);
88
88
  cursor: no-drop;
89
89
  }
90
90
  &.link--active {
package/styles/modal.scss CHANGED
@@ -9,8 +9,8 @@
9
9
  line-height: 1.5;
10
10
  width: calc(100% + 18px);
11
11
  height: calc(100% + 18px);
12
- color: $vxe-font-color;
13
- font-family: $vxe-font-family;
12
+ color: var(--vxe-font-color);
13
+ font-family: var(--vxe-font-family);
14
14
  transition: top .4s ease-in-out;
15
15
  &.is--active {
16
16
  display: block;
@@ -36,7 +36,7 @@
36
36
  .vxe-modal--header,
37
37
  .vxe-modal--footer {
38
38
  position: relative;
39
- border-bottom-color: $vxe-loading-background-color;
39
+ border-bottom-color: var(--vxe-loading-background-color);
40
40
  &:before {
41
41
  content: "";
42
42
  position: absolute;
@@ -46,7 +46,7 @@
46
46
  height: 100%;
47
47
  z-index: 1;
48
48
  user-select: none;
49
- background-color: $vxe-loading-background-color;
49
+ background-color: var(--vxe-loading-background-color);
50
50
  }
51
51
  }
52
52
  }
@@ -160,9 +160,9 @@
160
160
  .vxe-modal--box {
161
161
  visibility: hidden;
162
162
  width: 420px;
163
- background-color: $vxe-modal-body-background-color;
164
- border-radius: $vxe-border-radius;
165
- border: 1px solid $vxe-modal-border-color;
163
+ background-color: var(--vxe-modal-body-background-color);
164
+ border-radius: var(--vxe-border-radius);
165
+ border: 1px solid var(--vxe-modal-border-color);
166
166
  text-align: left;
167
167
  pointer-events: auto;
168
168
  opacity: 0;
@@ -189,28 +189,28 @@
189
189
  }
190
190
  &.status--info {
191
191
  .vxe-modal--status-wrapper {
192
- color: $vxe-info-color;
192
+ color: var(--vxe-info-color);
193
193
  }
194
194
  }
195
195
  &.status--warning,
196
196
  &.status--question {
197
197
  .vxe-modal--status-wrapper {
198
- color: $vxe-warning-color;
198
+ color: var(--vxe-warning-color);
199
199
  }
200
200
  }
201
201
  &.status--success {
202
202
  .vxe-modal--status-wrapper {
203
- color: $vxe-success-color;
203
+ color: var(--vxe-success-color);
204
204
  }
205
205
  }
206
206
  &.status--error {
207
207
  .vxe-modal--status-wrapper {
208
- color: $vxe-danger-color;
208
+ color: var(--vxe-danger-color);
209
209
  }
210
210
  }
211
211
  &.status--loading {
212
212
  .vxe-modal--status-wrapper {
213
- color: $vxe-disabled-color;
213
+ color: var(--vxe-disabled-color);
214
214
  }
215
215
  }
216
216
  .vxe-modal--status-wrapper {
@@ -238,9 +238,9 @@
238
238
  flex-shrink: 0;
239
239
  font-size: 1.1em;
240
240
  font-weight: 700;
241
- border-bottom: 1px solid $vxe-modal-border-color;
242
- background-color: $vxe-modal-header-background-color;
243
- border-radius: $vxe-border-radius $vxe-border-radius 0 0;
241
+ border-bottom: 1px solid var(--vxe-modal-border-color);
242
+ background-color: var(--vxe-modal-header-background-color);
243
+ border-radius: var(--vxe-border-radius) var(--vxe-border-radius) 0 0;
244
244
  user-select: none;
245
245
  &.is--draggable {
246
246
  .vxe-modal--header-title {
@@ -268,7 +268,7 @@
268
268
  cursor: pointer;
269
269
  margin-left: 0.6em;
270
270
  &:hover {
271
- color: $vxe-primary-color;
271
+ color: var(--vxe-primary-color);
272
272
  }
273
273
  }
274
274
  .vxe-modal--footer {
@@ -371,14 +371,14 @@
371
371
  }
372
372
 
373
373
  .vxe-modal--wrapper {
374
- font-size: $vxe-font-size;
374
+ font-size: var(--vxe-font-size);
375
375
  &.size--medium {
376
- font-size: $vxe-font-size-medium;
376
+ font-size: var(--vxe-font-size-medium);
377
377
  }
378
378
  &.size--small {
379
- font-size: $vxe-font-size-small;
379
+ font-size: var(--vxe-font-size-small);
380
380
  }
381
381
  &.size--mini {
382
- font-size: $vxe-font-size-mini;
382
+ font-size: var(--vxe-font-size-mini);
383
383
  }
384
384
  }
@@ -1,3 +1,4 @@
1
+ @import './cssvar.scss';
1
2
  @import './icon.scss';
2
3
  @import './filter.scss';
3
4
  @import './menu.scss';
@@ -6,7 +6,7 @@
6
6
  vertical-align: middle;
7
7
  position: relative;
8
8
  direction: ltr;
9
- font-family: $vxe-icon-font-family;
9
+ font-family: var(--vxe-icon-font-family);
10
10
  font-weight: normal;
11
11
  user-select: none;
12
12
  &.rotate45 {
@@ -50,7 +50,7 @@
50
50
  border-width: 0.1em;
51
51
  border-style: solid;
52
52
  border-color: inherit;
53
- background-color: $vxe-icon-background-color;
53
+ background-color: var(--vxe-icon-background-color);
54
54
  &:before,
55
55
  &:after {
56
56
  @extend %PseudoClass;
@@ -92,7 +92,7 @@
92
92
  border-width: 0.1em;
93
93
  border-style: solid;
94
94
  border-color: inherit;
95
- background-color: $vxe-icon-background-color;
95
+ background-color: var(--vxe-icon-background-color);
96
96
  }
97
97
  }
98
98
 
@@ -439,7 +439,7 @@
439
439
  bottom: 0;
440
440
  width: 100%;
441
441
  text-align: center;
442
- color: $vxe-icon-background-color;
442
+ color: var(--vxe-icon-background-color);
443
443
  transform: rotate(-10deg) scale(0.75);
444
444
  }
445
445
  }
@@ -484,7 +484,7 @@
484
484
  content: "\2713";
485
485
  left: 0.25em;
486
486
  bottom: 0;
487
- color: $vxe-icon-background-color;
487
+ color: var(--vxe-icon-background-color);
488
488
  font-size: 0.65em;
489
489
  }
490
490
  }
@@ -501,7 +501,7 @@
501
501
  bottom: 0;
502
502
  width: 100%;
503
503
  text-align: center;
504
- color: $vxe-icon-background-color;
504
+ color: var(--vxe-icon-background-color);
505
505
  line-height: 1.4em;
506
506
  font-size: 0.8em;
507
507
  }
@@ -520,7 +520,7 @@
520
520
  width: 100%;
521
521
  text-align: center;
522
522
  line-height: 1.5em;
523
- color: $vxe-icon-background-color;
523
+ color: var(--vxe-icon-background-color);
524
524
  font-size: 0.7em;
525
525
  }
526
526
  }
@@ -538,7 +538,7 @@
538
538
  width: 100%;
539
539
  line-height: 1.4em;
540
540
  text-align: center;
541
- color: $vxe-icon-background-color;
541
+ color: var(--vxe-icon-background-color);
542
542
  font-size: 0.8em;
543
543
  }
544
544
  }
@@ -682,7 +682,7 @@
682
682
  left: 0.2em;
683
683
  bottom: -0.2em;
684
684
  box-shadow: inset 0 0 0 0.1em;
685
- background-color: $vxe-icon-background-color;
685
+ background-color: var(--vxe-icon-background-color);
686
686
  }
687
687
  }
688
688
 
package/styles/pager.scss CHANGED
@@ -6,10 +6,10 @@
6
6
  position: relative;
7
7
  display: flex;
8
8
  align-items: center;
9
- color: $vxe-font-color;
10
- font-family: $vxe-font-family;
9
+ color: var(--vxe-font-color);
10
+ font-family: var(--vxe-font-family);
11
11
  text-align: right;
12
- background-color: $vxe-pager-background-color;
12
+ background-color: var(--vxe-pager-background-color);
13
13
  &.is--hidden {
14
14
  display: none;
15
15
  }
@@ -27,9 +27,9 @@
27
27
  left: 0;
28
28
  width: 100%;
29
29
  height: 100%;
30
- z-index: $vxe-loading-z-index;
30
+ z-index: var(--vxe-loading-z-index);
31
31
  user-select: none;
32
- background-color: $vxe-loading-background-color;
32
+ background-color: var(--vxe-loading-background-color);
33
33
  }
34
34
  }
35
35
  .vxe-pager--prev-btn,
@@ -43,7 +43,7 @@
43
43
  border: 1px solid transparent;
44
44
  &:not(.is--disabled) {
45
45
  &:focus {
46
- box-shadow: 0 0 0.25em 0 $vxe-primary-color;
46
+ box-shadow: 0 0 0.25em 0 var(--vxe-primary-color);
47
47
  }
48
48
  &:hover {
49
49
  color: lighten($vxe-primary-color, 6%);
@@ -61,7 +61,7 @@
61
61
  .vxe-pager--num-btn,
62
62
  .vxe-pager--jump-prev,
63
63
  .vxe-pager--jump-next {
64
- border-color: $vxe-input-border-color;
64
+ border-color: var(--vxe-input-border-color);
65
65
  }
66
66
  }
67
67
  }
@@ -72,7 +72,7 @@
72
72
  .vxe-pager--jump-prev,
73
73
  .vxe-pager--num-btn,
74
74
  .vxe-pager--jump-next {
75
- background-color: $vxe-pager-perfect-button-background-color;
75
+ background-color: var(--vxe-pager-perfect-button-background-color);
76
76
  }
77
77
  .vxe-pager--jump-prev,
78
78
  .vxe-pager--num-btn,
@@ -80,12 +80,12 @@
80
80
  &:not(.is--disabled) {
81
81
  &.is--active {
82
82
  color: #fff;
83
- background-color: $vxe-primary-color;
83
+ background-color: var(--vxe-primary-color);
84
84
  &:hover {
85
85
  background-color: lighten($vxe-primary-color, 6%);
86
86
  }
87
87
  &:focus {
88
- border-color: $vxe-primary-color;
88
+ border-color: var(--vxe-primary-color);
89
89
  }
90
90
  &:active {
91
91
  border-color: darken($vxe-primary-color, 3%);
@@ -96,14 +96,14 @@
96
96
  }
97
97
  }
98
98
  &.is--perfect {
99
- border: 1px solid $vxe-table-border-color;
99
+ border: 1px solid var(--vxe-table-border-color);
100
100
  border-top-width: 0;
101
- background-color: $vxe-pager-perfect-background-color;
101
+ background-color: var(--vxe-pager-perfect-background-color);
102
102
  }
103
103
  &.is--border {
104
104
  .vxe-pager--num-btn {
105
105
  &.is--active {
106
- border-color: $vxe-primary-color;
106
+ border-color: var(--vxe-primary-color);
107
107
  }
108
108
  }
109
109
  }
@@ -193,17 +193,17 @@
193
193
  .vxe-pager--jump-next,
194
194
  .vxe-pager--num-btn {
195
195
  text-align: center;
196
- border-radius: $vxe-border-radius;
196
+ border-radius: var(--vxe-border-radius);
197
197
  margin: 0 0.25em;
198
198
  user-select: none;
199
- background-color: $vxe-pager-background-color;
199
+ background-color: var(--vxe-pager-background-color);
200
200
  &:not(.is--disabled) {
201
201
  &:hover {
202
202
  color: lighten($vxe-primary-color, 6%);
203
203
  }
204
204
  &.is--active,
205
205
  &:focus {
206
- color: $vxe-primary-color;
206
+ color: var(--vxe-primary-color);
207
207
  }
208
208
  &:active {
209
209
  color: darken($vxe-primary-color, 3%);
@@ -211,9 +211,9 @@
211
211
  }
212
212
  &.is--disabled {
213
213
  cursor: no-drop;
214
- color: $vxe-disabled-color;
214
+ color: var(--vxe-disabled-color);
215
215
  &:hover {
216
- color: $vxe-disabled-color;
216
+ color: var(--vxe-disabled-color);
217
217
  }
218
218
  }
219
219
  }
@@ -244,14 +244,14 @@
244
244
  }
245
245
  }
246
246
  .vxe-pager--jump .vxe-pager--goto {
247
- border-radius: $vxe-border-radius;
248
- border: 1px solid $vxe-input-border-color;
249
- color: $vxe-font-color;
247
+ border-radius: var(--vxe-border-radius);
248
+ border: 1px solid var(--vxe-input-border-color);
249
+ color: var(--vxe-font-color);
250
250
  transition: border .2s ease-in-out;
251
251
  padding: 0 0.4em;
252
- background-color: $vxe-input-background-color;
252
+ background-color: var(--vxe-input-background-color);
253
253
  &:focus {
254
- border: 1px solid $vxe-primary-color;
254
+ border: 1px solid var(--vxe-primary-color);
255
255
  outline: 0;
256
256
  }
257
257
  }
@@ -270,18 +270,18 @@
270
270
  }
271
271
 
272
272
  .vxe-pager {
273
- font-size: $vxe-font-size;
274
- height: $vxe-table-row-height-default;
273
+ font-size: var(--vxe-font-size);
274
+ height: var(--vxe-table-row-height-default);
275
275
  &.size--medium {
276
- font-size: $vxe-font-size-medium;
277
- height: $vxe-table-row-height-medium;
276
+ font-size: var(--vxe-font-size-medium);
277
+ height: var(--vxe-table-row-height-medium);
278
278
  }
279
279
  &.size--small {
280
- font-size: $vxe-font-size-small;
281
- height: $vxe-table-row-height-small;
280
+ font-size: var(--vxe-font-size-small);
281
+ height: var(--vxe-table-row-height-small);
282
282
  }
283
283
  &.size--mini {
284
- font-size: $vxe-font-size-mini;
285
- height: $vxe-table-row-height-mini;
284
+ font-size: var(--vxe-font-size-mini);
285
+ height: var(--vxe-table-row-height-mini);
286
286
  }
287
287
  }
@@ -5,7 +5,7 @@
5
5
  .vxe-pulldown {
6
6
  position: relative;
7
7
  display: inline-block;
8
- color: $vxe-font-color;
8
+ color: var(--vxe-font-color);
9
9
  text-align: left;
10
10
  }
11
11
 
@@ -14,7 +14,7 @@
14
14
  position: absolute;
15
15
  left: 0;
16
16
  padding: 4px 0;
17
- color: $vxe-font-color;
17
+ color: var(--vxe-font-color);
18
18
  text-align: left;
19
19
  &:not(.is--transfer) {
20
20
  min-width: 100%;
@@ -39,19 +39,19 @@
39
39
  }
40
40
  }
41
41
  .vxe-pulldown--wrapper {
42
- background-color: $vxe-pulldown-panel-background-color;
42
+ background-color: var(--vxe-pulldown-panel-background-color);
43
43
  }
44
44
 
45
45
  .vxe-pulldown,
46
46
  .vxe-pulldown--panel {
47
- font-size: $vxe-font-size;
47
+ font-size: var(--vxe-font-size);
48
48
  &.size--medium {
49
- font-size: $vxe-font-size-medium;
49
+ font-size: var(--vxe-font-size-medium);
50
50
  }
51
51
  &.size--small {
52
- font-size: $vxe-font-size-small;
52
+ font-size: var(--vxe-font-size-small);
53
53
  }
54
54
  &.size--mini {
55
- font-size: $vxe-font-size-mini;
55
+ font-size: var(--vxe-font-size-mini);
56
56
  }
57
57
  }
package/styles/radio.scss CHANGED
@@ -39,7 +39,7 @@
39
39
  &:not(.is--disabled) {
40
40
  > input {
41
41
  &:focus+.vxe-radio--icon {
42
- color: $vxe-primary-color;
42
+ color: var(--vxe-primary-color);
43
43
  }
44
44
  }
45
45
  }
@@ -52,32 +52,32 @@
52
52
 
53
53
  .vxe-radio-button {
54
54
  .vxe-radio--label {
55
- background-color: $vxe-radio-button-default-background-color;
55
+ background-color: var(--vxe-radio-button-default-background-color);
56
56
  }
57
57
  &:first-child {
58
58
  .vxe-radio--label {
59
- border-left: 1px solid $vxe-input-border-color;
60
- border-radius: $vxe-border-radius 0 0 $vxe-border-radius;
59
+ border-left: 1px solid var(--vxe-input-border-color);
60
+ border-radius: var(--vxe-border-radius) 0 0 var(--vxe-border-radius);
61
61
  }
62
62
  }
63
63
  &:last-child {
64
64
  .vxe-radio--label {
65
- border-radius: 0 $vxe-border-radius $vxe-border-radius 0;
65
+ border-radius: 0 var(--vxe-border-radius) var(--vxe-border-radius) 0;
66
66
  }
67
67
  }
68
68
  > input {
69
69
  &:checked+.vxe-radio--label {
70
70
  color: #fff;
71
- background-color: $vxe-primary-color;
72
- border-color: $vxe-primary-color;
71
+ background-color: var(--vxe-primary-color);
72
+ border-color: var(--vxe-primary-color);
73
73
  }
74
74
  }
75
75
  .vxe-radio--label {
76
76
  padding: 0 1em;
77
- line-height: $vxe-button-height-default - 2;
77
+ line-height: var(--vxe-button-height-default) - 2;
78
78
  display: inline-block;
79
79
  border-style: solid;
80
- border-color: $vxe-input-border-color;
80
+ border-color: var(--vxe-input-border-color);
81
81
  border-width: 1px 1px 1px 0;
82
82
  max-width: 50em;
83
83
  @extend %TextEllipsis;
@@ -87,7 +87,7 @@
87
87
  > input {
88
88
  &:not(:checked) {
89
89
  &+.vxe-radio--label {
90
- color: $vxe-input-disabled-color;
90
+ color: var(--vxe-input-disabled-color);
91
91
  }
92
92
  }
93
93
  &:checked {
@@ -102,8 +102,8 @@
102
102
  & > input {
103
103
  &:focus {
104
104
  &+.vxe-radio--label {
105
- border-color: $vxe-primary-color;
106
- box-shadow: 0 0 0.2em 0 $vxe-primary-color;
105
+ border-color: var(--vxe-primary-color);
106
+ box-shadow: 0 0 0.2em 0 var(--vxe-primary-color);
107
107
  }
108
108
  }
109
109
  }
@@ -111,7 +111,7 @@
111
111
  > input {
112
112
  &:not(:checked) {
113
113
  &+.vxe-radio--label {
114
- color: $vxe-primary-color;
114
+ color: var(--vxe-primary-color);
115
115
  }
116
116
  }
117
117
  }
@@ -119,30 +119,30 @@
119
119
  }
120
120
  &.size--medium {
121
121
  .vxe-radio--label {
122
- line-height: $vxe-button-height-medium - 2;
122
+ line-height: var(--vxe-button-height-medium) - 2;
123
123
  }
124
124
  }
125
125
  &.size--small {
126
126
  .vxe-radio--label {
127
- line-height: $vxe-button-height-small - 2;
127
+ line-height: var(--vxe-button-height-small) - 2;
128
128
  }
129
129
  }
130
130
  &.size--mini {
131
131
  .vxe-radio--label {
132
- line-height: $vxe-button-height-mini - 2;
132
+ line-height: var(--vxe-button-height-mini) - 2;
133
133
  }
134
134
  }
135
135
  }
136
136
 
137
137
  .vxe-radio {
138
- font-size: $vxe-font-size;
138
+ font-size: var(--vxe-font-size);
139
139
  &.size--medium {
140
- font-size: $vxe-font-size-medium;
140
+ font-size: var(--vxe-font-size-medium);
141
141
  }
142
142
  &.size--small {
143
- font-size: $vxe-font-size-small;
143
+ font-size: var(--vxe-font-size-small);
144
144
  }
145
145
  &.size--mini {
146
- font-size: $vxe-font-size-mini;
146
+ font-size: var(--vxe-font-size-mini);
147
147
  }
148
148
  }