ele-admin-plus 1.2.0-beta.6 → 1.2.1-beta.1
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-admin-layout/index.d.ts +11 -1
- package/es/ele-admin-layout/index.js +53 -47
- package/es/ele-admin-layout/props.d.ts +10 -0
- package/es/ele-admin-layout/props.js +10 -0
- package/es/ele-app/components/message-body.d.ts +6 -0
- package/es/ele-app/components/message-body.js +10 -4
- package/es/ele-app/components/message-box-icon.d.ts +30 -0
- package/es/ele-app/components/message-box-icon.js +63 -0
- package/es/ele-app/el.d.ts +7 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +19 -0
- package/es/ele-card/index.js +1 -1
- package/es/ele-pro-layout/index.d.ts +12 -2
- package/es/ele-pro-layout/index.js +6 -1
- package/es/ele-pro-layout/props.d.ts +10 -0
- package/es/ele-pro-layout/props.js +10 -0
- package/es/ele-pro-table/types.d.ts +3 -3
- package/es/ele-qr-code/qrcodegen.js +34 -70
- package/es/icons/MenuOutlined.d.ts +2 -0
- package/es/icons/MenuOutlined.js +32 -0
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +84 -82
- package/es/utils/message-box.js +28 -2
- package/es/utils/message.js +36 -13
- package/lib/components.cjs +4 -5
- package/lib/core-export.cjs +28 -35
- package/lib/core.cjs +8 -10
- package/lib/ele-admin-layout/index.cjs +53 -47
- package/lib/ele-admin-layout/index.d.ts +11 -1
- package/lib/ele-admin-layout/props.cjs +10 -0
- package/lib/ele-admin-layout/props.d.ts +10 -0
- package/lib/ele-app/components/message-body.cjs +9 -3
- package/lib/ele-app/components/message-body.d.ts +6 -0
- package/lib/ele-app/components/message-box-icon.cjs +62 -0
- package/lib/ele-app/components/message-box-icon.d.ts +30 -0
- package/lib/ele-app/el.d.ts +7 -0
- package/lib/ele-app/style/overwrite/message-box/index.scss +19 -0
- package/lib/ele-card/index.cjs +1 -1
- package/lib/ele-pro-layout/index.cjs +6 -1
- package/lib/ele-pro-layout/index.d.ts +12 -2
- package/lib/ele-pro-layout/props.cjs +10 -0
- package/lib/ele-pro-layout/props.d.ts +10 -0
- package/lib/ele-pro-table/types.d.ts +3 -3
- package/lib/ele-qr-code/qrcodegen.cjs +34 -70
- package/lib/icons/MenuOutlined.cjs +31 -0
- package/lib/icons/MenuOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/index.cjs +8 -10
- package/lib/utils/message-box.cjs +27 -1
- package/lib/utils/message.cjs +35 -12
- package/package.json +11 -11
|
@@ -70,6 +70,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
70
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
71
71
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
72
72
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
73
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
74
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
75
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
76
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
77
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
73
78
|
logoSrc: StringConstructor;
|
|
74
79
|
logoTitle: StringConstructor;
|
|
75
80
|
menuScrollToActive: {
|
|
@@ -150,7 +155,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
150
155
|
sideMenuItemClick: (_item: MenuItem, _e: MouseEvent) => boolean;
|
|
151
156
|
sideMouseenter: (_e: MouseEvent) => boolean;
|
|
152
157
|
sideMouseleave: (_e: MouseEvent) => boolean;
|
|
153
|
-
tabClick: (_option: TabEventOption) => boolean;
|
|
158
|
+
tabClick: (_option: TabEventOption) => boolean;
|
|
154
159
|
tabRemove: (_name: string) => boolean;
|
|
155
160
|
tabContextMenu: (_option: TabEventOption) => boolean;
|
|
156
161
|
tabSortChange: (_data: TabPaneItem[]) => boolean;
|
|
@@ -223,6 +228,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
223
228
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
224
229
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
225
230
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
231
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
232
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
233
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
234
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
235
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
226
236
|
logoSrc: StringConstructor;
|
|
227
237
|
logoTitle: StringConstructor;
|
|
228
238
|
menuScrollToActive: {
|
|
@@ -322,42 +322,22 @@ const _export_sfc = (sfc, props) => {
|
|
|
322
322
|
}
|
|
323
323
|
return target;
|
|
324
324
|
};
|
|
325
|
-
const _hoisted_1 =
|
|
326
|
-
|
|
327
|
-
class: "ele-admin-logo"
|
|
328
|
-
};
|
|
329
|
-
const _hoisted_2 = ["src"];
|
|
330
|
-
const _hoisted_3 = {
|
|
325
|
+
const _hoisted_1 = ["src"];
|
|
326
|
+
const _hoisted_2 = {
|
|
331
327
|
key: 1,
|
|
332
328
|
class: "ele-admin-tools"
|
|
333
329
|
};
|
|
334
|
-
const
|
|
330
|
+
const _hoisted_3 = {
|
|
335
331
|
key: 2,
|
|
336
332
|
class: "ele-admin-breadcrumb"
|
|
337
333
|
};
|
|
338
|
-
const
|
|
339
|
-
key: 3,
|
|
340
|
-
class: "ele-admin-menus"
|
|
341
|
-
};
|
|
342
|
-
const _hoisted_6 = {
|
|
334
|
+
const _hoisted_4 = {
|
|
343
335
|
key: 5,
|
|
344
336
|
class: "ele-admin-tools"
|
|
345
337
|
};
|
|
338
|
+
const _hoisted_5 = ["src"];
|
|
339
|
+
const _hoisted_6 = ["src"];
|
|
346
340
|
const _hoisted_7 = {
|
|
347
|
-
key: 0,
|
|
348
|
-
class: "ele-admin-logo"
|
|
349
|
-
};
|
|
350
|
-
const _hoisted_8 = ["src"];
|
|
351
|
-
const _hoisted_9 = {
|
|
352
|
-
key: 0,
|
|
353
|
-
class: "ele-admin-logo-title"
|
|
354
|
-
};
|
|
355
|
-
const _hoisted_10 = {
|
|
356
|
-
key: 1,
|
|
357
|
-
class: "ele-admin-logo"
|
|
358
|
-
};
|
|
359
|
-
const _hoisted_11 = ["src"];
|
|
360
|
-
const _hoisted_12 = {
|
|
361
341
|
ref: "modalsRef",
|
|
362
342
|
class: "ele-admin-modals"
|
|
363
343
|
};
|
|
@@ -398,24 +378,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
398
378
|
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.handleHeadMouseenter && _ctx.handleHeadMouseenter(...args)),
|
|
399
379
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.handleHeadMouseleave && _ctx.handleHeadMouseleave(...args))
|
|
400
380
|
}, [
|
|
401
|
-
_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div",
|
|
381
|
+
_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
382
|
+
key: 0,
|
|
383
|
+
class: "ele-admin-logo",
|
|
384
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
385
|
+
}, [
|
|
402
386
|
_ctx.logoSrc || _ctx.$slots.logo ? renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
403
|
-
createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
387
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_1)
|
|
404
388
|
]) : createCommentVNode("", true),
|
|
405
389
|
_ctx.logoTitle || _ctx.$slots.logoTitle ? renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
406
390
|
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
407
391
|
]) : createCommentVNode("", true)
|
|
408
|
-
])) : createCommentVNode("", true),
|
|
409
|
-
_ctx.$slots.left ? (openBlock(), createElementBlock("div",
|
|
392
|
+
], 4)) : createCommentVNode("", true),
|
|
393
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
410
394
|
renderSlot(_ctx.$slots, "left")
|
|
411
395
|
])) : createCommentVNode("", true),
|
|
412
|
-
_ctx.breadcrumb ? (openBlock(), createElementBlock("div",
|
|
396
|
+
_ctx.breadcrumb ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
413
397
|
renderSlot(_ctx.$slots, "breadcrumb", {}, () => [
|
|
414
398
|
_ctx.levels && _ctx.levels.length ? (openBlock(), createBlock(_component_EleBreadcrumb, mergeProps({ key: 0 }, _ctx.breadcrumb === true ? {} : _ctx.breadcrumb, { items: _ctx.levels }), null, 16, ["items"])) : createCommentVNode("", true)
|
|
415
399
|
])
|
|
416
400
|
])) : createCommentVNode("", true),
|
|
417
401
|
renderSlot(_ctx.$slots, "center"),
|
|
418
|
-
!_ctx.showHeaderTabs || _ctx.showHeaderMenus ? (openBlock(), createElementBlock("div",
|
|
402
|
+
!_ctx.showHeaderTabs || _ctx.showHeaderMenus ? (openBlock(), createElementBlock("div", {
|
|
403
|
+
key: 3,
|
|
404
|
+
class: "ele-admin-menus",
|
|
405
|
+
style: normalizeStyle(_ctx.headerMenusStyle)
|
|
406
|
+
}, [
|
|
419
407
|
_ctx.showHeaderMenus && _ctx.headerMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
420
408
|
key: 0,
|
|
421
409
|
mode: "horizontal",
|
|
@@ -445,7 +433,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
445
433
|
key: "1"
|
|
446
434
|
} : void 0
|
|
447
435
|
]), 1040, ["theme", "popupTheme", "defaultActive", "items", "onOpen", "onClose", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : createCommentVNode("", true)
|
|
448
|
-
])) : createCommentVNode("", true),
|
|
436
|
+
], 4)) : createCommentVNode("", true),
|
|
449
437
|
_ctx.showHeaderTabs ? (openBlock(), createBlock(_component_LayoutTabs, {
|
|
450
438
|
key: 4,
|
|
451
439
|
tabs: _ctx.tabs,
|
|
@@ -475,7 +463,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
475
463
|
};
|
|
476
464
|
})
|
|
477
465
|
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true),
|
|
478
|
-
_ctx.$slots.right ? (openBlock(), createElementBlock("div",
|
|
466
|
+
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
479
467
|
renderSlot(_ctx.$slots, "right")
|
|
480
468
|
])) : createCommentVNode("", true)
|
|
481
469
|
], 38)) : createCommentVNode("", true)
|
|
@@ -507,13 +495,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
507
495
|
onMouseenter: _cache[2] || (_cache[2] = (...args) => _ctx.handleBoxMouseEnter && _ctx.handleBoxMouseEnter(...args)),
|
|
508
496
|
onMouseleave: _cache[3] || (_cache[3] = (...args) => _ctx.handleBoxMouseLeave && _ctx.handleBoxMouseLeave(...args))
|
|
509
497
|
}, [
|
|
510
|
-
!_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.$slots.logo) ? (openBlock(), createElementBlock("div",
|
|
498
|
+
!_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.$slots.logo) ? (openBlock(), createElementBlock("div", {
|
|
499
|
+
key: 0,
|
|
500
|
+
class: "ele-admin-logo",
|
|
501
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
502
|
+
}, [
|
|
511
503
|
renderSlot(_ctx.$slots, "logo", {}, () => [
|
|
512
|
-
createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
504
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_5)
|
|
513
505
|
])
|
|
514
|
-
])) : createCommentVNode("", true),
|
|
506
|
+
], 4)) : createCommentVNode("", true),
|
|
515
507
|
renderSlot(_ctx.$slots, "boxTop"),
|
|
516
|
-
createVNode(_component_ElScrollbar, {
|
|
508
|
+
createVNode(_component_ElScrollbar, {
|
|
509
|
+
class: "ele-admin-menus",
|
|
510
|
+
style: normalizeStyle(_ctx.sideboxMenusStyle)
|
|
511
|
+
}, {
|
|
517
512
|
default: withCtx(() => [
|
|
518
513
|
_ctx.sideboxMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
519
514
|
key: 0,
|
|
@@ -547,7 +542,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
547
542
|
]), 1040, ["theme", "defaultActive", "collapse", "items", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : createCommentVNode("", true)
|
|
548
543
|
]),
|
|
549
544
|
_: 3
|
|
550
|
-
}),
|
|
545
|
+
}, 8, ["style"]),
|
|
551
546
|
renderSlot(_ctx.$slots, "boxBottom")
|
|
552
547
|
], 38)) : createCommentVNode("", true),
|
|
553
548
|
!_ctx.isBoxSidebar ? (openBlock(), createElementBlock("div", {
|
|
@@ -564,21 +559,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
564
559
|
onMouseleave: _cache[5] || (_cache[5] = (...args) => _ctx.handleSideMouseLeave && _ctx.handleSideMouseLeave(...args))
|
|
565
560
|
}, [
|
|
566
561
|
_ctx.isMixSidebar ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
567
|
-
!_ctx.isHeaderLogo && (_ctx.logoTitle || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div",
|
|
562
|
+
!_ctx.isHeaderLogo && (_ctx.logoTitle || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
563
|
+
key: 0,
|
|
564
|
+
class: "ele-admin-logo-title",
|
|
565
|
+
style: normalizeStyle(_ctx.logoTitleStyle)
|
|
566
|
+
}, [
|
|
568
567
|
renderSlot(_ctx.$slots, "logoTitle", {}, () => [
|
|
569
568
|
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
570
569
|
])
|
|
571
|
-
])) : createCommentVNode("", true)
|
|
572
|
-
], 64)) : !_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div",
|
|
570
|
+
], 4)) : createCommentVNode("", true)
|
|
571
|
+
], 64)) : !_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
572
|
+
key: 1,
|
|
573
|
+
class: "ele-admin-logo",
|
|
574
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
575
|
+
}, [
|
|
573
576
|
_ctx.logoSrc || _ctx.$slots.logo ? renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
574
|
-
createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
577
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_6)
|
|
575
578
|
]) : createCommentVNode("", true),
|
|
576
579
|
_ctx.logoTitle || _ctx.$slots.logoTitle ? renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
577
580
|
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
578
581
|
]) : createCommentVNode("", true)
|
|
579
|
-
])) : createCommentVNode("", true),
|
|
582
|
+
], 4)) : createCommentVNode("", true),
|
|
580
583
|
renderSlot(_ctx.$slots, "top"),
|
|
581
|
-
createVNode(_component_ElScrollbar, {
|
|
584
|
+
createVNode(_component_ElScrollbar, {
|
|
585
|
+
class: "ele-admin-menus",
|
|
586
|
+
style: normalizeStyle(_ctx.sidebarMenusStyle)
|
|
587
|
+
}, {
|
|
582
588
|
default: withCtx(() => [
|
|
583
589
|
_ctx.sidebarMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
584
590
|
key: 0,
|
|
@@ -611,7 +617,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
611
617
|
]), 1040, ["theme", "defaultActive", "collapse", "items", "onOpen", "onClose", "onItemClick"])) : createCommentVNode("", true)
|
|
612
618
|
]),
|
|
613
619
|
_: 3
|
|
614
|
-
}),
|
|
620
|
+
}, 8, ["style"]),
|
|
615
621
|
renderSlot(_ctx.$slots, "bottom")
|
|
616
622
|
], 38)) : createCommentVNode("", true)
|
|
617
623
|
], 6)) : createCommentVNode("", true)
|
|
@@ -665,7 +671,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
665
671
|
target: _ctx.fixedBody && _ctx.contentRef ? _ctx.contentRef : void 0,
|
|
666
672
|
style: _ctx.fixedBody ? { position: "absolute" } : void 0
|
|
667
673
|
}, _ctx.backTop === true ? {} : _ctx.backTop), null, 16, ["target", "style"])) : createCommentVNode("", true),
|
|
668
|
-
createElementVNode("div",
|
|
674
|
+
createElementVNode("div", _hoisted_7, null, 512)
|
|
669
675
|
]),
|
|
670
676
|
default: withCtx(() => [
|
|
671
677
|
createElementVNode("div", {
|
|
@@ -120,6 +120,16 @@ export declare const adminLayoutProps: {
|
|
|
120
120
|
tabsCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
121
121
|
/** 内容区样式 */
|
|
122
122
|
contentCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
123
|
+
/** logo样式 */
|
|
124
|
+
logoStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
125
|
+
/** logo文字样式 */
|
|
126
|
+
logoTitleStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
127
|
+
/** 顶栏菜单样式 */
|
|
128
|
+
headerMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
129
|
+
/** 侧栏菜单样式 */
|
|
130
|
+
sidebarMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
131
|
+
/** 双侧栏一级菜单样式 */
|
|
132
|
+
sideboxMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
123
133
|
/** logo图片地址 */
|
|
124
134
|
logoSrc: StringConstructor;
|
|
125
135
|
/** logo文字 */
|
|
@@ -110,6 +110,16 @@ const adminLayoutProps = {
|
|
|
110
110
|
tabsCustomStyle: Object,
|
|
111
111
|
/** 内容区样式 */
|
|
112
112
|
contentCustomStyle: Object,
|
|
113
|
+
/** logo样式 */
|
|
114
|
+
logoStyle: Object,
|
|
115
|
+
/** logo文字样式 */
|
|
116
|
+
logoTitleStyle: Object,
|
|
117
|
+
/** 顶栏菜单样式 */
|
|
118
|
+
headerMenusStyle: Object,
|
|
119
|
+
/** 侧栏菜单样式 */
|
|
120
|
+
sidebarMenusStyle: Object,
|
|
121
|
+
/** 双侧栏一级菜单样式 */
|
|
122
|
+
sideboxMenusStyle: Object,
|
|
113
123
|
/** logo图片地址 */
|
|
114
124
|
logoSrc: String,
|
|
115
125
|
/** logo文字 */
|
|
@@ -13,10 +13,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
13
|
dangerouslyUseHTMLString: BooleanConstructor;
|
|
14
14
|
/** 是否是加载框 */
|
|
15
15
|
loading: PropType<boolean | null>;
|
|
16
|
+
/** 标识id */
|
|
17
|
+
messageId: StringConstructor;
|
|
16
18
|
}, {
|
|
17
19
|
onClose: () => void;
|
|
18
20
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
21
|
close: () => true;
|
|
22
|
+
messageDestroy: (_messageId?: string) => true;
|
|
20
23
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
24
|
/** 内容 */
|
|
22
25
|
message: StringConstructor;
|
|
@@ -30,8 +33,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
33
|
dangerouslyUseHTMLString: BooleanConstructor;
|
|
31
34
|
/** 是否是加载框 */
|
|
32
35
|
loading: PropType<boolean | null>;
|
|
36
|
+
/** 标识id */
|
|
37
|
+
messageId: StringConstructor;
|
|
33
38
|
}>> & {
|
|
34
39
|
onClose?: (() => any) | undefined;
|
|
40
|
+
onMessageDestroy?: ((_messageId?: string | undefined) => any) | undefined;
|
|
35
41
|
}, {
|
|
36
42
|
showClose: boolean;
|
|
37
43
|
dangerouslyUseHTMLString: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, normalizeClass, withCtx, createBlock, resolveDynamicComponent, renderSlot, toDisplayString, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, normalizeClass, withCtx, createBlock, resolveDynamicComponent, renderSlot, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { ElIcon } from "element-plus";
|
|
3
3
|
import { CloseOutlined, InfoCircleFilled, CheckCircleFilled, ExclamationCircleFilled, CloseCircleFilled, LoadingOutlined } from "../../icons";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -24,12 +24,18 @@ const _sfc_main = defineComponent({
|
|
|
24
24
|
/** 内容是否是富文本 */
|
|
25
25
|
dangerouslyUseHTMLString: Boolean,
|
|
26
26
|
/** 是否是加载框 */
|
|
27
|
-
loading: Boolean
|
|
27
|
+
loading: Boolean,
|
|
28
|
+
/** 标识id */
|
|
29
|
+
messageId: String
|
|
28
30
|
},
|
|
29
31
|
emits: {
|
|
30
|
-
close: () => true
|
|
32
|
+
close: () => true,
|
|
33
|
+
messageDestroy: (_messageId) => true
|
|
31
34
|
},
|
|
32
|
-
setup(
|
|
35
|
+
setup(props, { emit }) {
|
|
36
|
+
onBeforeUnmount(() => {
|
|
37
|
+
emit("messageDestroy", props.messageId);
|
|
38
|
+
});
|
|
33
39
|
return { onClose: () => emit("close") };
|
|
34
40
|
}
|
|
35
41
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
/** 类型 */
|
|
5
|
+
type: PropType<("" | "success" | "warning" | "error" | "info") | undefined>;
|
|
6
|
+
/** 图标 */
|
|
7
|
+
icon: PropType<string | import('vue').Component | undefined>;
|
|
8
|
+
/** 标识id */
|
|
9
|
+
boxId: StringConstructor;
|
|
10
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
boxDestroy: (_boxId?: string) => true;
|
|
12
|
+
boxMounted: (_: {
|
|
13
|
+
boxId?: string;
|
|
14
|
+
doClose?: () => void;
|
|
15
|
+
}) => true;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
/** 类型 */
|
|
18
|
+
type: PropType<("" | "success" | "warning" | "error" | "info") | undefined>;
|
|
19
|
+
/** 图标 */
|
|
20
|
+
icon: PropType<string | import('vue').Component | undefined>;
|
|
21
|
+
/** 标识id */
|
|
22
|
+
boxId: StringConstructor;
|
|
23
|
+
}>> & {
|
|
24
|
+
onBoxDestroy?: ((_boxId?: string | undefined) => any) | undefined;
|
|
25
|
+
onBoxMounted?: ((_: {
|
|
26
|
+
boxId?: string | undefined;
|
|
27
|
+
doClose?: (() => void) | undefined;
|
|
28
|
+
}) => any) | undefined;
|
|
29
|
+
}, {}, {}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent, getCurrentInstance, onBeforeUnmount, onMounted, resolveComponent, withDirectives, openBlock, createElementBlock, createBlock, resolveDynamicComponent, createCommentVNode, vShow } from "vue";
|
|
2
|
+
import { CloseOutlined, InfoCircleFilled, CheckCircleFilled, ExclamationCircleFilled, CloseCircleFilled } from "../../icons";
|
|
3
|
+
const _sfc_main = defineComponent({
|
|
4
|
+
name: "MessageBoxIcon",
|
|
5
|
+
components: {
|
|
6
|
+
CloseOutlined,
|
|
7
|
+
InfoCircleFilled,
|
|
8
|
+
CheckCircleFilled,
|
|
9
|
+
ExclamationCircleFilled,
|
|
10
|
+
CloseCircleFilled
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
/** 类型 */
|
|
14
|
+
type: String,
|
|
15
|
+
/** 图标 */
|
|
16
|
+
icon: [String, Object, Function],
|
|
17
|
+
/** 标识id */
|
|
18
|
+
boxId: String
|
|
19
|
+
},
|
|
20
|
+
emits: {
|
|
21
|
+
boxDestroy: (_boxId) => true,
|
|
22
|
+
boxMounted: (_) => true
|
|
23
|
+
},
|
|
24
|
+
setup(props, { emit }) {
|
|
25
|
+
var _a;
|
|
26
|
+
const ins = (_a = getCurrentInstance) == null ? void 0 : _a();
|
|
27
|
+
onBeforeUnmount(() => {
|
|
28
|
+
emit("boxDestroy", props.boxId);
|
|
29
|
+
});
|
|
30
|
+
onMounted(() => {
|
|
31
|
+
var _a2, _b;
|
|
32
|
+
emit("boxMounted", {
|
|
33
|
+
boxId: props.boxId,
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
doClose: (_b = (_a2 = ins == null ? void 0 : ins.ctx) == null ? void 0 : _a2.$root) == null ? void 0 : _b.doClose
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const _export_sfc = (sfc, props) => {
|
|
42
|
+
const target = sfc.__vccOpts || sfc;
|
|
43
|
+
for (const [key, val] of props) {
|
|
44
|
+
target[key] = val;
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
};
|
|
48
|
+
const _hoisted_1 = { class: "ele-message-box-icon" };
|
|
49
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
+
const _component_CheckCircleFilled = resolveComponent("CheckCircleFilled");
|
|
51
|
+
const _component_ExclamationCircleFilled = resolveComponent("ExclamationCircleFilled");
|
|
52
|
+
const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
|
|
53
|
+
const _component_InfoCircleFilled = resolveComponent("InfoCircleFilled");
|
|
54
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
55
|
+
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : _ctx.type === "success" ? (openBlock(), createBlock(_component_CheckCircleFilled, { key: 1 })) : _ctx.type === "warning" ? (openBlock(), createBlock(_component_ExclamationCircleFilled, { key: 2 })) : _ctx.type === "error" ? (openBlock(), createBlock(_component_CloseCircleFilled, { key: 3 })) : _ctx.type === "info" ? (openBlock(), createBlock(_component_InfoCircleFilled, { key: 4 })) : createCommentVNode("", true)
|
|
56
|
+
], 512)), [
|
|
57
|
+
[vShow, _ctx.type || _ctx.icon]
|
|
58
|
+
]);
|
|
59
|
+
}
|
|
60
|
+
const messageBoxIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
61
|
+
export {
|
|
62
|
+
messageBoxIcon as default
|
|
63
|
+
};
|
package/es/ele-app/el.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ import type {
|
|
|
54
54
|
MenuItemGroupProps,
|
|
55
55
|
// ElMessage
|
|
56
56
|
MessageOptions,
|
|
57
|
+
// ElMessageBox
|
|
58
|
+
ElMessageBoxOptions as MessageBoxOptions,
|
|
57
59
|
// ElPopper
|
|
58
60
|
ElPopper,
|
|
59
61
|
ElPopover,
|
|
@@ -220,6 +222,11 @@ export type ElMenuItemGroupProps = ComponentProps<MenuItemGroupProps>;
|
|
|
220
222
|
*/
|
|
221
223
|
export type ElMessageOptions = Partial<MessageOptions>;
|
|
222
224
|
|
|
225
|
+
/**
|
|
226
|
+
* ElMessageBox
|
|
227
|
+
*/
|
|
228
|
+
export type ElMessageBoxOptions = Partial<MessageBoxOptions>;
|
|
229
|
+
|
|
223
230
|
/**
|
|
224
231
|
* ElPopper
|
|
225
232
|
*/
|
|
@@ -101,6 +101,25 @@ body .el-overlay.is-message-box > .el-overlay-message-box {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/* useMessageBox */
|
|
105
|
+
.ele-message-box > .el-message-box__content > .el-message-box__container {
|
|
106
|
+
gap: 0;
|
|
107
|
+
|
|
108
|
+
& > .el-message-box__status {
|
|
109
|
+
width: auto;
|
|
110
|
+
height: auto;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ele-message-box-icon {
|
|
115
|
+
width: 1em;
|
|
116
|
+
height: 1em;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
margin-right: 12px;
|
|
121
|
+
}
|
|
122
|
+
|
|
104
123
|
/* 容器 */
|
|
105
124
|
.ele-message-box-wrapper {
|
|
106
125
|
position: absolute;
|
package/es/ele-card/index.js
CHANGED
|
@@ -89,7 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
89
|
class: "ele-card-collapse-icon",
|
|
90
90
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleCollapseClick && _ctx.handleCollapseClick(...args), ["stop"]))
|
|
91
91
|
}, [
|
|
92
|
-
renderSlot(_ctx.$slots, "collapseIcon", {}, () => [
|
|
92
|
+
renderSlot(_ctx.$slots, "collapseIcon", { collapse: _ctx.isCollapse }, () => [
|
|
93
93
|
createVNode(_component_ElIcon, null, {
|
|
94
94
|
default: withCtx(() => [
|
|
95
95
|
createVNode(_component_ArrowUp)
|
|
@@ -123,6 +123,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
123
123
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
124
124
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
125
125
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
126
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
127
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
128
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
129
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
130
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
126
131
|
headerMenuProps: import('vue').PropType<EleMenusProps>;
|
|
127
132
|
sidebarMenuProps: import('vue').PropType<EleMenusProps>;
|
|
128
133
|
sideboxMenuProps: import('vue').PropType<EleMenusProps>;
|
|
@@ -145,7 +150,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
145
150
|
backTopVisibilityHeight: NumberConstructor;
|
|
146
151
|
backTopRight: NumberConstructor;
|
|
147
152
|
backTopBottom: NumberConstructor;
|
|
148
|
-
backTopTarget: StringConstructor;
|
|
153
|
+
backTopTarget: StringConstructor; /** 当前路由布局风格 */
|
|
149
154
|
}, {
|
|
150
155
|
layoutRef: import('vue').Ref<EleAdminLayoutInstance>;
|
|
151
156
|
navActive: import('vue').Ref<string | undefined>;
|
|
@@ -327,6 +332,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
327
332
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
328
333
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
329
334
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
335
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
336
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
337
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
338
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
339
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
330
340
|
headerMenuProps: import('vue').PropType<EleMenusProps>;
|
|
331
341
|
sidebarMenuProps: import('vue').PropType<EleMenusProps>;
|
|
332
342
|
sideboxMenuProps: import('vue').PropType<EleMenusProps>;
|
|
@@ -349,7 +359,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
349
359
|
backTopVisibilityHeight: NumberConstructor;
|
|
350
360
|
backTopRight: NumberConstructor;
|
|
351
361
|
backTopBottom: NumberConstructor;
|
|
352
|
-
backTopTarget: StringConstructor;
|
|
362
|
+
backTopTarget: StringConstructor; /** 当前路由布局风格 */
|
|
353
363
|
}>> & {
|
|
354
364
|
onTabClick?: ((_option: TabItemEventOption) => any) | undefined;
|
|
355
365
|
onTabRemove?: ((_option: TabItemEventOption) => any) | undefined;
|
|
@@ -901,6 +901,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
901
901
|
sideboxCustomStyle: _ctx.sideboxCustomStyle,
|
|
902
902
|
tabsCustomStyle: _ctx.tabsCustomStyle,
|
|
903
903
|
contentCustomStyle: _ctx.contentCustomStyle,
|
|
904
|
+
logoStyle: _ctx.logoStyle,
|
|
905
|
+
logoTitleStyle: _ctx.logoTitleStyle,
|
|
906
|
+
headerMenusStyle: _ctx.headerMenusStyle,
|
|
907
|
+
sidebarMenusStyle: _ctx.sidebarMenusStyle,
|
|
908
|
+
sideboxMenusStyle: _ctx.sideboxMenusStyle,
|
|
904
909
|
mobile: _ctx.mobile,
|
|
905
910
|
class: normalizeClass(["ele-pro-layout", { "ele-admin-limited": !_ctx.fluid }]),
|
|
906
911
|
"onUpdate:collapse": _ctx.updateCollapse,
|
|
@@ -1014,7 +1019,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1014
1019
|
])
|
|
1015
1020
|
};
|
|
1016
1021
|
})
|
|
1017
|
-
]), 1032, ["height", "headerMenus", "headerActive", "sidebarMenus", "sidebarActive", "sideboxMenus", "sideboxActive", "tabs", "tabActive", "levels", "collapse", "compact", "maximized", "tabBar", "breadcrumb", "backTop", "headerMenuProps", "sidebarMenuProps", "sideboxMenuProps", "layout", "sidebarLayout", "headerStyle", "sidebarStyle", "tabStyle", "fixedHeader", "fixedSidebar", "fixedBody", "logoInHeader", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabContextMenus", "tabSortable", "headerTitleSlot", "headerIconSlot", "sidebarTitleSlot", "sidebarIconSlot", "sideboxTitleSlot", "sideboxIconSlot", "headerCustomStyle", "sidebarCustomStyle", "sideboxCustomStyle", "tabsCustomStyle", "contentCustomStyle", "mobile", "class", "onUpdate:collapse", "onLogoClick", "onHeadMenuOpen", "onHeadMenuClose", "onHeadMenuItemClick", "onHeadMenuItemMouseenter", "onHeadMouseenter", "onHeadMouseleave", "onBoxMenuItemClick", "onBoxMenuItemMouseenter", "onBoxMouseenter", "onBoxMouseleave", "onSideMenuOpen", "onSideMenuClose", "onSideMenuItemClick", "onSideMouseenter", "onSideMouseleave", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"]);
|
|
1022
|
+
]), 1032, ["height", "headerMenus", "headerActive", "sidebarMenus", "sidebarActive", "sideboxMenus", "sideboxActive", "tabs", "tabActive", "levels", "collapse", "compact", "maximized", "tabBar", "breadcrumb", "backTop", "headerMenuProps", "sidebarMenuProps", "sideboxMenuProps", "layout", "sidebarLayout", "headerStyle", "sidebarStyle", "tabStyle", "fixedHeader", "fixedSidebar", "fixedBody", "logoInHeader", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabContextMenus", "tabSortable", "headerTitleSlot", "headerIconSlot", "sidebarTitleSlot", "sidebarIconSlot", "sideboxTitleSlot", "sideboxIconSlot", "headerCustomStyle", "sidebarCustomStyle", "sideboxCustomStyle", "tabsCustomStyle", "contentCustomStyle", "logoStyle", "logoTitleStyle", "headerMenusStyle", "sidebarMenusStyle", "sideboxMenusStyle", "mobile", "class", "onUpdate:collapse", "onLogoClick", "onHeadMenuOpen", "onHeadMenuClose", "onHeadMenuItemClick", "onHeadMenuItemMouseenter", "onHeadMouseenter", "onHeadMouseleave", "onBoxMenuItemClick", "onBoxMenuItemMouseenter", "onBoxMouseenter", "onBoxMouseleave", "onSideMenuOpen", "onSideMenuClose", "onSideMenuItemClick", "onSideMouseenter", "onSideMouseleave", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"]);
|
|
1018
1023
|
}
|
|
1019
1024
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
1020
1025
|
export {
|
|
@@ -174,6 +174,16 @@ export declare const proLayoutProps: {
|
|
|
174
174
|
tabsCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
175
175
|
/** 内容区样式 */
|
|
176
176
|
contentCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
177
|
+
/** logo样式 */
|
|
178
|
+
logoStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
179
|
+
/** logo文字样式 */
|
|
180
|
+
logoTitleStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
181
|
+
/** 顶栏菜单样式 */
|
|
182
|
+
headerMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
183
|
+
/** 侧栏菜单样式 */
|
|
184
|
+
sidebarMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
185
|
+
/** 双侧栏一级菜单样式 */
|
|
186
|
+
sideboxMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
177
187
|
/** 顶栏菜单属性 */
|
|
178
188
|
headerMenuProps: PropType<EleMenusProps>;
|
|
179
189
|
/** 侧栏菜单属性 */
|
|
@@ -163,6 +163,16 @@ const proLayoutProps = {
|
|
|
163
163
|
tabsCustomStyle: Object,
|
|
164
164
|
/** 内容区样式 */
|
|
165
165
|
contentCustomStyle: Object,
|
|
166
|
+
/** logo样式 */
|
|
167
|
+
logoStyle: Object,
|
|
168
|
+
/** logo文字样式 */
|
|
169
|
+
logoTitleStyle: Object,
|
|
170
|
+
/** 顶栏菜单样式 */
|
|
171
|
+
headerMenusStyle: Object,
|
|
172
|
+
/** 侧栏菜单样式 */
|
|
173
|
+
sidebarMenusStyle: Object,
|
|
174
|
+
/** 双侧栏一级菜单样式 */
|
|
175
|
+
sideboxMenusStyle: Object,
|
|
166
176
|
/** 顶栏菜单属性 */
|
|
167
177
|
headerMenuProps: Object,
|
|
168
178
|
/** 侧栏菜单属性 */
|
|
@@ -327,7 +327,7 @@ export interface ExportDataItem {
|
|
|
327
327
|
rowspan?: number;
|
|
328
328
|
/** 是否是展开行的单元格 */
|
|
329
329
|
isExpandCell?: boolean;
|
|
330
|
-
/**
|
|
330
|
+
/** 是否显示树展开图标的单元格 */
|
|
331
331
|
isTreeCell?: boolean;
|
|
332
332
|
/** 是否是树叶子节点 */
|
|
333
333
|
isTreeLeaf?: boolean;
|
|
@@ -335,9 +335,9 @@ export interface ExportDataItem {
|
|
|
335
335
|
indent?: number;
|
|
336
336
|
/** 是否是层级序号 */
|
|
337
337
|
isTreeIndex?: boolean;
|
|
338
|
-
/**
|
|
338
|
+
/** 层级序号是否隐藏左边框 */
|
|
339
339
|
hideLeftBorder?: boolean;
|
|
340
|
-
/**
|
|
340
|
+
/** 层级序号是否隐藏右边框 */
|
|
341
341
|
hideRightBorder?: boolean;
|
|
342
342
|
}
|
|
343
343
|
|