@veltra/desktop 1.1.34 → 1.1.36

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 (46) hide show
  1. package/dist/components/action/action-group.vue.d.ts +2 -2
  2. package/dist/components/action/action.vue.d.ts +2 -2
  3. package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -2
  4. package/dist/components/cascade/cascade.vue.d.ts +3 -3
  5. package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
  6. package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  7. package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
  8. package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
  9. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  10. package/dist/components/dialog/dialog.js +5 -12
  11. package/dist/components/dialog/dialog.js.map +1 -1
  12. package/dist/components/dialog/dialog.vue.d.ts +2 -1
  13. package/dist/components/dialog/style.js +1 -2
  14. package/dist/components/dialog/use-maximum.js +7 -1
  15. package/dist/components/dialog/use-maximum.js.map +1 -1
  16. package/dist/components/empty/empty.vue.d.ts +1 -1
  17. package/dist/components/file-picker/file-picker.vue.d.ts +1 -1
  18. package/dist/components/input/input.vue.d.ts +6 -6
  19. package/dist/components/loading/style2.css +90 -159
  20. package/dist/components/multi-select/multi-select.vue.d.ts +3 -3
  21. package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +3 -3
  22. package/dist/components/number-input/number-input.vue.d.ts +2 -2
  23. package/dist/components/number-range-input/number-range-input.vue.d.ts +2 -2
  24. package/dist/components/password-input/password-input.vue.d.ts +1 -1
  25. package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
  26. package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
  27. package/dist/components/select/select.vue.d.ts +2 -2
  28. package/dist/components/table/style2.css +4 -7
  29. package/dist/components/tabs/tabs-horizontal.vue.d.ts +2 -2
  30. package/dist/components/tabs/tabs-vertical.vue.d.ts +2 -2
  31. package/dist/components/tabs/tabs.vue.d.ts +2 -2
  32. package/dist/components/textarea/textarea.vue.d.ts +2 -2
  33. package/dist/components/tip/tip.vue.d.ts +3 -3
  34. package/dist/components/tree-select/tree-select.vue.d.ts +3 -3
  35. package/dist/index.d.ts +3 -3
  36. package/dist/types/dialog.d.ts +5 -1
  37. package/dist/types/index.d.ts +2 -2
  38. package/dist/types/loading.d.ts +1 -1
  39. package/package.json +6 -6
  40. package/src/components/dialog/dialog.vue +4 -11
  41. package/src/components/dialog/style.ts +1 -2
  42. package/src/components/dialog/use-maximum.ts +8 -1
  43. package/src/components/loading/style.scss +126 -355
  44. package/src/components/table/style.scss +4 -14
  45. package/src/types/dialog.ts +5 -0
  46. package/src/types/loading.ts +1 -1
@@ -2,7 +2,6 @@
2
2
  @use 'pkg:@veltra/styles/functions' as fn;
3
3
  @use 'pkg:@veltra/styles/vars';
4
4
 
5
- // 方便拼接
6
5
  $root-name: loading;
7
6
 
8
7
  @include m.b($root-name) {
@@ -17,415 +16,187 @@ $root-name: loading;
17
16
  position: relative;
18
17
  }
19
18
 
20
- // line
21
- @include m.e(line) {
19
+ // ============================================================
20
+ // spinner — 渐变圆弧旋转
21
+ // 使用 conic-gradient + mask 实现缺口圆环旋转
22
+ // ============================================================
23
+ @include m.e(spinner) {
22
24
  @include m.bem($root-name, loader) {
23
- $c: no-repeat linear-gradient(#{fn.use-var(text-color, main)} 0 0);
24
- width: 40px;
25
+ width: 42px;
25
26
  aspect-ratio: 1;
26
- display: grid;
27
+ border-radius: 50%;
28
+ background: conic-gradient(from 0deg, transparent 25%, currentColor 70%, transparent 100%);
29
+ mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
30
+ animation: loading-spin 0.85s linear infinite;
31
+ }
32
+ }
33
+
34
+ // ============================================================
35
+ // dot — 三点波浪弹跳
36
+ // 元素自身 + 两个伪元素,交错弹跳
37
+ // ============================================================
38
+ @include m.e(dot) {
39
+ @include m.bem($root-name, loader) {
40
+ width: 10px;
41
+ height: 10px;
42
+ border-radius: 50%;
43
+ background: currentColor;
44
+ position: relative;
45
+ animation: loading-dot 1.4s ease-in-out infinite;
27
46
 
28
47
  &::before,
29
48
  &::after {
30
49
  content: '';
31
- grid-area: 1/1;
32
- background:
33
- #{$c} 0 0,
34
- #{$c} 100% 0,
35
- #{$c} 100% 100%,
36
- #{$c} 0 100%;
37
- animation:
38
- line-1 2s infinite linear,
39
- line-2 2s infinite linear;
50
+ position: absolute;
51
+ top: 0;
52
+ width: 10px;
53
+ height: 10px;
54
+ border-radius: 50%;
55
+ background: currentColor;
40
56
  }
57
+
58
+ &::before {
59
+ left: -20px;
60
+ animation: loading-dot 1.4s ease-in-out infinite;
61
+ animation-delay: 0.2s;
62
+ }
63
+
41
64
  &::after {
42
- margin: 25%;
43
- transform: scale(-1);
65
+ right: -20px;
66
+ animation: loading-dot 1.4s ease-in-out infinite;
67
+ animation-delay: 0.4s;
44
68
  }
45
69
  }
46
70
  }
47
71
 
48
- // spinner
49
- @include m.e(spinner) {
72
+ // ============================================================
73
+ // line — 流光扫过
74
+ // 半透明底轨 + 渐变光条水平扫过
75
+ // ============================================================
76
+ @include m.e(line) {
50
77
  @include m.bem($root-name, loader) {
51
- $c: no-repeat radial-gradient(farthest-side, #{fn.use-var(text-color, main)} 92%, #0000);
52
- width: 50px;
53
- aspect-ratio: 1;
54
- display: grid;
78
+ width: 160px;
79
+ height: 3px;
80
+ border-radius: 1.5px;
81
+ background: fn.use-var(bg-color, hover);
82
+ overflow: hidden;
83
+ position: relative;
55
84
 
56
- &::before,
57
85
  &::after {
58
86
  content: '';
59
- grid-area: 1/1;
60
-
61
- background:
62
- #{$c} 50% 0,
63
- #{$c} 50% 100%,
64
- #{$c} 100% 50%,
65
- #{$c} 0 50%;
66
- background-size: 12px 12px;
67
- animation: spinner 1s infinite;
68
- }
69
- &::before {
70
- margin: 4px;
71
- filter: hue-rotate(45deg);
72
- background-size: 8px 8px;
73
- animation-timing-function: linear;
87
+ position: absolute;
88
+ inset: 0;
89
+ background: linear-gradient(
90
+ 90deg,
91
+ transparent 0%,
92
+ currentColor 40%,
93
+ currentColor 60%,
94
+ transparent 100%
95
+ );
96
+ animation: loading-shimmer 1.4s ease-in-out infinite;
74
97
  }
75
98
  }
76
99
  }
77
100
 
78
- // dot
79
- @include m.e(dot) {
101
+ // ============================================================
102
+ // classic — 雷达波纹扩散
103
+ // 两个同心圆环交替向外扩散并淡出
104
+ // ============================================================
105
+ @include m.e(classic) {
80
106
  @include m.bem($root-name, loader) {
81
- $c: no-repeat radial-gradient(farthest-side, #{fn.use-var(text-color, main)} 93%, #0000);
82
- width: 40px;
83
- height: 20px;
84
- background:
85
- #{$c} 0 0,
86
- #{$c} 50% 0;
87
- background-size: 8px 8px;
107
+ width: 44px;
108
+ aspect-ratio: 1;
88
109
  position: relative;
89
- clip-path: inset(-200% -100% 0 0);
90
- animation: dot-0 1.5s linear infinite;
91
110
 
92
- &:before {
93
- content: '';
94
- position: absolute;
95
- width: 8px;
96
- height: 12px;
97
- background: fn.use-var(text-color, main);
98
- left: -16px;
99
- top: 0;
100
- animation:
101
- dot-1 1.5s linear infinite,
102
- dot-2 0.5s cubic-bezier(0, 200, 0.8, 200) infinite;
103
- }
104
- &:after {
111
+ &::before,
112
+ &::after {
105
113
  content: '';
106
114
  position: absolute;
107
- inset: 0 0 auto auto;
108
- width: 8px;
109
- height: 8px;
115
+ inset: 0;
110
116
  border-radius: 50%;
111
- background: fn.use-var(text-color, main);
112
- animation: dot-3 1.5s linear infinite;
117
+ border: 3px solid currentColor;
118
+ animation: loading-pulse 1.6s ease-out infinite;
119
+ }
120
+
121
+ &::after {
122
+ animation-delay: 0.8s;
113
123
  }
114
124
  }
115
125
  }
116
126
 
117
- // classic
118
- @include m.e(classic) {
127
+ // ============================================================
128
+ // morph — 形态变换
129
+ // 方块 ⟷ 圆形 来回变换,配合旋转
130
+ // ============================================================
131
+ @include m.e(morph) {
119
132
  @include m.bem($root-name, loader) {
120
- font-size: fn.use-var(font-size, title, default);
121
- line-height: 1.4em;
122
- letter-spacing: 6ch;
123
- width: 6ch;
124
- overflow: hidden;
125
- white-space: nowrap;
126
- color: #0000;
127
- text-shadow:
128
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
129
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
130
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
131
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
132
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
133
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
134
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
135
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
136
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
137
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
138
- animation: classic 2s infinite linear;
139
-
140
- &::before {
141
- content: '加载中...';
142
- }
133
+ width: 34px;
134
+ aspect-ratio: 1;
135
+ background: currentColor;
136
+ animation: loading-morph 2.4s ease-in-out infinite;
143
137
  }
144
138
  }
145
139
  }
146
140
 
147
- // 线条
148
- @keyframes line-1 {
149
- 0% {
150
- background-size:
151
- 0 4px,
152
- 4px 0,
153
- 0 4px,
154
- 4px 0;
155
- }
156
- 12.5% {
157
- background-size:
158
- 100% 4px,
159
- 4px 0,
160
- 0 4px,
161
- 4px 0;
162
- }
163
- 25% {
164
- background-size:
165
- 100% 4px,
166
- 4px 100%,
167
- 0 4px,
168
- 4px 0;
169
- }
170
- 37.5% {
171
- background-size:
172
- 100% 4px,
173
- 4px 100%,
174
- 100% 4px,
175
- 4px 0;
176
- }
177
- 45%,
178
- 55% {
179
- background-size:
180
- 100% 4px,
181
- 4px 100%,
182
- 100% 4px,
183
- 4px 100%;
184
- }
185
- 62.5% {
186
- background-size:
187
- 0 4px,
188
- 4px 100%,
189
- 100% 4px,
190
- 4px 100%;
191
- }
192
- 75% {
193
- background-size:
194
- 0 4px,
195
- 4px 0,
196
- 100% 4px,
197
- 4px 100%;
198
- }
199
- 87.5% {
200
- background-size:
201
- 0 4px,
202
- 4px 0,
203
- 0 4px,
204
- 4px 100%;
205
- }
206
- 100% {
207
- background-size:
208
- 0 4px,
209
- 4px 0,
210
- 0 4px,
211
- 4px 0;
141
+ // ================================================================
142
+ // 关键帧
143
+ // ================================================================
144
+
145
+ @keyframes loading-spin {
146
+ to {
147
+ transform: rotate(1turn);
212
148
  }
213
149
  }
214
150
 
215
- @keyframes line-2 {
151
+ @keyframes loading-dot {
216
152
  0%,
217
- 49.9% {
218
- background-position:
219
- 0 0,
220
- 100% 0,
221
- 100% 100%,
222
- 0 100%;
223
- }
224
- 50%,
153
+ 80%,
225
154
  100% {
226
- background-position:
227
- 100% 0,
228
- 100% 100%,
229
- 0 100%,
230
- 0 0;
155
+ transform: scale(0.4);
156
+ opacity: 0.25;
231
157
  }
232
- }
233
-
234
- // 旋转
235
- @keyframes spinner {
236
- 100% {
237
- transform: rotate(0.5turn);
158
+ 40% {
159
+ transform: scale(1);
160
+ opacity: 1;
238
161
  }
239
162
  }
240
163
 
241
- // classic
242
- @keyframes classic {
243
- 9.09% {
244
- text-shadow:
245
- calc(0 * 6ch) -10px #{fn.use-var(text-color, main)},
246
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
247
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
248
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
249
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
250
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
251
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
252
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
253
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
254
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
255
- }
256
- 18.18% {
257
- text-shadow:
258
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
259
- calc(-1 * 6ch) -10px #{fn.use-var(text-color, main)},
260
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
261
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
262
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
263
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
264
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
265
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
266
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
267
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
268
- }
269
- 27.27% {
270
- text-shadow:
271
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
272
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
273
- calc(-2 * 6ch) -10px #{fn.use-var(text-color, main)},
274
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
275
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
276
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
277
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
278
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
279
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
280
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
281
- }
282
- 36.36% {
283
- text-shadow:
284
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
285
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
286
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
287
- calc(-3 * 6ch) -10px #{fn.use-var(text-color, main)},
288
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
289
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
290
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
291
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
292
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
293
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
294
- }
295
- 45.45% {
296
- text-shadow:
297
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
298
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
299
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
300
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
301
- calc(-4 * 6ch) -10px #{fn.use-var(text-color, main)},
302
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
303
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
304
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
305
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
306
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
307
- }
308
- 54.54% {
309
- text-shadow:
310
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
311
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
312
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
313
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
314
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
315
- calc(-5 * 6ch) -10px #{fn.use-var(text-color, main)};
316
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
317
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
318
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
319
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
320
- }
321
- 63.63% {
322
- text-shadow:
323
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
324
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
325
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
326
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
327
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
328
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
329
- // calc(-6 * 6ch) -10px #{fn.use-var(text-color, main)},
330
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
331
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
332
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
333
- }
334
- 72.72% {
335
- text-shadow:
336
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
337
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
338
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
339
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
340
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
341
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
342
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
343
- // calc(-7 * 6ch) -10px #{fn.use-var(text-color, main)},
344
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
345
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
346
- }
347
- 81.81% {
348
- text-shadow:
349
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
350
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
351
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
352
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
353
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
354
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
355
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
356
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
357
- // calc(-8 * 6ch) -10px #{fn.use-var(text-color, main)},
358
- // calc(-9 * 6ch) 0 #{fn.use-var(text-color, main)};
164
+ @keyframes loading-shimmer {
165
+ 0% {
166
+ transform: translateX(-100%);
359
167
  }
360
- 90.90% {
361
- text-shadow:
362
- calc(0 * 6ch) 0 #{fn.use-var(text-color, main)},
363
- calc(-1 * 6ch) 0 #{fn.use-var(text-color, main)},
364
- calc(-2 * 6ch) 0 #{fn.use-var(text-color, main)},
365
- calc(-3 * 6ch) 0 #{fn.use-var(text-color, main)},
366
- calc(-4 * 6ch) 0 #{fn.use-var(text-color, main)},
367
- calc(-5 * 6ch) 0 #{fn.use-var(text-color, main)};
368
- // calc(-6 * 6ch) 0 #{fn.use-var(text-color, main)},
369
- // calc(-7 * 6ch) 0 #{fn.use-var(text-color, main)},
370
- // calc(-8 * 6ch) 0 #{fn.use-var(text-color, main)},
371
- // calc(-9 * 6ch) -10px #{fn.use-var(text-color, main)};
168
+ 100% {
169
+ transform: translateX(100%);
372
170
  }
373
171
  }
374
172
 
375
- @keyframes dot-0 {
376
- 0%,
377
- 30% {
378
- background-position:
379
- 0 0,
380
- 50% 0;
381
- }
382
- 33% {
383
- background-position:
384
- 0 100%,
385
- 50% 0;
386
- }
387
- 41%,
388
- 63% {
389
- background-position:
390
- 0 0,
391
- 50% 0;
392
- }
393
- 66% {
394
- background-position:
395
- 0 0,
396
- 50% 100%;
173
+ @keyframes loading-pulse {
174
+ 0% {
175
+ transform: scale(0.2);
176
+ opacity: 1;
397
177
  }
398
- 74%,
399
178
  100% {
400
- background-position:
401
- 0 0,
402
- 50% 0;
179
+ transform: scale(1.35);
180
+ opacity: 0;
403
181
  }
404
182
  }
405
- @keyframes dot-1 {
406
- 90% {
407
- transform: translateY(0);
408
- }
409
- 95% {
410
- transform: translateY(15px);
411
- }
183
+
184
+ @keyframes loading-morph {
185
+ 0%,
412
186
  100% {
413
- transform: translateY(15px);
414
- left: calc(100% - 8px);
187
+ border-radius: 50%;
188
+ transform: rotate(0deg) scale(1);
415
189
  }
416
- }
417
- @keyframes dot-2 {
418
- 100% {
419
- top: -0.1px;
190
+ 25% {
191
+ border-radius: 8px;
192
+ transform: rotate(45deg) scale(0.7);
420
193
  }
421
- }
422
- @keyframes dot-3 {
423
- 0%,
424
- 80%,
425
- 100% {
426
- transform: translate(0);
194
+ 50% {
195
+ border-radius: 2px;
196
+ transform: rotate(90deg) scale(1);
427
197
  }
428
- 90% {
429
- transform: translate(26px);
198
+ 75% {
199
+ border-radius: 8px;
200
+ transform: rotate(135deg) scale(0.7);
430
201
  }
431
202
  }
@@ -124,12 +124,10 @@ $root-name: table;
124
124
  z-index: 1;
125
125
  user-select: none;
126
126
 
127
- &:hover {
128
- @include m.bem($root-name, cell) {
129
- box-shadow:
130
- -1px 0px var(--u-table-border-color) inset,
131
- 0px -1px var(--u-table-border-color) inset;
132
- }
127
+ @include m.bem($root-name, cell) {
128
+ background-color: var(--u-table-header-bg);
129
+ font-weight: 500;
130
+ color: var(--u-table-header-color);
133
131
  }
134
132
 
135
133
  @include m.is(multistage) {
@@ -142,14 +140,6 @@ $root-name: table;
142
140
  }
143
141
  }
144
142
 
145
- @include m.e(head) {
146
- @include m.bem($root-name, cell) {
147
- background-color: var(--u-table-header-bg);
148
- font-weight: normal;
149
- color: var(--u-table-header-color);
150
- }
151
- }
152
-
153
143
  @include m.e(resize-handle) {
154
144
  position: absolute;
155
145
  width: 4px;
@@ -1,5 +1,8 @@
1
1
  import type { ComponentSize, DeconstructValue } from '@veltra/utils'
2
2
 
3
+ /** 对话框过渡动画名称 */
4
+ export type DialogTransition = 'fade-scale'
5
+
3
6
  /** 对话框组件属性 */
4
7
  export interface DialogProps {
5
8
  /** 显示或隐藏 */
@@ -14,6 +17,8 @@ export interface DialogProps {
14
17
  modal?: boolean
15
18
  /** 全屏 */
16
19
  fullscreen?: boolean
20
+ /** 弹框过渡动画,默认为 spring */
21
+ transition?: DialogTransition
17
22
  }
18
23
 
19
24
  /** 对话框组件定义的事件 */
@@ -1,6 +1,6 @@
1
1
  import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
- export type LoadingType = 'classic' | 'line' | 'dot' | 'spinner'
3
+ export type LoadingType = 'classic' | 'line' | 'dot' | 'spinner' | 'morph'
4
4
 
5
5
  /** loading组件属性 */
6
6
  export interface LoadingProps {