ele-admin-plus 1.2.0 → 1.2.1-beta.2
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 +30 -11
- package/es/ele-admin-layout/index.js +53 -47
- package/es/ele-admin-layout/props.d.ts +14 -1
- package/es/ele-admin-layout/props.js +14 -1
- package/es/ele-admin-layout/style/index.scss +7 -2
- package/es/ele-admin-layout/style/sidebar.scss +2 -0
- package/es/ele-alert/index.d.ts +1 -1
- package/es/ele-alert/index.js +3 -3
- package/es/ele-app/components/message-body.d.ts +7 -1
- package/es/ele-app/components/message-body.js +12 -6
- 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/plus.d.ts +3 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +19 -0
- package/es/ele-avatar-group/index.d.ts +4 -4
- package/es/ele-avatar-group/index.js +15 -15
- package/es/ele-basic-select/index.d.ts +5 -5
- package/es/ele-basic-select/index.js +16 -16
- package/es/ele-card/index.js +1 -1
- package/es/ele-check-card/index.d.ts +1 -1
- package/es/ele-check-card/index.js +4 -4
- package/es/ele-copyable/index.d.ts +2 -2
- package/es/ele-copyable/index.js +6 -6
- package/es/ele-cropper/components/cropper-tools.d.ts +3 -3
- package/es/ele-cropper/components/cropper-tools.js +10 -10
- package/es/ele-cropper/index.d.ts +13 -13
- package/es/ele-cropper/index.js +39 -39
- package/es/ele-cropper-modal/index.d.ts +1 -1
- package/es/ele-cropper-modal/index.js +3 -3
- package/es/ele-data-table/util.js +1 -1
- package/es/ele-drawer/index.d.ts +8 -8
- package/es/ele-drawer/index.js +18 -18
- package/es/ele-dropdown/index.d.ts +3 -3
- package/es/ele-dropdown/index.js +9 -9
- package/es/ele-ellipsis/index.d.ts +1 -1
- package/es/ele-ellipsis/index.js +3 -3
- package/es/ele-file-list/components/file-grid-item.d.ts +5 -5
- package/es/ele-file-list/components/file-grid-item.js +15 -15
- package/es/ele-file-list/components/file-grid.d.ts +6 -6
- package/es/ele-file-list/components/file-grid.js +15 -15
- package/es/ele-file-list/components/file-table-item.d.ts +5 -5
- package/es/ele-file-list/components/file-table-item.js +15 -15
- package/es/ele-file-list/components/file-table.d.ts +7 -7
- package/es/ele-file-list/components/file-table.js +19 -19
- package/es/ele-file-list/index.d.ts +6 -6
- package/es/ele-file-list/index.js +22 -22
- package/es/ele-file-list-tool/index.d.ts +1 -1
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +2 -2
- package/es/ele-icon-select/components/icon-grid.js +6 -6
- package/es/ele-icon-select/index.d.ts +7 -7
- package/es/ele-icon-select/index.js +23 -23
- package/es/ele-menus/index.js +15 -15
- package/es/ele-menus/style/index.scss +1 -0
- package/es/ele-menus/util.d.ts +7 -0
- package/es/ele-menus/util.js +49 -26
- package/es/ele-modal/index.d.ts +6 -6
- package/es/ele-modal/index.js +18 -18
- package/es/ele-pagination/index.d.ts +2 -2
- package/es/ele-pagination/index.js +6 -6
- package/es/ele-popconfirm/index.d.ts +7 -17
- package/es/ele-popconfirm/index.js +15 -15
- package/es/ele-popconfirm/props.d.ts +2 -7
- package/es/ele-popover/index.d.ts +7 -17
- package/es/ele-popover/index.js +15 -15
- package/es/ele-popover/props.d.ts +1 -6
- package/es/ele-popover/props.js +1 -0
- package/es/ele-printer/index.d.ts +1 -1
- package/es/ele-printer/index.js +19 -22
- package/es/ele-printer/style/index.scss +2 -2
- package/es/ele-printer/types.d.ts +0 -2
- package/es/ele-printer/util.d.ts +9 -30
- package/es/ele-printer/util.js +118 -109
- package/es/ele-pro-layout/index.d.ts +31 -21
- package/es/ele-pro-layout/index.js +8 -3
- package/es/ele-pro-layout/props.d.ts +11 -1
- package/es/ele-pro-layout/props.js +11 -1
- package/es/ele-pro-table/components/table-tools.d.ts +3 -3
- package/es/ele-pro-table/components/table-tools.js +6 -13
- package/es/ele-pro-table/components/tool-column-list.d.ts +9 -9
- package/es/ele-pro-table/components/tool-column-list.js +33 -33
- package/es/ele-pro-table/components/tool-column.d.ts +24 -38
- package/es/ele-pro-table/components/tool-column.js +80 -102
- package/es/ele-pro-table/components/tool-export.d.ts +4 -4
- package/es/ele-pro-table/components/tool-export.js +28 -40
- package/es/ele-pro-table/components/tool-print.d.ts +10 -7
- package/es/ele-pro-table/components/tool-print.js +36 -46
- package/es/ele-pro-table/index.d.ts +16 -13
- package/es/ele-pro-table/index.js +41 -64
- package/es/ele-pro-table/props.d.ts +2 -2
- package/es/ele-pro-table/props.js +1 -1
- package/es/ele-pro-table/style/index.scss +1 -0
- package/es/ele-pro-table/types.d.ts +3 -3
- package/es/ele-pro-table/util.d.ts +38 -30
- package/es/ele-pro-table/util.js +111 -80
- package/es/ele-qr-code/qrcodegen.js +34 -70
- package/es/ele-segmented/index.d.ts +1 -1
- package/es/ele-segmented/index.js +3 -3
- package/es/ele-split-panel/index.d.ts +1 -1
- package/es/ele-split-panel/index.js +3 -3
- package/es/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
- package/es/ele-tab-wrap/components/tab-dropdown.js +3 -3
- package/es/ele-table-select/index.d.ts +19 -19
- package/es/ele-table-select/index.js +42 -37
- package/es/ele-tool/index.d.ts +6 -3
- package/es/ele-tool/index.js +35 -32
- package/es/ele-tool/style/index.js +0 -1
- package/es/ele-tool/style/index.scss +0 -13
- package/es/ele-toolbar/index.d.ts +3247 -1
- package/es/ele-toolbar/index.js +44 -5
- package/es/ele-toolbar/props.d.ts +6 -2
- package/es/ele-toolbar/props.js +2 -0
- package/es/ele-toolbar/style/index.js +1 -0
- package/es/ele-toolbar/types.d.ts +15 -0
- package/es/ele-tooltip/index.d.ts +9 -9
- package/es/ele-tooltip/index.js +25 -25
- package/es/ele-tour/index.d.ts +3 -3
- package/es/ele-tour/index.js +10 -10
- package/es/ele-tree-select/index.d.ts +9 -9
- package/es/ele-tree-select/index.js +28 -28
- package/es/ele-upload-list/components/list-item.d.ts +3 -3
- package/es/ele-upload-list/components/list-item.js +7 -7
- package/es/ele-upload-list/index.d.ts +4 -4
- package/es/ele-upload-list/index.js +13 -13
- package/es/ele-virtual-table/components/body-cell.d.ts +8 -8
- package/es/ele-virtual-table/components/body-cell.js +24 -24
- package/es/ele-virtual-table/components/body-row.d.ts +7 -7
- package/es/ele-virtual-table/components/body-row.js +21 -21
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +1 -1
- package/es/ele-virtual-table/components/cell-checkbox.js +3 -3
- package/es/ele-virtual-table/components/cell-filter.d.ts +5 -5
- package/es/ele-virtual-table/components/cell-filter.js +18 -18
- package/es/ele-virtual-table/components/footer-row.d.ts +1 -1
- package/es/ele-virtual-table/components/footer-row.js +3 -3
- package/es/ele-virtual-table/components/header-cell.d.ts +5 -5
- package/es/ele-virtual-table/components/header-cell.js +15 -15
- package/es/ele-virtual-table/components/header-row.d.ts +5 -5
- package/es/ele-virtual-table/components/header-row.js +15 -15
- package/es/ele-virtual-table/index.d.ts +23 -21
- package/es/ele-virtual-table/index.js +50 -48
- package/es/ele-virtual-table/util.js +3 -3
- package/es/ele-watermark/index.js +1 -0
- 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/style/themes/default.scss +8 -8
- package/es/style/themes/rounded.scss +1 -7
- package/es/utils/core.d.ts +7 -1
- 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 +30 -11
- package/lib/ele-admin-layout/props.cjs +14 -1
- package/lib/ele-admin-layout/props.d.ts +14 -1
- package/lib/ele-admin-layout/style/index.scss +7 -2
- package/lib/ele-admin-layout/style/sidebar.scss +2 -0
- package/lib/ele-alert/index.cjs +3 -3
- package/lib/ele-alert/index.d.ts +1 -1
- package/lib/ele-app/components/message-body.cjs +11 -5
- package/lib/ele-app/components/message-body.d.ts +7 -1
- 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/plus.d.ts +3 -0
- package/lib/ele-app/style/overwrite/message-box/index.scss +19 -0
- package/lib/ele-avatar-group/index.cjs +15 -15
- package/lib/ele-avatar-group/index.d.ts +4 -4
- package/lib/ele-basic-select/index.cjs +16 -16
- package/lib/ele-basic-select/index.d.ts +5 -5
- package/lib/ele-card/index.cjs +1 -1
- package/lib/ele-check-card/index.cjs +4 -4
- package/lib/ele-check-card/index.d.ts +1 -1
- package/lib/ele-copyable/index.cjs +6 -6
- package/lib/ele-copyable/index.d.ts +2 -2
- package/lib/ele-cropper/components/cropper-tools.cjs +10 -10
- package/lib/ele-cropper/components/cropper-tools.d.ts +3 -3
- package/lib/ele-cropper/index.cjs +39 -39
- package/lib/ele-cropper/index.d.ts +13 -13
- package/lib/ele-cropper-modal/index.cjs +3 -3
- package/lib/ele-cropper-modal/index.d.ts +1 -1
- package/lib/ele-data-table/util.cjs +1 -1
- package/lib/ele-drawer/index.cjs +18 -18
- package/lib/ele-drawer/index.d.ts +8 -8
- package/lib/ele-dropdown/index.cjs +9 -9
- package/lib/ele-dropdown/index.d.ts +3 -3
- package/lib/ele-ellipsis/index.cjs +3 -3
- package/lib/ele-ellipsis/index.d.ts +1 -1
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -15
- package/lib/ele-file-list/components/file-grid-item.d.ts +5 -5
- package/lib/ele-file-list/components/file-grid.cjs +15 -15
- package/lib/ele-file-list/components/file-grid.d.ts +6 -6
- package/lib/ele-file-list/components/file-table-item.cjs +15 -15
- package/lib/ele-file-list/components/file-table-item.d.ts +5 -5
- package/lib/ele-file-list/components/file-table.cjs +19 -19
- package/lib/ele-file-list/components/file-table.d.ts +7 -7
- package/lib/ele-file-list/index.cjs +22 -22
- package/lib/ele-file-list/index.d.ts +6 -6
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +1 -1
- package/lib/ele-icon-select/components/icon-grid.cjs +6 -6
- package/lib/ele-icon-select/components/icon-grid.d.ts +2 -2
- package/lib/ele-icon-select/index.cjs +23 -23
- package/lib/ele-icon-select/index.d.ts +7 -7
- package/lib/ele-menus/index.cjs +15 -15
- package/lib/ele-menus/style/index.scss +1 -0
- package/lib/ele-menus/util.cjs +49 -26
- package/lib/ele-menus/util.d.ts +7 -0
- package/lib/ele-modal/index.cjs +18 -18
- package/lib/ele-modal/index.d.ts +6 -6
- package/lib/ele-pagination/index.cjs +6 -6
- package/lib/ele-pagination/index.d.ts +2 -2
- package/lib/ele-popconfirm/index.cjs +15 -15
- package/lib/ele-popconfirm/index.d.ts +7 -17
- package/lib/ele-popconfirm/props.d.ts +2 -7
- package/lib/ele-popover/index.cjs +15 -15
- package/lib/ele-popover/index.d.ts +7 -17
- package/lib/ele-popover/props.cjs +1 -0
- package/lib/ele-popover/props.d.ts +1 -6
- package/lib/ele-printer/index.cjs +17 -20
- package/lib/ele-printer/index.d.ts +1 -1
- package/lib/ele-printer/style/index.scss +2 -2
- package/lib/ele-printer/types.d.ts +0 -2
- package/lib/ele-printer/util.cjs +118 -109
- package/lib/ele-printer/util.d.ts +9 -30
- package/lib/ele-pro-layout/index.cjs +8 -3
- package/lib/ele-pro-layout/index.d.ts +31 -21
- package/lib/ele-pro-layout/props.cjs +11 -1
- package/lib/ele-pro-layout/props.d.ts +11 -1
- package/lib/ele-pro-table/components/table-tools.cjs +6 -13
- package/lib/ele-pro-table/components/table-tools.d.ts +3 -3
- package/lib/ele-pro-table/components/tool-column-list.cjs +33 -33
- package/lib/ele-pro-table/components/tool-column-list.d.ts +9 -9
- package/lib/ele-pro-table/components/tool-column.cjs +79 -101
- package/lib/ele-pro-table/components/tool-column.d.ts +24 -38
- package/lib/ele-pro-table/components/tool-export.cjs +28 -40
- package/lib/ele-pro-table/components/tool-export.d.ts +4 -4
- package/lib/ele-pro-table/components/tool-print.cjs +36 -46
- package/lib/ele-pro-table/components/tool-print.d.ts +10 -7
- package/lib/ele-pro-table/index.cjs +41 -64
- package/lib/ele-pro-table/index.d.ts +16 -13
- package/lib/ele-pro-table/props.cjs +1 -1
- package/lib/ele-pro-table/props.d.ts +2 -2
- package/lib/ele-pro-table/style/index.scss +1 -0
- package/lib/ele-pro-table/types.d.ts +3 -3
- package/lib/ele-pro-table/util.cjs +111 -80
- package/lib/ele-pro-table/util.d.ts +38 -30
- package/lib/ele-qr-code/qrcodegen.cjs +34 -70
- package/lib/ele-segmented/index.cjs +3 -3
- package/lib/ele-segmented/index.d.ts +1 -1
- package/lib/ele-split-panel/index.cjs +3 -3
- package/lib/ele-split-panel/index.d.ts +1 -1
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +3 -3
- package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
- package/lib/ele-table-select/index.cjs +42 -37
- package/lib/ele-table-select/index.d.ts +19 -19
- package/lib/ele-tool/index.cjs +34 -31
- package/lib/ele-tool/index.d.ts +6 -3
- package/lib/ele-tool/style/index.cjs +0 -1
- package/lib/ele-tool/style/index.scss +0 -13
- package/lib/ele-toolbar/index.cjs +42 -3
- package/lib/ele-toolbar/index.d.ts +3247 -1
- package/lib/ele-toolbar/props.cjs +2 -0
- package/lib/ele-toolbar/props.d.ts +6 -2
- package/lib/ele-toolbar/style/index.cjs +1 -0
- package/lib/ele-toolbar/types.d.ts +15 -0
- package/lib/ele-tooltip/index.cjs +25 -25
- package/lib/ele-tooltip/index.d.ts +9 -9
- package/lib/ele-tour/index.cjs +10 -10
- package/lib/ele-tour/index.d.ts +3 -3
- package/lib/ele-tree-select/index.cjs +28 -28
- package/lib/ele-tree-select/index.d.ts +9 -9
- package/lib/ele-upload-list/components/list-item.cjs +7 -7
- package/lib/ele-upload-list/components/list-item.d.ts +3 -3
- package/lib/ele-upload-list/index.cjs +13 -13
- package/lib/ele-upload-list/index.d.ts +4 -4
- package/lib/ele-virtual-table/components/body-cell.cjs +24 -24
- package/lib/ele-virtual-table/components/body-cell.d.ts +8 -8
- package/lib/ele-virtual-table/components/body-row.cjs +21 -21
- package/lib/ele-virtual-table/components/body-row.d.ts +7 -7
- package/lib/ele-virtual-table/components/cell-checkbox.cjs +3 -3
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +1 -1
- package/lib/ele-virtual-table/components/cell-filter.cjs +18 -18
- package/lib/ele-virtual-table/components/cell-filter.d.ts +5 -5
- package/lib/ele-virtual-table/components/footer-row.cjs +3 -3
- package/lib/ele-virtual-table/components/footer-row.d.ts +1 -1
- package/lib/ele-virtual-table/components/header-cell.cjs +15 -15
- package/lib/ele-virtual-table/components/header-cell.d.ts +5 -5
- package/lib/ele-virtual-table/components/header-row.cjs +15 -15
- package/lib/ele-virtual-table/components/header-row.d.ts +5 -5
- package/lib/ele-virtual-table/index.cjs +50 -48
- package/lib/ele-virtual-table/index.d.ts +23 -21
- package/lib/ele-virtual-table/util.cjs +3 -3
- package/lib/ele-watermark/index.cjs +1 -0
- 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/style/themes/default.scss +8 -8
- package/lib/style/themes/rounded.scss +1 -7
- package/lib/utils/core.d.ts +7 -1
- package/lib/utils/message-box.cjs +27 -1
- package/lib/utils/message.cjs +35 -12
- package/package.json +11 -11
package/es/utils/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, provide, inject, onActivated, onDeactivated, isVNode, h, mergeProps } from "vue";
|
|
1
|
+
import { getCurrentInstance, provide, inject, onActivated, onDeactivated, onBeforeUnmount, isVNode, h, mergeProps } from "vue";
|
|
2
2
|
import { ElMessage } from "element-plus";
|
|
3
3
|
import { useGlobalProps } from "../ele-config-provider/receiver";
|
|
4
4
|
import { useLayoutState } from "../ele-pro-layout/util";
|
|
@@ -40,7 +40,7 @@ function getOffsetStyle(offset, userStyle) {
|
|
|
40
40
|
function isObjOpt(params) {
|
|
41
41
|
return params != null && typeof params === "object" && !isVNode(params);
|
|
42
42
|
}
|
|
43
|
-
function normalizeOption(params, globalOpt, onClose, type, loading, getWrapEl2, groupKey) {
|
|
43
|
+
function normalizeOption(params, globalOpt, onClose, type, loading, getWrapEl2, groupKey, messageId, onMessageDestroy) {
|
|
44
44
|
const opt = { ...globalOpt || {} };
|
|
45
45
|
if (isObjOpt(params)) {
|
|
46
46
|
Object.assign(opt, params);
|
|
@@ -89,7 +89,9 @@ function normalizeOption(params, globalOpt, onClose, type, loading, getWrapEl2,
|
|
|
89
89
|
showClose: opt.showClose,
|
|
90
90
|
dangerouslyUseHTMLString: opt.dangerouslyUseHTMLString,
|
|
91
91
|
loading,
|
|
92
|
-
|
|
92
|
+
messageId,
|
|
93
|
+
onClose,
|
|
94
|
+
onMessageDestroy
|
|
93
95
|
},
|
|
94
96
|
{ default: isFn ? content : isStr ? void 0 : () => content }
|
|
95
97
|
);
|
|
@@ -161,7 +163,8 @@ function useMessage(globalOpt) {
|
|
|
161
163
|
const globalProps = useGlobalProps("message");
|
|
162
164
|
const appContext = (_b = (_a = getCurrentInstance) == null ? void 0 : _a()) == null ? void 0 : _b.appContext;
|
|
163
165
|
const groupKey = (globalOpt == null ? void 0 : globalOpt.groupKey) || getDefaultGroupKey();
|
|
164
|
-
const state = { wrapEl: null, isActivated: true };
|
|
166
|
+
const state = { wrapEl: null, isActivated: true, id: 0 };
|
|
167
|
+
const instances = /* @__PURE__ */ new Map();
|
|
165
168
|
const hideClass = "is-hide";
|
|
166
169
|
provide(MESSAGE_KEY, { groupKey, getInnerWrap: () => getWrap(true) });
|
|
167
170
|
const parentMsg = inject(MESSAGE_KEY, null);
|
|
@@ -173,6 +176,12 @@ function useMessage(globalOpt) {
|
|
|
173
176
|
state.isActivated = false;
|
|
174
177
|
state.wrapEl && state.wrapEl.classList.add(hideClass);
|
|
175
178
|
});
|
|
179
|
+
onBeforeUnmount(() => {
|
|
180
|
+
for (const [_key, ins] of instances) {
|
|
181
|
+
ins && ins.close && ins.close();
|
|
182
|
+
}
|
|
183
|
+
instances.clear();
|
|
184
|
+
});
|
|
176
185
|
const getWrap = (inner) => {
|
|
177
186
|
if (inner) {
|
|
178
187
|
if (parentMsg != null && parentMsg.groupKey === groupKey) {
|
|
@@ -190,49 +199,63 @@ function useMessage(globalOpt) {
|
|
|
190
199
|
}
|
|
191
200
|
return getWrapEl();
|
|
192
201
|
};
|
|
193
|
-
const
|
|
194
|
-
|
|
202
|
+
const getOpt = function(params, onClose, type, loading) {
|
|
203
|
+
state.id++;
|
|
204
|
+
const msgId = `m_${state.id}`;
|
|
205
|
+
const opt = normalizeOption(
|
|
195
206
|
params,
|
|
196
207
|
{ ...globalProps.value || {}, ...globalOpt || {} },
|
|
197
208
|
onClose,
|
|
198
209
|
type,
|
|
199
210
|
loading,
|
|
200
211
|
getWrap,
|
|
201
|
-
groupKey
|
|
212
|
+
groupKey,
|
|
213
|
+
msgId,
|
|
214
|
+
(messageId) => {
|
|
215
|
+
messageId && instances.delete(messageId);
|
|
216
|
+
}
|
|
202
217
|
);
|
|
218
|
+
return { opt, msgId };
|
|
203
219
|
};
|
|
204
220
|
const message = function(params) {
|
|
205
|
-
const opt =
|
|
221
|
+
const { opt, msgId } = getOpt(params, () => ins.close());
|
|
206
222
|
const ins = ElMessage(opt, appContext);
|
|
223
|
+
instances.set(msgId, ins);
|
|
207
224
|
return ins;
|
|
208
225
|
};
|
|
209
226
|
message.success = function(params) {
|
|
210
|
-
const opt =
|
|
227
|
+
const { opt, msgId } = getOpt(params, () => ins.close(), "success", false);
|
|
211
228
|
const ins = ElMessage(opt, appContext);
|
|
229
|
+
instances.set(msgId, ins);
|
|
212
230
|
return ins;
|
|
213
231
|
};
|
|
214
232
|
message.warning = function(params) {
|
|
215
|
-
const opt =
|
|
233
|
+
const { opt, msgId } = getOpt(params, () => ins.close(), "warning", false);
|
|
216
234
|
const ins = ElMessage(opt, appContext);
|
|
235
|
+
instances.set(msgId, ins);
|
|
217
236
|
return ins;
|
|
218
237
|
};
|
|
219
238
|
message.error = function(params) {
|
|
220
|
-
const opt =
|
|
239
|
+
const { opt, msgId } = getOpt(params, () => ins.close(), "error", false);
|
|
221
240
|
const ins = ElMessage(opt, appContext);
|
|
241
|
+
instances.set(msgId, ins);
|
|
222
242
|
return ins;
|
|
223
243
|
};
|
|
224
244
|
message.info = function(params) {
|
|
225
|
-
const opt =
|
|
245
|
+
const { opt, msgId } = getOpt(params, () => ins.close());
|
|
226
246
|
const ins = ElMessage(opt, appContext);
|
|
247
|
+
instances.set(msgId, ins);
|
|
227
248
|
return ins;
|
|
228
249
|
};
|
|
229
250
|
message.loading = function(params) {
|
|
230
251
|
blurCurrentFocus();
|
|
231
|
-
const opt =
|
|
252
|
+
const { opt, msgId } = getOpt(params, () => ins.close(), void 0, true);
|
|
232
253
|
const ins = ElMessage(opt, appContext);
|
|
254
|
+
instances.set(msgId, ins);
|
|
233
255
|
return ins;
|
|
234
256
|
};
|
|
235
257
|
message.closeAll = function(type) {
|
|
258
|
+
instances.clear();
|
|
236
259
|
return ElMessage.closeAll(type);
|
|
237
260
|
};
|
|
238
261
|
return message;
|
package/lib/components.cjs
CHANGED
|
@@ -14,9 +14,8 @@ exports.EleCropperModal = index$3;
|
|
|
14
14
|
exports.EleMapPicker = index$4;
|
|
15
15
|
exports.EleXgPlayer = index$5;
|
|
16
16
|
Object.keys(coreComponents).forEach((k) => {
|
|
17
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
17
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => coreComponents[k]
|
|
20
|
+
});
|
|
22
21
|
});
|
package/lib/core-export.cjs
CHANGED
|
@@ -14,51 +14,44 @@ exports.LayoutTool = layoutTool;
|
|
|
14
14
|
exports.SidebarTool = layoutTool;
|
|
15
15
|
exports.TabDropdown = tabDropdown;
|
|
16
16
|
Object.keys(chartThemeDark).forEach((k) => {
|
|
17
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
17
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => chartThemeDark[k]
|
|
20
|
+
});
|
|
22
21
|
});
|
|
23
22
|
Object.keys(chartTheme).forEach((k) => {
|
|
24
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
23
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: () => chartTheme[k]
|
|
26
|
+
});
|
|
29
27
|
});
|
|
30
28
|
Object.keys(core).forEach((k) => {
|
|
31
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
29
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: () => core[k]
|
|
32
|
+
});
|
|
36
33
|
});
|
|
37
34
|
Object.keys(menuUtil).forEach((k) => {
|
|
38
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
35
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: () => menuUtil[k]
|
|
38
|
+
});
|
|
43
39
|
});
|
|
44
40
|
Object.keys(message).forEach((k) => {
|
|
45
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
41
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: () => message[k]
|
|
44
|
+
});
|
|
50
45
|
});
|
|
51
46
|
Object.keys(messageBox).forEach((k) => {
|
|
52
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
47
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: () => messageBox[k]
|
|
50
|
+
});
|
|
57
51
|
});
|
|
58
52
|
Object.keys(validate).forEach((k) => {
|
|
59
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
});
|
|
53
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: () => validate[k]
|
|
56
|
+
});
|
|
64
57
|
});
|
package/lib/core.cjs
CHANGED
|
@@ -8,16 +8,14 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
get: () => coreInstaller.installer
|
|
9
9
|
});
|
|
10
10
|
Object.keys(coreComponents).forEach((k) => {
|
|
11
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
11
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => coreComponents[k]
|
|
14
|
+
});
|
|
16
15
|
});
|
|
17
16
|
Object.keys(coreExport).forEach((k) => {
|
|
18
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
17
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => coreExport[k]
|
|
20
|
+
});
|
|
23
21
|
});
|
|
@@ -323,42 +323,22 @@ const _export_sfc = (sfc, props2) => {
|
|
|
323
323
|
}
|
|
324
324
|
return target;
|
|
325
325
|
};
|
|
326
|
-
const _hoisted_1 =
|
|
327
|
-
|
|
328
|
-
class: "ele-admin-logo"
|
|
329
|
-
};
|
|
330
|
-
const _hoisted_2 = ["src"];
|
|
331
|
-
const _hoisted_3 = {
|
|
326
|
+
const _hoisted_1 = ["src"];
|
|
327
|
+
const _hoisted_2 = {
|
|
332
328
|
key: 1,
|
|
333
329
|
class: "ele-admin-tools"
|
|
334
330
|
};
|
|
335
|
-
const
|
|
331
|
+
const _hoisted_3 = {
|
|
336
332
|
key: 2,
|
|
337
333
|
class: "ele-admin-breadcrumb"
|
|
338
334
|
};
|
|
339
|
-
const
|
|
340
|
-
key: 3,
|
|
341
|
-
class: "ele-admin-menus"
|
|
342
|
-
};
|
|
343
|
-
const _hoisted_6 = {
|
|
335
|
+
const _hoisted_4 = {
|
|
344
336
|
key: 5,
|
|
345
337
|
class: "ele-admin-tools"
|
|
346
338
|
};
|
|
339
|
+
const _hoisted_5 = ["src"];
|
|
340
|
+
const _hoisted_6 = ["src"];
|
|
347
341
|
const _hoisted_7 = {
|
|
348
|
-
key: 0,
|
|
349
|
-
class: "ele-admin-logo"
|
|
350
|
-
};
|
|
351
|
-
const _hoisted_8 = ["src"];
|
|
352
|
-
const _hoisted_9 = {
|
|
353
|
-
key: 0,
|
|
354
|
-
class: "ele-admin-logo-title"
|
|
355
|
-
};
|
|
356
|
-
const _hoisted_10 = {
|
|
357
|
-
key: 1,
|
|
358
|
-
class: "ele-admin-logo"
|
|
359
|
-
};
|
|
360
|
-
const _hoisted_11 = ["src"];
|
|
361
|
-
const _hoisted_12 = {
|
|
362
342
|
ref: "modalsRef",
|
|
363
343
|
class: "ele-admin-modals"
|
|
364
344
|
};
|
|
@@ -399,24 +379,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
399
379
|
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.handleHeadMouseenter && _ctx.handleHeadMouseenter(...args)),
|
|
400
380
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.handleHeadMouseleave && _ctx.handleHeadMouseleave(...args))
|
|
401
381
|
}, [
|
|
402
|
-
_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
382
|
+
_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
383
|
+
key: 0,
|
|
384
|
+
class: "ele-admin-logo",
|
|
385
|
+
style: vue.normalizeStyle(_ctx.logoStyle)
|
|
386
|
+
}, [
|
|
403
387
|
_ctx.logoSrc || _ctx.$slots.logo ? vue.renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
404
|
-
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
388
|
+
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_1)
|
|
405
389
|
]) : vue.createCommentVNode("", true),
|
|
406
390
|
_ctx.logoTitle || _ctx.$slots.logoTitle ? vue.renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
407
391
|
vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.logoTitle), 1)
|
|
408
392
|
]) : vue.createCommentVNode("", true)
|
|
409
|
-
])) : vue.createCommentVNode("", true),
|
|
410
|
-
_ctx.$slots.left ? (vue.openBlock(), vue.createElementBlock("div",
|
|
393
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
394
|
+
_ctx.$slots.left ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
411
395
|
vue.renderSlot(_ctx.$slots, "left")
|
|
412
396
|
])) : vue.createCommentVNode("", true),
|
|
413
|
-
_ctx.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div",
|
|
397
|
+
_ctx.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
414
398
|
vue.renderSlot(_ctx.$slots, "breadcrumb", {}, () => [
|
|
415
399
|
_ctx.levels && _ctx.levels.length ? (vue.openBlock(), vue.createBlock(_component_EleBreadcrumb, vue.mergeProps({ key: 0 }, _ctx.breadcrumb === true ? {} : _ctx.breadcrumb, { items: _ctx.levels }), null, 16, ["items"])) : vue.createCommentVNode("", true)
|
|
416
400
|
])
|
|
417
401
|
])) : vue.createCommentVNode("", true),
|
|
418
402
|
vue.renderSlot(_ctx.$slots, "center"),
|
|
419
|
-
!_ctx.showHeaderTabs || _ctx.showHeaderMenus ? (vue.openBlock(), vue.createElementBlock("div",
|
|
403
|
+
!_ctx.showHeaderTabs || _ctx.showHeaderMenus ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
404
|
+
key: 3,
|
|
405
|
+
class: "ele-admin-menus",
|
|
406
|
+
style: vue.normalizeStyle(_ctx.headerMenusStyle)
|
|
407
|
+
}, [
|
|
420
408
|
_ctx.showHeaderMenus && _ctx.headerMenus ? (vue.openBlock(), vue.createBlock(_component_EleMenus, vue.mergeProps({
|
|
421
409
|
key: 0,
|
|
422
410
|
mode: "horizontal",
|
|
@@ -446,7 +434,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
446
434
|
key: "1"
|
|
447
435
|
} : void 0
|
|
448
436
|
]), 1040, ["theme", "popupTheme", "defaultActive", "items", "onOpen", "onClose", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : vue.createCommentVNode("", true)
|
|
449
|
-
])) : vue.createCommentVNode("", true),
|
|
437
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
450
438
|
_ctx.showHeaderTabs ? (vue.openBlock(), vue.createBlock(_component_LayoutTabs, {
|
|
451
439
|
key: 4,
|
|
452
440
|
tabs: _ctx.tabs,
|
|
@@ -476,7 +464,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
476
464
|
};
|
|
477
465
|
})
|
|
478
466
|
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : vue.createCommentVNode("", true),
|
|
479
|
-
_ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div",
|
|
467
|
+
_ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
480
468
|
vue.renderSlot(_ctx.$slots, "right")
|
|
481
469
|
])) : vue.createCommentVNode("", true)
|
|
482
470
|
], 38)) : vue.createCommentVNode("", true)
|
|
@@ -508,13 +496,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
508
496
|
onMouseenter: _cache[2] || (_cache[2] = (...args) => _ctx.handleBoxMouseEnter && _ctx.handleBoxMouseEnter(...args)),
|
|
509
497
|
onMouseleave: _cache[3] || (_cache[3] = (...args) => _ctx.handleBoxMouseLeave && _ctx.handleBoxMouseLeave(...args))
|
|
510
498
|
}, [
|
|
511
|
-
!_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.$slots.logo) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
499
|
+
!_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.$slots.logo) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
500
|
+
key: 0,
|
|
501
|
+
class: "ele-admin-logo",
|
|
502
|
+
style: vue.normalizeStyle(_ctx.logoStyle)
|
|
503
|
+
}, [
|
|
512
504
|
vue.renderSlot(_ctx.$slots, "logo", {}, () => [
|
|
513
|
-
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
505
|
+
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_5)
|
|
514
506
|
])
|
|
515
|
-
])) : vue.createCommentVNode("", true),
|
|
507
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
516
508
|
vue.renderSlot(_ctx.$slots, "boxTop"),
|
|
517
|
-
vue.createVNode(_component_ElScrollbar, {
|
|
509
|
+
vue.createVNode(_component_ElScrollbar, {
|
|
510
|
+
class: "ele-admin-menus",
|
|
511
|
+
style: vue.normalizeStyle(_ctx.sideboxMenusStyle)
|
|
512
|
+
}, {
|
|
518
513
|
default: vue.withCtx(() => [
|
|
519
514
|
_ctx.sideboxMenus ? (vue.openBlock(), vue.createBlock(_component_EleMenus, vue.mergeProps({
|
|
520
515
|
key: 0,
|
|
@@ -548,7 +543,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
543
|
]), 1040, ["theme", "defaultActive", "collapse", "items", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : vue.createCommentVNode("", true)
|
|
549
544
|
]),
|
|
550
545
|
_: 3
|
|
551
|
-
}),
|
|
546
|
+
}, 8, ["style"]),
|
|
552
547
|
vue.renderSlot(_ctx.$slots, "boxBottom")
|
|
553
548
|
], 38)) : vue.createCommentVNode("", true),
|
|
554
549
|
!_ctx.isBoxSidebar ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -565,21 +560,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
565
560
|
onMouseleave: _cache[5] || (_cache[5] = (...args) => _ctx.handleSideMouseLeave && _ctx.handleSideMouseLeave(...args))
|
|
566
561
|
}, [
|
|
567
562
|
_ctx.isMixSidebar ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
568
|
-
!_ctx.isHeaderLogo && (_ctx.logoTitle || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
563
|
+
!_ctx.isHeaderLogo && (_ctx.logoTitle || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
564
|
+
key: 0,
|
|
565
|
+
class: "ele-admin-logo-title",
|
|
566
|
+
style: vue.normalizeStyle(_ctx.logoTitleStyle)
|
|
567
|
+
}, [
|
|
569
568
|
vue.renderSlot(_ctx.$slots, "logoTitle", {}, () => [
|
|
570
569
|
vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.logoTitle), 1)
|
|
571
570
|
])
|
|
572
|
-
])) : vue.createCommentVNode("", true)
|
|
573
|
-
], 64)) : !_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
571
|
+
], 4)) : vue.createCommentVNode("", true)
|
|
572
|
+
], 64)) : !_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
573
|
+
key: 1,
|
|
574
|
+
class: "ele-admin-logo",
|
|
575
|
+
style: vue.normalizeStyle(_ctx.logoStyle)
|
|
576
|
+
}, [
|
|
574
577
|
_ctx.logoSrc || _ctx.$slots.logo ? vue.renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
575
|
-
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8,
|
|
578
|
+
vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_6)
|
|
576
579
|
]) : vue.createCommentVNode("", true),
|
|
577
580
|
_ctx.logoTitle || _ctx.$slots.logoTitle ? vue.renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
578
581
|
vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.logoTitle), 1)
|
|
579
582
|
]) : vue.createCommentVNode("", true)
|
|
580
|
-
])) : vue.createCommentVNode("", true),
|
|
583
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
581
584
|
vue.renderSlot(_ctx.$slots, "top"),
|
|
582
|
-
vue.createVNode(_component_ElScrollbar, {
|
|
585
|
+
vue.createVNode(_component_ElScrollbar, {
|
|
586
|
+
class: "ele-admin-menus",
|
|
587
|
+
style: vue.normalizeStyle(_ctx.sidebarMenusStyle)
|
|
588
|
+
}, {
|
|
583
589
|
default: vue.withCtx(() => [
|
|
584
590
|
_ctx.sidebarMenus ? (vue.openBlock(), vue.createBlock(_component_EleMenus, vue.mergeProps({
|
|
585
591
|
key: 0,
|
|
@@ -612,7 +618,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
612
618
|
]), 1040, ["theme", "defaultActive", "collapse", "items", "onOpen", "onClose", "onItemClick"])) : vue.createCommentVNode("", true)
|
|
613
619
|
]),
|
|
614
620
|
_: 3
|
|
615
|
-
}),
|
|
621
|
+
}, 8, ["style"]),
|
|
616
622
|
vue.renderSlot(_ctx.$slots, "bottom")
|
|
617
623
|
], 38)) : vue.createCommentVNode("", true)
|
|
618
624
|
], 6)) : vue.createCommentVNode("", true)
|
|
@@ -666,7 +672,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
666
672
|
target: _ctx.fixedBody && _ctx.contentRef ? _ctx.contentRef : void 0,
|
|
667
673
|
style: _ctx.fixedBody ? { position: "absolute" } : void 0
|
|
668
674
|
}, _ctx.backTop === true ? {} : _ctx.backTop), null, 16, ["target", "style"])) : vue.createCommentVNode("", true),
|
|
669
|
-
vue.createElementVNode("div",
|
|
675
|
+
vue.createElementVNode("div", _hoisted_7, null, 512)
|
|
670
676
|
]),
|
|
671
677
|
default: vue.withCtx(() => [
|
|
672
678
|
vue.createElementVNode("div", {
|
|
@@ -3,7 +3,10 @@ import { MenuItem } from '../ele-menus/types';
|
|
|
3
3
|
import { TabPaneItem, TabEventOption } from '../ele-tabs/types';
|
|
4
4
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<{
|
|
6
|
-
height:
|
|
6
|
+
height: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
7
10
|
headerMenus: import('vue').PropType<MenuItem[]>;
|
|
8
11
|
headerActive: StringConstructor;
|
|
9
12
|
sidebarMenus: import('vue').PropType<MenuItem[]>;
|
|
@@ -28,6 +31,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
31
|
sidebarStyle: import('vue').PropType<import('./types').SidebarStyle>;
|
|
29
32
|
tabStyle: {
|
|
30
33
|
type: import('vue').PropType<import('./types').TabStyle>;
|
|
34
|
+
/** 是否禁用过渡动画 */
|
|
31
35
|
default: string;
|
|
32
36
|
};
|
|
33
37
|
fixedHeader: BooleanConstructor;
|
|
@@ -42,8 +46,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
46
|
tabSortable: BooleanConstructor;
|
|
43
47
|
headerTitleSlot: {
|
|
44
48
|
type: StringConstructor;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
49
|
+
default: string; /** 是否仅侧栏导航布局 */
|
|
50
|
+
}; /** 是否仅侧栏导航布局 */
|
|
47
51
|
headerIconSlot: {
|
|
48
52
|
type: StringConstructor;
|
|
49
53
|
default: string;
|
|
@@ -56,13 +60,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
56
60
|
type: StringConstructor;
|
|
57
61
|
default: string;
|
|
58
62
|
};
|
|
59
|
-
/** 是否双侧栏布局 */
|
|
60
63
|
sideboxTitleSlot: {
|
|
61
64
|
type: StringConstructor;
|
|
62
65
|
default: string;
|
|
63
66
|
};
|
|
64
67
|
sideboxIconSlot: {
|
|
65
68
|
type: StringConstructor;
|
|
69
|
+
/** 是否是移动端风格 */
|
|
66
70
|
default: string;
|
|
67
71
|
};
|
|
68
72
|
headerCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
@@ -70,13 +74,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
74
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
71
75
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
72
76
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
77
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
78
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
79
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
80
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
81
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
73
82
|
logoSrc: StringConstructor;
|
|
74
83
|
logoTitle: StringConstructor;
|
|
75
84
|
menuScrollToActive: {
|
|
76
85
|
type: BooleanConstructor;
|
|
77
86
|
default: boolean;
|
|
78
87
|
};
|
|
79
|
-
mobile: BooleanConstructor;
|
|
88
|
+
mobile: BooleanConstructor; /** 是否是暗色侧栏 */
|
|
80
89
|
}, {
|
|
81
90
|
ownSlots: string[];
|
|
82
91
|
tabSlots: string[];
|
|
@@ -150,13 +159,16 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
150
159
|
sideMenuItemClick: (_item: MenuItem, _e: MouseEvent) => boolean;
|
|
151
160
|
sideMouseenter: (_e: MouseEvent) => boolean;
|
|
152
161
|
sideMouseleave: (_e: MouseEvent) => boolean;
|
|
153
|
-
tabClick: (_option: TabEventOption) => boolean;
|
|
162
|
+
tabClick: (_option: TabEventOption) => boolean;
|
|
154
163
|
tabRemove: (_name: string) => boolean;
|
|
155
164
|
tabContextMenu: (_option: TabEventOption) => boolean;
|
|
156
165
|
tabSortChange: (_data: TabPaneItem[]) => boolean;
|
|
157
166
|
contentMounted: (_contentEl: HTMLElement, _modalsEl: HTMLElement) => boolean;
|
|
158
167
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
159
|
-
height:
|
|
168
|
+
height: {
|
|
169
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
160
172
|
headerMenus: import('vue').PropType<MenuItem[]>;
|
|
161
173
|
headerActive: StringConstructor;
|
|
162
174
|
sidebarMenus: import('vue').PropType<MenuItem[]>;
|
|
@@ -181,6 +193,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
181
193
|
sidebarStyle: import('vue').PropType<import('./types').SidebarStyle>;
|
|
182
194
|
tabStyle: {
|
|
183
195
|
type: import('vue').PropType<import('./types').TabStyle>;
|
|
196
|
+
/** 是否禁用过渡动画 */
|
|
184
197
|
default: string;
|
|
185
198
|
};
|
|
186
199
|
fixedHeader: BooleanConstructor;
|
|
@@ -195,8 +208,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
195
208
|
tabSortable: BooleanConstructor;
|
|
196
209
|
headerTitleSlot: {
|
|
197
210
|
type: StringConstructor;
|
|
198
|
-
default: string;
|
|
199
|
-
};
|
|
211
|
+
default: string; /** 是否仅侧栏导航布局 */
|
|
212
|
+
}; /** 是否仅侧栏导航布局 */
|
|
200
213
|
headerIconSlot: {
|
|
201
214
|
type: StringConstructor;
|
|
202
215
|
default: string;
|
|
@@ -209,13 +222,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
209
222
|
type: StringConstructor;
|
|
210
223
|
default: string;
|
|
211
224
|
};
|
|
212
|
-
/** 是否双侧栏布局 */
|
|
213
225
|
sideboxTitleSlot: {
|
|
214
226
|
type: StringConstructor;
|
|
215
227
|
default: string;
|
|
216
228
|
};
|
|
217
229
|
sideboxIconSlot: {
|
|
218
230
|
type: StringConstructor;
|
|
231
|
+
/** 是否是移动端风格 */
|
|
219
232
|
default: string;
|
|
220
233
|
};
|
|
221
234
|
headerCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
@@ -223,13 +236,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
223
236
|
sideboxCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
224
237
|
tabsCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
225
238
|
contentCustomStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
239
|
+
logoStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
240
|
+
logoTitleStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
241
|
+
headerMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
242
|
+
sidebarMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
243
|
+
sideboxMenusStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
226
244
|
logoSrc: StringConstructor;
|
|
227
245
|
logoTitle: StringConstructor;
|
|
228
246
|
menuScrollToActive: {
|
|
229
247
|
type: BooleanConstructor;
|
|
230
248
|
default: boolean;
|
|
231
249
|
};
|
|
232
|
-
mobile: BooleanConstructor;
|
|
250
|
+
mobile: BooleanConstructor; /** 是否是暗色侧栏 */
|
|
233
251
|
}>> & {
|
|
234
252
|
onTabClick?: ((_option: TabEventOption) => any) | undefined;
|
|
235
253
|
onTabRemove?: ((_name: string) => any) | undefined;
|
|
@@ -256,6 +274,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
256
274
|
onSideMouseleave?: ((_e: MouseEvent) => any) | undefined;
|
|
257
275
|
onContentMounted?: ((_contentEl: HTMLElement, _modalsEl: HTMLElement) => any) | undefined;
|
|
258
276
|
}, {
|
|
277
|
+
height: string | number;
|
|
259
278
|
collapse: boolean;
|
|
260
279
|
compact: boolean;
|
|
261
280
|
tabStyle: import('./types').TabStyle;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const adminLayoutProps = {
|
|
4
4
|
/** 高度 */
|
|
5
|
-
height:
|
|
5
|
+
height: {
|
|
6
|
+
type: [String, Number],
|
|
7
|
+
default: "100%"
|
|
8
|
+
},
|
|
6
9
|
/** 顶栏菜单数据 */
|
|
7
10
|
headerMenus: Array,
|
|
8
11
|
/** 顶栏菜单选中 */
|
|
@@ -112,6 +115,16 @@ const adminLayoutProps = {
|
|
|
112
115
|
tabsCustomStyle: Object,
|
|
113
116
|
/** 内容区样式 */
|
|
114
117
|
contentCustomStyle: Object,
|
|
118
|
+
/** logo样式 */
|
|
119
|
+
logoStyle: Object,
|
|
120
|
+
/** logo文字样式 */
|
|
121
|
+
logoTitleStyle: Object,
|
|
122
|
+
/** 顶栏菜单样式 */
|
|
123
|
+
headerMenusStyle: Object,
|
|
124
|
+
/** 侧栏菜单样式 */
|
|
125
|
+
sidebarMenusStyle: Object,
|
|
126
|
+
/** 双侧栏一级菜单样式 */
|
|
127
|
+
sideboxMenusStyle: Object,
|
|
115
128
|
/** logo图片地址 */
|
|
116
129
|
logoSrc: String,
|
|
117
130
|
/** logo文字 */
|
|
@@ -10,7 +10,10 @@ import { Layout, SidebarLayout, HeaderStyle, SidebarStyle, TabStyle, TabBar, Max
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const adminLayoutProps: {
|
|
12
12
|
/** 高度 */
|
|
13
|
-
height:
|
|
13
|
+
height: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
14
17
|
/** 顶栏菜单数据 */
|
|
15
18
|
headerMenus: PropType<MenuItem[]>;
|
|
16
19
|
/** 顶栏菜单选中 */
|
|
@@ -120,6 +123,16 @@ export declare const adminLayoutProps: {
|
|
|
120
123
|
tabsCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
121
124
|
/** 内容区样式 */
|
|
122
125
|
contentCustomStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
126
|
+
/** logo样式 */
|
|
127
|
+
logoStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
128
|
+
/** logo文字样式 */
|
|
129
|
+
logoTitleStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
130
|
+
/** 顶栏菜单样式 */
|
|
131
|
+
headerMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
132
|
+
/** 侧栏菜单样式 */
|
|
133
|
+
sidebarMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
134
|
+
/** 双侧栏一级菜单样式 */
|
|
135
|
+
sideboxMenusStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
123
136
|
/** logo图片地址 */
|
|
124
137
|
logoSrc: StringConstructor;
|
|
125
138
|
/** logo文字 */
|