vxe-table 4.2.8 → 4.3.0-beta.2

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 (227) hide show
  1. package/es/button/src/button.js +14 -14
  2. package/es/button/style.css +1 -58
  3. package/es/checkbox/src/checkbox.js +7 -4
  4. package/es/checkbox/style.css +37 -58
  5. package/es/edit/src/hook.js +29 -13
  6. package/es/export/src/export-panel.js +10 -20
  7. package/es/export/src/hook.js +45 -45
  8. package/es/export/src/import-panel.js +2 -2
  9. package/es/export/src/util.js +7 -7
  10. package/es/export/style.css +27 -82
  11. package/es/filter/src/hook.js +5 -5
  12. package/es/filter/src/panel.js +9 -17
  13. package/es/filter/style.css +27 -79
  14. package/es/footer/src/footer.js +15 -15
  15. package/es/form/src/form-config-item.js +8 -7
  16. package/es/form/src/form-item.js +8 -7
  17. package/es/form/src/form.js +8 -6
  18. package/es/form/style.css +0 -3
  19. package/es/grid/src/grid.js +18 -13
  20. package/es/grid/style.css +1 -1
  21. package/es/header/src/header.js +18 -18
  22. package/es/header/style.css +0 -95
  23. package/es/icon/style.css +379 -0
  24. package/es/input/src/input.js +26 -26
  25. package/es/input/style.css +13 -4
  26. package/es/keyboard/src/hook.js +7 -7
  27. package/es/list/src/list.js +5 -5
  28. package/es/loading/src/loading.js +1 -1
  29. package/es/menu/src/hooks.js +9 -9
  30. package/es/menu/src/panel.js +2 -2
  31. package/es/modal/src/modal.js +52 -51
  32. package/es/modal/style.css +2 -3
  33. package/es/pager/src/pager.js +3 -3
  34. package/es/pager/style.css +4 -2
  35. package/es/pulldown/src/pulldown.js +7 -7
  36. package/es/radio/src/button.js +1 -1
  37. package/es/radio/src/radio.js +5 -4
  38. package/es/radio/style.css +32 -55
  39. package/es/select/src/select.js +13 -12
  40. package/es/select/style.css +1 -0
  41. package/es/style.css +1 -1
  42. package/es/style.min.css +1 -1
  43. package/es/switch/src/switch.js +1 -1
  44. package/es/table/src/body.js +38 -34
  45. package/es/table/src/cell.js +16 -28
  46. package/es/table/src/columnInfo.js +4 -4
  47. package/es/table/src/table.js +65 -60
  48. package/es/table/src/util.js +2 -2
  49. package/es/table/style.css +160 -139
  50. package/es/textarea/src/textarea.js +5 -5
  51. package/es/toolbar/src/toolbar.js +17 -24
  52. package/es/toolbar/style.css +28 -80
  53. package/es/tools/dom.js +2 -2
  54. package/es/tools/log.js +1 -1
  55. package/es/tools/vn.js +7 -0
  56. package/es/tooltip/src/tooltip.js +22 -10
  57. package/es/v-x-e-table/index.js +1 -1
  58. package/es/v-x-e-table/src/conf.js +43 -38
  59. package/es/v-x-e-table/src/interceptor.js +1 -1
  60. package/es/v-x-e-table/src/renderer.js +19 -15
  61. package/es/v-x-e-table/style.css +405 -2
  62. package/lib/button/src/button.js +10 -10
  63. package/lib/button/src/button.min.js +1 -1
  64. package/lib/button/style/style.css +1 -58
  65. package/lib/button/style/style.min.css +1 -1
  66. package/lib/checkbox/src/checkbox.js +5 -3
  67. package/lib/checkbox/src/checkbox.min.js +1 -1
  68. package/lib/checkbox/style/style.css +37 -58
  69. package/lib/checkbox/style/style.min.css +1 -1
  70. package/lib/edit/src/hook.js +14 -13
  71. package/lib/edit/src/hook.min.js +1 -1
  72. package/lib/export/src/export-panel.js +11 -17
  73. package/lib/export/src/export-panel.min.js +1 -1
  74. package/lib/export/src/hook.js +50 -50
  75. package/lib/export/src/hook.min.js +1 -1
  76. package/lib/export/src/import-panel.js +3 -3
  77. package/lib/export/src/import-panel.min.js +1 -1
  78. package/lib/export/src/util.js +4 -4
  79. package/lib/export/src/util.min.js +1 -1
  80. package/lib/export/style/style.css +27 -82
  81. package/lib/export/style/style.min.css +1 -1
  82. package/lib/filter/src/hook.js +5 -5
  83. package/lib/filter/src/hook.min.js +1 -1
  84. package/lib/filter/src/panel.js +11 -15
  85. package/lib/filter/src/panel.min.js +1 -1
  86. package/lib/filter/style/style.css +27 -79
  87. package/lib/filter/style/style.min.css +1 -1
  88. package/lib/footer/src/footer.js +14 -14
  89. package/lib/footer/src/footer.min.js +1 -1
  90. package/lib/form/src/form-config-item.js +9 -7
  91. package/lib/form/src/form-config-item.min.js +1 -1
  92. package/lib/form/src/form-item.js +9 -7
  93. package/lib/form/src/form-item.min.js +1 -1
  94. package/lib/form/src/form.js +9 -6
  95. package/lib/form/src/form.min.js +1 -1
  96. package/lib/form/style/style.css +0 -3
  97. package/lib/form/style/style.min.css +1 -1
  98. package/lib/grid/src/grid.js +17 -13
  99. package/lib/grid/src/grid.min.js +1 -1
  100. package/lib/grid/style/style.css +1 -1
  101. package/lib/grid/style/style.min.css +1 -1
  102. package/lib/header/src/header.js +17 -17
  103. package/lib/header/src/header.min.js +1 -1
  104. package/lib/header/style/style.css +0 -95
  105. package/lib/header/style/style.min.css +0 -1
  106. package/lib/icon/style/style.css +379 -0
  107. package/lib/icon/style/style.min.css +1 -1
  108. package/lib/index.umd.js +163 -159
  109. package/lib/index.umd.min.js +1 -1
  110. package/lib/input/src/input.js +23 -23
  111. package/lib/input/src/input.min.js +1 -1
  112. package/lib/input/style/style.css +13 -4
  113. package/lib/input/style/style.min.css +1 -1
  114. package/lib/keyboard/src/hook.js +7 -7
  115. package/lib/keyboard/src/hook.min.js +1 -1
  116. package/lib/list/src/list.js +5 -5
  117. package/lib/list/src/list.min.js +1 -1
  118. package/lib/loading/src/loading.js +1 -1
  119. package/lib/loading/src/loading.min.js +1 -1
  120. package/lib/menu/src/hooks.js +9 -9
  121. package/lib/menu/src/hooks.min.js +1 -1
  122. package/lib/menu/src/panel.js +2 -2
  123. package/lib/menu/src/panel.min.js +1 -1
  124. package/lib/modal/src/modal.js +55 -53
  125. package/lib/modal/src/modal.min.js +1 -1
  126. package/lib/modal/style/style.css +2 -3
  127. package/lib/modal/style/style.min.css +1 -1
  128. package/lib/pager/src/pager.js +2 -2
  129. package/lib/pager/src/pager.min.js +1 -1
  130. package/lib/pager/style/style.css +4 -2
  131. package/lib/pager/style/style.min.css +1 -1
  132. package/lib/pulldown/src/pulldown.js +7 -7
  133. package/lib/pulldown/src/pulldown.min.js +1 -1
  134. package/lib/radio/src/button.js +1 -1
  135. package/lib/radio/src/button.min.js +1 -1
  136. package/lib/radio/src/radio.js +4 -4
  137. package/lib/radio/src/radio.min.js +1 -1
  138. package/lib/radio/style/style.css +32 -55
  139. package/lib/radio/style/style.min.css +1 -1
  140. package/lib/select/src/select.js +14 -12
  141. package/lib/select/src/select.min.js +1 -1
  142. package/lib/select/style/style.css +1 -0
  143. package/lib/select/style/style.min.css +1 -1
  144. package/lib/style.css +1 -1
  145. package/lib/style.min.css +1 -1
  146. package/lib/switch/src/switch.js +1 -1
  147. package/lib/switch/src/switch.min.js +1 -1
  148. package/lib/table/src/body.js +36 -34
  149. package/lib/table/src/body.min.js +1 -1
  150. package/lib/table/src/cell.js +21 -29
  151. package/lib/table/src/cell.min.js +1 -1
  152. package/lib/table/src/columnInfo.js +4 -4
  153. package/lib/table/src/columnInfo.min.js +1 -1
  154. package/lib/table/src/table.js +65 -61
  155. package/lib/table/src/table.min.js +1 -1
  156. package/lib/table/src/util.js +2 -2
  157. package/lib/table/src/util.min.js +1 -1
  158. package/lib/table/style/style.css +160 -139
  159. package/lib/table/style/style.min.css +1 -1
  160. package/lib/textarea/src/textarea.js +6 -6
  161. package/lib/textarea/src/textarea.min.js +1 -1
  162. package/lib/toolbar/src/toolbar.js +20 -22
  163. package/lib/toolbar/src/toolbar.min.js +1 -1
  164. package/lib/toolbar/style/style.css +28 -80
  165. package/lib/toolbar/style/style.min.css +1 -1
  166. package/lib/tools/dom.js +2 -2
  167. package/lib/tools/dom.min.js +1 -1
  168. package/lib/tools/log.js +1 -1
  169. package/lib/tools/log.min.js +1 -1
  170. package/lib/tools/vn.js +13 -0
  171. package/lib/tools/vn.min.js +1 -1
  172. package/lib/tooltip/src/tooltip.js +22 -8
  173. package/lib/tooltip/src/tooltip.min.js +1 -1
  174. package/lib/v-x-e-table/index.js +1 -1
  175. package/lib/v-x-e-table/index.min.js +1 -1
  176. package/lib/v-x-e-table/src/conf.js +43 -38
  177. package/lib/v-x-e-table/src/conf.min.js +1 -1
  178. package/lib/v-x-e-table/src/interceptor.js +1 -1
  179. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  180. package/lib/v-x-e-table/src/renderer.js +18 -16
  181. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  182. package/lib/v-x-e-table/style/style.css +405 -2
  183. package/lib/v-x-e-table/style/style.min.css +1 -1
  184. package/package.json +6 -6
  185. package/packages/checkbox/src/checkbox.ts +7 -4
  186. package/packages/edit/src/hook.ts +18 -6
  187. package/packages/export/src/export-panel.ts +9 -19
  188. package/packages/filter/src/panel.ts +8 -16
  189. package/packages/form/src/form-config-item.ts +4 -3
  190. package/packages/form/src/form-item.ts +4 -3
  191. package/packages/form/src/form.ts +6 -4
  192. package/packages/grid/src/grid.ts +2 -1
  193. package/packages/input/src/input.ts +3 -3
  194. package/packages/modal/src/modal.ts +5 -4
  195. package/packages/radio/src/radio.ts +4 -3
  196. package/packages/select/src/select.ts +2 -1
  197. package/packages/table/src/cell.ts +18 -35
  198. package/packages/table/src/table.ts +11 -10
  199. package/packages/toolbar/src/toolbar.ts +14 -21
  200. package/packages/tools/vn.ts +10 -0
  201. package/packages/tooltip/src/tooltip.ts +8 -4
  202. package/packages/v-x-e-table/src/conf.ts +43 -38
  203. package/styles/base/checked.scss +44 -148
  204. package/styles/button.scss +1 -43
  205. package/styles/checkbox.scss +6 -65
  206. package/styles/export.scss +2 -9
  207. package/styles/filter.scss +2 -6
  208. package/styles/form.scss +0 -3
  209. package/styles/header.scss +0 -134
  210. package/styles/icon.scss +509 -713
  211. package/styles/input.scss +8 -0
  212. package/styles/modal.scss +0 -1
  213. package/styles/old-icon.scss +713 -0
  214. package/styles/pager.scss +2 -0
  215. package/styles/radio.scss +9 -77
  216. package/styles/select.scss +1 -0
  217. package/styles/table.scss +144 -21
  218. package/styles/toolbar.scss +2 -6
  219. package/styles/variable.scss +5 -5
  220. package/types/all.d.ts +6 -0
  221. package/types/column.d.ts +11 -11
  222. package/types/component.d.ts +3 -1
  223. package/types/form-item.d.ts +1 -0
  224. package/types/form.d.ts +6 -2
  225. package/types/grid.d.ts +4 -4
  226. package/types/table.d.ts +2 -2
  227. package/types/v-x-e-table/renderer.d.ts +3 -2
@@ -0,0 +1,713 @@
1
+ @import './variable.scss';
2
+ @import './helpers/mixin.scss';
3
+
4
+ [class*="vxe-icon--"] {
5
+ display: inline-block;
6
+ vertical-align: middle;
7
+ position: relative;
8
+ direction: ltr;
9
+ font-family: $vxe-icon-font-family;
10
+ font-weight: normal;
11
+ user-select: none;
12
+ &.rotate45 {
13
+ transform: rotate(45deg);
14
+ }
15
+ &.rotate90 {
16
+ transform: rotate(90deg);
17
+ }
18
+ &.rotate180 {
19
+ transform: rotate(180deg);
20
+ }
21
+ }
22
+
23
+ %DefaultWidthHeight {
24
+ width: 1em;
25
+ height: 1em;
26
+ line-height: 1em;
27
+ }
28
+
29
+ %PseudoClass {
30
+ content: "";
31
+ position: absolute;
32
+ }
33
+
34
+ .vxe-icon--square {
35
+ @extend %DefaultWidthHeight;
36
+ &:before {
37
+ @extend %PseudoClass;
38
+ left: 0.05em;
39
+ top: 0.05em;
40
+ width: 0.9em;
41
+ height: 0.9em;
42
+ border-width: 0.1em;
43
+ border-style: solid;
44
+ border-color: inherit;
45
+ }
46
+ }
47
+
48
+ .vxe-icon--zoomin {
49
+ @extend %DefaultWidthHeight;
50
+ border-width: 0.1em;
51
+ border-style: solid;
52
+ border-color: inherit;
53
+ background-color: $vxe-icon-background-color;
54
+ &:before,
55
+ &:after {
56
+ @extend %PseudoClass;
57
+ background-color: inherit;
58
+ }
59
+ &:before {
60
+ left: -0.1em;
61
+ top: 0.2em;
62
+ width: 1.1em;
63
+ height: 0.4em;
64
+ }
65
+ &:after {
66
+ top: -0.1em;
67
+ left: 0.2em;
68
+ width: 0.4em;
69
+ height: 1.1em;
70
+ }
71
+ }
72
+
73
+ .vxe-icon--zoomout {
74
+ @extend %DefaultWidthHeight;
75
+ position: relative;
76
+ &:before {
77
+ @extend %PseudoClass;
78
+ right: 0;
79
+ top: 0;
80
+ width: 0.7em;
81
+ height: 0.7em;
82
+ border-width: 0.1em;
83
+ border-style: solid;
84
+ border-color: inherit;
85
+ }
86
+ &:after {
87
+ @extend %PseudoClass;
88
+ left: 0.1em;
89
+ bottom: 0.1em;
90
+ width: 0.7em;
91
+ height: 0.7em;
92
+ border-width: 0.1em;
93
+ border-style: solid;
94
+ border-color: inherit;
95
+ background-color: $vxe-icon-background-color;
96
+ }
97
+ }
98
+
99
+ .vxe-icon--menu {
100
+ $yOffset: 0.36em;
101
+ @extend %DefaultWidthHeight;
102
+ &:before {
103
+ content: "";
104
+ display: inline-block;
105
+ width: 0.22em;
106
+ height: 0.22em;
107
+ box-shadow: 0 -#{$yOffset} 0, -#{$yOffset} -#{$yOffset} 0, #{$yOffset} -#{$yOffset} 0, 0 0 0 1em inset, -#{$yOffset} 0 0, #{$yOffset} 0 0, 0 #{$yOffset} 0, -#{$yOffset} #{$yOffset} 0, #{$yOffset} #{$yOffset} 0;
108
+ margin: 0.26em;
109
+ }
110
+ }
111
+
112
+ %Caret {
113
+ @extend %DefaultWidthHeight;
114
+ &:before {
115
+ @extend %PseudoClass;
116
+ border-width: 0.4em;
117
+ border-style: solid;
118
+ border-color: transparent;
119
+ }
120
+ }
121
+
122
+ .vxe-icon--caret-top {
123
+ @extend %Caret;
124
+ &:before {
125
+ left: 0.1em;
126
+ bottom: 0.3em;
127
+ border-bottom-color: inherit;
128
+ }
129
+ }
130
+
131
+ .vxe-icon--caret-bottom {
132
+ @extend %Caret;
133
+ &:before {
134
+ left: 0.1em;
135
+ top: 0.3em;
136
+ border-top-color: inherit;
137
+ }
138
+ }
139
+
140
+ .vxe-icon--caret-left {
141
+ @extend %Caret;
142
+ &:before {
143
+ right: 0.3em;
144
+ bottom: 0.1em;
145
+ border-right-color: inherit;
146
+ }
147
+ }
148
+
149
+ .vxe-icon--caret-right {
150
+ @extend %Caret;
151
+ &:before {
152
+ left: 0.3em;
153
+ bottom: 0.1em;
154
+ border-left-color: inherit;
155
+ }
156
+ }
157
+
158
+ %BeforeArrowTop {
159
+ &:before {
160
+ @extend %PseudoClass;
161
+ top: 0.32em;
162
+ left: 0.12em;
163
+ width: 0.6em;
164
+ height: 0.6em;
165
+ border-width: 0.1em;
166
+ border-style: solid;
167
+ border-top-color: inherit;
168
+ border-right-color: inherit;
169
+ border-bottom-color: transparent;
170
+ border-left-color: transparent;
171
+ }
172
+ }
173
+
174
+ .vxe-icon--arrow-top {
175
+ @extend %DefaultWidthHeight;
176
+ &:before {
177
+ @extend %PseudoClass;
178
+ top: 0.4em;
179
+ left: 0.14em;
180
+ width: 0.7em;
181
+ height: 0.7em;
182
+ border-width: 0.15em;
183
+ border-style: solid;
184
+ border-top-color: inherit;
185
+ border-right-color: inherit;
186
+ border-bottom-color: transparent;
187
+ border-left-color: transparent;
188
+ border-radius: 0.15em;
189
+ transform: rotate(-45deg);
190
+ }
191
+ }
192
+
193
+ .vxe-icon--arrow-bottom {
194
+ @extend .vxe-icon--arrow-top;
195
+ &:before {
196
+ top: 0;
197
+ left: 0.14em;
198
+ transform: rotate(135deg);
199
+ }
200
+ }
201
+
202
+ .vxe-icon--arrow-left {
203
+ @extend .vxe-icon--arrow-top;
204
+ &:before {
205
+ top: 0.18em;
206
+ left: 0.35em;
207
+ transform: rotate(-135deg);
208
+ }
209
+ }
210
+
211
+ .vxe-icon--arrow-right {
212
+ @extend .vxe-icon--arrow-top;
213
+ &:before {
214
+ top: 0.18em;
215
+ left: 0;
216
+ transform: rotate(45deg);
217
+ }
218
+ }
219
+
220
+ .vxe-icon--d-arrow-left {
221
+ @extend %DefaultWidthHeight;
222
+ &:before {
223
+ left: 0.15em;
224
+ }
225
+ &:after {
226
+ left: 0.58em;
227
+ }
228
+ &:before,
229
+ &:after {
230
+ @extend %PseudoClass;
231
+ top: 0.18em;
232
+ width: 0.7em;
233
+ height: 0.7em;
234
+ border-width: 0.15em;
235
+ border-style: solid;
236
+ border-top-color: inherit;
237
+ border-right-color: transparent;
238
+ border-bottom-color: transparent;
239
+ border-left-color: inherit;
240
+ border-radius: 0.15em;
241
+ transform: rotate(-45deg);
242
+ }
243
+ }
244
+
245
+ .vxe-icon--d-arrow-right {
246
+ @extend .vxe-icon--d-arrow-left;
247
+ &:before,
248
+ &:after {
249
+ transform: rotate(135deg);
250
+ }
251
+ &:before {
252
+ left: -0.25em;
253
+ }
254
+ &:after {
255
+ left: 0.18em;
256
+ }
257
+ }
258
+
259
+ .vxe-icon--funnel {
260
+ @extend %DefaultWidthHeight;
261
+ &:before {
262
+ @extend %PseudoClass;
263
+ top: 0.05em;
264
+ left: 0;
265
+ border-width: 0.5em;
266
+ border-style: solid;
267
+ border-top-color: inherit;
268
+ border-right-color: transparent;
269
+ border-bottom-color: transparent;
270
+ border-left-color: transparent;
271
+ }
272
+ &:after {
273
+ @extend %PseudoClass;
274
+ left: 0.41em;
275
+ top: 0.4em;
276
+ width: 0;
277
+ height: 0.5em;
278
+ border-width: 0 0.2em 0 0;
279
+ border-style: solid;
280
+ border-right-color: inherit;
281
+ }
282
+ }
283
+
284
+ .vxe-icon--edit-outline {
285
+ @extend %DefaultWidthHeight;
286
+ &:before {
287
+ @extend %PseudoClass;
288
+ height: 0.84em;
289
+ width: 0.86em;
290
+ top: 0.1em;
291
+ left: 0.02em;
292
+ border-radius: 0.2em;
293
+ border-width: 0.1em;
294
+ border-style: solid;
295
+ border-color: inherit;
296
+ }
297
+ &:after {
298
+ @extend %PseudoClass;
299
+ left: 0.6em;
300
+ bottom: 0.2em;
301
+ width: 0;
302
+ height: 0.8em;
303
+ border-radius: 0 0 80% 80%;
304
+ border-width: 0 0 0 0.22em;
305
+ border-style: solid;
306
+ border-color: inherit;
307
+ transform: rotate(45deg);
308
+ }
309
+ }
310
+
311
+ .vxe-icon--more {
312
+ @extend %DefaultWidthHeight;
313
+ &:before {
314
+ @extend %PseudoClass;
315
+ content: "...";
316
+ top: 0;
317
+ left: 0.1em;
318
+ line-height: 0.5em;
319
+ font-weight: 700;
320
+ }
321
+ }
322
+
323
+ .vxe-icon--plus {
324
+ @extend %DefaultWidthHeight;
325
+ &:before {
326
+ @extend %PseudoClass;
327
+ content: "+";
328
+ left: -0.12em;
329
+ bottom: -0.1em;
330
+ line-height: 1em;
331
+ font-size: 1.6em;
332
+ }
333
+ }
334
+
335
+ .vxe-icon--check {
336
+ @extend %DefaultWidthHeight;
337
+ &:before {
338
+ @extend %PseudoClass;
339
+ left: 0.25em;
340
+ bottom: 0.2em;
341
+ width: 0.5em;
342
+ height: 0.9em;
343
+ border-width: 0.15em;
344
+ border-style: solid;
345
+ border-top-color: transparent;
346
+ border-right-color: inherit;
347
+ border-bottom-color: inherit;
348
+ border-radius: 0.15em;
349
+ border-left-color: transparent;
350
+ transform: rotate(45deg);
351
+ }
352
+ }
353
+
354
+ .vxe-icon--close {
355
+ @extend %DefaultWidthHeight;
356
+ &:before {
357
+ @extend %PseudoClass;
358
+ content: "+";
359
+ left: -0.1em;
360
+ bottom: -0.16em;
361
+ line-height: 1em;
362
+ font-size: 1.8em;
363
+ transform: rotate(45deg);
364
+ }
365
+ }
366
+
367
+ .vxe-icon--minus {
368
+ @extend %DefaultWidthHeight;
369
+ &:before {
370
+ @extend %PseudoClass;
371
+ content: "\2500";
372
+ left: 0;
373
+ bottom: 0;
374
+ width: 100%;
375
+ text-align: center;
376
+ line-height: 0.9em;
377
+ font-size: 1.2em;
378
+ }
379
+ }
380
+
381
+ .vxe-icon--refresh {
382
+ @extend %DefaultWidthHeight;
383
+ border-width: 0.1em;
384
+ border-style: solid;
385
+ border-radius: 50%;
386
+ border-right-color: transparent !important;
387
+ border-left-color: transparent !important;
388
+ &:before {
389
+ left: 50%;
390
+ top: 0;
391
+ transform: translateX(50%) rotate(-45deg);
392
+ }
393
+ &:after {
394
+ right: 50%;
395
+ bottom: 0;
396
+ transform: translateX(-50%) rotate(135deg);
397
+ }
398
+ &:before,
399
+ &:after {
400
+ @extend %PseudoClass;
401
+ width: 0;
402
+ height: 0;
403
+ border-width: 0.25em;
404
+ border-style: solid;
405
+ border-right-color: transparent;
406
+ border-bottom-color: transparent;
407
+ border-left-color: transparent;
408
+ }
409
+ &.roll {
410
+ animation: rollCircle 1s infinite linear;
411
+ }
412
+ }
413
+
414
+ @keyframes rollCircle {
415
+ 0% {
416
+ transform: rotate(0deg);
417
+ }
418
+ 100% {
419
+ transform: rotate(360deg);
420
+ }
421
+ }
422
+
423
+ %BeforeSolidRadius {
424
+ content: "";
425
+ border-radius: 50%;
426
+ border-width: 0.5em;
427
+ border-style: solid;
428
+ border-color: inherit;
429
+ position: absolute;
430
+ top: 0;
431
+ left: 0;
432
+ transform: scale(0.95);
433
+ }
434
+
435
+ %QuestionAndInfoWarning {
436
+ &:after {
437
+ @extend %PseudoClass;
438
+ left: 0;
439
+ bottom: 0;
440
+ width: 100%;
441
+ text-align: center;
442
+ color: $vxe-icon-background-color;
443
+ transform: rotate(-10deg) scale(0.75);
444
+ }
445
+ }
446
+
447
+ .vxe-icon--question {
448
+ @extend %DefaultWidthHeight, %QuestionAndInfoWarning;
449
+ &:before {
450
+ @extend %BeforeSolidRadius;
451
+ }
452
+ &:after {
453
+ content: "\3F";
454
+ }
455
+ }
456
+
457
+ .vxe-icon--info {
458
+ @extend %DefaultWidthHeight, %QuestionAndInfoWarning;
459
+ &:before {
460
+ @extend %BeforeSolidRadius;
461
+ }
462
+ &:after {
463
+ content: "\A1";
464
+ }
465
+ }
466
+
467
+ .vxe-icon--warning {
468
+ @extend %DefaultWidthHeight, %QuestionAndInfoWarning;
469
+ &:before {
470
+ @extend %BeforeSolidRadius;
471
+ }
472
+ &:after {
473
+ content: "\21";
474
+ }
475
+ }
476
+
477
+ .vxe-icon--success {
478
+ @extend %DefaultWidthHeight;
479
+ &:before {
480
+ @extend %BeforeSolidRadius;
481
+ }
482
+ &:after {
483
+ @extend %PseudoClass;
484
+ content: "\2713";
485
+ left: 0.25em;
486
+ bottom: 0;
487
+ color: $vxe-icon-background-color;
488
+ font-size: 0.65em;
489
+ }
490
+ }
491
+
492
+ .vxe-icon--circle-plus {
493
+ @extend %DefaultWidthHeight;
494
+ &:before {
495
+ @extend %BeforeSolidRadius;
496
+ }
497
+ &:after {
498
+ @extend %PseudoClass;
499
+ content: "+";
500
+ left: 0;
501
+ bottom: 0;
502
+ width: 100%;
503
+ text-align: center;
504
+ color: $vxe-icon-background-color;
505
+ line-height: 1.4em;
506
+ font-size: 0.8em;
507
+ }
508
+ }
509
+
510
+ .vxe-icon--remove {
511
+ @extend %DefaultWidthHeight;
512
+ &:before {
513
+ @extend %BeforeSolidRadius;
514
+ }
515
+ &:after {
516
+ @extend %PseudoClass;
517
+ content: "\2500";
518
+ left: 0;
519
+ bottom: 0;
520
+ width: 100%;
521
+ text-align: center;
522
+ line-height: 1.5em;
523
+ color: $vxe-icon-background-color;
524
+ font-size: 0.7em;
525
+ }
526
+ }
527
+
528
+ .vxe-icon--error {
529
+ @extend %DefaultWidthHeight;
530
+ &:before {
531
+ @extend %BeforeSolidRadius;
532
+ }
533
+ &:after {
534
+ @extend %PseudoClass;
535
+ content: "\D7";
536
+ left: 0;
537
+ bottom: 0;
538
+ width: 100%;
539
+ line-height: 1.4em;
540
+ text-align: center;
541
+ color: $vxe-icon-background-color;
542
+ font-size: 0.8em;
543
+ }
544
+ }
545
+
546
+ .vxe-icon--upload,
547
+ .vxe-icon--download {
548
+ @extend %DefaultWidthHeight;
549
+ overflow: hidden;
550
+ &:before {
551
+ @extend %PseudoClass;
552
+ left: 0;
553
+ width: 1em;
554
+ border-width: 0;
555
+ border-style: solid;
556
+ border-color: inherit;
557
+ }
558
+ &:after {
559
+ @extend %PseudoClass;
560
+ width: 100%;
561
+ text-align: center;
562
+ font-size: 2em;
563
+ }
564
+ }
565
+
566
+ .vxe-icon--upload {
567
+ &:before {
568
+ top: 0.1em;
569
+ border-top-width: 0.1em;
570
+ }
571
+ &:after {
572
+ content: "\2191";
573
+ left: 0;
574
+ top: 0.15em;
575
+ }
576
+ }
577
+
578
+ .vxe-icon--download {
579
+ &:before {
580
+ bottom: 0.05em;
581
+ border-bottom-width: 0.1em;
582
+ }
583
+ &:after {
584
+ content: "\2191";
585
+ left: 0;
586
+ bottom: 0.15em;
587
+ transform: rotate(180deg);
588
+ }
589
+ }
590
+
591
+ .vxe-icon--eye,
592
+ .vxe-icon--eye-slash {
593
+ @extend %DefaultWidthHeight;
594
+ &:before {
595
+ @extend %PseudoClass;
596
+ content: "\25CF";
597
+ top: 0.16em;
598
+ left: 0;
599
+ width: 1em;
600
+ height: 0.68em;
601
+ line-height: 0.25em;
602
+ border-radius: 50%;
603
+ border-width: 0.1em;
604
+ border-style: solid;
605
+ border-color: inherit;
606
+ text-align: center;
607
+ }
608
+ }
609
+
610
+ .vxe-icon--eye-slash {
611
+ &:after {
612
+ @extend %PseudoClass;
613
+ top: -0.1em;
614
+ left: 0.45em;
615
+ width: 0;
616
+ height: 1.2em;
617
+ border-width: 0;
618
+ border-style: solid;
619
+ border-color: inherit;
620
+ border-left-width: 0.1em;
621
+ transform: rotate(45deg);
622
+ }
623
+ }
624
+
625
+ .vxe-icon--calendar {
626
+ @extend %DefaultWidthHeight;
627
+ &:before {
628
+ @extend %PseudoClass;
629
+ top: 0.15em;
630
+ left: 0;
631
+ width: 1em;
632
+ height: 0.8em;
633
+ border-width: 0.2em 0.1em 0.1em 0.1em;
634
+ border-radius: 0.1em 0.1em 0 0;
635
+ border-style: solid;
636
+ border-color: inherit;
637
+ }
638
+ &:after {
639
+ @extend %PseudoClass;
640
+ left: 0.2em;
641
+ top: 0;
642
+ width: 0.6em;
643
+ height: 0.3em;
644
+ border-width: 0 0.1em;
645
+ border-style: solid;
646
+ border-color: inherit;
647
+ }
648
+ }
649
+
650
+ .vxe-icon--dot {
651
+ @extend %DefaultWidthHeight;
652
+ &:before {
653
+ @extend %PseudoClass;
654
+ top: 0.25em;
655
+ left: 0.25em;
656
+ border-radius: 50%;
657
+ border-width: 0.25em;
658
+ border-style: solid;
659
+ border-color: inherit;
660
+ }
661
+ }
662
+
663
+ .vxe-icon--print {
664
+ @extend %DefaultWidthHeight;
665
+ box-shadow: inset 0 0 0 0.1em;
666
+ border-width: 0.2em 0;
667
+ border-style: solid;
668
+ border-color: transparent !important;
669
+ border-radius: 0.3em 0.3em 0 0;
670
+ &:before {
671
+ @extend %PseudoClass;
672
+ width: 0.6em;
673
+ height: 0.3em;
674
+ top: -0.2em;
675
+ left: 0.2em;
676
+ box-shadow: inset 0 0 0 0.1em;
677
+ }
678
+ &:after {
679
+ @extend %PseudoClass;
680
+ width: 0.6em;
681
+ height: 0.6em;
682
+ left: 0.2em;
683
+ bottom: -0.2em;
684
+ box-shadow: inset 0 0 0 0.1em;
685
+ background-color: $vxe-icon-background-color;
686
+ }
687
+ }
688
+
689
+ .vxe-icon--search {
690
+ @extend %DefaultWidthHeight;
691
+ &:before {
692
+ @extend %PseudoClass;
693
+ top: 0;
694
+ left: 0;
695
+ width: 0.8em;
696
+ height: 0.8em;
697
+ border-width: 0.15em;
698
+ border-style: solid;
699
+ border-color: inherit;
700
+ border-radius: 50%;
701
+ }
702
+ &:after {
703
+ @extend %PseudoClass;
704
+ top: 0.75em;
705
+ left: 0.6em;
706
+ width: 0.35em;
707
+ height: 0;
708
+ border-width: 0.15em 0 0 0;
709
+ border-style: solid;
710
+ border-color: inherit;
711
+ transform: rotate(45deg);
712
+ }
713
+ }
package/styles/pager.scss CHANGED
@@ -39,6 +39,7 @@
39
39
  .vxe-pager--jump-next {
40
40
  color: inherit;
41
41
  outline: 0;
42
+ padding: 0;
42
43
  border: 1px solid transparent;
43
44
  &:not(.is--disabled) {
44
45
  &:focus {
@@ -153,6 +154,7 @@
153
154
  .vxe-pager--jump .vxe-pager--goto,
154
155
  .vxe-pager--sizes > .vxe-input {
155
156
  height: 2.15em;
157
+ line-height: 2.15em;
156
158
  }
157
159
  .vxe-pager--sizes > .vxe-select--panel .vxe-select-option {
158
160
  text-align: center;