@veltra/desktop 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/alert/alert.js +31 -28
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/style.d.ts +1 -1
- package/dist/components/alert/style.js +1 -0
- package/dist/components/alert/style2.css +5 -1
- package/dist/components/auto-complete/style2.css +1 -0
- package/dist/components/back-top/style2.css +11 -2
- package/dist/components/badge/badge.js +15 -15
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/badge/style2.css +10 -1
- package/dist/components/batch-edit/batch-edit-form.js +108 -97
- package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
- package/dist/components/batch-edit/batch-edit.js +11 -5
- package/dist/components/batch-edit/batch-edit.js.map +1 -1
- package/dist/components/batch-edit/style2.css +25 -1
- package/dist/components/breadcrumb/style2.css +4 -1
- package/dist/components/button/style2.css +3 -2
- package/dist/components/carousel/carousel.js +5 -3
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/carousel/style2.css +7 -1
- package/dist/components/carousel/use-carousel.js +16 -2
- package/dist/components/carousel/use-carousel.js.map +1 -1
- package/dist/components/cascade/style2.css +16 -0
- package/dist/components/check-tag/check-tag.js +11 -5
- package/dist/components/check-tag/check-tag.js.map +1 -1
- package/dist/components/check-tag/style2.css +10 -0
- package/dist/components/checkbox/checkbox-button.js +8 -3
- package/dist/components/checkbox/checkbox-button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +5 -9
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox/style2.css +32 -2
- package/dist/components/chip/style2.css +4 -0
- package/dist/components/code-editor/code-editor.js +26 -3
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/code-editor/style2.css +38 -3
- package/dist/components/collapse/collapse-item.js +4 -1
- package/dist/components/collapse/collapse-item.js.map +1 -1
- package/dist/components/collapse/collapse.js +1 -1
- package/dist/components/collapse/collapse.js.map +1 -1
- package/dist/components/collapse/style2.css +6 -3
- package/dist/components/condition-editor/style2.css +24 -6
- package/dist/components/contextmenu/contextmenu-sub.js +13 -7
- package/dist/components/contextmenu/contextmenu-sub.js.map +1 -1
- package/dist/components/contextmenu/style2.css +14 -1
- package/dist/components/date-panel/style2.css +9 -1
- package/dist/components/dialog/style2.css +5 -1
- package/dist/components/dialog/use-maximum.js +6 -0
- package/dist/components/dialog/use-maximum.js.map +1 -1
- package/dist/components/drawer/style2.css +4 -0
- package/dist/components/dual-nav/style2.css +5 -2
- package/dist/components/expression-editor/style2.css +17 -5
- package/dist/components/file-viewer/style2.css +8 -2
- package/dist/components/float-button/float-button.js +1 -1
- package/dist/components/float-button/float-button.js.map +1 -1
- package/dist/components/float-button/style2.css +2 -3
- package/dist/components/form-item/style2.css +13 -1
- package/dist/components/grid-input/style2.css +15 -3
- package/dist/components/group-nav/style2.css +16 -7
- package/dist/components/icon/style2.css +1 -1
- package/dist/components/image-cropper/style2.css +4 -1
- package/dist/components/image-previewer/image-previewer.js +14 -2
- package/dist/components/image-previewer/image-previewer.js.map +1 -1
- package/dist/components/image-previewer/style.d.ts +1 -1
- package/dist/components/image-previewer/style.js +1 -0
- package/dist/components/image-previewer/style2.css +9 -14
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input/style2.css +13 -1
- package/dist/components/kanban/kanban-column.js +1 -0
- package/dist/components/kanban/kanban-column.js.map +1 -1
- package/dist/components/kanban/style2.css +6 -2
- package/dist/components/layout/layout-resizer.js +8 -1
- package/dist/components/layout/layout-resizer.js.map +1 -1
- package/dist/components/layout/layout.js +11 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/style2.css +22 -0
- package/dist/components/loading/style2.css +26 -7
- package/dist/components/message/style2.css +18 -2
- package/dist/components/message-confirm/style2.css +11 -0
- package/dist/components/multi-select/multi-select.js +21 -18
- package/dist/components/multi-select/multi-select.js.map +1 -1
- package/dist/components/multi-select/style2.css +13 -0
- package/dist/components/nav/nav-sub.js +8 -2
- package/dist/components/nav/nav-sub.js.map +1 -1
- package/dist/components/nav/style2.css +50 -26
- package/dist/components/notification/style2.css +21 -0
- package/dist/components/number-input/style2.css +5 -2
- package/dist/components/paginator/style2.css +1 -0
- package/dist/components/password-input/style2.css +10 -1
- package/dist/components/pop-confirm/pop-confirm.js +1 -1
- package/dist/components/pop-confirm/pop-confirm.js.map +1 -1
- package/dist/components/progress/style2.css +2 -2
- package/dist/components/progress-nodes/style2.css +3 -3
- package/dist/components/radio/radio.js +1 -4
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio/style2.css +11 -1
- package/dist/components/rate/style2.css +7 -0
- package/dist/components/rich-text-editor/style2.css +6 -3
- package/dist/components/scroll/style2.css +2 -2
- package/dist/components/segment/segment.js +5 -1
- package/dist/components/segment/segment.js.map +1 -1
- package/dist/components/segment/style2.css +6 -0
- package/dist/components/select/select.js +5 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/style2.css +11 -1
- package/dist/components/steps/style2.css +21 -2
- package/dist/components/switch/style2.css +10 -2
- package/dist/components/table/style2.css +20 -7
- package/dist/components/tabs/style2.css +9 -3
- package/dist/components/tag/style2.css +16 -7
- package/dist/components/textarea/style2.css +9 -1
- package/dist/components/theme/style2.css +38 -29
- package/dist/components/time-picker/style2.css +4 -1
- package/dist/components/tip/style2.css +11 -0
- package/dist/components/transfer/style2.css +21 -1
- package/dist/components/transfer/transfer-list.js +20 -17
- package/dist/components/transfer/transfer-list.js.map +1 -1
- package/dist/components/tree/style2.css +5 -2
- package/package.json +1 -1
- package/src/components/alert/alert.vue +18 -16
- package/src/components/alert/style.scss +9 -1
- package/src/components/alert/style.ts +1 -0
- package/src/components/auto-complete/style.scss +3 -0
- package/src/components/back-top/style.scss +17 -3
- package/src/components/badge/badge.vue +6 -7
- package/src/components/badge/style.scss +20 -1
- package/src/components/batch-edit/__test__/batch-edit.test.ts +10 -0
- package/src/components/batch-edit/batch-edit-form.vue +95 -83
- package/src/components/batch-edit/batch-edit.vue +18 -3
- package/src/components/batch-edit/style.scss +39 -3
- package/src/components/breadcrumb/style.scss +5 -1
- package/src/components/button/style.scss +4 -2
- package/src/components/carousel/carousel.vue +8 -2
- package/src/components/carousel/style.scss +10 -1
- package/src/components/carousel/use-carousel.ts +17 -2
- package/src/components/cascade/style.scss +27 -0
- package/src/components/check-tag/check-tag.vue +13 -3
- package/src/components/check-tag/style.scss +21 -0
- package/src/components/checkbox/checkbox-button.vue +11 -1
- package/src/components/checkbox/checkbox.vue +6 -2
- package/src/components/checkbox/style.scss +51 -2
- package/src/components/chip/style.scss +11 -0
- package/src/components/code-editor/code-editor.vue +24 -3
- package/src/components/code-editor/style.scss +54 -4
- package/src/components/collapse/collapse-item.vue +10 -1
- package/src/components/collapse/collapse.vue +3 -1
- package/src/components/collapse/style.scss +10 -7
- package/src/components/condition-editor/style.scss +39 -12
- package/src/components/contextmenu/contextmenu-sub.vue +9 -7
- package/src/components/contextmenu/style.scss +17 -1
- package/src/components/date-panel/style.scss +22 -1
- package/src/components/dialog/style.scss +6 -1
- package/src/components/dialog/use-maximum.ts +8 -0
- package/src/components/drawer/style.scss +5 -0
- package/src/components/dual-nav/style.scss +9 -4
- package/src/components/expression-editor/style.scss +27 -9
- package/src/components/file-viewer/style.scss +12 -2
- package/src/components/float-button/float-button.vue +1 -1
- package/src/components/float-button/style.scss +4 -3
- package/src/components/form-item/style.scss +16 -2
- package/src/components/grid-input/style.scss +6 -1
- package/src/components/group-nav/style.scss +30 -13
- package/src/components/icon/style.scss +2 -1
- package/src/components/image-cropper/style.scss +6 -1
- package/src/components/image-previewer/image-previewer.vue +20 -2
- package/src/components/image-previewer/style.scss +17 -14
- package/src/components/image-previewer/style.ts +1 -0
- package/src/components/input/input.vue +2 -8
- package/src/components/input/style.scss +19 -1
- package/src/components/kanban/kanban-column.vue +2 -0
- package/src/components/kanban/style.scss +11 -2
- package/src/components/layout/__test__/layout.test.ts +135 -0
- package/src/components/layout/layout-resizer.vue +8 -1
- package/src/components/layout/layout.vue +17 -1
- package/src/components/layout/style.scss +31 -6
- package/src/components/loading/style.scss +39 -8
- package/src/components/message/style.scss +20 -2
- package/src/components/message-confirm/style.scss +13 -0
- package/src/components/multi-select/multi-select.vue +13 -10
- package/src/components/multi-select/style.scss +14 -0
- package/src/components/multi-tree-select/__test__/multi-tree-select.test.ts +4 -2
- package/src/components/nav/nav-sub.vue +10 -2
- package/src/components/nav/style.scss +37 -13
- package/src/components/notification/style.scss +13 -0
- package/src/components/number-input/style.scss +8 -2
- package/src/components/paginator/style.scss +3 -0
- package/src/components/password-input/style.scss +15 -1
- package/src/components/pop-confirm/pop-confirm.vue +1 -1
- package/src/components/progress/style.scss +3 -3
- package/src/components/progress-nodes/style.scss +5 -5
- package/src/components/radio/radio.vue +1 -1
- package/src/components/radio/style.scss +19 -1
- package/src/components/rate/style.scss +9 -0
- package/src/components/rich-text-editor/style.scss +11 -6
- package/src/components/scroll/style.scss +3 -3
- package/src/components/segment/segment.vue +13 -1
- package/src/components/segment/style.scss +13 -3
- package/src/components/select/select.vue +1 -1
- package/src/components/select/style.scss +22 -1
- package/src/components/steps/style.scss +27 -5
- package/src/components/switch/style.scss +13 -2
- package/src/components/table/style.scss +44 -20
- package/src/components/tabs/style.scss +16 -3
- package/src/components/tag/style.scss +18 -1
- package/src/components/textarea/style.scss +15 -2
- package/src/components/theme/style.scss +62 -40
- package/src/components/time-picker/style.scss +9 -1
- package/src/components/tip/style.scss +13 -0
- package/src/components/transfer/style.scss +31 -1
- package/src/components/transfer/transfer-list.vue +18 -15
- package/src/components/tree/style.scss +8 -3
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
$root-name: collapse;
|
|
5
5
|
|
|
6
|
-
$ease: cubic-bezier(0.4, 0, 0.2, 1);
|
|
7
|
-
$transition-fast: 0.18s $ease;
|
|
8
|
-
$transition-normal: 0.24s $ease;
|
|
9
|
-
|
|
10
6
|
@include m.b($root-name) {
|
|
11
7
|
width: 100%;
|
|
12
8
|
font-size: fn.use-var(font-size-main, default);
|
|
@@ -42,7 +38,9 @@ $transition-normal: 0.24s $ease;
|
|
|
42
38
|
color: fn.use-var(text-color, main);
|
|
43
39
|
user-select: none;
|
|
44
40
|
outline: none;
|
|
45
|
-
transition:
|
|
41
|
+
transition:
|
|
42
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
43
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
46
44
|
border-radius: 0;
|
|
47
45
|
|
|
48
46
|
&:focus-visible {
|
|
@@ -53,6 +51,10 @@ $transition-normal: 0.24s $ease;
|
|
|
53
51
|
&:hover {
|
|
54
52
|
background-color: fn.use-var(bg-color, hover);
|
|
55
53
|
}
|
|
54
|
+
|
|
55
|
+
&:active {
|
|
56
|
+
transform: scale(0.98);
|
|
57
|
+
}
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
@include m.is(disabled) {
|
|
@@ -86,7 +88,8 @@ $transition-normal: 0.24s $ease;
|
|
|
86
88
|
justify-content: center;
|
|
87
89
|
flex: 0 0 auto;
|
|
88
90
|
color: fn.use-var(text-color, assist);
|
|
89
|
-
|
|
91
|
+
// 与高度动画(JS 驱动 0.24s)保持同步感:normal(0.25s)+ ease
|
|
92
|
+
transition: transform fn.use-var(transition, normal) fn.use-var(transition, ease);
|
|
90
93
|
will-change: transform;
|
|
91
94
|
}
|
|
92
95
|
|
|
@@ -95,7 +98,7 @@ $transition-normal: 0.24s $ease;
|
|
|
95
98
|
overflow: hidden;
|
|
96
99
|
height: 0;
|
|
97
100
|
background-color: transparent;
|
|
98
|
-
transition: height
|
|
101
|
+
transition: height fn.use-var(transition, normal) fn.use-var(transition, ease);
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
@include m.e(content) {
|
|
@@ -75,9 +75,13 @@ $connector-width: 56px;
|
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
user-select: none;
|
|
77
77
|
transition:
|
|
78
|
-
background-color
|
|
79
|
-
color
|
|
80
|
-
transform
|
|
78
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
79
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
80
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
81
|
+
|
|
82
|
+
&:active {
|
|
83
|
+
transform: scale(0.96);
|
|
84
|
+
}
|
|
81
85
|
|
|
82
86
|
@include m.m(and) {
|
|
83
87
|
color: fn.use-var(color, primary);
|
|
@@ -141,13 +145,18 @@ $connector-width: 56px;
|
|
|
141
145
|
font-size: 12px;
|
|
142
146
|
cursor: pointer;
|
|
143
147
|
transition:
|
|
144
|
-
background-color
|
|
145
|
-
color
|
|
148
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
149
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
150
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
146
151
|
|
|
147
152
|
&:hover {
|
|
148
153
|
background-color: fn.use-var(color, primary, light-9);
|
|
149
154
|
}
|
|
150
155
|
|
|
156
|
+
&:not(:disabled):active {
|
|
157
|
+
transform: translateY(1px);
|
|
158
|
+
}
|
|
159
|
+
|
|
151
160
|
&:disabled {
|
|
152
161
|
cursor: not-allowed;
|
|
153
162
|
opacity: 0.5;
|
|
@@ -196,7 +205,7 @@ $connector-width: 56px;
|
|
|
196
205
|
color: fn.use-var(text-color, main);
|
|
197
206
|
background-color: fn.use-var(bg-color, top);
|
|
198
207
|
outline: none;
|
|
199
|
-
transition: border-color
|
|
208
|
+
transition: border-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
200
209
|
|
|
201
210
|
&::placeholder {
|
|
202
211
|
color: fn.use-var(text-color, placeholder);
|
|
@@ -239,8 +248,8 @@ $connector-width: 56px;
|
|
|
239
248
|
cursor: pointer;
|
|
240
249
|
user-select: none;
|
|
241
250
|
transition:
|
|
242
|
-
background-color
|
|
243
|
-
border-color
|
|
251
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
252
|
+
border-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
244
253
|
|
|
245
254
|
&:hover {
|
|
246
255
|
background-color: fn.use-var(color, primary, light-7);
|
|
@@ -271,13 +280,18 @@ $connector-width: 56px;
|
|
|
271
280
|
opacity: 0.7;
|
|
272
281
|
border-radius: 50%;
|
|
273
282
|
transition:
|
|
274
|
-
opacity
|
|
275
|
-
background-color
|
|
283
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
284
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
285
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
276
286
|
|
|
277
287
|
&:hover {
|
|
278
288
|
opacity: 1;
|
|
279
289
|
background-color: fn.use-var(color, primary, light-7);
|
|
280
290
|
}
|
|
291
|
+
|
|
292
|
+
&:active {
|
|
293
|
+
transform: translateY(1px);
|
|
294
|
+
}
|
|
281
295
|
}
|
|
282
296
|
|
|
283
297
|
// ─── 删除按钮 ──────────────────────────────────────
|
|
@@ -295,14 +309,19 @@ $connector-width: 56px;
|
|
|
295
309
|
cursor: pointer;
|
|
296
310
|
font-size: 14px;
|
|
297
311
|
transition:
|
|
298
|
-
color
|
|
299
|
-
background-color
|
|
312
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
313
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
314
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
300
315
|
|
|
301
316
|
&:hover {
|
|
302
317
|
color: fn.use-var(color, danger);
|
|
303
318
|
background-color: fn.use-var(color, danger, light-9);
|
|
304
319
|
}
|
|
305
320
|
|
|
321
|
+
&:not(:disabled):active {
|
|
322
|
+
transform: scale(0.92);
|
|
323
|
+
}
|
|
324
|
+
|
|
306
325
|
&:disabled {
|
|
307
326
|
cursor: not-allowed;
|
|
308
327
|
opacity: 0.4;
|
|
@@ -316,6 +335,10 @@ $connector-width: 56px;
|
|
|
316
335
|
@include m.bem($root-name, connector) {
|
|
317
336
|
cursor: not-allowed;
|
|
318
337
|
opacity: 0.6;
|
|
338
|
+
|
|
339
|
+
&:active {
|
|
340
|
+
transform: none;
|
|
341
|
+
}
|
|
319
342
|
}
|
|
320
343
|
|
|
321
344
|
@include m.bem($root-name, action-btn) {
|
|
@@ -327,6 +350,10 @@ $connector-width: 56px;
|
|
|
327
350
|
@include m.is(readonly) {
|
|
328
351
|
@include m.bem($root-name, connector) {
|
|
329
352
|
cursor: default;
|
|
353
|
+
|
|
354
|
+
&:active {
|
|
355
|
+
transform: none;
|
|
356
|
+
}
|
|
330
357
|
}
|
|
331
358
|
}
|
|
332
359
|
}
|
|
@@ -25,13 +25,15 @@
|
|
|
25
25
|
<i v-else :class="cls.e('arrow-place')"></i>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
<transition name="contextmenu-sub">
|
|
29
|
+
<UContextmenuPanel
|
|
30
|
+
v-show="subVisible"
|
|
31
|
+
:menus="menu.children!"
|
|
32
|
+
:class="[cls.e('sub'), bem.is('flip-x', flipX)]"
|
|
33
|
+
@mouseenter="cancelClose"
|
|
34
|
+
@mouseleave="scheduleClose"
|
|
35
|
+
/>
|
|
36
|
+
</transition>
|
|
35
37
|
</li>
|
|
36
38
|
</template>
|
|
37
39
|
|
|
@@ -87,7 +87,8 @@ $arrow-size: 12px;
|
|
|
87
87
|
border-radius: calc(fn.use-var(radius, default) + 1px);
|
|
88
88
|
transition:
|
|
89
89
|
background-color 0.15s ease,
|
|
90
|
-
color 0.15s ease
|
|
90
|
+
color 0.15s ease,
|
|
91
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
91
92
|
@include m.flex($align: center);
|
|
92
93
|
|
|
93
94
|
#{$b}__item:not(.is-disabled):not(.is-loading) > & {
|
|
@@ -95,6 +96,10 @@ $arrow-size: 12px;
|
|
|
95
96
|
background-color: fn.component-var(contextmenu, item-hover-bg, fn.use-var(bg-color, hover));
|
|
96
97
|
color: fn.component-var(contextmenu, item-hover-color, fn.use-var(text-color, title));
|
|
97
98
|
}
|
|
99
|
+
|
|
100
|
+
&:active {
|
|
101
|
+
transform: scale(0.98);
|
|
102
|
+
}
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
|
|
@@ -151,3 +156,14 @@ $arrow-size: 12px;
|
|
|
151
156
|
}
|
|
152
157
|
}
|
|
153
158
|
}
|
|
159
|
+
|
|
160
|
+
// 子菜单高频开合:纯 opacity 淡入淡出,不做位移/缩放
|
|
161
|
+
.#{$root-name}-sub-enter-active,
|
|
162
|
+
.#{$root-name}-sub-leave-active {
|
|
163
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$root-name}-sub-enter-from,
|
|
167
|
+
.#{$root-name}-sub-leave-to {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
@@ -64,6 +64,17 @@ $root-name: date-panel;
|
|
|
64
64
|
@include m.e(cell) {
|
|
65
65
|
padding: 2px;
|
|
66
66
|
cursor: pointer;
|
|
67
|
+
// 与 cell-value 的背景过渡对齐:in-range 挂在 cell 上,进出同一节奏渐变
|
|
68
|
+
transition: background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
69
|
+
|
|
70
|
+
// 非禁用日期按压反馈:cell-value 缩小回弹
|
|
71
|
+
@include m.is-not(disabled) {
|
|
72
|
+
&:active {
|
|
73
|
+
@include m.bem($root-name, cell-value) {
|
|
74
|
+
transform: scale(0.92);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
67
78
|
|
|
68
79
|
&:hover {
|
|
69
80
|
@include m.bem($root-name, cell-value) {
|
|
@@ -107,7 +118,9 @@ $root-name: date-panel;
|
|
|
107
118
|
@include m.e(cell-value) {
|
|
108
119
|
display: inline-block;
|
|
109
120
|
text-align: center;
|
|
110
|
-
transition:
|
|
121
|
+
transition:
|
|
122
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
123
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
111
124
|
border-radius: 99px;
|
|
112
125
|
}
|
|
113
126
|
|
|
@@ -129,9 +142,17 @@ $root-name: date-panel;
|
|
|
129
142
|
@include m.bem(icon) {
|
|
130
143
|
cursor: pointer;
|
|
131
144
|
font-size: 18px;
|
|
145
|
+
transition:
|
|
146
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
147
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
148
|
+
|
|
132
149
|
&:hover {
|
|
133
150
|
color: fn.use-var(color, primary);
|
|
134
151
|
}
|
|
152
|
+
|
|
153
|
+
&:active {
|
|
154
|
+
transform: scale(0.94);
|
|
155
|
+
}
|
|
135
156
|
}
|
|
136
157
|
}
|
|
137
158
|
|
|
@@ -110,10 +110,15 @@ $root-name: dialog;
|
|
|
110
110
|
width: 16px;
|
|
111
111
|
height: 16px;
|
|
112
112
|
cursor: pointer;
|
|
113
|
+
transition: transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
114
|
+
|
|
115
|
+
&:active {
|
|
116
|
+
transform: scale(0.92);
|
|
117
|
+
}
|
|
113
118
|
|
|
114
119
|
& > svg {
|
|
115
120
|
opacity: 0;
|
|
116
|
-
transition: opacity
|
|
121
|
+
transition: opacity fn.use-var(transition, normal);
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
&:hover {
|
|
@@ -46,6 +46,7 @@ function invert(from: Rect, to: Rect): string {
|
|
|
46
46
|
export function useMaximum(options: Options): Returned {
|
|
47
47
|
const { dialogRef } = options
|
|
48
48
|
const maximized = shallowRef(false)
|
|
49
|
+
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)')
|
|
49
50
|
let flipToken = 0
|
|
50
51
|
let flipTimer: ReturnType<typeof setTimeout> | undefined
|
|
51
52
|
|
|
@@ -107,6 +108,13 @@ export function useMaximum(options: Options): Returned {
|
|
|
107
108
|
const dom = dialogRef.value
|
|
108
109
|
if (!dom) return
|
|
109
110
|
|
|
111
|
+
// 减弱动态效果:跳过 FLIP 位移动画,清掉内联 transform 后随类切换直接到位
|
|
112
|
+
if (reduceMotion.matches) {
|
|
113
|
+
cancelMaximizeMotion()
|
|
114
|
+
dom.classList.toggle(ENTER_TO, maxim)
|
|
115
|
+
return
|
|
116
|
+
}
|
|
117
|
+
|
|
110
118
|
const from = readRect(dom)
|
|
111
119
|
clearFlip(dom)
|
|
112
120
|
dom.classList.toggle(ENTER_TO, maxim)
|
|
@@ -40,6 +40,11 @@ $direction-map: (
|
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
|
+
transition: transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
44
|
+
|
|
45
|
+
&:active {
|
|
46
|
+
transform: scale(0.95);
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
// 标题栏:传入 title 时渲染在内容区上方,其余行为与把标题写进默认插槽一致
|
|
@@ -106,13 +106,18 @@ $root-name: dual-nav;
|
|
|
106
106
|
color: var(--u-nav-second-color);
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
transition:
|
|
109
|
-
background-color
|
|
110
|
-
color
|
|
109
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
110
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
111
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
111
112
|
|
|
112
113
|
&:hover {
|
|
113
114
|
background-color: var(--u-nav-hover-bg);
|
|
114
115
|
color: var(--u-nav-hover-color);
|
|
115
116
|
}
|
|
117
|
+
|
|
118
|
+
&:active {
|
|
119
|
+
transform: scale(0.95);
|
|
120
|
+
}
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
@include m.e(panel-body) {
|
|
@@ -145,8 +150,8 @@ $root-name: dual-nav;
|
|
|
145
150
|
color: var(--u-nav-second-color);
|
|
146
151
|
cursor: pointer;
|
|
147
152
|
transition:
|
|
148
|
-
background-color
|
|
149
|
-
color
|
|
153
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
154
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
150
155
|
|
|
151
156
|
&:hover:not(:disabled) {
|
|
152
157
|
background-color: var(--u-nav-hover-bg);
|
|
@@ -72,7 +72,7 @@ $root-name: expression-editor;
|
|
|
72
72
|
color: fn.use-var(text-color, placeholder);
|
|
73
73
|
pointer-events: none;
|
|
74
74
|
user-select: none;
|
|
75
|
-
transition: opacity
|
|
75
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
76
76
|
font-weight: 400;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -153,8 +153,9 @@ $root-name: expression-editor;
|
|
|
153
153
|
cursor: pointer;
|
|
154
154
|
user-select: none;
|
|
155
155
|
transition:
|
|
156
|
-
background-color
|
|
157
|
-
box-shadow
|
|
156
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
157
|
+
box-shadow fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
158
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
158
159
|
|
|
159
160
|
&:hover {
|
|
160
161
|
color: fn.component-var(expression-editor, chip-color, fn.use-var(color, primary));
|
|
@@ -166,6 +167,10 @@ $root-name: expression-editor;
|
|
|
166
167
|
box-shadow: 0 1px 4px fn.use-var(shadow, color);
|
|
167
168
|
}
|
|
168
169
|
|
|
170
|
+
&:active {
|
|
171
|
+
transform: scale(0.97);
|
|
172
|
+
}
|
|
173
|
+
|
|
169
174
|
&.is-focused {
|
|
170
175
|
box-shadow: 0 0 0 2px fn.use-var(color, primary, light-7);
|
|
171
176
|
}
|
|
@@ -228,8 +233,13 @@ $root-name: expression-editor;
|
|
|
228
233
|
cursor: pointer;
|
|
229
234
|
user-select: none;
|
|
230
235
|
transition:
|
|
231
|
-
background-color
|
|
232
|
-
color
|
|
236
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
237
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
238
|
+
|
|
239
|
+
// 列表行不缩放(整行 scale 会横向抖动),按压用背景加深一档
|
|
240
|
+
&:active {
|
|
241
|
+
background-color: fn.color-a(text-color, 11, title);
|
|
242
|
+
}
|
|
233
243
|
|
|
234
244
|
@include m.is(active) {
|
|
235
245
|
background-color: fn.use-var(bg-color, hover);
|
|
@@ -255,13 +265,17 @@ $root-name: expression-editor;
|
|
|
255
265
|
border-radius: fn.use-var(radius, small);
|
|
256
266
|
cursor: pointer;
|
|
257
267
|
transition:
|
|
258
|
-
color
|
|
259
|
-
background-color
|
|
268
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
269
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
260
270
|
|
|
261
271
|
&:hover {
|
|
262
272
|
color: fn.use-var(color, primary);
|
|
263
273
|
background-color: fn.use-var(bg-color, hover);
|
|
264
274
|
}
|
|
275
|
+
|
|
276
|
+
&:active {
|
|
277
|
+
background-color: fn.color-a(text-color, 11, title);
|
|
278
|
+
}
|
|
265
279
|
}
|
|
266
280
|
|
|
267
281
|
@include m.e(empty) {
|
|
@@ -313,14 +327,18 @@ $root-name: expression-editor;
|
|
|
313
327
|
border-radius: fn.use-var(radius, small);
|
|
314
328
|
cursor: pointer;
|
|
315
329
|
transition:
|
|
316
|
-
color
|
|
317
|
-
background-color
|
|
330
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
331
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
318
332
|
|
|
319
333
|
&:hover {
|
|
320
334
|
color: fn.use-var(color, primary);
|
|
321
335
|
background-color: fn.use-var(bg-color, hover);
|
|
322
336
|
}
|
|
323
337
|
|
|
338
|
+
&:active {
|
|
339
|
+
background-color: fn.color-a(text-color, 11, title);
|
|
340
|
+
}
|
|
341
|
+
|
|
324
342
|
&--active {
|
|
325
343
|
color: fn.use-var(color, primary);
|
|
326
344
|
font-weight: 600;
|
|
@@ -134,7 +134,8 @@
|
|
|
134
134
|
cursor: pointer;
|
|
135
135
|
transition:
|
|
136
136
|
background fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
137
|
-
color fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
137
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
138
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
138
139
|
|
|
139
140
|
&::before {
|
|
140
141
|
position: absolute;
|
|
@@ -156,6 +157,10 @@
|
|
|
156
157
|
background: fn.use-var(bg-color, hover);
|
|
157
158
|
}
|
|
158
159
|
|
|
160
|
+
&:active {
|
|
161
|
+
transform: translateY(1px);
|
|
162
|
+
}
|
|
163
|
+
|
|
159
164
|
@include m.is(active) {
|
|
160
165
|
background: fn.color-a(color, 8, primary);
|
|
161
166
|
|
|
@@ -647,13 +652,18 @@
|
|
|
647
652
|
transition:
|
|
648
653
|
background fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
649
654
|
border-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
650
|
-
color fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
655
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
656
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
651
657
|
|
|
652
658
|
&:hover {
|
|
653
659
|
background: fn.use-var(bg-color, hover);
|
|
654
660
|
color: fn.use-var(text-color, main);
|
|
655
661
|
}
|
|
656
662
|
|
|
663
|
+
&:active {
|
|
664
|
+
transform: translateY(1px);
|
|
665
|
+
}
|
|
666
|
+
|
|
657
667
|
@include m.is(active) {
|
|
658
668
|
color: fn.use-var(color, primary);
|
|
659
669
|
background: fn.color-a(color, 11, primary);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:size="size"
|
|
15
15
|
:type="item.type ?? 'primary'"
|
|
16
16
|
ref="itemsRef"
|
|
17
|
-
:style="{ transitionDelay: index * 0.1 + 's' }"
|
|
17
|
+
:style="{ transitionDelay: hovered ? index * 0.1 + 's' : '0s' }"
|
|
18
18
|
@transitionend="handleTransitionEnd(index, $event)"
|
|
19
19
|
@click="emit('click', item.key)"
|
|
20
20
|
:title="item.name ?? item.key"
|
|
@@ -15,9 +15,10 @@ $root-name: 'float-button';
|
|
|
15
15
|
|
|
16
16
|
@include m.e(item) {
|
|
17
17
|
box-shadow: fn.use-var(shadow, lg);
|
|
18
|
-
transition
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
transition:
|
|
19
|
+
transform fn.use-var(transition, normal) fn.use-var(transition, ease-out),
|
|
20
|
+
opacity fn.use-var(transition, normal) fn.use-var(transition, ease-out);
|
|
21
|
+
transform: scale(0.9);
|
|
21
22
|
opacity: 0;
|
|
22
23
|
display: none;
|
|
23
24
|
|
|
@@ -139,6 +139,20 @@ $root-name: form-item;
|
|
|
139
139
|
.#{$root-name}-tips-enter-active,
|
|
140
140
|
.#{$root-name}-tips-leave-active {
|
|
141
141
|
transition:
|
|
142
|
-
transform
|
|
143
|
-
opacity
|
|
142
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
143
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// 弱动效:只保留透明度过渡,去掉位移
|
|
147
|
+
@media (prefers-reduced-motion: reduce) {
|
|
148
|
+
.#{$root-name}-tips-enter-from,
|
|
149
|
+
.#{$root-name}-tips-leave-to {
|
|
150
|
+
transform: none;
|
|
151
|
+
opacity: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$root-name}-tips-enter-active,
|
|
155
|
+
.#{$root-name}-tips-leave-active {
|
|
156
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
157
|
+
}
|
|
144
158
|
}
|
|
@@ -38,9 +38,9 @@ $root-name: grid-input;
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
// 已输入数字保持静态主色,呼吸只作用于光标
|
|
41
42
|
@include m.bem($root-name, item, text) {
|
|
42
43
|
color: fn.use-var(color, primary);
|
|
43
|
-
animation: fade 1s linear infinite alternate;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@include m.bem($root-name, item, cursor) {
|
|
@@ -53,6 +53,11 @@ $root-name: grid-input;
|
|
|
53
53
|
left: 50%;
|
|
54
54
|
transform: translate(-50%, -50%);
|
|
55
55
|
animation: fade 1s linear infinite alternate;
|
|
56
|
+
|
|
57
|
+
// 降级:光标常亮,不闪烁
|
|
58
|
+
@media (prefers-reduced-motion: reduce) {
|
|
59
|
+
animation: none;
|
|
60
|
+
}
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
63
|
}
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@include m.e(item) {
|
|
53
|
+
position: relative;
|
|
53
54
|
width: 100%;
|
|
54
55
|
min-height: var(--u-nav-height-default);
|
|
55
56
|
margin: 0;
|
|
@@ -60,7 +61,8 @@
|
|
|
60
61
|
border-radius: calc(fn.use-var(radius, default) + 4px);
|
|
61
62
|
transition:
|
|
62
63
|
background-color 0.15s ease,
|
|
63
|
-
color 0.15s ease
|
|
64
|
+
color 0.15s ease,
|
|
65
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
64
66
|
|
|
65
67
|
@include m.flex;
|
|
66
68
|
|
|
@@ -69,23 +71,38 @@
|
|
|
69
71
|
color: var(--u-nav-hover-color);
|
|
70
72
|
}
|
|
71
73
|
|
|
74
|
+
@include m.is-not(disabled) {
|
|
75
|
+
&:active {
|
|
76
|
+
transform: scale(0.97);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// active 左侧指示条:默认纵向收起且透明,激活时展开淡入
|
|
81
|
+
&::before {
|
|
82
|
+
content: '';
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 0;
|
|
85
|
+
top: 50%;
|
|
86
|
+
width: 3px;
|
|
87
|
+
height: 56%;
|
|
88
|
+
min-height: 10px;
|
|
89
|
+
border-radius: 9999px;
|
|
90
|
+
background-color: fn.use-var(color, primary);
|
|
91
|
+
transform: translateY(-50%) scaleY(0);
|
|
92
|
+
opacity: 0;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
transition:
|
|
95
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
96
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
97
|
+
}
|
|
98
|
+
|
|
72
99
|
@include m.is(active) {
|
|
73
|
-
position: relative;
|
|
74
100
|
background-color: var(--u-nav-active-bg);
|
|
75
101
|
color: var(--u-nav-active-color);
|
|
76
102
|
|
|
77
103
|
&::before {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
left: 0;
|
|
81
|
-
top: 50%;
|
|
82
|
-
width: 3px;
|
|
83
|
-
height: 56%;
|
|
84
|
-
min-height: 10px;
|
|
85
|
-
border-radius: 9999px;
|
|
86
|
-
background-color: fn.use-var(color, primary);
|
|
87
|
-
transform: translateY(-50%);
|
|
88
|
-
pointer-events: none;
|
|
104
|
+
transform: translateY(-50%) scaleY(1);
|
|
105
|
+
opacity: 1;
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
color: inherit;
|
|
23
23
|
vertical-align: middle;
|
|
24
24
|
user-select: none;
|
|
25
|
-
will-change: transform;
|
|
26
25
|
|
|
27
26
|
// 加载转圈
|
|
28
27
|
@include m.is(loading) {
|
|
29
28
|
transform-origin: center;
|
|
30
29
|
animation: rotating 2s linear infinite;
|
|
30
|
+
// 仅旋转期间需要合成层提示,避免全局常驻提层
|
|
31
|
+
will-change: transform;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
svg {
|
|
@@ -46,7 +46,8 @@ $root-name: image-cropper;
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
transition:
|
|
48
48
|
background fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
49
|
-
color fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
49
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
50
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
50
51
|
|
|
51
52
|
&:hover {
|
|
52
53
|
color: fn.use-var(color, primary);
|
|
@@ -58,6 +59,10 @@ $root-name: image-cropper;
|
|
|
58
59
|
background: fn.color-a(color, 16, primary);
|
|
59
60
|
}
|
|
60
61
|
|
|
62
|
+
&:active {
|
|
63
|
+
transform: translateY(1px);
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
&:focus-visible {
|
|
62
67
|
box-shadow: fn.use-var(focus-ring);
|
|
63
68
|
}
|