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,57 @@
|
|
|
1
|
+
import { unrefElement as f } from "../../../node_modules/.pnpm/@vueuse_core@14.3.0_vue@3.5.40_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { isClient as s } from "../../../node_modules/.pnpm/@vueuse_shared@14.3.0_vue@3.5.40_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
4
|
+
const u = (e, t = []) => {
|
|
5
|
+
const { placement: n, strategy: i, popperOptions: o } = e, r = {
|
|
6
|
+
placement: n,
|
|
7
|
+
strategy: i,
|
|
8
|
+
...o,
|
|
9
|
+
modifiers: [...m(e), ...t]
|
|
10
|
+
};
|
|
11
|
+
return a(r, o == null ? void 0 : o.modifiers), r;
|
|
12
|
+
}, d = (e) => {
|
|
13
|
+
if (s)
|
|
14
|
+
return f(e);
|
|
15
|
+
};
|
|
16
|
+
function m(e) {
|
|
17
|
+
const { offset: t, gpuAcceleration: n, fallbackPlacements: i } = e;
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
name: "offset",
|
|
21
|
+
options: {
|
|
22
|
+
offset: [0, t ?? 12]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "preventOverflow",
|
|
27
|
+
options: {
|
|
28
|
+
padding: {
|
|
29
|
+
top: 0,
|
|
30
|
+
bottom: 0,
|
|
31
|
+
left: 0,
|
|
32
|
+
right: 0
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "flip",
|
|
38
|
+
options: {
|
|
39
|
+
padding: 5,
|
|
40
|
+
fallbackPlacements: i
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "computeStyles",
|
|
45
|
+
options: {
|
|
46
|
+
gpuAcceleration: n
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
function a(e, t) {
|
|
52
|
+
t && (e.modifiers = [...e.modifiers, ...t ?? []]);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
u as buildPopperOptions,
|
|
56
|
+
d as unwrapMeasurableEl
|
|
57
|
+
};
|
|
@@ -42,10 +42,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
readonly name: string;
|
|
45
|
+
readonly label: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
45
46
|
readonly disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
46
|
-
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
47
47
|
readonly value: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
48
|
-
readonly
|
|
48
|
+
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
49
49
|
readonly border: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
51
|
export default _default;
|
|
@@ -32,9 +32,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
32
|
readonly name: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
33
33
|
}>> & Readonly<{}>, {
|
|
34
34
|
readonly name: string;
|
|
35
|
+
readonly label: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
35
36
|
readonly disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
|
-
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
37
37
|
readonly value: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
38
|
-
readonly
|
|
38
|
+
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
export default _default;
|
|
@@ -55,10 +55,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
55
55
|
}>, {
|
|
56
56
|
readonly props: import("element-plus").radioOptionProp;
|
|
57
57
|
readonly name: string;
|
|
58
|
-
readonly fill: string;
|
|
59
58
|
readonly type: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "button" | "radio", unknown>;
|
|
60
|
-
readonly
|
|
59
|
+
readonly fill: string;
|
|
61
60
|
readonly disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
|
+
readonly id: string;
|
|
62
62
|
readonly modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
|
|
63
63
|
readonly validateEvent: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
64
64
|
readonly textColor: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Ref, VNode } from 'vue';
|
|
2
|
+
export declare const OnlyChild: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export type OnlyChildExpose = {
|
|
6
|
+
forwardRef: Ref<HTMLElement>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as p, inject as h, withDirectives as g, cloneVNode as C, Comment as u, Fragment as N, Text as O } from "vue";
|
|
2
|
+
import { NOOP as v, isObject as y } from "../../../node_modules/.pnpm/@vue_shared@3.5.40/node_modules/@vue/shared/dist/shared.esm-bundler.js";
|
|
3
|
+
import { debugWarn as f } from "../../../utils/error.js";
|
|
4
|
+
import { useNamespace as E } from "../../../hooks/use-namespace/index.js";
|
|
5
|
+
import "../../../hooks/use-size/index.js";
|
|
6
|
+
import "../../../hooks/use-z-index/index.js";
|
|
7
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
8
|
+
import "../../../hooks/use-aria/index.js";
|
|
9
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
10
|
+
import { FORWARD_REF_INJECTION_KEY as F, useForwardRefDirective as R } from "../../../hooks/use-forward-ref/index.js";
|
|
11
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
12
|
+
const i = "ElOnlyChild", I = p({
|
|
13
|
+
name: i,
|
|
14
|
+
setup(r, { slots: t, attrs: n }) {
|
|
15
|
+
const e = h(F), a = R(
|
|
16
|
+
(e == null ? void 0 : e.setForwardRef) ?? v
|
|
17
|
+
);
|
|
18
|
+
return () => {
|
|
19
|
+
var l;
|
|
20
|
+
const o = (l = t.default) == null ? void 0 : l.call(t, n);
|
|
21
|
+
if (!o) return null;
|
|
22
|
+
const [c, s] = d(o);
|
|
23
|
+
return c ? (s > 1 && f(i, "requires exact only one valid child."), g(C(c, n), [
|
|
24
|
+
[a]
|
|
25
|
+
])) : (f(i, "no valid child node found"), null);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
function d(r) {
|
|
30
|
+
if (!r) return [null, 0];
|
|
31
|
+
const t = r, n = t.filter((e) => e.type !== u).length;
|
|
32
|
+
for (const e of t) {
|
|
33
|
+
if (y(e))
|
|
34
|
+
switch (e.type) {
|
|
35
|
+
case u:
|
|
36
|
+
continue;
|
|
37
|
+
case O:
|
|
38
|
+
case "svg":
|
|
39
|
+
return [m(e), n];
|
|
40
|
+
case N:
|
|
41
|
+
return d(e.children);
|
|
42
|
+
default:
|
|
43
|
+
return [e, n];
|
|
44
|
+
}
|
|
45
|
+
return [m(e), n];
|
|
46
|
+
}
|
|
47
|
+
return [null, 0];
|
|
48
|
+
}
|
|
49
|
+
function m(r) {
|
|
50
|
+
const t = E("only-child");
|
|
51
|
+
return /* @__PURE__ */ React.createElement("span", { class: t.e("content") }, r);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
I as OnlyChild
|
|
55
|
+
};
|
|
@@ -23,9 +23,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
23
|
readonly disabled: BooleanConstructor;
|
|
24
24
|
readonly lazy: BooleanConstructor;
|
|
25
25
|
}>> & Readonly<{}>, {
|
|
26
|
-
readonly closable: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
27
|
-
readonly disabled: boolean;
|
|
28
26
|
readonly label: string;
|
|
27
|
+
readonly disabled: boolean;
|
|
28
|
+
readonly closable: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
29
29
|
readonly lazy: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
31
|
export default _default;
|
|
@@ -102,10 +102,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
102
|
readonly type: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
|
103
103
|
readonly closable: boolean;
|
|
104
104
|
readonly tabindex: import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
105
|
-
readonly editable: boolean;
|
|
106
105
|
readonly stretch: boolean;
|
|
106
|
+
readonly editable: boolean;
|
|
107
107
|
readonly addable: boolean;
|
|
108
|
-
readonly tabPosition: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "top" | "bottom" | "
|
|
108
|
+
readonly tabPosition: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right", unknown>;
|
|
109
109
|
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
|
|
110
110
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111
111
|
export default _default;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
25
25
|
};
|
|
26
26
|
readonly round: BooleanConstructor;
|
|
27
27
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
close: (evt: MouseEvent) => void;
|
|
29
28
|
click: (evt: MouseEvent) => void;
|
|
29
|
+
close: (evt: MouseEvent) => void;
|
|
30
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
readonly type: {
|
|
32
32
|
readonly type: import("vue").PropType<typeof import("./tag").tagTypes[number]>;
|
|
@@ -48,12 +48,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
48
48
|
};
|
|
49
49
|
readonly round: BooleanConstructor;
|
|
50
50
|
}>> & Readonly<{
|
|
51
|
-
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
52
51
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
52
|
+
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
53
53
|
}>, {
|
|
54
|
-
readonly type: "primary" | "success" | "
|
|
54
|
+
readonly type: "primary" | "success" | "info" | "warning" | "danger";
|
|
55
55
|
readonly closable: boolean;
|
|
56
|
-
readonly effect: "
|
|
56
|
+
readonly effect: "dark" | "light" | "plain";
|
|
57
57
|
readonly round: boolean;
|
|
58
58
|
readonly disableTransitions: boolean;
|
|
59
59
|
readonly hit: boolean;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as F, computed as K, openBlock as a, createElementBlock as u, normalizeStyle as C, normalizeClass as l, createElementVNode as m, renderSlot as h, withModifiers as y, unref as t, createVNode as c, withCtx as p, createCommentVNode as $, createBlock as L, Transition as P } from "vue";
|
|
2
|
+
import { Close as E } from "../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.40_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.js";
|
|
3
|
+
import { ElIcon as j } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/icon/index.js";
|
|
4
|
+
import { useLocale as q } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/hooks/use-locale/index.js";
|
|
5
|
+
import { useFormSize as A } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/form/src/hooks/use-form-common-props.js";
|
|
6
|
+
import { tagEmits as D, tagProps as G } from "./tag.js";
|
|
7
|
+
const H = {
|
|
8
|
+
class: /* @__PURE__ */ l("el-tag__content")
|
|
9
|
+
}, J = ["aria-label"], O = {
|
|
10
|
+
class: /* @__PURE__ */ l("el-tag__content")
|
|
11
|
+
}, Q = ["aria-label"], T = "el", z = "tag", v = /* @__PURE__ */ F({
|
|
12
|
+
name: "EpTag",
|
|
13
|
+
__name: "EpTag",
|
|
14
|
+
props: G,
|
|
15
|
+
emits: D,
|
|
16
|
+
setup(V, { emit: N }) {
|
|
17
|
+
const d = j, S = V, b = N, { t: f } = q(), B = A(), M = () => `${T}-${z}`, r = (e) => e ? `${T}-${z}--${e}` : "", i = (e, o = !0) => e && o ? `is-${e}` : "", _ = K(() => {
|
|
18
|
+
const { type: e, hit: o, effect: s, closable: n, round: I } = S;
|
|
19
|
+
return [
|
|
20
|
+
M(),
|
|
21
|
+
i("closable", n),
|
|
22
|
+
r(e || "primary"),
|
|
23
|
+
r(B.value),
|
|
24
|
+
r(s),
|
|
25
|
+
i("hit", o),
|
|
26
|
+
i("round", I)
|
|
27
|
+
];
|
|
28
|
+
}), k = (e) => {
|
|
29
|
+
b("close", e);
|
|
30
|
+
}, g = (e) => {
|
|
31
|
+
b("click", e);
|
|
32
|
+
}, w = (e) => {
|
|
33
|
+
var o, s, n;
|
|
34
|
+
(n = (s = (o = e == null ? void 0 : e.component) == null ? void 0 : o.subTree) == null ? void 0 : s.component) != null && n.bum && (e.component.subTree.component.bum = null);
|
|
35
|
+
};
|
|
36
|
+
return (e, o) => e.disableTransitions ? (a(), u("span", {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: l(_.value),
|
|
39
|
+
style: C({ backgroundColor: e.color }),
|
|
40
|
+
onClick: g
|
|
41
|
+
}, [
|
|
42
|
+
m("span", H, [
|
|
43
|
+
h(e.$slots, "default")
|
|
44
|
+
]),
|
|
45
|
+
e.closable ? (a(), u("button", {
|
|
46
|
+
key: 0,
|
|
47
|
+
"aria-label": t(f)("el.tag.close"),
|
|
48
|
+
class: l("el-tag__close"),
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: y(k, ["stop"])
|
|
51
|
+
}, [
|
|
52
|
+
c(t(d), null, {
|
|
53
|
+
default: p(() => [
|
|
54
|
+
c(t(E))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
})
|
|
58
|
+
], 8, J)) : $("", !0)
|
|
59
|
+
], 6)) : (a(), L(P, {
|
|
60
|
+
key: 1,
|
|
61
|
+
name: "el-zoom-in-center",
|
|
62
|
+
appear: "",
|
|
63
|
+
onVnodeMounted: w
|
|
64
|
+
}, {
|
|
65
|
+
default: p(() => [
|
|
66
|
+
m("span", {
|
|
67
|
+
class: l(_.value),
|
|
68
|
+
style: C({ backgroundColor: e.color }),
|
|
69
|
+
onClick: g
|
|
70
|
+
}, [
|
|
71
|
+
m("span", O, [
|
|
72
|
+
h(e.$slots, "default")
|
|
73
|
+
]),
|
|
74
|
+
e.closable ? (a(), u("button", {
|
|
75
|
+
key: 0,
|
|
76
|
+
"aria-label": t(f)("el.tag.close"),
|
|
77
|
+
class: l("el-tag__close"),
|
|
78
|
+
type: "button",
|
|
79
|
+
onClick: y(k, ["stop"])
|
|
80
|
+
}, [
|
|
81
|
+
c(t(d), null, {
|
|
82
|
+
default: p(() => [
|
|
83
|
+
c(t(E))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
], 8, Q)) : $("", !0)
|
|
88
|
+
], 6)
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 512));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
v as default
|
|
96
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/index.js";
|
|
2
1
|
import { withInstall as t } from "../../utils/with-install.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import o from "./EpTag.vue.js";
|
|
3
|
+
const r = t(o, "ep-tag");
|
|
5
4
|
export {
|
|
6
5
|
r as EpTag
|
|
7
6
|
};
|
|
@@ -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>;
|