@sdata/web-vue 3.12.0 → 3.14.0
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/sd.css +288 -126
- package/dist/sd.min.css +43 -1
- package/es/_components/input-label/input-label.d.ts +2 -0
- package/es/_components/input-label/input-label.js +4 -2
- package/es/_components/input-label/style/index.css +2 -2
- package/es/_components/picker/input-range.vue.d.ts +6 -7
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +63 -46
- package/es/_components/picker/input.vue.d.ts +5 -6
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +52 -35
- package/es/_components/picker/style/index.scss +8 -2
- package/es/_components/resize-observer.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +9 -2
- package/es/_components/select-view/select-view.d.ts +2 -0
- package/es/_components/select-view/select-view.js +5 -1
- package/es/_components/select-view/style/index.css +5 -5
- package/es/_hooks/use-focus-trap.d.ts +10 -0
- package/es/_hooks/use-focus-trap.js +115 -0
- package/es/_hooks/use-readonly-tip.d.ts +11 -0
- package/es/_hooks/use-readonly-tip.js +66 -0
- package/es/_utils/dom.js +1 -10
- package/es/_utils/keyboard.d.ts +4 -0
- package/es/_utils/keyboard.js +21 -2
- package/es/alert/alert.vue.d.ts +2 -2
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +12 -3
- package/es/alert/index.d.ts +5 -5
- package/es/alert/style/index.css +1 -1
- package/es/alert/style/index.scss +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +2 -0
- package/es/anchor/style/index.css +1 -1
- package/es/anchor/style/index.scss +3 -1
- package/es/auto-complete/auto-complete.d.ts +9 -0
- package/es/auto-complete/auto-complete.js +19 -1
- package/es/auto-complete/index.d.ts +15 -0
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/avatar/style/index.css +2 -2
- package/es/avatar/style/index.scss +2 -2
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/back-top/style/index.css +1 -1
- package/es/back-top/style/index.scss +2 -1
- package/es/badge/badge.js +4 -1
- package/es/badge/style/index.css +3 -3
- package/es/badge/style/index.scss +3 -3
- package/es/breadcrumb/breadcrumb.js +1 -0
- package/es/button/button.vue.d.ts +16 -7
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +62 -31
- package/es/button/index.d.ts +11 -0
- package/es/button/interface.d.ts +2 -0
- package/es/button/style/index.css +15 -6
- package/es/button/style/index.scss +25 -7
- package/es/calendar/style/event.scss +2 -2
- package/es/calendar/style/index.css +2 -2
- package/es/card/card.d.ts +312 -0
- package/es/card/card.js +39 -7
- package/es/card/index.d.ts +616 -0
- package/es/card/style/index.css +26 -3
- package/es/card/style/index.scss +34 -3
- package/es/carousel/carousel-arrow.vue.d.ts +4 -4
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +20 -4
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +23 -4
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +8 -1
- package/es/carousel/carousel.js +18 -1
- package/es/carousel/style/index.css +1 -1
- package/es/carousel/style/index.scss +1 -1
- package/es/cascader/cascader.vue.d.ts +9 -8
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +158 -128
- package/es/cascader/style/index.css +2 -2
- package/es/cascader/style/index.scss +3 -1
- package/es/cascader/types.d.ts +1 -0
- package/es/checkbox/checkbox-group.js +4 -1
- package/es/checkbox/checkbox.d.ts +9 -0
- package/es/checkbox/checkbox.js +14 -0
- package/es/checkbox/index.d.ts +15 -0
- package/es/checkbox/style/index.css +1 -1
- package/es/checkbox/style/index.scss +1 -1
- package/es/collapse/collapse-item.js +21 -3
- package/es/collapse/context.d.ts +1 -1
- package/es/color-picker/color-picker.d.ts +9 -0
- package/es/color-picker/color-picker.js +39 -11
- package/es/color-picker/index.d.ts +15 -0
- package/es/config-provider/context.d.ts +9 -9
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/date-picker/index.d.ts +3 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +14 -1
- package/es/date-picker/picker.vue.d.ts +2 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +6 -5
- package/es/date-picker/range-picker.vue.d.ts +2 -3
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/date-picker/style/index.css +5 -5
- package/es/date-picker/style/index.scss +4 -3
- package/es/drawer/drawer.vue.d.ts +1 -1
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +30 -9
- package/es/drawer/index.d.ts +3 -3
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/dropdown/dropdown-panel.vue.d.ts +9 -0
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +75 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/dropdown/style/index.css +1 -1
- package/es/dropdown/style/index.scss +3 -1
- package/es/empty/empty.js +1 -1
- package/es/file-previewer/file-previewer.vue.d.ts +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/file-previewer/index.d.ts +3 -3
- package/es/form/context.d.ts +1 -0
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/form/style/index.css +2 -2
- package/es/form/style/index.scss +2 -2
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-action.d.ts +7 -127
- package/es/image/preview.vue.d.ts +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/index.css +288 -126
- package/es/index.js +3 -3
- package/es/input/index.d.ts +6 -6
- package/es/input/input.d.ts +3 -3
- package/es/input/input.js +34 -8
- package/es/input/style/index.css +2 -2
- package/es/input/style/input.scss +4 -4
- package/es/input-number/index.d.ts +9 -9
- package/es/input-number/input-number.d.ts +5 -5
- package/es/input-number/input-number.js +13 -9
- package/es/input-number/style/index.css +3 -3
- package/es/input-number/style/index.scss +5 -1
- package/es/input-tag/index.d.ts +9 -6
- package/es/input-tag/input-tag.d.ts +5 -3
- package/es/input-tag/input-tag.js +49 -36
- package/es/input-tag/style/index.css +8 -8
- package/es/input-tag/style/index.scss +11 -5
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +31 -6
- package/es/layout/style/index.css +2 -2
- package/es/layout/style/index.scss +4 -2
- package/es/link/style/index.css +1 -1
- package/es/link/style/index.scss +3 -1
- package/es/locale/interface.d.ts +1 -0
- package/es/locale/lang/en-us.js +1 -0
- package/es/locale/lang/zh-cn.js +1 -0
- package/es/locale/lang/zh-tw.js +1 -0
- package/es/mention/index.d.ts +15 -0
- package/es/mention/mention.d.ts +9 -0
- package/es/mention/mention.js +20 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +30 -4
- package/es/menu/item.js +14 -1
- package/es/menu/style/index.css +6 -6
- package/es/menu/style/index.scss +5 -3
- package/es/message/style/index.css +3 -3
- package/es/message/style/index.scss +5 -3
- package/es/modal/index.d.ts +3 -3
- package/es/modal/modal.vue.d.ts +1 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +30 -15
- package/es/modal/style/index.css +2 -2
- package/es/modal/style/index.scss +3 -2
- package/es/notification/style/index.css +3 -3
- package/es/notification/style/index.scss +11 -3
- package/es/page-header/page-header.vue.d.ts +6 -6
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +12 -1
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +12 -2
- package/es/pagination/page-item-step.vue.d.ts +2 -2
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/pagination/page-item.vue.d.ts +2 -2
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +21 -3
- package/es/pagination/pagination.js +6 -2
- package/es/pagination/style/index.css +6 -1
- package/es/pagination/style/index.scss +9 -3
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/progress/style/index.css +2 -2
- package/es/progress/style/index.scss +5 -3
- package/es/qr-code/qr-code-status.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +11 -6
- package/es/radio/context.d.ts +1 -0
- package/es/radio/radio-group.js +6 -2
- package/es/radio/radio.js +1 -0
- package/es/radio/style/index.css +2 -2
- package/es/radio/style/index.scss +4 -2
- package/es/rate/index.d.ts +6 -6
- package/es/rate/rate.d.ts +3 -3
- package/es/rate/rate.js +42 -8
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +30 -1
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +7 -4
- package/es/scrollbar/style/index.css +57 -15
- package/es/scrollbar/style/index.scss +63 -15
- package/es/sd-vue.js +3 -3
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/index.d.ts +139 -0
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/select/select.d.ts +71 -0
- package/es/select/select.js +45 -6
- package/es/select/style/index.css +1 -1
- package/es/select/style/index.scss +3 -1
- package/es/selectable-card/style/index.css +2 -2
- package/es/selectable-card/style/index.scss +5 -5
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/slider/slider-button.vue.d.ts +2 -0
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +23 -2
- package/es/slider/style/index.css +1 -1
- package/es/slider/style/index.scss +3 -1
- package/es/spin/spin.js +7 -2
- package/es/spin/style/index.css +1 -1
- package/es/spin/style/index.scss +1 -1
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +27 -3
- package/es/steps/context.d.ts +1 -0
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +15 -2
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/steps/style/index.css +1 -1
- package/es/steps/style/index.scss +1 -1
- package/es/style/animation/index.scss +1 -0
- package/es/style/animation/reduced-motion.scss +22 -0
- package/es/style/animation/zoom.scss +7 -6
- package/es/style/icon.scss +9 -1
- package/es/style/normalize.scss +68 -0
- package/es/switch/style/index.css +1 -1
- package/es/switch/style/index.scss +4 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/table/style/index.css +8 -8
- package/es/table/style/index.scss +11 -8
- package/es/table/table-operation-td.d.ts +15 -0
- package/es/table/table-tbody.js +4 -1
- package/es/table/table-td.js +2 -1
- package/es/table/table-th.js +6 -4
- package/es/table/table-thead.js +4 -1
- package/es/table/table-tr.js +4 -1
- package/es/table/table.js +6 -2
- package/es/tabs/context.d.ts +3 -0
- package/es/tabs/index.d.ts +32 -0
- package/es/tabs/style/index.css +34 -5
- package/es/tabs/style/index.scss +45 -7
- package/es/tabs/tab-pane.vue.d.ts +4 -2
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +39 -4
- package/es/tabs/tabs-nav.js +34 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +27 -4
- package/es/tabs/tabs.d.ts +19 -0
- package/es/tabs/tabs.js +25 -2
- package/es/tag/index.d.ts +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/tag/style/index.scss +3 -1
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/textarea/index.d.ts +15 -0
- package/es/textarea/style/index.css +2 -2
- package/es/textarea/textarea.vue.d.ts +11 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +84 -47
- package/es/time-picker/index.d.ts +3 -6
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/time-picker/time-picker.vue.d.ts +2 -3
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +12 -6
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/index.d.ts +8 -127
- package/es/tooltip/interface.d.ts +17 -0
- package/es/tooltip/tooltip.vue.d.ts +5 -88
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +9 -69
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/style/index.css +1 -1
- package/es/transfer/style/index.scss +1 -1
- package/es/transfer/transfer-list-item.js +16 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +27 -7
- package/es/tree/context.d.ts +2 -0
- package/es/tree/style/index.css +1 -1
- package/es/tree/style/index.scss +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +82 -3
- package/es/tree-select/tree-select.vue.d.ts +16 -10
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +165 -133
- package/es/trigger/index.d.ts +45 -0
- package/es/trigger/trigger.d.ts +27 -0
- package/es/trigger/trigger.js +47 -5
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +11 -8
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +38 -6
- package/es/typography/style/index.css +2 -2
- package/es/typography/style/index.scss +2 -2
- package/es/upload/style/index.css +9 -9
- package/es/upload/style/index.scss +15 -9
- package/es/upload/upload-button.js +1 -1
- package/es/upload/upload-list-item.js +18 -5
- package/es/upload/upload-picture-item.js +25 -3
- package/es/verification-code/index.d.ts +15 -6
- package/es/verification-code/verification-code.d.ts +9 -3
- package/es/verification-code/verification-code.js +10 -2
- package/json/vetur-attributes.json +63 -7
- package/json/vetur-tags.json +23 -7
- package/json/web-types.json +131 -10
- package/package.json +1 -1
- package/es/style/base.scss +0 -18
package/es/tooltip/index.d.ts
CHANGED
|
@@ -2,47 +2,7 @@ import type { App } from 'vue';
|
|
|
2
2
|
import type { SDOptions } from '../_utils/types';
|
|
3
3
|
import _Tooltip from './tooltip.vue';
|
|
4
4
|
declare const Tooltip: {
|
|
5
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("
|
|
6
|
-
popupVisible: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
defaultPopupVisible: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
disabled: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
content: StringConstructor;
|
|
19
|
-
position: {
|
|
20
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
mini: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
backgroundColor: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
};
|
|
30
|
-
contentClass: {
|
|
31
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
32
|
-
};
|
|
33
|
-
contentStyle: {
|
|
34
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
35
|
-
};
|
|
36
|
-
arrowClass: {
|
|
37
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
38
|
-
};
|
|
39
|
-
arrowStyle: {
|
|
40
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
41
|
-
};
|
|
42
|
-
popupContainer: {
|
|
43
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
46
6
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
47
7
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
48
8
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -52,109 +12,29 @@ declare const Tooltip: {
|
|
|
52
12
|
mini: boolean;
|
|
53
13
|
popupVisible: boolean;
|
|
54
14
|
defaultPopupVisible: boolean;
|
|
55
|
-
position: "
|
|
15
|
+
position: import("../index.ts").TriggerPosition;
|
|
56
16
|
disabled: boolean;
|
|
57
|
-
},
|
|
17
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
58
18
|
P: {};
|
|
59
19
|
B: {};
|
|
60
20
|
D: {};
|
|
61
21
|
C: {};
|
|
62
22
|
M: {};
|
|
63
23
|
Defaults: {};
|
|
64
|
-
}, Readonly<import("
|
|
65
|
-
popupVisible: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: undefined;
|
|
68
|
-
};
|
|
69
|
-
defaultPopupVisible: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
disabled: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
content: StringConstructor;
|
|
78
|
-
position: {
|
|
79
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
mini: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
backgroundColor: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
};
|
|
89
|
-
contentClass: {
|
|
90
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
91
|
-
};
|
|
92
|
-
contentStyle: {
|
|
93
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
94
|
-
};
|
|
95
|
-
arrowClass: {
|
|
96
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
97
|
-
};
|
|
98
|
-
arrowStyle: {
|
|
99
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
100
|
-
};
|
|
101
|
-
popupContainer: {
|
|
102
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
103
|
-
};
|
|
104
|
-
}>> & Readonly<{
|
|
24
|
+
}, Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
105
25
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
106
26
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
107
27
|
}>, {}, {}, {}, {}, {
|
|
108
28
|
mini: boolean;
|
|
109
29
|
popupVisible: boolean;
|
|
110
30
|
defaultPopupVisible: boolean;
|
|
111
|
-
position: "
|
|
31
|
+
position: import("../index.ts").TriggerPosition;
|
|
112
32
|
disabled: boolean;
|
|
113
33
|
}>;
|
|
114
34
|
__isFragment?: never;
|
|
115
35
|
__isTeleport?: never;
|
|
116
36
|
__isSuspense?: never;
|
|
117
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("
|
|
118
|
-
popupVisible: {
|
|
119
|
-
type: BooleanConstructor;
|
|
120
|
-
default: undefined;
|
|
121
|
-
};
|
|
122
|
-
defaultPopupVisible: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
|
-
disabled: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
content: StringConstructor;
|
|
131
|
-
position: {
|
|
132
|
-
type: import("vue").PropType<import("../index.ts").TriggerPosition>;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
mini: {
|
|
136
|
-
type: BooleanConstructor;
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
backgroundColor: {
|
|
140
|
-
type: StringConstructor;
|
|
141
|
-
};
|
|
142
|
-
contentClass: {
|
|
143
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
144
|
-
};
|
|
145
|
-
contentStyle: {
|
|
146
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
147
|
-
};
|
|
148
|
-
arrowClass: {
|
|
149
|
-
type: import("vue").PropType<import("../_utils/types").ClassName>;
|
|
150
|
-
};
|
|
151
|
-
arrowStyle: {
|
|
152
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
153
|
-
};
|
|
154
|
-
popupContainer: {
|
|
155
|
-
type: import("vue").PropType<string | HTMLElement>;
|
|
156
|
-
};
|
|
157
|
-
}>> & Readonly<{
|
|
37
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./interface").TooltipProps> & Readonly<{
|
|
158
38
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
159
39
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
160
40
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -164,7 +44,7 @@ declare const Tooltip: {
|
|
|
164
44
|
mini: boolean;
|
|
165
45
|
popupVisible: boolean;
|
|
166
46
|
defaultPopupVisible: boolean;
|
|
167
|
-
position: "
|
|
47
|
+
position: import("../index.ts").TriggerPosition;
|
|
168
48
|
disabled: boolean;
|
|
169
49
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
170
50
|
$slots: {
|
|
@@ -176,4 +56,5 @@ declare const Tooltip: {
|
|
|
176
56
|
install: (app: App, options?: SDOptions) => void;
|
|
177
57
|
};
|
|
178
58
|
export type TooltipInstance = InstanceType<typeof _Tooltip>;
|
|
59
|
+
export type { TooltipProps } from './interface';
|
|
179
60
|
export default Tooltip;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { TriggerPosition } from '../_utils/constant';
|
|
3
|
+
import type { ClassName } from '../_utils/types';
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
popupVisible?: boolean;
|
|
6
|
+
defaultPopupVisible?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
content?: string;
|
|
9
|
+
position?: TriggerPosition;
|
|
10
|
+
mini?: boolean;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
contentClass?: ClassName;
|
|
13
|
+
contentStyle?: CSSProperties;
|
|
14
|
+
arrowClass?: ClassName;
|
|
15
|
+
arrowStyle?: CSSProperties;
|
|
16
|
+
popupContainer?: string | HTMLElement;
|
|
17
|
+
}
|
|
@@ -1,106 +1,23 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { CSSProperties } from 'vue';
|
|
3
|
-
import { TriggerPosition } from '../_utils/constant';
|
|
4
|
-
import { ClassName } from '../_utils/types';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
5
2
|
declare var __VLS_10: {}, __VLS_13: {};
|
|
6
3
|
type __VLS_Slots = {} & {
|
|
7
4
|
default?: (props: typeof __VLS_10) => any;
|
|
8
5
|
} & {
|
|
9
6
|
content?: (props: typeof __VLS_13) => any;
|
|
10
7
|
};
|
|
11
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").
|
|
12
|
-
popupVisible: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
defaultPopupVisible: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
content: StringConstructor;
|
|
25
|
-
position: {
|
|
26
|
-
type: PropType<TriggerPosition>;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
mini: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
backgroundColor: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
};
|
|
36
|
-
contentClass: {
|
|
37
|
-
type: PropType<ClassName>;
|
|
38
|
-
};
|
|
39
|
-
contentStyle: {
|
|
40
|
-
type: PropType<CSSProperties>;
|
|
41
|
-
};
|
|
42
|
-
arrowClass: {
|
|
43
|
-
type: PropType<ClassName>;
|
|
44
|
-
};
|
|
45
|
-
arrowStyle: {
|
|
46
|
-
type: PropType<CSSProperties>;
|
|
47
|
-
};
|
|
48
|
-
popupContainer: {
|
|
49
|
-
type: PropType<string | HTMLElement>;
|
|
50
|
-
};
|
|
51
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
9
|
"update:popupVisible": (_visible: boolean) => any;
|
|
53
10
|
popupVisibleChange: (_visible: boolean) => any;
|
|
54
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
55
|
-
popupVisible: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: undefined;
|
|
58
|
-
};
|
|
59
|
-
defaultPopupVisible: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
content: StringConstructor;
|
|
68
|
-
position: {
|
|
69
|
-
type: PropType<TriggerPosition>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
mini: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
backgroundColor: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
};
|
|
79
|
-
contentClass: {
|
|
80
|
-
type: PropType<ClassName>;
|
|
81
|
-
};
|
|
82
|
-
contentStyle: {
|
|
83
|
-
type: PropType<CSSProperties>;
|
|
84
|
-
};
|
|
85
|
-
arrowClass: {
|
|
86
|
-
type: PropType<ClassName>;
|
|
87
|
-
};
|
|
88
|
-
arrowStyle: {
|
|
89
|
-
type: PropType<CSSProperties>;
|
|
90
|
-
};
|
|
91
|
-
popupContainer: {
|
|
92
|
-
type: PropType<string | HTMLElement>;
|
|
93
|
-
};
|
|
94
|
-
}>> & Readonly<{
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
95
12
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
96
13
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
97
14
|
}>, {
|
|
98
15
|
mini: boolean;
|
|
99
16
|
popupVisible: boolean;
|
|
100
17
|
defaultPopupVisible: boolean;
|
|
101
|
-
position: "
|
|
18
|
+
position: import("..").TriggerPosition;
|
|
102
19
|
disabled: boolean;
|
|
103
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
104
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
105
22
|
declare const _default: typeof __VLS_export;
|
|
106
23
|
export default _default;
|
|
@@ -6,91 +6,30 @@ import { computed, createBlock, createTextVNode, defineComponent, normalizeClass
|
|
|
6
6
|
var tooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Tooltip" }), {}, {
|
|
7
7
|
__name: "tooltip",
|
|
8
8
|
props: {
|
|
9
|
-
/**
|
|
10
|
-
* @zh 文字气泡是否可见
|
|
11
|
-
* @en Whether the tooltip is visible
|
|
12
|
-
* @vModel
|
|
13
|
-
*/
|
|
14
9
|
popupVisible: {
|
|
15
10
|
type: Boolean,
|
|
16
11
|
default: void 0
|
|
17
12
|
},
|
|
18
|
-
/**
|
|
19
|
-
* @zh 文字气泡默认是否可见(非受控模式)
|
|
20
|
-
* @en Whether the tooltip is visible by default (uncontrolled mode)
|
|
21
|
-
*/
|
|
22
13
|
defaultPopupVisible: {
|
|
23
14
|
type: Boolean,
|
|
24
15
|
default: false
|
|
25
16
|
},
|
|
26
|
-
/**
|
|
27
|
-
* @zh 文字气泡是否禁用
|
|
28
|
-
* @en Whether to disable the tooltip
|
|
29
|
-
*/
|
|
30
17
|
disabled: {
|
|
31
18
|
type: Boolean,
|
|
32
19
|
default: false
|
|
33
20
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* @en Tooltip content
|
|
37
|
-
*/
|
|
38
|
-
content: String,
|
|
39
|
-
/**
|
|
40
|
-
* @zh 弹出位置
|
|
41
|
-
* @en Popup position
|
|
42
|
-
* @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
|
|
43
|
-
*/
|
|
44
|
-
position: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "top"
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* @zh 是否展示为迷你尺寸
|
|
50
|
-
* @en Whether to display as a mini size
|
|
51
|
-
*/
|
|
21
|
+
content: {},
|
|
22
|
+
position: { default: "top" },
|
|
52
23
|
mini: {
|
|
53
24
|
type: Boolean,
|
|
54
25
|
default: false
|
|
55
26
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* @zh 弹出框内容的类名
|
|
63
|
-
* @en The class name of the popup content
|
|
64
|
-
*/
|
|
65
|
-
contentClass: { type: [
|
|
66
|
-
String,
|
|
67
|
-
Array,
|
|
68
|
-
Object
|
|
69
|
-
] },
|
|
70
|
-
/**
|
|
71
|
-
* @zh 弹出框内容的样式
|
|
72
|
-
* @en The style of the popup content
|
|
73
|
-
*/
|
|
74
|
-
contentStyle: { type: Object },
|
|
75
|
-
/**
|
|
76
|
-
* @zh 弹出框箭头的类名
|
|
77
|
-
* @en The class name of the popup arrow
|
|
78
|
-
*/
|
|
79
|
-
arrowClass: { type: [
|
|
80
|
-
String,
|
|
81
|
-
Array,
|
|
82
|
-
Object
|
|
83
|
-
] },
|
|
84
|
-
/**
|
|
85
|
-
* @zh 弹出框箭头的样式
|
|
86
|
-
* @en The style of the popup arrow
|
|
87
|
-
*/
|
|
88
|
-
arrowStyle: { type: Object },
|
|
89
|
-
/**
|
|
90
|
-
* @zh 弹出框的挂载容器
|
|
91
|
-
* @en Mount container for popup
|
|
92
|
-
*/
|
|
93
|
-
popupContainer: { type: [String, Object] }
|
|
27
|
+
backgroundColor: {},
|
|
28
|
+
contentClass: {},
|
|
29
|
+
contentStyle: {},
|
|
30
|
+
arrowClass: {},
|
|
31
|
+
arrowStyle: {},
|
|
32
|
+
popupContainer: {}
|
|
94
33
|
},
|
|
95
34
|
emits: ["update:popupVisible", "popupVisibleChange"],
|
|
96
35
|
setup(__props, { emit: __emit }) {
|
|
@@ -141,6 +80,7 @@ var tooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
141
80
|
"animation-name": "zoom-in-fade-out",
|
|
142
81
|
"auto-fit-transform-origin": "",
|
|
143
82
|
role: "tooltip",
|
|
83
|
+
"aria-describedby-popup": "",
|
|
144
84
|
onPopupVisibleChange: handlePopupVisibleChange
|
|
145
85
|
}, {
|
|
146
86
|
content: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])]),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
4
|
-
import Button from "../button/index.js";
|
|
5
4
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
5
|
+
import Button from "../button/index.js";
|
|
6
6
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderSlot, shallowRef, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
7
7
|
import { unrefElement, useElementBounding, useEventListener, useResizeObserver, useWindowSize } from "@vueuse/core";
|
|
8
8
|
import { Motion } from "motion-v";
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
}
|
|
219
219
|
.sd-transfer-list-item-dragged {
|
|
220
220
|
animation: sd-transfer-drag-item-blink 0.4s;
|
|
221
|
-
animation-timing-function: cubic-bezier(0, 0, 1, 1);
|
|
221
|
+
animation-timing-function: cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
222
222
|
}
|
|
223
223
|
.sd-transfer-operations {
|
|
224
224
|
padding: 0 20px;
|
|
@@ -243,7 +243,7 @@ $transfer-prefix-cls: string.unquote('#{theme.$prefix}-transfer');
|
|
|
243
243
|
|
|
244
244
|
&-dragged {
|
|
245
245
|
animation: #{theme.$prefix}-transfer-drag-item-blink 0.4s;
|
|
246
|
-
animation-timing-function: theme.$transition-timing-function-
|
|
246
|
+
animation-timing-function: theme.$transition-timing-function-standard;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
3
|
+
import { isActivationKey } from "../_utils/keyboard.js";
|
|
3
4
|
import IconClose from "../icon/icon-close/index.js";
|
|
4
5
|
import Checkbox from "../checkbox/index.js";
|
|
5
6
|
import { transferInjectionKey } from "./context.js";
|
|
6
|
-
import { computed, createVNode, defineComponent, inject
|
|
7
|
+
import { computed, createVNode, defineComponent, inject } from "vue";
|
|
7
8
|
//#region components/transfer/transfer-list-item.tsx
|
|
8
9
|
var transfer_list_item_default = /* @__PURE__ */ defineComponent({
|
|
9
10
|
name: "TransferListItem",
|
|
@@ -31,6 +32,12 @@ var transfer_list_item_default = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
const handleRemove = () => {
|
|
32
33
|
transferCtx === null || transferCtx === void 0 || transferCtx.moveTo([props.data.value], "source");
|
|
33
34
|
};
|
|
35
|
+
const handleRemoveKeydown = (ev) => {
|
|
36
|
+
if (isActivationKey(ev)) {
|
|
37
|
+
ev.preventDefault();
|
|
38
|
+
handleRemove();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
34
41
|
return () => {
|
|
35
42
|
var _transferCtx$slots$it, _transferCtx$slots, _transferCtx$slots$it2;
|
|
36
43
|
return createVNode("div", {
|
|
@@ -52,7 +59,14 @@ var transfer_list_item_default = /* @__PURE__ */ defineComponent({
|
|
|
52
59
|
label: props.data.label,
|
|
53
60
|
value: props.data.value
|
|
54
61
|
})) !== null && _transferCtx$slots$it3 !== void 0 ? _transferCtx$slots$it3 : props.data.label];
|
|
55
|
-
} }), props.allowClear && !props.disabled && createVNode(
|
|
62
|
+
} }), props.allowClear && !props.disabled && createVNode("span", {
|
|
63
|
+
"class": `${prefixCls}-remove-btn`,
|
|
64
|
+
"role": "button",
|
|
65
|
+
"tabindex": "0",
|
|
66
|
+
"aria-label": "Remove",
|
|
67
|
+
"onClick": handleRemove,
|
|
68
|
+
"onKeydown": handleRemoveKeydown
|
|
69
|
+
}, [createVNode(icon_hover_default, null, { default: () => [createVNode(IconClose, null, null)] })])]);
|
|
56
70
|
};
|
|
57
71
|
}
|
|
58
72
|
});
|
|
@@ -12,7 +12,15 @@ import node_switcher_default from "./node-switcher.js";
|
|
|
12
12
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useSlots, withCtx } from "vue";
|
|
13
13
|
import { onLongPress, useSwipe } from "@vueuse/core";
|
|
14
14
|
//#region components/tree/base-node.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var _hoisted_1 = [
|
|
15
|
+
var _hoisted_1 = [
|
|
16
|
+
"data-level",
|
|
17
|
+
"data-key",
|
|
18
|
+
"tabindex",
|
|
19
|
+
"aria-level",
|
|
20
|
+
"aria-expanded",
|
|
21
|
+
"aria-selected",
|
|
22
|
+
"aria-disabled"
|
|
23
|
+
];
|
|
16
24
|
var _hoisted_2 = ["draggable"];
|
|
17
25
|
var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "BaseTreeNode" }), {}, {
|
|
18
26
|
__name: "base-node",
|
|
@@ -192,6 +200,11 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
192
200
|
var _treeContext$onNodeEv;
|
|
193
201
|
(_treeContext$onNodeEv = treeContext.onNodeEvent) === null || _treeContext$onNodeEv === void 0 || _treeContext$onNodeEv.call(treeContext, eventName, key.value, e);
|
|
194
202
|
}
|
|
203
|
+
function onTreeitemKeydown(e) {
|
|
204
|
+
var _treeContext$onNodeKe;
|
|
205
|
+
onNodeDomEvent("keydown", e);
|
|
206
|
+
(_treeContext$onNodeKe = treeContext.onNodeKeydown) === null || _treeContext$onNodeKe === void 0 || _treeContext$onNodeKe.call(treeContext, key.value, e);
|
|
207
|
+
}
|
|
195
208
|
function onDragStart(e) {
|
|
196
209
|
if (!draggable.value) return;
|
|
197
210
|
e.stopPropagation();
|
|
@@ -229,7 +242,16 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
229
242
|
return openBlock(), createElementBlock("div", {
|
|
230
243
|
class: normalizeClass(classNames.value),
|
|
231
244
|
"data-level": __props.level,
|
|
232
|
-
"data-key": unref(nodekey)
|
|
245
|
+
"data-key": unref(nodekey),
|
|
246
|
+
role: "treeitem",
|
|
247
|
+
tabindex: unref(treeContext).activeKey === unref(nodekey) ? 0 : -1,
|
|
248
|
+
"aria-level": __props.level + 1,
|
|
249
|
+
"aria-expanded": unref(isLeaf) ? void 0 : expanded.value,
|
|
250
|
+
"aria-selected": unref(selectable) ? selected.value : void 0,
|
|
251
|
+
"aria-disabled": unref(disabled) || void 0,
|
|
252
|
+
onKeydown: onTreeitemKeydown,
|
|
253
|
+
onKeyup: _cache[21] || (_cache[21] = ($event) => onNodeDomEvent("keyup", $event)),
|
|
254
|
+
onKeypress: _cache[22] || (_cache[22] = ($event) => onNodeDomEvent("keypress", $event))
|
|
233
255
|
}, [
|
|
234
256
|
createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-indent`) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.level, (i) => {
|
|
235
257
|
return openBlock(), createElementBlock("span", {
|
|
@@ -272,6 +294,7 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
272
294
|
disabled: unref(disableCheckbox) || unref(disabled),
|
|
273
295
|
"model-value": checked.value,
|
|
274
296
|
indeterminate: indeterminate.value,
|
|
297
|
+
tabindex: "-1",
|
|
275
298
|
"uninject-group-context": "",
|
|
276
299
|
onChange: onCheckboxChange
|
|
277
300
|
}, null, 8, [
|
|
@@ -310,10 +333,7 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
310
333
|
onTouchstart: _cache[17] || (_cache[17] = ($event) => onNodeDomEvent("touchstart", $event)),
|
|
311
334
|
onTouchmove: _cache[18] || (_cache[18] = ($event) => onNodeDomEvent("touchmove", $event)),
|
|
312
335
|
onTouchend: _cache[19] || (_cache[19] = ($event) => onNodeDomEvent("touchend", $event)),
|
|
313
|
-
onTouchcancel: _cache[20] || (_cache[20] = ($event) => onNodeDomEvent("touchcancel", $event))
|
|
314
|
-
onKeydown: _cache[21] || (_cache[21] = ($event) => onNodeDomEvent("keydown", $event)),
|
|
315
|
-
onKeyup: _cache[22] || (_cache[22] = ($event) => onNodeDomEvent("keyup", $event)),
|
|
316
|
-
onKeypress: _cache[23] || (_cache[23] = ($event) => onNodeDomEvent("keypress", $event))
|
|
336
|
+
onTouchcancel: _cache[20] || (_cache[20] = ($event) => onNodeDomEvent("touchcancel", $event))
|
|
317
337
|
}, [_ctx.$slots.icon || __props.icon || treeNodeIcon.value ? (openBlock(), createElementBlock("span", {
|
|
318
338
|
key: 0,
|
|
319
339
|
class: normalizeClass([`${unref(prefixCls)}-icon`, `${unref(prefixCls)}-custom-icon`])
|
|
@@ -337,7 +357,7 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
337
357
|
node: treeNodeData.value
|
|
338
358
|
}, nodeStatus), null, 16, ["node"])) : (openBlock(), createBlock(unref(IconDragDotVertical), { key: 3 }))], 2)) : createCommentVNode("", true)], 2)], 42, _hoisted_2),
|
|
339
359
|
extra.value ? (openBlock(), createBlock(resolveDynamicComponent(extra.value), { key: 2 })) : createCommentVNode("", true)
|
|
340
|
-
],
|
|
360
|
+
], 42, _hoisted_1);
|
|
341
361
|
};
|
|
342
362
|
}
|
|
343
363
|
}));
|
package/es/tree/context.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export type TreeContext = Readonly<{
|
|
|
19
19
|
expandedKeys: TreeNodeKey[];
|
|
20
20
|
loadingKeys: TreeNodeKey[];
|
|
21
21
|
currentExpandKeys: TreeNodeKey[];
|
|
22
|
+
activeKey?: TreeNodeKey;
|
|
22
23
|
onLoadMore?: (key: TreeNodeKey) => void;
|
|
23
24
|
onCheck: (checked: boolean, key: TreeNodeKey, e?: Event) => void;
|
|
24
25
|
onSelect: (key: TreeNodeKey, e: Event) => void;
|
|
@@ -31,6 +32,7 @@ export type TreeContext = Readonly<{
|
|
|
31
32
|
onDrop?: (key: TreeNodeKey, dropPosition: DropPosition, e: DragEvent) => void;
|
|
32
33
|
allowDrop?: (key: TreeNodeKey, dropPosition: DropPosition) => boolean;
|
|
33
34
|
onNodeEvent?: (eventName: TreeNodeDomEventName, key: TreeNodeKey, e: Event) => void;
|
|
35
|
+
onNodeKeydown?: (key: TreeNodeKey, e: KeyboardEvent) => void;
|
|
34
36
|
onNodeLongPress?: (key: TreeNodeKey, e: PointerEvent) => void;
|
|
35
37
|
onNodeSwipe?: (eventName: TreeNodeSwipeEventName, key: TreeNodeKey, e: TouchEvent, data: TreeNodeSwipeEventData) => void;
|
|
36
38
|
}>;
|
package/es/tree/style/index.css
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
.sd-tree-node-selected .sd-tree-node-title, .sd-tree-node-selected .sd-tree-node-title:hover {
|
|
122
122
|
color: rgb(var(--sd-primary-6));
|
|
123
|
-
transition: color 0.2s cubic-bezier(0, 0, 1, 1);
|
|
123
|
+
transition: color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
124
124
|
}
|
|
125
125
|
.sd-tree-node-disabled-selectable .sd-tree-node-title,
|
|
126
126
|
.sd-tree-node-disabled-selectable .sd-tree-node-title:hover, .sd-tree-node-disabled .sd-tree-node-title,
|
package/es/tree/style/index.scss
CHANGED
|
@@ -157,7 +157,7 @@ $tree-node-prefix-cls: string.unquote('#{theme.$prefix}-tree-node');
|
|
|
157
157
|
&-selected &-title,
|
|
158
158
|
&-selected &-title:hover {
|
|
159
159
|
color: $tree-color-title-text_active;
|
|
160
|
-
transition: color theme.$transition-duration-2 theme.$transition-timing-function-
|
|
160
|
+
transition: color theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
&-disabled-selectable,
|