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
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
background: eleVar('layout', 'bg');
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
position: relative;
|
|
17
|
-
min-height:
|
|
17
|
+
min-height: 100vh;
|
|
18
|
+
min-height: 100dvh;
|
|
18
19
|
|
|
19
20
|
& > .ele-admin-header {
|
|
20
21
|
z-index: calc(#{eleVar('layout', 'index')} + 4);
|
|
@@ -103,7 +104,11 @@
|
|
|
103
104
|
|
|
104
105
|
.ele-admin-layout {
|
|
105
106
|
/* 固定主体 */
|
|
106
|
-
&.is-fixed-body
|
|
107
|
+
&.is-fixed-body {
|
|
108
|
+
height: 100vh;
|
|
109
|
+
height: 100dvh;
|
|
110
|
+
}
|
|
111
|
+
|
|
107
112
|
&.is-fixed-body > .ele-admin-main,
|
|
108
113
|
&.is-fixed-body > .ele-admin-main > .ele-admin-body,
|
|
109
114
|
&.is-fixed-body > .ele-admin-main > .ele-admin-side,
|
package/lib/ele-alert/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
20
20
|
const isRich = vue.computed(() => {
|
|
21
21
|
return !!props2.description || !!slots.default;
|
|
22
22
|
});
|
|
23
|
-
const
|
|
23
|
+
const handleClose = (e) => {
|
|
24
24
|
if (!visible.value || !props2.closable) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
32
|
visible.value = true;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
return { visible, isRich,
|
|
35
|
+
return { visible, isRich, handleClose, open };
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -106,7 +106,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "ele-alert-close",
|
|
108
108
|
style: vue.normalizeStyle(_ctx.closeIconStyle),
|
|
109
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
109
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
|
|
110
110
|
}, [
|
|
111
111
|
vue.renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
112
112
|
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(_ctx.closeText), 1)) : (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 1 }, _ctx.closeIconProps || {})), {
|
package/lib/ele-alert/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
24
24
|
}, {
|
|
25
25
|
visible: import('vue').Ref<boolean>;
|
|
26
26
|
isRich: import('vue').ComputedRef<boolean>;
|
|
27
|
-
|
|
27
|
+
handleClose: (e: MouseEvent) => void;
|
|
28
28
|
open: () => void;
|
|
29
29
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
30
|
close: (_e: MouseEvent) => boolean;
|
|
@@ -25,13 +25,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
25
25
|
/** 内容是否是富文本 */
|
|
26
26
|
dangerouslyUseHTMLString: Boolean,
|
|
27
27
|
/** 是否是加载框 */
|
|
28
|
-
loading: Boolean
|
|
28
|
+
loading: Boolean,
|
|
29
|
+
/** 标识id */
|
|
30
|
+
messageId: String
|
|
29
31
|
},
|
|
30
32
|
emits: {
|
|
31
|
-
close: () => true
|
|
33
|
+
close: () => true,
|
|
34
|
+
messageDestroy: (_messageId) => true
|
|
32
35
|
},
|
|
33
|
-
setup(
|
|
34
|
-
|
|
36
|
+
setup(props, { emit }) {
|
|
37
|
+
vue.onBeforeUnmount(() => {
|
|
38
|
+
emit("messageDestroy", props.messageId);
|
|
39
|
+
});
|
|
40
|
+
return { handleClose: () => emit("close") };
|
|
35
41
|
}
|
|
36
42
|
});
|
|
37
43
|
const _export_sfc = (sfc, props) => {
|
|
@@ -76,7 +82,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
82
|
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
77
83
|
key: 0,
|
|
78
84
|
class: "ele-message-close",
|
|
79
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
85
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
|
|
80
86
|
}, [
|
|
81
87
|
vue.createVNode(_component_ElIcon, null, {
|
|
82
88
|
default: vue.withCtx(() => [
|
|
@@ -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
|
+
handleClose: () => 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;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const icons = require("../../icons");
|
|
4
|
+
const _sfc_main = vue.defineComponent({
|
|
5
|
+
name: "MessageBoxIcon",
|
|
6
|
+
components: {
|
|
7
|
+
CloseOutlined: icons.CloseOutlined,
|
|
8
|
+
InfoCircleFilled: icons.InfoCircleFilled,
|
|
9
|
+
CheckCircleFilled: icons.CheckCircleFilled,
|
|
10
|
+
ExclamationCircleFilled: icons.ExclamationCircleFilled,
|
|
11
|
+
CloseCircleFilled: icons.CloseCircleFilled
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
/** 类型 */
|
|
15
|
+
type: String,
|
|
16
|
+
/** 图标 */
|
|
17
|
+
icon: [String, Object, Function],
|
|
18
|
+
/** 标识id */
|
|
19
|
+
boxId: String
|
|
20
|
+
},
|
|
21
|
+
emits: {
|
|
22
|
+
boxDestroy: (_boxId) => true,
|
|
23
|
+
boxMounted: (_) => true
|
|
24
|
+
},
|
|
25
|
+
setup(props, { emit }) {
|
|
26
|
+
var _a;
|
|
27
|
+
const ins = (_a = vue.getCurrentInstance) == null ? void 0 : _a.call(vue);
|
|
28
|
+
vue.onBeforeUnmount(() => {
|
|
29
|
+
emit("boxDestroy", props.boxId);
|
|
30
|
+
});
|
|
31
|
+
vue.onMounted(() => {
|
|
32
|
+
var _a2, _b;
|
|
33
|
+
emit("boxMounted", {
|
|
34
|
+
boxId: props.boxId,
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
doClose: (_b = (_a2 = ins == null ? void 0 : ins.ctx) == null ? void 0 : _a2.$root) == null ? void 0 : _b.doClose
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const _export_sfc = (sfc, props) => {
|
|
43
|
+
const target = sfc.__vccOpts || sfc;
|
|
44
|
+
for (const [key, val] of props) {
|
|
45
|
+
target[key] = val;
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
};
|
|
49
|
+
const _hoisted_1 = { class: "ele-message-box-icon" };
|
|
50
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
51
|
+
const _component_CheckCircleFilled = vue.resolveComponent("CheckCircleFilled");
|
|
52
|
+
const _component_ExclamationCircleFilled = vue.resolveComponent("ExclamationCircleFilled");
|
|
53
|
+
const _component_CloseCircleFilled = vue.resolveComponent("CloseCircleFilled");
|
|
54
|
+
const _component_InfoCircleFilled = vue.resolveComponent("InfoCircleFilled");
|
|
55
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
56
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : _ctx.type === "success" ? (vue.openBlock(), vue.createBlock(_component_CheckCircleFilled, { key: 1 })) : _ctx.type === "warning" ? (vue.openBlock(), vue.createBlock(_component_ExclamationCircleFilled, { key: 2 })) : _ctx.type === "error" ? (vue.openBlock(), vue.createBlock(_component_CloseCircleFilled, { key: 3 })) : _ctx.type === "info" ? (vue.openBlock(), vue.createBlock(_component_InfoCircleFilled, { key: 4 })) : vue.createCommentVNode("", true)
|
|
57
|
+
], 512)), [
|
|
58
|
+
[vue.vShow, _ctx.type || _ctx.icon]
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
const messageBoxIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
62
|
+
module.exports = messageBoxIcon;
|
|
@@ -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;
|
package/lib/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
|
*/
|
package/lib/ele-app/plus.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { TableProps } from '../ele-table/props';
|
|
|
23
23
|
import type EleTabs from '../ele-tabs/index';
|
|
24
24
|
import type EleText from '../ele-text/index';
|
|
25
25
|
import type { TextProps } from '../ele-text/props';
|
|
26
|
+
import type EleTool from '../ele-tool/index';
|
|
26
27
|
import type { ToolProps } from '../ele-tool/props';
|
|
27
28
|
import type { ToolbarProps } from '../ele-toolbar/props';
|
|
28
29
|
import type EleTooltip from '../ele-tooltip/index';
|
|
@@ -137,6 +138,8 @@ export type EleTextProps = ComponentProps<TextProps>;
|
|
|
137
138
|
/**
|
|
138
139
|
* EleTool
|
|
139
140
|
*/
|
|
141
|
+
export type EleToolInstance = InstanceType<typeof EleTool> | null;
|
|
142
|
+
|
|
140
143
|
export type EleToolProps = Partial<ToolProps>;
|
|
141
144
|
|
|
142
145
|
/**
|
|
@@ -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;
|
|
@@ -43,19 +43,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
43
43
|
}
|
|
44
44
|
return props2.data.slice(props2.maxCount);
|
|
45
45
|
});
|
|
46
|
-
const
|
|
46
|
+
const handleItemHover = (item, e) => {
|
|
47
47
|
if (props2.tooltip && item.label) {
|
|
48
48
|
virtualRef.value = e.currentTarget;
|
|
49
49
|
tooltipContent.value = item.label;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
const
|
|
52
|
+
const handleItemClick = (item) => {
|
|
53
53
|
emit("itemClick", item);
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleMoreClick = () => {
|
|
56
56
|
emit("moreClick");
|
|
57
57
|
};
|
|
58
|
-
const
|
|
58
|
+
const handleError = (option) => {
|
|
59
59
|
emit("error", option);
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
@@ -67,10 +67,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
67
|
avatarData,
|
|
68
68
|
overflowCount,
|
|
69
69
|
overflowData,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
handleItemHover,
|
|
71
|
+
handleItemClick,
|
|
72
|
+
handleMoreClick,
|
|
73
|
+
handleError
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -99,9 +99,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
99
|
shape: _ctx.shape,
|
|
100
100
|
src: item.value,
|
|
101
101
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
102
|
-
onClick: ($event) => _ctx.
|
|
103
|
-
onError: (e) => _ctx.
|
|
104
|
-
onMouseover: (e) => _ctx.
|
|
102
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
103
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
104
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
105
105
|
}, {
|
|
106
106
|
default: vue.withCtx(() => [
|
|
107
107
|
_ctx.$slots.item ? vue.renderSlot(_ctx.$slots, "item", {
|
|
@@ -135,9 +135,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
135
|
shape: _ctx.shape,
|
|
136
136
|
src: item.value,
|
|
137
137
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
138
|
-
onClick: ($event) => _ctx.
|
|
139
|
-
onError: (e) => _ctx.
|
|
140
|
-
onMouseover: (e) => _ctx.
|
|
138
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
139
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
140
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
141
141
|
}, {
|
|
142
142
|
default: vue.withCtx(() => [
|
|
143
143
|
_ctx.$slots.item ? vue.renderSlot(_ctx.$slots, "item", {
|
|
@@ -157,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
shape: _ctx.shape,
|
|
158
158
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.moreStyle]),
|
|
159
159
|
class: "ele-avatar-more",
|
|
160
|
-
onClick: _ctx.
|
|
160
|
+
onClick: _ctx.handleMoreClick
|
|
161
161
|
}, {
|
|
162
162
|
default: vue.withCtx(() => [
|
|
163
163
|
vue.createElementVNode("span", _hoisted_1, [
|
|
@@ -31,10 +31,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
avatarData: import('vue').ComputedRef<AvatarItem[]>;
|
|
32
32
|
overflowCount: import('vue').ComputedRef<number>;
|
|
33
33
|
overflowData: import('vue').ComputedRef<AvatarItem[]>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
handleItemHover: (item: AvatarItem, e: MouseEvent) => void;
|
|
35
|
+
handleItemClick: (item: AvatarItem) => void;
|
|
36
|
+
handleMoreClick: () => void;
|
|
37
|
+
handleError: (option: AvatarErrorOption) => void;
|
|
38
38
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
39
|
itemClick: (_item: AvatarItem) => boolean;
|
|
40
40
|
moreClick: () => boolean;
|
|
@@ -92,24 +92,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
92
92
|
emit("update:visible", visible);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
const
|
|
95
|
+
const handleTagClose = (item) => {
|
|
96
96
|
if (!props2.disabled) {
|
|
97
97
|
emit("removeTag", item);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
const
|
|
100
|
+
const handleClear = () => {
|
|
101
101
|
emit("clear");
|
|
102
102
|
};
|
|
103
|
-
const
|
|
103
|
+
const handleInputFocus = (e) => {
|
|
104
104
|
if (props2.automaticDropdown && !props2.visible) {
|
|
105
105
|
updateVisible(true);
|
|
106
106
|
}
|
|
107
107
|
emit("focus", e);
|
|
108
108
|
};
|
|
109
|
-
const
|
|
109
|
+
const handleInputBlur = (e) => {
|
|
110
110
|
emit("blur", e);
|
|
111
111
|
};
|
|
112
|
-
const
|
|
112
|
+
const handleInputEsc = (e) => {
|
|
113
113
|
if (!props2.disabled && props2.visible) {
|
|
114
114
|
e.stopPropagation();
|
|
115
115
|
e.preventDefault();
|
|
@@ -157,11 +157,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
157
157
|
updateSearchValue,
|
|
158
158
|
updateInputValue,
|
|
159
159
|
updateVisible,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
handleTagClose,
|
|
161
|
+
handleClear,
|
|
162
|
+
handleInputFocus,
|
|
163
|
+
handleInputBlur,
|
|
164
|
+
handleInputEsc
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
});
|
|
@@ -239,15 +239,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
239
239
|
readonly: !_ctx.filterable || !_ctx.visible || _ctx.multiple,
|
|
240
240
|
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
241
241
|
"onUpdate:modelValue": _ctx.updateInputValue,
|
|
242
|
-
onFocus: _ctx.
|
|
243
|
-
onBlur: _ctx.
|
|
244
|
-
onKeydown: vue.withKeys(_ctx.
|
|
242
|
+
onFocus: _ctx.handleInputFocus,
|
|
243
|
+
onBlur: _ctx.handleInputBlur,
|
|
244
|
+
onKeydown: vue.withKeys(_ctx.handleInputEsc, ["esc"])
|
|
245
245
|
}, vue.createSlots({
|
|
246
246
|
suffix: vue.withCtx(() => [
|
|
247
247
|
_ctx.clearable && !_ctx.disabled && !_ctx.isEmpty ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
248
248
|
key: 0,
|
|
249
249
|
class: "ele-select-clear el-input__icon",
|
|
250
|
-
onClick: vue.withModifiers(_ctx.
|
|
250
|
+
onClick: vue.withModifiers(_ctx.handleClear, ["stop"])
|
|
251
251
|
}, {
|
|
252
252
|
default: vue.withCtx(() => [
|
|
253
253
|
vue.renderSlot(_ctx.$slots, "clearIcon", {}, () => [
|
|
@@ -284,7 +284,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
284
284
|
closable: !_ctx.disabled,
|
|
285
285
|
disableTransitions: true,
|
|
286
286
|
title: item.label,
|
|
287
|
-
onClose: ($event) => _ctx.
|
|
287
|
+
onClose: ($event) => _ctx.handleTagClose(item)
|
|
288
288
|
}, {
|
|
289
289
|
default: vue.withCtx(() => [
|
|
290
290
|
item.label && _ctx.maxTagTextLength && item.label.length > _ctx.maxTagTextLength ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -326,7 +326,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
326
326
|
modelValue: _ctx.searchValue,
|
|
327
327
|
placeholder: _ctx.inputPlaceholder,
|
|
328
328
|
"onUpdate:modelValue": _ctx.updateSearchValue,
|
|
329
|
-
onKeydown: vue.withKeys(_ctx.
|
|
329
|
+
onKeydown: vue.withKeys(_ctx.handleInputEsc, ["esc"])
|
|
330
330
|
}, null, 8, ["size", "modelValue", "placeholder", "onUpdate:modelValue", "onKeydown"])
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
@@ -50,11 +50,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
50
|
updateSearchValue: (modelValue: string) => void;
|
|
51
51
|
updateInputValue: (modelValue: string) => void;
|
|
52
52
|
updateVisible: (visible: boolean) => void;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
handleTagClose: (item: SelectedItem) => void;
|
|
54
|
+
handleClear: () => void;
|
|
55
|
+
handleInputFocus: (e: FocusEvent) => void;
|
|
56
|
+
handleInputBlur: (e: FocusEvent) => void;
|
|
57
|
+
handleInputEsc: (e: FocusEvent) => void;
|
|
58
58
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
59
|
'update:visible': (_visible: boolean) => boolean;
|
|
60
60
|
removeTag: (_item: SelectedItem) => boolean;
|
package/lib/ele-card/index.cjs
CHANGED
|
@@ -90,7 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
90
|
class: "ele-card-collapse-icon",
|
|
91
91
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleCollapseClick && _ctx.handleCollapseClick(...args), ["stop"]))
|
|
92
92
|
}, [
|
|
93
|
-
vue.renderSlot(_ctx.$slots, "collapseIcon", {}, () => [
|
|
93
|
+
vue.renderSlot(_ctx.$slots, "collapseIcon", { collapse: _ctx.isCollapse }, () => [
|
|
94
94
|
vue.createVNode(_component_ElIcon, null, {
|
|
95
95
|
default: vue.withCtx(() => [
|
|
96
96
|
vue.createVNode(_component_ArrowUp)
|
|
@@ -25,7 +25,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
25
25
|
emit("update:modelValue", value);
|
|
26
26
|
emit("change", value);
|
|
27
27
|
};
|
|
28
|
-
const
|
|
28
|
+
const handleItemClick = (item) => {
|
|
29
29
|
if (props2.disabled || item.disabled) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
@@ -51,7 +51,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
51
|
}
|
|
52
52
|
updateModelValue(props2.modelValue.filter((v) => v !== item.value));
|
|
53
53
|
};
|
|
54
|
-
return { isChecked,
|
|
54
|
+
return { isChecked, handleItemClick };
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
arrowStyle: _ctx.arrowStyle,
|
|
85
85
|
style: vue.normalizeStyle([_ctx.itemStyle, item.style]),
|
|
86
86
|
class: vue.normalizeClass([_ctx.itemClass, item.class]),
|
|
87
|
-
onClick: ($event) => _ctx.
|
|
87
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
88
88
|
}, {
|
|
89
89
|
default: vue.withCtx((slotProps) => [
|
|
90
90
|
vue.renderSlot(_ctx.$slots, "item", vue.mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -110,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
110
|
arrowStyle: _ctx.arrowStyle,
|
|
111
111
|
style: vue.normalizeStyle([_ctx.itemStyle, item.style]),
|
|
112
112
|
class: vue.normalizeClass([_ctx.itemClass, item.class]),
|
|
113
|
-
onClick: ($event) => _ctx.
|
|
113
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
114
114
|
}, {
|
|
115
115
|
default: vue.withCtx((slotProps) => [
|
|
116
116
|
vue.renderSlot(_ctx.$slots, "item", vue.mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
row: import('vue').PropType<boolean | import('../ele-app/el').ElRowProps>;
|
|
23
23
|
}, {
|
|
24
24
|
isChecked: (item: CheckCardItem) => boolean;
|
|
25
|
-
|
|
25
|
+
handleItemClick: (item: CheckCardItem) => void;
|
|
26
26
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
27
|
'update:modelValue': (_value: CheckedValue) => boolean;
|
|
28
28
|
change: (_value: CheckedValue) => boolean;
|
|
@@ -28,7 +28,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
28
|
}
|
|
29
29
|
return ((_a = innerRef.value) == null ? void 0 : _a.innerText) || "";
|
|
30
30
|
};
|
|
31
|
-
const
|
|
31
|
+
const handleCopyClick = () => {
|
|
32
32
|
core.copyText(getText()).then(() => {
|
|
33
33
|
copied.value = true;
|
|
34
34
|
updateTooltip();
|
|
@@ -44,7 +44,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
44
44
|
emit("copy", error);
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
const
|
|
47
|
+
const handleCopyHover = (e) => {
|
|
48
48
|
if (props2.tooltip) {
|
|
49
49
|
virtualRef.value = e.currentTarget;
|
|
50
50
|
}
|
|
@@ -64,8 +64,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
64
64
|
tooltipRef,
|
|
65
65
|
virtualRef,
|
|
66
66
|
copied,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
handleCopyClick,
|
|
68
|
+
handleCopyHover
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -94,8 +94,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
94
|
vue.createElementVNode("div", {
|
|
95
95
|
class: "ele-copyable-icon",
|
|
96
96
|
style: vue.normalizeStyle(_ctx.customStyle),
|
|
97
|
-
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
98
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
97
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.handleCopyHover && _ctx.handleCopyHover(...args)),
|
|
98
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCopyClick && _ctx.handleCopyClick(...args))
|
|
99
99
|
}, [
|
|
100
100
|
_ctx.copied ? (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.copiedIconProps || {})), {
|
|
101
101
|
default: vue.withCtx(() => [
|
|
@@ -26,8 +26,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
tooltipRef: import('vue').Ref<EleTooltipInstance>;
|
|
27
27
|
virtualRef: import('vue').Ref<HTMLElement | undefined>;
|
|
28
28
|
copied: import('vue').Ref<boolean>;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
handleCopyClick: () => void;
|
|
30
|
+
handleCopyHover: (e: MouseEvent) => void;
|
|
31
31
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
32
|
copy: (_error?: any) => boolean;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -54,7 +54,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
54
54
|
const groups = vue.shallowRef([]);
|
|
55
55
|
const tooltipContent = vue.ref("");
|
|
56
56
|
const virtualRef = vue.ref();
|
|
57
|
-
const
|
|
57
|
+
const handleUpload = (file) => {
|
|
58
58
|
const reader = new FileReader();
|
|
59
59
|
reader.onload = (e) => {
|
|
60
60
|
var _a;
|
|
@@ -66,10 +66,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
66
|
reader.readAsDataURL(file);
|
|
67
67
|
return false;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
69
|
+
const handleClick = (name) => {
|
|
70
70
|
emit(name);
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handleItemHover = (item, e) => {
|
|
73
73
|
const title = lang.value[item.name];
|
|
74
74
|
if (props.tooltip && item.name !== "ok" && title) {
|
|
75
75
|
virtualRef.value = e.currentTarget;
|
|
@@ -107,9 +107,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
107
107
|
groups,
|
|
108
108
|
tooltipContent,
|
|
109
109
|
virtualRef,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
handleUpload,
|
|
111
|
+
handleClick,
|
|
112
|
+
handleItemHover
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -142,7 +142,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
142
|
action: "",
|
|
143
143
|
accept: _ctx.accept,
|
|
144
144
|
showUploadList: false,
|
|
145
|
-
beforeUpload: _ctx.
|
|
145
|
+
beforeUpload: _ctx.handleUpload,
|
|
146
146
|
style: { "display": "inline-block", "line-height": "0" }
|
|
147
147
|
}, {
|
|
148
148
|
default: vue.withCtx(() => [
|
|
@@ -150,7 +150,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
150
|
type: "primary",
|
|
151
151
|
icon: item.icon,
|
|
152
152
|
class: vue.normalizeClass(["ele-cropper-tool", item.className]),
|
|
153
|
-
onMouseover: (e) => _ctx.
|
|
153
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
154
154
|
}, null, 8, ["icon", "class", "onMouseover"])
|
|
155
155
|
]),
|
|
156
156
|
_: 2
|
|
@@ -159,8 +159,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
type: "primary",
|
|
160
160
|
icon: item.icon,
|
|
161
161
|
class: vue.normalizeClass(["ele-cropper-tool", item.className]),
|
|
162
|
-
onMouseover: (e) => _ctx.
|
|
163
|
-
onClick: ($event) => _ctx.
|
|
162
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e),
|
|
163
|
+
onClick: ($event) => _ctx.handleClick(item.name)
|
|
164
164
|
}, {
|
|
165
165
|
default: vue.withCtx(() => [
|
|
166
166
|
item.name === "ok" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|