@veltra/desktop 1.14.1 → 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/style.d.ts +0 -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/cascade.js +13 -19
- package/dist/components/cascade/cascade.js.map +1 -1
- package/dist/components/cascade/style.d.ts +1 -3
- 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 +6 -16
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox/style.d.ts +1 -1
- package/dist/components/checkbox/style.js +0 -1
- package/dist/components/checkbox/style2.css +32 -2
- package/dist/components/checkbox-group/style.d.ts +1 -1
- package/dist/components/chip/chip.js +63 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/style.d.ts +1 -0
- package/dist/components/chip/style.js +1 -0
- package/dist/components/chip/style2.css +94 -0
- package/dist/components/chip-group/chip-group.js +279 -0
- package/dist/components/chip-group/chip-group.js.map +1 -0
- package/dist/components/chip-group/reveal.js +80 -0
- package/dist/components/chip-group/reveal.js.map +1 -0
- package/dist/components/chip-group/style.d.ts +1 -0
- package/dist/components/chip-group/style.js +2 -0
- package/dist/components/chip-group/style2.css +68 -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/style.d.ts +0 -1
- 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/date-picker/style.d.ts +1 -2
- package/dist/components/date-range-picker/date-range-picker.js +14 -20
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +5 -2
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/dialog/style2.css +5 -11
- package/dist/components/dialog/use-maximum.js +83 -20
- package/dist/components/dialog/use-maximum.js.map +1 -1
- package/dist/components/drawer/style2.css +8 -4
- 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/index.d.ts +32 -30
- package/dist/components/index.js +63 -59
- package/dist/components/index.js.map +1 -1
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js +13 -19
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input/style.d.ts +1 -1
- package/dist/components/input/style.js +0 -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 +31 -2
- package/dist/components/message-confirm/style2.css +21 -0
- package/dist/components/multi-select/multi-select.js +33 -36
- package/dist/components/multi-select/multi-select.js.map +1 -1
- package/dist/components/multi-select/style.d.ts +1 -4
- package/dist/components/multi-select/style.js +0 -1
- package/dist/components/multi-select/style2.css +13 -0
- package/dist/components/multi-tree-select/multi-tree-select.js +10 -19
- package/dist/components/multi-tree-select/multi-tree-select.js.map +1 -1
- package/dist/components/multi-tree-select/style.d.ts +1 -5
- package/dist/components/multi-tree-select/style.js +0 -1
- package/dist/components/nav/nav-sub.js +62 -51
- package/dist/components/nav/nav-sub.js.map +1 -1
- package/dist/components/nav/style2.css +50 -26
- package/dist/components/notification/notification-box.js +4 -2
- package/dist/components/notification/notification-box.js.map +1 -1
- package/dist/components/notification/style2.css +37 -0
- package/dist/components/number-input/style.d.ts +0 -1
- package/dist/components/number-input/style2.css +5 -2
- package/dist/components/paginator/style2.css +1 -0
- package/dist/components/palette/style.d.ts +1 -2
- package/dist/components/password-input/style.d.ts +1 -1
- 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 +2 -8
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio/style.d.ts +1 -1
- package/dist/components/radio/style.js +0 -1
- package/dist/components/radio/style2.css +11 -1
- package/dist/components/radio-group/style.d.ts +1 -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 +27 -13
- package/dist/components/segment/segment.js +54 -3
- package/dist/components/segment/segment.js.map +1 -1
- package/dist/components/segment/style2.css +26 -2
- package/dist/components/select/select.js +29 -26
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/style.d.ts +0 -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/style.d.ts +1 -3
- package/dist/components/table/style2.css +20 -7
- package/dist/components/tabs/style.d.ts +1 -2
- package/dist/components/tabs/style.js +0 -1
- package/dist/components/tabs/style2.css +37 -2
- package/dist/components/tabs/tabs-horizontal.js +7 -3
- package/dist/components/tabs/tabs-horizontal.js.map +1 -1
- package/dist/components/tabs/tabs.js +2 -8
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/tabs/use-tabs-bar.js +41 -9
- package/dist/components/tabs/use-tabs-bar.js.map +1 -1
- package/dist/components/tag/style2.css +19 -10
- package/dist/components/textarea/style.d.ts +1 -1
- package/dist/components/textarea/style.js +0 -1
- package/dist/components/textarea/style2.css +9 -1
- package/dist/components/textarea/textarea.js +7 -13
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/theme/style.d.ts +0 -1
- package/dist/components/theme/style2.css +43 -30
- package/dist/components/time-picker/style.d.ts +1 -2
- package/dist/components/time-picker/style2.css +4 -1
- package/dist/components/tip/style2.css +16 -5
- package/dist/components/tip/tip.js +22 -1
- package/dist/components/tip/tip.js.map +1 -1
- package/dist/components/transfer/style.d.ts +1 -2
- 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/style.d.ts +1 -1
- package/dist/components/tree/style2.css +5 -2
- package/dist/components/tree-select/style.d.ts +1 -3
- package/dist/components/tree-select/tree-select.js +24 -25
- package/dist/components/tree-select/tree-select.js.map +1 -1
- package/dist/index.d.ts +86 -82
- package/dist/index.js +84 -82
- package/dist/style.d.ts +0 -8
- package/dist/style.js +2 -0
- package/dist/types/chip-group.d.ts +35 -0
- package/dist/types/chip.d.ts +28 -0
- package/dist/types/index.d.ts +3 -1
- 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/cascade.vue +9 -11
- 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 +10 -8
- package/src/components/checkbox/style.scss +51 -2
- package/src/components/checkbox/style.ts +0 -1
- package/src/components/chip/__test__/chip.test.ts +69 -0
- package/src/components/chip/chip.vue +54 -0
- package/src/components/chip/index.ts +1 -0
- package/src/components/chip/style.scss +102 -0
- package/src/components/chip/style.ts +1 -0
- package/src/components/chip-group/__test__/chip-group.test.ts +411 -0
- package/src/components/chip-group/__test__/reveal.test.ts +74 -0
- package/src/components/chip-group/chip-group.vue +326 -0
- package/src/components/chip-group/index.ts +1 -0
- package/src/components/chip-group/reveal.ts +106 -0
- package/src/components/chip-group/style.scss +72 -0
- package/src/components/chip-group/style.ts +2 -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/date-range-picker/date-range-picker.vue +10 -12
- package/src/components/dialog/dialog.vue +2 -1
- package/src/components/dialog/style.scss +6 -13
- package/src/components/dialog/use-maximum.ts +95 -27
- package/src/components/drawer/style.scss +6 -1
- 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/index.ts +4 -0
- package/src/components/input/input.vue +8 -16
- package/src/components/input/style.scss +19 -1
- package/src/components/input/style.ts +0 -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 +35 -2
- package/src/components/message-confirm/style.scss +27 -0
- package/src/components/multi-select/multi-select.vue +21 -20
- package/src/components/multi-select/style.scss +14 -0
- package/src/components/multi-select/style.ts +0 -1
- package/src/components/multi-tree-select/__test__/multi-tree-select.test.ts +4 -2
- package/src/components/multi-tree-select/multi-tree-select.vue +8 -10
- package/src/components/multi-tree-select/style.ts +0 -1
- package/src/components/nav/nav-sub.vue +30 -11
- package/src/components/nav/style.scss +37 -13
- package/src/components/notification/notification-box.vue +5 -2
- package/src/components/notification/style.scss +31 -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 -3
- package/src/components/radio/style.scss +19 -1
- package/src/components/radio/style.ts +0 -1
- package/src/components/rate/style.scss +9 -0
- package/src/components/rich-text-editor/style.scss +13 -3
- package/src/components/scroll/style.scss +39 -20
- package/src/components/segment/segment.vue +56 -2
- package/src/components/segment/style.scss +32 -2
- package/src/components/select/select.vue +25 -20
- package/src/components/select/style.scss +22 -1
- package/src/components/steps/style.scss +27 -5
- package/src/components/switch/style.scss +16 -2
- package/src/components/table/style.scss +44 -20
- package/src/components/tabs/style.scss +50 -2
- package/src/components/tabs/style.ts +0 -1
- package/src/components/tabs/tabs-horizontal.vue +2 -1
- package/src/components/tabs/tabs.vue +4 -6
- package/src/components/tabs/use-tabs-bar.ts +55 -8
- package/src/components/tag/style.scss +22 -5
- package/src/components/textarea/style.scss +15 -2
- package/src/components/textarea/style.ts +0 -1
- package/src/components/textarea/textarea.vue +7 -9
- package/src/components/theme/style.scss +73 -31
- package/src/components/time-picker/style.scss +9 -1
- package/src/components/tip/style.scss +18 -5
- package/src/components/tip/tip.vue +33 -1
- 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
- package/src/components/tree-select/tree-select.vue +21 -17
- package/src/style.ts +2 -0
- package/src/types/chip-group.ts +36 -0
- package/src/types/chip.ts +29 -0
- package/src/types/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,123 +1,125 @@
|
|
|
1
|
-
import _sfc_main$
|
|
2
|
-
import _sfc_main$
|
|
3
|
-
import _sfc_main$
|
|
1
|
+
import _sfc_main$55 from "./components/icon/icon.js";
|
|
2
|
+
import _sfc_main$44 from "./components/empty/empty.js";
|
|
3
|
+
import _sfc_main$85 from "./components/scroll/scroll.js";
|
|
4
4
|
import NodeRender from "./components/node-render/node-render.js";
|
|
5
|
-
import _sfc_main$
|
|
5
|
+
import _sfc_main$105 from "./components/tip/tip.js";
|
|
6
6
|
import { createEmptyGroup, createEmptyLeaf, evaluate } from "./components/condition-editor/core/evaluator.js";
|
|
7
|
-
import _sfc_main$
|
|
7
|
+
import _sfc_main$42 from "./components/dropdown/dropdown.js";
|
|
8
8
|
import input_default from "./components/input/input.js";
|
|
9
|
-
import _sfc_main$
|
|
9
|
+
import _sfc_main$63 from "./components/loading/loading.js";
|
|
10
10
|
import { vLoading } from "./components/loading/directive.js";
|
|
11
|
-
import _sfc_main$
|
|
12
|
-
import _sfc_main$
|
|
13
|
-
import _sfc_main$
|
|
14
|
-
import _sfc_main$
|
|
15
|
-
import _sfc_main$
|
|
11
|
+
import _sfc_main$87 from "./components/select/select.js";
|
|
12
|
+
import _sfc_main$32 from "./components/condition-editor/condition-editor.js";
|
|
13
|
+
import _sfc_main$96 from "./components/tabs/tabs-horizontal.js";
|
|
14
|
+
import _sfc_main$97 from "./components/tabs/tabs-vertical.js";
|
|
15
|
+
import _sfc_main$95 from "./components/tabs/tabs.js";
|
|
16
16
|
import _sfc_main$24 from "./components/checkbox/checkbox.js";
|
|
17
|
-
import _sfc_main$
|
|
18
|
-
import _sfc_main$
|
|
19
|
-
import _sfc_main$
|
|
20
|
-
import _sfc_main$
|
|
21
|
-
import _sfc_main$
|
|
22
|
-
import _sfc_main$
|
|
17
|
+
import _sfc_main$107 from "./components/tree/tree.js";
|
|
18
|
+
import _sfc_main$108 from "./components/tree-select/tree-select.js";
|
|
19
|
+
import _sfc_main$29 from "./components/code-editor/code-editor.js";
|
|
20
|
+
import _sfc_main$41 from "./components/drawer/drawer.js";
|
|
21
|
+
import _sfc_main$50 from "./components/grid/grid.js";
|
|
22
|
+
import _sfc_main$52 from "./components/grid/grid-item.js";
|
|
23
23
|
import form_item_default from "./components/form-item/form-item.js";
|
|
24
24
|
import form_default from "./components/form/form.js";
|
|
25
25
|
import _sfc_main$12 from "./components/button/button.js";
|
|
26
26
|
import _sfc_main$13 from "./components/button/button-group.js";
|
|
27
|
-
import _sfc_main$
|
|
27
|
+
import _sfc_main$65 from "./components/message-confirm/message-confirm.js";
|
|
28
28
|
import { messageConfirm } from "./components/message-confirm/message-confirm2.js";
|
|
29
29
|
import _sfc_main$14 from "./components/calendar/calendar.js";
|
|
30
|
-
import _sfc_main$
|
|
30
|
+
import _sfc_main$81 from "./components/radio/radio.js";
|
|
31
31
|
import _sfc_main$15 from "./components/card/card.js";
|
|
32
32
|
import _sfc_main$19 from "./components/card/card-header.js";
|
|
33
33
|
import _sfc_main$18 from "./components/card/card-cover.js";
|
|
34
34
|
import _sfc_main$17 from "./components/card/card-content.js";
|
|
35
35
|
import _sfc_main$16 from "./components/card/card-action.js";
|
|
36
|
-
import _sfc_main$
|
|
37
|
-
import _sfc_main$
|
|
38
|
-
import _sfc_main$
|
|
36
|
+
import _sfc_main$34 from "./components/date-panel/date-panel.js";
|
|
37
|
+
import _sfc_main$36 from "./components/date-range-picker/date-range-picker.js";
|
|
38
|
+
import _sfc_main$80 from "./components/progress-nodes/progress-nodes.js";
|
|
39
39
|
import _sfc_main$5 from "./components/auto-complete/auto-complete.js";
|
|
40
|
-
import _sfc_main$
|
|
41
|
-
import _sfc_main$
|
|
40
|
+
import _sfc_main$79 from "./components/progress/progress.js";
|
|
41
|
+
import _sfc_main$71 from "./components/notification/notification.js";
|
|
42
42
|
import { notification } from "./components/notification/notification2.js";
|
|
43
|
-
import _sfc_main$
|
|
44
|
-
import _sfc_main$
|
|
43
|
+
import _sfc_main$60 from "./components/layout/layout.js";
|
|
44
|
+
import _sfc_main$98 from "./components/tag/tag.js";
|
|
45
45
|
import _sfc_main$25 from "./components/checkbox/checkbox-button.js";
|
|
46
|
-
import _sfc_main$
|
|
47
|
-
import _sfc_main$
|
|
48
|
-
import _sfc_main$
|
|
49
|
-
import _sfc_main$
|
|
46
|
+
import _sfc_main$66 from "./components/multi-select/multi-select.js";
|
|
47
|
+
import _sfc_main$89 from "./components/slider/slider.js";
|
|
48
|
+
import _sfc_main$49 from "./components/gantt-chart/gantt-chart.js";
|
|
49
|
+
import _sfc_main$64 from "./components/message/message.js";
|
|
50
50
|
import { message } from "./components/message/message2.js";
|
|
51
|
-
import _sfc_main$
|
|
52
|
-
import _sfc_main$
|
|
53
|
-
import _sfc_main$
|
|
54
|
-
import _sfc_main$
|
|
55
|
-
import _sfc_main$
|
|
51
|
+
import _sfc_main$46 from "./components/file-picker/file-picker.js";
|
|
52
|
+
import _sfc_main$73 from "./components/number-input/number-input.js";
|
|
53
|
+
import _sfc_main$74 from "./components/number-range-input/number-range-input.js";
|
|
54
|
+
import _sfc_main$30 from "./components/collapse/collapse.js";
|
|
55
|
+
import _sfc_main$31 from "./components/collapse/collapse-item.js";
|
|
56
56
|
import { defineTableColumns } from "./components/table/use-columns.js";
|
|
57
|
-
import _sfc_main$
|
|
58
|
-
import _sfc_main$
|
|
57
|
+
import _sfc_main$93 from "./components/table/table.js";
|
|
58
|
+
import _sfc_main$94 from "./components/table-editor/table-editor.js";
|
|
59
59
|
import _sfc_main$23 from "./components/check-tag/check-tag.js";
|
|
60
60
|
import { ContextmenuPanelDIKey, ContextmenuRootDIKey } from "./components/contextmenu/di.js";
|
|
61
|
-
import _sfc_main$
|
|
61
|
+
import _sfc_main$33 from "./components/contextmenu/contextmenu.js";
|
|
62
62
|
import { contextmenu } from "./components/contextmenu/api.js";
|
|
63
|
-
import _sfc_main$
|
|
64
|
-
import _sfc_main$
|
|
65
|
-
import _sfc_main$
|
|
66
|
-
import _sfc_main$
|
|
67
|
-
import _sfc_main$
|
|
68
|
-
import _sfc_main$
|
|
69
|
-
import _sfc_main$
|
|
63
|
+
import _sfc_main$77 from "./components/password-input/password-input.js";
|
|
64
|
+
import _sfc_main$72 from "./components/number/number.js";
|
|
65
|
+
import _sfc_main$39 from "./components/dialog/dialog.js";
|
|
66
|
+
import _sfc_main$45 from "./components/expression-editor/expression-editor.js";
|
|
67
|
+
import _sfc_main$109 from "./components/watermark/watermark.js";
|
|
68
|
+
import _sfc_main$59 from "./components/kbd/kbd.js";
|
|
69
|
+
import _sfc_main$78 from "./components/pop-confirm/pop-confirm.js";
|
|
70
70
|
import _sfc_main from "./components/action/action.js";
|
|
71
71
|
import action_group_default from "./components/action/action-group.js";
|
|
72
72
|
import _sfc_main$10 from "./components/batch-edit/batch-edit.js";
|
|
73
73
|
import { defineBatchEditColumns } from "./components/batch-edit/helper.js";
|
|
74
|
-
import _sfc_main$
|
|
75
|
-
import _sfc_main$
|
|
74
|
+
import _sfc_main$106 from "./components/transfer/transfer.js";
|
|
75
|
+
import _sfc_main$100 from "./components/textarea/textarea.js";
|
|
76
76
|
import _sfc_main$22 from "./components/cascade/cascade.js";
|
|
77
|
-
import _sfc_main$
|
|
78
|
-
import _sfc_main$
|
|
79
|
-
import _sfc_main$
|
|
80
|
-
import _sfc_main$
|
|
81
|
-
import _sfc_main$
|
|
82
|
-
import _sfc_main$
|
|
83
|
-
import _sfc_main$
|
|
84
|
-
import _sfc_main$
|
|
85
|
-
import _sfc_main$
|
|
86
|
-
import _sfc_main$
|
|
87
|
-
import _sfc_main$
|
|
88
|
-
import _sfc_main$
|
|
89
|
-
import _sfc_main$
|
|
90
|
-
import _sfc_main$
|
|
91
|
-
import _sfc_main$
|
|
92
|
-
import _sfc_main$
|
|
93
|
-
import _sfc_main$
|
|
77
|
+
import _sfc_main$91 from "./components/steps/steps.js";
|
|
78
|
+
import _sfc_main$35 from "./components/date-picker/date-picker.js";
|
|
79
|
+
import _sfc_main$76 from "./components/palette/palette.js";
|
|
80
|
+
import _sfc_main$101 from "./components/theme/theme.js";
|
|
81
|
+
import _sfc_main$67 from "./components/multi-tree-select/multi-tree-select.js";
|
|
82
|
+
import _sfc_main$53 from "./components/group-input/group-input.js";
|
|
83
|
+
import _sfc_main$61 from "./components/list/list.js";
|
|
84
|
+
import _sfc_main$62 from "./components/list/list-item.js";
|
|
85
|
+
import _sfc_main$84 from "./components/rich-text-editor/rich-text-editor.js";
|
|
86
|
+
import _sfc_main$69 from "./components/nav/nav-item.js";
|
|
87
|
+
import _sfc_main$70 from "./components/nav/nav-sub.js";
|
|
88
|
+
import _sfc_main$68 from "./components/nav/nav.js";
|
|
89
|
+
import _sfc_main$43 from "./components/dual-nav/dual-nav.js";
|
|
90
|
+
import _sfc_main$54 from "./components/group-nav/group-nav.js";
|
|
91
|
+
import _sfc_main$51 from "./components/grid-input/grid-input.js";
|
|
92
|
+
import _sfc_main$92 from "./components/switch/switch.js";
|
|
93
|
+
import _sfc_main$82 from "./components/radio-group/radio-group.js";
|
|
94
|
+
import _sfc_main$27 from "./components/chip/chip.js";
|
|
95
|
+
import _sfc_main$28 from "./components/chip-group/chip-group.js";
|
|
94
96
|
import _sfc_main$26 from "./components/checkbox-group/checkbox-group.js";
|
|
95
|
-
import _sfc_main$
|
|
96
|
-
import _sfc_main$
|
|
97
|
+
import _sfc_main$47 from "./components/file-viewer/file-viewer.js";
|
|
98
|
+
import _sfc_main$99 from "./components/text/text.js";
|
|
97
99
|
import _sfc_main$11 from "./components/breadcrumb/breadcrumb.js";
|
|
98
|
-
import _sfc_main$
|
|
99
|
-
import _sfc_main$
|
|
100
|
+
import _sfc_main$75 from "./components/paginator/paginator.js";
|
|
101
|
+
import _sfc_main$48 from "./components/float-button/float-button.js";
|
|
100
102
|
import _sfc_main$9 from "./components/badge/badge.js";
|
|
101
|
-
import _sfc_main$
|
|
102
|
-
import _sfc_main$
|
|
103
|
-
import _sfc_main$
|
|
104
|
-
import _sfc_main$
|
|
103
|
+
import _sfc_main$86 from "./components/segment/segment.js";
|
|
104
|
+
import _sfc_main$56 from "./components/image-cropper/image-cropper.js";
|
|
105
|
+
import _sfc_main$57 from "./components/image-previewer/image-previewer.js";
|
|
106
|
+
import _sfc_main$58 from "./components/kanban/kanban.js";
|
|
105
107
|
import _sfc_main$3 from "./components/anchor/anchor.js";
|
|
106
108
|
import _sfc_main$4 from "./components/anchor/anchor-item.js";
|
|
107
109
|
import _sfc_main$6 from "./components/avatar/avatar.js";
|
|
108
110
|
import _sfc_main$7 from "./components/avatar/avatar-group.js";
|
|
109
111
|
import _sfc_main$8 from "./components/back-top/back-top.js";
|
|
110
112
|
import _sfc_main$2 from "./components/alert/alert.js";
|
|
111
|
-
import _sfc_main$
|
|
112
|
-
import _sfc_main$
|
|
113
|
-
import _sfc_main$
|
|
114
|
-
import _sfc_main$
|
|
115
|
-
import _sfc_main$
|
|
116
|
-
import _sfc_main$
|
|
117
|
-
import _sfc_main$
|
|
118
|
-
import _sfc_main$
|
|
119
|
-
import _sfc_main$
|
|
113
|
+
import _sfc_main$83 from "./components/rate/rate.js";
|
|
114
|
+
import _sfc_main$40 from "./components/divider/divider.js";
|
|
115
|
+
import _sfc_main$90 from "./components/space/space.js";
|
|
116
|
+
import _sfc_main$88 from "./components/skeleton/skeleton.js";
|
|
117
|
+
import _sfc_main$102 from "./components/time-picker/time-picker.js";
|
|
118
|
+
import _sfc_main$38 from "./components/descriptions/descriptions-item.js";
|
|
119
|
+
import _sfc_main$37 from "./components/descriptions/descriptions.js";
|
|
120
|
+
import _sfc_main$103 from "./components/timeline/timeline.js";
|
|
121
|
+
import _sfc_main$104 from "./components/timeline/timeline-item.js";
|
|
120
122
|
import _sfc_main$20 from "./components/carousel/carousel.js";
|
|
121
123
|
import _sfc_main$21 from "./components/carousel/carousel-item.js";
|
|
122
124
|
import _sfc_main$1 from "./components/ai-button/ai-button.js";
|
|
123
|
-
export { ContextmenuPanelDIKey, ContextmenuRootDIKey, _sfc_main as UAction, action_group_default as UActionGroup, _sfc_main$1 as UAiButton, _sfc_main$2 as UAlert, _sfc_main$3 as UAnchor, _sfc_main$4 as UAnchorItem, _sfc_main$5 as UAutoComplete, _sfc_main$6 as UAvatar, _sfc_main$7 as UAvatarGroup, _sfc_main$8 as UBackTop, _sfc_main$9 as UBadge, _sfc_main$10 as UBatchEdit, _sfc_main$11 as UBreadcrumb, _sfc_main$12 as UButton, _sfc_main$13 as UButtonGroup, _sfc_main$14 as UCalendar, _sfc_main$15 as UCard, _sfc_main$16 as UCardAction, _sfc_main$17 as UCardContent, _sfc_main$18 as UCardCover, _sfc_main$19 as UCardHeader, _sfc_main$20 as UCarousel, _sfc_main$21 as UCarouselItem, _sfc_main$22 as UCascade, _sfc_main$23 as UCheckTag, _sfc_main$24 as UCheckbox, _sfc_main$25 as UCheckboxButton, _sfc_main$26 as UCheckboxGroup, _sfc_main$27 as
|
|
125
|
+
export { ContextmenuPanelDIKey, ContextmenuRootDIKey, _sfc_main as UAction, action_group_default as UActionGroup, _sfc_main$1 as UAiButton, _sfc_main$2 as UAlert, _sfc_main$3 as UAnchor, _sfc_main$4 as UAnchorItem, _sfc_main$5 as UAutoComplete, _sfc_main$6 as UAvatar, _sfc_main$7 as UAvatarGroup, _sfc_main$8 as UBackTop, _sfc_main$9 as UBadge, _sfc_main$10 as UBatchEdit, _sfc_main$11 as UBreadcrumb, _sfc_main$12 as UButton, _sfc_main$13 as UButtonGroup, _sfc_main$14 as UCalendar, _sfc_main$15 as UCard, _sfc_main$16 as UCardAction, _sfc_main$17 as UCardContent, _sfc_main$18 as UCardCover, _sfc_main$19 as UCardHeader, _sfc_main$20 as UCarousel, _sfc_main$21 as UCarouselItem, _sfc_main$22 as UCascade, _sfc_main$23 as UCheckTag, _sfc_main$24 as UCheckbox, _sfc_main$25 as UCheckboxButton, _sfc_main$26 as UCheckboxGroup, _sfc_main$27 as UChip, _sfc_main$28 as UChipGroup, _sfc_main$29 as UCodeEditor, _sfc_main$30 as UCollapse, _sfc_main$31 as UCollapseItem, _sfc_main$32 as UConditionEditor, _sfc_main$33 as UContextmenu, _sfc_main$34 as UDatePanel, _sfc_main$35 as UDatePicker, _sfc_main$36 as UDateRangePicker, _sfc_main$37 as UDescriptions, _sfc_main$38 as UDescriptionsItem, _sfc_main$39 as UDialog, _sfc_main$40 as UDivider, _sfc_main$41 as UDrawer, _sfc_main$42 as UDropdown, _sfc_main$43 as UDualNav, _sfc_main$44 as UEmpty, _sfc_main$45 as UExpressionEditor, _sfc_main$46 as UFilePicker, _sfc_main$47 as UFileViewer, _sfc_main$48 as UFloatButton, form_default as UForm, form_item_default as UFormItem, _sfc_main$49 as UGanttChart, _sfc_main$50 as UGrid, _sfc_main$51 as UGridInput, _sfc_main$52 as UGridItem, _sfc_main$53 as UGroupInput, _sfc_main$54 as UGroupNav, _sfc_main$55 as UIcon, _sfc_main$56 as UImageCropper, _sfc_main$57 as UImagePreviewer, input_default as UInput, _sfc_main$58 as UKanban, _sfc_main$59 as UKbd, _sfc_main$60 as ULayout, _sfc_main$61 as UList, _sfc_main$62 as UListItem, _sfc_main$63 as ULoading, _sfc_main$64 as UMessage, _sfc_main$65 as UMessageConfirm, _sfc_main$66 as UMultiSelect, _sfc_main$67 as UMultiTreeSelect, _sfc_main$68 as UNav, _sfc_main$69 as UNavItem, _sfc_main$70 as UNavSub, NodeRender as UNodeRender, _sfc_main$71 as UNotification, _sfc_main$72 as UNumber, _sfc_main$73 as UNumberInput, _sfc_main$74 as UNumberRangeInput, _sfc_main$75 as UPaginator, _sfc_main$76 as UPalette, _sfc_main$77 as UPasswordInput, _sfc_main$78 as UPopConfirm, _sfc_main$79 as UProgress, _sfc_main$80 as UProgressNodes, _sfc_main$81 as URadio, _sfc_main$82 as URadioGroup, _sfc_main$83 as URate, _sfc_main$84 as URichTextEditor, _sfc_main$85 as UScroll, _sfc_main$86 as USegment, _sfc_main$87 as USelect, _sfc_main$88 as USkeleton, _sfc_main$89 as USlider, _sfc_main$90 as USpace, _sfc_main$91 as USteps, _sfc_main$92 as USwitch, _sfc_main$93 as UTable, _sfc_main$94 as UTableEditor, _sfc_main$95 as UTabs, _sfc_main$96 as UTabsHorizontal, _sfc_main$97 as UTabsVertical, _sfc_main$98 as UTag, _sfc_main$99 as UText, _sfc_main$100 as UTextarea, _sfc_main$101 as UTheme, _sfc_main$102 as UTimePicker, _sfc_main$103 as UTimeline, _sfc_main$104 as UTimelineItem, _sfc_main$105 as UTip, _sfc_main$106 as UTransfer, _sfc_main$107 as UTree, _sfc_main$108 as UTreeSelect, _sfc_main$109 as UWatermark, contextmenu, createEmptyGroup, createEmptyLeaf, defineBatchEditColumns, defineTableColumns, evaluate as evaluateConditionExpression, message, messageConfirm, notification, vLoading };
|
package/dist/style.d.ts
CHANGED
|
@@ -2,15 +2,11 @@ import "./components/button/style.js";
|
|
|
2
2
|
import "./components/pop-confirm/style.js";
|
|
3
3
|
import "./components/action/style.js";
|
|
4
4
|
import "./components/dropdown/style.js";
|
|
5
|
-
import "./components/input/style.js";
|
|
6
5
|
import "./components/auto-complete/style.js";
|
|
7
6
|
import "./components/dialog/style.js";
|
|
8
|
-
import "./components/checkbox/style.js";
|
|
9
|
-
import "./components/radio/style.js";
|
|
10
7
|
import "./components/table/style.js";
|
|
11
8
|
import "./components/batch-edit/style.js";
|
|
12
9
|
import "./components/cascade/style.js";
|
|
13
|
-
import "./components/checkbox-group/style.js";
|
|
14
10
|
import "./components/select/style.js";
|
|
15
11
|
import "./components/code-editor/style.js";
|
|
16
12
|
import "./components/condition-editor/style.js";
|
|
@@ -23,16 +19,12 @@ import "./components/group-input/style.js";
|
|
|
23
19
|
import "./components/list/style.js";
|
|
24
20
|
import "./components/loading/style.js";
|
|
25
21
|
import "./components/multi-select/style.js";
|
|
26
|
-
import "./components/tree/style.js";
|
|
27
22
|
import "./components/multi-tree-select/style.js";
|
|
28
23
|
import "./components/number-input/style.js";
|
|
29
24
|
import "./components/number-range-input/style.js";
|
|
30
25
|
import "./components/paginator/style.js";
|
|
31
26
|
import "./components/palette/style.js";
|
|
32
|
-
import "./components/password-input/style.js";
|
|
33
|
-
import "./components/radio-group/style.js";
|
|
34
27
|
import "./components/table-editor/style.js";
|
|
35
28
|
import "./components/tabs/style.js";
|
|
36
|
-
import "./components/textarea/style.js";
|
|
37
29
|
import "./components/theme/style.js";
|
|
38
30
|
import "./components/tree-select/style.js";
|
package/dist/style.js
CHANGED
|
@@ -62,6 +62,8 @@ import "./components/palette/style.js";
|
|
|
62
62
|
import "./components/password-input/style.js";
|
|
63
63
|
import "./components/progress-nodes/style.js";
|
|
64
64
|
import "./components/progress/style.js";
|
|
65
|
+
import "./components/chip/style.js";
|
|
66
|
+
import "./components/chip-group/style.js";
|
|
65
67
|
import "./components/radio-group/style.js";
|
|
66
68
|
import "./components/rich-text-editor/style.js";
|
|
67
69
|
import "./components/segment/style.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
|
+
//#region src/types/chip-group.d.ts
|
|
3
|
+
/** 胶囊单选组组件属性 */
|
|
4
|
+
export interface ChipGroupProps extends FormComponentProps {
|
|
5
|
+
/** 绑定值,等于选中项的 value */
|
|
6
|
+
modelValue?: any;
|
|
7
|
+
/** 选项列表 */
|
|
8
|
+
items: Record<string, any>[];
|
|
9
|
+
/**
|
|
10
|
+
* 选项值字段名
|
|
11
|
+
* @default 'value'
|
|
12
|
+
*/
|
|
13
|
+
valueKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 标签文本字段名
|
|
16
|
+
* @default 'label'
|
|
17
|
+
*/
|
|
18
|
+
labelKey?: string;
|
|
19
|
+
/** 整组禁用 */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** 按项禁用:返回 true 的项不可选 */
|
|
22
|
+
disabledItem?: (item: Record<string, any>) => boolean;
|
|
23
|
+
}
|
|
24
|
+
/** 胶囊单选组组件事件 */
|
|
25
|
+
export interface ChipGroupEmits {
|
|
26
|
+
(e: 'update:modelValue', modelValue: any): void;
|
|
27
|
+
/** 选中项变化,payload 为完整选项对象 */
|
|
28
|
+
(e: 'change', item: Record<string, any>): void;
|
|
29
|
+
}
|
|
30
|
+
/** 胶囊单选组组件暴露的属性和方法(组件内部使用) */
|
|
31
|
+
export interface _ChipGroupExposed {}
|
|
32
|
+
/** 胶囊单选组组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
33
|
+
export type ChipGroupExposed = DeconstructValue<_ChipGroupExposed>;
|
|
34
|
+
//#endregion
|
|
35
|
+
//# sourceMappingURL=chip-group.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
|
+
//#region src/types/chip.d.ts
|
|
3
|
+
/** 胶囊单选组件属性 */
|
|
4
|
+
export interface ChipProps extends FormComponentProps {
|
|
5
|
+
/** 选项值 */
|
|
6
|
+
value?: any;
|
|
7
|
+
/** 文本;未提供默认插槽时使用 */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** 禁用 */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** 绑定值 */
|
|
12
|
+
modelValue?: any;
|
|
13
|
+
/**
|
|
14
|
+
* 原生 radio 的 name。
|
|
15
|
+
* 同一组单选必须相同,方向键才会在组内移动;UChipGroup 会自动传入。
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
}
|
|
19
|
+
/** 胶囊单选组件事件 */
|
|
20
|
+
export interface ChipEmits {
|
|
21
|
+
(e: 'update:modelValue', value: any): void;
|
|
22
|
+
}
|
|
23
|
+
/** 胶囊单选组件暴露的属性和方法(组件内部使用) */
|
|
24
|
+
export interface _ChipExposed {}
|
|
25
|
+
/** 胶囊单选组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
26
|
+
export type ChipExposed = DeconstructValue<_ChipExposed>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//# sourceMappingURL=chip.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { LayoutEmits, LayoutExposed, LayoutProps, _LayoutExposed } from "./layou
|
|
|
7
7
|
import { TagEmits, TagExposed, TagProps } from "./tag.js";
|
|
8
8
|
import { DateRangePickerDataType, DateRangePickerEmits, DateRangePickerExposed, DateRangePickerProps, DateRangeValue, _DateRangePickerExposed } from "./date-range-picker.js";
|
|
9
9
|
import { RadioGroupEmits, RadioGroupExposed, RadioGroupProps, _RadioGroupExposed } from "./radio-group.js";
|
|
10
|
+
import { ChipEmits, ChipExposed, ChipProps, _ChipExposed } from "./chip.js";
|
|
11
|
+
import { ChipGroupEmits, ChipGroupExposed, ChipGroupProps, _ChipGroupExposed } from "./chip-group.js";
|
|
10
12
|
import { ScrollEmits, ScrollExposed, ScrollPosition, ScrollProps, _ScrollExposed } from "./scroll.js";
|
|
11
13
|
import { WatermarkEmits, WatermarkExposed, WatermarkProps, _WatermarkExposed } from "./watermark.js";
|
|
12
14
|
import { ProgressEmits, ProgressExposed, ProgressProps, _ProgressExposed } from "./progress.js";
|
|
@@ -98,4 +100,4 @@ import { TimelineItemColor, TimelineItemProps, TimelineProps } from "./timeline.
|
|
|
98
100
|
import { CarouselEmits, CarouselItemProps, CarouselProps } from "./carousel.js";
|
|
99
101
|
import { AiButtonEmits, AiButtonExposed, AiButtonProps, AiButtonVariant, _AiButtonExposed } from "./ai-button.js";
|
|
100
102
|
export type * from "@veltra/utils";
|
|
101
|
-
export { ActionEmits, ActionExposed, ActionGroupExposed, ActionGroupProps, ActionProps, AiButtonEmits, AiButtonExposed, AiButtonProps, AiButtonVariant, AlertEmits, AlertExposed, AlertProps, AlertType, AnchorEmits, AnchorExposed, AnchorItemProps, AnchorProps, AnimationEmits, AnimationExposed, AnimationProps, AutoCompleteEmits, AutoCompleteExposed, AutoCompleteProps, AvatarEmits, AvatarExposed, AvatarGroupProps, AvatarProps, AvatarShape, BackTopEmits, BackTopExposed, BackTopProps, BadgeEmits, BadgeExposed, BadgeProps, BarType, BatchEditColumn, BatchEditEmits, BatchEditExposed, BatchEditFeature, BatchEditProps, BatchEditSlots, BatchEditStates, BreadcrumbEmits, BreadcrumbExposed, BreadcrumbItem, BreadcrumbProps, BreadcrumbSlotScope, BreakCols, Breakpoint, ButtonEmits, ButtonExposed, ButtonProps, ButtonType, CalendarDay, CalendarEmits, CalendarExposed, CalendarMonth, CalendarProps, CalendarYear, CardActionProps, CardContentProps, CardCoverProps, CardEmits, CardExposed, CardProps, CarouselEmits, CarouselItemProps, CarouselProps, CascadeEmits, CascadeExposed, CascadeNode, CascadeProps, CheckTagEmits, CheckTagExposed, CheckTagProps, CheckboxButtonEmits, CheckboxButtonProps, CheckboxEmits, CheckboxExposed, CheckboxGroupEmits, CheckboxGroupExposed, CheckboxGroupProps, CheckboxProps, CodeEditorEmits, CodeEditorExposed, CodeEditorLang, CodeEditorProps, CollapseEmits, CollapseItemEmits, CollapseItemProps, CollapseModelValue, CollapseProps, CollapseValue, ConditionConnector, ConditionEditorEmits, ConditionEditorExposed, ConditionEditorProps, ConditionExpression, ConditionField, ConditionGroup, ConditionLeaf, ConditionNode, ConditionValue, ContextmenuEmits, ContextmenuExposed, ContextmenuItem, ContextmenuProps, CssTransitionEmits, CssTransitionExposed, CssTransitionProps, DatePanelEmits, DatePanelProps, DatePickerDataType, DatePickerEmits, DatePickerExposed, DatePickerProps, DateRangePickerDataType, DateRangePickerEmits, DateRangePickerExposed, DateRangePickerProps, DateRangeValue, DescriptionsItemProps, DescriptionsLayout, DescriptionsProps, DialogEmits, DialogExposed, DialogProps, DialogTransition, DividerEmits, DividerProps, DrawerDirection, DrawerEmits, DrawerExposed, DrawerMode, DrawerProps, DropdownEmits, DropdownExposed, DropdownProps, DualNavEmits, DualNavExposed, DualNavProps, DualNavRailVariant, DualNavRootItem, EmptyEmits, EmptyExposed, EmptyProps, ExpressionEditorEmits, ExpressionEditorExposed, ExpressionEditorProps, ExpressionSelectableLevels, FileViewerEmits, FileViewerExposed, FileViewerItem, FileViewerKind, FileViewerNormalizedItem, FileViewerProps, FloatButtonEmits, FloatButtonExposed, FloatButtonItem, FloatButtonProps, FormEmits, FormExposed, FormItemEmits, FormItemExposed, FormItemProps, FormProps, GanttChartEmits, GanttChartExposed, GanttChartProps, GridEmits, GridExposed, GridInputEmits, GridInputExposed, GridInputProps, GridItemProps, GridProps, GroupInputEmits, GroupInputExposed, GroupInputProps, GroupNavEmits, GroupNavGroup, GroupNavProps, IconEmits, IconExposed, IconProps, ImageCropperChangePayload, ImageCropperCropTransform, ImageCropperEmits, ImageCropperExposed, ImageCropperProps, ImageCropperResult, ImageCropperResultOptions, ImageCropperSelection, ImagePreviewerEmits, ImagePreviewerExposed, ImagePreviewerProps, ImagePreviewerSource, InputEmits, InputExposed, InputProps, KanbanColumnItem, KanbanEmits, KanbanExposed, KanbanProps, KanbanSlots, LayoutEmits, LayoutExposed, LayoutProps, ListEmits, ListExposed, ListProps, LoadingEmits, LoadingExposed, LoadingProps, LoadingType, Message, MessageConfirm, MessageConfirmAction, MessageConfirmEmits, MessageConfirmExposed, MessageConfirmInstance, MessageConfirmOptions, MessageConfirmProps, MessageEmits, MessageExposed, MessageInstance, MessageOptions, MessageProps, MessageType, MultiAutoCompleteEmits, MultiAutoCompleteExposed, MultiAutoCompleteProps, MultiSelectEmits, MultiSelectExposed, MultiSelectProps, MultiTreeSelectEmits, MultiTreeSelectExposed, MultiTreeSelectProps, NavEmits, NavExposed, NavItem, NavProps, NodeRenderExposed, NodeRenderProps, Notification, NotificationEmits, NotificationExposed, NotificationInstance, NotificationOptions, NotificationPosition, NotificationProps, NumberEmits, NumberExposed, NumberInputEmits, NumberInputExposed, NumberInputProps, NumberProps, NumberRangeInputEmits, NumberRangeInputExposed, NumberRangeInputProps, NumberRangeTuple, PaginatorEmits, PaginatorExposed, PaginatorProps, PaletteColorType, PaletteEmits, PaletteExposed, PaletteHSV, PaletteProps, PaletteRGB, PanelItem, PanelType, PasswordInputEmits, PasswordInputExposed, PasswordInputProps, PopConfirmEmits, PopConfirmExposed, PopConfirmProps, PopEmits, PopExposed, PopProps, ProgressEmits, ProgressExposed, ProgressNodesEmits, ProgressNodesExposed, ProgressNodesProps, ProgressProps, QuickBatchEditEmits, QuickBatchEditExposed, QuickBatchEditProps, RadioEmits, RadioExposed, RadioGroupEmits, RadioGroupExposed, RadioGroupProps, RadioProps, RateEmits, RateExposed, RateProps, RichTextEditorEmits, RichTextEditorExposed, RichTextEditorProps, RichTextFormat, RichTextImageUploader, ScrollEmits, ScrollExposed, ScrollPosition, ScrollProps, SegmentEmits, SegmentExposed, SegmentItem, SegmentProps, SelectEmits, SelectExposed, SelectProps, SkeletonEmits, SkeletonProps, SliderEmits, SliderExposed, SliderProps, SpaceEmits, SpaceProps, StepsEmits, StepsExposed, StepsProps, StepsSlotScope, SwitchEmits, SwitchExposed, SwitchProps, TabItem, TableColumn, TableColumnAlign, TableColumnNode, TableColumnRenderContext, TableColumnSlotsScope, TableColumnStyle, TableEditorColumn, TableEditorEmits, TableEditorExposed, TableEditorProps, TableEmits, TableExposed, TableProps, TableRow, TableRowSlotsScope, TableSummaryContext, TabsEmits, TabsExposed, TabsHorizontalEmits, TabsHorizontalExposed, TabsHorizontalProps, TabsProps, TabsVerticalEmits, TabsVerticalExposed, TabsVerticalProps, TagEmits, TagExposed, TagProps, TextEditorEmits, TextEditorExposed, TextEditorProps, TextEmits, TextExposed, TextProps, TextareaEmits, TextareaExposed, TextareaProps, ThemeExposed, ThemeProps, TimePickerDataType, TimePickerEmits, TimePickerExposed, TimePickerProps, TimelineItemColor, TimelineItemProps, TimelineProps, TipAlign, TipDirection, TipEmits, TipExposed, TipProps, TipType, ToolbarItem, TransferDirection, TransferEmits, TransferExposed, TransferOption, TransferProps, TreeEmit, TreeExposed, TreeNode, TreeNodeProps, TreeProps, TreeSelectEmits, TreeSelectExposed, TreeSelectProps, UploaderEmits, UploaderExposed, UploaderProps, VariableItem, WatermarkEmits, WatermarkExposed, WatermarkProps, _ActionExposed, _ActionGroupExposed, _AiButtonExposed, _AlertExposed, _AnchorExposed, _AnimationExposed, _AutoCompleteExposed, _AvatarExposed, _BackTopExposed, _BadgeExposed, _BatchEditExposed, _BreadcrumbExposed, _ButtonExposed, _CalendarExposed, _CardExposed, _CascadeExposed, _CheckTagExposed, _CodeEditorExposed, _ConditionEditorExposed, _ContextmenuExposed, _CssTransitionExposed, _DatePickerExposed, _DateRangePickerExposed, _DialogExposed, _DrawerExposed, _DropdownExposed, _DualNavExposed, _EmptyExposed, _ExpressionEditorExposed, _FileViewerExposed, _FloatButtonExposed, _FormExposed, _GanttChartExposed, _GridExposed, _GridInputExposed, _GroupInputExposed, _ImageCropperExposed, _ImagePreviewerExposed, _InputExposed, _KanbanExposed, _LayoutExposed, _ListExposed, _LoadingExposed, _MessageConfirmExposed, _MessageExposed, _MultiAutoCompleteExposed, _MultiSelectExposed, _MultiTreeSelectExposed, _NavExposed, _NotificationExposed, _PaginatorExposed, _PaletteExposed, _PasswordInputExposed, _PopConfirmExposed, _PopExposed, _ProgressExposed, _ProgressNodesExposed, _QuickBatchEditExposed, _RadioExposed, _RadioGroupExposed, _RateExposed, _RichTextEditorExposed, _ScrollExposed, _SegmentExposed, _SelectExposed, _SliderExposed, _StepsExposed, _SwitchExposed, _TableEditorExposed, _TableExposed, _TabsExposed, _TabsHorizontalExposed, _TabsVerticalExposed, _TextEditorExposed, _TextExposed, _TextareaExposed, _ThemeExposed, _TimePickerExposed, _TipExposed, _TransferExposed, _TreeExposed, _TreeSelectExposed, _UploaderExposed, _WatermarkExposed };
|
|
103
|
+
export { ActionEmits, ActionExposed, ActionGroupExposed, ActionGroupProps, ActionProps, AiButtonEmits, AiButtonExposed, AiButtonProps, AiButtonVariant, AlertEmits, AlertExposed, AlertProps, AlertType, AnchorEmits, AnchorExposed, AnchorItemProps, AnchorProps, AnimationEmits, AnimationExposed, AnimationProps, AutoCompleteEmits, AutoCompleteExposed, AutoCompleteProps, AvatarEmits, AvatarExposed, AvatarGroupProps, AvatarProps, AvatarShape, BackTopEmits, BackTopExposed, BackTopProps, BadgeEmits, BadgeExposed, BadgeProps, BarType, BatchEditColumn, BatchEditEmits, BatchEditExposed, BatchEditFeature, BatchEditProps, BatchEditSlots, BatchEditStates, BreadcrumbEmits, BreadcrumbExposed, BreadcrumbItem, BreadcrumbProps, BreadcrumbSlotScope, BreakCols, Breakpoint, ButtonEmits, ButtonExposed, ButtonProps, ButtonType, CalendarDay, CalendarEmits, CalendarExposed, CalendarMonth, CalendarProps, CalendarYear, CardActionProps, CardContentProps, CardCoverProps, CardEmits, CardExposed, CardProps, CarouselEmits, CarouselItemProps, CarouselProps, CascadeEmits, CascadeExposed, CascadeNode, CascadeProps, CheckTagEmits, CheckTagExposed, CheckTagProps, CheckboxButtonEmits, CheckboxButtonProps, CheckboxEmits, CheckboxExposed, CheckboxGroupEmits, CheckboxGroupExposed, CheckboxGroupProps, CheckboxProps, ChipEmits, ChipExposed, ChipGroupEmits, ChipGroupExposed, ChipGroupProps, ChipProps, CodeEditorEmits, CodeEditorExposed, CodeEditorLang, CodeEditorProps, CollapseEmits, CollapseItemEmits, CollapseItemProps, CollapseModelValue, CollapseProps, CollapseValue, ConditionConnector, ConditionEditorEmits, ConditionEditorExposed, ConditionEditorProps, ConditionExpression, ConditionField, ConditionGroup, ConditionLeaf, ConditionNode, ConditionValue, ContextmenuEmits, ContextmenuExposed, ContextmenuItem, ContextmenuProps, CssTransitionEmits, CssTransitionExposed, CssTransitionProps, DatePanelEmits, DatePanelProps, DatePickerDataType, DatePickerEmits, DatePickerExposed, DatePickerProps, DateRangePickerDataType, DateRangePickerEmits, DateRangePickerExposed, DateRangePickerProps, DateRangeValue, DescriptionsItemProps, DescriptionsLayout, DescriptionsProps, DialogEmits, DialogExposed, DialogProps, DialogTransition, DividerEmits, DividerProps, DrawerDirection, DrawerEmits, DrawerExposed, DrawerMode, DrawerProps, DropdownEmits, DropdownExposed, DropdownProps, DualNavEmits, DualNavExposed, DualNavProps, DualNavRailVariant, DualNavRootItem, EmptyEmits, EmptyExposed, EmptyProps, ExpressionEditorEmits, ExpressionEditorExposed, ExpressionEditorProps, ExpressionSelectableLevels, FileViewerEmits, FileViewerExposed, FileViewerItem, FileViewerKind, FileViewerNormalizedItem, FileViewerProps, FloatButtonEmits, FloatButtonExposed, FloatButtonItem, FloatButtonProps, FormEmits, FormExposed, FormItemEmits, FormItemExposed, FormItemProps, FormProps, GanttChartEmits, GanttChartExposed, GanttChartProps, GridEmits, GridExposed, GridInputEmits, GridInputExposed, GridInputProps, GridItemProps, GridProps, GroupInputEmits, GroupInputExposed, GroupInputProps, GroupNavEmits, GroupNavGroup, GroupNavProps, IconEmits, IconExposed, IconProps, ImageCropperChangePayload, ImageCropperCropTransform, ImageCropperEmits, ImageCropperExposed, ImageCropperProps, ImageCropperResult, ImageCropperResultOptions, ImageCropperSelection, ImagePreviewerEmits, ImagePreviewerExposed, ImagePreviewerProps, ImagePreviewerSource, InputEmits, InputExposed, InputProps, KanbanColumnItem, KanbanEmits, KanbanExposed, KanbanProps, KanbanSlots, LayoutEmits, LayoutExposed, LayoutProps, ListEmits, ListExposed, ListProps, LoadingEmits, LoadingExposed, LoadingProps, LoadingType, Message, MessageConfirm, MessageConfirmAction, MessageConfirmEmits, MessageConfirmExposed, MessageConfirmInstance, MessageConfirmOptions, MessageConfirmProps, MessageEmits, MessageExposed, MessageInstance, MessageOptions, MessageProps, MessageType, MultiAutoCompleteEmits, MultiAutoCompleteExposed, MultiAutoCompleteProps, MultiSelectEmits, MultiSelectExposed, MultiSelectProps, MultiTreeSelectEmits, MultiTreeSelectExposed, MultiTreeSelectProps, NavEmits, NavExposed, NavItem, NavProps, NodeRenderExposed, NodeRenderProps, Notification, NotificationEmits, NotificationExposed, NotificationInstance, NotificationOptions, NotificationPosition, NotificationProps, NumberEmits, NumberExposed, NumberInputEmits, NumberInputExposed, NumberInputProps, NumberProps, NumberRangeInputEmits, NumberRangeInputExposed, NumberRangeInputProps, NumberRangeTuple, PaginatorEmits, PaginatorExposed, PaginatorProps, PaletteColorType, PaletteEmits, PaletteExposed, PaletteHSV, PaletteProps, PaletteRGB, PanelItem, PanelType, PasswordInputEmits, PasswordInputExposed, PasswordInputProps, PopConfirmEmits, PopConfirmExposed, PopConfirmProps, PopEmits, PopExposed, PopProps, ProgressEmits, ProgressExposed, ProgressNodesEmits, ProgressNodesExposed, ProgressNodesProps, ProgressProps, QuickBatchEditEmits, QuickBatchEditExposed, QuickBatchEditProps, RadioEmits, RadioExposed, RadioGroupEmits, RadioGroupExposed, RadioGroupProps, RadioProps, RateEmits, RateExposed, RateProps, RichTextEditorEmits, RichTextEditorExposed, RichTextEditorProps, RichTextFormat, RichTextImageUploader, ScrollEmits, ScrollExposed, ScrollPosition, ScrollProps, SegmentEmits, SegmentExposed, SegmentItem, SegmentProps, SelectEmits, SelectExposed, SelectProps, SkeletonEmits, SkeletonProps, SliderEmits, SliderExposed, SliderProps, SpaceEmits, SpaceProps, StepsEmits, StepsExposed, StepsProps, StepsSlotScope, SwitchEmits, SwitchExposed, SwitchProps, TabItem, TableColumn, TableColumnAlign, TableColumnNode, TableColumnRenderContext, TableColumnSlotsScope, TableColumnStyle, TableEditorColumn, TableEditorEmits, TableEditorExposed, TableEditorProps, TableEmits, TableExposed, TableProps, TableRow, TableRowSlotsScope, TableSummaryContext, TabsEmits, TabsExposed, TabsHorizontalEmits, TabsHorizontalExposed, TabsHorizontalProps, TabsProps, TabsVerticalEmits, TabsVerticalExposed, TabsVerticalProps, TagEmits, TagExposed, TagProps, TextEditorEmits, TextEditorExposed, TextEditorProps, TextEmits, TextExposed, TextProps, TextareaEmits, TextareaExposed, TextareaProps, ThemeExposed, ThemeProps, TimePickerDataType, TimePickerEmits, TimePickerExposed, TimePickerProps, TimelineItemColor, TimelineItemProps, TimelineProps, TipAlign, TipDirection, TipEmits, TipExposed, TipProps, TipType, ToolbarItem, TransferDirection, TransferEmits, TransferExposed, TransferOption, TransferProps, TreeEmit, TreeExposed, TreeNode, TreeNodeProps, TreeProps, TreeSelectEmits, TreeSelectExposed, TreeSelectProps, UploaderEmits, UploaderExposed, UploaderProps, VariableItem, WatermarkEmits, WatermarkExposed, WatermarkProps, _ActionExposed, _ActionGroupExposed, _AiButtonExposed, _AlertExposed, _AnchorExposed, _AnimationExposed, _AutoCompleteExposed, _AvatarExposed, _BackTopExposed, _BadgeExposed, _BatchEditExposed, _BreadcrumbExposed, _ButtonExposed, _CalendarExposed, _CardExposed, _CascadeExposed, _CheckTagExposed, _ChipExposed, _ChipGroupExposed, _CodeEditorExposed, _ConditionEditorExposed, _ContextmenuExposed, _CssTransitionExposed, _DatePickerExposed, _DateRangePickerExposed, _DialogExposed, _DrawerExposed, _DropdownExposed, _DualNavExposed, _EmptyExposed, _ExpressionEditorExposed, _FileViewerExposed, _FloatButtonExposed, _FormExposed, _GanttChartExposed, _GridExposed, _GridInputExposed, _GroupInputExposed, _ImageCropperExposed, _ImagePreviewerExposed, _InputExposed, _KanbanExposed, _LayoutExposed, _ListExposed, _LoadingExposed, _MessageConfirmExposed, _MessageExposed, _MultiAutoCompleteExposed, _MultiSelectExposed, _MultiTreeSelectExposed, _NavExposed, _NotificationExposed, _PaginatorExposed, _PaletteExposed, _PasswordInputExposed, _PopConfirmExposed, _PopExposed, _ProgressExposed, _ProgressNodesExposed, _QuickBatchEditExposed, _RadioExposed, _RadioGroupExposed, _RateExposed, _RichTextEditorExposed, _ScrollExposed, _SegmentExposed, _SelectExposed, _SliderExposed, _StepsExposed, _SwitchExposed, _TableEditorExposed, _TableExposed, _TabsExposed, _TabsHorizontalExposed, _TabsVerticalExposed, _TextEditorExposed, _TextExposed, _TextareaExposed, _ThemeExposed, _TimePickerExposed, _TipExposed, _TransferExposed, _TreeExposed, _TreeSelectExposed, _UploaderExposed, _WatermarkExposed };
|
package/package.json
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<div
|
|
9
|
-
<
|
|
10
|
-
|
|
2
|
+
<transition name="fade">
|
|
3
|
+
<div v-if="visible" :class="className" role="alert">
|
|
4
|
+
<u-icon v-if="showIcon" :class="cls.e('icon')">
|
|
5
|
+
<component :is="typeIcons[type]" />
|
|
6
|
+
</u-icon>
|
|
7
|
+
|
|
8
|
+
<div :class="cls.e('content')">
|
|
9
|
+
<div v-if="$slots.title || title" :class="cls.e('title')">
|
|
10
|
+
<slot name="title">{{ title }}</slot>
|
|
11
|
+
</div>
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
<div v-if="$slots.default || description" :class="cls.e('description')">
|
|
14
|
+
<slot>{{ description }}</slot>
|
|
15
|
+
</div>
|
|
14
16
|
</div>
|
|
15
|
-
</div>
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
<u-icon v-if="closable" :class="cls.e('close')" @click.stop="handleClose">
|
|
19
|
+
<Close />
|
|
20
|
+
</u-icon>
|
|
21
|
+
</div>
|
|
22
|
+
</transition>
|
|
21
23
|
</template>
|
|
22
24
|
|
|
23
25
|
<script lang="ts" setup>
|
|
@@ -58,10 +58,18 @@ $line-ratio: 1.6;
|
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
align-self: center;
|
|
60
60
|
opacity: 0.6;
|
|
61
|
-
transition:
|
|
61
|
+
transition:
|
|
62
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
63
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
62
64
|
|
|
63
65
|
&:hover {
|
|
64
66
|
opacity: 1;
|
|
65
67
|
}
|
|
68
|
+
|
|
69
|
+
// 点击即关闭,过渡来不及显示——按下瞬间缩到位
|
|
70
|
+
&:active {
|
|
71
|
+
transform: scale(0.9);
|
|
72
|
+
transition-duration: 0s;
|
|
73
|
+
}
|
|
66
74
|
}
|
|
67
75
|
}
|
|
@@ -30,6 +30,9 @@ $root-name: auto-complete;
|
|
|
30
30
|
margin: 2px 0;
|
|
31
31
|
user-select: none;
|
|
32
32
|
color: fn.use-var(text-color, main);
|
|
33
|
+
transition:
|
|
34
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
35
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
33
36
|
@include m.ellipsis;
|
|
34
37
|
|
|
35
38
|
&:hover {
|
|
@@ -19,13 +19,27 @@ $edge-offset: 10px;
|
|
|
19
19
|
&-enter-active,
|
|
20
20
|
&-leave-active {
|
|
21
21
|
transition:
|
|
22
|
-
opacity fn.use-var(transition,
|
|
23
|
-
transform fn.use-var(transition,
|
|
22
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
23
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&-enter-from,
|
|
27
27
|
&-leave-to {
|
|
28
28
|
opacity: 0;
|
|
29
|
-
transform: scale(0.
|
|
29
|
+
transform: scale(0.9);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 降级:只保留 opacity 淡入,不做 scale 位移
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
&-enter-active,
|
|
35
|
+
&-leave-active {
|
|
36
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-enter-from,
|
|
40
|
+
&-leave-to {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: none;
|
|
43
|
+
}
|
|
30
44
|
}
|
|
31
45
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="cls.b">
|
|
3
3
|
<slot />
|
|
4
|
-
<
|
|
4
|
+
<Transition :name="transitionName">
|
|
5
|
+
<sup :class="classList" ref="supRef" v-if="!hidden">{{ badgeValue }}</sup>
|
|
6
|
+
</Transition>
|
|
5
7
|
</div>
|
|
6
8
|
</template>
|
|
7
9
|
|
|
@@ -15,6 +17,7 @@ import type { BadgeProps, ComponentSize } from '../../types'
|
|
|
15
17
|
defineOptions({ name: 'UBadge' })
|
|
16
18
|
|
|
17
19
|
const cls = bem('badge')
|
|
20
|
+
const transitionName = cls.create('fade').b
|
|
18
21
|
|
|
19
22
|
const props = withDefaults(defineProps<BadgeProps>(), { max: 99 })
|
|
20
23
|
|
|
@@ -41,12 +44,8 @@ const supRef = shallowRef<HTMLElement>()
|
|
|
41
44
|
|
|
42
45
|
const setPosition = () => {
|
|
43
46
|
if (supRef.value) {
|
|
44
|
-
|
|
45
|
-
setStyles(supRef.value, {
|
|
46
|
-
transform: `translate(-${width / 2}px, -${height / 2}px)`,
|
|
47
|
-
backgroundColor: props.color,
|
|
48
|
-
zIndex: zIndex()
|
|
49
|
-
})
|
|
47
|
+
// 角标位移(-50%,-50%)由 style.scss 常驻提供,此处仅注入运行时样式
|
|
48
|
+
setStyles(supRef.value, { backgroundColor: props.color, zIndex: zIndex() })
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -18,7 +18,10 @@ $root-name: badge;
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
background: fn.use-var(color, danger);
|
|
20
20
|
border-radius: 18px;
|
|
21
|
-
color:
|
|
21
|
+
color: fn.use-var(text-color, white);
|
|
22
|
+
// 向左上角偏移半个自身(与原 JS 内联 translate(-50%,-50%) 等价),
|
|
23
|
+
// 常驻 CSS 化后过渡类的 scale 可与位移叠加
|
|
24
|
+
transform: translate(-50%, -50%);
|
|
22
25
|
|
|
23
26
|
@include m.is(dot) {
|
|
24
27
|
height: 8px;
|
|
@@ -48,3 +51,19 @@ $root-name: badge;
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
}
|
|
54
|
+
|
|
55
|
+
// 徽标出现/消失:从 scale(0.9) + 透明淡入/淡出,位移保持不变
|
|
56
|
+
@include m.b(#{$root-name}-fade) {
|
|
57
|
+
&-enter-active,
|
|
58
|
+
&-leave-active {
|
|
59
|
+
transition:
|
|
60
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
61
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-enter-from,
|
|
65
|
+
&-leave-to {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transform: translate(-50%, -50%) scale(0.9);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -121,6 +121,14 @@ async function clickRow(host: HTMLElement, index: number) {
|
|
|
121
121
|
await nextTick()
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/** 侧栏离场走 Transition:display 落为 none 要等离场帧结束(v-show 由过渡接管后不再瞬时隐藏) */
|
|
125
|
+
async function nextFrames(count: number) {
|
|
126
|
+
for (let i = 0; i < count; i++) {
|
|
127
|
+
await new Promise<void>((resolve) => requestAnimationFrame(() => resolve()))
|
|
128
|
+
}
|
|
129
|
+
await nextTick()
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
async function clickEditRow(host: HTMLElement, index: number) {
|
|
125
133
|
const btn = queryEditButton(host, index)
|
|
126
134
|
expect(btn, `第 ${index} 行的编辑按钮应存在`).toBeTruthy()
|
|
@@ -167,6 +175,8 @@ describe('UBatchEdit quick-edit 切换编辑行', () => {
|
|
|
167
175
|
|
|
168
176
|
// 再次点击当前行:取消选中并关闭表单,model 恢复初始值
|
|
169
177
|
await clickRow(host, 0)
|
|
178
|
+
// 侧栏离场过渡结束后 display 才落为 none
|
|
179
|
+
await nextFrames(2)
|
|
170
180
|
expect(aside.style.display).toBe('none')
|
|
171
181
|
expect(model.label).toBe('')
|
|
172
182
|
|