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/form.scss CHANGED
@@ -6,10 +6,10 @@
6
6
 
7
7
  .vxe-form {
8
8
  position: relative;
9
- font-size: $vxe-font-size;
10
- color: $vxe-font-color;
11
- font-family: $vxe-font-family;
12
- background-color: $vxe-form-background-color;
9
+ font-size: var(--vxe-font-size);
10
+ color: var(--vxe-font-color);
11
+ font-family: var(--vxe-font-family);
12
+ background-color: var(--vxe-form-background-color);
13
13
  text-align: left;
14
14
  }
15
15
 
@@ -82,8 +82,8 @@
82
82
  width: 100%;
83
83
  font-size: 12px;
84
84
  line-height: 1.2em;
85
- color: $vxe-form-validate-error-color;
86
- background-color: $vxe-form-validate-error-background-color;
85
+ color: var(--vxe-form-validate-error-color);
86
+ background-color: var(--vxe-form-validate-error-background-color);
87
87
  z-index: 1;
88
88
  opacity: 0;
89
89
  transform-origin: center top;
@@ -129,7 +129,7 @@
129
129
  .vxe-form--item-title-content {
130
130
  &:before {
131
131
  content: "*";
132
- color: $vxe-form-validate-error-color;
132
+ color: var(--vxe-form-validate-error-color);
133
133
  font-family: Verdana,Arial,Tahoma;
134
134
  margin-right: 0.2em;
135
135
  font-weight: normal;
@@ -156,7 +156,7 @@
156
156
  .vxe-default-input,
157
157
  .vxe-default-textarea,
158
158
  .vxe-default-select {
159
- border-color: $vxe-form-validate-error-color;
159
+ border-color: var(--vxe-form-validate-error-color);
160
160
  }
161
161
  .vxe-input>.vxe-input--inner,
162
162
  .vxe-textarea>.vxe-textarea--inner,
@@ -165,7 +165,7 @@
165
165
  .vxe-default-textarea,
166
166
  .vxe-default-select {
167
167
  &:focus {
168
- border-color: $vxe-form-validate-error-color;
168
+ border-color: var(--vxe-form-validate-error-color);
169
169
  }
170
170
  }
171
171
  .vxe-form--item-valid {
@@ -191,12 +191,12 @@
191
191
  .vxe-default-textarea,
192
192
  .vxe-default-select {
193
193
  outline: 0;
194
- border: 1px solid $vxe-input-border-color;
195
- border-radius: $vxe-border-radius;
194
+ border: 1px solid var(--vxe-input-border-color);
195
+ border-radius: var(--vxe-border-radius);
196
196
  }
197
197
  .vxe-default-input,
198
198
  .vxe-default-select {
199
- height: $vxe-button-height-default;
199
+ height: var(--vxe-button-height-default);
200
200
  }
201
201
  .vxe-default-input {
202
202
  padding: 0 0.8em;
@@ -215,18 +215,18 @@
215
215
  .vxe-default-input[type="search"],
216
216
  .vxe-default-textarea,
217
217
  .vxe-default-select {
218
- color: $vxe-font-color;
218
+ color: var(--vxe-font-color);
219
219
  &:focus {
220
- border: 1px solid $vxe-primary-color;
220
+ border: 1px solid var(--vxe-primary-color);
221
221
  }
222
222
  &[disabled] {
223
223
  cursor: not-allowed;
224
- background-color: $vxe-input-disabled-background-color;
224
+ background-color: var(--vxe-input-disabled-background-color);
225
225
  }
226
226
  }
227
227
  .vxe-default-input[type="submit"],
228
228
  .vxe-default-input[type="reset"] {
229
- line-height: $vxe-button-height-default - 2px;
229
+ line-height: var(--vxe-button-height-default) - 2px;
230
230
  background-color: #fff;
231
231
  cursor: pointer;
232
232
  &:hover {
@@ -246,7 +246,7 @@
246
246
  height: 24px;
247
247
  }
248
248
  &::placeholder {
249
- color: $vxe-input-placeholder-color;
249
+ color: var(--vxe-input-placeholder-color);
250
250
  }
251
251
  }
252
252
  .vxe-default-input[type="text"],
@@ -259,14 +259,14 @@
259
259
  resize: none;
260
260
  vertical-align: middle;
261
261
  &::placeholder {
262
- color: $vxe-input-placeholder-color;
262
+ color: var(--vxe-input-placeholder-color);
263
263
  }
264
264
  }
265
265
  }
266
266
 
267
267
  .vxe-form {
268
268
  .vxe-form--item-inner {
269
- min-height: $vxe-form-item-min-height-default;
269
+ min-height: var(--vxe-form-item-min-height-default);
270
270
  & > .align--center {
271
271
  text-align: center;
272
272
  }
@@ -278,48 +278,48 @@
278
278
  }
279
279
  }
280
280
  &.size--medium {
281
- font-size: $vxe-font-size-medium;
281
+ font-size: var(--vxe-font-size-medium);
282
282
  .vxe-form--item-inner {
283
- min-height: $vxe-form-item-min-height-medium;
283
+ min-height: var(--vxe-form-item-min-height-medium);
284
284
  }
285
285
  .vxe-default-input[type="submit"],
286
286
  .vxe-default-input[type="reset"] {
287
- line-height: $vxe-button-height-medium - 2px;
287
+ line-height: calc(var(--vxe-button-height-medium) - 2px);
288
288
  }
289
289
  .vxe-default-input,
290
290
  .vxe-default-input,
291
291
  .vxe-default-select {
292
- height: $vxe-button-height-medium;
292
+ height: var(--vxe-button-height-medium);
293
293
  }
294
294
  }
295
295
  &.size--small {
296
- font-size: $vxe-font-size-small;
296
+ font-size: var(--vxe-font-size-small);
297
297
  .vxe-form--item-inner {
298
- min-height: $vxe-form-item-min-height-small;
298
+ min-height: var(--vxe-form-item-min-height-small);
299
299
  }
300
300
  .vxe-default-input[type="submit"],
301
301
  .vxe-default-input[type="reset"] {
302
- line-height: $vxe-button-height-small - 2px;
302
+ line-height: calc(var(--vxe-button-height-small) - 2px);
303
303
  }
304
304
  .vxe-default-input,
305
305
  .vxe-default-input,
306
306
  .vxe-default-select {
307
- height: $vxe-button-height-small;
307
+ height: var(--vxe-button-height-small);
308
308
  }
309
309
  }
310
310
  &.size--mini {
311
- font-size: $vxe-font-size-mini;
311
+ font-size: var(--vxe-font-size-mini);
312
312
  .vxe-form--item-inner {
313
- min-height: $vxe-form-item-min-height-mini;
313
+ min-height: var(--vxe-form-item-min-height-mini);
314
314
  }
315
315
  .vxe-default-input[type="submit"],
316
316
  .vxe-default-input[type="reset"] {
317
- line-height: $vxe-button-height-mini - 2px;
317
+ line-height: calc(var(--vxe-button-height-mini) - 2px);
318
318
  }
319
319
  .vxe-default-input,
320
320
  .vxe-default-input,
321
321
  .vxe-default-select {
322
- height: $vxe-button-height-mini;
322
+ height: var(--vxe-button-height-mini);
323
323
  }
324
324
  }
325
325
  }
package/styles/grid.scss CHANGED
@@ -12,7 +12,7 @@
12
12
  height: 100%;
13
13
  z-index: 99;
14
14
  user-select: none;
15
- background-color: $vxe-loading-background-color;
15
+ background-color: var(--vxe-loading-background-color);
16
16
  }
17
17
  & > .vxe-table {
18
18
  .vxe-loading {
@@ -27,11 +27,11 @@
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  padding: 0.5em 1em;
30
- background-color: $vxe-grid-maximize-background-color;
30
+ background-color: var(--vxe-grid-maximize-background-color);
31
31
  }
32
32
  .vxe-body--row {
33
33
  &.row--pending {
34
- color: $vxe-table-validate-error-color;
34
+ color: var(--vxe-table-validate-error-color);
35
35
  text-decoration: line-through;
36
36
  cursor: no-drop;
37
37
  .vxe-body--column {
@@ -43,7 +43,7 @@
43
43
  left: 0;
44
44
  width: 100%;
45
45
  height: 0;
46
- border-bottom: 1px solid $vxe-table-validate-error-color;
46
+ border-bottom: 1px solid var(--vxe-table-validate-error-color);
47
47
  z-index: 1;
48
48
  }
49
49
  }
@@ -57,14 +57,14 @@
57
57
  }
58
58
 
59
59
  .vxe-grid {
60
- font-size: $vxe-font-size;
60
+ font-size: var(--vxe-font-size);
61
61
  &.size--medium {
62
- font-size: $vxe-font-size-medium;
62
+ font-size: var(--vxe-font-size-medium);
63
63
  }
64
64
  &.size--small {
65
- font-size: $vxe-font-size-small;
65
+ font-size: var(--vxe-font-size-small);
66
66
  }
67
67
  &.size--mini {
68
- font-size: $vxe-font-size-mini;
68
+ font-size: var(--vxe-font-size-mini);
69
69
  }
70
70
  }
package/styles/input.scss CHANGED
@@ -6,22 +6,22 @@ $iconWidth: 1.6em;
6
6
  .vxe-input--inner {
7
7
  width: 100%;
8
8
  height: 100%;
9
- border-radius: $vxe-border-radius;
9
+ border-radius: var(--vxe-border-radius);
10
10
  outline: 0;
11
11
  margin: 0;
12
12
  font-size: inherit;
13
13
  font-family: inherit;
14
14
  line-height: inherit;
15
15
  padding: 0 0.6em;
16
- color: $vxe-font-color;
17
- border: 1px solid $vxe-input-border-color;
18
- background-color: $vxe-input-background-color;
16
+ color: var(--vxe-font-color);
17
+ border: 1px solid var(--vxe-input-border-color);
18
+ background-color: var(--vxe-input-background-color);
19
19
  box-shadow: none;
20
20
  &::placeholder {
21
- color: $vxe-input-placeholder-color;
21
+ color: var(--vxe-input-placeholder-color);
22
22
  }
23
23
  &::-webkit-autofill {
24
- background-color: $vxe-input-background-color;
24
+ background-color: var(--vxe-input-background-color);
25
25
  }
26
26
  &[type="number"] {
27
27
  appearance: none;
@@ -35,8 +35,8 @@ $iconWidth: 1.6em;
35
35
  }
36
36
  &[disabled] {
37
37
  cursor: not-allowed;
38
- color: $vxe-disabled-color;
39
- background-color: $vxe-input-disabled-background-color;
38
+ color: var(--vxe-disabled-color);
39
+ background-color: var(--vxe-input-disabled-background-color);
40
40
  }
41
41
  }
42
42
 
@@ -62,7 +62,7 @@ $iconWidth: 1.6em;
62
62
  }
63
63
  &.is--active {
64
64
  .vxe-input--inner {
65
- border: 1px solid $vxe-primary-color;
65
+ border: 1px solid var(--vxe-primary-color);
66
66
  }
67
67
  }
68
68
  }
@@ -77,7 +77,7 @@ $iconWidth: 1.6em;
77
77
  user-select: none;
78
78
  align-items: center;
79
79
  justify-content: center;
80
- color: $vxe-table-column-icon-border-color;
80
+ color: var(--vxe-table-column-icon-border-color);
81
81
  }
82
82
  }
83
83
 
@@ -181,12 +181,12 @@ $iconWidth: 1.6em;
181
181
  .vxe-input--suffix {
182
182
  &:hover {
183
183
  .vxe-input--clear-icon {
184
- color: $vxe-font-color;
184
+ color: var(--vxe-font-color);
185
185
  }
186
186
  }
187
187
  &:active {
188
188
  .vxe-input--clear-icon {
189
- color: $vxe-primary-color;
189
+ color: var(--vxe-primary-color);
190
190
  }
191
191
  }
192
192
  }
@@ -194,27 +194,27 @@ $iconWidth: 1.6em;
194
194
  &:hover {
195
195
  .vxe-input--search-suffix,
196
196
  .vxe-input--password-suffix {
197
- color: $vxe-font-color;
197
+ color: var(--vxe-font-color);
198
198
  }
199
199
  }
200
200
  &:active {
201
201
  .vxe-input--search-suffix,
202
202
  .vxe-input--password-suffix {
203
- color: $vxe-primary-color;
203
+ color: var(--vxe-primary-color);
204
204
  }
205
205
  }
206
206
  }
207
207
  .vxe-input--number-prev,
208
208
  .vxe-input--number-next {
209
209
  &:hover {
210
- color: $vxe-font-color;
210
+ color: var(--vxe-font-color);
211
211
  }
212
212
  &:active {
213
- color: $vxe-primary-color;
213
+ color: var(--vxe-primary-color);
214
214
  }
215
215
  &.is--disabled {
216
216
  cursor: no-drop;
217
- color: $vxe-input-number-disabled-color;
217
+ color: var(--vxe-input-number-disabled-color);
218
218
  }
219
219
  }
220
220
  }
@@ -279,8 +279,8 @@ $iconWidth: 1.6em;
279
279
  position: absolute;
280
280
  left: 0;
281
281
  padding: 4px 0;
282
- color: $vxe-font-color;
283
- font-size: $vxe-font-size;
282
+ color: var(--vxe-font-color);
283
+ font-size: var(--vxe-font-size);
284
284
  text-align: left;
285
285
  &:not(.is--transfer) {
286
286
  min-width: 100%;
@@ -308,10 +308,10 @@ $iconWidth: 1.6em;
308
308
 
309
309
  .vxe-input--panel-wrapper,
310
310
  .vxe-input--panel-layout-wrapper {
311
- background-color: $vxe-input-panel-background-color;
312
- border: 1px solid $vxe-table-popup-border-color;
311
+ background-color: var(--vxe-input-panel-background-color);
312
+ border: 1px solid var(--vxe-table-popup-border-color);
313
313
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
314
- border-radius: $vxe-border-radius;
314
+ border-radius: var(--vxe-border-radius);
315
315
  }
316
316
 
317
317
  .vxe-input--panel-wrapper {
@@ -336,7 +336,7 @@ $iconWidth: 1.6em;
336
336
  .vxe-input--panel-right-wrapper {
337
337
  display: flex;
338
338
  flex-direction: column;
339
- border-left: 1px solid $vxe-input-border-color;
339
+ border-left: 1px solid var(--vxe-input-border-color);
340
340
  }
341
341
  }
342
342
  &.type--date,
@@ -381,8 +381,8 @@ $iconWidth: 1.6em;
381
381
  .vxe-input--time-picker-title {
382
382
  display: inline-block;
383
383
  text-align: center;
384
- border: 1px solid $vxe-input-border-color;
385
- border-radius: $vxe-border-radius;
384
+ border: 1px solid var(--vxe-input-border-color);
385
+ border-radius: var(--vxe-border-radius);
386
386
  }
387
387
  .vxe-input--time-picker-confirm {
388
388
  position: absolute;
@@ -392,12 +392,12 @@ $iconWidth: 1.6em;
392
392
  .vxe-input--time-picker-confirm,
393
393
  .vxe-input--date-picker-confirm {
394
394
  outline: 0;
395
- border: 1px solid $vxe-input-border-color;
396
- border-radius: $vxe-border-radius;
395
+ border: 1px solid var(--vxe-input-border-color);
396
+ border-radius: var(--vxe-border-radius);
397
397
  cursor: pointer;
398
- color: $vxe-input-date-time-confirm-button-color;
399
- border-color: $vxe-primary-color;
400
- background-color: $vxe-primary-color;
398
+ color: var(--vxe-input-date-time-confirm-button-color);
399
+ border-color: var(--vxe-primary-color);
400
+ background-color: var(--vxe-primary-color);
401
401
  &:hover {
402
402
  background-color: lighten($vxe-primary-color, 6%);
403
403
  border-color: lighten($vxe-primary-color, 6%);
@@ -442,11 +442,11 @@ $iconWidth: 1.6em;
442
442
  display: flex;
443
443
  align-items: center;
444
444
  justify-content: center;
445
- background-color: $vxe-button-default-background-color;
445
+ background-color: var(--vxe-button-default-background-color);
446
446
  }
447
447
  .vxe-input--date-picker-btn {
448
448
  &.is--disabled {
449
- color: $vxe-disabled-color;
449
+ color: var(--vxe-disabled-color);
450
450
  cursor: no-drop;
451
451
  }
452
452
  &:not(.is--disabled) {
@@ -460,8 +460,8 @@ $iconWidth: 1.6em;
460
460
  }
461
461
  }
462
462
  .vxe-input--date-picker-body {
463
- border-radius: $vxe-border-radius;
464
- border: 1px solid $vxe-table-popup-border-color;
463
+ border-radius: var(--vxe-border-radius);
464
+ border: 1px solid var(--vxe-table-popup-border-color);
465
465
  user-select: none;
466
466
  table {
467
467
  border: 0;
@@ -476,47 +476,47 @@ $iconWidth: 1.6em;
476
476
  font-weight: normal;
477
477
  }
478
478
  th {
479
- box-shadow: inset 0 -1px 0 0 $vxe-table-popup-border-color;
479
+ box-shadow: inset 0 -1px 0 0 var(--vxe-table-popup-border-color);
480
480
  }
481
481
  td {
482
482
  &.is--prev,
483
483
  &.is--next {
484
- color: $vxe-disabled-color;
484
+ color: var(--vxe-disabled-color);
485
485
  .vxe-input--date-label,
486
486
  .vxe-input--date-festival {
487
- color: $vxe-disabled-color;
487
+ color: var(--vxe-disabled-color);
488
488
  }
489
489
  }
490
490
  &.is--now {
491
- box-shadow: inset 0 0 0 1px $vxe-table-popup-border-color;
491
+ box-shadow: inset 0 0 0 1px var(--vxe-table-popup-border-color);
492
492
  &:not(.is--selected) {
493
493
  &.is--current {
494
- color: $vxe-primary-color;
494
+ color: var(--vxe-primary-color);
495
495
  .vxe-input--date-label,
496
496
  .vxe-input--date-festival {
497
- color: $vxe-primary-color;
497
+ color: var(--vxe-primary-color);
498
498
  }
499
499
  }
500
500
  }
501
501
  }
502
502
  &.is--hover {
503
- background-color: $vxe-input-date-picker-hover-background-color;
503
+ background-color: var(--vxe-input-date-picker-hover-background-color);
504
504
  }
505
505
  &.is--selected {
506
- color: $vxe-input-date-picker-selected-color;
507
- background-color: $vxe-primary-color;
506
+ color: var(--vxe-input-date-picker-selected-color);
507
+ background-color: var(--vxe-primary-color);
508
508
  &.is--prev,
509
509
  &.is--next {
510
510
  background-color: lighten($vxe-primary-color, 10%);
511
511
  }
512
512
  .vxe-input--date-label,
513
513
  .vxe-input--date-festival {
514
- color: $vxe-input-date-picker-festival-selected-color;
514
+ color: var(--vxe-input-date-picker-festival-selected-color);
515
515
  }
516
516
  .vxe-input--date-label {
517
517
  &.is-notice {
518
518
  &:before {
519
- background-color: $vxe-input-date-picker-notice-selected-background-color;
519
+ background-color: var(--vxe-input-date-picker-notice-selected-background-color);
520
520
  }
521
521
  }
522
522
  }
@@ -526,11 +526,11 @@ $iconWidth: 1.6em;
526
526
  }
527
527
  &.is--disabled {
528
528
  cursor: no-drop;
529
- color: $vxe-input-disabled-color;
530
- background-color: $vxe-input-disabled-background-color;
529
+ color: var(--vxe-input-disabled-color);
530
+ background-color: var(--vxe-input-disabled-background-color);
531
531
  .vxe-input--date-label,
532
532
  .vxe-input--date-festival {
533
- color: $vxe-input-disabled-color;
533
+ color: var(--vxe-input-disabled-color);
534
534
  }
535
535
  }
536
536
  }
@@ -539,12 +539,12 @@ $iconWidth: 1.6em;
539
539
  .vxe-input--date-week-view {
540
540
  th {
541
541
  &:first-child {
542
- box-shadow: inset -1px -1px 0 0 $vxe-table-popup-border-color;
542
+ box-shadow: inset -1px -1px 0 0 var(--vxe-table-popup-border-color);
543
543
  }
544
544
  }
545
545
  td {
546
546
  &:first-child {
547
- box-shadow: inset -1px 0 0 0 $vxe-table-popup-border-color;
547
+ box-shadow: inset -1px 0 0 0 var(--vxe-table-popup-border-color);
548
548
  }
549
549
  }
550
550
  }
@@ -567,7 +567,7 @@ $iconWidth: 1.6em;
567
567
  top: 0.1em;
568
568
  transform: translateX(-50%);
569
569
  border-radius: 100%;
570
- background-color: $vxe-input-date-notice-background-color;
570
+ background-color: var(--vxe-input-date-notice-background-color);
571
571
  }
572
572
  }
573
573
  }
@@ -578,19 +578,19 @@ $iconWidth: 1.6em;
578
578
  font-size: 12px;
579
579
  line-height: 12px;
580
580
  transform: scale(0.7);
581
- color: $vxe-input-date-extra-color;
581
+ color: var(--vxe-input-date-extra-color);
582
582
  &.is-important {
583
- color: $vxe-input-date-extra-important-color;
583
+ color: var(--vxe-input-date-extra-important-color);
584
584
  }
585
585
  }
586
586
 
587
587
  .vxe-input--date-festival {
588
- color: $vxe-input-date-festival-color;
588
+ color: var(--vxe-input-date-festival-color);
589
589
  height: 14px;
590
590
  line-height: 1;
591
591
  overflow: hidden;
592
592
  &.is-important {
593
- color: $vxe-input-date-festival-important-color;
593
+ color: var(--vxe-input-date-festival-important-color);
594
594
  }
595
595
  }
596
596
  .vxe-input--date-festival--label {
@@ -640,9 +640,9 @@ $iconWidth: 1.6em;
640
640
  position: relative;
641
641
  display: flex;
642
642
  flex-direction: row;
643
- border: 1px solid $vxe-table-popup-border-color;
643
+ border: 1px solid var(--vxe-table-popup-border-color);
644
644
  flex-grow: 1;
645
- border-radius: $vxe-border-radius;
645
+ border-radius: var(--vxe-border-radius);
646
646
  user-select: none;
647
647
  & > ul {
648
648
  height: 100%;
@@ -660,27 +660,27 @@ $iconWidth: 1.6em;
660
660
  & > li {
661
661
  display: block;
662
662
  &:hover {
663
- background-color: $vxe-input-date-picker-hover-background-color;
663
+ background-color: var(--vxe-input-date-picker-hover-background-color);
664
664
  cursor: pointer;
665
665
  }
666
666
  &.is--selected {
667
667
  font-weight: 700;
668
- color: $vxe-primary-color;
668
+ color: var(--vxe-primary-color);
669
669
  }
670
670
  }
671
671
  }
672
672
  .vxe-input--time-picker-minute-list {
673
- border-left: 1px solid $vxe-table-popup-border-color;
673
+ border-left: 1px solid var(--vxe-table-popup-border-color);
674
674
  }
675
675
  .vxe-input--time-picker-second-list {
676
- border-left: 1px solid $vxe-table-popup-border-color;
676
+ border-left: 1px solid var(--vxe-table-popup-border-color);
677
677
  }
678
678
  }
679
679
 
680
680
  .vxe-input {
681
- font-size: $vxe-font-size;
682
- height: $vxe-input-height-default;
683
- line-height: $vxe-input-height-default;
681
+ font-size: var(--vxe-font-size);
682
+ height: var(--vxe-input-height-default);
683
+ line-height: var(--vxe-input-height-default);
684
684
  .vxe-input--inner {
685
685
  &[type="date"]::-webkit-inner-spin-button,
686
686
  &[type="month"]::-webkit-inner-spin-button,
@@ -695,9 +695,9 @@ $iconWidth: 1.6em;
695
695
  }
696
696
  }
697
697
  &.size--medium {
698
- font-size: $vxe-font-size-medium;
699
- height: $vxe-input-height-medium;
700
- line-height: $vxe-input-height-medium;
698
+ font-size: var(--vxe-font-size-medium);
699
+ height: var(--vxe-input-height-medium);
700
+ line-height: var(--vxe-input-height-medium);
701
701
  .vxe-input--inner {
702
702
  &[type="date"]::-webkit-inner-spin-button,
703
703
  &[type="month"]::-webkit-inner-spin-button,
@@ -707,9 +707,9 @@ $iconWidth: 1.6em;
707
707
  }
708
708
  }
709
709
  &.size--small {
710
- font-size: $vxe-font-size-small;
711
- height: $vxe-input-height-small;
712
- line-height: $vxe-input-height-small;
710
+ font-size: var(--vxe-font-size-small);
711
+ height: var(--vxe-input-height-small);
712
+ line-height: var(--vxe-input-height-small);
713
713
  .vxe-input--inner {
714
714
  &[type="date"]::-webkit-inner-spin-button,
715
715
  &[type="month"]::-webkit-inner-spin-button,
@@ -719,9 +719,9 @@ $iconWidth: 1.6em;
719
719
  }
720
720
  }
721
721
  &.size--mini {
722
- font-size: $vxe-font-size-mini;
723
- height: $vxe-input-height-mini;
724
- line-height: $vxe-input-height-mini;
722
+ font-size: var(--vxe-font-size-mini);
723
+ height: var(--vxe-input-height-mini);
724
+ line-height: var(--vxe-input-height-mini);
725
725
  .vxe-input--inner {
726
726
  &[type="date"]::-webkit-inner-spin-button,
727
727
  &[type="month"]::-webkit-inner-spin-button,
@@ -802,8 +802,8 @@ $iconWidth: 1.6em;
802
802
  .vxe-input--date-picker-current-btn,
803
803
  .vxe-input--date-picker-next-btn {
804
804
  width: 31px - $sizeIndex;
805
- border-radius: $vxe-border-radius;
806
- border: 1px solid $vxe-input-border-color;
805
+ border-radius: var(--vxe-border-radius);
806
+ border: 1px solid var(--vxe-input-border-color);
807
807
  }
808
808
  }
809
809
  .vxe-input--date-picker-type-wrapper {
package/styles/list.scss CHANGED
@@ -4,7 +4,7 @@
4
4
  position: relative;
5
5
  display: block;
6
6
  padding: 0;
7
- color: $vxe-font-color;
7
+ color: var(--vxe-font-color);
8
8
  direction: ltr;
9
9
  .vxe-list--virtual-wrapper {
10
10
  position: relative;
@@ -10,7 +10,7 @@
10
10
  left: 0;
11
11
  z-index: 99;
12
12
  user-select: none;
13
- background-color: $vxe-loading-background-color;
13
+ background-color: var(--vxe-loading-background-color);
14
14
  &.is--visible {
15
15
  display: block;
16
16
  }
@@ -22,7 +22,7 @@
22
22
  left: 0;
23
23
  transform: translateY(-50%);
24
24
  text-align: center;
25
- color: $vxe-loading-color;
25
+ color: var(--vxe-loading-color);
26
26
  }
27
27
  .vxe-loading--default-icon {
28
28
  font-size: 1.4em;
@@ -41,7 +41,7 @@
41
41
  width: 100%;
42
42
  height: 100%;
43
43
  border-radius: 50%;
44
- background-color: $vxe-primary-color;
44
+ background-color: var(--vxe-primary-color);
45
45
  opacity: 0.6;
46
46
  position: absolute;
47
47
  top: 0;