yuang-framework-ui-pc 1.1.126 → 1.1.128
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, createElementBlock, openBlock, Fragment, renderSlot, createCommentVNode, createBlock, createElementVNode, normalizeProps, mergeProps, withCtx, resolveDynamicComponent, normalizeStyle, toDisplayString, withModifiers } from "vue";
|
|
2
2
|
import { ElBadge, ElIcon } from "element-plus";
|
|
3
3
|
import { isExternalLink } from "../../utils/core";
|
|
4
|
-
import { useRouter } from "vue-router";
|
|
5
4
|
const _sfc_main = defineComponent({
|
|
6
5
|
name: "ItemTitle",
|
|
7
6
|
components: { ElIcon, ElBadge },
|
|
@@ -25,25 +24,7 @@ const _sfc_main = defineComponent({
|
|
|
25
24
|
itemMouseleave: (_item, _e) => true
|
|
26
25
|
},
|
|
27
26
|
setup(_props, { emit }) {
|
|
28
|
-
const router = useRouter();
|
|
29
|
-
function findFirstLeafMenu(menu) {
|
|
30
|
-
if (!menu.children || menu.children.length === 0) {
|
|
31
|
-
return menu;
|
|
32
|
-
}
|
|
33
|
-
return findFirstLeafMenu(menu.children[0]);
|
|
34
|
-
}
|
|
35
27
|
const handleItemClick = (item, e) => {
|
|
36
|
-
var _a;
|
|
37
|
-
const isSubMenuOpen = ((_a = e.target) == null ? void 0 : _a.closest(".el-sub-menu.is-opened")) !== null;
|
|
38
|
-
if (item.children && item.children.length > 0 && !isSubMenuOpen) {
|
|
39
|
-
const firstLeaf = findFirstLeafMenu(item);
|
|
40
|
-
if (firstLeaf && firstLeaf.path) {
|
|
41
|
-
e.preventDefault();
|
|
42
|
-
e.stopPropagation();
|
|
43
|
-
router.push(firstLeaf.path);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
28
|
emit("itemClick", item, e);
|
|
48
29
|
};
|
|
49
30
|
const handleItemMouseenter = (item, e) => {
|
package/es/ele-menus/index.d.ts
CHANGED
|
@@ -38,9 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
38
|
collapseTransition: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
39
39
|
ellipsis: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
40
|
popperOffset: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
41
|
-
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
42
|
-
/** 文本溢出提示是否显示 */
|
|
43
|
-
... /** 文本溢出提示是否显示 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
41
|
+
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
44
42
|
popperEffect: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "dark", boolean>;
|
|
45
43
|
popperClass: StringConstructor;
|
|
46
44
|
showTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
@@ -112,9 +110,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
112
110
|
collapseTransition: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
111
|
ellipsis: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
114
112
|
popperOffset: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
115
|
-
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
116
|
-
/** 文本溢出提示是否显示 */
|
|
117
|
-
... /** 文本溢出提示是否显示 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
113
|
+
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
118
114
|
popperEffect: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "dark", boolean>;
|
|
119
115
|
popperClass: StringConstructor;
|
|
120
116
|
showTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
@@ -151,9 +147,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
151
147
|
ElMenu: import('element-plus/es/utils/index').SFCWithInstall<import('vue').DefineComponent<{
|
|
152
148
|
readonly mode: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
153
149
|
readonly defaultActive: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
154
|
-
readonly defaultOpeneds: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (
|
|
155
|
-
/** 菜单项选中事件 */
|
|
156
|
-
... /** 菜单项选中事件 */args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
150
|
+
readonly defaultOpeneds: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
157
151
|
readonly uniqueOpened: BooleanConstructor;
|
|
158
152
|
readonly router: BooleanConstructor;
|
|
159
153
|
readonly menuTrigger: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "click" | "hover", unknown, "hover", boolean>;
|
|
@@ -234,17 +228,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
234
228
|
namespace: import('vue').ComputedRef<string>;
|
|
235
229
|
b: (blockSuffix?: string) => string;
|
|
236
230
|
e: (element?: string | undefined) => string;
|
|
237
|
-
m: (modifier? /**
|
|
238
|
-
be: (blockSuffix
|
|
239
|
-
/** 菜单数据
|
|
240
|
-
?: string | undefined,
|
|
241
|
-
|
|
242
|
-
/** 省略的菜单数据 */
|
|
243
|
-
? /** 省略的菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
244
|
-
bm: (blockSuffix
|
|
245
|
-
/** 文本溢出提示单例目标 */
|
|
246
|
-
?: string | undefined, modifier?: string | undefined) => string;
|
|
247
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
231
|
+
m: (modifier? /** 省略菜单子组件 */: string | undefined) => string;
|
|
232
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
233
|
+
em: (element? /** 菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
234
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
235
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier? /** 文本溢出提示文本 */: string | undefined) => string;
|
|
248
236
|
is: {
|
|
249
237
|
(name: string, state: boolean | undefined): string;
|
|
250
238
|
(name: string): string;
|
|
@@ -261,9 +249,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
261
249
|
m: (modifier?: string | undefined) => string;
|
|
262
250
|
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
263
251
|
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
264
|
-
bm: (blockSuffix?: string | undefined, modifier
|
|
265
|
-
/** 关闭文本溢出提示 */
|
|
266
|
-
?: string | undefined) => string;
|
|
252
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
267
253
|
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
268
254
|
is: {
|
|
269
255
|
(name: string, state: boolean | undefined): string;
|
|
@@ -290,7 +276,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
290
276
|
onClick?: ((item: import('element-plus').MenuItemRegistered) => any) | undefined;
|
|
291
277
|
}, {
|
|
292
278
|
readonly disabled: boolean;
|
|
293
|
-
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
279
|
+
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
280
|
+
/** 子菜单项点击事件 */
|
|
281
|
+
... /** 子菜单项点击事件 */args: any[]) => string & {}) | (() => string | null))[], unknown, unknown>;
|
|
294
282
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
295
283
|
MenuItemGroup: import('vue').DefineComponent<{
|
|
296
284
|
readonly title: StringConstructor;
|
|
@@ -330,7 +318,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
330
318
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
331
319
|
readonly popperOffset: NumberConstructor;
|
|
332
320
|
readonly expandCloseIcon: {
|
|
333
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
321
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
334
322
|
readonly required: false;
|
|
335
323
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
336
324
|
__epPropKey: true;
|
|
@@ -411,7 +399,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
411
399
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
412
400
|
readonly popperOffset: NumberConstructor;
|
|
413
401
|
readonly expandCloseIcon: {
|
|
414
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
402
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
415
403
|
readonly required: false;
|
|
416
404
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
417
405
|
__epPropKey: true;
|
|
@@ -480,7 +468,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
480
468
|
ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
|
|
481
469
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
482
470
|
readonly size: {
|
|
483
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
471
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
484
472
|
readonly required: false;
|
|
485
473
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
486
474
|
__epPropKey: true;
|
|
@@ -500,7 +488,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
500
488
|
Defaults: {};
|
|
501
489
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
502
490
|
readonly size: {
|
|
503
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
491
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
504
492
|
readonly required: false;
|
|
505
493
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
506
494
|
__epPropKey: true;
|
|
@@ -517,7 +505,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
517
505
|
__isSuspense?: never;
|
|
518
506
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
519
507
|
readonly size: {
|
|
520
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
508
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
521
509
|
readonly required: false;
|
|
522
510
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
523
511
|
__epPropKey: true;
|
|
@@ -553,12 +541,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
553
541
|
__epPropKey: true;
|
|
554
542
|
};
|
|
555
543
|
zIndex: NumberConstructor;
|
|
556
|
-
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...
|
|
557
|
-
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...
|
|
544
|
+
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
545
|
+
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
558
546
|
popperOptions: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>) | ((new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>))[], unknown, unknown, () => {}, boolean>;
|
|
559
|
-
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
560
|
-
/** 文本溢出提示单例目标 */
|
|
561
|
-
... /** 文本溢出提示单例目标 */args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
547
|
+
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
562
548
|
transition: StringConstructor;
|
|
563
549
|
content: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
564
550
|
enterable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -616,12 +602,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
616
602
|
__epPropKey: true;
|
|
617
603
|
};
|
|
618
604
|
zIndex: NumberConstructor;
|
|
619
|
-
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...
|
|
620
|
-
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...
|
|
605
|
+
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
606
|
+
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
621
607
|
popperOptions: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>) | ((new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>))[], unknown, unknown, () => {}, boolean>;
|
|
622
|
-
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
623
|
-
/** 文本溢出提示单例目标 */
|
|
624
|
-
... /** 文本溢出提示单例目标 */args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
608
|
+
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
625
609
|
transition: StringConstructor;
|
|
626
610
|
content: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
627
611
|
enterable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -2034,17 +2018,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2034
2018
|
namespace: import('vue').ComputedRef<string>;
|
|
2035
2019
|
b: (blockSuffix?: string) => string;
|
|
2036
2020
|
e: (element?: string | undefined) => string;
|
|
2037
|
-
m: (modifier? /**
|
|
2038
|
-
be: (blockSuffix
|
|
2039
|
-
/** 菜单数据
|
|
2040
|
-
?: string | undefined,
|
|
2041
|
-
|
|
2042
|
-
/** 省略的菜单数据 */
|
|
2043
|
-
? /** 省略的菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
2044
|
-
bm: (blockSuffix
|
|
2045
|
-
/** 文本溢出提示单例目标 */
|
|
2046
|
-
?: string | undefined, modifier?: string | undefined) => string;
|
|
2047
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
2021
|
+
m: (modifier? /** 省略菜单子组件 */: string | undefined) => string;
|
|
2022
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
2023
|
+
em: (element? /** 菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
2024
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
2025
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier? /** 文本溢出提示文本 */: string | undefined) => string;
|
|
2048
2026
|
is: {
|
|
2049
2027
|
(name: string, state: boolean | undefined): string;
|
|
2050
2028
|
(name: string): string;
|
|
@@ -2061,9 +2039,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2061
2039
|
m: (modifier?: string | undefined) => string;
|
|
2062
2040
|
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
2063
2041
|
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
2064
|
-
bm: (blockSuffix?: string | undefined, modifier
|
|
2065
|
-
/** 关闭文本溢出提示 */
|
|
2066
|
-
?: string | undefined) => string;
|
|
2042
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
2067
2043
|
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
2068
2044
|
is: {
|
|
2069
2045
|
(name: string, state: boolean | undefined): string;
|
|
@@ -2090,7 +2066,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2090
2066
|
onClick?: ((item: import('element-plus').MenuItemRegistered) => any) | undefined;
|
|
2091
2067
|
}, {
|
|
2092
2068
|
readonly disabled: boolean;
|
|
2093
|
-
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
2069
|
+
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
2070
|
+
/** 子菜单项点击事件 */
|
|
2071
|
+
... /** 子菜单项点击事件 */args: any[]) => string & {}) | (() => string | null))[], unknown, unknown>;
|
|
2094
2072
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
2095
2073
|
ElSubMenu: import('element-plus/es/utils/index').SFCWithInstall<import('vue').DefineComponent<{
|
|
2096
2074
|
readonly index: {
|
|
@@ -2106,7 +2084,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2106
2084
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
2107
2085
|
readonly popperOffset: NumberConstructor;
|
|
2108
2086
|
readonly expandCloseIcon: {
|
|
2109
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
2087
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
2110
2088
|
readonly required: false;
|
|
2111
2089
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2112
2090
|
__epPropKey: true;
|
|
@@ -2236,7 +2214,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2236
2214
|
ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
|
|
2237
2215
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
2238
2216
|
readonly size: {
|
|
2239
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2217
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2240
2218
|
readonly required: false;
|
|
2241
2219
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2242
2220
|
__epPropKey: true;
|
|
@@ -2256,7 +2234,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2256
2234
|
Defaults: {};
|
|
2257
2235
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
2258
2236
|
readonly size: {
|
|
2259
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2237
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2260
2238
|
readonly required: false;
|
|
2261
2239
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2262
2240
|
__epPropKey: true;
|
|
@@ -2273,7 +2251,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2273
2251
|
__isSuspense?: never;
|
|
2274
2252
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
2275
2253
|
readonly size: {
|
|
2276
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2254
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2277
2255
|
readonly required: false;
|
|
2278
2256
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2279
2257
|
__epPropKey: true;
|
package/es/ele-menus/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import EleTooltip from "../ele-tooltip/index";
|
|
|
6
6
|
import MenuItems from "./components/menu-items";
|
|
7
7
|
import { useMenuEllipsis, getMenuItems, getPopperClass } from "./util";
|
|
8
8
|
import { menusEmits, menusProps, menuPropKeys } from "./props";
|
|
9
|
+
import { useRouter } from "vue-router";
|
|
9
10
|
const _sfc_main = defineComponent({
|
|
10
11
|
name: "EleMenus",
|
|
11
12
|
components: { ElMenu, ElSubMenu, ElIcon, EleTooltip, MenuItems },
|
|
@@ -13,6 +14,7 @@ const _sfc_main = defineComponent({
|
|
|
13
14
|
emits: menusEmits,
|
|
14
15
|
setup(props, { emit }) {
|
|
15
16
|
var _a, _b;
|
|
17
|
+
const router = useRouter();
|
|
16
18
|
const isWebkit = (_b = (_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, "WebKit");
|
|
17
19
|
const menuRef = ref(null);
|
|
18
20
|
const ellipsisRef = ref(null);
|
|
@@ -61,7 +63,19 @@ const _sfc_main = defineComponent({
|
|
|
61
63
|
hideTooltip();
|
|
62
64
|
};
|
|
63
65
|
const handleOpen = (index2, indexPath) => {
|
|
66
|
+
var _a2;
|
|
64
67
|
emit("open", index2, indexPath);
|
|
68
|
+
function findFirstLeaf(menu) {
|
|
69
|
+
if (!menu.children || !menu.children.length) return menu;
|
|
70
|
+
return findFirstLeaf(menu.children[0]);
|
|
71
|
+
}
|
|
72
|
+
const currentItem = (_a2 = menuItems.value) == null ? void 0 : _a2.find((m) => m.index === index2);
|
|
73
|
+
if (currentItem == null ? void 0 : currentItem.children) {
|
|
74
|
+
const firstLeaf = findFirstLeaf(currentItem);
|
|
75
|
+
if (firstLeaf == null ? void 0 : firstLeaf.path) {
|
|
76
|
+
router.push(firstLeaf.path);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
65
79
|
};
|
|
66
80
|
const handleClose = (index2, indexPath) => {
|
|
67
81
|
emit("close", index2, indexPath);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const elementPlus = require("element-plus");
|
|
4
4
|
const core = require("../../utils/core");
|
|
5
|
-
const vueRouter = require("vue-router");
|
|
6
5
|
const _sfc_main = vue.defineComponent({
|
|
7
6
|
name: "ItemTitle",
|
|
8
7
|
components: { ElIcon: elementPlus.ElIcon, ElBadge: elementPlus.ElBadge },
|
|
@@ -26,25 +25,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
26
25
|
itemMouseleave: (_item, _e) => true
|
|
27
26
|
},
|
|
28
27
|
setup(_props, { emit }) {
|
|
29
|
-
const router = vueRouter.useRouter();
|
|
30
|
-
function findFirstLeafMenu(menu) {
|
|
31
|
-
if (!menu.children || menu.children.length === 0) {
|
|
32
|
-
return menu;
|
|
33
|
-
}
|
|
34
|
-
return findFirstLeafMenu(menu.children[0]);
|
|
35
|
-
}
|
|
36
28
|
const handleItemClick = (item, e) => {
|
|
37
|
-
var _a;
|
|
38
|
-
const isSubMenuOpen = ((_a = e.target) == null ? void 0 : _a.closest(".el-sub-menu.is-opened")) !== null;
|
|
39
|
-
if (item.children && item.children.length > 0 && !isSubMenuOpen) {
|
|
40
|
-
const firstLeaf = findFirstLeafMenu(item);
|
|
41
|
-
if (firstLeaf && firstLeaf.path) {
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
router.push(firstLeaf.path);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
29
|
emit("itemClick", item, e);
|
|
49
30
|
};
|
|
50
31
|
const handleItemMouseenter = (item, e) => {
|
package/lib/ele-menus/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ const EleTooltip = require("../ele-tooltip/index");
|
|
|
7
7
|
const MenuItems = require("./components/menu-items");
|
|
8
8
|
const util = require("./util");
|
|
9
9
|
const props = require("./props");
|
|
10
|
+
const vueRouter = require("vue-router");
|
|
10
11
|
const _sfc_main = vue.defineComponent({
|
|
11
12
|
name: "EleMenus",
|
|
12
13
|
components: { ElMenu: elementPlus.ElMenu, ElSubMenu: elementPlus.ElSubMenu, ElIcon: elementPlus.ElIcon, EleTooltip, MenuItems },
|
|
@@ -14,6 +15,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
15
|
emits: props.menusEmits,
|
|
15
16
|
setup(props$1, { emit }) {
|
|
16
17
|
var _a, _b;
|
|
18
|
+
const router = vueRouter.useRouter();
|
|
17
19
|
const isWebkit = (_b = (_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, "WebKit");
|
|
18
20
|
const menuRef = vue.ref(null);
|
|
19
21
|
const ellipsisRef = vue.ref(null);
|
|
@@ -62,7 +64,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
62
64
|
hideTooltip();
|
|
63
65
|
};
|
|
64
66
|
const handleOpen = (index2, indexPath) => {
|
|
67
|
+
var _a2;
|
|
65
68
|
emit("open", index2, indexPath);
|
|
69
|
+
function findFirstLeaf(menu) {
|
|
70
|
+
if (!menu.children || !menu.children.length) return menu;
|
|
71
|
+
return findFirstLeaf(menu.children[0]);
|
|
72
|
+
}
|
|
73
|
+
const currentItem = (_a2 = menuItems.value) == null ? void 0 : _a2.find((m) => m.index === index2);
|
|
74
|
+
if (currentItem == null ? void 0 : currentItem.children) {
|
|
75
|
+
const firstLeaf = findFirstLeaf(currentItem);
|
|
76
|
+
if (firstLeaf == null ? void 0 : firstLeaf.path) {
|
|
77
|
+
router.push(firstLeaf.path);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
66
80
|
};
|
|
67
81
|
const handleClose = (index2, indexPath) => {
|
|
68
82
|
emit("close", index2, indexPath);
|
package/lib/ele-menus/index.d.ts
CHANGED
|
@@ -38,9 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
38
|
collapseTransition: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
39
39
|
ellipsis: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
40
|
popperOffset: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
41
|
-
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
42
|
-
/** 文本溢出提示是否显示 */
|
|
43
|
-
... /** 文本溢出提示是否显示 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
41
|
+
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
44
42
|
popperEffect: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "dark", boolean>;
|
|
45
43
|
popperClass: StringConstructor;
|
|
46
44
|
showTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
@@ -112,9 +110,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
112
110
|
collapseTransition: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
111
|
ellipsis: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
114
112
|
popperOffset: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
115
|
-
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
116
|
-
/** 文本溢出提示是否显示 */
|
|
117
|
-
... /** 文本溢出提示是否显示 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
113
|
+
ellipsisIcon: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
118
114
|
popperEffect: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "dark", boolean>;
|
|
119
115
|
popperClass: StringConstructor;
|
|
120
116
|
showTimeout: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
@@ -151,9 +147,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
151
147
|
ElMenu: import('element-plus/es/utils/index').SFCWithInstall<import('vue').DefineComponent<{
|
|
152
148
|
readonly mode: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
153
149
|
readonly defaultActive: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
154
|
-
readonly defaultOpeneds: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (
|
|
155
|
-
/** 菜单项选中事件 */
|
|
156
|
-
... /** 菜单项选中事件 */args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
150
|
+
readonly defaultOpeneds: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
157
151
|
readonly uniqueOpened: BooleanConstructor;
|
|
158
152
|
readonly router: BooleanConstructor;
|
|
159
153
|
readonly menuTrigger: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "click" | "hover", unknown, "hover", boolean>;
|
|
@@ -234,17 +228,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
234
228
|
namespace: import('vue').ComputedRef<string>;
|
|
235
229
|
b: (blockSuffix?: string) => string;
|
|
236
230
|
e: (element?: string | undefined) => string;
|
|
237
|
-
m: (modifier? /**
|
|
238
|
-
be: (blockSuffix
|
|
239
|
-
/** 菜单数据
|
|
240
|
-
?: string | undefined,
|
|
241
|
-
|
|
242
|
-
/** 省略的菜单数据 */
|
|
243
|
-
? /** 省略的菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
244
|
-
bm: (blockSuffix
|
|
245
|
-
/** 文本溢出提示单例目标 */
|
|
246
|
-
?: string | undefined, modifier?: string | undefined) => string;
|
|
247
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
231
|
+
m: (modifier? /** 省略菜单子组件 */: string | undefined) => string;
|
|
232
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
233
|
+
em: (element? /** 菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
234
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
235
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier? /** 文本溢出提示文本 */: string | undefined) => string;
|
|
248
236
|
is: {
|
|
249
237
|
(name: string, state: boolean | undefined): string;
|
|
250
238
|
(name: string): string;
|
|
@@ -261,9 +249,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
261
249
|
m: (modifier?: string | undefined) => string;
|
|
262
250
|
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
263
251
|
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
264
|
-
bm: (blockSuffix?: string | undefined, modifier
|
|
265
|
-
/** 关闭文本溢出提示 */
|
|
266
|
-
?: string | undefined) => string;
|
|
252
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
267
253
|
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
268
254
|
is: {
|
|
269
255
|
(name: string, state: boolean | undefined): string;
|
|
@@ -290,7 +276,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
290
276
|
onClick?: ((item: import('element-plus').MenuItemRegistered) => any) | undefined;
|
|
291
277
|
}, {
|
|
292
278
|
readonly disabled: boolean;
|
|
293
|
-
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
279
|
+
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
280
|
+
/** 子菜单项点击事件 */
|
|
281
|
+
... /** 子菜单项点击事件 */args: any[]) => string & {}) | (() => string | null))[], unknown, unknown>;
|
|
294
282
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
295
283
|
MenuItemGroup: import('vue').DefineComponent<{
|
|
296
284
|
readonly title: StringConstructor;
|
|
@@ -330,7 +318,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
330
318
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
331
319
|
readonly popperOffset: NumberConstructor;
|
|
332
320
|
readonly expandCloseIcon: {
|
|
333
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
321
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
334
322
|
readonly required: false;
|
|
335
323
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
336
324
|
__epPropKey: true;
|
|
@@ -411,7 +399,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
411
399
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
412
400
|
readonly popperOffset: NumberConstructor;
|
|
413
401
|
readonly expandCloseIcon: {
|
|
414
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
402
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
415
403
|
readonly required: false;
|
|
416
404
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
417
405
|
__epPropKey: true;
|
|
@@ -480,7 +468,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
480
468
|
ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
|
|
481
469
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
482
470
|
readonly size: {
|
|
483
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
471
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
484
472
|
readonly required: false;
|
|
485
473
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
486
474
|
__epPropKey: true;
|
|
@@ -500,7 +488,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
500
488
|
Defaults: {};
|
|
501
489
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
502
490
|
readonly size: {
|
|
503
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
491
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
504
492
|
readonly required: false;
|
|
505
493
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
506
494
|
__epPropKey: true;
|
|
@@ -517,7 +505,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
517
505
|
__isSuspense?: never;
|
|
518
506
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
519
507
|
readonly size: {
|
|
520
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
508
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
521
509
|
readonly required: false;
|
|
522
510
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
523
511
|
__epPropKey: true;
|
|
@@ -553,12 +541,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
553
541
|
__epPropKey: true;
|
|
554
542
|
};
|
|
555
543
|
zIndex: NumberConstructor;
|
|
556
|
-
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...
|
|
557
|
-
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...
|
|
544
|
+
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
545
|
+
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
558
546
|
popperOptions: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>) | ((new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>))[], unknown, unknown, () => {}, boolean>;
|
|
559
|
-
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
560
|
-
/** 文本溢出提示单例目标 */
|
|
561
|
-
... /** 文本溢出提示单例目标 */args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
547
|
+
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
562
548
|
transition: StringConstructor;
|
|
563
549
|
content: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
564
550
|
enterable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -616,12 +602,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
616
602
|
__epPropKey: true;
|
|
617
603
|
};
|
|
618
604
|
zIndex: NumberConstructor;
|
|
619
|
-
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...
|
|
620
|
-
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...
|
|
605
|
+
visible: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
606
|
+
trigger: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
621
607
|
popperOptions: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>) | ((new (...args: any[]) => Partial<import('element-plus/es/components/popper/index').Options>) | (() => Partial<import('element-plus/es/components/popper/index').Options>))[], unknown, unknown, () => {}, boolean>;
|
|
622
|
-
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (
|
|
623
|
-
/** 文本溢出提示单例目标 */
|
|
624
|
-
... /** 文本溢出提示单例目标 */args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
608
|
+
triggerKeys: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
625
609
|
transition: StringConstructor;
|
|
626
610
|
content: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
627
611
|
enterable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -2034,17 +2018,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2034
2018
|
namespace: import('vue').ComputedRef<string>;
|
|
2035
2019
|
b: (blockSuffix?: string) => string;
|
|
2036
2020
|
e: (element?: string | undefined) => string;
|
|
2037
|
-
m: (modifier? /**
|
|
2038
|
-
be: (blockSuffix
|
|
2039
|
-
/** 菜单数据
|
|
2040
|
-
?: string | undefined,
|
|
2041
|
-
|
|
2042
|
-
/** 省略的菜单数据 */
|
|
2043
|
-
? /** 省略的菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
2044
|
-
bm: (blockSuffix
|
|
2045
|
-
/** 文本溢出提示单例目标 */
|
|
2046
|
-
?: string | undefined, modifier?: string | undefined) => string;
|
|
2047
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
2021
|
+
m: (modifier? /** 省略菜单子组件 */: string | undefined) => string;
|
|
2022
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
2023
|
+
em: (element? /** 菜单数据 */: string | undefined, modifier?: string | undefined) => string;
|
|
2024
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
2025
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier? /** 文本溢出提示文本 */: string | undefined) => string;
|
|
2048
2026
|
is: {
|
|
2049
2027
|
(name: string, state: boolean | undefined): string;
|
|
2050
2028
|
(name: string): string;
|
|
@@ -2061,9 +2039,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2061
2039
|
m: (modifier?: string | undefined) => string;
|
|
2062
2040
|
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
2063
2041
|
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
2064
|
-
bm: (blockSuffix?: string | undefined, modifier
|
|
2065
|
-
/** 关闭文本溢出提示 */
|
|
2066
|
-
?: string | undefined) => string;
|
|
2042
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
2067
2043
|
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
2068
2044
|
is: {
|
|
2069
2045
|
(name: string, state: boolean | undefined): string;
|
|
@@ -2090,7 +2066,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2090
2066
|
onClick?: ((item: import('element-plus').MenuItemRegistered) => any) | undefined;
|
|
2091
2067
|
}, {
|
|
2092
2068
|
readonly disabled: boolean;
|
|
2093
|
-
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
2069
|
+
readonly index: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (
|
|
2070
|
+
/** 子菜单项点击事件 */
|
|
2071
|
+
... /** 子菜单项点击事件 */args: any[]) => string & {}) | (() => string | null))[], unknown, unknown>;
|
|
2094
2072
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
2095
2073
|
ElSubMenu: import('element-plus/es/utils/index').SFCWithInstall<import('vue').DefineComponent<{
|
|
2096
2074
|
readonly index: {
|
|
@@ -2106,7 +2084,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2106
2084
|
readonly teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
2107
2085
|
readonly popperOffset: NumberConstructor;
|
|
2108
2086
|
readonly expandCloseIcon: {
|
|
2109
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
2087
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 子菜单项鼠标离开事件 */args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
2110
2088
|
readonly required: false;
|
|
2111
2089
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2112
2090
|
__epPropKey: true;
|
|
@@ -2236,7 +2214,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2236
2214
|
ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
|
|
2237
2215
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
2238
2216
|
readonly size: {
|
|
2239
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2217
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2240
2218
|
readonly required: false;
|
|
2241
2219
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2242
2220
|
__epPropKey: true;
|
|
@@ -2256,7 +2234,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2256
2234
|
Defaults: {};
|
|
2257
2235
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
2258
2236
|
readonly size: {
|
|
2259
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2237
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2260
2238
|
readonly required: false;
|
|
2261
2239
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2262
2240
|
__epPropKey: true;
|
|
@@ -2273,7 +2251,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2273
2251
|
__isSuspense?: never;
|
|
2274
2252
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
2275
2253
|
readonly size: {
|
|
2276
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...
|
|
2254
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (... /** 菜单组件 */args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
2277
2255
|
readonly required: false;
|
|
2278
2256
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2279
2257
|
__epPropKey: true;
|