vxe-table 4.6.21 → 4.6.22

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 (219) hide show
  1. package/es/button-group/style.css +0 -25
  2. package/es/checkbox/style.css +0 -25
  3. package/es/checkbox-group/style.css +0 -25
  4. package/es/colgroup/style.css +0 -25
  5. package/es/column/style.css +0 -25
  6. package/es/custom/style.css +0 -25
  7. package/es/drawer/style.css +0 -25
  8. package/es/edit/style.css +0 -25
  9. package/es/export/style.css +0 -25
  10. package/es/filter/style.css +0 -25
  11. package/es/form/style.css +0 -25
  12. package/es/form-gather/style.css +0 -25
  13. package/es/form-item/style.css +0 -25
  14. package/es/grid/style.css +0 -25
  15. package/es/icon/style.css +1 -1
  16. package/es/input/style.css +0 -25
  17. package/es/keyboard/style.css +0 -25
  18. package/es/list/style.css +0 -25
  19. package/es/loading/style.css +0 -25
  20. package/es/menu/style.css +0 -25
  21. package/es/modal/style.css +0 -25
  22. package/es/optgroup/style.css +0 -25
  23. package/es/option/style.css +0 -25
  24. package/es/pager/style.css +0 -25
  25. package/es/pulldown/style.css +0 -26
  26. package/es/radio/style.css +1 -26
  27. package/es/radio-button/style.css +0 -25
  28. package/es/radio-group/style.css +0 -25
  29. package/es/select/style.css +0 -25
  30. package/es/style.css +1 -1
  31. package/es/style.min.css +1 -1
  32. package/es/switch/style.css +0 -25
  33. package/es/table/style.css +1 -27
  34. package/es/textarea/style.css +0 -25
  35. package/es/toolbar/style.css +0 -25
  36. package/es/tools/log.js +1 -1
  37. package/es/tooltip/style.css +0 -25
  38. package/es/v-x-e-table/index.js +1 -1
  39. package/es/v-x-e-table/style.css +0 -26
  40. package/es/validator/style.css +0 -25
  41. package/es/vxe-button-group/style.css +0 -25
  42. package/es/vxe-checkbox/style.css +0 -25
  43. package/es/vxe-checkbox-group/style.css +0 -25
  44. package/es/vxe-colgroup/style.css +0 -25
  45. package/es/vxe-column/style.css +0 -25
  46. package/es/vxe-drawer/style.css +0 -25
  47. package/es/vxe-form/style.css +0 -25
  48. package/es/vxe-form-gather/style.css +0 -25
  49. package/es/vxe-form-item/style.css +0 -25
  50. package/es/vxe-grid/style.css +0 -25
  51. package/es/vxe-input/style.css +0 -25
  52. package/es/vxe-list/style.css +0 -25
  53. package/es/vxe-loading/style.css +0 -25
  54. package/es/vxe-modal/style.css +0 -25
  55. package/es/vxe-optgroup/style.css +0 -25
  56. package/es/vxe-option/style.css +0 -25
  57. package/es/vxe-pager/style.css +0 -25
  58. package/es/vxe-pulldown/style.css +0 -26
  59. package/es/vxe-radio/style.css +1 -26
  60. package/es/vxe-radio-button/style.css +0 -25
  61. package/es/vxe-radio-group/style.css +0 -25
  62. package/es/vxe-select/style.css +0 -25
  63. package/es/vxe-switch/style.css +0 -25
  64. package/es/vxe-table/style.css +1 -27
  65. package/es/vxe-table-custom-module/style.css +0 -25
  66. package/es/vxe-table-edit-module/style.css +0 -25
  67. package/es/vxe-table-export-module/style.css +0 -25
  68. package/es/vxe-table-filter-module/style.css +0 -25
  69. package/es/vxe-table-keyboard-module/style.css +0 -25
  70. package/es/vxe-table-menu-module/style.css +0 -25
  71. package/es/vxe-table-validator-module/style.css +0 -25
  72. package/es/vxe-textarea/style.css +0 -25
  73. package/es/vxe-toolbar/style.css +0 -25
  74. package/es/vxe-tooltip/style.css +0 -25
  75. package/lib/button-group/style/style.css +0 -25
  76. package/lib/checkbox/style/style.css +0 -25
  77. package/lib/checkbox-group/style/style.css +0 -25
  78. package/lib/colgroup/style/style.css +0 -25
  79. package/lib/column/style/style.css +0 -25
  80. package/lib/custom/style/style.css +0 -25
  81. package/lib/drawer/style/style.css +0 -25
  82. package/lib/edit/style/style.css +0 -25
  83. package/lib/export/style/style.css +0 -25
  84. package/lib/filter/style/style.css +0 -25
  85. package/lib/form/style/style.css +0 -25
  86. package/lib/form-gather/style/style.css +0 -25
  87. package/lib/form-item/style/style.css +0 -25
  88. package/lib/grid/style/style.css +0 -25
  89. package/lib/icon/style/style.css +1 -1
  90. package/lib/icon/style/style.min.css +1 -1
  91. package/lib/index.umd.js +7 -2
  92. package/lib/index.umd.min.js +1 -1
  93. package/lib/input/style/style.css +0 -25
  94. package/lib/keyboard/style/style.css +0 -25
  95. package/lib/list/style/style.css +0 -25
  96. package/lib/loading/style/style.css +0 -25
  97. package/lib/menu/style/style.css +0 -25
  98. package/lib/modal/style/style.css +0 -25
  99. package/lib/optgroup/style/style.css +0 -25
  100. package/lib/option/style/style.css +0 -25
  101. package/lib/pager/style/style.css +0 -25
  102. package/lib/pulldown/style/style.css +0 -26
  103. package/lib/radio/style/style.css +1 -26
  104. package/lib/radio-button/style/style.css +0 -25
  105. package/lib/radio-group/style/style.css +0 -25
  106. package/lib/select/style/style.css +0 -25
  107. package/lib/style.css +1 -1
  108. package/lib/style.min.css +1 -1
  109. package/lib/switch/style/style.css +0 -25
  110. package/lib/table/style/style.css +1 -27
  111. package/lib/table/style/style.min.css +1 -1
  112. package/lib/textarea/style/style.css +0 -25
  113. package/lib/toolbar/style/style.css +0 -25
  114. package/lib/tools/log.js +1 -1
  115. package/lib/tools/log.min.js +1 -1
  116. package/lib/tooltip/style/style.css +0 -25
  117. package/lib/v-x-e-table/index.js +1 -1
  118. package/lib/v-x-e-table/index.min.js +1 -1
  119. package/lib/v-x-e-table/style/style.css +0 -26
  120. package/lib/validator/style/style.css +0 -25
  121. package/lib/vxe-button-group/style/style.css +0 -25
  122. package/lib/vxe-checkbox/style/style.css +0 -25
  123. package/lib/vxe-checkbox-group/style/style.css +0 -25
  124. package/lib/vxe-colgroup/style/style.css +0 -25
  125. package/lib/vxe-column/style/style.css +0 -25
  126. package/lib/vxe-drawer/style/style.css +0 -25
  127. package/lib/vxe-form/style/style.css +0 -25
  128. package/lib/vxe-form-gather/style/style.css +0 -25
  129. package/lib/vxe-form-item/style/style.css +0 -25
  130. package/lib/vxe-grid/style/style.css +0 -25
  131. package/lib/vxe-input/style/style.css +0 -25
  132. package/lib/vxe-list/style/style.css +0 -25
  133. package/lib/vxe-loading/style/style.css +0 -25
  134. package/lib/vxe-modal/style/style.css +0 -25
  135. package/lib/vxe-optgroup/style/style.css +0 -25
  136. package/lib/vxe-option/style/style.css +0 -25
  137. package/lib/vxe-pager/style/style.css +0 -25
  138. package/lib/vxe-pulldown/style/style.css +0 -26
  139. package/lib/vxe-radio/style/style.css +1 -26
  140. package/lib/vxe-radio-button/style/style.css +0 -25
  141. package/lib/vxe-radio-group/style/style.css +0 -25
  142. package/lib/vxe-select/style/style.css +0 -25
  143. package/lib/vxe-switch/style/style.css +0 -25
  144. package/lib/vxe-table/style/style.css +1 -27
  145. package/lib/vxe-table/style/style.min.css +1 -1
  146. package/lib/vxe-table-custom-module/style/style.css +0 -25
  147. package/lib/vxe-table-edit-module/style/style.css +0 -25
  148. package/lib/vxe-table-export-module/style/style.css +0 -25
  149. package/lib/vxe-table-filter-module/style/style.css +0 -25
  150. package/lib/vxe-table-keyboard-module/style/style.css +0 -25
  151. package/lib/vxe-table-menu-module/style/style.css +0 -25
  152. package/lib/vxe-table-validator-module/style/style.css +0 -25
  153. package/lib/vxe-textarea/style/style.css +0 -25
  154. package/lib/vxe-toolbar/style/style.css +0 -25
  155. package/lib/vxe-tooltip/style/style.css +0 -25
  156. package/package.json +3 -3
  157. package/styles/all.scss +32 -32
  158. package/styles/base/common.scss +9 -6
  159. package/styles/button-group.scss +0 -2
  160. package/styles/button.scss +38 -36
  161. package/styles/checkbox-group.scss +0 -2
  162. package/styles/checkbox.scss +3 -4
  163. package/styles/colgroup.scss +0 -1
  164. package/styles/column.scss +0 -1
  165. package/styles/css-variable.scss +1 -3
  166. package/styles/cssvar.scss +3 -3
  167. package/styles/custom.scss +3 -4
  168. package/styles/default.scss +1 -1
  169. package/styles/drawer.scss +3 -4
  170. package/styles/edit.scss +0 -1
  171. package/styles/export.scss +2 -3
  172. package/styles/filter.scss +2 -3
  173. package/styles/footer.scss +0 -1
  174. package/styles/form-gather.scss +0 -1
  175. package/styles/form-item.scss +0 -1
  176. package/styles/form.scss +4 -3
  177. package/styles/grid.scss +0 -1
  178. package/styles/header.scss +0 -1
  179. package/styles/icon.scss +7 -5
  180. package/styles/index.scss +2 -2
  181. package/styles/input.scss +19 -19
  182. package/styles/keyboard.scss +0 -1
  183. package/styles/list.scss +0 -1
  184. package/styles/loading.scss +0 -2
  185. package/styles/menu.scss +0 -2
  186. package/styles/modal.scss +3 -4
  187. package/styles/modules.scss +32 -32
  188. package/styles/old-icon.scss +1 -2
  189. package/styles/optgroup.scss +0 -1
  190. package/styles/option.scss +0 -1
  191. package/styles/pager.scss +0 -3
  192. package/styles/pulldown.scss +0 -4
  193. package/styles/radio-button.scss +0 -1
  194. package/styles/radio-group.scss +0 -1
  195. package/styles/radio.scss +3 -4
  196. package/styles/select.scss +2 -3
  197. package/styles/switch.scss +0 -2
  198. package/styles/table.scss +6 -7
  199. package/styles/textarea.scss +0 -2
  200. package/styles/theme/dark.scss +1 -1
  201. package/styles/theme/default.scss +1 -1
  202. package/styles/toolbar.scss +0 -3
  203. package/styles/tooltip.scss +0 -2
  204. package/styles/v-x-e-table.scss +2 -3
  205. package/styles/validator.scss +0 -1
  206. package/styles/vxe-table.scss +0 -1
  207. /package/es/icon/{style/iconfont.1728462856848.ttf → iconfont.1729922941127.ttf} +0 -0
  208. /package/es/icon/{style/iconfont.1728462856848.woff → iconfont.1729922941127.woff} +0 -0
  209. /package/es/icon/{style/iconfont.1728462856848.woff2 → iconfont.1729922941127.woff2} +0 -0
  210. /package/es/{iconfont.1728462856848.ttf → iconfont.1729922941127.ttf} +0 -0
  211. /package/es/{iconfont.1728462856848.woff → iconfont.1729922941127.woff} +0 -0
  212. /package/es/{iconfont.1728462856848.woff2 → iconfont.1729922941127.woff2} +0 -0
  213. /package/lib/icon/style/{iconfont.1728462856848.ttf → iconfont.1729922941127.ttf} +0 -0
  214. /package/lib/icon/style/{iconfont.1728462856848.woff → iconfont.1729922941127.woff} +0 -0
  215. /package/lib/icon/style/{iconfont.1728462856848.woff2 → iconfont.1729922941127.woff2} +0 -0
  216. /package/lib/{iconfont.1728462856848.ttf → iconfont.1729922941127.ttf} +0 -0
  217. /package/lib/{iconfont.1728462856848.woff → iconfont.1729922941127.woff} +0 -0
  218. /package/lib/{iconfont.1728462856848.woff2 → iconfont.1729922941127.woff2} +0 -0
  219. /package/styles/helpers/{mixin.scss → baseMixin.scss} +0 -0
@@ -1,5 +1,7 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+ @use './variable.scss' as *;
4
+ @use './helpers/baseMixin.scss';
3
5
 
4
6
  $btnThemeList: (
5
7
  (
@@ -66,7 +68,7 @@ $btnThemeList: (
66
68
  white-space: nowrap;
67
69
  user-select: none;
68
70
  appearance: none;
69
- @include createAnimationTransition(border, .2s);
71
+ @include baseMixin.createAnimationTransition(border, .2s);
70
72
  &:not(.is--disabled) {
71
73
  color: var(--vxe-font-color);
72
74
  cursor: pointer;
@@ -104,20 +106,20 @@ $btnThemeList: (
104
106
  color: var(--vxe-primary-lighten-color);
105
107
  }
106
108
  }
107
- @for $index from 0 to length($btnThemeList) {
108
- $item: nth($btnThemeList, $index + 1);
109
- &.theme--#{map-get($item, name)} {
110
- color: map-get($item, textColor);
109
+ @for $index from 0 to list.length($btnThemeList) {
110
+ $item: list.nth($btnThemeList, $index + 1);
111
+ &.theme--#{map.get($item, name)} {
112
+ color: map.get($item, textColor);
111
113
  &:not(.is--disabled) {
112
114
  &:focus {
113
- color: map-get($item, btnDarkenColor);
115
+ color: map.get($item, btnDarkenColor);
114
116
  }
115
117
  &:hover {
116
- color: map-get($item, btnLightenColor);
118
+ color: map.get($item, btnLightenColor);
117
119
  }
118
120
  }
119
121
  &.is--disabled {
120
- color: map-get($item, btnDisabledColor);
122
+ color: map.get($item, btnDisabledColor);
121
123
  }
122
124
  }
123
125
  }
@@ -154,29 +156,29 @@ $btnThemeList: (
154
156
  background-color: var(--vxe-button-default-background-color);
155
157
  }
156
158
  }
157
- @for $index from 0 to length($btnThemeList) {
158
- $item: nth($btnThemeList, $index + 1);
159
- $textColor: map-get($item, textColor);
160
- $btnColor: map-get($item, btnColor);
161
- &.theme--#{map-get($item, name)} {
159
+ @for $index from 0 to list.length($btnThemeList) {
160
+ $item: list.nth($btnThemeList, $index + 1);
161
+ $textColor: map.get($item, textColor);
162
+ $btnColor: map.get($item, btnColor);
163
+ &.theme--#{map.get($item, name)} {
162
164
  color: $btnColor;
163
165
  &:not(.is--disabled) {
164
166
  border-color: $textColor;
165
167
  background-color: $textColor;
166
168
  &:hover {
167
169
  color: $btnColor;
168
- background-color: map-get($item, btnLightenColor);
169
- border-color: map-get($item, btnLightenColor);
170
+ background-color: map.get($item, btnLightenColor);
171
+ border-color: map.get($item, btnLightenColor);
170
172
  }
171
173
  &:active {
172
174
  color: $btnColor;
173
- background-color: map-get($item, btnDarkenColor);
174
- border-color: map-get($item, btnDarkenColor);
175
+ background-color: map.get($item, btnDarkenColor);
176
+ border-color: map.get($item, btnDarkenColor);
175
177
  }
176
178
  }
177
179
  &.is--disabled {
178
- border-color: map-get($item, btnDisabledColor);
179
- background-color: map-get($item, btnDisabledColor);
180
+ border-color: map.get($item, btnDisabledColor);
181
+ background-color: map.get($item, btnDisabledColor);
180
182
  }
181
183
  &.is--loading {
182
184
  border-color: $textColor;
@@ -263,10 +265,10 @@ $btnThemeList: (
263
265
  }
264
266
  & > .vxe-button {
265
267
  &.type--button {
266
- @for $index from 0 to length($btnThemeList) {
267
- $item: nth($btnThemeList, $index + 1);
268
- $btnColor: map-get($item, btnColor);
269
- &.theme--#{map-get($item, name)} {
268
+ @for $index from 0 to list.length($btnThemeList) {
269
+ $item: list.nth($btnThemeList, $index + 1);
270
+ $btnColor: map.get($item, btnColor);
271
+ &.theme--#{map.get($item, name)} {
270
272
  color: $btnColor;
271
273
  }
272
274
  }
@@ -278,20 +280,20 @@ $btnThemeList: (
278
280
  color: var(--vxe-primary-lighten-color);
279
281
  }
280
282
  &.type--text {
281
- @for $index from 0 to length($btnThemeList) {
282
- $item: nth($btnThemeList, $index + 1);
283
- &.theme--#{map-get($item, name)} {
284
- color: map-get($item, btnLightenColor);
283
+ @for $index from 0 to list.length($btnThemeList) {
284
+ $item: list.nth($btnThemeList, $index + 1);
285
+ &.theme--#{map.get($item, name)} {
286
+ color: map.get($item, btnLightenColor);
285
287
  }
286
288
  }
287
289
  }
288
290
  &.type--button {
289
- @for $index from 0 to length($btnThemeList) {
290
- $item: nth($btnThemeList, $index + 1);
291
- &.theme--#{map-get($item, name)} {
292
- color: map-get($item, btnColor);
293
- background-color: map-get($item, btnLightenColor);
294
- border-color: map-get($item, btnLightenColor);
291
+ @for $index from 0 to list.length($btnThemeList) {
292
+ $item: list.nth($btnThemeList, $index + 1);
293
+ &.theme--#{map.get($item, name)} {
294
+ color: map.get($item, btnColor);
295
+ background-color: map.get($item, btnLightenColor);
296
+ border-color: map.get($item, btnLightenColor);
295
297
  }
296
298
  }
297
299
  }
@@ -306,7 +308,7 @@ $btnThemeList: (
306
308
  display: inline-block;
307
309
  font-size: 12px;
308
310
  margin-left: 4px;
309
- @include createAnimationTransition(transform, .2s);
311
+ @include baseMixin.createAnimationTransition(transform, .2s);
310
312
  }
311
313
 
312
314
  .vxe-button--dropdown-panel {
@@ -1,5 +1,3 @@
1
- /**Variable**/
2
-
3
1
  .vxe-button-group {
4
2
  display: inline-flex;
5
3
  }
@@ -1,6 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
- @import './base/common.scss';
1
+ @use './helpers/baseMixin.scss';
2
+ @use './base/common.scss';
4
3
 
5
4
  /*checkbox-group*/
6
5
  .vxe-checkbox-group {
@@ -15,7 +14,7 @@
15
14
  vertical-align: middle;
16
15
  white-space: nowrap;
17
16
  line-height: 1;
18
- @include createCheckboxIcon();
17
+ @include baseMixin.createCheckboxIcon();
19
18
  &+.vxe-checkbox {
20
19
  margin-left: 10px;
21
20
  }
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,4 +1,2 @@
1
- /**Variable**/
2
-
3
1
  // 该文件已废弃,请使用 vxe-table/styles/theme/default.scss
4
- @import './theme/default.scss';
2
+ @use './theme/default.scss';
@@ -1,3 +1,3 @@
1
- @import './variable.scss';
2
- @import './theme/default.scss';
3
- @import './theme/dark.scss';
1
+ @use './variable.scss';
2
+ @use './theme/default.scss';
3
+ @use './theme/dark.scss';
@@ -1,6 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
- @import './base/common.scss';
1
+ @use './helpers/baseMixin.scss';
2
+ @use './base/common.scss';
4
3
 
5
4
  .vxe-table-custom--option {
6
5
  display: flex;
@@ -88,7 +87,7 @@
88
87
  text-overflow: ellipsis;
89
88
  white-space: nowrap;
90
89
  flex-grow: 1;
91
- @include createCheckboxIcon();
90
+ @include baseMixin.createCheckboxIcon();
92
91
  }
93
92
 
94
93
  .vxe-table-custom--fixed-option {
@@ -1,3 +1,3 @@
1
1
  // 该文件已废弃,请使用 vxe-table/styles/all.scss
2
2
 
3
- @import './modules.scss';
3
+ @use './modules.scss';
@@ -1,5 +1,4 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './helpers/baseMixin.scss';
3
2
 
4
3
  .vxe-drawer--wrapper {
5
4
  display: none;
@@ -88,7 +87,7 @@
88
87
  &.is--mask {
89
88
  &:before {
90
89
  background-color: rgba(0, 0, 0, 0);
91
- @include createAnimationTransition(background-color, 0.2s);
90
+ @include baseMixin.createAnimationTransition(background-color, 0.2s);
92
91
  }
93
92
  }
94
93
  &.pos--left {
@@ -143,7 +142,7 @@
143
142
  text-align: left;
144
143
  pointer-events: auto;
145
144
  opacity: 0;
146
- @include createAnimationTransition(all, 0.3s);
145
+ @include baseMixin.createAnimationTransition(all, 0.3s);
147
146
  }
148
147
  .vxe-drawer--content {
149
148
  flex-grow: 1;
package/styles/edit.scss CHANGED
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,5 +1,4 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './helpers/baseMixin.scss';
3
2
 
4
3
  .vxe-export--panel-column > ul {
5
4
  list-style-type: none;
@@ -122,5 +121,5 @@
122
121
  }
123
122
 
124
123
  .vxe-export--panel-column-option {
125
- @include createCheckboxIcon();
124
+ @include baseMixin.createCheckboxIcon();
126
125
  }
@@ -1,5 +1,4 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './helpers/baseMixin.scss';
3
2
 
4
3
  /*筛选*/
5
4
  .vxe-cell--filter {
@@ -109,5 +108,5 @@
109
108
  }
110
109
 
111
110
  .vxe-table--filter-option {
112
- @include createCheckboxIcon();
111
+ @include baseMixin.createCheckboxIcon();
113
112
  }
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/form.scss CHANGED
@@ -1,4 +1,5 @@
1
- /**Variable**/
1
+ @use 'sass:list';
2
+
2
3
  %ButtonHover {
3
4
  color: var(--vxe-primary-lighten-color);
4
5
  border-color: var(--vxe-primary-lighten-color);
@@ -20,9 +21,9 @@
20
21
  $spans: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
21
22
  37.5%, 41.66667%, 45.83333%, 50%, 54.16667%, 58.33333%, 62.5%, 66.66667%,
22
23
  70.83333%, 75%, 79.16667%, 83.33333%, 87.5%, 91.66667%, 95.83333%, 100%;
23
- @for $index from 0 to length($spans) {
24
+ @for $index from 0 to list.length($spans) {
24
25
  & > .vxe-form--item-col_#{$index + 1} {
25
- width: nth($spans, $index + 1);
26
+ width: list.nth($spans, $index + 1);
26
27
  }
27
28
  }
28
29
  }
package/styles/grid.scss CHANGED
@@ -1,4 +1,3 @@
1
- /**Variable**/
2
1
 
3
2
  .vxe-grid {
4
3
  position: relative;
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/icon.scss CHANGED
@@ -1,4 +1,6 @@
1
- @import './old-icon.scss';
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+ @use './old-icon.scss';
2
4
 
3
5
  @font-face {
4
6
  font-family: "vxeiconfont";
@@ -65,10 +67,10 @@ $btnThemeList: (
65
67
  &.roll {
66
68
  animation: rollCircle 1s infinite linear;
67
69
  }
68
- @for $index from 0 to length($btnThemeList) {
69
- $item: nth($btnThemeList, $index + 1);
70
- &.theme--#{map-get($item, name)} {
71
- color: map-get($item, textColor);
70
+ @for $index from 0 to list.length($btnThemeList) {
71
+ $item: list.nth($btnThemeList, $index + 1);
72
+ &.theme--#{map.get($item, name)} {
73
+ color: map.get($item, textColor);
72
74
  }
73
75
  }
74
76
  }
package/styles/index.scss CHANGED
@@ -1,4 +1,4 @@
1
1
  // 该文件已废弃,请使用 vxe-table/style/all.scss
2
2
 
3
- @import './variable.scss';
4
- @import './default.scss';
3
+ @use './variable.scss';
4
+ @use './default.scss';
package/styles/input.scss CHANGED
@@ -1,5 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use 'sass:list';
2
+ @use './helpers/baseMixin.scss';
3
3
 
4
4
  $iconWidth: 1.6em;
5
5
 
@@ -272,7 +272,7 @@ $iconWidth: 1.6em;
272
272
  align-items: center;
273
273
  justify-content: center;
274
274
  .vxe-input--panel-icon {
275
- @include createAnimationTransition(transform, .2s);
275
+ @include baseMixin.createAnimationTransition(transform, .2s);
276
276
  }
277
277
  }
278
278
 
@@ -763,7 +763,7 @@ $iconWidth: 1.6em;
763
763
  $quarterRowHeightList: var(--vxe-input-date-quarter-row-height-default), var(--vxe-input-date-quarter-row-height-medium), var(--vxe-input-date-quarter-row-height-small), var(--vxe-input-date-quarter-row-height-mini);
764
764
  $titleRowHeightList: var(--vxe-input-date-title-height-default), var(--vxe-input-date-title-height-medium), var(--vxe-input-date-title-height-small), var(--vxe-input-date-title-height-mini);
765
765
 
766
- font-size: nth($fontSizeList, $sizeIndex);
766
+ font-size: list.nth($fontSizeList, $sizeIndex);
767
767
  .vxe-input--panel-wrapper {
768
768
  max-height: 400px - $sizeIndex * 20;
769
769
  }
@@ -783,25 +783,25 @@ $iconWidth: 1.6em;
783
783
  &.type--year {
784
784
  .vxe-input--panel-wrapper {
785
785
  $widthList: 336px, 336px, 312px, 288px;
786
- width: nth($widthList, $sizeIndex);
786
+ width: list.nth($widthList, $sizeIndex);
787
787
  }
788
788
  }
789
789
  &.type--week {
790
790
  .vxe-input--panel-wrapper {
791
791
  $widthList: 380px, 380px, 354px, 326px;
792
- width: nth($widthList, $sizeIndex);
792
+ width: list.nth($widthList, $sizeIndex);
793
793
  }
794
794
  }
795
795
  &.type--time {
796
796
  .vxe-input--panel-wrapper {
797
797
  $widthList: 170px, 168px, 154px, 146px;
798
- width: nth($widthList, $sizeIndex);
798
+ width: list.nth($widthList, $sizeIndex);
799
799
  }
800
800
  }
801
801
  &.type--datetime {
802
802
  .vxe-input--panel-left-wrapper {
803
803
  $widthList: 336px, 336px, 312px, 288px;
804
- width: nth($widthList, $sizeIndex);
804
+ width: list.nth($widthList, $sizeIndex);
805
805
  }
806
806
  .vxe-input--panel-left-wrapper,
807
807
  .vxe-input--panel-right-wrapper {
@@ -839,20 +839,20 @@ $iconWidth: 1.6em;
839
839
  .vxe-input--time-picker-header,
840
840
  .vxe-input--date-picker-header {
841
841
  $paddingBottomList: 8px, 7px, 6px, 5px;
842
- padding-bottom: nth($paddingBottomList, $sizeIndex);
842
+ padding-bottom: list.nth($paddingBottomList, $sizeIndex);
843
843
  }
844
844
  .vxe-input--date-picker-body table,
845
845
  .vxe-input--time-picker-body {
846
- height: calc(nth($timeWeekRowHeightList, $sizeIndex) * 6 + nth($titleRowHeightList, $sizeIndex));
846
+ height: calc(list.nth($timeWeekRowHeightList, $sizeIndex) * 6 + list.nth($titleRowHeightList, $sizeIndex));
847
847
  }
848
848
  .vxe-input--time-picker-body {
849
849
  $ulWidthList: 48px, 48px, 44px, 42px;
850
850
  & > ul {
851
- width: nth($ulWidthList, $sizeIndex);
851
+ width: list.nth($ulWidthList, $sizeIndex);
852
852
  &:before,
853
853
  &:after {
854
854
  $heightList: 120px, 120px, 110px, 100px;
855
- height: nth($heightList, $sizeIndex);
855
+ height: list.nth($heightList, $sizeIndex);
856
856
  }
857
857
  & > li {
858
858
  height: 26px;
@@ -860,32 +860,32 @@ $iconWidth: 1.6em;
860
860
  }
861
861
  }
862
862
  .vxe-input--time-picker-minute-list {
863
- left: nth($ulWidthList, $sizeIndex);
863
+ left: list.nth($ulWidthList, $sizeIndex);
864
864
  }
865
865
  .vxe-input--time-picker-second-list {
866
- left: calc(nth($ulWidthList, $sizeIndex) * 2);
866
+ left: calc(list.nth($ulWidthList, $sizeIndex) * 2);
867
867
  }
868
868
  }
869
869
  .vxe-input--date-day-view,
870
870
  .vxe-input--date-week-view {
871
871
  td {
872
- height: nth($timeWeekRowHeightList, $sizeIndex);
872
+ height: list.nth($timeWeekRowHeightList, $sizeIndex);
873
873
  }
874
874
  }
875
875
  .vxe-input--date-quarter-view {
876
876
  td {
877
- height: nth($quarterRowHeightList, $sizeIndex);
877
+ height: list.nth($quarterRowHeightList, $sizeIndex);
878
878
  }
879
879
  }
880
880
  .vxe-input--date-month-view,
881
881
  .vxe-input--date-year-view {
882
882
  td {
883
- height: nth($monthYearRowHeightList, $sizeIndex);
883
+ height: list.nth($monthYearRowHeightList, $sizeIndex);
884
884
  }
885
885
  }
886
886
  .vxe-input--date-picker-body {
887
887
  th {
888
- height: nth($titleRowHeightList, $sizeIndex);
888
+ height: list.nth($titleRowHeightList, $sizeIndex);
889
889
  }
890
890
  }
891
891
  .vxe-input--time-picker-confirm,
@@ -894,7 +894,7 @@ $iconWidth: 1.6em;
894
894
  padding: 0 10px - $sizeIndex;
895
895
  }
896
896
  .vxe-input--date-label {
897
- line-height: calc(nth($fontSizeList, $sizeIndex) + 1px);
897
+ line-height: calc(list.nth($fontSizeList, $sizeIndex) + 1px);
898
898
  }
899
899
  }
900
900
 
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/list.scss CHANGED
@@ -1,4 +1,3 @@
1
- /**Variable**/
2
1
 
3
2
  .vxe-list {
4
3
  position: relative;
@@ -1,5 +1,3 @@
1
- /**Variable**/
2
-
3
1
  /*加载中*/
4
2
  .vxe-loading {
5
3
  display: none;
package/styles/menu.scss CHANGED
@@ -1,5 +1,3 @@
1
- /**Variable**/
2
-
3
1
  /*快捷菜单*/
4
2
  .vxe-table--context-menu-wrapper {
5
3
  display: none;
package/styles/modal.scss CHANGED
@@ -1,5 +1,4 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './helpers/baseMixin.scss';
3
2
 
4
3
  .vxe-modal--wrapper {
5
4
  display: none;
@@ -82,13 +81,13 @@
82
81
  &.is--animat {
83
82
  &.is--mask {
84
83
  &:before {
85
- @include createAnimationTransition(background-color, .2s);
84
+ @include baseMixin.createAnimationTransition(background-color, .2s);
86
85
  }
87
86
  }
88
87
  &.type--message {
89
88
  .vxe-modal--box {
90
89
  &:not(.is--drag) {
91
- @include createAnimationTransition(all, .4s, ease-out);
90
+ @include baseMixin.createAnimationTransition(all, .4s, ease-out);
92
91
  }
93
92
  }
94
93
  }
@@ -1,35 +1,35 @@
1
1
  // 该文件已废弃,请使用 vxe-table/styles/all.scss
2
2
 
3
- @import './variable.scss';
4
- @import './theme/default.scss';
5
- @import './theme/dark.scss';
6
- @import './filter.scss';
7
- @import './menu.scss';
8
- @import './export.scss';
9
- @import './custom.scss';
3
+ @use './variable.scss';
4
+ @use './theme/default.scss';
5
+ @use './theme/dark.scss';
6
+ @use './filter.scss';
7
+ @use './menu.scss';
8
+ @use './export.scss';
9
+ @use './custom.scss';
10
10
 
11
- @import './icon.scss';
12
- @import './table.scss';
13
- @import './grid.scss';
14
- @import './toolbar.scss';
15
- @import './pager.scss';
16
- @import './checkbox.scss';
17
- @import './checkbox-group.scss';
18
- @import './radio.scss';
19
- @import './radio-group.scss';
20
- @import './radio-button.scss';
21
- @import './input.scss';
22
- @import './textarea.scss';
23
- @import './button.scss';
24
- @import './modal.scss';
25
- @import './drawer.scss';
26
- @import './tooltip.scss';
27
- @import './form.scss';
28
- @import './form-item.scss';
29
- @import './form-gather.scss';
30
- @import './select.scss';
31
- @import './optgroup.scss';
32
- @import './option.scss';
33
- @import './switch.scss';
34
- @import './list.scss';
35
- @import './pulldown.scss';
11
+ @use './icon.scss';
12
+ @use './table.scss';
13
+ @use './grid.scss';
14
+ @use './toolbar.scss';
15
+ @use './pager.scss';
16
+ @use './checkbox.scss';
17
+ @use './checkbox-group.scss';
18
+ @use './radio.scss';
19
+ @use './radio-group.scss';
20
+ @use './radio-button.scss';
21
+ @use './input.scss';
22
+ @use './textarea.scss';
23
+ @use './button.scss';
24
+ @use './modal.scss';
25
+ @use './drawer.scss';
26
+ @use './tooltip.scss';
27
+ @use './form.scss';
28
+ @use './form-item.scss';
29
+ @use './form-gather.scss';
30
+ @use './select.scss';
31
+ @use './optgroup.scss';
32
+ @use './option.scss';
33
+ @use './switch.scss';
34
+ @use './list.scss';
35
+ @use './pulldown.scss';
@@ -1,5 +1,4 @@
1
- @import './variable.scss';
2
- @import './helpers/mixin.scss';
1
+ @use './variable.scss';
3
2
 
4
3
  [class*="vxe-icon--"] {
5
4
  display: inline-block;
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/pager.scss CHANGED
@@ -1,6 +1,3 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
-
4
1
  /*pager*/
5
2
  .vxe-pager {
6
3
  position: relative;
@@ -1,7 +1,3 @@
1
- /**Variable**/
2
- /**Variable**/
3
- @import './helpers/mixin.scss';
4
-
5
1
  .vxe-pulldown {
6
2
  position: relative;
7
3
  display: inline-block;
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/radio.scss CHANGED
@@ -1,6 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
- @import './base/common.scss';
1
+ @use './helpers/baseMixin.scss';
2
+ @use './base/common.scss';
4
3
 
5
4
  /*radio-group*/
6
5
  .vxe-radio-group {
@@ -19,7 +18,7 @@
19
18
  vertical-align: middle;
20
19
  white-space: nowrap;
21
20
  line-height: 1;
22
- @include createRadioIcon();
21
+ @include baseMixin.createRadioIcon();
23
22
  > input {
24
23
  &[type="radio"] {
25
24
  position: absolute;
@@ -1,5 +1,4 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './helpers/baseMixin.scss';
3
2
 
4
3
  .vxe-select {
5
4
  position: relative;
@@ -30,7 +29,7 @@
30
29
  width: 100%;
31
30
  .vxe-input--suffix-icon {
32
31
  display: inline-block;
33
- @include createAnimationTransition(transform, .2s);
32
+ @include baseMixin.createAnimationTransition(transform, .2s);
34
33
  }
35
34
  }
36
35
  &.is--active {