vxe-table 3.8.24 → 3.8.26

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 (177) hide show
  1. package/lib/button/style/style.css +10 -10
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/button-group/style/style.css +0 -26
  4. package/lib/checkbox-group/style/style.css +0 -26
  5. package/lib/colgroup/style/style.css +0 -26
  6. package/lib/column/style/style.css +0 -26
  7. package/lib/edit/style/style.css +0 -26
  8. package/lib/form-gather/style/style.css +0 -26
  9. package/lib/form-item/style/style.css +0 -26
  10. package/lib/icon/style/style.css +1 -27
  11. package/lib/icon/style/style.min.css +1 -27
  12. package/lib/index.css +1 -1
  13. package/lib/index.umd.js +21 -4
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/keyboard/style/style.css +0 -26
  16. package/lib/locale/lang/en-US.js +2 -1
  17. package/lib/locale/lang/en-US.min.js +1 -1
  18. package/lib/locale/lang/en-US.umd.js +2 -1
  19. package/lib/locale/lang/es-ES.js +2 -1
  20. package/lib/locale/lang/es-ES.min.js +1 -1
  21. package/lib/locale/lang/es-ES.umd.js +2 -1
  22. package/lib/locale/lang/hu-HU.d.ts +8 -0
  23. package/lib/locale/lang/hu-HU.js +675 -0
  24. package/lib/locale/lang/hu-HU.min.js +1 -0
  25. package/lib/locale/lang/hu-HU.umd.js +689 -0
  26. package/lib/locale/lang/ja-JP.js +2 -1
  27. package/lib/locale/lang/ja-JP.min.js +1 -1
  28. package/lib/locale/lang/ja-JP.umd.js +2 -1
  29. package/lib/locale/lang/ko-KR.d.ts +8 -0
  30. package/lib/locale/lang/ko-KR.js +675 -0
  31. package/lib/locale/lang/ko-KR.min.js +1 -0
  32. package/lib/locale/lang/ko-KR.umd.js +689 -0
  33. package/lib/locale/lang/pt-BR.js +2 -1
  34. package/lib/locale/lang/pt-BR.min.js +1 -1
  35. package/lib/locale/lang/pt-BR.umd.js +2 -1
  36. package/lib/locale/lang/ru-RU.d.ts +8 -0
  37. package/lib/locale/lang/ru-RU.js +675 -0
  38. package/lib/locale/lang/ru-RU.min.js +1 -0
  39. package/lib/locale/lang/ru-RU.umd.js +689 -0
  40. package/lib/locale/lang/uk-UA.d.ts +8 -0
  41. package/lib/locale/lang/uk-UA.js +675 -0
  42. package/lib/locale/lang/uk-UA.min.js +1 -0
  43. package/lib/locale/lang/uk-UA.umd.js +689 -0
  44. package/lib/locale/lang/zh-CHT.d.ts +8 -0
  45. package/lib/locale/lang/zh-CHT.js +675 -0
  46. package/lib/locale/lang/zh-CHT.min.js +1 -0
  47. package/lib/locale/lang/zh-CHT.umd.js +689 -0
  48. package/lib/locale/lang/zh-CN.js +2 -1
  49. package/lib/locale/lang/zh-CN.min.js +1 -1
  50. package/lib/locale/lang/zh-CN.umd.js +2 -1
  51. package/lib/locale/lang/zh-HK.js +2 -2
  52. package/lib/locale/lang/zh-HK.min.js +1 -1
  53. package/lib/locale/lang/zh-HK.umd.js +7 -672
  54. package/lib/locale/lang/zh-MO.js +2 -2
  55. package/lib/locale/lang/zh-MO.min.js +1 -1
  56. package/lib/locale/lang/zh-MO.umd.js +7 -672
  57. package/lib/locale/lang/zh-TC.js +3 -668
  58. package/lib/locale/lang/zh-TC.min.js +1 -1
  59. package/lib/locale/lang/zh-TC.umd.js +7 -672
  60. package/lib/locale/lang/zh-TW.js +2 -2
  61. package/lib/locale/lang/zh-TW.min.js +1 -1
  62. package/lib/locale/lang/zh-TW.umd.js +7 -672
  63. package/lib/modal/src/modal.js +5 -0
  64. package/lib/modal/src/modal.min.js +1 -1
  65. package/lib/optgroup/style/style.css +0 -26
  66. package/lib/option/style/style.css +0 -26
  67. package/lib/pulldown/style/style.css +0 -1
  68. package/lib/radio/style/style.css +1 -1
  69. package/lib/radio-button/style/style.css +0 -26
  70. package/lib/radio-group/style/style.css +0 -26
  71. package/lib/style.css +1 -1
  72. package/lib/style.min.css +1 -1
  73. package/lib/table/src/methods.js +9 -1
  74. package/lib/table/src/methods.min.js +1 -1
  75. package/lib/table/style/style.css +0 -1
  76. package/lib/tools/log.js +1 -1
  77. package/lib/tools/log.min.js +1 -1
  78. package/lib/v-x-e-table/index.js +1 -1
  79. package/lib/v-x-e-table/index.min.js +1 -1
  80. package/lib/v-x-e-table/style/style.css +0 -28
  81. package/lib/validator/style/style.css +0 -26
  82. package/lib/vxe-button/style/style.css +10 -10
  83. package/lib/vxe-button/style/style.min.css +1 -1
  84. package/lib/vxe-button-group/style/style.css +0 -26
  85. package/lib/vxe-checkbox-group/style/style.css +0 -26
  86. package/lib/vxe-colgroup/style/style.css +0 -26
  87. package/lib/vxe-column/style/style.css +0 -26
  88. package/lib/vxe-form-gather/style/style.css +0 -26
  89. package/lib/vxe-form-item/style/style.css +0 -26
  90. package/lib/vxe-icon/style/style.css +0 -26
  91. package/lib/vxe-optgroup/style/style.css +0 -26
  92. package/lib/vxe-option/style/style.css +0 -26
  93. package/lib/vxe-pulldown/style/style.css +0 -1
  94. package/lib/vxe-radio/style/style.css +1 -1
  95. package/lib/vxe-radio-button/style/style.css +0 -26
  96. package/lib/vxe-radio-group/style/style.css +0 -26
  97. package/lib/vxe-table/style/style.css +0 -1
  98. package/lib/vxe-table-edit-module/style/style.css +0 -26
  99. package/lib/vxe-table-keyboard-module/style/style.css +0 -26
  100. package/lib/vxe-table-validator-module/style/style.css +0 -26
  101. package/package.json +4 -4
  102. package/packages/locale/lang/en-US.js +2 -1
  103. package/packages/locale/lang/es-ES.js +2 -1
  104. package/packages/locale/lang/hu-HU.d.ts +8 -0
  105. package/packages/locale/lang/hu-HU.js +671 -0
  106. package/packages/locale/lang/ja-JP.js +2 -1
  107. package/packages/locale/lang/ko-KR.d.ts +8 -0
  108. package/packages/locale/lang/ko-KR.js +671 -0
  109. package/packages/locale/lang/pt-BR.js +2 -1
  110. package/packages/locale/lang/ru-RU.d.ts +8 -0
  111. package/packages/locale/lang/ru-RU.js +671 -0
  112. package/packages/locale/lang/uk-UA.d.ts +8 -0
  113. package/packages/locale/lang/uk-UA.js +671 -0
  114. package/packages/locale/lang/zh-CHT.d.ts +8 -0
  115. package/packages/locale/lang/zh-CHT.js +671 -0
  116. package/packages/locale/lang/zh-CN.js +2 -1
  117. package/packages/locale/lang/zh-HK.js +2 -2
  118. package/packages/locale/lang/zh-MO.js +2 -2
  119. package/packages/locale/lang/zh-TC.js +2 -669
  120. package/packages/locale/lang/zh-TW.js +2 -2
  121. package/packages/modal/src/modal.js +6 -1
  122. package/packages/table/src/methods.js +8 -1
  123. package/styles/all.scss +31 -31
  124. package/styles/base/common.scss +10 -6
  125. package/styles/button-group.scss +0 -2
  126. package/styles/button.scss +39 -37
  127. package/styles/checkbox-group.scss +0 -1
  128. package/styles/checkbox.scss +4 -4
  129. package/styles/colgroup.scss +0 -1
  130. package/styles/column.scss +0 -1
  131. package/styles/css-variable.scss +1 -1
  132. package/styles/cssvar.scss +2 -2
  133. package/styles/custom.scss +4 -4
  134. package/styles/default.scss +1 -1
  135. package/styles/edit.scss +0 -1
  136. package/styles/export.scss +3 -3
  137. package/styles/filter.scss +3 -3
  138. package/styles/footer.scss +0 -1
  139. package/styles/form-gather.scss +0 -1
  140. package/styles/form-item.scss +0 -1
  141. package/styles/form.scss +5 -3
  142. package/styles/grid.scss +1 -1
  143. package/styles/header.scss +0 -1
  144. package/styles/helpers/{mixin.scss → baseMixin.scss} +2 -0
  145. package/styles/icon.scss +8 -6
  146. package/styles/index.scss +2 -2
  147. package/styles/input.scss +20 -19
  148. package/styles/keyboard.scss +0 -1
  149. package/styles/list.scss +1 -1
  150. package/styles/loading.scss +1 -1
  151. package/styles/menu.scss +1 -1
  152. package/styles/modal.scss +4 -4
  153. package/styles/modules.scss +31 -31
  154. package/styles/old-icon.scss +2 -2
  155. package/styles/optgroup.scss +0 -1
  156. package/styles/option.scss +0 -1
  157. package/styles/pager.scss +2 -2
  158. package/styles/pulldown.scss +2 -3
  159. package/styles/radio-button.scss +0 -1
  160. package/styles/radio-group.scss +0 -1
  161. package/styles/radio.scss +4 -4
  162. package/styles/select.scss +3 -3
  163. package/styles/switch.scss +1 -1
  164. package/styles/table.scss +6 -6
  165. package/styles/textarea.scss +1 -1
  166. package/styles/toolbar.scss +2 -2
  167. package/styles/tooltip.scss +1 -1
  168. package/styles/v-x-e-table.scss +2 -3
  169. package/styles/validator.scss +0 -1
  170. package/styles/variable.scss +18 -18
  171. package/styles/vxe-table.scss +0 -1
  172. /package/lib/icon/style/{iconfont.1725243866550.ttf → iconfont.1729922942320.ttf} +0 -0
  173. /package/lib/icon/style/{iconfont.1725243866550.woff → iconfont.1729922942320.woff} +0 -0
  174. /package/lib/icon/style/{iconfont.1725243866550.woff2 → iconfont.1729922942320.woff2} +0 -0
  175. /package/lib/{iconfont.1725243866550.ttf → iconfont.1729922942320.ttf} +0 -0
  176. /package/lib/{iconfont.1725243866550.woff → iconfont.1729922942320.woff} +0 -0
  177. /package/lib/{iconfont.1725243866550.woff2 → iconfont.1729922942320.woff2} +0 -0
@@ -1904,7 +1904,7 @@ const Methods = {
1904
1904
  const leftList = []
1905
1905
  const centerList = []
1906
1906
  const rightList = []
1907
- const { collectColumn, tableFullColumn, isGroup, columnStore, sXOpts, scrollXStore } = this
1907
+ const { collectColumn, tableFullColumn, isGroup, columnStore, sXOpts, scrollXStore, fullColumnIdData } = this
1908
1908
  // 如果是分组表头,如果子列全部被隐藏,则根列也隐藏
1909
1909
  if (isGroup) {
1910
1910
  const leftGroupList = []
@@ -1989,6 +1989,13 @@ const Methods = {
1989
1989
  this.clearMergeFooterItems()
1990
1990
  }
1991
1991
  this.scrollXLoad = scrollXLoad
1992
+ visibleColumn.forEach((column, index) => {
1993
+ const colid = column.id
1994
+ const rest = fullColumnIdData[colid]
1995
+ if (rest) {
1996
+ rest._index = index
1997
+ }
1998
+ })
1992
1999
  this.visibleColumn = visibleColumn
1993
2000
  this.handleTableColumn()
1994
2001
  return this.updateFooter().then(() => {
package/styles/all.scss CHANGED
@@ -1,33 +1,33 @@
1
- @import './variable.scss';
2
- // @import './css-variable.scss';
1
+ @use './variable.scss';
2
+ // @use './css-variable.scss';
3
3
 
4
- @import './filter.scss';
5
- @import './menu.scss';
6
- @import './export.scss';
7
- @import './custom.scss';
4
+ @use './filter.scss';
5
+ @use './menu.scss';
6
+ @use './export.scss';
7
+ @use './custom.scss';
8
8
 
9
- @import './icon.scss';
10
- @import './table.scss';
11
- @import './grid.scss';
12
- @import './toolbar.scss';
13
- @import './pager.scss';
14
- @import './checkbox.scss';
15
- @import './checkbox-group.scss';
16
- @import './radio.scss';
17
- @import './radio-group.scss';
18
- @import './radio-button.scss';
19
- @import './input.scss';
20
- @import './textarea.scss';
21
- @import './button.scss';
22
- @import './button-group.scss';
23
- @import './modal.scss';
24
- @import './tooltip.scss';
25
- @import './form.scss';
26
- @import './form-item.scss';
27
- @import './form-gather.scss';
28
- @import './select.scss';
29
- @import './optgroup.scss';
30
- @import './option.scss';
31
- @import './switch.scss';
32
- @import './list.scss';
33
- @import './pulldown.scss';
9
+ @use './icon.scss';
10
+ @use './table.scss';
11
+ @use './grid.scss';
12
+ @use './toolbar.scss';
13
+ @use './pager.scss';
14
+ @use './checkbox.scss';
15
+ @use './checkbox-group.scss';
16
+ @use './radio.scss';
17
+ @use './radio-group.scss';
18
+ @use './radio-button.scss';
19
+ @use './input.scss';
20
+ @use './textarea.scss';
21
+ @use './button.scss';
22
+ @use './button-group.scss';
23
+ @use './modal.scss';
24
+ @use './tooltip.scss';
25
+ @use './form.scss';
26
+ @use './form-item.scss';
27
+ @use './form-gather.scss';
28
+ @use './select.scss';
29
+ @use './optgroup.scss';
30
+ @use './option.scss';
31
+ @use './switch.scss';
32
+ @use './list.scss';
33
+ @use './pulldown.scss';
@@ -1,3 +1,7 @@
1
+ @use 'sass:list';
2
+ @use '../variable.scss' as *;
3
+ @use '../helpers/baseMixin.scss';
4
+
1
5
  %boxSizing {
2
6
  box-sizing: border-box;
3
7
  }
@@ -50,10 +54,10 @@
50
54
  overflow: hidden;
51
55
  visibility: hidden;
52
56
  }
53
- @for $index from 0 to length($spans) {
57
+ @for $index from 0 to list.length($spans) {
54
58
  & > .vxe-col--#{$index + 1} {
55
59
  float: left;
56
- width: nth($spans, $index + 1);
60
+ width: list.nth($spans, $index + 1);
57
61
  }
58
62
  }
59
63
  }
@@ -65,23 +69,23 @@
65
69
  .vxe-filter--btn {
66
70
  &:before,
67
71
  &:after {
68
- @include createAnimationTransition(border);
72
+ @include baseMixin.createAnimationTransition(border);
69
73
  }
70
74
  }
71
75
  .vxe-input--wrapper {
72
76
  .vxe-input {
73
- @include createAnimationTransition(border);
77
+ @include baseMixin.createAnimationTransition(border);
74
78
  }
75
79
  }
76
80
  .vxe-table--expand-btn,
77
81
  .vxe-tree--node-btn {
78
- @include createAnimationTransition(transform);
82
+ @include baseMixin.createAnimationTransition(transform);
79
83
  }
80
84
  .vxe-checkbox,
81
85
  .vxe-radio {
82
86
  > input {
83
87
  &:checked+span {
84
- @include createAnimationTransition(background-color);
88
+ @include baseMixin.createAnimationTransition(background-color);
85
89
  }
86
90
  }
87
91
  }
@@ -1,5 +1,3 @@
1
- /**Variable**/
2
-
3
1
  .vxe-button-group {
4
2
  display: inline-flex;
5
3
  }
@@ -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
  &.align--left {
71
73
  text-align: left;
72
74
  }
@@ -116,23 +118,23 @@ $btnThemeList: (
116
118
  color: $vxe-primary-darken-color;
117
119
  }
118
120
  }
119
- @for $index from 0 to length($btnThemeList) {
120
- $item: nth($btnThemeList, $index + 1);
121
- &.theme--#{map-get($item, name)} {
122
- color: map-get($item, textColor);
121
+ @for $index from 0 to list.length($btnThemeList) {
122
+ $item: list.nth($btnThemeList, $index + 1);
123
+ &.theme--#{map.get($item, name)} {
124
+ color: map.get($item, textColor);
123
125
  &:not(.is--disabled) {
124
126
  &:focus {
125
- color: map-get($item, btnDarkenColor);
127
+ color: map.get($item, btnDarkenColor);
126
128
  }
127
129
  &:hover {
128
- color: map-get($item, btnLightenColor);
130
+ color: map.get($item, btnLightenColor);
129
131
  }
130
132
  &:active {
131
- color: map-get($item, btnDarkenColor);
133
+ color: map.get($item, btnDarkenColor);
132
134
  }
133
135
  }
134
136
  &.is--disabled {
135
- color: map-get($item, btnDisabledColor);
137
+ color: map.get($item, btnDisabledColor);
136
138
  }
137
139
  }
138
140
  }
@@ -169,29 +171,29 @@ $btnThemeList: (
169
171
  background-color: $vxe-button-default-background-color;
170
172
  }
171
173
  }
172
- @for $index from 0 to length($btnThemeList) {
173
- $item: nth($btnThemeList, $index + 1);
174
- $textColor: map-get($item, textColor);
175
- $btnColor: map-get($item, btnColor);
176
- &.theme--#{map-get($item, name)} {
174
+ @for $index from 0 to list.length($btnThemeList) {
175
+ $item: list.nth($btnThemeList, $index + 1);
176
+ $textColor: map.get($item, textColor);
177
+ $btnColor: map.get($item, btnColor);
178
+ &.theme--#{map.get($item, name)} {
177
179
  color: $btnColor;
178
180
  &:not(.is--disabled) {
179
181
  border-color: $textColor;
180
182
  background-color: $textColor;
181
183
  &:hover {
182
184
  color: $btnColor;
183
- background-color: map-get($item, btnLightenColor);
184
- border-color: map-get($item, btnLightenColor);
185
+ background-color: map.get($item, btnLightenColor);
186
+ border-color: map.get($item, btnLightenColor);
185
187
  }
186
188
  &:active {
187
189
  color: $btnColor;
188
- background-color: map-get($item, btnDarkenColor);
189
- border-color: map-get($item, btnDarkenColor);
190
+ background-color: map.get($item, btnDarkenColor);
191
+ border-color: map.get($item, btnDarkenColor);
190
192
  }
191
193
  }
192
194
  &.is--disabled {
193
- border-color: map-get($item, btnDisabledColor);
194
- background-color: map-get($item, btnDisabledColor);
195
+ border-color: map.get($item, btnDisabledColor);
196
+ background-color: map.get($item, btnDisabledColor);
195
197
  }
196
198
  &.is--loading {
197
199
  border-color: $textColor;
@@ -279,10 +281,10 @@ $btnThemeList: (
279
281
  }
280
282
  & > .vxe-button {
281
283
  &.type--button {
282
- @for $index from 0 to length($btnThemeList) {
283
- $item: nth($btnThemeList, $index + 1);
284
- $btnColor: map-get($item, btnColor);
285
- &.theme--#{map-get($item, name)} {
284
+ @for $index from 0 to list.length($btnThemeList) {
285
+ $item: list.nth($btnThemeList, $index + 1);
286
+ $btnColor: map.get($item, btnColor);
287
+ &.theme--#{map.get($item, name)} {
286
288
  color: $btnColor;
287
289
  }
288
290
  }
@@ -294,20 +296,20 @@ $btnThemeList: (
294
296
  color: $vxe-primary-lighten-color;
295
297
  }
296
298
  &.type--text {
297
- @for $index from 0 to length($btnThemeList) {
298
- $item: nth($btnThemeList, $index + 1);
299
- &.theme--#{map-get($item, name)} {
300
- color: map-get($item, btnLightenColor);
299
+ @for $index from 0 to list.length($btnThemeList) {
300
+ $item: list.nth($btnThemeList, $index + 1);
301
+ &.theme--#{map.get($item, name)} {
302
+ color: map.get($item, btnLightenColor);
301
303
  }
302
304
  }
303
305
  }
304
306
  &.type--button {
305
- @for $index from 0 to length($btnThemeList) {
306
- $item: nth($btnThemeList, $index + 1);
307
- &.theme--#{map-get($item, name)} {
308
- color: map-get($item, btnColor);
309
- background-color: map-get($item, btnLightenColor);
310
- border-color: map-get($item, btnLightenColor);
307
+ @for $index from 0 to list.length($btnThemeList) {
308
+ $item: list.nth($btnThemeList, $index + 1);
309
+ &.theme--#{map.get($item, name)} {
310
+ color: map.get($item, btnColor);
311
+ background-color: map.get($item, btnLightenColor);
312
+ border-color: map.get($item, btnLightenColor);
311
313
  }
312
314
  }
313
315
  }
@@ -322,7 +324,7 @@ $btnThemeList: (
322
324
  display: inline-block;
323
325
  font-size: 12px;
324
326
  margin-left: 4px;
325
- @include createAnimationTransition(transform, .2s);
327
+ @include baseMixin.createAnimationTransition(transform, .2s);
326
328
  }
327
329
 
328
330
  .vxe-button--dropdown-panel {
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,6 +1,6 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
- @import './base/common.scss';
1
+ @use './variable.scss' as *;
2
+ @use './helpers/baseMixin.scss';
3
+ @use './base/common.scss';
4
4
 
5
5
  /*checkbox-group*/
6
6
  .vxe-checkbox-group {
@@ -15,7 +15,7 @@
15
15
  vertical-align: middle;
16
16
  white-space: nowrap;
17
17
  line-height: 1;
18
- @include createCheckboxIcon();
18
+ @include baseMixin.createCheckboxIcon();
19
19
  &+.vxe-checkbox {
20
20
  margin-left: 10px;
21
21
  }
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,4 +1,4 @@
1
- /**Variable**/
1
+ @use './variable.scss' as *;
2
2
 
3
3
  :root {
4
4
  /*font*/
@@ -1,2 +1,2 @@
1
- @import './variable.scss';
2
- @import './css-variable.scss';
1
+ @use './variable.scss';
2
+ @use './css-variable.scss';
@@ -1,6 +1,6 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
3
- @import './base/common.scss';
1
+ @use './variable.scss' as *;
2
+ @use './helpers/baseMixin.scss';
3
+ @use './base/common.scss';
4
4
 
5
5
  .vxe-table-custom--option {
6
6
  position: relative;
@@ -153,7 +153,7 @@
153
153
  }
154
154
 
155
155
  .vxe-table-custom--checkbox-option {
156
- @include createCheckboxIcon();
156
+ @include baseMixin.createCheckboxIcon();
157
157
  }
158
158
  .vxe-table-custom--checkbox-option,
159
159
  .vxe-table-custom--sort-option {
@@ -1 +1 @@
1
- @import './modules.scss';
1
+ @use './modules.scss';
package/styles/edit.scss CHANGED
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,5 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './variable.scss' as *;
2
+ @use './helpers/baseMixin.scss';
3
3
 
4
4
  .vxe-export--panel-column > ul {
5
5
  list-style-type: none;
@@ -122,5 +122,5 @@
122
122
  }
123
123
 
124
124
  .vxe-export--panel-column-option {
125
- @include createCheckboxIcon();
125
+ @include baseMixin.createCheckboxIcon();
126
126
  }
@@ -1,5 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './variable.scss' as *;
2
+ @use './helpers/baseMixin.scss';
3
3
 
4
4
  /*筛选*/
5
5
  .vxe-cell--filter {
@@ -109,5 +109,5 @@
109
109
  }
110
110
 
111
111
  .vxe-table--filter-option {
112
- @include createCheckboxIcon();
112
+ @include baseMixin.createCheckboxIcon();
113
113
  }
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/form.scss CHANGED
@@ -1,4 +1,6 @@
1
- /**Variable**/
1
+ @use 'sass:list';
2
+ @use './variable.scss' as *;
3
+
2
4
  %ButtonHover {
3
5
  color: $vxe-primary-lighten-color;
4
6
  border-color: $vxe-primary-lighten-color;
@@ -20,9 +22,9 @@
20
22
  $spans: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
21
23
  37.5%, 41.66667%, 45.83333%, 50%, 54.16667%, 58.33333%, 62.5%, 66.66667%,
22
24
  70.83333%, 75%, 79.16667%, 83.33333%, 87.5%, 91.66667%, 95.83333%, 100%;
23
- @for $index from 0 to length($spans) {
25
+ @for $index from 0 to list.length($spans) {
24
26
  & > .vxe-form--item-col_#{$index + 1} {
25
- width: nth($spans, $index + 1);
27
+ width: list.nth($spans, $index + 1);
26
28
  }
27
29
  }
28
30
  }
package/styles/grid.scss CHANGED
@@ -1,4 +1,4 @@
1
- /**Variable**/
1
+ @use './variable.scss' as *;
2
2
 
3
3
  .vxe-grid {
4
4
  position: relative;
@@ -1 +0,0 @@
1
- /**Variable**/
@@ -1,3 +1,5 @@
1
+ @use '../variable.scss' as *;
2
+
1
3
  @mixin createAnimationTransition ($property, $duration: .1s, $func: ease-in-out) {
2
4
  transition: $property $duration $func;
3
5
  }
package/styles/icon.scss CHANGED
@@ -1,5 +1,7 @@
1
- /**Variable**/
2
- @import './old-icon.scss';
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+ @use './variable.scss' as *;
4
+ @use './old-icon.scss';
3
5
 
4
6
  @font-face {
5
7
  font-family: "vxeiconfont";
@@ -70,10 +72,10 @@ $btnThemeList: (
70
72
  &.roll {
71
73
  animation: rollCircle 1s infinite linear;
72
74
  }
73
- @for $index from 0 to length($btnThemeList) {
74
- $item: nth($btnThemeList, $index + 1);
75
- &.theme--#{map-get($item, name)} {
76
- color: map-get($item, textColor);
75
+ @for $index from 0 to list.length($btnThemeList) {
76
+ $item: list.nth($btnThemeList, $index + 1);
77
+ &.theme--#{map.get($item, name)} {
78
+ color: map.get($item, textColor);
77
79
  }
78
80
  }
79
81
  }
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,6 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use 'sass:list';
2
+ @use './variable.scss' as *;
3
+ @use './helpers/baseMixin.scss';
3
4
 
4
5
  $iconWidth: 1.6em;
5
6
 
@@ -272,7 +273,7 @@ $iconWidth: 1.6em;
272
273
  align-items: center;
273
274
  justify-content: center;
274
275
  .vxe-input--panel-icon {
275
- @include createAnimationTransition(transform, .2s);
276
+ @include baseMixin.createAnimationTransition(transform, .2s);
276
277
  }
277
278
  }
278
279
 
@@ -768,7 +769,7 @@ $iconWidth: 1.6em;
768
769
  $quarterRowHeightList: $vxe-input-date-quarter-row-height-default, $vxe-input-date-quarter-row-height-medium, $vxe-input-date-quarter-row-height-small, $vxe-input-date-quarter-row-height-mini;
769
770
  $titleRowHeightList: $vxe-input-date-title-height-default, $vxe-input-date-title-height-medium, $vxe-input-date-title-height-small, $vxe-input-date-title-height-mini;
770
771
 
771
- font-size: nth($fontSizeList, $sizeIndex);
772
+ font-size: list.nth($fontSizeList, $sizeIndex);
772
773
  .vxe-input--panel-wrapper {
773
774
  max-height: 400px - $sizeIndex * 20;
774
775
  }
@@ -788,25 +789,25 @@ $iconWidth: 1.6em;
788
789
  &.type--year {
789
790
  .vxe-input--panel-wrapper {
790
791
  $widthList: 336px, 336px, 312px, 288px;
791
- width: nth($widthList, $sizeIndex);
792
+ width: list.nth($widthList, $sizeIndex);
792
793
  }
793
794
  }
794
795
  &.type--week {
795
796
  .vxe-input--panel-wrapper {
796
797
  $widthList: 380px, 380px, 354px, 326px;
797
- width: nth($widthList, $sizeIndex);
798
+ width: list.nth($widthList, $sizeIndex);
798
799
  }
799
800
  }
800
801
  &.type--time {
801
802
  .vxe-input--panel-wrapper {
802
803
  $widthList: 170px, 168px, 154px, 146px;
803
- width: nth($widthList, $sizeIndex);
804
+ width: list.nth($widthList, $sizeIndex);
804
805
  }
805
806
  }
806
807
  &.type--datetime {
807
808
  .vxe-input--panel-left-wrapper {
808
809
  $widthList: 336px, 336px, 312px, 288px;
809
- width: nth($widthList, $sizeIndex);
810
+ width: list.nth($widthList, $sizeIndex);
810
811
  }
811
812
  .vxe-input--panel-left-wrapper,
812
813
  .vxe-input--panel-right-wrapper {
@@ -844,20 +845,20 @@ $iconWidth: 1.6em;
844
845
  .vxe-input--time-picker-header,
845
846
  .vxe-input--date-picker-header {
846
847
  $paddingBottomList: 8px, 7px, 6px, 5px;
847
- padding-bottom: nth($paddingBottomList, $sizeIndex);
848
+ padding-bottom: list.nth($paddingBottomList, $sizeIndex);
848
849
  }
849
850
  .vxe-input--date-picker-body table,
850
851
  .vxe-input--time-picker-body {
851
- height: nth($timeWeekRowHeightList, $sizeIndex) * 6 + nth($titleRowHeightList, $sizeIndex);
852
+ height: list.nth($timeWeekRowHeightList, $sizeIndex) * 6 + list.nth($titleRowHeightList, $sizeIndex);
852
853
  }
853
854
  .vxe-input--time-picker-body {
854
855
  $ulWidthList: 48px, 48px, 44px, 42px;
855
856
  & > ul {
856
- width: nth($ulWidthList, $sizeIndex);
857
+ width: list.nth($ulWidthList, $sizeIndex);
857
858
  &:before,
858
859
  &:after {
859
860
  $heightList: 120px, 120px, 110px, 100px;
860
- height: nth($heightList, $sizeIndex);
861
+ height: list.nth($heightList, $sizeIndex);
861
862
  }
862
863
  & > li {
863
864
  height: 26px;
@@ -865,32 +866,32 @@ $iconWidth: 1.6em;
865
866
  }
866
867
  }
867
868
  .vxe-input--time-picker-minute-list {
868
- left: nth($ulWidthList, $sizeIndex);
869
+ left: list.nth($ulWidthList, $sizeIndex);
869
870
  }
870
871
  .vxe-input--time-picker-second-list {
871
- left: nth($ulWidthList, $sizeIndex) * 2;
872
+ left: list.nth($ulWidthList, $sizeIndex) * 2;
872
873
  }
873
874
  }
874
875
  .vxe-input--date-day-view,
875
876
  .vxe-input--date-week-view {
876
877
  td {
877
- height: nth($timeWeekRowHeightList, $sizeIndex);
878
+ height: list.nth($timeWeekRowHeightList, $sizeIndex);
878
879
  }
879
880
  }
880
881
  .vxe-input--date-quarter-view {
881
882
  td {
882
- height: nth($quarterRowHeightList, $sizeIndex);
883
+ height: list.nth($quarterRowHeightList, $sizeIndex);
883
884
  }
884
885
  }
885
886
  .vxe-input--date-month-view,
886
887
  .vxe-input--date-year-view {
887
888
  td {
888
- height: nth($monthYearRowHeightList, $sizeIndex);
889
+ height: list.nth($monthYearRowHeightList, $sizeIndex);
889
890
  }
890
891
  }
891
892
  .vxe-input--date-picker-body {
892
893
  th {
893
- height: nth($titleRowHeightList, $sizeIndex);
894
+ height: list.nth($titleRowHeightList, $sizeIndex);
894
895
  }
895
896
  }
896
897
  .vxe-input--time-picker-confirm,
@@ -899,7 +900,7 @@ $iconWidth: 1.6em;
899
900
  padding: 0 10px - $sizeIndex;
900
901
  }
901
902
  .vxe-input--date-label {
902
- line-height: nth($fontSizeList, $sizeIndex) + 1px;
903
+ line-height: list.nth($fontSizeList, $sizeIndex) + 1px;
903
904
  }
904
905
  }
905
906
 
@@ -1 +0,0 @@
1
- /**Variable**/
package/styles/list.scss CHANGED
@@ -1,4 +1,4 @@
1
- /**Variable**/
1
+ @use './variable.scss' as *;
2
2
 
3
3
  .vxe-list {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- /**Variable**/
1
+ @use './variable.scss' as *;
2
2
 
3
3
  /*加载中*/
4
4
  .vxe-loading {
package/styles/menu.scss CHANGED
@@ -1,4 +1,4 @@
1
- /**Variable**/
1
+ @use './variable.scss' as *;
2
2
 
3
3
  /*快捷菜单*/
4
4
  .vxe-table--context-menu-wrapper {
package/styles/modal.scss CHANGED
@@ -1,5 +1,5 @@
1
- /**Variable**/
2
- @import './helpers/mixin.scss';
1
+ @use './variable.scss' as *;
2
+ @use './helpers/baseMixin.scss';
3
3
 
4
4
  .vxe-modal--wrapper {
5
5
  display: none;
@@ -83,13 +83,13 @@
83
83
  &.is--animat {
84
84
  &.is--mask {
85
85
  &:before {
86
- @include createAnimationTransition(background-color, .2s);
86
+ @include baseMixin.createAnimationTransition(background-color, .2s);
87
87
  }
88
88
  }
89
89
  &.type--message {
90
90
  .vxe-modal--box {
91
91
  &:not(.is--drag) {
92
- @include createAnimationTransition(all, .4s, ease-out);
92
+ @include baseMixin.createAnimationTransition(all, .4s, ease-out);
93
93
  }
94
94
  }
95
95
  }