ep-craft 0.1.19 → 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/affix/affix.d.ts +55 -0
- package/dist/components/affix/affix.js +199 -0
- package/dist/components/affix/index.d.ts +2 -2
- package/dist/components/affix/index.js +3 -4
- package/dist/components/alert/alert.d.ts +39 -0
- package/dist/components/alert/alert.js +94 -0
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +3 -4
- package/dist/components/anchor/anchor.d.ts +54 -0
- package/dist/components/anchor/anchor.js +153 -0
- package/dist/components/anchor/index.d.ts +2 -2
- package/dist/components/anchor/index.js +3 -4
- package/dist/components/anchor-link/anchor-link.d.ts +17 -0
- package/dist/components/anchor-link/anchor-link.js +51 -0
- package/dist/components/anchor-link/index.d.ts +2 -2
- package/dist/components/anchor-link/index.js +6 -4
- package/dist/components/button/EpButton.vue.d.ts +11 -11
- 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.d.ts +1 -1
- 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 +8 -8
- 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/radio/radio.d.ts +2 -2
- package/dist/components/radio-button/radio-button.d.ts +2 -2
- package/dist/components/radio-group/radio-group.d.ts +2 -2
- 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/tab-pane/tab-pane.d.ts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tag/EpTag.vue.d.ts +4 -4
- 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/anchor/src/anchor.vue_vue_type_script_setup_true_lang.js +8 -8
- 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,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
|
+
};
|
|
@@ -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
|
+
};
|