ep-craft 0.1.32 → 0.1.34
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/components/button/index.d.ts +12 -0
- package/dist/components/button-group/index.d.ts +3 -2
- package/dist/components/button-group/index.js +7 -3
- package/dist/components/button-group/src/button-group.d.ts +48 -0
- package/dist/components/button-group/src/button-group.js +7 -0
- package/dist/components/button-group/src/button-group.vue.d.ts +16 -0
- package/dist/components/button-group/src/button-group.vue.js +42 -0
- package/dist/components/button-group/src/button-group2.vue.js +4 -0
- package/dist/components/checkbox/index.js +6 -5
- package/dist/components/collection/index.d.ts +8 -0
- package/dist/components/collection/src/collection-item.vue.d.ts +2 -0
- package/dist/components/collection/src/collection-item.vue.js +10 -0
- package/dist/components/collection/src/collection-item2.vue.js +8 -0
- package/dist/components/collection/src/collection.d.ts +39 -0
- package/dist/components/collection/src/collection.js +52 -0
- package/dist/components/collection/src/collection.vue.d.ts +2 -0
- package/dist/components/collection/src/collection.vue.js +10 -0
- package/dist/components/collection/src/collection2.vue.js +7 -0
- package/dist/components/collection/src/tokens.d.ts +18 -0
- package/dist/components/divider/index.d.ts +24 -2
- package/dist/components/divider/index.js +8 -3
- package/dist/components/divider/src/divider.d.ts +30 -0
- package/dist/components/divider/src/divider.js +34 -0
- package/dist/components/divider/src/divider.vue.d.ts +24 -0
- package/dist/components/divider/src/divider.vue.js +39 -0
- package/dist/components/divider/src/divider2.vue.js +4 -0
- package/dist/components/dropdown/index.d.ts +3017 -3
- package/dist/components/dropdown/index.js +23 -3
- package/dist/components/dropdown/src/dropdown-item-impl.vue.d.ts +79 -0
- package/dist/components/dropdown/src/dropdown-item-impl.vue.js +40 -0
- package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +68 -0
- package/dist/components/dropdown/src/dropdown-item.vue.d.ts +169 -0
- package/dist/components/dropdown/src/dropdown-item.vue.js +35 -0
- package/dist/components/dropdown/src/dropdown-item2.vue.js +63 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.d.ts +27 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.js +24 -0
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +75 -0
- package/dist/components/dropdown/src/dropdown.d.ts +200 -0
- package/dist/components/dropdown/src/dropdown.js +201 -0
- package/dist/components/dropdown/src/dropdown.vue.d.ts +1126 -0
- package/dist/components/dropdown/src/dropdown.vue.js +127 -0
- package/dist/components/dropdown/src/dropdown2.vue.js +127 -0
- package/dist/components/dropdown/src/instance.d.ts +2 -0
- package/dist/components/dropdown/src/tokens.d.ts +13 -0
- package/dist/components/dropdown/src/tokens.js +5 -0
- package/dist/components/dropdown/src/useDropdown.d.ts +5 -0
- package/dist/components/dropdown/src/useDropdown.js +15 -0
- package/dist/components/dropdown-item/index.d.ts +1 -4
- package/dist/components/dropdown-menu/index.d.ts +1 -4
- package/dist/components/index.js +129 -131
- package/dist/components/popover/index.d.ts +121 -3
- package/dist/components/popover/index.js +19 -4
- package/dist/components/popover/src/directive.d.ts +4 -0
- package/dist/components/popover/src/directive.js +15 -0
- package/dist/components/popover/src/popover.d.ts +291 -0
- package/dist/components/popover/src/popover.js +168 -0
- package/dist/components/popover/src/popover.vue.d.ts +53 -0
- package/dist/components/popover/src/popover.vue.js +125 -0
- package/dist/components/popover/src/popover2.vue.js +4 -0
- package/dist/components/progress/index.d.ts +35 -2
- package/dist/components/progress/index.js +10 -4
- package/dist/components/progress/src/progress.d.ts +97 -0
- package/dist/components/progress/src/progress.js +104 -0
- package/dist/components/progress/src/progress.vue.d.ts +30 -0
- package/dist/components/progress/src/progress.vue.js +179 -0
- package/dist/components/progress/src/progress2.vue.js +4 -0
- package/dist/components/roving-focus-group/index.d.ts +14 -0
- package/dist/components/roving-focus-group/index.js +15 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +50 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.js +10 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl2.vue.js +115 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.d.ts +56 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.js +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.d.ts +67 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +13 -0
- package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +21 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.d.ts +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +20 -0
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +78 -0
- package/dist/components/roving-focus-group/src/tokens.d.ts +28 -0
- package/dist/components/roving-focus-group/src/tokens.js +5 -0
- package/dist/components/roving-focus-group/src/utils.d.ts +8 -0
- package/dist/components/roving-focus-group/src/utils.js +28 -0
- package/dist/components/table/index.d.ts +56 -3
- package/dist/components/table/index.js +20 -4
- package/dist/components/table/src/composables/use-scrollbar.d.ts +6 -0
- package/dist/components/table/src/composables/use-scrollbar.js +24 -0
- package/dist/components/table/src/config.d.ts +87 -0
- package/dist/components/table/src/config.js +210 -0
- package/dist/components/table/src/filter-panel.vue.d.ts +837 -0
- package/dist/components/table/src/filter-panel.vue.js +130 -0
- package/dist/components/table/src/filter-panel2.vue.js +155 -0
- package/dist/components/table/src/h-helper.d.ts +13 -0
- package/dist/components/table/src/h-helper.js +30 -0
- package/dist/components/table/src/layout-observer.d.ts +8 -0
- package/dist/components/table/src/layout-observer.js +49 -0
- package/dist/components/table/src/store/current.d.ts +15 -0
- package/dist/components/table/src/store/current.js +45 -0
- package/dist/components/table/src/store/expand.d.ts +14 -0
- package/dist/components/table/src/store/expand.js +55 -0
- package/dist/components/table/src/store/helper.d.ts +548 -0
- package/dist/components/table/src/store/helper.js +61 -0
- package/dist/components/table/src/store/index.d.ts +1107 -0
- package/dist/components/table/src/store/index.js +123 -0
- package/dist/components/table/src/store/tree.d.ts +27 -0
- package/dist/components/table/src/store/tree.js +153 -0
- package/dist/components/table/src/store/watcher.d.ts +88 -0
- package/dist/components/table/src/store/watcher.js +483 -0
- package/dist/components/table/src/table/defaults.d.ts +560 -0
- package/dist/components/table/src/table/defaults.js +236 -0
- package/dist/components/table/src/table/key-render-helper.d.ts +2 -0
- package/dist/components/table/src/table/key-render-helper.js +18 -0
- package/dist/components/table/src/table/style-helper.d.ts +51 -0
- package/dist/components/table/src/table/style-helper.js +169 -0
- package/dist/components/table/src/table/utils-helper.d.ts +16 -0
- package/dist/components/table/src/table/utils-helper.js +36 -0
- package/dist/components/table/src/table-body/defaults.d.ts +39 -0
- package/dist/components/table/src/table-body/defaults.js +25 -0
- package/dist/components/table/src/table-body/events-helper.d.ts +19 -0
- package/dist/components/table/src/table-body/events-helper.js +126 -0
- package/dist/components/table/src/table-body/index.d.ts +84 -0
- package/dist/components/table/src/table-body/index.js +77 -0
- package/dist/components/table/src/table-body/render-helper.d.ts +18 -0
- package/dist/components/table/src/table-body/render-helper.js +188 -0
- package/dist/components/table/src/table-body/styles-helper.d.ts +15 -0
- package/dist/components/table/src/table-body/styles-helper.js +98 -0
- package/dist/components/table/src/table-body/td-wrapper.vue.d.ts +33 -0
- package/dist/components/table/src/table-body/td-wrapper.vue.js +26 -0
- package/dist/components/table/src/table-body/td-wrapper2.vue.js +4 -0
- package/dist/components/table/src/table-column/defaults.d.ts +348 -0
- package/dist/components/table/src/table-column/defaults.js +152 -0
- package/dist/components/table/src/table-column/index.d.ts +2 -0
- package/dist/components/table/src/table-column/index.vue.d.ts +32 -0
- package/dist/components/table/src/table-column/index.vue.js +161 -0
- package/dist/components/table/src/table-column/index2.vue.js +4 -0
- package/dist/components/table/src/table-column/render-helper.d.ts +17 -0
- package/dist/components/table/src/table-column/render-helper.js +116 -0
- package/dist/components/table/src/table-column/watcher-helper.d.ts +8 -0
- package/dist/components/table/src/table-column/watcher-helper.js +85 -0
- package/dist/components/table/src/table-footer/index.d.ts +79 -0
- package/dist/components/table/src/table-footer/index.js +110 -0
- package/dist/components/table/src/table-footer/mapState-helper.d.ts +9 -0
- package/dist/components/table/src/table-footer/mapState-helper.js +16 -0
- package/dist/components/table/src/table-footer/style-helper.d.ts +9 -0
- package/dist/components/table/src/table-footer/style-helper.js +42 -0
- package/dist/components/table/src/table-header/event-helper.d.ts +14 -0
- package/dist/components/table/src/table-header/event-helper.js +113 -0
- package/dist/components/table/src/table-header/index.d.ts +361 -0
- package/dist/components/table/src/table-header/index.js +255 -0
- package/dist/components/table/src/table-header/style.helper.d.ts +10 -0
- package/dist/components/table/src/table-header/style.helper.js +73 -0
- package/dist/components/table/src/table-header/utils-helper.d.ts +10 -0
- package/dist/components/table/src/table-header/utils-helper.js +45 -0
- package/dist/components/table/src/table-layout.d.ts +37 -0
- package/dist/components/table/src/table-layout.js +144 -0
- package/dist/components/table/src/table.vue.d.ts +734 -0
- package/dist/components/table/src/table.vue.js +443 -0
- package/dist/components/table/src/table2.vue.js +4 -0
- package/dist/components/table/src/tableColumn.d.ts +2 -0
- package/dist/components/table/src/tokens.d.ts +3 -0
- package/dist/components/table/src/tokens.js +4 -0
- package/dist/components/table/src/util.d.ts +55 -0
- package/dist/components/table/src/util.js +310 -0
- package/dist/components/table-column/index.d.ts +40 -3
- package/dist/components/table-column/index.js +6 -3
- package/dist/components/upload/index.d.ts +45 -2
- package/dist/components/upload/index.js +23 -4
- package/dist/components/upload/src/ajax.d.ts +9 -0
- package/dist/components/upload/src/ajax.js +58 -0
- package/dist/components/upload/src/constants.d.ts +5 -0
- package/dist/components/upload/src/constants.js +4 -0
- package/dist/components/upload/src/upload-content.d.ts +136 -0
- package/dist/components/upload/src/upload-content.js +53 -0
- package/dist/components/upload/src/upload-content.vue.d.ts +38 -0
- package/dist/components/upload/src/upload-content.vue.js +186 -0
- package/dist/components/upload/src/upload-content2.vue.js +4 -0
- package/dist/components/upload/src/upload-dragger.d.ts +22 -0
- package/dist/components/upload/src/upload-dragger.js +19 -0
- package/dist/components/upload/src/upload-dragger.vue.d.ts +19 -0
- package/dist/components/upload/src/upload-dragger.vue.js +91 -0
- package/dist/components/upload/src/upload-dragger2.vue.js +4 -0
- package/dist/components/upload/src/upload-list.d.ts +45 -0
- package/dist/components/upload/src/upload-list.js +39 -0
- package/dist/components/upload/src/upload-list.vue.d.ts +28 -0
- package/dist/components/upload/src/upload-list.vue.js +182 -0
- package/dist/components/upload/src/upload-list2.vue.js +4 -0
- package/dist/components/upload/src/upload.d.ts +361 -0
- package/dist/components/upload/src/upload.js +216 -0
- package/dist/components/upload/src/upload.vue.d.ts +64 -0
- package/dist/components/upload/src/upload.vue.js +150 -0
- package/dist/components/upload/src/upload2.vue.js +4 -0
- package/dist/components/upload/src/use-handlers.d.ts +60 -0
- package/dist/components/upload/src/use-handlers.js +111 -0
- package/dist/directives/mousewheel/index.js +28 -0
- package/dist/ep-craft.js +277 -236
- package/dist/index.d.ts +67 -0
- package/dist/utils/dom/event.js +12 -11
- package/dist/utils/objects.js +10 -9
- package/dist/utils/vue/install.js +21 -18
- package/dist/utils/vue/refs.js +8 -0
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +44 -4
- package/package.json +1 -1
- package/dist/components/dropdown-item/index.js +0 -6
- package/dist/components/dropdown-menu/index.js +0 -6
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import w from "./dropdown2.vue.js";
|
|
2
|
+
import { resolveComponent as r, openBlock as i, createElementBlock as h, normalizeClass as a, createVNode as n, createSlots as y, withCtx as o, renderSlot as t, createBlock as v, mergeProps as p, createCommentVNode as c } from "vue";
|
|
3
|
+
import C from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function B(e, S, k, T, z, $) {
|
|
5
|
+
const s = r("el-roving-focus-group"), d = r("el-scrollbar"), g = r("el-only-child"), f = r("el-tooltip"), l = r("ep-button"), u = r("arrow-down"), b = r("el-icon"), m = r("ep-button-group");
|
|
6
|
+
return i(), h("div", {
|
|
7
|
+
class: a([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
8
|
+
}, [
|
|
9
|
+
n(f, {
|
|
10
|
+
ref: "popperRef",
|
|
11
|
+
role: e.role,
|
|
12
|
+
effect: e.effect,
|
|
13
|
+
"fallback-placements": ["bottom", "top"],
|
|
14
|
+
"popper-options": e.popperOptions,
|
|
15
|
+
"gpu-acceleration": !1,
|
|
16
|
+
placement: e.placement,
|
|
17
|
+
"popper-class": [e.ns.e("popper"), e.popperClass],
|
|
18
|
+
"popper-style": e.popperStyle,
|
|
19
|
+
trigger: e.trigger,
|
|
20
|
+
"trigger-keys": e.triggerKeys,
|
|
21
|
+
"trigger-target-el": e.contentRef,
|
|
22
|
+
"show-arrow": e.showArrow,
|
|
23
|
+
"show-after": e.trigger === "hover" ? e.showTimeout : 0,
|
|
24
|
+
"hide-after": e.trigger === "hover" ? e.hideTimeout : 0,
|
|
25
|
+
"virtual-ref": e.virtualRef ?? e.triggeringElementRef,
|
|
26
|
+
"virtual-triggering": e.virtualTriggering || e.splitButton,
|
|
27
|
+
disabled: e.disabled,
|
|
28
|
+
transition: `${e.ns.namespace.value}-zoom-in-top`,
|
|
29
|
+
teleported: e.teleported,
|
|
30
|
+
"append-to": e.appendTo,
|
|
31
|
+
pure: "",
|
|
32
|
+
"focus-on-target": "",
|
|
33
|
+
persistent: e.persistent,
|
|
34
|
+
onBeforeShow: e.handleBeforeShowTooltip,
|
|
35
|
+
onShow: e.handleShowTooltip,
|
|
36
|
+
onBeforeHide: e.handleBeforeHideTooltip
|
|
37
|
+
}, y({
|
|
38
|
+
content: o(() => [
|
|
39
|
+
n(d, {
|
|
40
|
+
ref: "scrollbar",
|
|
41
|
+
"wrap-style": e.wrapStyle,
|
|
42
|
+
tag: "div",
|
|
43
|
+
"view-class": e.ns.e("list")
|
|
44
|
+
}, {
|
|
45
|
+
default: o(() => [
|
|
46
|
+
n(s, {
|
|
47
|
+
loop: e.loop,
|
|
48
|
+
"current-tab-id": e.currentTabId,
|
|
49
|
+
orientation: "horizontal",
|
|
50
|
+
onCurrentTabIdChange: e.handleCurrentTabIdChange
|
|
51
|
+
}, {
|
|
52
|
+
default: o(() => [
|
|
53
|
+
t(e.$slots, "dropdown")
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["loop", "current-tab-id", "onCurrentTabIdChange"])
|
|
57
|
+
]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["wrap-style", "view-class"])
|
|
60
|
+
]),
|
|
61
|
+
_: 2
|
|
62
|
+
}, [
|
|
63
|
+
e.splitButton ? void 0 : {
|
|
64
|
+
name: "default",
|
|
65
|
+
fn: o(() => [
|
|
66
|
+
n(g, {
|
|
67
|
+
id: e.triggerId,
|
|
68
|
+
ref: "triggeringElementRef",
|
|
69
|
+
role: "button",
|
|
70
|
+
tabindex: e.tabindex
|
|
71
|
+
}, {
|
|
72
|
+
default: o(() => [
|
|
73
|
+
t(e.$slots, "default")
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["id", "tabindex"])
|
|
77
|
+
]),
|
|
78
|
+
key: "0"
|
|
79
|
+
}
|
|
80
|
+
]), 1032, ["role", "effect", "popper-options", "placement", "popper-class", "popper-style", "trigger", "trigger-keys", "trigger-target-el", "show-arrow", "show-after", "hide-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "append-to", "persistent", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
81
|
+
e.splitButton ? (i(), v(m, { key: 0 }, {
|
|
82
|
+
default: o(() => [
|
|
83
|
+
n(l, p({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
84
|
+
size: e.dropdownSize,
|
|
85
|
+
type: e.type,
|
|
86
|
+
disabled: e.disabled,
|
|
87
|
+
tabindex: e.tabindex,
|
|
88
|
+
onClick: e.handlerMainButtonClick
|
|
89
|
+
}), {
|
|
90
|
+
default: o(() => [
|
|
91
|
+
t(e.$slots, "default")
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
95
|
+
n(l, p({
|
|
96
|
+
id: e.triggerId,
|
|
97
|
+
ref: "triggeringElementRef"
|
|
98
|
+
}, e.buttonProps, {
|
|
99
|
+
role: "button",
|
|
100
|
+
size: e.dropdownSize,
|
|
101
|
+
type: e.type,
|
|
102
|
+
class: e.ns.e("caret-button"),
|
|
103
|
+
disabled: e.disabled,
|
|
104
|
+
tabindex: e.tabindex,
|
|
105
|
+
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
106
|
+
}), {
|
|
107
|
+
default: o(() => [
|
|
108
|
+
n(b, {
|
|
109
|
+
class: a(e.ns.e("icon"))
|
|
110
|
+
}, {
|
|
111
|
+
default: o(() => [
|
|
112
|
+
n(u)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["class"])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
|
|
119
|
+
]),
|
|
120
|
+
_: 3
|
|
121
|
+
})) : c("", !0)
|
|
122
|
+
], 2);
|
|
123
|
+
}
|
|
124
|
+
const H = /* @__PURE__ */ C(w, [["render", B]]);
|
|
125
|
+
export {
|
|
126
|
+
H as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { defineComponent as K, getCurrentInstance as x, ref as n, computed as e, provide as d, toRef as g, unref as A } from "vue";
|
|
2
|
+
import { EpButton as F } from "../../button/index.js";
|
|
3
|
+
import { EpButtonGroup as G } from "../../button-group/index.js";
|
|
4
|
+
import { EpTooltip as P } from "../../tooltip/index.js";
|
|
5
|
+
import { EpScrollbar as z } from "../../scrollbar/index.js";
|
|
6
|
+
import { EpIcon as J } from "../../icon/index.js";
|
|
7
|
+
import L from "../../roving-focus-group/src/roving-focus-group2.vue.js";
|
|
8
|
+
import "../../roving-focus-group/src/roving-focus-item2.vue.js";
|
|
9
|
+
import "@vue/shared";
|
|
10
|
+
import { castArray as M } from "lodash-unified";
|
|
11
|
+
import "@vueuse/core";
|
|
12
|
+
import { addUnit as U } from "../../../utils/dom/style.js";
|
|
13
|
+
import { ArrowDown as W } from "@element-plus/icons-vue";
|
|
14
|
+
import "../../roving-focus-group/src/roving-focus-group.js";
|
|
15
|
+
import { OnlyChild as Y } from "../../slot/src/only-child.js";
|
|
16
|
+
import "../../form/index.js";
|
|
17
|
+
import { useNamespace as j } from "../../../hooks/use-namespace/index.js";
|
|
18
|
+
import { useLocale as q } from "../../../hooks/use-locale/index.js";
|
|
19
|
+
import { useId as Q } from "../../../hooks/use-id/index.js";
|
|
20
|
+
import "../../../hooks/use-size/index.js";
|
|
21
|
+
import "@popperjs/core";
|
|
22
|
+
import "../../../hooks/use-z-index/index.js";
|
|
23
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
24
|
+
import "../../../hooks/use-aria/index.js";
|
|
25
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
26
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
27
|
+
import { dropdownProps as V } from "./dropdown.js";
|
|
28
|
+
import { DROPDOWN_INJECTION_KEY as X, DROPDOWN_INSTANCE_INJECTION_KEY as Z } from "./tokens.js";
|
|
29
|
+
import { useFormSize as $ } from "../../form/src/hooks/use-form-common-props.js";
|
|
30
|
+
const Bo = K({
|
|
31
|
+
name: "EpDropdown",
|
|
32
|
+
components: {
|
|
33
|
+
EpButton: F,
|
|
34
|
+
EpButtonGroup: G,
|
|
35
|
+
ElScrollbar: z,
|
|
36
|
+
ElTooltip: P,
|
|
37
|
+
ElRovingFocusGroup: L,
|
|
38
|
+
ElOnlyChild: Y,
|
|
39
|
+
ElIcon: J,
|
|
40
|
+
ArrowDown: W
|
|
41
|
+
},
|
|
42
|
+
props: V,
|
|
43
|
+
emits: ["visible-change", "click", "command"],
|
|
44
|
+
setup(r, { emit: t }) {
|
|
45
|
+
const h = x(), p = j("dropdown"), { t: E } = q(), C = n(), v = n(), i = n(), l = n(), I = n(null), c = n(null), a = n(!1), O = e(() => ({
|
|
46
|
+
maxHeight: U(r.maxHeight)
|
|
47
|
+
})), T = e(() => [p.m(m.value)]), w = e(() => M(r.trigger)), b = Q().value, u = e(() => r.id || b);
|
|
48
|
+
function N() {
|
|
49
|
+
var o;
|
|
50
|
+
(o = i.value) == null || o.onClose(void 0, 0);
|
|
51
|
+
}
|
|
52
|
+
function s() {
|
|
53
|
+
var o;
|
|
54
|
+
(o = i.value) == null || o.onClose();
|
|
55
|
+
}
|
|
56
|
+
function R() {
|
|
57
|
+
var o;
|
|
58
|
+
(o = i.value) == null || o.onOpen();
|
|
59
|
+
}
|
|
60
|
+
const m = $();
|
|
61
|
+
function S(...o) {
|
|
62
|
+
t("command", ...o);
|
|
63
|
+
}
|
|
64
|
+
function k() {
|
|
65
|
+
}
|
|
66
|
+
function _() {
|
|
67
|
+
const o = A(l);
|
|
68
|
+
w.value.includes("hover") && (o == null || o.focus({
|
|
69
|
+
preventScroll: !0
|
|
70
|
+
})), c.value = null;
|
|
71
|
+
}
|
|
72
|
+
function y(o) {
|
|
73
|
+
c.value = o;
|
|
74
|
+
}
|
|
75
|
+
function B() {
|
|
76
|
+
t("visible-change", !0);
|
|
77
|
+
}
|
|
78
|
+
function D(o) {
|
|
79
|
+
var f;
|
|
80
|
+
a.value = (o == null ? void 0 : o.type) === "keydown", (f = l.value) == null || f.focus();
|
|
81
|
+
}
|
|
82
|
+
function H() {
|
|
83
|
+
t("visible-change", !1);
|
|
84
|
+
}
|
|
85
|
+
return d(X, {
|
|
86
|
+
contentRef: l,
|
|
87
|
+
role: e(() => r.role),
|
|
88
|
+
triggerId: u,
|
|
89
|
+
isUsingKeyboard: a,
|
|
90
|
+
onItemEnter: k,
|
|
91
|
+
onItemLeave: _,
|
|
92
|
+
handleClose: s
|
|
93
|
+
}), d(Z, {
|
|
94
|
+
instance: h,
|
|
95
|
+
dropdownSize: m,
|
|
96
|
+
handleClick: N,
|
|
97
|
+
commandHandler: S,
|
|
98
|
+
trigger: g(r, "trigger"),
|
|
99
|
+
hideOnClick: g(r, "hideOnClick")
|
|
100
|
+
}), {
|
|
101
|
+
t: E,
|
|
102
|
+
ns: p,
|
|
103
|
+
scrollbar: I,
|
|
104
|
+
wrapStyle: O,
|
|
105
|
+
dropdownTriggerKls: T,
|
|
106
|
+
dropdownSize: m,
|
|
107
|
+
triggerId: u,
|
|
108
|
+
currentTabId: c,
|
|
109
|
+
handleCurrentTabIdChange: y,
|
|
110
|
+
handlerMainButtonClick: (o) => {
|
|
111
|
+
t("click", o);
|
|
112
|
+
},
|
|
113
|
+
handleClose: s,
|
|
114
|
+
handleOpen: R,
|
|
115
|
+
handleBeforeShowTooltip: B,
|
|
116
|
+
handleShowTooltip: D,
|
|
117
|
+
handleBeforeHideTooltip: H,
|
|
118
|
+
popperRef: i,
|
|
119
|
+
contentRef: l,
|
|
120
|
+
triggeringElementRef: C,
|
|
121
|
+
referenceElementRef: v
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
Bo as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PopperProps } from '@element-plus/components/popper';
|
|
2
|
+
import type { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
3
|
+
export type ElDropdownInjectionContext = {
|
|
4
|
+
contentRef: Ref<HTMLElement | undefined>;
|
|
5
|
+
role: ComputedRef<PopperProps['role']>;
|
|
6
|
+
triggerId: ComputedRef<string>;
|
|
7
|
+
isUsingKeyboard: Ref<boolean>;
|
|
8
|
+
onItemLeave: (e: PointerEvent) => void;
|
|
9
|
+
onItemEnter: (e: PointerEvent) => void;
|
|
10
|
+
handleClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext>;
|
|
13
|
+
export declare const DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { inject as t, computed as e } from "vue";
|
|
2
|
+
import { DROPDOWN_INSTANCE_INJECTION_KEY as n } from "./tokens.js";
|
|
3
|
+
const i = () => {
|
|
4
|
+
const o = t(
|
|
5
|
+
n,
|
|
6
|
+
{}
|
|
7
|
+
), r = e(() => o == null ? void 0 : o.dropdownSize);
|
|
8
|
+
return {
|
|
9
|
+
elDropdown: o,
|
|
10
|
+
_elDropdownSize: r
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as useDropdown
|
|
15
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -36,77 +36,75 @@ import { EpDescriptionsItem as To } from "./descriptions-item/index.js";
|
|
|
36
36
|
import { EpDialog as So } from "./dialog/index.js";
|
|
37
37
|
import { EpDivider as ko } from "./divider/index.js";
|
|
38
38
|
import { EpDrawer as bo } from "./drawer/index.js";
|
|
39
|
-
import { EpDropdown as Do } from "./dropdown/index.js";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import { EpSegmented as zp } from "./segmented/index.js";
|
|
104
|
-
import { EpMention as Kp } from "./mention/index.js";
|
|
39
|
+
import { EpDropdown as Do, EpDropdownItem as wo, EpDropdownMenu as Bo } from "./dropdown/index.js";
|
|
40
|
+
import { EpEmpty as Ao } from "./empty/index.js";
|
|
41
|
+
import { EpForm as Ro } from "./form/index.js";
|
|
42
|
+
import { EpFormItem as vo } from "./form-item/index.js";
|
|
43
|
+
import { EpIcon as Fo } from "./icon/index.js";
|
|
44
|
+
import { EpImage as Lo } from "./image/index.js";
|
|
45
|
+
import { EpImageViewer as yo } from "./image-viewer/index.js";
|
|
46
|
+
import { EpInput as Uo } from "./input/index.js";
|
|
47
|
+
import { EpInputNumber as jo } from "./input-number/index.js";
|
|
48
|
+
import { EpLink as zo } from "./link/index.js";
|
|
49
|
+
import { EpMenu as Ko } from "./menu/index.js";
|
|
50
|
+
import { EpMenuItem as Xo } from "./menu-item/index.js";
|
|
51
|
+
import { EpMenuItemGroup as Zo } from "./menu-item-group/index.js";
|
|
52
|
+
import { EpSubMenu as $o } from "./sub-menu/index.js";
|
|
53
|
+
import { EpOption as rr } from "./option/index.js";
|
|
54
|
+
import { EpOptionGroup as er } from "./option-group/index.js";
|
|
55
|
+
import { EpPageHeader as mr } from "./page-header/index.js";
|
|
56
|
+
import { EpPagination as xr } from "./pagination/index.js";
|
|
57
|
+
import { EpPopconfirm as ar } from "./popconfirm/index.js";
|
|
58
|
+
import { EpPopover as ir } from "./popover/index.js";
|
|
59
|
+
import { EpPopper as cr } from "./popper/index.js";
|
|
60
|
+
import { EpProgress as dr } from "./progress/index.js";
|
|
61
|
+
import { EpRadio as Tr } from "./radio/index.js";
|
|
62
|
+
import { EpRadioButton as Sr } from "./radio-button/index.js";
|
|
63
|
+
import { EpRadioGroup as kr } from "./radio-group/index.js";
|
|
64
|
+
import { EpRate as br } from "./rate/index.js";
|
|
65
|
+
import { EpResult as Dr } from "./result/index.js";
|
|
66
|
+
import { EpRow as Br } from "./row/index.js";
|
|
67
|
+
import { EpScrollbar as Ar } from "./scrollbar/index.js";
|
|
68
|
+
import { EpSelect as Rr } from "./select/index.js";
|
|
69
|
+
import { EpSelectV2 as vr } from "./select-v2/index.js";
|
|
70
|
+
import { EpSkeleton as Fr } from "./skeleton/index.js";
|
|
71
|
+
import { EpSkeletonItem as Lr } from "./skeleton-item/index.js";
|
|
72
|
+
import { EpSlider as yr } from "./slider/index.js";
|
|
73
|
+
import { EpSpace as Ur } from "./space/index.js";
|
|
74
|
+
import { EpStatistic as jr } from "./statistic/index.js";
|
|
75
|
+
import { EpCountdown as zr } from "./countdown/index.js";
|
|
76
|
+
import { EpSteps as Kr } from "./steps/index.js";
|
|
77
|
+
import { EpStep as Xr } from "./step/index.js";
|
|
78
|
+
import { EpSwitch as Zr } from "./switch/index.js";
|
|
79
|
+
import { EpTable as $r } from "./table/index.js";
|
|
80
|
+
import { EpTableColumn as rp } from "./table-column/index.js";
|
|
81
|
+
import { EpTableV2 as ep } from "./table-v2/index.js";
|
|
82
|
+
import { EpTabs as mp } from "./tabs/index.js";
|
|
83
|
+
import { EpTabPane as xp } from "./tab-pane/index.js";
|
|
84
|
+
import { EpTag as ap } from "./tag/index.js";
|
|
85
|
+
import { EpText as ip } from "./text/index.js";
|
|
86
|
+
import { EpTimePicker as cp } from "./time-picker/index.js";
|
|
87
|
+
import { EpTimeSelect as dp } from "./time-select/index.js";
|
|
88
|
+
import { EpTimeline as Tp } from "./timeline/index.js";
|
|
89
|
+
import { EpTimelineItem as Sp } from "./timeline-item/index.js";
|
|
90
|
+
import { EpTooltip as kp } from "./tooltip/index.js";
|
|
91
|
+
import { EpTransfer as bp } from "./transfer/index.js";
|
|
92
|
+
import { EpTree as Dp } from "./tree/index.js";
|
|
93
|
+
import { EpTreeSelect as Bp } from "./tree-select/index.js";
|
|
94
|
+
import { EpTreeV2 as Ap } from "./tree-v2/index.js";
|
|
95
|
+
import { EpUpload as Rp } from "./upload/index.js";
|
|
96
|
+
import { EpWatermark as vp } from "./watermark/index.js";
|
|
97
|
+
import { EpTour as Fp } from "./tour/index.js";
|
|
98
|
+
import { EpTourStep as Lp } from "./tour-step/index.js";
|
|
99
|
+
import { EpAnchor as yp } from "./anchor/index.js";
|
|
100
|
+
import { EpAnchorLink as Up } from "./anchor-link/index.js";
|
|
101
|
+
import { EpSegmented as jp } from "./segmented/index.js";
|
|
102
|
+
import { EpMention as zp } from "./mention/index.js";
|
|
105
103
|
export {
|
|
106
104
|
p as EpAffix,
|
|
107
105
|
t as EpAlert,
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
yp as EpAnchor,
|
|
107
|
+
Up as EpAnchorLink,
|
|
110
108
|
po as EpAside,
|
|
111
109
|
f as EpAutocomplete,
|
|
112
110
|
E as EpAvatar,
|
|
@@ -133,7 +131,7 @@ export {
|
|
|
133
131
|
Y as EpColorPicker,
|
|
134
132
|
_ as EpConfigProvider,
|
|
135
133
|
oo as EpContainer,
|
|
136
|
-
|
|
134
|
+
zr as EpCountdown,
|
|
137
135
|
no as EpDatePicker,
|
|
138
136
|
lo as EpDatePickerPanel,
|
|
139
137
|
uo as EpDescriptions,
|
|
@@ -142,69 +140,69 @@ export {
|
|
|
142
140
|
ko as EpDivider,
|
|
143
141
|
bo as EpDrawer,
|
|
144
142
|
Do as EpDropdown,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
wo as EpDropdownItem,
|
|
144
|
+
Bo as EpDropdownMenu,
|
|
145
|
+
Ao as EpEmpty,
|
|
148
146
|
to as EpFooter,
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
Ro as EpForm,
|
|
148
|
+
vo as EpFormItem,
|
|
151
149
|
fo as EpHeader,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
Fo as EpIcon,
|
|
151
|
+
Lo as EpImage,
|
|
152
|
+
yo as EpImageViewer,
|
|
153
|
+
Uo as EpInput,
|
|
154
|
+
jo as EpInputNumber,
|
|
155
|
+
zo as EpLink,
|
|
158
156
|
Eo as EpMain,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
157
|
+
zp as EpMention,
|
|
158
|
+
Ko as EpMenu,
|
|
159
|
+
Xo as EpMenuItem,
|
|
160
|
+
Zo as EpMenuItemGroup,
|
|
161
|
+
rr as EpOption,
|
|
162
|
+
er as EpOptionGroup,
|
|
163
|
+
mr as EpPageHeader,
|
|
164
|
+
xr as EpPagination,
|
|
165
|
+
ar as EpPopconfirm,
|
|
166
|
+
ir as EpPopover,
|
|
167
|
+
cr as EpPopper,
|
|
168
|
+
dr as EpProgress,
|
|
169
|
+
Tr as EpRadio,
|
|
170
|
+
Sr as EpRadioButton,
|
|
171
|
+
kr as EpRadioGroup,
|
|
172
|
+
br as EpRate,
|
|
173
|
+
Dr as EpResult,
|
|
174
|
+
Br as EpRow,
|
|
175
|
+
Ar as EpScrollbar,
|
|
176
|
+
jp as EpSegmented,
|
|
177
|
+
Rr as EpSelect,
|
|
178
|
+
vr as EpSelectV2,
|
|
179
|
+
Fr as EpSkeleton,
|
|
180
|
+
Lr as EpSkeletonItem,
|
|
181
|
+
yr as EpSlider,
|
|
182
|
+
Ur as EpSpace,
|
|
183
|
+
jr as EpStatistic,
|
|
184
|
+
Xr as EpStep,
|
|
185
|
+
Kr as EpSteps,
|
|
186
|
+
$o as EpSubMenu,
|
|
187
|
+
Zr as EpSwitch,
|
|
188
|
+
xp as EpTabPane,
|
|
189
|
+
$r as EpTable,
|
|
190
|
+
rp as EpTableColumn,
|
|
191
|
+
ep as EpTableV2,
|
|
192
|
+
mp as EpTabs,
|
|
193
|
+
ap as EpTag,
|
|
194
|
+
ip as EpText,
|
|
195
|
+
cp as EpTimePicker,
|
|
196
|
+
dp as EpTimeSelect,
|
|
197
|
+
Tp as EpTimeline,
|
|
198
|
+
Sp as EpTimelineItem,
|
|
199
|
+
kp as EpTooltip,
|
|
200
|
+
Fp as EpTour,
|
|
201
|
+
Lp as EpTourStep,
|
|
202
|
+
bp as EpTransfer,
|
|
203
|
+
Dp as EpTree,
|
|
204
|
+
Bp as EpTreeSelect,
|
|
205
|
+
Ap as EpTreeV2,
|
|
206
|
+
Rp as EpUpload,
|
|
207
|
+
vp as EpWatermark
|
|
210
208
|
};
|