ele-admin-plus 1.1.9-beta.10 → 1.1.9-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ele-alert/index.js +2 -2
- package/es/ele-basic-select/index.d.ts +1 -1
- package/es/ele-basic-select/index.js +7 -1
- package/es/ele-config-provider/types.d.ts +3 -1
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-drawer/index.d.ts +8 -5
- package/es/ele-drawer/index.js +107 -113
- package/es/ele-drawer/style/index.scss +48 -105
- package/es/ele-edit-tag/index.js +1 -1
- package/es/ele-file-list/components/file-grid-item.js +1 -1
- package/es/ele-file-list/components/file-table-item.js +1 -1
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-loading/index.d.ts +0 -4
- package/es/ele-loading/index.js +10 -16
- package/es/ele-map-picker/components/map-view.js +1 -1
- package/es/ele-map-picker/index.js +1 -1
- package/es/ele-menus/index.d.ts +4 -6
- package/es/ele-menus/index.js +1 -1
- package/es/ele-menus/props.d.ts +1 -3
- package/es/ele-menus/props.js +1 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-modal/index.d.ts +12 -6
- package/es/ele-modal/index.js +163 -184
- package/es/ele-modal/props.d.ts +2 -0
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +85 -146
- package/es/ele-modal/util.d.ts +18 -44
- package/es/ele-modal/util.js +53 -179
- package/es/ele-pagination/index.d.ts +9 -0
- package/es/ele-pagination/index.js +4 -1
- package/es/ele-pagination/props.d.ts +5 -0
- package/es/ele-pagination/props.js +5 -0
- package/es/ele-popconfirm/index.d.ts +3 -3
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popover/index.d.ts +2 -2
- package/es/ele-popover/index.js +6 -14
- package/es/ele-pro-layout/components/pro-header.d.ts +66 -11
- package/es/ele-pro-layout/components/pro-header.js +110 -20
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +2 -7
- package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +2 -7
- package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
- package/es/ele-pro-layout/index.d.ts +25 -27
- package/es/ele-pro-layout/index.js +45 -29
- package/es/ele-pro-layout/props.d.ts +3 -6
- package/es/ele-pro-layout/props.js +2 -4
- package/es/ele-pro-layout/style/css-var.scss +3 -18
- package/es/ele-pro-layout/style/header.scss +74 -9
- package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/es/ele-pro-layout/style/layout-style.scss +8 -3
- package/es/ele-pro-layout/style/layout-theme.scss +48 -23
- package/es/ele-pro-layout/style/layout.scss +23 -3
- package/es/ele-pro-layout/style/sidebar.scss +0 -1
- package/es/ele-pro-layout/style/tabs.scss +19 -11
- package/es/ele-pro-layout/types.d.ts +1 -1
- package/es/ele-pro-table/components/tool-print.js +0 -3
- package/es/ele-pro-table/index.d.ts +3 -5
- package/es/ele-pro-table/index.js +2 -1
- package/es/ele-pro-table/util.d.ts +1 -1
- package/es/ele-tab-wrap/index.js +2 -1
- package/es/ele-table-select/index.d.ts +13 -12
- package/es/ele-table-select/index.js +27 -26
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-tabs/style/css-var.scss +1 -30
- package/es/ele-tabs/style/index.scss +372 -241
- package/es/ele-tabs/types.d.ts +2 -1
- package/es/ele-tooltip/index.js +3 -0
- package/es/ele-tooltip/props.d.ts +5 -0
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-virtual-table/style/index.scss +1 -1
- package/es/icons/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +50 -48
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +56 -80
- package/es/style/themes/rounded.scss +16 -30
- package/lib/ele-alert/index.cjs +2 -2
- package/lib/ele-basic-select/index.cjs +7 -1
- package/lib/ele-basic-select/index.d.ts +1 -1
- package/lib/ele-config-provider/types.d.ts +3 -1
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-drawer/index.cjs +105 -111
- package/lib/ele-drawer/index.d.ts +8 -5
- package/lib/ele-drawer/style/index.scss +48 -105
- package/lib/ele-edit-tag/index.cjs +1 -1
- package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
- package/lib/ele-file-list/components/file-table-item.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-loading/index.cjs +9 -15
- package/lib/ele-loading/index.d.ts +0 -4
- package/lib/ele-map-picker/components/map-view.cjs +1 -1
- package/lib/ele-map-picker/index.cjs +1 -1
- package/lib/ele-menus/index.cjs +1 -1
- package/lib/ele-menus/index.d.ts +4 -6
- package/lib/ele-menus/props.cjs +1 -3
- package/lib/ele-menus/props.d.ts +1 -3
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-modal/index.cjs +176 -197
- package/lib/ele-modal/index.d.ts +12 -6
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +2 -0
- package/lib/ele-modal/style/index.scss +85 -146
- package/lib/ele-modal/util.cjs +53 -179
- package/lib/ele-modal/util.d.ts +18 -44
- package/lib/ele-pagination/index.cjs +4 -1
- package/lib/ele-pagination/index.d.ts +9 -0
- package/lib/ele-pagination/props.cjs +5 -0
- package/lib/ele-pagination/props.d.ts +5 -0
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +3 -3
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +2 -2
- package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
- package/lib/ele-pro-layout/components/pro-header.d.ts +66 -11
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +2 -7
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +2 -7
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
- package/lib/ele-pro-layout/index.cjs +45 -29
- package/lib/ele-pro-layout/index.d.ts +25 -27
- package/lib/ele-pro-layout/props.cjs +2 -4
- package/lib/ele-pro-layout/props.d.ts +3 -6
- package/lib/ele-pro-layout/style/css-var.scss +3 -18
- package/lib/ele-pro-layout/style/header.scss +74 -9
- package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/lib/ele-pro-layout/style/layout-style.scss +8 -3
- package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
- package/lib/ele-pro-layout/style/layout.scss +23 -3
- package/lib/ele-pro-layout/style/sidebar.scss +0 -1
- package/lib/ele-pro-layout/style/tabs.scss +19 -11
- package/lib/ele-pro-layout/types.d.ts +1 -1
- package/lib/ele-pro-table/components/tool-print.cjs +0 -3
- package/lib/ele-pro-table/index.cjs +2 -1
- package/lib/ele-pro-table/index.d.ts +3 -5
- package/lib/ele-pro-table/util.d.ts +1 -1
- package/lib/ele-tab-wrap/index.cjs +2 -1
- package/lib/ele-table-select/index.cjs +27 -26
- package/lib/ele-table-select/index.d.ts +13 -12
- package/lib/ele-tabs/index.cjs +1 -0
- package/lib/ele-tabs/style/css-var.scss +1 -30
- package/lib/ele-tabs/style/index.scss +372 -241
- package/lib/ele-tabs/types.d.ts +2 -1
- package/lib/ele-tooltip/index.cjs +3 -0
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +5 -0
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/icons/ResizeOutlined.cjs +29 -0
- package/lib/icons/ResizeOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +56 -80
- package/lib/style/themes/rounded.scss +16 -30
- package/package.json +9 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MenuItem, LevelItem, HeaderStyle, MenuItemTrigger, MenuItemProps } from '../types';
|
|
2
|
-
import {
|
|
1
|
+
import { MenuItem, LevelItem, HeaderStyle, MenuItemTrigger, MenuItemProps, TabStyle, TabItem, TabItemEventOption } from '../types';
|
|
2
|
+
import { ContextMenus } from '../../ele-tabs/types';
|
|
3
|
+
import { EleDropdownProps } from '../../ele-app/plus';
|
|
3
4
|
import { BreadcrumbItem } from '../../ele-breadcrumb/types';
|
|
4
5
|
import { PropType } from 'vue';
|
|
5
6
|
|
|
@@ -16,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
17
|
/** 菜单是否省略多余的子项 */
|
|
17
18
|
ellipsis: BooleanConstructor;
|
|
18
19
|
/** 菜单省略项的属性 */
|
|
19
|
-
ellipsisProps: PropType<EllipsisProps>;
|
|
20
|
+
ellipsisProps: PropType<import("../../ele-menus/types").EllipsisProps | undefined>;
|
|
20
21
|
/** 父级菜单展开触发方式 */
|
|
21
22
|
menuTrigger: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
22
23
|
/** 子菜单项触发模式 */
|
|
@@ -43,15 +44,36 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
44
|
/** 当前路由是否是主页 */
|
|
44
45
|
isHome: BooleanConstructor;
|
|
45
46
|
/** 是否开启菜单文本溢出提示 */
|
|
46
|
-
menuTextEllipsisTooltip:
|
|
47
|
-
/**
|
|
48
|
-
|
|
47
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
48
|
+
/** 页签数据 */
|
|
49
|
+
tabs: {
|
|
50
|
+
type: PropType<TabItem[]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
/** 页签选中 */
|
|
54
|
+
tabActive: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
/** 是否需要固定的主页页签 */
|
|
59
|
+
fixedHome: BooleanConstructor;
|
|
60
|
+
/** 页签风格 */
|
|
61
|
+
tabStyle: PropType<TabStyle>;
|
|
62
|
+
/** 是否支持右键菜单 */
|
|
63
|
+
tabContextMenu: PropType<boolean | EleDropdownProps>;
|
|
64
|
+
/** 右键菜单 */
|
|
65
|
+
tabContextMenus: PropType<ContextMenus>;
|
|
66
|
+
/** 是否支持拖动排序 */
|
|
67
|
+
tabSortable: BooleanConstructor;
|
|
68
|
+
/** 是否需要页签栏 */
|
|
69
|
+
tabBar: PropType<boolean | "header">;
|
|
49
70
|
}, {
|
|
50
71
|
levelItems: import("vue").ShallowRef<BreadcrumbItem[]>;
|
|
51
72
|
menuItems: import("vue").ComputedRef<Partial<import("../../ele-menus/types").MenuItem>[]>;
|
|
52
73
|
isDark: import("vue").ComputedRef<boolean>;
|
|
53
74
|
isPrimary: import("vue").ComputedRef<boolean>;
|
|
54
75
|
isIconSeparator: import("vue").ComputedRef<boolean>;
|
|
76
|
+
hasTab: import("vue").ComputedRef<boolean>;
|
|
55
77
|
onLogoClick: () => void;
|
|
56
78
|
onOpen: (index: string, indexPath: string[]) => void;
|
|
57
79
|
onClose: (index: string, indexPath: string[]) => void;
|
|
@@ -60,6 +82,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
60
82
|
onItemMouseleave: (item: MenuItemProps, e: MouseEvent) => void;
|
|
61
83
|
onMouseenter: (e: MouseEvent) => void;
|
|
62
84
|
onMouseleave: (e: MouseEvent) => void;
|
|
85
|
+
onTabClick: (opt: TabItemEventOption) => void;
|
|
86
|
+
onTabRemove: (opt: TabItemEventOption) => void;
|
|
87
|
+
onTabContextMenu: (opt: TabItemEventOption) => void;
|
|
88
|
+
onTabSortChange: (data: TabItem[]) => void;
|
|
63
89
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
90
|
logoClick: () => true;
|
|
65
91
|
open: (_index: string, _indexPath: string[]) => true;
|
|
@@ -69,6 +95,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
69
95
|
itemMouseleave: (_item: MenuItemProps, _e: MouseEvent) => true;
|
|
70
96
|
mouseEnter: (_e: MouseEvent) => true;
|
|
71
97
|
mouseLeave: (_e: MouseEvent) => true;
|
|
98
|
+
tabClick: (_opt: TabItemEventOption) => true;
|
|
99
|
+
tabRemove: (_opt: TabItemEventOption) => true;
|
|
100
|
+
tabContextMenu: (_opt: TabItemEventOption) => true;
|
|
101
|
+
tabSortChange: (_data: TabItem[]) => true;
|
|
72
102
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
103
|
/** 菜单数据 */
|
|
74
104
|
menus: {
|
|
@@ -82,7 +112,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
82
112
|
/** 菜单是否省略多余的子项 */
|
|
83
113
|
ellipsis: BooleanConstructor;
|
|
84
114
|
/** 菜单省略项的属性 */
|
|
85
|
-
ellipsisProps: PropType<EllipsisProps>;
|
|
115
|
+
ellipsisProps: PropType<import("../../ele-menus/types").EllipsisProps | undefined>;
|
|
86
116
|
/** 父级菜单展开触发方式 */
|
|
87
117
|
menuTrigger: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
88
118
|
/** 子菜单项触发模式 */
|
|
@@ -109,13 +139,37 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
109
139
|
/** 当前路由是否是主页 */
|
|
110
140
|
isHome: BooleanConstructor;
|
|
111
141
|
/** 是否开启菜单文本溢出提示 */
|
|
112
|
-
menuTextEllipsisTooltip:
|
|
113
|
-
/**
|
|
114
|
-
|
|
142
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
143
|
+
/** 页签数据 */
|
|
144
|
+
tabs: {
|
|
145
|
+
type: PropType<TabItem[]>;
|
|
146
|
+
required: true;
|
|
147
|
+
};
|
|
148
|
+
/** 页签选中 */
|
|
149
|
+
tabActive: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
required: true;
|
|
152
|
+
};
|
|
153
|
+
/** 是否需要固定的主页页签 */
|
|
154
|
+
fixedHome: BooleanConstructor;
|
|
155
|
+
/** 页签风格 */
|
|
156
|
+
tabStyle: PropType<TabStyle>;
|
|
157
|
+
/** 是否支持右键菜单 */
|
|
158
|
+
tabContextMenu: PropType<boolean | EleDropdownProps>;
|
|
159
|
+
/** 右键菜单 */
|
|
160
|
+
tabContextMenus: PropType<ContextMenus>;
|
|
161
|
+
/** 是否支持拖动排序 */
|
|
162
|
+
tabSortable: BooleanConstructor;
|
|
163
|
+
/** 是否需要页签栏 */
|
|
164
|
+
tabBar: PropType<boolean | "header">;
|
|
115
165
|
}>> & {
|
|
116
166
|
onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
117
167
|
onClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
168
|
+
onTabClick?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
169
|
+
onTabRemove?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
118
170
|
onItemClick?: ((_item: Partial<import("../../ele-menus/types").MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
171
|
+
onTabContextMenu?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
172
|
+
onTabSortChange?: ((_data: TabItem[]) => any) | undefined;
|
|
119
173
|
onItemMouseenter?: ((_item: Partial<import("../../ele-menus/types").MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
120
174
|
onItemMouseleave?: ((_item: Partial<import("../../ele-menus/types").MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
121
175
|
onLogoClick?: (() => any) | undefined;
|
|
@@ -126,7 +180,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
126
180
|
ellipsis: boolean;
|
|
127
181
|
breadcrumb: boolean;
|
|
128
182
|
sidebar: boolean;
|
|
129
|
-
|
|
183
|
+
fixedHome: boolean;
|
|
184
|
+
tabSortable: boolean;
|
|
130
185
|
isHome: boolean;
|
|
131
186
|
}, {}>;
|
|
132
187
|
export default _default;
|
|
@@ -33,9 +33,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
33
|
/** 菜单图标插槽名称 */
|
|
34
34
|
iconSlot: String,
|
|
35
35
|
/** 是否开启菜单文本溢出提示 */
|
|
36
|
-
menuTextEllipsisTooltip: Boolean,
|
|
37
|
-
/** 菜单文本溢出提示属性 */
|
|
38
|
-
menuTextEllipsisTooltipProps: Object
|
|
36
|
+
menuTextEllipsisTooltip: [Boolean, Object]
|
|
39
37
|
},
|
|
40
38
|
emits: {
|
|
41
39
|
open: (_index, _indexPath) => true,
|
|
@@ -120,7 +118,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
120
118
|
popperEffect: _ctx.popperEffect,
|
|
121
119
|
collapseTransition: false,
|
|
122
120
|
textEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
123
|
-
textEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
124
121
|
onOpen: _ctx.onOpen,
|
|
125
122
|
onClose: _ctx.onClose,
|
|
126
123
|
onItemClick: _ctx.onItemClick
|
|
@@ -139,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
136
|
]),
|
|
140
137
|
key: "1"
|
|
141
138
|
} : void 0
|
|
142
|
-
]), 1032, ["items", "theme", "colorful", "collapse", "defaultActive", "defaultOpeneds", "uniqueOpened", "popperEffect", "textEllipsisTooltip", "
|
|
139
|
+
]), 1032, ["items", "theme", "colorful", "collapse", "defaultActive", "defaultOpeneds", "uniqueOpened", "popperEffect", "textEllipsisTooltip", "onOpen", "onClose", "onItemClick"])) : vue.createCommentVNode("", true)
|
|
143
140
|
]),
|
|
144
141
|
_: 3
|
|
145
142
|
}, 512),
|
|
@@ -29,9 +29,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
29
29
|
/** 菜单图标插槽名称 */
|
|
30
30
|
iconSlot: StringConstructor;
|
|
31
31
|
/** 是否开启菜单文本溢出提示 */
|
|
32
|
-
menuTextEllipsisTooltip:
|
|
33
|
-
/** 菜单文本溢出提示属性 */
|
|
34
|
-
menuTextEllipsisTooltipProps: PropType<Partial<import("../../ele-tooltip/props").TooltipProps>>;
|
|
32
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
35
33
|
}, {
|
|
36
34
|
menusRef: import("vue").Ref<ElScrollbarInstance>;
|
|
37
35
|
menuItems: import("vue").ComputedRef<Partial<import("../../ele-menus/types").MenuItem>[]>;
|
|
@@ -73,9 +71,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
73
71
|
/** 菜单图标插槽名称 */
|
|
74
72
|
iconSlot: StringConstructor;
|
|
75
73
|
/** 是否开启菜单文本溢出提示 */
|
|
76
|
-
menuTextEllipsisTooltip:
|
|
77
|
-
/** 菜单文本溢出提示属性 */
|
|
78
|
-
menuTextEllipsisTooltipProps: PropType<Partial<import("../../ele-tooltip/props").TooltipProps>>;
|
|
74
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
79
75
|
}>> & {
|
|
80
76
|
onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
81
77
|
onClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
@@ -86,6 +82,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
86
82
|
uniqueOpened: boolean;
|
|
87
83
|
collapse: boolean;
|
|
88
84
|
colorfulIcon: boolean;
|
|
89
|
-
menuTextEllipsisTooltip: boolean;
|
|
90
85
|
}, {}>;
|
|
91
86
|
export default _default;
|
|
@@ -31,9 +31,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
31
31
|
/** 菜单图标插槽名称 */
|
|
32
32
|
iconSlot: String,
|
|
33
33
|
/** 是否开启菜单文本溢出提示 */
|
|
34
|
-
menuTextEllipsisTooltip: Boolean,
|
|
35
|
-
/** 菜单文本溢出提示属性 */
|
|
36
|
-
menuTextEllipsisTooltipProps: Object
|
|
34
|
+
menuTextEllipsisTooltip: [Boolean, Object]
|
|
37
35
|
},
|
|
38
36
|
emits: {
|
|
39
37
|
itemClick: (_item, _e) => true,
|
|
@@ -121,7 +119,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121
119
|
firstPopperClass: "ele-admin-sidebox-popup",
|
|
122
120
|
tooltipDisabled: !_ctx.compact,
|
|
123
121
|
textEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
124
|
-
textEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
125
122
|
onItemClick: _ctx.onItemClick,
|
|
126
123
|
onItemMouseenter: _ctx.onItemMouseenter,
|
|
127
124
|
onItemMouseleave: _ctx.onItemMouseleave
|
|
@@ -140,7 +137,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
137
|
]),
|
|
141
138
|
key: "1"
|
|
142
139
|
} : void 0
|
|
143
|
-
]), 1032, ["items", "theme", "popupColorful", "collapse", "defaultActive", "popperEffect", "tooltipDisabled", "textEllipsisTooltip", "
|
|
140
|
+
]), 1032, ["items", "theme", "popupColorful", "collapse", "defaultActive", "popperEffect", "tooltipDisabled", "textEllipsisTooltip", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : vue.createCommentVNode("", true)
|
|
144
141
|
]),
|
|
145
142
|
_: 3
|
|
146
143
|
}, 512),
|
|
@@ -27,9 +27,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
/** 菜单图标插槽名称 */
|
|
28
28
|
iconSlot: StringConstructor;
|
|
29
29
|
/** 是否开启菜单文本溢出提示 */
|
|
30
|
-
menuTextEllipsisTooltip:
|
|
31
|
-
/** 菜单文本溢出提示属性 */
|
|
32
|
-
menuTextEllipsisTooltipProps: PropType<Partial<import("../../ele-tooltip/props").TooltipProps>>;
|
|
30
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
33
31
|
}, {
|
|
34
32
|
menusRef: import("vue").Ref<ElScrollbarInstance>;
|
|
35
33
|
menuItems: import("vue").ComputedRef<Partial<import("../../ele-menus/types").MenuItem>[]>;
|
|
@@ -69,9 +67,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
69
67
|
/** 菜单图标插槽名称 */
|
|
70
68
|
iconSlot: StringConstructor;
|
|
71
69
|
/** 是否开启菜单文本溢出提示 */
|
|
72
|
-
menuTextEllipsisTooltip:
|
|
73
|
-
/** 菜单文本溢出提示属性 */
|
|
74
|
-
menuTextEllipsisTooltipProps: PropType<Partial<import("../../ele-tooltip/props").TooltipProps>>;
|
|
70
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import("../../ele-tooltip/props").TooltipProps> | undefined>;
|
|
75
71
|
}>> & {
|
|
76
72
|
onItemClick?: ((_item: Partial<import("../../ele-menus/types").MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
77
73
|
onItemMouseenter?: ((_item: Partial<import("../../ele-menus/types").MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
@@ -82,6 +78,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
82
78
|
collapse: boolean;
|
|
83
79
|
compact: boolean;
|
|
84
80
|
colorfulIcon: boolean;
|
|
85
|
-
menuTextEllipsisTooltip: boolean;
|
|
86
81
|
}, {}>;
|
|
87
82
|
export default _default;
|
|
@@ -69,7 +69,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
popperOptions: {
|
|
70
70
|
modifiers: [{ name: "offset", options: { offset: [12, 8] } }]
|
|
71
71
|
}
|
|
72
|
-
}, _ctx.dropdownProps, {
|
|
72
|
+
}, _ctx.dropdownProps || {}, {
|
|
73
73
|
ref: "dropdownRef",
|
|
74
74
|
items: _ctx.items,
|
|
75
75
|
onCommand: _ctx.onCommand
|
|
@@ -36,6 +36,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
36
36
|
isHover: false
|
|
37
37
|
};
|
|
38
38
|
const contentRef = vue.ref(null);
|
|
39
|
+
const modalsRef = vue.ref(null);
|
|
39
40
|
const levelData = vue.shallowRef([]);
|
|
40
41
|
const tabData = vue.shallowRef([]);
|
|
41
42
|
const tabActive = vue.ref(util.getHomePath(props2.homePath));
|
|
@@ -93,7 +94,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
93
94
|
// 图标置于顶栏
|
|
94
95
|
{ "ele-admin-logo-auto": logoAuto && !mobile.value },
|
|
95
96
|
// 开启页签栏
|
|
96
|
-
{ "ele-admin-open-tab": props2.tabBar },
|
|
97
|
+
{ "ele-admin-open-tab": props2.tabBar && props2.tabBar !== "header" },
|
|
97
98
|
// 卡片风格页签
|
|
98
99
|
{ "ele-admin-tab-card": props2.tabStyle === "button" },
|
|
99
100
|
// 主体定宽
|
|
@@ -111,7 +112,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
111
112
|
return props2.backTopTarget;
|
|
112
113
|
}
|
|
113
114
|
if (props2.fixedBody) {
|
|
114
|
-
return ".ele-admin-layout.ele-admin-fixed-body>.ele-admin-main>.ele-admin-body>.ele-admin-content";
|
|
115
|
+
return ".ele-admin-layout.ele-admin-fixed-body>.ele-admin-main>.ele-admin-body>.ele-admin-wrapper>.ele-admin-content";
|
|
115
116
|
}
|
|
116
117
|
return "body";
|
|
117
118
|
});
|
|
@@ -738,13 +739,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
738
739
|
tabBar: props2.tabBar,
|
|
739
740
|
sidebar: sidebar.value,
|
|
740
741
|
keepAlive: props2.tabBar && props2.keepAlive,
|
|
741
|
-
responsive: props2.responsive
|
|
742
|
+
responsive: props2.responsive,
|
|
743
|
+
modalsEl: modalsRef.value
|
|
742
744
|
};
|
|
743
745
|
return state2;
|
|
744
746
|
});
|
|
745
747
|
vue.provide(receiver.LAYOUT_KEY, layoutProvide);
|
|
746
748
|
return {
|
|
747
749
|
contentRef,
|
|
750
|
+
modalsRef,
|
|
748
751
|
levelData,
|
|
749
752
|
tabData,
|
|
750
753
|
tabActive,
|
|
@@ -795,18 +798,23 @@ const _export_sfc = (sfc, props2) => {
|
|
|
795
798
|
return target;
|
|
796
799
|
};
|
|
797
800
|
const _hoisted_1 = { class: "ele-admin-body" };
|
|
798
|
-
const _hoisted_2 = {
|
|
801
|
+
const _hoisted_2 = { class: "ele-admin-wrapper" };
|
|
802
|
+
const _hoisted_3 = {
|
|
799
803
|
ref: "contentRef",
|
|
800
804
|
class: "ele-admin-content"
|
|
801
805
|
};
|
|
806
|
+
const _hoisted_4 = {
|
|
807
|
+
ref: "modalsRef",
|
|
808
|
+
class: "ele-admin-modals"
|
|
809
|
+
};
|
|
802
810
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
803
811
|
const _component_ProHeader = vue.resolveComponent("ProHeader");
|
|
804
812
|
const _component_ProSidebox = vue.resolveComponent("ProSidebox");
|
|
805
813
|
const _component_ProSidebar = vue.resolveComponent("ProSidebar");
|
|
806
814
|
const _component_ProTabs = vue.resolveComponent("ProTabs");
|
|
807
815
|
const _component_ProIframe = vue.resolveComponent("ProIframe");
|
|
808
|
-
const _component_ReceiverView = vue.resolveComponent("ReceiverView");
|
|
809
816
|
const _component_ElBacktop = vue.resolveComponent("ElBacktop");
|
|
817
|
+
const _component_ReceiverView = vue.resolveComponent("ReceiverView");
|
|
810
818
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
811
819
|
class: vue.normalizeClass(_ctx.layoutClass)
|
|
812
820
|
}, [
|
|
@@ -828,14 +836,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
828
836
|
homePath: _ctx.homeMenuPath,
|
|
829
837
|
isHome: _ctx.isHome,
|
|
830
838
|
menuTextEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
831
|
-
|
|
839
|
+
tabs: _ctx.tabData,
|
|
840
|
+
tabActive: _ctx.tabActive,
|
|
841
|
+
fixedHome: _ctx.fixedHome,
|
|
842
|
+
tabStyle: _ctx.tabStyle,
|
|
843
|
+
tabContextMenu: _ctx.tabContextMenu,
|
|
844
|
+
tabContextMenus: _ctx.tabContextMenus,
|
|
845
|
+
tabSortable: _ctx.tabSortable,
|
|
846
|
+
tabBar: _ctx.tabBar,
|
|
832
847
|
onLogoClick: _ctx.onLogoClick,
|
|
833
848
|
onOpen: _ctx.onHeadMenuOpen,
|
|
834
849
|
onClsoe: _ctx.onHeadMenuClose,
|
|
835
850
|
onItemClick: _ctx.onNavItemClick,
|
|
836
851
|
onItemMouseenter: _ctx.onNavItemMouseenter,
|
|
837
852
|
onMouseEnter: _ctx.onNavMouseEnter,
|
|
838
|
-
onMouseLeave: _ctx.onNavMouseLeave
|
|
853
|
+
onMouseLeave: _ctx.onNavMouseLeave,
|
|
854
|
+
onTabClick: _ctx.onTabClick,
|
|
855
|
+
onTabRemove: _ctx.onTabRemove,
|
|
856
|
+
onTabContextMenu: _ctx.onTabContextMenu,
|
|
857
|
+
onTabSortChange: _ctx.onTabSortChange
|
|
839
858
|
}, vue.createSlots({ _: 2 }, [
|
|
840
859
|
vue.renderList(Object.keys(_ctx.$slots).filter(
|
|
841
860
|
(k) => ![
|
|
@@ -844,11 +863,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
844
863
|
"bottom",
|
|
845
864
|
"boxTop",
|
|
846
865
|
"boxBottom",
|
|
847
|
-
"footer"
|
|
848
|
-
"tabTitle",
|
|
849
|
-
"tabContext",
|
|
850
|
-
"tabExtra",
|
|
851
|
-
"tabHome"
|
|
866
|
+
"footer"
|
|
852
867
|
].includes(k)
|
|
853
868
|
), (name) => {
|
|
854
869
|
return {
|
|
@@ -858,7 +873,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
858
873
|
])
|
|
859
874
|
};
|
|
860
875
|
})
|
|
861
|
-
]), 1032, ["menus", "headerStyle", "active", "ellipsis", "ellipsisProps", "menuTrigger", "itemTrigger", "collapse", "sidebar", "titleSlot", "iconSlot", "levels", "breadcrumb", "breadcrumbSeparator", "homePath", "isHome", "menuTextEllipsisTooltip", "
|
|
876
|
+
]), 1032, ["menus", "headerStyle", "active", "ellipsis", "ellipsisProps", "menuTrigger", "itemTrigger", "collapse", "sidebar", "titleSlot", "iconSlot", "levels", "breadcrumb", "breadcrumbSeparator", "homePath", "isHome", "menuTextEllipsisTooltip", "tabs", "tabActive", "fixedHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "tabBar", "onLogoClick", "onOpen", "onClsoe", "onItemClick", "onItemMouseenter", "onMouseEnter", "onMouseLeave", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"]),
|
|
862
877
|
vue.createVNode(_component_ReceiverView, {
|
|
863
878
|
class: "ele-admin-main",
|
|
864
879
|
wrapPosition: false
|
|
@@ -877,7 +892,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
877
892
|
titleSlot: _ctx.sideboxTitleSlot,
|
|
878
893
|
iconSlot: _ctx.sideboxIconSlot,
|
|
879
894
|
menuTextEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
880
|
-
menuTextEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
881
895
|
onItemClick: _ctx.onBoxItemClick,
|
|
882
896
|
onItemMouseenter: _ctx.onBoxItemMouseenter,
|
|
883
897
|
onMouseEnter: _ctx.onBoxMouseEnter,
|
|
@@ -907,7 +921,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
907
921
|
])
|
|
908
922
|
};
|
|
909
923
|
})
|
|
910
|
-
]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "compact", "collapse", "popperEffect", "itemTrigger", "titleSlot", "iconSlot", "menuTextEllipsisTooltip", "
|
|
924
|
+
]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "compact", "collapse", "popperEffect", "itemTrigger", "titleSlot", "iconSlot", "menuTextEllipsisTooltip", "onItemClick", "onItemMouseenter", "onMouseEnter", "onMouseLeave"])) : vue.createCommentVNode("", true),
|
|
911
925
|
_ctx.sidebar ? (vue.openBlock(), vue.createBlock(_component_ProSidebar, {
|
|
912
926
|
key: 1,
|
|
913
927
|
menus: _ctx.sidebarData,
|
|
@@ -922,7 +936,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
922
936
|
titleSlot: _ctx.sidebarTitleSlot,
|
|
923
937
|
iconSlot: _ctx.sidebarIconSlot,
|
|
924
938
|
menuTextEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
925
|
-
menuTextEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
926
939
|
onOpen: _ctx.onSideMenuOpen,
|
|
927
940
|
onClsoe: _ctx.onSideMenuClose,
|
|
928
941
|
onItemClick: _ctx.onMenuItemClick,
|
|
@@ -953,9 +966,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
953
966
|
])
|
|
954
967
|
};
|
|
955
968
|
})
|
|
956
|
-
]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "collapse", "uniqueOpened", "defaultOpeneds", "popperEffect", "itemTrigger", "titleSlot", "iconSlot", "menuTextEllipsisTooltip", "
|
|
969
|
+
]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "collapse", "uniqueOpened", "defaultOpeneds", "popperEffect", "itemTrigger", "titleSlot", "iconSlot", "menuTextEllipsisTooltip", "onOpen", "onClsoe", "onItemClick", "onMouseEnter", "onMouseLeave"])) : vue.createCommentVNode("", true),
|
|
957
970
|
vue.createElementVNode("div", _hoisted_1, [
|
|
958
|
-
_ctx.tabBar ? (vue.openBlock(), vue.createBlock(_component_ProTabs, {
|
|
971
|
+
_ctx.tabBar && _ctx.tabBar !== "header" ? (vue.openBlock(), vue.createBlock(_component_ProTabs, {
|
|
959
972
|
key: 0,
|
|
960
973
|
tabs: _ctx.tabData,
|
|
961
974
|
active: _ctx.tabActive,
|
|
@@ -983,6 +996,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
983
996
|
})
|
|
984
997
|
]), 1032, ["tabs", "active", "tabStyle", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabContextMenus", "tabSortable", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : vue.createCommentVNode("", true),
|
|
985
998
|
vue.createElementVNode("div", _hoisted_2, [
|
|
999
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
1000
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
1001
|
+
!_ctx.hideFooter ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }) : vue.createCommentVNode("", true)
|
|
1002
|
+
], 512),
|
|
986
1003
|
_ctx.tabBar && _ctx.keepAlive ? (vue.openBlock(), vue.createBlock(_component_ProIframe, {
|
|
987
1004
|
key: 0,
|
|
988
1005
|
keepAlive: _ctx.keepAlive,
|
|
@@ -991,9 +1008,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
991
1008
|
tabData: _ctx.tabData,
|
|
992
1009
|
tabActive: _ctx.tabActive
|
|
993
1010
|
}, null, 8, ["keepAlive", "transitionName", "transitionDelay", "tabData", "tabActive"])) : vue.createCommentVNode("", true),
|
|
994
|
-
vue.
|
|
995
|
-
|
|
996
|
-
|
|
1011
|
+
_ctx.backTop ? (vue.openBlock(), vue.createBlock(_component_ElBacktop, {
|
|
1012
|
+
key: _ctx.backTopSelector,
|
|
1013
|
+
target: _ctx.backTopSelector,
|
|
1014
|
+
visibilityHeight: _ctx.backTopVisibilityHeight,
|
|
1015
|
+
bottom: _ctx.backTopBottom,
|
|
1016
|
+
right: _ctx.backTopRight
|
|
1017
|
+
}, null, 8, ["target", "visibilityHeight", "bottom", "right"])) : vue.createCommentVNode("", true),
|
|
1018
|
+
vue.createElementVNode("div", _hoisted_4, null, 512)
|
|
1019
|
+
])
|
|
997
1020
|
])
|
|
998
1021
|
]),
|
|
999
1022
|
_: 3
|
|
@@ -1001,14 +1024,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1001
1024
|
vue.createElementVNode("div", {
|
|
1002
1025
|
class: "ele-admin-mask",
|
|
1003
1026
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.updateCollapse && _ctx.updateCollapse(...args))
|
|
1004
|
-
})
|
|
1005
|
-
_ctx.backTop ? (vue.openBlock(), vue.createBlock(_component_ElBacktop, {
|
|
1006
|
-
key: 0,
|
|
1007
|
-
right: _ctx.backTopRight,
|
|
1008
|
-
bottom: _ctx.backTopBottom,
|
|
1009
|
-
visibilityHeight: _ctx.backTopVisibilityHeight,
|
|
1010
|
-
target: _ctx.backTopSelector
|
|
1011
|
-
}, null, 8, ["right", "bottom", "visibilityHeight", "target"])) : vue.createCommentVNode("", true)
|
|
1027
|
+
})
|
|
1012
1028
|
], 2);
|
|
1013
1029
|
}
|
|
1014
1030
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -9,7 +9,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
9
|
compact: BooleanConstructor;
|
|
10
10
|
maximized: BooleanConstructor;
|
|
11
11
|
tabBar: {
|
|
12
|
-
type:
|
|
12
|
+
type: import("vue").PropType<boolean | "header">;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
breadcrumb: {
|
|
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
|
-
ellipsisProps: import("vue").PropType<import("../ele-menus/types").EllipsisProps>;
|
|
44
|
+
ellipsisProps: import("vue").PropType<import("../ele-menus/types").EllipsisProps | undefined>;
|
|
45
45
|
menuTrigger: {
|
|
46
46
|
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
47
47
|
default: string;
|
|
@@ -68,7 +68,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
68
68
|
};
|
|
69
69
|
fixedHeader: {
|
|
70
70
|
type: BooleanConstructor;
|
|
71
|
-
|
|
71
|
+
/** 页签选中 */
|
|
72
|
+
default: boolean;
|
|
72
73
|
};
|
|
73
74
|
fixedSidebar: BooleanConstructor;
|
|
74
75
|
fixedBody: BooleanConstructor;
|
|
@@ -83,12 +84,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
83
84
|
default: boolean;
|
|
84
85
|
};
|
|
85
86
|
expanded: BooleanConstructor;
|
|
86
|
-
compressOnEsc: BooleanConstructor;
|
|
87
|
-
/** 侧栏一级菜单选中 */
|
|
87
|
+
compressOnEsc: BooleanConstructor; /** 侧栏一级菜单数据 */
|
|
88
88
|
fixedHome: {
|
|
89
89
|
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
90
|
+
default: boolean;
|
|
91
|
+
}; /** 侧栏一级菜单选中 */
|
|
92
92
|
homePath: StringConstructor;
|
|
93
93
|
redirectPath: {
|
|
94
94
|
type: StringConstructor;
|
|
@@ -102,12 +102,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
102
102
|
tabSortable: BooleanConstructor;
|
|
103
103
|
autoScrollTop: {
|
|
104
104
|
type: BooleanConstructor;
|
|
105
|
-
default: boolean;
|
|
105
|
+
default: boolean; /** 是否混合导航布局 */
|
|
106
106
|
};
|
|
107
107
|
headerTitleSlot: {
|
|
108
108
|
type: StringConstructor;
|
|
109
|
-
default: string;
|
|
110
|
-
};
|
|
109
|
+
default: string; /** 是否双侧栏布局 */
|
|
110
|
+
}; /** 是否双侧栏布局 */
|
|
111
111
|
headerIconSlot: {
|
|
112
112
|
type: StringConstructor;
|
|
113
113
|
default: string;
|
|
@@ -137,8 +137,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
137
137
|
type: NumberConstructor;
|
|
138
138
|
default: number;
|
|
139
139
|
};
|
|
140
|
-
menuTextEllipsisTooltip:
|
|
141
|
-
menuTextEllipsisTooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
140
|
+
menuTextEllipsisTooltip: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps> | undefined>;
|
|
142
141
|
keepAlive: BooleanConstructor;
|
|
143
142
|
transitionName: StringConstructor;
|
|
144
143
|
transitionDelay: {
|
|
@@ -151,6 +150,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
151
150
|
};
|
|
152
151
|
}, {
|
|
153
152
|
contentRef: Ref<HTMLElement | null>;
|
|
153
|
+
modalsRef: Ref<HTMLElement | null>;
|
|
154
154
|
levelData: import("vue").ShallowRef<LevelItem[]>;
|
|
155
155
|
tabData: import("vue").ShallowRef<TabItem[]>;
|
|
156
156
|
tabActive: Ref<string>;
|
|
@@ -166,7 +166,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
166
166
|
sidebox: import("vue").ComputedRef<boolean>;
|
|
167
167
|
sidebar: import("vue").ComputedRef<boolean>;
|
|
168
168
|
layoutClass: import("vue").ComputedRef<ClassValues>;
|
|
169
|
-
backTopSelector: import("vue").ComputedRef<string
|
|
169
|
+
backTopSelector: import("vue").ComputedRef<string>;
|
|
170
170
|
sidebarCollapse: import("vue").ComputedRef<boolean>;
|
|
171
171
|
sidebarTheme: import("vue").ComputedRef<"light" | "dark">;
|
|
172
172
|
updateCollapse: (val?: boolean | MouseEvent) => void;
|
|
@@ -211,7 +211,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
211
211
|
compact: BooleanConstructor;
|
|
212
212
|
maximized: BooleanConstructor;
|
|
213
213
|
tabBar: {
|
|
214
|
-
type:
|
|
214
|
+
type: import("vue").PropType<boolean | "header">;
|
|
215
215
|
default: boolean;
|
|
216
216
|
};
|
|
217
217
|
breadcrumb: {
|
|
@@ -243,7 +243,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
243
243
|
type: BooleanConstructor;
|
|
244
244
|
default: boolean;
|
|
245
245
|
};
|
|
246
|
-
ellipsisProps: import("vue").PropType<import("../ele-menus/types").EllipsisProps>;
|
|
246
|
+
ellipsisProps: import("vue").PropType<import("../ele-menus/types").EllipsisProps | undefined>;
|
|
247
247
|
menuTrigger: {
|
|
248
248
|
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
249
249
|
default: string;
|
|
@@ -270,7 +270,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
270
270
|
};
|
|
271
271
|
fixedHeader: {
|
|
272
272
|
type: BooleanConstructor;
|
|
273
|
-
|
|
273
|
+
/** 页签选中 */
|
|
274
|
+
default: boolean;
|
|
274
275
|
};
|
|
275
276
|
fixedSidebar: BooleanConstructor;
|
|
276
277
|
fixedBody: BooleanConstructor;
|
|
@@ -285,12 +286,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
285
286
|
default: boolean;
|
|
286
287
|
};
|
|
287
288
|
expanded: BooleanConstructor;
|
|
288
|
-
compressOnEsc: BooleanConstructor;
|
|
289
|
-
/** 侧栏一级菜单选中 */
|
|
289
|
+
compressOnEsc: BooleanConstructor; /** 侧栏一级菜单数据 */
|
|
290
290
|
fixedHome: {
|
|
291
291
|
type: BooleanConstructor;
|
|
292
|
-
default: boolean;
|
|
293
|
-
};
|
|
292
|
+
default: boolean;
|
|
293
|
+
}; /** 侧栏一级菜单选中 */
|
|
294
294
|
homePath: StringConstructor;
|
|
295
295
|
redirectPath: {
|
|
296
296
|
type: StringConstructor;
|
|
@@ -304,12 +304,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
304
304
|
tabSortable: BooleanConstructor;
|
|
305
305
|
autoScrollTop: {
|
|
306
306
|
type: BooleanConstructor;
|
|
307
|
-
default: boolean;
|
|
307
|
+
default: boolean; /** 是否混合导航布局 */
|
|
308
308
|
};
|
|
309
309
|
headerTitleSlot: {
|
|
310
310
|
type: StringConstructor;
|
|
311
|
-
default: string;
|
|
312
|
-
};
|
|
311
|
+
default: string; /** 是否双侧栏布局 */
|
|
312
|
+
}; /** 是否双侧栏布局 */
|
|
313
313
|
headerIconSlot: {
|
|
314
314
|
type: StringConstructor;
|
|
315
315
|
default: string;
|
|
@@ -339,8 +339,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
339
339
|
type: NumberConstructor;
|
|
340
340
|
default: number;
|
|
341
341
|
};
|
|
342
|
-
menuTextEllipsisTooltip:
|
|
343
|
-
menuTextEllipsisTooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
342
|
+
menuTextEllipsisTooltip: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps> | undefined>;
|
|
344
343
|
keepAlive: BooleanConstructor;
|
|
345
344
|
transitionName: StringConstructor;
|
|
346
345
|
transitionDelay: {
|
|
@@ -376,7 +375,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
376
375
|
expanded: boolean;
|
|
377
376
|
compact: boolean;
|
|
378
377
|
maximized: boolean;
|
|
379
|
-
tabBar: boolean;
|
|
378
|
+
tabBar: boolean | "header";
|
|
380
379
|
keepAlive: boolean;
|
|
381
380
|
responsive: boolean;
|
|
382
381
|
headerStyle: import("./types").HeaderStyle;
|
|
@@ -406,6 +405,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
406
405
|
sideboxTitleSlot: string;
|
|
407
406
|
sideboxIconSlot: string;
|
|
408
407
|
menuHoverTimeout: number;
|
|
409
|
-
menuTextEllipsisTooltip: boolean;
|
|
410
408
|
}, {}>;
|
|
411
409
|
export default _default;
|
|
@@ -13,7 +13,7 @@ const proLayoutProps = {
|
|
|
13
13
|
maximized: Boolean,
|
|
14
14
|
/** 是否需要页签栏 */
|
|
15
15
|
tabBar: {
|
|
16
|
-
type: Boolean,
|
|
16
|
+
type: [Boolean, String],
|
|
17
17
|
default: true
|
|
18
18
|
},
|
|
19
19
|
/** 是否需要面包屑导航 */
|
|
@@ -187,9 +187,7 @@ const proLayoutProps = {
|
|
|
187
187
|
default: 600
|
|
188
188
|
},
|
|
189
189
|
/** 是否开启菜单文本溢出提示 */
|
|
190
|
-
menuTextEllipsisTooltip: Boolean,
|
|
191
|
-
/** 菜单文本溢出提示属性 */
|
|
192
|
-
menuTextEllipsisTooltipProps: Object,
|
|
190
|
+
menuTextEllipsisTooltip: [Boolean, Object],
|
|
193
191
|
/** 是否支持内链缓存 */
|
|
194
192
|
keepAlive: Boolean,
|
|
195
193
|
/** 内链切换动画 */
|