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,47 @@
|
|
|
1
|
+
import type { ElTooltipContentProps } from './content';
|
|
2
|
+
import type { PopperContentInstance } from '@element-plus/components/popper';
|
|
3
|
+
declare var __VLS_29: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_29) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<ElTooltipContentProps, {
|
|
8
|
+
/**
|
|
9
|
+
* @description el-popper-content component instance
|
|
10
|
+
*/
|
|
11
|
+
contentRef: import("vue").Ref<PopperContentInstance | undefined, PopperContentInstance | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* @description validate current focus event is trigger inside el-popper-content
|
|
14
|
+
*/
|
|
15
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElTooltipContentProps> & Readonly<{}>, {
|
|
17
|
+
offset: number;
|
|
18
|
+
teleported: boolean;
|
|
19
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
20
|
+
effect: import("@element-plus/components/popper").PopperEffect;
|
|
21
|
+
content: string;
|
|
22
|
+
visible: boolean | null;
|
|
23
|
+
enterable: boolean;
|
|
24
|
+
pure: boolean;
|
|
25
|
+
focusOnShow: boolean;
|
|
26
|
+
trapping: boolean;
|
|
27
|
+
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
28
|
+
stopPopperMouseEvent: boolean;
|
|
29
|
+
virtualTriggering: boolean;
|
|
30
|
+
loop: boolean;
|
|
31
|
+
boundariesPadding: number;
|
|
32
|
+
gpuAcceleration: boolean;
|
|
33
|
+
placement: import("element-plus").Placement;
|
|
34
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
35
|
+
strategy: "fixed" | "absolute";
|
|
36
|
+
arrowOffset: number;
|
|
37
|
+
showAfter: number;
|
|
38
|
+
hideAfter: number;
|
|
39
|
+
autoClose: number;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { defineComponent as Y, ref as E, inject as q, computed as l, onBeforeUnmount as G, unref as o, watch as H, openBlock as h, createBlock as B, Teleport as Q, Transition as X, withCtx as S, withDirectives as Z, createVNode as _, mergeProps as ee, renderSlot as te, vShow as oe, createCommentVNode as ne, mergeDefaults as re } from "vue";
|
|
2
|
+
import { onClickOutside as ae } from "../../../node_modules/.pnpm/@vueuse_core@14.3.0_vue@3.5.40_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js";
|
|
3
|
+
import { useNamespace as le } from "../../../hooks/use-namespace/index.js";
|
|
4
|
+
import { castArray as se } from "../../../utils/arrays.js";
|
|
5
|
+
import { focusElement as ie } from "../../../utils/dom/aria.js";
|
|
6
|
+
import { composeEventHandlers as w } from "../../../utils/dom/event.js";
|
|
7
|
+
import "../../../hooks/use-size/index.js";
|
|
8
|
+
import { usePopperContainerId as pe } from "../../../hooks/use-popper-container/index.js";
|
|
9
|
+
import "../../../hooks/use-z-index/index.js";
|
|
10
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
11
|
+
import "../../../hooks/use-aria/index.js";
|
|
12
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
13
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
14
|
+
import "../../popper/index.js";
|
|
15
|
+
import { TOOLTIP_INJECTION_KEY as ce } from "./constants.js";
|
|
16
|
+
import { isTriggerType as O } from "./utils.js";
|
|
17
|
+
import { useTooltipContentPropsDefaults as fe } from "./content.js";
|
|
18
|
+
import { computedEager as ue } from "../../../node_modules/.pnpm/@vueuse_shared@14.3.0_vue@3.5.40_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
19
|
+
import de from "../../popper/src/content2.vue.js";
|
|
20
|
+
const Le = /* @__PURE__ */ Y({
|
|
21
|
+
name: "ElTooltipContent",
|
|
22
|
+
inheritAttrs: !1,
|
|
23
|
+
__name: "content",
|
|
24
|
+
props: /* @__PURE__ */ re({
|
|
25
|
+
appendTo: {},
|
|
26
|
+
content: {},
|
|
27
|
+
rawContent: { type: Boolean },
|
|
28
|
+
persistent: { type: Boolean },
|
|
29
|
+
visible: { type: [Boolean, null] },
|
|
30
|
+
transition: {},
|
|
31
|
+
teleported: { type: Boolean },
|
|
32
|
+
disabled: { type: Boolean },
|
|
33
|
+
ariaLabel: {},
|
|
34
|
+
showAfter: {},
|
|
35
|
+
hideAfter: {},
|
|
36
|
+
autoClose: {},
|
|
37
|
+
id: {},
|
|
38
|
+
style: { type: [Boolean, null, String, Object, Array] },
|
|
39
|
+
className: {},
|
|
40
|
+
effect: {},
|
|
41
|
+
enterable: { type: Boolean },
|
|
42
|
+
pure: { type: Boolean },
|
|
43
|
+
focusOnShow: { type: Boolean },
|
|
44
|
+
trapping: { type: Boolean },
|
|
45
|
+
popperClass: {},
|
|
46
|
+
popperStyle: { type: [Boolean, null, String, Object, Array] },
|
|
47
|
+
referenceEl: {},
|
|
48
|
+
triggerTargetEl: {},
|
|
49
|
+
stopPopperMouseEvent: { type: Boolean },
|
|
50
|
+
virtualTriggering: { type: Boolean },
|
|
51
|
+
zIndex: {},
|
|
52
|
+
loop: { type: Boolean },
|
|
53
|
+
boundariesPadding: {},
|
|
54
|
+
fallbackPlacements: {},
|
|
55
|
+
gpuAcceleration: { type: Boolean },
|
|
56
|
+
offset: {},
|
|
57
|
+
placement: {},
|
|
58
|
+
popperOptions: {},
|
|
59
|
+
strategy: {},
|
|
60
|
+
arrowOffset: {}
|
|
61
|
+
}, fe),
|
|
62
|
+
setup(e, { expose: A }) {
|
|
63
|
+
const r = e, { selector: P } = pe(), I = le("tooltip"), s = E(), N = ue(() => {
|
|
64
|
+
var t;
|
|
65
|
+
return (t = s.value) == null ? void 0 : t.popperContentRef;
|
|
66
|
+
});
|
|
67
|
+
let a;
|
|
68
|
+
const {
|
|
69
|
+
controlled: g,
|
|
70
|
+
id: k,
|
|
71
|
+
open: f,
|
|
72
|
+
trigger: u,
|
|
73
|
+
onClose: i,
|
|
74
|
+
onOpen: R,
|
|
75
|
+
onShow: L,
|
|
76
|
+
onHide: x,
|
|
77
|
+
onBeforeShow: d,
|
|
78
|
+
onBeforeHide: m
|
|
79
|
+
} = q(ce, void 0), M = l(() => r.transition || `${I.namespace.value}-fade-in-linear`), v = l(() => process.env.NODE_ENV === "test" && !process.env.RUN_TEST_WITH_PERSISTENT ? !0 : r.persistent);
|
|
80
|
+
G(() => {
|
|
81
|
+
a == null || a();
|
|
82
|
+
});
|
|
83
|
+
const z = l(() => o(v) ? !0 : o(f)), y = l(() => r.disabled ? !1 : o(f)), D = l(() => r.appendTo || P.value), $ = l(() => r.style ?? {}), p = E(!0), j = () => {
|
|
84
|
+
x(), C() && ie(document.body, { preventScroll: !0 }), p.value = !0;
|
|
85
|
+
}, b = () => {
|
|
86
|
+
if (o(g)) return !0;
|
|
87
|
+
}, V = w(b, () => {
|
|
88
|
+
r.enterable && O(o(u), "hover") && R();
|
|
89
|
+
}), U = w(b, () => {
|
|
90
|
+
O(o(u), "hover") && i();
|
|
91
|
+
}), W = () => {
|
|
92
|
+
var t, n;
|
|
93
|
+
(n = (t = s.value) == null ? void 0 : t.updatePopper) == null || n.call(t), d == null || d();
|
|
94
|
+
}, F = () => {
|
|
95
|
+
m == null || m();
|
|
96
|
+
}, J = () => {
|
|
97
|
+
L();
|
|
98
|
+
}, K = () => {
|
|
99
|
+
r.virtualTriggering || i();
|
|
100
|
+
}, C = (t) => {
|
|
101
|
+
var T;
|
|
102
|
+
const n = (T = s.value) == null ? void 0 : T.popperContentRef, c = (t == null ? void 0 : t.relatedTarget) || document.activeElement;
|
|
103
|
+
return n == null ? void 0 : n.contains(c);
|
|
104
|
+
};
|
|
105
|
+
return H(
|
|
106
|
+
() => o(f),
|
|
107
|
+
(t) => {
|
|
108
|
+
t ? (p.value = !1, a = ae(
|
|
109
|
+
N,
|
|
110
|
+
() => {
|
|
111
|
+
if (o(g)) return;
|
|
112
|
+
se(o(u)).every((c) => c !== "hover" && c !== "focus") && i();
|
|
113
|
+
},
|
|
114
|
+
{ detectIframe: !0 }
|
|
115
|
+
)) : a == null || a();
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
flush: "post"
|
|
119
|
+
}
|
|
120
|
+
), A({
|
|
121
|
+
/**
|
|
122
|
+
* @description el-popper-content component instance
|
|
123
|
+
*/
|
|
124
|
+
contentRef: s,
|
|
125
|
+
/**
|
|
126
|
+
* @description validate current focus event is trigger inside el-popper-content
|
|
127
|
+
*/
|
|
128
|
+
isFocusInsideContent: C
|
|
129
|
+
}), (t, n) => (h(), B(Q, {
|
|
130
|
+
disabled: !e.teleported,
|
|
131
|
+
to: D.value
|
|
132
|
+
}, [
|
|
133
|
+
z.value || !p.value ? (h(), B(X, {
|
|
134
|
+
key: 0,
|
|
135
|
+
name: M.value,
|
|
136
|
+
appear: !v.value,
|
|
137
|
+
onAfterLeave: j,
|
|
138
|
+
onBeforeEnter: W,
|
|
139
|
+
onAfterEnter: J,
|
|
140
|
+
onBeforeLeave: F
|
|
141
|
+
}, {
|
|
142
|
+
default: S(() => [
|
|
143
|
+
Z(_(o(de), ee({
|
|
144
|
+
id: o(k),
|
|
145
|
+
ref_key: "contentRef",
|
|
146
|
+
ref: s
|
|
147
|
+
}, t.$attrs, {
|
|
148
|
+
"aria-label": e.ariaLabel,
|
|
149
|
+
"aria-hidden": p.value,
|
|
150
|
+
"boundaries-padding": e.boundariesPadding,
|
|
151
|
+
"fallback-placements": e.fallbackPlacements,
|
|
152
|
+
"gpu-acceleration": e.gpuAcceleration,
|
|
153
|
+
offset: e.offset,
|
|
154
|
+
placement: e.placement,
|
|
155
|
+
"popper-options": e.popperOptions,
|
|
156
|
+
"arrow-offset": e.arrowOffset,
|
|
157
|
+
strategy: e.strategy,
|
|
158
|
+
effect: e.effect,
|
|
159
|
+
enterable: e.enterable,
|
|
160
|
+
pure: e.pure,
|
|
161
|
+
"popper-class": e.popperClass,
|
|
162
|
+
"popper-style": [e.popperStyle, $.value],
|
|
163
|
+
"reference-el": e.referenceEl,
|
|
164
|
+
"trigger-target-el": e.triggerTargetEl,
|
|
165
|
+
visible: y.value,
|
|
166
|
+
"z-index": e.zIndex,
|
|
167
|
+
loop: e.loop,
|
|
168
|
+
onMouseenter: o(V),
|
|
169
|
+
onMouseleave: o(U),
|
|
170
|
+
onBlur: K,
|
|
171
|
+
onClose: o(i)
|
|
172
|
+
}), {
|
|
173
|
+
default: S(() => [
|
|
174
|
+
te(t.$slots, "default")
|
|
175
|
+
]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "arrow-offset", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "loop", "onMouseenter", "onMouseleave", "onClose"]), [
|
|
178
|
+
[oe, y.value]
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
}, 8, ["name", "appear"])) : ne("", !0)
|
|
183
|
+
], 8, ["disabled", "to"]));
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
export {
|
|
187
|
+
Le as default
|
|
188
|
+
};
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import type { PopperArrowProps, PopperProps } from '@element-plus/components/popper';
|
|
2
|
+
import type { ElTooltipContentProps } from './content';
|
|
3
|
+
import type { UseTooltipTriggerProps } from './trigger';
|
|
4
|
+
import type Tooltip from './tooltip.vue';
|
|
5
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
6
|
+
export declare const useTooltipModelToggleProps: import("@element-plus/hooks").UseModelTogglePropsRaw<"visible">, useTooltipModelToggleEmits: "update:visible"[], useTooltipModelToggle: ({ indicator, toggleReason, shouldHideWhenRouteChanges, shouldProceed, onShow, onHide, }: import("@element-plus/hooks").ModelToggleParams) => {
|
|
7
|
+
hide: (event?: Event) => void;
|
|
8
|
+
show: (event?: Event) => void;
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
hasUpdateHandler: import("vue").ComputedRef<boolean>;
|
|
11
|
+
};
|
|
12
|
+
export interface UseTooltipProps extends PopperProps, ElTooltipContentProps, UseTooltipTriggerProps, PopperArrowProps {
|
|
13
|
+
/**
|
|
14
|
+
* @description whether the tooltip content has an arrow
|
|
15
|
+
*/
|
|
16
|
+
showArrow?: boolean;
|
|
17
|
+
'onUpdate:visible'?: (value: boolean) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
21
|
+
*/
|
|
22
|
+
export declare const useTooltipProps: {
|
|
23
|
+
showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
24
|
+
arrowOffset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
25
|
+
disabled: BooleanConstructor;
|
|
26
|
+
trigger: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | import("./trigger").TooltipTriggerType[]) | (() => import("@element-plus/utils").Arrayable<import("./trigger").TooltipTriggerType>) | (((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | import("./trigger").TooltipTriggerType[]) | (() => import("@element-plus/utils").Arrayable<import("./trigger").TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
|
|
27
|
+
triggerKeys: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
|
28
|
+
focusOnTarget: BooleanConstructor;
|
|
29
|
+
virtualRef: {
|
|
30
|
+
readonly type: import("vue").PropType<import("@element-plus/components/popper").Measurable>;
|
|
31
|
+
readonly required: false;
|
|
32
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
|
+
__epPropKey: true;
|
|
34
|
+
};
|
|
35
|
+
virtualTriggering: BooleanConstructor;
|
|
36
|
+
onMouseenter: {
|
|
37
|
+
readonly type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
onMouseleave: {
|
|
43
|
+
readonly type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
onClick: {
|
|
49
|
+
readonly type: import("vue").PropType<(e: PointerEvent) => void>;
|
|
50
|
+
readonly required: false;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
+
__epPropKey: true;
|
|
53
|
+
};
|
|
54
|
+
onKeydown: {
|
|
55
|
+
readonly type: import("vue").PropType<(e: KeyboardEvent) => void>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
onFocus: {
|
|
61
|
+
readonly type: import("vue").PropType<(e: FocusEvent) => void>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
__epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
onBlur: {
|
|
67
|
+
readonly type: import("vue").PropType<(e: FocusEvent) => void>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
72
|
+
onContextmenu: {
|
|
73
|
+
readonly type: import("vue").PropType<(e: PointerEvent) => void>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
+
__epPropKey: true;
|
|
77
|
+
};
|
|
78
|
+
id: StringConstructor;
|
|
79
|
+
open: BooleanConstructor;
|
|
80
|
+
ariaLabel: StringConstructor;
|
|
81
|
+
appendTo: {
|
|
82
|
+
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>>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
87
|
+
content: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
88
|
+
rawContent: BooleanConstructor;
|
|
89
|
+
persistent: BooleanConstructor;
|
|
90
|
+
visible: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | (((new (...args: any[]) => boolean) | (() => boolean | null)) | null)[], unknown, unknown, null, boolean>;
|
|
91
|
+
transition: StringConstructor;
|
|
92
|
+
teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
|
+
loop: BooleanConstructor;
|
|
94
|
+
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>;
|
|
95
|
+
className: {
|
|
96
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
97
|
+
[x: string]: boolean;
|
|
98
|
+
} | (string | {
|
|
99
|
+
[x: string]: boolean;
|
|
100
|
+
} | (string | {
|
|
101
|
+
[x: string]: boolean;
|
|
102
|
+
} | (string | {
|
|
103
|
+
[x: string]: boolean;
|
|
104
|
+
} | (string | {
|
|
105
|
+
[x: string]: boolean;
|
|
106
|
+
} | (string | {
|
|
107
|
+
[x: string]: boolean;
|
|
108
|
+
} | (string | {
|
|
109
|
+
[x: string]: boolean;
|
|
110
|
+
} | (string | {
|
|
111
|
+
[x: string]: boolean;
|
|
112
|
+
} | (string | {
|
|
113
|
+
[x: string]: boolean;
|
|
114
|
+
} | (string | {
|
|
115
|
+
[x: string]: boolean;
|
|
116
|
+
} | (string | {
|
|
117
|
+
[x: string]: boolean;
|
|
118
|
+
} | (string | {
|
|
119
|
+
[x: string]: boolean;
|
|
120
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
121
|
+
[x: string]: boolean;
|
|
122
|
+
} | (string | {
|
|
123
|
+
[x: string]: boolean;
|
|
124
|
+
} | (string | {
|
|
125
|
+
[x: string]: boolean;
|
|
126
|
+
} | (string | {
|
|
127
|
+
[x: string]: boolean;
|
|
128
|
+
} | (string | {
|
|
129
|
+
[x: string]: boolean;
|
|
130
|
+
} | (string | {
|
|
131
|
+
[x: string]: boolean;
|
|
132
|
+
} | (string | {
|
|
133
|
+
[x: string]: boolean;
|
|
134
|
+
} | (string | {
|
|
135
|
+
[x: string]: boolean;
|
|
136
|
+
} | (string | {
|
|
137
|
+
[x: string]: boolean;
|
|
138
|
+
} | (string | {
|
|
139
|
+
[x: string]: boolean;
|
|
140
|
+
} | (string | {
|
|
141
|
+
[x: string]: boolean;
|
|
142
|
+
} | (string | {
|
|
143
|
+
[x: string]: boolean;
|
|
144
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
145
|
+
[x: string]: boolean;
|
|
146
|
+
} | (string | {
|
|
147
|
+
[x: string]: boolean;
|
|
148
|
+
} | (string | {
|
|
149
|
+
[x: string]: boolean;
|
|
150
|
+
} | (string | {
|
|
151
|
+
[x: string]: boolean;
|
|
152
|
+
} | (string | {
|
|
153
|
+
[x: string]: boolean;
|
|
154
|
+
} | (string | {
|
|
155
|
+
[x: string]: boolean;
|
|
156
|
+
} | (string | {
|
|
157
|
+
[x: string]: boolean;
|
|
158
|
+
} | (string | {
|
|
159
|
+
[x: string]: boolean;
|
|
160
|
+
} | (string | {
|
|
161
|
+
[x: string]: boolean;
|
|
162
|
+
} | (string | {
|
|
163
|
+
[x: string]: boolean;
|
|
164
|
+
} | (string | {
|
|
165
|
+
[x: string]: boolean;
|
|
166
|
+
} | (string | {
|
|
167
|
+
[x: string]: boolean;
|
|
168
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
169
|
+
[x: string]: boolean;
|
|
170
|
+
} | (string | {
|
|
171
|
+
[x: string]: boolean;
|
|
172
|
+
} | (string | {
|
|
173
|
+
[x: string]: boolean;
|
|
174
|
+
} | (string | {
|
|
175
|
+
[x: string]: boolean;
|
|
176
|
+
} | (string | {
|
|
177
|
+
[x: string]: boolean;
|
|
178
|
+
} | (string | {
|
|
179
|
+
[x: string]: boolean;
|
|
180
|
+
} | (string | {
|
|
181
|
+
[x: string]: boolean;
|
|
182
|
+
} | (string | {
|
|
183
|
+
[x: string]: boolean;
|
|
184
|
+
} | (string | {
|
|
185
|
+
[x: string]: boolean;
|
|
186
|
+
} | (string | {
|
|
187
|
+
[x: string]: boolean;
|
|
188
|
+
} | (string | {
|
|
189
|
+
[x: string]: boolean;
|
|
190
|
+
} | (string | {
|
|
191
|
+
[x: string]: boolean;
|
|
192
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
193
|
+
readonly required: false;
|
|
194
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
195
|
+
__epPropKey: true;
|
|
196
|
+
};
|
|
197
|
+
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>;
|
|
198
|
+
enterable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
199
|
+
pure: BooleanConstructor;
|
|
200
|
+
focusOnShow: BooleanConstructor;
|
|
201
|
+
trapping: BooleanConstructor;
|
|
202
|
+
popperClass: {
|
|
203
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
204
|
+
[x: string]: boolean;
|
|
205
|
+
} | (string | {
|
|
206
|
+
[x: string]: boolean;
|
|
207
|
+
} | (string | {
|
|
208
|
+
[x: string]: boolean;
|
|
209
|
+
} | (string | {
|
|
210
|
+
[x: string]: boolean;
|
|
211
|
+
} | (string | {
|
|
212
|
+
[x: string]: boolean;
|
|
213
|
+
} | (string | {
|
|
214
|
+
[x: string]: boolean;
|
|
215
|
+
} | (string | {
|
|
216
|
+
[x: string]: boolean;
|
|
217
|
+
} | (string | {
|
|
218
|
+
[x: string]: boolean;
|
|
219
|
+
} | (string | {
|
|
220
|
+
[x: string]: boolean;
|
|
221
|
+
} | (string | {
|
|
222
|
+
[x: string]: boolean;
|
|
223
|
+
} | (string | {
|
|
224
|
+
[x: string]: boolean;
|
|
225
|
+
} | (string | {
|
|
226
|
+
[x: string]: boolean;
|
|
227
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
228
|
+
[x: string]: boolean;
|
|
229
|
+
} | (string | {
|
|
230
|
+
[x: string]: boolean;
|
|
231
|
+
} | (string | {
|
|
232
|
+
[x: string]: boolean;
|
|
233
|
+
} | (string | {
|
|
234
|
+
[x: string]: boolean;
|
|
235
|
+
} | (string | {
|
|
236
|
+
[x: string]: boolean;
|
|
237
|
+
} | (string | {
|
|
238
|
+
[x: string]: boolean;
|
|
239
|
+
} | (string | {
|
|
240
|
+
[x: string]: boolean;
|
|
241
|
+
} | (string | {
|
|
242
|
+
[x: string]: boolean;
|
|
243
|
+
} | (string | {
|
|
244
|
+
[x: string]: boolean;
|
|
245
|
+
} | (string | {
|
|
246
|
+
[x: string]: boolean;
|
|
247
|
+
} | (string | {
|
|
248
|
+
[x: string]: boolean;
|
|
249
|
+
} | (string | {
|
|
250
|
+
[x: string]: boolean;
|
|
251
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
252
|
+
[x: string]: boolean;
|
|
253
|
+
} | (string | {
|
|
254
|
+
[x: string]: boolean;
|
|
255
|
+
} | (string | {
|
|
256
|
+
[x: string]: boolean;
|
|
257
|
+
} | (string | {
|
|
258
|
+
[x: string]: boolean;
|
|
259
|
+
} | (string | {
|
|
260
|
+
[x: string]: boolean;
|
|
261
|
+
} | (string | {
|
|
262
|
+
[x: string]: boolean;
|
|
263
|
+
} | (string | {
|
|
264
|
+
[x: string]: boolean;
|
|
265
|
+
} | (string | {
|
|
266
|
+
[x: string]: boolean;
|
|
267
|
+
} | (string | {
|
|
268
|
+
[x: string]: boolean;
|
|
269
|
+
} | (string | {
|
|
270
|
+
[x: string]: boolean;
|
|
271
|
+
} | (string | {
|
|
272
|
+
[x: string]: boolean;
|
|
273
|
+
} | (string | {
|
|
274
|
+
[x: string]: boolean;
|
|
275
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
276
|
+
[x: string]: boolean;
|
|
277
|
+
} | (string | {
|
|
278
|
+
[x: string]: boolean;
|
|
279
|
+
} | (string | {
|
|
280
|
+
[x: string]: boolean;
|
|
281
|
+
} | (string | {
|
|
282
|
+
[x: string]: boolean;
|
|
283
|
+
} | (string | {
|
|
284
|
+
[x: string]: boolean;
|
|
285
|
+
} | (string | {
|
|
286
|
+
[x: string]: boolean;
|
|
287
|
+
} | (string | {
|
|
288
|
+
[x: string]: boolean;
|
|
289
|
+
} | (string | {
|
|
290
|
+
[x: string]: boolean;
|
|
291
|
+
} | (string | {
|
|
292
|
+
[x: string]: boolean;
|
|
293
|
+
} | (string | {
|
|
294
|
+
[x: string]: boolean;
|
|
295
|
+
} | (string | {
|
|
296
|
+
[x: string]: boolean;
|
|
297
|
+
} | (string | {
|
|
298
|
+
[x: string]: boolean;
|
|
299
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
300
|
+
readonly required: false;
|
|
301
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
302
|
+
__epPropKey: true;
|
|
303
|
+
};
|
|
304
|
+
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>;
|
|
305
|
+
referenceEl: {
|
|
306
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
307
|
+
readonly required: false;
|
|
308
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
309
|
+
__epPropKey: true;
|
|
310
|
+
};
|
|
311
|
+
triggerTargetEl: {
|
|
312
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
313
|
+
readonly required: false;
|
|
314
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
315
|
+
__epPropKey: true;
|
|
316
|
+
};
|
|
317
|
+
stopPopperMouseEvent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
318
|
+
zIndex: NumberConstructor;
|
|
319
|
+
boundariesPadding: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
320
|
+
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>;
|
|
321
|
+
gpuAcceleration: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
322
|
+
offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
|
|
323
|
+
placement: import("@element-plus/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
324
|
+
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>;
|
|
325
|
+
strategy: import("@element-plus/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
326
|
+
showAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
327
|
+
hideAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
328
|
+
autoClose: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
329
|
+
"onUpdate:visible": {
|
|
330
|
+
readonly type: import("vue").PropType<(val: boolean) => void>;
|
|
331
|
+
readonly required: false;
|
|
332
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
333
|
+
__epPropKey: true;
|
|
334
|
+
};
|
|
335
|
+
role: import("@element-plus/utils").EpPropFinalized<StringConstructor, "dialog" | "menu" | "listbox" | "grid" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
|
|
336
|
+
};
|
|
337
|
+
export declare const tooltipEmits: readonly [..."update:visible"[], "before-show", "before-hide", "show", "hide", "open", "close"];
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
340
|
+
*/
|
|
341
|
+
export type ElTooltipProps = UseTooltipProps;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
344
|
+
*/
|
|
345
|
+
export type ElTooltipPropsPublic = ExtractPublicPropTypes<typeof useTooltipProps>;
|
|
346
|
+
export type TooltipInstance = InstanceType<typeof Tooltip> & unknown;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { buildProps as o } from "../../../utils/vue/props/runtime.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "../../../hooks/use-size/index.js";
|
|
4
|
+
import "../../../hooks/use-z-index/index.js";
|
|
5
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
6
|
+
import "../../../hooks/use-aria/index.js";
|
|
7
|
+
import { createModelToggleComposable as e } from "../../../hooks/use-model-toggle/index.js";
|
|
8
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
9
|
+
import "../../popper/index.js";
|
|
10
|
+
import { useTooltipContentProps as r } from "./content.js";
|
|
11
|
+
import { useTooltipTriggerProps as p } from "./trigger.js";
|
|
12
|
+
import { popperArrowProps as t } from "../../popper/src/arrow.js";
|
|
13
|
+
import { popperProps as i } from "../../popper/src/popper.js";
|
|
14
|
+
const {
|
|
15
|
+
useModelToggleProps: l,
|
|
16
|
+
useModelToggleEmits: s,
|
|
17
|
+
useModelToggle: c
|
|
18
|
+
} = e("visible");
|
|
19
|
+
o({
|
|
20
|
+
...i,
|
|
21
|
+
...l,
|
|
22
|
+
...r,
|
|
23
|
+
...p,
|
|
24
|
+
...t,
|
|
25
|
+
/**
|
|
26
|
+
* @description whether the tooltip content has an arrow
|
|
27
|
+
*/
|
|
28
|
+
showArrow: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const E = [
|
|
34
|
+
...s,
|
|
35
|
+
"before-show",
|
|
36
|
+
"before-hide",
|
|
37
|
+
"show",
|
|
38
|
+
"hide",
|
|
39
|
+
"open",
|
|
40
|
+
"close"
|
|
41
|
+
];
|
|
42
|
+
export {
|
|
43
|
+
E as tooltipEmits,
|
|
44
|
+
c as useTooltipModelToggle,
|
|
45
|
+
s as useTooltipModelToggleEmits,
|
|
46
|
+
l as useTooltipModelToggleProps
|
|
47
|
+
};
|