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
|
@@ -36,7 +36,7 @@ const _sfc_main = defineComponent({
|
|
|
36
36
|
const updateCurrent = (current) => {
|
|
37
37
|
emit("update:current", current);
|
|
38
38
|
};
|
|
39
|
-
const
|
|
39
|
+
const handleCheckAllChange = () => {
|
|
40
40
|
if (props.selectionType !== "checkbox") {
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
@@ -62,7 +62,7 @@ const _sfc_main = defineComponent({
|
|
|
62
62
|
);
|
|
63
63
|
updateSelections(temp);
|
|
64
64
|
};
|
|
65
|
-
const
|
|
65
|
+
const handleItemCheckChange = (item) => {
|
|
66
66
|
if (props.selectionType === "radio") {
|
|
67
67
|
updateCurrent(
|
|
68
68
|
props.current && props.current.key === item.key ? null : item
|
|
@@ -82,10 +82,10 @@ const _sfc_main = defineComponent({
|
|
|
82
82
|
}
|
|
83
83
|
updateSelections(props.selections.filter((t) => t.key !== item.key));
|
|
84
84
|
};
|
|
85
|
-
const
|
|
85
|
+
const handleItemClick = (item) => {
|
|
86
86
|
emit("itemClick", item);
|
|
87
87
|
};
|
|
88
|
-
const
|
|
88
|
+
const handleSortChange = (name) => {
|
|
89
89
|
const sorter = { sort: name };
|
|
90
90
|
if (props.order && name === props.sort) {
|
|
91
91
|
sorter.order = props.order === "asc" ? "desc" : null;
|
|
@@ -94,10 +94,10 @@ const _sfc_main = defineComponent({
|
|
|
94
94
|
}
|
|
95
95
|
emit("sortChange", sorter);
|
|
96
96
|
};
|
|
97
|
-
const
|
|
97
|
+
const handleItemContextMenu = (option) => {
|
|
98
98
|
emit("itemContextMenu", option);
|
|
99
99
|
};
|
|
100
|
-
const
|
|
100
|
+
const handleMousedown = (event) => {
|
|
101
101
|
if (!props.boxChoose || props.selectionType !== "checkbox") {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
@@ -185,12 +185,12 @@ const _sfc_main = defineComponent({
|
|
|
185
185
|
selectorStyle,
|
|
186
186
|
isCheckAll,
|
|
187
187
|
isIndeterminate,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
handleCheckAllChange,
|
|
189
|
+
handleItemCheckChange,
|
|
190
|
+
handleItemClick,
|
|
191
|
+
handleSortChange,
|
|
192
|
+
handleItemContextMenu,
|
|
193
|
+
handleMousedown
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
@@ -206,7 +206,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
206
|
const _component_FileTable = resolveComponent("FileTable");
|
|
207
207
|
return openBlock(), createElementBlock("div", {
|
|
208
208
|
class: "ele-file-list-group",
|
|
209
|
-
onMousedown: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
209
|
+
onMousedown: _cache[0] || (_cache[0] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args))
|
|
210
210
|
}, [
|
|
211
211
|
_ctx.grid ? (openBlock(), createBlock(_component_FileGrid, {
|
|
212
212
|
key: 0,
|
|
@@ -221,10 +221,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
221
221
|
selectedText: _ctx.lang.selectTips,
|
|
222
222
|
contextMenus: _ctx.contextMenus,
|
|
223
223
|
contextMenuProps: _ctx.contextMenuProps,
|
|
224
|
-
onCheckAllChange: _ctx.
|
|
225
|
-
onItemClick: _ctx.
|
|
226
|
-
onItemCheckChange: _ctx.
|
|
227
|
-
onItemContextMenu: _ctx.
|
|
224
|
+
onCheckAllChange: _ctx.handleCheckAllChange,
|
|
225
|
+
onItemClick: _ctx.handleItemClick,
|
|
226
|
+
onItemCheckChange: _ctx.handleItemCheckChange,
|
|
227
|
+
onItemContextMenu: _ctx.handleItemContextMenu
|
|
228
228
|
}, createSlots({ _: 2 }, [
|
|
229
229
|
renderList(Object.keys(_ctx.$slots), (name) => {
|
|
230
230
|
return {
|
|
@@ -252,11 +252,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
252
252
|
columns: _ctx.columns,
|
|
253
253
|
contextMenus: _ctx.contextMenus,
|
|
254
254
|
contextMenuProps: _ctx.contextMenuProps,
|
|
255
|
-
onCheckAllChange: _ctx.
|
|
256
|
-
onItemClick: _ctx.
|
|
257
|
-
onItemCheckChange: _ctx.
|
|
258
|
-
onItemContextMenu: _ctx.
|
|
259
|
-
onSortChange: _ctx.
|
|
255
|
+
onCheckAllChange: _ctx.handleCheckAllChange,
|
|
256
|
+
onItemClick: _ctx.handleItemClick,
|
|
257
|
+
onItemCheckChange: _ctx.handleItemCheckChange,
|
|
258
|
+
onItemContextMenu: _ctx.handleItemContextMenu,
|
|
259
|
+
onSortChange: _ctx.handleSortChange
|
|
260
260
|
}, createSlots({ _: 2 }, [
|
|
261
261
|
renderList(Object.keys(_ctx.$slots), (name) => {
|
|
262
262
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
|
|
2
|
+
handleClick: (e: MouseEvent) => void;
|
|
3
3
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
click: (_e: MouseEvent) => true;
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
@@ -6,7 +6,7 @@ const _sfc_main = defineComponent({
|
|
|
6
6
|
},
|
|
7
7
|
setup(_props, { emit }) {
|
|
8
8
|
return {
|
|
9
|
-
|
|
9
|
+
handleClick: (e) => emit("click", e)
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -20,7 +20,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
20
20
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21
21
|
return openBlock(), createElementBlock("div", {
|
|
22
22
|
class: "ele-file-list-item-tool",
|
|
23
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.
|
|
23
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
24
24
|
}, [
|
|
25
25
|
renderSlot(_ctx.$slots, "default")
|
|
26
26
|
]);
|
|
@@ -27,8 +27,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
virtualRef: import('vue').Ref<any>;
|
|
28
28
|
updateTooltipVisible: (visible: boolean) => void;
|
|
29
29
|
hideTooltip: () => void;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
handleItemHover: (icon: string, e: MouseEvent) => void;
|
|
31
|
+
handleItemClick: (icon: string) => void;
|
|
32
32
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
33
|
select: (_icon: string) => true;
|
|
34
34
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -38,14 +38,14 @@ const _sfc_main = defineComponent({
|
|
|
38
38
|
const hideTooltip = () => {
|
|
39
39
|
updateTooltipVisible(false);
|
|
40
40
|
};
|
|
41
|
-
const
|
|
41
|
+
const handleItemHover = (icon, e) => {
|
|
42
42
|
if (props.tooltip && props.popperVisible && icon) {
|
|
43
43
|
virtualRef.value = e.currentTarget;
|
|
44
44
|
tooltipContent.value = icon;
|
|
45
45
|
tooltipVisible.value = true;
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
const
|
|
48
|
+
const handleItemClick = (icon) => {
|
|
49
49
|
emit("select", icon);
|
|
50
50
|
};
|
|
51
51
|
watch(
|
|
@@ -62,8 +62,8 @@ const _sfc_main = defineComponent({
|
|
|
62
62
|
virtualRef,
|
|
63
63
|
updateTooltipVisible,
|
|
64
64
|
hideTooltip,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
handleItemHover,
|
|
66
|
+
handleItemClick
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -95,8 +95,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
95
|
class: normalizeClass(["ele-icon-select-item", { "is-active": _ctx.icon && d === _ctx.icon }]),
|
|
96
96
|
title: _ctx.tooltip ? void 0 : d,
|
|
97
97
|
style: normalizeStyle(_ctx.itemStyle),
|
|
98
|
-
onClick: ($event) => _ctx.
|
|
99
|
-
onMouseover: (e) => _ctx.
|
|
98
|
+
onClick: ($event) => _ctx.handleItemClick(d),
|
|
99
|
+
onMouseover: (e) => _ctx.handleItemHover(d, e)
|
|
100
100
|
}, [
|
|
101
101
|
renderSlot(_ctx.$slots, "icon", { icon: d })
|
|
102
102
|
], 46, _hoisted_1);
|
|
@@ -79,13 +79,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
79
79
|
iconPopperStyle: import('vue').ComputedRef<Partial<import('vue').CSSProperties> | undefined>;
|
|
80
80
|
updatePopover: () => void;
|
|
81
81
|
updateVisible: (visible: boolean) => void;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
handleSelectClear: () => void;
|
|
83
|
+
handleSelectFocus: (e: FocusEvent) => void;
|
|
84
|
+
handleSelectBlur: (e: FocusEvent) => void;
|
|
85
|
+
handleSelectFilter: (value: string) => void;
|
|
86
|
+
handleTabClick: (index: number) => void;
|
|
87
|
+
handleMenuClick: (index: number) => void;
|
|
88
|
+
handleIconSelect: (icon: string) => void;
|
|
89
89
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
90
|
'update:modelValue': (_value?: string | null | undefined) => boolean;
|
|
91
91
|
change: (_value?: string | null | undefined) => boolean;
|
|
@@ -91,7 +91,7 @@ const _sfc_main = defineComponent({
|
|
|
91
91
|
};
|
|
92
92
|
const updateVisible = (visible) => {
|
|
93
93
|
if (visible) {
|
|
94
|
-
|
|
94
|
+
handleSelectFilter("");
|
|
95
95
|
}
|
|
96
96
|
if (selectVisible.value !== visible) {
|
|
97
97
|
selectVisible.value = visible;
|
|
@@ -104,18 +104,18 @@ const _sfc_main = defineComponent({
|
|
|
104
104
|
emit("change", modelValue);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
const
|
|
107
|
+
const handleSelectClear = () => {
|
|
108
108
|
updateModelValue(null);
|
|
109
109
|
updateVisible(false);
|
|
110
110
|
emit("clear");
|
|
111
111
|
};
|
|
112
|
-
const
|
|
112
|
+
const handleSelectFocus = (e) => {
|
|
113
113
|
emit("focus", e);
|
|
114
114
|
};
|
|
115
|
-
const
|
|
115
|
+
const handleSelectBlur = (e) => {
|
|
116
116
|
emit("blur", e);
|
|
117
117
|
};
|
|
118
|
-
const
|
|
118
|
+
const handleSelectFilter = (value) => {
|
|
119
119
|
var _a;
|
|
120
120
|
if (keywords.value !== value) {
|
|
121
121
|
keywords.value = value;
|
|
@@ -147,15 +147,15 @@ const _sfc_main = defineComponent({
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
const
|
|
150
|
+
const handleTabClick = (index2) => {
|
|
151
151
|
tabActive.value = index2;
|
|
152
152
|
initData();
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const handleMenuClick = (index2) => {
|
|
155
155
|
menuActive.value = index2;
|
|
156
156
|
initData();
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const handleIconSelect = (icon) => {
|
|
159
159
|
updateModelValue(icon);
|
|
160
160
|
updateVisible(false);
|
|
161
161
|
};
|
|
@@ -184,13 +184,13 @@ const _sfc_main = defineComponent({
|
|
|
184
184
|
iconPopperStyle,
|
|
185
185
|
updatePopover,
|
|
186
186
|
updateVisible,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
187
|
+
handleSelectClear,
|
|
188
|
+
handleSelectFocus,
|
|
189
|
+
handleSelectBlur,
|
|
190
|
+
handleSelectFilter,
|
|
191
|
+
handleTabClick,
|
|
192
|
+
handleMenuClick,
|
|
193
|
+
handleIconSelect
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
});
|
|
@@ -231,10 +231,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
231
|
selectedLabel: _ctx.modelValue,
|
|
232
232
|
visible: _ctx.selectVisible,
|
|
233
233
|
"onUpdate:visible": _ctx.updateVisible,
|
|
234
|
-
onFilterChange: _ctx.
|
|
235
|
-
onClear: _ctx.
|
|
236
|
-
onFocus: _ctx.
|
|
237
|
-
onBlur: _ctx.
|
|
234
|
+
onFilterChange: _ctx.handleSelectFilter,
|
|
235
|
+
onClear: _ctx.handleSelectClear,
|
|
236
|
+
onFocus: _ctx.handleSelectFocus,
|
|
237
|
+
onBlur: _ctx.handleSelectBlur
|
|
238
238
|
}, createSlots({
|
|
239
239
|
default: withCtx(() => [
|
|
240
240
|
createElementVNode("div", {
|
|
@@ -256,7 +256,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
256
256
|
return openBlock(), createElementBlock("div", {
|
|
257
257
|
key: i + "-" + t,
|
|
258
258
|
class: normalizeClass(["ele-icon-select-tab", { "is-active": i === _ctx.tabActive }]),
|
|
259
|
-
onClick: ($event) => _ctx.
|
|
259
|
+
onClick: ($event) => _ctx.handleTabClick(i)
|
|
260
260
|
}, toDisplayString(t), 11, _hoisted_1);
|
|
261
261
|
}), 128))
|
|
262
262
|
], 4)) : createCommentVNode("", true),
|
|
@@ -271,7 +271,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
271
271
|
modelValue: _ctx.keywords,
|
|
272
272
|
prefixIcon: _ctx.SearchOutlined,
|
|
273
273
|
placeholder: _ctx.filterPlaceholder,
|
|
274
|
-
"onUpdate:modelValue": _ctx.
|
|
274
|
+
"onUpdate:modelValue": _ctx.handleSelectFilter
|
|
275
275
|
}, null, 8, ["modelValue", "prefixIcon", "placeholder", "onUpdate:modelValue"])
|
|
276
276
|
], 4)) : createCommentVNode("", true),
|
|
277
277
|
renderSlot(_ctx.$slots, "tabRightExtra")
|
|
@@ -286,7 +286,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
286
286
|
return openBlock(), createElementBlock("div", {
|
|
287
287
|
key: i + "-" + m,
|
|
288
288
|
class: normalizeClass(["ele-icon-select-menu", { "is-active": i === _ctx.menuActive }]),
|
|
289
|
-
onClick: ($event) => _ctx.
|
|
289
|
+
onClick: ($event) => _ctx.handleMenuClick(i)
|
|
290
290
|
}, toDisplayString(m), 11, _hoisted_3);
|
|
291
291
|
}), 128))
|
|
292
292
|
], 4)) : createCommentVNode("", true),
|
|
@@ -300,7 +300,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
300
300
|
gridStyle: _ctx.gridStyle,
|
|
301
301
|
itemStyle: _ctx.itemStyle,
|
|
302
302
|
style: normalizeStyle(_ctx.bodyStyle),
|
|
303
|
-
onSelect: _ctx.
|
|
303
|
+
onSelect: _ctx.handleIconSelect
|
|
304
304
|
}, createSlots({ _: 2 }, [
|
|
305
305
|
_ctx.$slots.icon ? {
|
|
306
306
|
name: "icon",
|
package/es/ele-menus/index.js
CHANGED
|
@@ -108,22 +108,22 @@ const index = defineComponent({
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const handleItemClick = (item, e) => {
|
|
112
112
|
emit("itemClick", item, e);
|
|
113
113
|
};
|
|
114
|
-
const
|
|
114
|
+
const handleItemMouseenter = (item, e) => {
|
|
115
115
|
triggerTooltip(e);
|
|
116
116
|
emit("itemMouseenter", item, e);
|
|
117
117
|
};
|
|
118
|
-
const
|
|
118
|
+
const handleItemMouseleave = (item, e) => {
|
|
119
119
|
hideTooltip();
|
|
120
120
|
emit("itemMouseleave", item, e);
|
|
121
121
|
};
|
|
122
|
-
const
|
|
122
|
+
const handleParentMouseenter = (item, e) => {
|
|
123
123
|
triggerTooltip(e);
|
|
124
124
|
emit("parentMouseenter", item, e);
|
|
125
125
|
};
|
|
126
|
-
const
|
|
126
|
+
const handleParentMouseleave = (item, e) => {
|
|
127
127
|
hideTooltip();
|
|
128
128
|
emit("parentMouseleave", item, e);
|
|
129
129
|
};
|
|
@@ -174,12 +174,12 @@ const index = defineComponent({
|
|
|
174
174
|
props.popupColorful,
|
|
175
175
|
props.firstPopperClass,
|
|
176
176
|
true,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
handleItemClick,
|
|
178
|
+
handleItemMouseenter,
|
|
179
|
+
handleItemMouseleave,
|
|
180
180
|
isWebkit,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
handleParentMouseenter,
|
|
182
|
+
handleParentMouseleave
|
|
183
183
|
);
|
|
184
184
|
if (moreItems) {
|
|
185
185
|
const ellipsisProps = props.ellipsisProps || {};
|
|
@@ -218,12 +218,12 @@ const index = defineComponent({
|
|
|
218
218
|
props.popupColorful,
|
|
219
219
|
props.firstPopperClass,
|
|
220
220
|
false,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
handleItemClick,
|
|
222
|
+
handleItemMouseenter,
|
|
223
|
+
handleItemMouseleave,
|
|
224
224
|
isWebkit,
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
handleParentMouseenter,
|
|
226
|
+
handleParentMouseleave
|
|
227
227
|
);
|
|
228
228
|
},
|
|
229
229
|
title: () => {
|
package/es/ele-menus/util.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, Slot } from 'vue';
|
|
2
|
+
import { ClassValue, ClassValues } from '../ele-app/types';
|
|
2
3
|
import { MenuItem, MenuTheme, PopupMenuTheme, PopupColorful, MenuResult, MenuEllipsisOption, MenuItemEvent } from './types';
|
|
3
4
|
|
|
4
5
|
/** 子菜单项链接类名 */
|
|
@@ -11,6 +12,12 @@ export declare const triggerClass = "ele-menu-trigger";
|
|
|
11
12
|
export declare const overflowClass = "ele-menu-overflow";
|
|
12
13
|
/** 菜单省略项的类名 */
|
|
13
14
|
export declare const ellipsisClass = "ele-sub-menu-ellipsis";
|
|
15
|
+
/**
|
|
16
|
+
* 合并类名
|
|
17
|
+
* @param class1 类名
|
|
18
|
+
* @param class2 用户自定义类名
|
|
19
|
+
*/
|
|
20
|
+
export declare function mergeClass(class1?: ClassValue, class2?: ClassValue): ClassValues;
|
|
14
21
|
/**
|
|
15
22
|
* 生成菜单链接节点
|
|
16
23
|
* @param path 链接地址
|
package/es/ele-menus/util.js
CHANGED
|
@@ -8,6 +8,16 @@ const titleClass = "ele-menu-title";
|
|
|
8
8
|
const triggerClass = "ele-menu-trigger";
|
|
9
9
|
const overflowClass = "ele-menu-overflow";
|
|
10
10
|
const ellipsisClass = "ele-sub-menu-ellipsis";
|
|
11
|
+
function mergeClass(class1, class2) {
|
|
12
|
+
const classes = [];
|
|
13
|
+
if (class1 != null && class1 !== "") {
|
|
14
|
+
classes.push(class1);
|
|
15
|
+
}
|
|
16
|
+
if (class2 != null && class2 !== "") {
|
|
17
|
+
classes.push(class2);
|
|
18
|
+
}
|
|
19
|
+
return classes;
|
|
20
|
+
}
|
|
11
21
|
function getLinkNode(path) {
|
|
12
22
|
if (isExternalLink(path)) {
|
|
13
23
|
return h("a", {
|
|
@@ -98,7 +108,11 @@ function renderItems(items, sIcon, sTitle, tipDisabled, theme, popTheme, colorfu
|
|
|
98
108
|
index: item.index || item.path,
|
|
99
109
|
route: item.route,
|
|
100
110
|
disabled: item.disabled,
|
|
101
|
-
class:
|
|
111
|
+
class: mergeClass(
|
|
112
|
+
item.overflow ? overflowClass : void 0,
|
|
113
|
+
item.class
|
|
114
|
+
),
|
|
115
|
+
style: item.style,
|
|
102
116
|
onClick: () => {
|
|
103
117
|
}
|
|
104
118
|
},
|
|
@@ -124,30 +138,34 @@ function renderItems(items, sIcon, sTitle, tipDisabled, theme, popTheme, colorfu
|
|
|
124
138
|
);
|
|
125
139
|
if (item.group === true && !parentIsGroup) {
|
|
126
140
|
nodes.push(
|
|
127
|
-
h(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
141
|
+
h(
|
|
142
|
+
ElMenuItemGroup,
|
|
143
|
+
{ key, style: item.style, class: item.class },
|
|
144
|
+
{
|
|
145
|
+
default: () => {
|
|
146
|
+
return renderItems(
|
|
147
|
+
item.children,
|
|
148
|
+
sIcon,
|
|
149
|
+
sTitle,
|
|
150
|
+
tipDisabled,
|
|
151
|
+
theme,
|
|
152
|
+
popTheme,
|
|
153
|
+
colorful,
|
|
154
|
+
popupColorful,
|
|
155
|
+
firstPopClass,
|
|
156
|
+
first,
|
|
157
|
+
onItemClick,
|
|
158
|
+
onItemMouseenter,
|
|
159
|
+
onItemMouseleave,
|
|
160
|
+
webkit,
|
|
161
|
+
onParentMouseenter,
|
|
162
|
+
onParentMouseleave,
|
|
163
|
+
true
|
|
164
|
+
);
|
|
165
|
+
},
|
|
166
|
+
title: () => getNodes(iNodes, tNodes, bNode, parentTriggerNode)
|
|
167
|
+
}
|
|
168
|
+
)
|
|
151
169
|
);
|
|
152
170
|
return;
|
|
153
171
|
}
|
|
@@ -176,7 +194,11 @@ function renderItems(items, sIcon, sTitle, tipDisabled, theme, popTheme, colorfu
|
|
|
176
194
|
expandOpenIcon: item.expandOpenIcon ?? ArrowDown,
|
|
177
195
|
collapseCloseIcon: item.collapseCloseIcon ?? ArrowRight,
|
|
178
196
|
collapseOpenIcon: item.collapseOpenIcon ?? ArrowRight,
|
|
179
|
-
class:
|
|
197
|
+
class: mergeClass(
|
|
198
|
+
item.overflow ? overflowClass : void 0,
|
|
199
|
+
item.class
|
|
200
|
+
),
|
|
201
|
+
style: item.style
|
|
180
202
|
},
|
|
181
203
|
{
|
|
182
204
|
default: () => {
|
|
@@ -342,6 +364,7 @@ export {
|
|
|
342
364
|
getPopperClass,
|
|
343
365
|
getTriggerNode,
|
|
344
366
|
linkClass,
|
|
367
|
+
mergeClass,
|
|
345
368
|
overflowClass,
|
|
346
369
|
renderItems,
|
|
347
370
|
titleClass,
|
package/es/ele-modal/index.d.ts
CHANGED
|
@@ -99,12 +99,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
99
99
|
handleResizeMousedown: (event: MouseEvent) => void;
|
|
100
100
|
updateModelValue: (modelValue: boolean) => void;
|
|
101
101
|
toggleFullscreen: (fullscreen?: boolean) => void;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
handleOpen: () => void;
|
|
103
|
+
handleOpened: () => void;
|
|
104
|
+
handleClose: () => void;
|
|
105
|
+
handleClosed: () => void;
|
|
106
|
+
handleOpenAutoFocus: () => void;
|
|
107
|
+
handleCloseAutoFocus: () => void;
|
|
108
108
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
109
109
|
'update:fullscreen': (_fullscreen: boolean) => boolean;
|
|
110
110
|
open: () => boolean;
|
package/es/ele-modal/index.js
CHANGED
|
@@ -144,7 +144,7 @@ const _sfc_main = defineComponent({
|
|
|
144
144
|
});
|
|
145
145
|
emit("update:fullscreen", isFullscreen.value);
|
|
146
146
|
};
|
|
147
|
-
const
|
|
147
|
+
const handleOpen = () => {
|
|
148
148
|
if (props.resetOnClose || props.destroyOnClose) {
|
|
149
149
|
isFullscreen.value = props.fullscreen ?? false;
|
|
150
150
|
}
|
|
@@ -159,27 +159,27 @@ const _sfc_main = defineComponent({
|
|
|
159
159
|
});
|
|
160
160
|
emit("open");
|
|
161
161
|
};
|
|
162
|
-
const
|
|
162
|
+
const handleOpened = () => {
|
|
163
163
|
const modalEl = getModalEl();
|
|
164
164
|
if (modalEl) {
|
|
165
165
|
modalEl.addEventListener("mousedown", mousedownListener);
|
|
166
166
|
}
|
|
167
167
|
emit("opened");
|
|
168
168
|
};
|
|
169
|
-
const
|
|
169
|
+
const handleClose = () => {
|
|
170
170
|
const modalEl = getModalEl();
|
|
171
171
|
if (modalEl) {
|
|
172
172
|
modalEl.removeEventListener("mousedown", mousedownListener);
|
|
173
173
|
}
|
|
174
174
|
emit("close");
|
|
175
175
|
};
|
|
176
|
-
const
|
|
176
|
+
const handleClosed = () => {
|
|
177
177
|
emit("closed");
|
|
178
178
|
};
|
|
179
|
-
const
|
|
179
|
+
const handleOpenAutoFocus = () => {
|
|
180
180
|
emit("openAutoFocus");
|
|
181
181
|
};
|
|
182
|
-
const
|
|
182
|
+
const handleCloseAutoFocus = () => {
|
|
183
183
|
emit("closeAutoFocus");
|
|
184
184
|
};
|
|
185
185
|
watch(
|
|
@@ -209,12 +209,12 @@ const _sfc_main = defineComponent({
|
|
|
209
209
|
handleResizeMousedown,
|
|
210
210
|
updateModelValue,
|
|
211
211
|
toggleFullscreen,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
handleOpen,
|
|
213
|
+
handleOpened,
|
|
214
|
+
handleClose,
|
|
215
|
+
handleClosed,
|
|
216
|
+
handleOpenAutoFocus,
|
|
217
|
+
handleCloseAutoFocus
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
});
|
|
@@ -261,12 +261,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
261
261
|
zIndex: _ctx.zIndex,
|
|
262
262
|
headerAriaLevel: _ctx.headerAriaLevel,
|
|
263
263
|
"onUpdate:modelValue": _ctx.updateModelValue,
|
|
264
|
-
onOpen: _ctx.
|
|
265
|
-
onOpened: _ctx.
|
|
266
|
-
onClose: _ctx.
|
|
267
|
-
onClosed: _ctx.
|
|
268
|
-
onOpenAutoFocus: _ctx.
|
|
269
|
-
onCloseAutoFocus: _ctx.
|
|
264
|
+
onOpen: _ctx.handleOpen,
|
|
265
|
+
onOpened: _ctx.handleOpened,
|
|
266
|
+
onClose: _ctx.handleClose,
|
|
267
|
+
onClosed: _ctx.handleClosed,
|
|
268
|
+
onOpenAutoFocus: _ctx.handleOpenAutoFocus,
|
|
269
|
+
onCloseAutoFocus: _ctx.handleCloseAutoFocus
|
|
270
270
|
}), createSlots({
|
|
271
271
|
header: withCtx(({ close, titleId, titleClass }) => [
|
|
272
272
|
createElementVNode("div", {
|
|
@@ -34,8 +34,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
34
34
|
isInfinite: import('vue').ComputedRef<boolean>;
|
|
35
35
|
pageTotal: import('vue').ComputedRef<number | undefined>;
|
|
36
36
|
sizesPopperClass: import('vue').ComputedRef<string>;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
handleUpdateCurrentPage: (currentPage: number) => void;
|
|
38
|
+
handleUpdatePageSize: (pageSize: number) => void;
|
|
39
39
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
40
|
'update:currentPage': (_currentPage: number) => boolean;
|
|
41
41
|
'update:pageSize': (_pageSize: number) => boolean;
|