ep-craft 0.1.22 → 0.1.23

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.
Files changed (111) hide show
  1. package/dist/components/affix/affix.d.ts +19 -19
  2. package/dist/components/affix/affix.js +61 -53
  3. package/dist/components/alert/alert.d.ts +71 -17
  4. package/dist/components/alert/alert.js +99 -43
  5. package/dist/components/anchor/anchor.d.ts +19 -19
  6. package/dist/components/anchor/anchor.js +166 -102
  7. package/dist/components/anchor/constants.d.ts +15 -0
  8. package/dist/components/anchor/constants.js +4 -0
  9. package/dist/components/anchor-link/anchor-link.d.ts +1 -1
  10. package/dist/components/anchor-link/anchor-link.js +39 -26
  11. package/dist/components/button/EpButton.vue.d.ts +8 -8
  12. package/dist/components/button/EpButton.vue.js +5 -5
  13. package/dist/components/button/constants.d.ts +7 -0
  14. package/dist/components/button/constants.js +6 -0
  15. package/dist/components/check-tag/EpCheckTag.vue.d.ts +1 -1
  16. package/dist/components/collapse-transition/index.js +2 -2
  17. package/dist/components/config-provider/src/constants.js +4 -0
  18. package/dist/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  19. package/dist/components/config-provider/src/hooks/use-global-config.js +24 -0
  20. package/dist/components/form/src/constants.js +2 -1
  21. package/dist/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  22. package/dist/components/form/src/hooks/use-form-common-props.js +17 -0
  23. package/dist/components/form/src/hooks/use-form-item.js +51 -0
  24. package/dist/components/icon/index.js +5 -5
  25. package/dist/components/menu/menu-collapse-transition.vue.js +10 -6
  26. package/dist/components/menu/menu.d.ts +47 -47
  27. package/dist/components/menu/menu.js +59 -52
  28. package/dist/components/menu/use-menu-color.d.ts +2 -0
  29. package/dist/components/menu/use-menu-color.js +11 -0
  30. package/dist/components/menu/use-menu-css-var.d.ts +2 -0
  31. package/dist/components/menu/use-menu-css-var.js +30 -0
  32. package/dist/components/menu/utils/menu-bar.d.ts +7 -0
  33. package/dist/components/menu/utils/menu-bar.js +15 -0
  34. package/dist/components/menu/utils/menu-item.d.ts +9 -0
  35. package/dist/components/menu/utils/menu-item.js +50 -0
  36. package/dist/components/menu/utils/submenu.d.ts +11 -0
  37. package/dist/components/menu/utils/submenu.js +49 -0
  38. package/dist/components/menu-item/EpMenuItem.vue.js +17 -13
  39. package/dist/components/menu-item-group/EpMenuItemGroup.vue.js +1 -1
  40. package/dist/components/popper/src/composables/use-content.d.ts +6 -6
  41. package/dist/components/popper/src/content.vue.d.ts +6 -6
  42. package/dist/components/popper/src/popper.d.ts +2 -2
  43. package/dist/components/radio/constants.d.ts +64 -0
  44. package/dist/components/radio/constants.js +4 -0
  45. package/dist/components/radio/radio.d.ts +98 -19
  46. package/dist/components/radio/radio.js +101 -43
  47. package/dist/components/radio/use-radio.d.ts +13 -0
  48. package/dist/components/radio/use-radio.js +43 -0
  49. package/dist/components/radio-button/radio-button.d.ts +46 -16
  50. package/dist/components/radio-button/radio-button.js +37 -29
  51. package/dist/components/radio-group/radio-group.d.ts +142 -28
  52. package/dist/components/radio-group/radio-group.js +136 -55
  53. package/dist/components/sub-menu/sub-menu.d.ts +19 -19
  54. package/dist/components/sub-menu/sub-menu.js +65 -58
  55. package/dist/components/tab-pane/tab-pane.d.ts +45 -8
  56. package/dist/components/tab-pane/tab-pane.js +66 -32
  57. package/dist/components/tabs/composables/use-tab-nav-touch.d.ts +19 -0
  58. package/dist/components/tabs/composables/use-tab-nav-touch.js +58 -0
  59. package/dist/components/tabs/constants.d.ts +63 -0
  60. package/dist/components/tabs/constants.js +4 -0
  61. package/dist/components/tabs/tab-bar.d.ts +97 -0
  62. package/dist/components/tabs/tab-bar.vue.d.ts +14 -0
  63. package/dist/components/tabs/tab-bar.vue.js +80 -0
  64. package/dist/components/tabs/tab-bar2.vue.js +4 -0
  65. package/dist/components/tabs/tab-nav.d.ts +295 -0
  66. package/dist/components/tabs/tab-nav.js +297 -0
  67. package/dist/components/tabs/tabs.d.ts +71 -28
  68. package/dist/components/tabs/tabs.js +165 -93
  69. package/dist/components/tag/EpTag.vue.d.ts +3 -3
  70. package/dist/components/tag/EpTag.vue.js +3 -3
  71. package/dist/components/tooltip/index.d.ts +34 -34
  72. package/dist/components/tooltip/index.js +12 -12
  73. package/dist/components/tooltip/src/content.vue.d.ts +8 -8
  74. package/dist/components/tooltip/src/tooltip.d.ts +2 -2
  75. package/dist/components/tooltip/src/tooltip.vue.d.ts +12 -12
  76. package/dist/components/tooltip/src/trigger.d.ts +1 -1
  77. package/dist/constants/event.js +5 -0
  78. package/dist/directives/click-outside/index.js +49 -0
  79. package/dist/hooks/index.d.ts +1 -0
  80. package/dist/hooks/use-deprecated/index.js +25 -0
  81. package/dist/hooks/use-locale/index.js +24 -0
  82. package/dist/hooks/use-ordered-children/index.js +53 -0
  83. package/dist/hooks/use-popper/index.d.ts +6 -6
  84. package/dist/hooks/use-prop/index.js +11 -0
  85. package/dist/hooks/use-size/index.d.ts +3 -3
  86. package/dist/hooks/use-size/index.js +14 -6
  87. package/dist/hooks/use-wheel/defaults.d.ts +27 -0
  88. package/dist/hooks/use-wheel/defaults.js +4 -0
  89. package/dist/hooks/use-wheel/index.d.ts +13 -0
  90. package/dist/hooks/use-wheel/index.js +26 -0
  91. package/dist/utils/browser.js +6 -5
  92. package/dist/utils/dom/aria.js +13 -6
  93. package/dist/utils/dom/element.js +16 -0
  94. package/dist/utils/dom/position.js +18 -0
  95. package/dist/utils/dom/scroll.js +50 -0
  96. package/dist/utils/dom/style.js +40 -13
  97. package/dist/utils/easings.js +7 -0
  98. package/dist/utils/error.js +11 -7
  99. package/dist/utils/numbers.js +6 -0
  100. package/dist/utils/objects.js +7 -0
  101. package/dist/utils/raf.js +6 -0
  102. package/dist/utils/strings.js +8 -0
  103. package/dist/utils/throttleByRaf.js +15 -0
  104. package/dist/utils/types.js +19 -16
  105. package/dist/utils/typescript.js +4 -0
  106. package/dist/utils/vue/icon.js +20 -0
  107. package/dist/utils/vue/vnode.d.ts +4 -4
  108. package/dist/utils/vue/vnode.js +17 -0
  109. package/dist/vendored-components.d.ts +6 -3
  110. package/dist/vendored-components.js +11 -5
  111. package/package.json +1 -1
@@ -0,0 +1,297 @@
1
+ import { defineComponent as me, inject as be, ref as v, shallowRef as he, computed as b, watch as j, onMounted as pe, onUpdated as ge, triggerRef as Re, nextTick as q } from "vue";
2
+ import { useDocumentVisibility as Ee, useWindowFocus as Te, useElementSize as G, useResizeObserver as Ce } from "@vueuse/core";
3
+ import "@vue/shared";
4
+ import { clamp as Se } from "lodash-unified";
5
+ import { throwError as we } from "../../utils/error.js";
6
+ import { isGreaterThan as W } from "../../utils/numbers.js";
7
+ import { rAF as U } from "../../utils/raf.js";
8
+ import { mutable as xe } from "../../utils/typescript.js";
9
+ import { getEventCode as X } from "../../utils/dom/event.js";
10
+ import { ArrowLeft as ye, ArrowRight as Ne, Close as Be } from "@element-plus/icons-vue";
11
+ import { buildProps as Oe, definePropType as ke } from "../../utils/vue/props/runtime.js";
12
+ import { EVENT_CODE as C } from "../../constants/aria.js";
13
+ import { ElIcon as M } from "../icon/index.js";
14
+ import { useNamespace as ze } from "../../hooks/use-namespace/index.js";
15
+ import "../../hooks/use-size/index.js";
16
+ import "@popperjs/core";
17
+ import "../../hooks/use-z-index/index.js";
18
+ import "../../hooks/use-delayed-toggle/index.js";
19
+ import "../../hooks/use-aria/index.js";
20
+ import "../../hooks/use-model-toggle/index.js";
21
+ import "../../hooks/use-empty-values/index.js";
22
+ import Pe from "../../hooks/use-wheel/index.js";
23
+ import $e from "./tab-bar.vue.js";
24
+ import { tabsRootContextKey as Ae } from "./constants.js";
25
+ import { useTabNavTouch as We } from "./composables/use-tab-nav-touch.js";
26
+ const Me = Oe({
27
+ panes: {
28
+ type: ke(Array),
29
+ default: () => xe([])
30
+ },
31
+ currentName: {
32
+ type: [String, Number],
33
+ default: ""
34
+ },
35
+ editable: Boolean,
36
+ type: {
37
+ type: String,
38
+ values: ["card", "border-card", ""],
39
+ default: ""
40
+ },
41
+ stretch: Boolean,
42
+ /**
43
+ * @description tab-nav tabindex
44
+ */
45
+ tabindex: {
46
+ type: [String, Number],
47
+ default: void 0
48
+ }
49
+ }), Fe = {
50
+ tabClick: (c, x, S) => S instanceof Event,
51
+ tabRemove: (c, x) => x instanceof Event
52
+ }, Y = "ElTabNav", rt = me({
53
+ name: Y,
54
+ props: Me,
55
+ emits: Fe,
56
+ setup(c, { expose: x, emit: S }) {
57
+ const h = be(Ae);
58
+ h || we(Y, "<el-tabs><tab-nav /></el-tabs>");
59
+ const n = ze("tabs"), J = Ee(), Q = Te(), u = v(), d = v(), N = v(), y = v({}), B = v(), i = v(!1), l = v(0), O = v(!1), w = v(!0), k = v(!1), F = he(), p = b(
60
+ () => ["top", "bottom"].includes(h.props.tabPosition)
61
+ ), E = b(() => p.value ? "width" : "height"), Z = b(() => {
62
+ const e = E.value === "width" ? "X" : "Y";
63
+ return {
64
+ transition: k.value || se.value ? "none" : void 0,
65
+ transform: `translate${e}(-${l.value}px)`
66
+ };
67
+ }), { width: ee, height: te } = G(u), { width: ae, height: oe } = G(
68
+ d,
69
+ { width: 0, height: 0 },
70
+ { box: "border-box" }
71
+ ), z = b(
72
+ () => p.value ? ee.value : te.value
73
+ ), P = b(
74
+ () => p.value ? ae.value : oe.value
75
+ ), { onWheel: ne } = Pe(
76
+ {
77
+ atStartEdge: b(() => l.value <= 0),
78
+ atEndEdge: b(
79
+ () => P.value - l.value <= z.value
80
+ ),
81
+ layout: b(
82
+ () => p.value ? "horizontal" : "vertical"
83
+ )
84
+ },
85
+ (e) => {
86
+ l.value = Se(
87
+ l.value + e,
88
+ 0,
89
+ P.value - z.value
90
+ );
91
+ }
92
+ ), le = (e) => {
93
+ k.value = !0, ne(e), U(() => {
94
+ k.value = !1;
95
+ });
96
+ }, {
97
+ isTouchScrolling: se,
98
+ handleTouchStart: ce,
99
+ handleTouchMove: ie,
100
+ handleTouchEnd: L
101
+ } = We({
102
+ scrollable: i,
103
+ navOffset: l,
104
+ navSize: P,
105
+ navContainerSize: z,
106
+ isHorizontal: p
107
+ }), re = () => {
108
+ if (!u.value) return;
109
+ const e = u.value.getBoundingClientRect()[E.value], a = l.value;
110
+ if (!a) return;
111
+ const t = a > e ? a - e : 0;
112
+ l.value = t;
113
+ }, ue = () => {
114
+ if (!u.value || !d.value) return;
115
+ const e = d.value.getBoundingClientRect()[E.value], a = u.value.getBoundingClientRect()[E.value], t = l.value;
116
+ if (!W(e - t, a)) return;
117
+ const o = e - t > a * 2 ? t + a : e - a;
118
+ l.value = o;
119
+ }, I = async () => {
120
+ const e = d.value;
121
+ if (!i.value || !N.value || !u.value || !e) return;
122
+ await q();
123
+ const a = y.value[c.currentName];
124
+ if (!a) return;
125
+ const t = u.value, o = a.getBoundingClientRect(), r = t.getBoundingClientRect(), s = r.left + 1, g = r.right - 1, T = e.getBoundingClientRect(), A = p.value ? T.width - r.width : T.height - r.height, R = l.value;
126
+ let f = R;
127
+ p.value ? (o.left < s && (f = R - (s - o.left)), o.right > g && (f = R + o.right - g)) : (o.top < r.top && (f = R - (r.top - o.top)), o.bottom > r.bottom && (f = R + (o.bottom - r.bottom))), f = Math.max(f, 0), l.value = Math.min(f, A);
128
+ }, _ = () => {
129
+ var o;
130
+ if (!d.value || !u.value) return;
131
+ c.stretch && ((o = B.value) == null || o.update());
132
+ const e = d.value.getBoundingClientRect()[E.value], a = u.value.getBoundingClientRect()[E.value], t = l.value;
133
+ a < e ? (i.value = i.value || {}, i.value.prev = t, i.value.next = W(
134
+ e,
135
+ t + a
136
+ ), W(a, e - t) && (l.value = e - a)) : (i.value = !1, t > 0 && (l.value = 0));
137
+ }, ve = (e) => {
138
+ const a = X(e);
139
+ let t = 0;
140
+ switch (a) {
141
+ case C.left:
142
+ case C.up:
143
+ t = -1;
144
+ break;
145
+ case C.right:
146
+ case C.down:
147
+ t = 1;
148
+ break;
149
+ default:
150
+ return;
151
+ }
152
+ const o = Array.from(
153
+ e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")
154
+ );
155
+ let s = o.indexOf(e.target) + t;
156
+ s < 0 ? s = o.length - 1 : s >= o.length && (s = 0), o[s].focus({ preventScroll: !0 }), o[s].click(), H();
157
+ }, H = () => {
158
+ w.value && (O.value = !0);
159
+ }, $ = () => O.value = !1, fe = (e, a) => {
160
+ y.value[a] = e;
161
+ }, de = async () => {
162
+ await q();
163
+ const e = y.value[c.currentName];
164
+ e == null || e.focus({ preventScroll: !0 });
165
+ };
166
+ return j(J, (e) => {
167
+ e === "hidden" ? w.value = !1 : e === "visible" && setTimeout(() => w.value = !0, 50);
168
+ }), j(Q, (e) => {
169
+ e ? setTimeout(() => w.value = !0, 50) : w.value = !1;
170
+ }), Ce(N, () => {
171
+ U(_);
172
+ }), pe(() => setTimeout(() => I(), 0)), ge(() => _()), x({
173
+ scrollToActiveTab: I,
174
+ removeFocus: $,
175
+ focusActiveTab: de,
176
+ tabListRef: d,
177
+ tabBarRef: B,
178
+ scheduleRender: () => Re(F)
179
+ }), () => {
180
+ const e = i.value ? [
181
+ /* @__PURE__ */ React.createElement(
182
+ "span",
183
+ {
184
+ class: [
185
+ n.e("nav-prev"),
186
+ n.is("disabled", !i.value.prev)
187
+ ],
188
+ onClick: re
189
+ },
190
+ /* @__PURE__ */ React.createElement(M, null, /* @__PURE__ */ React.createElement(ye, null))
191
+ ),
192
+ /* @__PURE__ */ React.createElement(
193
+ "span",
194
+ {
195
+ class: [
196
+ n.e("nav-next"),
197
+ n.is("disabled", !i.value.next)
198
+ ],
199
+ onClick: ue
200
+ },
201
+ /* @__PURE__ */ React.createElement(M, null, /* @__PURE__ */ React.createElement(Ne, null))
202
+ )
203
+ ] : null, a = c.panes.map((t, o) => {
204
+ var K, D;
205
+ const r = t.uid, s = t.props.disabled, g = t.props.name ?? t.index ?? `${o}`, T = !s && (t.isClosable || t.props.closable !== !1 && c.editable);
206
+ t.index = `${o}`;
207
+ const A = T ? /* @__PURE__ */ React.createElement(
208
+ M,
209
+ {
210
+ class: "is-icon-close",
211
+ onClick: (m) => S("tabRemove", t, m)
212
+ },
213
+ /* @__PURE__ */ React.createElement(Be, null)
214
+ ) : null, R = ((D = (K = t.slots).label) == null ? void 0 : D.call(K)) || t.props.label, f = !s && t.active ? c.tabindex ?? h.props.tabindex : -1;
215
+ return /* @__PURE__ */ React.createElement(
216
+ "div",
217
+ {
218
+ ref: (m) => fe(m, g),
219
+ class: [
220
+ n.e("item"),
221
+ n.is(h.props.tabPosition),
222
+ n.is("active", t.active),
223
+ n.is("disabled", s),
224
+ n.is("closable", T),
225
+ n.is("focus", O.value)
226
+ ],
227
+ id: `tab-${g}`,
228
+ key: `tab-${r}`,
229
+ "aria-controls": `pane-${g}`,
230
+ role: "tab",
231
+ "aria-selected": t.active,
232
+ tabindex: f,
233
+ onFocus: () => H(),
234
+ onBlur: () => $(),
235
+ onClick: (m) => {
236
+ $(), S("tabClick", t, g, m);
237
+ },
238
+ onKeydown: (m) => {
239
+ const V = X(m);
240
+ T && (V === C.delete || V === C.backspace) && S("tabRemove", t, m);
241
+ }
242
+ },
243
+ R,
244
+ A
245
+ );
246
+ });
247
+ return F.value, /* @__PURE__ */ React.createElement(
248
+ "div",
249
+ {
250
+ ref: N,
251
+ class: [
252
+ n.e("nav-wrap"),
253
+ n.is("scrollable", !!i.value),
254
+ n.is(h.props.tabPosition)
255
+ ]
256
+ },
257
+ e,
258
+ /* @__PURE__ */ React.createElement("div", { class: n.e("nav-scroll"), ref: u }, c.panes.length > 0 ? /* @__PURE__ */ React.createElement(
259
+ "div",
260
+ {
261
+ class: [
262
+ n.e("nav"),
263
+ n.is(h.props.tabPosition),
264
+ n.is(
265
+ "stretch",
266
+ c.stretch && ["top", "bottom"].includes(h.props.tabPosition)
267
+ )
268
+ ],
269
+ ref: d,
270
+ style: Z.value,
271
+ role: "tablist",
272
+ onKeydown: ve,
273
+ onWheel: le,
274
+ onTouchstart: ce,
275
+ onTouchmove: ie,
276
+ onTouchend: L,
277
+ onTouchcancel: L
278
+ },
279
+ c.type ? null : /* @__PURE__ */ React.createElement(
280
+ $e,
281
+ {
282
+ ref: B,
283
+ tabs: [...c.panes],
284
+ tabRefs: y.value
285
+ }
286
+ ),
287
+ a
288
+ ) : null)
289
+ );
290
+ };
291
+ }
292
+ });
293
+ export {
294
+ rt as default,
295
+ Fe as tabNavEmits,
296
+ Me as tabNavProps
297
+ };
@@ -1,5 +1,48 @@
1
- import type { VNode } from 'vue';
2
- import type { TabPaneName, TabsPaneContext } from 'element-plus/es/components/tabs/src/constants.mjs';
1
+ import type { ExtractPropTypes, ExtractPublicPropTypes, VNode } from 'vue';
2
+ import type { Awaitable } from '@element-plus/utils';
3
+ import type { TabPaneName, TabsPaneContext } from './constants';
4
+ export declare const tabsProps: {
5
+ readonly type: import("@element-plus/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
6
+ readonly closable: BooleanConstructor;
7
+ readonly addable: BooleanConstructor;
8
+ readonly modelValue: {
9
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
10
+ readonly required: false;
11
+ readonly validator: ((val: unknown) => boolean) | undefined;
12
+ __epPropKey: true;
13
+ };
14
+ readonly defaultValue: {
15
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
16
+ readonly required: false;
17
+ readonly validator: ((val: unknown) => boolean) | undefined;
18
+ __epPropKey: true;
19
+ };
20
+ readonly editable: BooleanConstructor;
21
+ readonly tabPosition: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
22
+ readonly beforeLeave: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
23
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
24
+ new (): any;
25
+ readonly prototype: any;
26
+ } | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
27
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
28
+ new (): any;
29
+ readonly prototype: any;
30
+ }) | null)[], unknown, unknown, () => true, boolean>;
31
+ readonly stretch: BooleanConstructor;
32
+ readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
33
+ };
34
+ export type TabsProps = ExtractPropTypes<typeof tabsProps>;
35
+ export type TabsPropsPublic = ExtractPublicPropTypes<typeof tabsProps>;
36
+ export declare const tabsEmits: {
37
+ "update:modelValue": (name: TabPaneName) => name is string | number;
38
+ tabClick: (pane: TabsPaneContext, ev: Event) => boolean;
39
+ tabChange: (name: TabPaneName) => name is string | number;
40
+ edit: (paneName: TabPaneName | undefined, action: "remove" | "add") => boolean;
41
+ tabRemove: (name: TabPaneName) => name is string | number;
42
+ tabAdd: () => boolean;
43
+ };
44
+ export type TabsEmits = typeof tabsEmits;
45
+ export type TabsPanes = Record<number, TabsPaneContext>;
3
46
  /**
4
47
  * EpTabs —— 从 element-plus 的 tabs 源码 vendored 而来(el -> ep 命名),
5
48
  * 样式复用仓库内置的 theme-chalk/src/tabs.scss(命名空间为 el)。
@@ -8,35 +51,35 @@ import type { TabPaneName, TabsPaneContext } from 'element-plus/es/components/ta
8
51
  * 因此必须将子组件命名为 EpTabPane(对应 useOrderedChildren(..., 'EpTabPane')),
9
52
  * 否则用改名包装(ElTabs -> EpTabs)会导致 TabPane 无法被识别、标签页不展示。
10
53
  */
11
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
- readonly type: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
54
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
55
+ readonly type: import("@element-plus/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
13
56
  readonly closable: BooleanConstructor;
14
57
  readonly addable: BooleanConstructor;
15
58
  readonly modelValue: {
16
- readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
59
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
17
60
  readonly required: false;
18
61
  readonly validator: ((val: unknown) => boolean) | undefined;
19
62
  __epPropKey: true;
20
63
  };
21
64
  readonly defaultValue: {
22
- readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
65
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
23
66
  readonly required: false;
24
67
  readonly validator: ((val: unknown) => boolean) | undefined;
25
68
  __epPropKey: true;
26
69
  };
27
70
  readonly editable: BooleanConstructor;
28
- readonly tabPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
29
- readonly beforeLeave: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | {
30
- (): (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
71
+ readonly tabPosition: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
72
+ readonly beforeLeave: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
73
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
31
74
  new (): any;
32
75
  readonly prototype: any;
33
- } | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | {
34
- (): (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
76
+ } | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
77
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
35
78
  new (): any;
36
79
  readonly prototype: any;
37
80
  }) | null)[], unknown, unknown, () => true, boolean>;
38
81
  readonly stretch: BooleanConstructor;
39
- readonly tabindex: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
82
+ readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
40
83
  }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
84
  [key: string]: any;
42
85
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -46,35 +89,35 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
46
89
  edit: (paneName: TabPaneName | undefined, action: "remove" | "add") => boolean;
47
90
  tabRemove: (name: TabPaneName) => name is string | number;
48
91
  tabAdd: () => boolean;
49
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
- readonly type: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
92
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
93
+ readonly type: import("@element-plus/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
51
94
  readonly closable: BooleanConstructor;
52
95
  readonly addable: BooleanConstructor;
53
96
  readonly modelValue: {
54
- readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
97
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
55
98
  readonly required: false;
56
99
  readonly validator: ((val: unknown) => boolean) | undefined;
57
100
  __epPropKey: true;
58
101
  };
59
102
  readonly defaultValue: {
60
- readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
103
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
61
104
  readonly required: false;
62
105
  readonly validator: ((val: unknown) => boolean) | undefined;
63
106
  __epPropKey: true;
64
107
  };
65
108
  readonly editable: BooleanConstructor;
66
- readonly tabPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
67
- readonly beforeLeave: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | {
68
- (): (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
109
+ readonly tabPosition: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
110
+ readonly beforeLeave: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
111
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
69
112
  new (): any;
70
113
  readonly prototype: any;
71
- } | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>) | {
72
- (): (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
114
+ } | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
115
+ (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
73
116
  new (): any;
74
117
  readonly prototype: any;
75
118
  }) | null)[], unknown, unknown, () => true, boolean>;
76
119
  readonly stretch: BooleanConstructor;
77
- readonly tabindex: import("element-plus/es/utils/index.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
120
+ readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
78
121
  }>> & Readonly<{
79
122
  "onUpdate:modelValue"?: ((name: TabPaneName) => any) | undefined;
80
123
  onTabClick?: ((pane: {
@@ -94,18 +137,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
94
137
  isClosable: boolean;
95
138
  isFocusInsidePane: () => boolean | undefined;
96
139
  }, ev: Event) => any) | undefined;
140
+ onTabRemove?: ((name: TabPaneName) => any) | undefined;
97
141
  onTabChange?: ((name: TabPaneName) => any) | undefined;
98
142
  onEdit?: ((paneName: TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
99
- onTabRemove?: ((name: TabPaneName) => any) | undefined;
100
143
  onTabAdd?: (() => any) | undefined;
101
144
  }>, {
102
- readonly type: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
103
- readonly closable: boolean;
104
- readonly tabindex: import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
105
145
  readonly stretch: boolean;
146
+ readonly tabindex: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
147
+ readonly type: import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
148
+ readonly closable: boolean;
106
149
  readonly editable: boolean;
150
+ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
151
+ readonly tabPosition: import("@element-plus/utils").EpPropMergeType<StringConstructor, "left" | "right" | "bottom" | "top", unknown>;
107
152
  readonly addable: boolean;
108
- readonly tabPosition: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right", unknown>;
109
- readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => import("element-plus/es/utils/typescript.mjs").Awaitable<void | boolean>;
110
153
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
111
154
  export default _default;