ep-craft 0.1.20 → 0.1.21
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/button/EpButton.vue.d.ts +6 -6
- package/dist/components/button/EpButton.vue.js +122 -0
- package/dist/components/button/EpButton2.vue.js +4 -0
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/button/button.js +95 -0
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +3 -4
- package/dist/components/button/use-button-custom.js +66 -0
- package/dist/components/check-tag/EpCheckTag.vue.js +29 -0
- package/dist/components/check-tag/EpCheckTag2.vue.js +4 -0
- package/dist/components/check-tag/check-tag.js +20 -0
- package/dist/components/check-tag/index.d.ts +2 -2
- package/dist/components/check-tag/index.js +3 -4
- package/dist/components/collapse-transition/index.d.ts +20 -3
- package/dist/components/collapse-transition/index.js +6 -4
- package/dist/components/collapse-transition/src/collapse-transition.vue.d.ts +12 -0
- package/dist/components/collapse-transition/src/collapse-transition.vue.js +55 -0
- package/dist/components/collapse-transition/src/collapse-transition2.vue.js +4 -0
- package/dist/components/config-provider/src/constants.d.ts +14 -0
- package/dist/components/config-provider/src/hooks/use-global-config.d.ts +32 -0
- package/dist/components/focus-trap/index.d.ts +81 -0
- package/dist/components/focus-trap/index.js +19 -0
- package/dist/components/focus-trap/src/focus-trap.vue.d.ts +32 -0
- package/dist/components/focus-trap/src/focus-trap.vue.js +10 -0
- package/dist/components/focus-trap/src/focus-trap2.vue.js +164 -0
- package/dist/components/focus-trap/src/tokens.d.ts +13 -0
- package/dist/components/focus-trap/src/tokens.js +17 -0
- package/dist/components/focus-trap/src/utils.d.ts +29 -0
- package/dist/components/focus-trap/src/utils.js +83 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.js +4 -2
- package/dist/components/form/src/constants.d.ts +4 -0
- package/dist/components/form/src/constants.js +4 -0
- package/dist/components/form/src/hooks/use-form-common-props.d.ts +6 -0
- package/dist/components/form/src/hooks/use-form-item.d.ts +19 -0
- package/dist/components/form/src/types.d.ts +24 -0
- package/dist/components/icon/index.d.ts +21 -3
- package/dist/components/icon/index.js +7 -4
- package/dist/components/icon/src/icon.d.ts +34 -0
- package/dist/components/icon/src/icon.js +16 -0
- package/dist/components/icon/src/icon.vue.d.ts +13 -0
- package/dist/components/icon/src/icon.vue.js +36 -0
- package/dist/components/icon/src/icon2.vue.js +4 -0
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/popper/index.d.ts +54 -3
- package/dist/components/popper/index.js +30 -5
- package/dist/components/popper/src/arrow.d.ts +30 -0
- package/dist/components/popper/src/arrow.js +14 -0
- package/dist/components/popper/src/arrow.vue.d.ts +7 -0
- package/dist/components/popper/src/arrow.vue.js +4 -0
- package/dist/components/popper/src/arrow2.vue.js +37 -0
- package/dist/components/popper/src/composables/index.d.ts +4 -0
- package/dist/components/popper/src/composables/use-content-dom.d.ts +40 -0
- package/dist/components/popper/src/composables/use-content-dom.js +45 -0
- package/dist/components/popper/src/composables/use-content.d.ts +77 -0
- package/dist/components/popper/src/composables/use-content.js +76 -0
- package/dist/components/popper/src/composables/use-focus-trap.d.ts +12 -0
- package/dist/components/popper/src/composables/use-focus-trap.js +29 -0
- package/dist/components/popper/src/constants.d.ts +23 -0
- package/dist/components/popper/src/constants.js +5 -0
- package/dist/components/popper/src/content.d.ts +234 -0
- package/dist/components/popper/src/content.js +129 -0
- package/dist/components/popper/src/content.vue.d.ts +61 -0
- package/dist/components/popper/src/content.vue.js +4 -0
- package/dist/components/popper/src/content2.vue.js +151 -0
- package/dist/components/popper/src/popper.d.ts +35 -0
- package/dist/components/popper/src/popper.js +22 -0
- package/dist/components/popper/src/popper.vue.d.ts +22 -0
- package/dist/components/popper/src/popper.vue.js +38 -0
- package/dist/components/popper/src/popper2.vue.js +4 -0
- package/dist/components/popper/src/trigger.d.ts +130 -0
- package/dist/components/popper/src/trigger.js +36 -0
- package/dist/components/popper/src/trigger.vue.d.ts +18 -0
- package/dist/components/popper/src/trigger.vue.js +4 -0
- package/dist/components/popper/src/trigger2.vue.js +134 -0
- package/dist/components/popper/src/utils.d.ts +48 -0
- package/dist/components/popper/src/utils.js +57 -0
- package/dist/components/slot/index.d.ts +3 -0
- package/dist/components/slot/src/only-child.d.ts +7 -0
- package/dist/components/slot/src/only-child.js +55 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/EpTag.vue.js +96 -0
- package/dist/components/tag/EpTag2.vue.js +4 -0
- package/dist/components/tag/index.d.ts +2 -2
- package/dist/components/tag/index.js +2 -3
- package/dist/components/tag/tag.js +38 -0
- package/dist/components/tooltip/index.d.ts +174 -3
- package/dist/components/tooltip/index.js +18 -5
- package/dist/components/tooltip/src/constants.d.ts +18 -0
- package/dist/components/tooltip/src/constants.js +4 -0
- package/dist/components/tooltip/src/content.d.ts +327 -0
- package/dist/components/tooltip/src/content.js +72 -0
- package/dist/components/tooltip/src/content.vue.d.ts +47 -0
- package/dist/components/tooltip/src/content.vue.js +188 -0
- package/dist/components/tooltip/src/content2.vue.js +4 -0
- package/dist/components/tooltip/src/tooltip.d.ts +346 -0
- package/dist/components/tooltip/src/tooltip.js +47 -0
- package/dist/components/tooltip/src/tooltip.vue.d.ts +90 -0
- package/dist/components/tooltip/src/tooltip.vue.js +236 -0
- package/dist/components/tooltip/src/tooltip2.vue.js +4 -0
- package/dist/components/tooltip/src/trigger.d.ts +94 -0
- package/dist/components/tooltip/src/trigger.js +41 -0
- package/dist/components/tooltip/src/trigger.vue.d.ts +26 -0
- package/dist/components/tooltip/src/trigger.vue.js +104 -0
- package/dist/components/tooltip/src/trigger2.vue.js +4 -0
- package/dist/components/tooltip/src/utils.d.ts +5 -0
- package/dist/components/tooltip/src/utils.js +9 -0
- package/dist/constants/aria.d.ts +17 -0
- package/dist/constants/aria.js +24 -0
- package/dist/constants/column-alignment.d.ts +2 -0
- package/dist/constants/date.d.ts +3 -0
- package/dist/constants/event.d.ts +3 -0
- package/dist/constants/form.d.ts +2 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/key.d.ts +1 -0
- package/dist/constants/size.d.ts +7 -0
- package/dist/constants/size.js +4 -0
- package/dist/directives/click-outside/index.d.ts +3 -0
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/mousewheel/index.d.ts +11 -0
- package/dist/directives/repeat-click/index.d.ts +17 -0
- package/dist/directives/trap-focus/index.d.ts +9 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/use-aria/index.d.ts +37 -0
- package/dist/hooks/use-aria/index.js +24 -0
- package/dist/hooks/use-delayed-toggle/index.d.ts +36 -0
- package/dist/hooks/use-delayed-toggle/index.js +63 -0
- package/dist/hooks/use-deprecated/index.d.ts +11 -0
- package/dist/hooks/use-empty-values/index.d.ts +29 -0
- package/dist/hooks/use-empty-values/index.js +23 -0
- package/dist/hooks/use-escape-keydown/index.d.ts +1 -0
- package/dist/hooks/use-escape-keydown/index.js +21 -0
- package/dist/hooks/use-forward-ref/index.d.ts +9 -0
- package/dist/hooks/use-forward-ref/index.js +23 -0
- package/dist/hooks/use-id/index.d.ts +8 -0
- package/dist/hooks/use-id/index.js +27 -0
- package/dist/hooks/use-locale/index.d.ts +17 -0
- package/dist/hooks/use-model-toggle/index.d.ts +46 -0
- package/dist/hooks/use-model-toggle/index.js +67 -0
- package/dist/hooks/use-namespace/index.d.ts +23 -0
- package/dist/hooks/use-namespace/index.js +45 -0
- package/dist/hooks/use-ordered-children/index.d.ts +14 -0
- package/dist/hooks/use-popper/index.d.ts +78 -0
- package/dist/hooks/use-popper/index.js +97 -0
- package/dist/hooks/use-popper-container/index.d.ts +8 -0
- package/dist/hooks/use-popper-container/index.js +26 -0
- package/dist/hooks/use-prop/index.d.ts +2 -0
- package/dist/hooks/use-size/index.d.ts +21 -0
- package/dist/hooks/use-size/index.js +8 -0
- package/dist/hooks/use-timeout/index.d.ts +4 -0
- package/dist/hooks/use-timeout/index.js +16 -0
- package/dist/hooks/use-z-index/index.d.ts +13 -0
- package/dist/hooks/use-z-index/index.js +27 -0
- package/dist/node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/button/index.js +2 -2
- package/dist/resolver.js +13 -12
- package/dist/utils/arrays.d.ts +6 -0
- package/dist/utils/arrays.js +5 -0
- package/dist/utils/browser.d.ts +4 -0
- package/dist/utils/browser.js +6 -0
- package/dist/utils/dom/aria.d.ts +26 -0
- package/dist/utils/dom/aria.js +26 -0
- package/dist/utils/dom/element.d.ts +3 -0
- package/dist/utils/dom/event.d.ts +8 -0
- package/dist/utils/dom/event.js +32 -0
- package/dist/utils/dom/index.d.ts +7 -0
- package/dist/utils/dom/position.d.ts +7 -0
- package/dist/utils/dom/scroll.d.ts +11 -0
- package/dist/utils/dom/style.d.ts +9 -0
- package/dist/utils/dom/style.js +15 -0
- package/dist/utils/easings.d.ts +1 -0
- package/dist/utils/error.d.ts +3 -0
- package/dist/utils/error.js +15 -0
- package/dist/utils/functions.d.ts +2 -0
- package/dist/utils/i18n.d.ts +4 -0
- package/dist/utils/index.d.ts +31 -0
- package/dist/utils/numbers.d.ts +6 -0
- package/dist/utils/objects.d.ts +7 -0
- package/dist/utils/raf.d.ts +2 -0
- package/dist/utils/rand.d.ts +12 -0
- package/dist/utils/strings.d.ts +8 -0
- package/dist/utils/throttleByRaf.d.ts +4 -0
- package/dist/utils/types.d.ts +9 -0
- package/dist/utils/types.js +16 -0
- package/dist/utils/typescript.d.ts +93 -0
- package/dist/utils/vue/global-node.d.ts +3 -0
- package/dist/utils/vue/icon.d.ts +27 -0
- package/dist/utils/vue/index.d.ts +9 -0
- package/dist/utils/vue/install.d.ts +7 -0
- package/dist/utils/vue/install.js +34 -0
- package/dist/utils/vue/props/index.d.ts +2 -0
- package/dist/utils/vue/props/runtime.d.ts +29 -0
- package/dist/utils/vue/props/runtime.js +36 -0
- package/dist/utils/vue/props/types.d.ts +85 -0
- package/dist/utils/vue/props/util.d.ts +7 -0
- package/dist/utils/vue/refs.d.ts +2 -0
- package/dist/utils/vue/size.d.ts +2 -0
- package/dist/utils/vue/typescript.d.ts +25 -0
- package/dist/utils/vue/validator.d.ts +3 -0
- package/dist/utils/vue/vnode.d.ts +48 -0
- package/dist/vendored-components.d.ts +13 -0
- package/dist/vendored-components.js +22 -0
- package/package.json +11 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const t = ["primary", "success", "info", "warning", "danger"], a = ["dark", "light", "plain"], n = {
|
|
2
|
+
/** 标签类型 */
|
|
3
|
+
type: {
|
|
4
|
+
type: String,
|
|
5
|
+
values: t,
|
|
6
|
+
default: "primary"
|
|
7
|
+
},
|
|
8
|
+
/** 是否可关闭 */
|
|
9
|
+
closable: Boolean,
|
|
10
|
+
/** 是否禁用渐变动画 */
|
|
11
|
+
disableTransitions: Boolean,
|
|
12
|
+
/** 是否有边框描边 */
|
|
13
|
+
hit: Boolean,
|
|
14
|
+
/** 背景色 */
|
|
15
|
+
color: String,
|
|
16
|
+
/** 标签尺寸 */
|
|
17
|
+
size: {
|
|
18
|
+
type: String,
|
|
19
|
+
values: ["", "large", "default", "small"]
|
|
20
|
+
},
|
|
21
|
+
/** 主题 */
|
|
22
|
+
effect: {
|
|
23
|
+
type: String,
|
|
24
|
+
values: a,
|
|
25
|
+
default: "light"
|
|
26
|
+
},
|
|
27
|
+
/** 是否为圆形标签 */
|
|
28
|
+
round: Boolean
|
|
29
|
+
}, o = {
|
|
30
|
+
close: (e) => e instanceof MouseEvent,
|
|
31
|
+
click: (e) => e instanceof MouseEvent
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
a as tagEffects,
|
|
35
|
+
o as tagEmits,
|
|
36
|
+
n as tagProps,
|
|
37
|
+
t as tagTypes
|
|
38
|
+
};
|
|
@@ -1,4 +1,175 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
1
|
+
import Tooltip from './src/tooltip.vue';
|
|
2
|
+
import type { SFCWithInstall } from '@element-plus/utils';
|
|
3
|
+
export declare const ElTooltip: SFCWithInstall<typeof Tooltip>;
|
|
4
|
+
export * from './src/tooltip';
|
|
5
|
+
export * from './src/trigger';
|
|
6
|
+
export * from './src/content';
|
|
7
|
+
export * from './src/constants';
|
|
8
|
+
export declare const EpTooltip: {
|
|
9
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import(".").UseTooltipProps> & Readonly<{
|
|
10
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
popperRef: import("vue").Ref<import("../popper").PopperInstance | undefined, import("../popper").PopperInstance | undefined>;
|
|
19
|
+
contentRef: import("vue").Ref<import(".").TooltipContentInstance | undefined, import(".").TooltipContentInstance | undefined>;
|
|
20
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
21
|
+
updatePopper: () => void;
|
|
22
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
23
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
24
|
+
hide: (event?: Event) => void;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
close: (...args: any[]) => void;
|
|
27
|
+
open: (...args: any[]) => void;
|
|
28
|
+
hide: (...args: any[]) => void;
|
|
29
|
+
show: (...args: any[]) => void;
|
|
30
|
+
"update:visible": (...args: any[]) => void;
|
|
31
|
+
"before-show": (...args: any[]) => void;
|
|
32
|
+
"before-hide": (...args: any[]) => void;
|
|
33
|
+
}, import("vue").PublicProps, {
|
|
34
|
+
offset: number;
|
|
35
|
+
teleported: boolean;
|
|
36
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
37
|
+
effect: import("../popper").PopperEffect;
|
|
38
|
+
role: typeof import("../popper").roleTypes[number];
|
|
39
|
+
content: string;
|
|
40
|
+
visible: boolean | null;
|
|
41
|
+
enterable: boolean;
|
|
42
|
+
pure: boolean;
|
|
43
|
+
focusOnShow: boolean;
|
|
44
|
+
trapping: boolean;
|
|
45
|
+
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
46
|
+
stopPopperMouseEvent: boolean;
|
|
47
|
+
virtualTriggering: boolean;
|
|
48
|
+
loop: boolean;
|
|
49
|
+
boundariesPadding: number;
|
|
50
|
+
gpuAcceleration: boolean;
|
|
51
|
+
placement: import("element-plus").Placement;
|
|
52
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
53
|
+
strategy: "fixed" | "absolute";
|
|
54
|
+
arrowOffset: number;
|
|
55
|
+
showArrow: boolean;
|
|
56
|
+
showAfter: number;
|
|
57
|
+
hideAfter: number;
|
|
58
|
+
autoClose: number;
|
|
59
|
+
trigger: import("@element-plus/utils").Arrayable<import(".").TooltipTriggerType>;
|
|
60
|
+
triggerKeys: string[];
|
|
61
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
62
|
+
P: {};
|
|
63
|
+
B: {};
|
|
64
|
+
D: {};
|
|
65
|
+
C: {};
|
|
66
|
+
M: {};
|
|
67
|
+
Defaults: {};
|
|
68
|
+
}, Readonly<import(".").UseTooltipProps> & Readonly<{
|
|
69
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
popperRef: import("vue").Ref<import("../popper").PopperInstance | undefined, import("../popper").PopperInstance | undefined>;
|
|
78
|
+
contentRef: import("vue").Ref<import(".").TooltipContentInstance | undefined, import(".").TooltipContentInstance | undefined>;
|
|
79
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
80
|
+
updatePopper: () => void;
|
|
81
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
82
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
83
|
+
hide: (event?: Event) => void;
|
|
84
|
+
}, {}, {}, {}, {
|
|
85
|
+
offset: number;
|
|
86
|
+
teleported: boolean;
|
|
87
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
88
|
+
effect: import("../popper").PopperEffect;
|
|
89
|
+
role: typeof import("../popper").roleTypes[number];
|
|
90
|
+
content: string;
|
|
91
|
+
visible: boolean | null;
|
|
92
|
+
enterable: boolean;
|
|
93
|
+
pure: boolean;
|
|
94
|
+
focusOnShow: boolean;
|
|
95
|
+
trapping: boolean;
|
|
96
|
+
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
97
|
+
stopPopperMouseEvent: boolean;
|
|
98
|
+
virtualTriggering: boolean;
|
|
99
|
+
loop: boolean;
|
|
100
|
+
boundariesPadding: number;
|
|
101
|
+
gpuAcceleration: boolean;
|
|
102
|
+
placement: import("element-plus").Placement;
|
|
103
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
104
|
+
strategy: "fixed" | "absolute";
|
|
105
|
+
arrowOffset: number;
|
|
106
|
+
showArrow: boolean;
|
|
107
|
+
showAfter: number;
|
|
108
|
+
hideAfter: number;
|
|
109
|
+
autoClose: number;
|
|
110
|
+
trigger: import("@element-plus/utils").Arrayable<import(".").TooltipTriggerType>;
|
|
111
|
+
triggerKeys: string[];
|
|
112
|
+
}>;
|
|
113
|
+
__isFragment?: never;
|
|
114
|
+
__isTeleport?: never;
|
|
115
|
+
__isSuspense?: never;
|
|
116
|
+
} & import("vue").ComponentOptionsBase<Readonly<import(".").UseTooltipProps> & Readonly<{
|
|
117
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
popperRef: import("vue").Ref<import("../popper").PopperInstance | undefined, import("../popper").PopperInstance | undefined>;
|
|
126
|
+
contentRef: import("vue").Ref<import(".").TooltipContentInstance | undefined, import(".").TooltipContentInstance | undefined>;
|
|
127
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
128
|
+
updatePopper: () => void;
|
|
129
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
130
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
131
|
+
hide: (event?: Event) => void;
|
|
132
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
133
|
+
close: (...args: any[]) => void;
|
|
134
|
+
open: (...args: any[]) => void;
|
|
135
|
+
hide: (...args: any[]) => void;
|
|
136
|
+
show: (...args: any[]) => void;
|
|
137
|
+
"update:visible": (...args: any[]) => void;
|
|
138
|
+
"before-show": (...args: any[]) => void;
|
|
139
|
+
"before-hide": (...args: any[]) => void;
|
|
140
|
+
}, string, {
|
|
141
|
+
offset: number;
|
|
142
|
+
teleported: boolean;
|
|
143
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
144
|
+
effect: import("../popper").PopperEffect;
|
|
145
|
+
role: typeof import("../popper").roleTypes[number];
|
|
146
|
+
content: string;
|
|
147
|
+
visible: boolean | null;
|
|
148
|
+
enterable: boolean;
|
|
149
|
+
pure: boolean;
|
|
150
|
+
focusOnShow: boolean;
|
|
151
|
+
trapping: boolean;
|
|
152
|
+
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
153
|
+
stopPopperMouseEvent: boolean;
|
|
154
|
+
virtualTriggering: boolean;
|
|
155
|
+
loop: boolean;
|
|
156
|
+
boundariesPadding: number;
|
|
157
|
+
gpuAcceleration: boolean;
|
|
158
|
+
placement: import("element-plus").Placement;
|
|
159
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
160
|
+
strategy: "fixed" | "absolute";
|
|
161
|
+
arrowOffset: number;
|
|
162
|
+
showArrow: boolean;
|
|
163
|
+
showAfter: number;
|
|
164
|
+
hideAfter: number;
|
|
165
|
+
autoClose: number;
|
|
166
|
+
trigger: import("@element-plus/utils").Arrayable<import(".").TooltipTriggerType>;
|
|
167
|
+
triggerKeys: string[];
|
|
168
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
169
|
+
$slots: {
|
|
170
|
+
default?: (props: {}) => any;
|
|
171
|
+
} & {
|
|
172
|
+
content?: (props: {}) => any;
|
|
173
|
+
};
|
|
174
|
+
}) & import("vue").Plugin;
|
|
4
175
|
export default EpTooltip;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { withInstall as p } from "../../utils/vue/install.js";
|
|
4
|
+
import o from "./src/tooltip.vue.js";
|
|
5
|
+
import { tooltipEmits as g, useTooltipModelToggle as f, useTooltipModelToggleEmits as n, useTooltipModelToggleProps as u } from "./src/tooltip.js";
|
|
6
|
+
import { useTooltipTriggerProps as P, useTooltipTriggerPropsDefaults as x } from "./src/trigger.js";
|
|
7
|
+
import { useTooltipContentProps as h, useTooltipContentPropsDefaults as w } from "./src/content.js";
|
|
8
|
+
p(o);
|
|
9
|
+
const s = t(o, "ep-tooltip");
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
s as EpTooltip,
|
|
12
|
+
g as tooltipEmits,
|
|
13
|
+
h as useTooltipContentProps,
|
|
14
|
+
w as useTooltipContentPropsDefaults,
|
|
15
|
+
f as useTooltipModelToggle,
|
|
16
|
+
n as useTooltipModelToggleEmits,
|
|
17
|
+
u as useTooltipModelToggleProps,
|
|
18
|
+
P as useTooltipTriggerProps,
|
|
19
|
+
x as useTooltipTriggerPropsDefaults
|
|
7
20
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Arrayable } from '@element-plus/utils';
|
|
2
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
3
|
+
import type { TooltipTriggerType } from './trigger';
|
|
4
|
+
export type ElTooltipInjectionContext = {
|
|
5
|
+
controlled: Ref<boolean>;
|
|
6
|
+
id: Ref<string>;
|
|
7
|
+
open: Ref<boolean>;
|
|
8
|
+
trigger: Ref<Arrayable<TooltipTriggerType>>;
|
|
9
|
+
onOpen: (e?: Event) => void;
|
|
10
|
+
onClose: (e?: Event) => void;
|
|
11
|
+
onToggle: (e: Event) => void;
|
|
12
|
+
onShow: () => void;
|
|
13
|
+
onHide: () => void;
|
|
14
|
+
onBeforeShow: () => void;
|
|
15
|
+
onBeforeHide: () => void;
|
|
16
|
+
updatePopper: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const TOOLTIP_INJECTION_KEY: InjectionKey<ElTooltipInjectionContext>;
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import type { AriaProps, UseDelayedToggleProps } from '@element-plus/hooks';
|
|
2
|
+
import type { PopperContentProps } from '@element-plus/components/popper';
|
|
3
|
+
import type TooltipContent from './content.vue';
|
|
4
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
5
|
+
export interface ElTooltipContentProps extends UseDelayedToggleProps, Omit<PopperContentProps, 'visible'> {
|
|
6
|
+
/**
|
|
7
|
+
* @description which element the tooltip CONTENT appends to
|
|
8
|
+
*/
|
|
9
|
+
appendTo?: string | HTMLElement;
|
|
10
|
+
/**
|
|
11
|
+
* @description display content, can be overridden by `slot#content`
|
|
12
|
+
*/
|
|
13
|
+
content?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description whether `content` is treated as HTML string
|
|
16
|
+
*/
|
|
17
|
+
rawContent?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @description when tooltip inactive and `persistent` is `false` , popconfirm will be destroyed
|
|
20
|
+
*/
|
|
21
|
+
persistent?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @description visibility of Tooltip
|
|
24
|
+
*/
|
|
25
|
+
visible?: boolean | null;
|
|
26
|
+
/**
|
|
27
|
+
* @description animation name
|
|
28
|
+
*/
|
|
29
|
+
transition?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description whether tooltip content is teleported, if `true` it will be teleported to where `append-to` sets
|
|
32
|
+
*/
|
|
33
|
+
teleported?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @description whether Tooltip is disabled
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
ariaLabel?: AriaProps['ariaLabel'];
|
|
39
|
+
}
|
|
40
|
+
export declare const useTooltipContentPropsDefaults: {
|
|
41
|
+
readonly content: "";
|
|
42
|
+
readonly visible: null;
|
|
43
|
+
readonly teleported: true;
|
|
44
|
+
readonly effect: "dark";
|
|
45
|
+
readonly enterable: true;
|
|
46
|
+
readonly stopPopperMouseEvent: true;
|
|
47
|
+
readonly pure: false;
|
|
48
|
+
readonly focusOnShow: false;
|
|
49
|
+
readonly trapping: false;
|
|
50
|
+
readonly virtualTriggering: false;
|
|
51
|
+
readonly loop: false;
|
|
52
|
+
readonly style: undefined;
|
|
53
|
+
readonly popperStyle: undefined;
|
|
54
|
+
readonly arrowOffset: 5;
|
|
55
|
+
readonly boundariesPadding: 0;
|
|
56
|
+
readonly gpuAcceleration: true;
|
|
57
|
+
readonly offset: 12;
|
|
58
|
+
readonly placement: "bottom";
|
|
59
|
+
readonly popperOptions: () => {};
|
|
60
|
+
readonly strategy: "absolute";
|
|
61
|
+
readonly showAfter: 0;
|
|
62
|
+
readonly hideAfter: 200;
|
|
63
|
+
readonly autoClose: 0;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Removed after 3.0.0, Use `ElTooltipContentProps` instead.
|
|
67
|
+
*/
|
|
68
|
+
export declare const useTooltipContentProps: {
|
|
69
|
+
readonly ariaLabel: StringConstructor;
|
|
70
|
+
readonly appendTo: {
|
|
71
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
|
72
|
+
readonly required: false;
|
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
|
+
__epPropKey: true;
|
|
75
|
+
};
|
|
76
|
+
readonly content: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
77
|
+
readonly rawContent: BooleanConstructor;
|
|
78
|
+
readonly persistent: BooleanConstructor;
|
|
79
|
+
readonly visible: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | (((new (...args: any[]) => boolean) | (() => boolean | null)) | null)[], unknown, unknown, null, boolean>;
|
|
80
|
+
readonly transition: StringConstructor;
|
|
81
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
82
|
+
readonly disabled: BooleanConstructor;
|
|
83
|
+
readonly loop: BooleanConstructor;
|
|
84
|
+
readonly id: StringConstructor;
|
|
85
|
+
readonly style: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
86
|
+
readonly className: {
|
|
87
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
88
|
+
[x: string]: boolean;
|
|
89
|
+
} | (string | {
|
|
90
|
+
[x: string]: boolean;
|
|
91
|
+
} | (string | {
|
|
92
|
+
[x: string]: boolean;
|
|
93
|
+
} | (string | {
|
|
94
|
+
[x: string]: boolean;
|
|
95
|
+
} | (string | {
|
|
96
|
+
[x: string]: boolean;
|
|
97
|
+
} | (string | {
|
|
98
|
+
[x: string]: boolean;
|
|
99
|
+
} | (string | {
|
|
100
|
+
[x: string]: boolean;
|
|
101
|
+
} | (string | {
|
|
102
|
+
[x: string]: boolean;
|
|
103
|
+
} | (string | {
|
|
104
|
+
[x: string]: boolean;
|
|
105
|
+
} | (string | {
|
|
106
|
+
[x: string]: boolean;
|
|
107
|
+
} | (string | {
|
|
108
|
+
[x: string]: boolean;
|
|
109
|
+
} | (string | {
|
|
110
|
+
[x: string]: boolean;
|
|
111
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
112
|
+
[x: string]: boolean;
|
|
113
|
+
} | (string | {
|
|
114
|
+
[x: string]: boolean;
|
|
115
|
+
} | (string | {
|
|
116
|
+
[x: string]: boolean;
|
|
117
|
+
} | (string | {
|
|
118
|
+
[x: string]: boolean;
|
|
119
|
+
} | (string | {
|
|
120
|
+
[x: string]: boolean;
|
|
121
|
+
} | (string | {
|
|
122
|
+
[x: string]: boolean;
|
|
123
|
+
} | (string | {
|
|
124
|
+
[x: string]: boolean;
|
|
125
|
+
} | (string | {
|
|
126
|
+
[x: string]: boolean;
|
|
127
|
+
} | (string | {
|
|
128
|
+
[x: string]: boolean;
|
|
129
|
+
} | (string | {
|
|
130
|
+
[x: string]: boolean;
|
|
131
|
+
} | (string | {
|
|
132
|
+
[x: string]: boolean;
|
|
133
|
+
} | (string | {
|
|
134
|
+
[x: string]: boolean;
|
|
135
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
136
|
+
[x: string]: boolean;
|
|
137
|
+
} | (string | {
|
|
138
|
+
[x: string]: boolean;
|
|
139
|
+
} | (string | {
|
|
140
|
+
[x: string]: boolean;
|
|
141
|
+
} | (string | {
|
|
142
|
+
[x: string]: boolean;
|
|
143
|
+
} | (string | {
|
|
144
|
+
[x: string]: boolean;
|
|
145
|
+
} | (string | {
|
|
146
|
+
[x: string]: boolean;
|
|
147
|
+
} | (string | {
|
|
148
|
+
[x: string]: boolean;
|
|
149
|
+
} | (string | {
|
|
150
|
+
[x: string]: boolean;
|
|
151
|
+
} | (string | {
|
|
152
|
+
[x: string]: boolean;
|
|
153
|
+
} | (string | {
|
|
154
|
+
[x: string]: boolean;
|
|
155
|
+
} | (string | {
|
|
156
|
+
[x: string]: boolean;
|
|
157
|
+
} | (string | {
|
|
158
|
+
[x: string]: boolean;
|
|
159
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
160
|
+
[x: string]: boolean;
|
|
161
|
+
} | (string | {
|
|
162
|
+
[x: string]: boolean;
|
|
163
|
+
} | (string | {
|
|
164
|
+
[x: string]: boolean;
|
|
165
|
+
} | (string | {
|
|
166
|
+
[x: string]: boolean;
|
|
167
|
+
} | (string | {
|
|
168
|
+
[x: string]: boolean;
|
|
169
|
+
} | (string | {
|
|
170
|
+
[x: string]: boolean;
|
|
171
|
+
} | (string | {
|
|
172
|
+
[x: string]: boolean;
|
|
173
|
+
} | (string | {
|
|
174
|
+
[x: string]: boolean;
|
|
175
|
+
} | (string | {
|
|
176
|
+
[x: string]: boolean;
|
|
177
|
+
} | (string | {
|
|
178
|
+
[x: string]: boolean;
|
|
179
|
+
} | (string | {
|
|
180
|
+
[x: string]: boolean;
|
|
181
|
+
} | (string | {
|
|
182
|
+
[x: string]: boolean;
|
|
183
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
184
|
+
readonly required: false;
|
|
185
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
186
|
+
__epPropKey: true;
|
|
187
|
+
};
|
|
188
|
+
readonly effect: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect) | (((new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
189
|
+
readonly enterable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
190
|
+
readonly pure: BooleanConstructor;
|
|
191
|
+
readonly focusOnShow: BooleanConstructor;
|
|
192
|
+
readonly trapping: BooleanConstructor;
|
|
193
|
+
readonly popperClass: {
|
|
194
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
195
|
+
[x: string]: boolean;
|
|
196
|
+
} | (string | {
|
|
197
|
+
[x: string]: boolean;
|
|
198
|
+
} | (string | {
|
|
199
|
+
[x: string]: boolean;
|
|
200
|
+
} | (string | {
|
|
201
|
+
[x: string]: boolean;
|
|
202
|
+
} | (string | {
|
|
203
|
+
[x: string]: boolean;
|
|
204
|
+
} | (string | {
|
|
205
|
+
[x: string]: boolean;
|
|
206
|
+
} | (string | {
|
|
207
|
+
[x: string]: boolean;
|
|
208
|
+
} | (string | {
|
|
209
|
+
[x: string]: boolean;
|
|
210
|
+
} | (string | {
|
|
211
|
+
[x: string]: boolean;
|
|
212
|
+
} | (string | {
|
|
213
|
+
[x: string]: boolean;
|
|
214
|
+
} | (string | {
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
} | (string | {
|
|
217
|
+
[x: string]: boolean;
|
|
218
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
219
|
+
[x: string]: boolean;
|
|
220
|
+
} | (string | {
|
|
221
|
+
[x: string]: boolean;
|
|
222
|
+
} | (string | {
|
|
223
|
+
[x: string]: boolean;
|
|
224
|
+
} | (string | {
|
|
225
|
+
[x: string]: boolean;
|
|
226
|
+
} | (string | {
|
|
227
|
+
[x: string]: boolean;
|
|
228
|
+
} | (string | {
|
|
229
|
+
[x: string]: boolean;
|
|
230
|
+
} | (string | {
|
|
231
|
+
[x: string]: boolean;
|
|
232
|
+
} | (string | {
|
|
233
|
+
[x: string]: boolean;
|
|
234
|
+
} | (string | {
|
|
235
|
+
[x: string]: boolean;
|
|
236
|
+
} | (string | {
|
|
237
|
+
[x: string]: boolean;
|
|
238
|
+
} | (string | {
|
|
239
|
+
[x: string]: boolean;
|
|
240
|
+
} | (string | {
|
|
241
|
+
[x: string]: boolean;
|
|
242
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
243
|
+
[x: string]: boolean;
|
|
244
|
+
} | (string | {
|
|
245
|
+
[x: string]: boolean;
|
|
246
|
+
} | (string | {
|
|
247
|
+
[x: string]: boolean;
|
|
248
|
+
} | (string | {
|
|
249
|
+
[x: string]: boolean;
|
|
250
|
+
} | (string | {
|
|
251
|
+
[x: string]: boolean;
|
|
252
|
+
} | (string | {
|
|
253
|
+
[x: string]: boolean;
|
|
254
|
+
} | (string | {
|
|
255
|
+
[x: string]: boolean;
|
|
256
|
+
} | (string | {
|
|
257
|
+
[x: string]: boolean;
|
|
258
|
+
} | (string | {
|
|
259
|
+
[x: string]: boolean;
|
|
260
|
+
} | (string | {
|
|
261
|
+
[x: string]: boolean;
|
|
262
|
+
} | (string | {
|
|
263
|
+
[x: string]: boolean;
|
|
264
|
+
} | (string | {
|
|
265
|
+
[x: string]: boolean;
|
|
266
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
267
|
+
[x: string]: boolean;
|
|
268
|
+
} | (string | {
|
|
269
|
+
[x: string]: boolean;
|
|
270
|
+
} | (string | {
|
|
271
|
+
[x: string]: boolean;
|
|
272
|
+
} | (string | {
|
|
273
|
+
[x: string]: boolean;
|
|
274
|
+
} | (string | {
|
|
275
|
+
[x: string]: boolean;
|
|
276
|
+
} | (string | {
|
|
277
|
+
[x: string]: boolean;
|
|
278
|
+
} | (string | {
|
|
279
|
+
[x: string]: boolean;
|
|
280
|
+
} | (string | {
|
|
281
|
+
[x: string]: boolean;
|
|
282
|
+
} | (string | {
|
|
283
|
+
[x: string]: boolean;
|
|
284
|
+
} | (string | {
|
|
285
|
+
[x: string]: boolean;
|
|
286
|
+
} | (string | {
|
|
287
|
+
[x: string]: boolean;
|
|
288
|
+
} | (string | {
|
|
289
|
+
[x: string]: boolean;
|
|
290
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
291
|
+
readonly required: false;
|
|
292
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
293
|
+
__epPropKey: true;
|
|
294
|
+
};
|
|
295
|
+
readonly popperStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
296
|
+
readonly referenceEl: {
|
|
297
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
298
|
+
readonly required: false;
|
|
299
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
300
|
+
__epPropKey: true;
|
|
301
|
+
};
|
|
302
|
+
readonly triggerTargetEl: {
|
|
303
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
304
|
+
readonly required: false;
|
|
305
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
306
|
+
__epPropKey: true;
|
|
307
|
+
};
|
|
308
|
+
readonly stopPopperMouseEvent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
309
|
+
readonly virtualTriggering: BooleanConstructor;
|
|
310
|
+
readonly zIndex: NumberConstructor;
|
|
311
|
+
readonly arrowOffset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
312
|
+
readonly boundariesPadding: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
313
|
+
readonly fallbackPlacements: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, undefined, boolean>;
|
|
314
|
+
readonly gpuAcceleration: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
315
|
+
readonly offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
|
|
316
|
+
readonly placement: import("@element-plus/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
317
|
+
readonly popperOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | (((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
318
|
+
readonly strategy: import("@element-plus/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
319
|
+
readonly showAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
320
|
+
readonly hideAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
321
|
+
readonly autoClose: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* @deprecated Removed after 3.0.0, Use `ElTooltipContentProps` instead.
|
|
325
|
+
*/
|
|
326
|
+
export type ElTooltipContentPropsPublic = ExtractPublicPropTypes<typeof useTooltipContentProps>;
|
|
327
|
+
export type TooltipContentInstance = InstanceType<typeof TooltipContent> & unknown;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { buildProps as o, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "../../popper/index.js";
|
|
4
|
+
import "../../../hooks/use-size/index.js";
|
|
5
|
+
import "../../../hooks/use-z-index/index.js";
|
|
6
|
+
import { useDelayedToggleProps as t, useDelayedTogglePropsDefaults as p } from "../../../hooks/use-delayed-toggle/index.js";
|
|
7
|
+
import { useAriaProps as r } from "../../../hooks/use-aria/index.js";
|
|
8
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
9
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
10
|
+
import { popperContentPropsDefaults as n, popperContentProps as l } from "../../popper/src/content.js";
|
|
11
|
+
const b = {
|
|
12
|
+
...p,
|
|
13
|
+
...n,
|
|
14
|
+
content: "",
|
|
15
|
+
visible: null,
|
|
16
|
+
teleported: !0
|
|
17
|
+
}, T = o({
|
|
18
|
+
...t,
|
|
19
|
+
...l,
|
|
20
|
+
/**
|
|
21
|
+
* @description which element the tooltip CONTENT appends to
|
|
22
|
+
*/
|
|
23
|
+
appendTo: {
|
|
24
|
+
type: e([String, Object])
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @description display content, can be overridden by `slot#content`
|
|
28
|
+
*/
|
|
29
|
+
content: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @description whether `content` is treated as HTML string
|
|
35
|
+
*/
|
|
36
|
+
rawContent: Boolean,
|
|
37
|
+
/**
|
|
38
|
+
* @description when tooltip inactive and `persistent` is `false` , popconfirm will be destroyed
|
|
39
|
+
*/
|
|
40
|
+
persistent: Boolean,
|
|
41
|
+
// because model toggle prop is generated dynamically
|
|
42
|
+
// so the typing cannot be evaluated by typescript as type:
|
|
43
|
+
// [name]: { type: Boolean, default: null }
|
|
44
|
+
// so we need to declare that again for type checking.
|
|
45
|
+
/**
|
|
46
|
+
* @description visibility of Tooltip
|
|
47
|
+
*/
|
|
48
|
+
visible: {
|
|
49
|
+
type: e(Boolean),
|
|
50
|
+
default: null
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @description animation name
|
|
54
|
+
*/
|
|
55
|
+
transition: String,
|
|
56
|
+
/**
|
|
57
|
+
* @description whether tooltip content is teleported, if `true` it will be teleported to where `append-to` sets
|
|
58
|
+
*/
|
|
59
|
+
teleported: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* @description whether Tooltip is disabled
|
|
65
|
+
*/
|
|
66
|
+
disabled: Boolean,
|
|
67
|
+
...r(["ariaLabel"])
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
T as useTooltipContentProps,
|
|
71
|
+
b as useTooltipContentPropsDefaults
|
|
72
|
+
};
|