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
|
@@ -17,9 +17,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
groups: import('vue').ShallowRef<ToolGroup[]>;
|
|
18
18
|
tooltipContent: import('vue').Ref<string>;
|
|
19
19
|
virtualRef: import('vue').Ref<any>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
handleUpload: (file: File) => boolean;
|
|
21
|
+
handleClick: (name: Omit<ToolName, 'upload'>) => void;
|
|
22
|
+
handleItemHover: (item: ToolItem, e: MouseEvent) => void;
|
|
23
23
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
24
|
zoomIn: () => true;
|
|
25
25
|
zoomOut: () => true;
|
|
@@ -34,42 +34,42 @@ const _sfc_main = vue.defineComponent({
|
|
|
34
34
|
state.instance && state.instance.destroy();
|
|
35
35
|
state.instance = null;
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const handleZoomIn = () => {
|
|
38
38
|
state.instance && state.instance.zoom(0.1);
|
|
39
39
|
};
|
|
40
|
-
const
|
|
40
|
+
const handleZoomOut = () => {
|
|
41
41
|
state.instance && state.instance.zoom(-0.1);
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const handleMoveLeft = () => {
|
|
44
44
|
state.instance && state.instance.move(-10, 0);
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const handleMoveRight = () => {
|
|
47
47
|
state.instance && state.instance.move(10, 0);
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const handleMoveUp = () => {
|
|
50
50
|
state.instance && state.instance.move(0, -10);
|
|
51
51
|
};
|
|
52
|
-
const
|
|
52
|
+
const handleMoveDown = () => {
|
|
53
53
|
state.instance && state.instance.move(0, 10);
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleRotateLeft = () => {
|
|
56
56
|
state.instance && state.instance.rotate(-45);
|
|
57
57
|
};
|
|
58
|
-
const
|
|
58
|
+
const handleRotateRight = () => {
|
|
59
59
|
state.instance && state.instance.rotate(45);
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const handleFlipX = () => {
|
|
62
62
|
state.instance && state.instance.scaleX(state.scaleXValue);
|
|
63
63
|
state.scaleXValue = -state.scaleXValue;
|
|
64
64
|
};
|
|
65
|
-
const
|
|
65
|
+
const handleFlipY = () => {
|
|
66
66
|
state.instance && state.instance.scaleY(state.scaleYValue);
|
|
67
67
|
state.scaleYValue = -state.scaleYValue;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
69
|
+
const handleReset = () => {
|
|
70
70
|
state.instance && state.instance.reset();
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handleUpload = ({ data, type }) => {
|
|
73
73
|
state.imageType = type;
|
|
74
74
|
if (state.instance) {
|
|
75
75
|
state.instance.replace(data);
|
|
@@ -82,7 +82,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
82
82
|
render();
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
const
|
|
85
|
+
const handleOk = () => {
|
|
86
86
|
if (!state.instance) {
|
|
87
87
|
emit("done");
|
|
88
88
|
return;
|
|
@@ -135,19 +135,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
135
135
|
imageRef,
|
|
136
136
|
previewRef,
|
|
137
137
|
isResponsive,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
138
|
+
handleZoomIn,
|
|
139
|
+
handleZoomOut,
|
|
140
|
+
handleMoveLeft,
|
|
141
|
+
handleMoveRight,
|
|
142
|
+
handleMoveUp,
|
|
143
|
+
handleMoveDown,
|
|
144
|
+
handleRotateLeft,
|
|
145
|
+
handleRotateRight,
|
|
146
|
+
handleFlipX,
|
|
147
|
+
handleFlipY,
|
|
148
|
+
handleReset,
|
|
149
|
+
handleUpload,
|
|
150
|
+
handleOk
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
});
|
|
@@ -190,19 +190,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
190
|
locale: _ctx.locale,
|
|
191
191
|
tooltip: _ctx.tooltip,
|
|
192
192
|
tooltipProps: _ctx.tooltipProps,
|
|
193
|
-
onZoomIn: _ctx.
|
|
194
|
-
onZoomOut: _ctx.
|
|
195
|
-
onMoveLeft: _ctx.
|
|
196
|
-
onMoveRight: _ctx.
|
|
197
|
-
onMoveUp: _ctx.
|
|
198
|
-
onMoveDown: _ctx.
|
|
199
|
-
onRotateLeft: _ctx.
|
|
200
|
-
onRotateRight: _ctx.
|
|
201
|
-
onFlipX: _ctx.
|
|
202
|
-
onFlipY: _ctx.
|
|
203
|
-
onReset: _ctx.
|
|
204
|
-
onUpload: _ctx.
|
|
205
|
-
onOk: _ctx.
|
|
193
|
+
onZoomIn: _ctx.handleZoomIn,
|
|
194
|
+
onZoomOut: _ctx.handleZoomOut,
|
|
195
|
+
onMoveLeft: _ctx.handleMoveLeft,
|
|
196
|
+
onMoveRight: _ctx.handleMoveRight,
|
|
197
|
+
onMoveUp: _ctx.handleMoveUp,
|
|
198
|
+
onMoveDown: _ctx.handleMoveDown,
|
|
199
|
+
onRotateLeft: _ctx.handleRotateLeft,
|
|
200
|
+
onRotateRight: _ctx.handleRotateRight,
|
|
201
|
+
onFlipX: _ctx.handleFlipX,
|
|
202
|
+
onFlipY: _ctx.handleFlipY,
|
|
203
|
+
onReset: _ctx.handleReset,
|
|
204
|
+
onUpload: _ctx.handleUpload,
|
|
205
|
+
onOk: _ctx.handleOk
|
|
206
206
|
}, null, 8, ["tools", "accept", "locale", "tooltip", "tooltipProps", "onZoomIn", "onZoomOut", "onMoveLeft", "onMoveRight", "onMoveUp", "onMoveDown", "onRotateLeft", "onRotateRight", "onFlipX", "onFlipY", "onReset", "onUpload", "onOk"])
|
|
207
207
|
], 2);
|
|
208
208
|
}
|
|
@@ -43,22 +43,22 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
43
|
imageRef: Ref<HTMLImageElement | null>;
|
|
44
44
|
previewRef: Ref<PreviewInstance>;
|
|
45
45
|
isResponsive: import('vue').ComputedRef<boolean>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
handleZoomIn: () => void;
|
|
47
|
+
handleZoomOut: () => void;
|
|
48
|
+
handleMoveLeft: () => void;
|
|
49
|
+
handleMoveRight: () => void;
|
|
50
|
+
handleMoveUp: () => void;
|
|
51
|
+
handleMoveDown: () => void;
|
|
52
|
+
handleRotateLeft: () => void;
|
|
53
|
+
handleRotateRight: () => void;
|
|
54
|
+
handleFlipX: () => void;
|
|
55
|
+
handleFlipY: () => void;
|
|
56
|
+
handleReset: () => void;
|
|
57
|
+
handleUpload: ({ data, type }: {
|
|
58
58
|
data: string;
|
|
59
59
|
type: string;
|
|
60
60
|
}) => void;
|
|
61
|
-
|
|
61
|
+
handleOk: () => void;
|
|
62
62
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
63
|
done: (_result?: string | Blob | null | undefined) => boolean;
|
|
64
64
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -14,10 +14,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
const updateModelValue = (value) => {
|
|
15
15
|
emit("update:modelValue", value);
|
|
16
16
|
};
|
|
17
|
-
const
|
|
17
|
+
const handleDone = (result) => {
|
|
18
18
|
emit("done", result);
|
|
19
19
|
};
|
|
20
|
-
return { lang, updateModelValue,
|
|
20
|
+
return { lang, updateModelValue, handleDone };
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -53,7 +53,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53
53
|
tooltipProps: _ctx.tooltipProps,
|
|
54
54
|
responsive: _ctx.responsive,
|
|
55
55
|
locale: _ctx.locale,
|
|
56
|
-
onDone: _ctx.
|
|
56
|
+
onDone: _ctx.handleDone
|
|
57
57
|
}, null, 8, ["height", "src", "imageType", "accept", "tools", "preview", "previewWidth", "toBlob", "options", "croppedOptions", "tooltip", "tooltipProps", "responsive", "locale", "onDone"])
|
|
58
58
|
]),
|
|
59
59
|
_: 2
|
|
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
41
41
|
}, {
|
|
42
42
|
lang: import('vue').ComputedRef<CropperLocale>;
|
|
43
43
|
updateModelValue: (value: boolean) => void;
|
|
44
|
-
|
|
44
|
+
handleDone: (result: Blob | string | null) => void;
|
|
45
45
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
46
|
done: (_result: string | Blob | null) => boolean;
|
|
47
47
|
'update:modelValue': (_value: boolean) => boolean; /** 更新绑定值 */
|
|
@@ -32,7 +32,7 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
32
32
|
columnKey: col.columnKey ?? col.prop,
|
|
33
33
|
className: getCellClass(col),
|
|
34
34
|
index: col.index ?? pageIndex,
|
|
35
|
-
key: col.uid
|
|
35
|
+
key: col.uid ?? col.columnKey ?? col.prop
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
default: (slotProps) => {
|
package/lib/ele-drawer/index.cjs
CHANGED
|
@@ -47,22 +47,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
47
|
const updateModelValue = (value) => {
|
|
48
48
|
emit("update:modelValue", value);
|
|
49
49
|
};
|
|
50
|
-
const
|
|
50
|
+
const handleDrawerOpen = () => {
|
|
51
51
|
emit("open");
|
|
52
52
|
};
|
|
53
|
-
const
|
|
53
|
+
const handleDrawerOpened = () => {
|
|
54
54
|
emit("opened");
|
|
55
55
|
};
|
|
56
|
-
const
|
|
56
|
+
const handleDrawerClose = () => {
|
|
57
57
|
emit("close");
|
|
58
58
|
};
|
|
59
|
-
const
|
|
59
|
+
const handleDrawerClosed = () => {
|
|
60
60
|
emit("closed");
|
|
61
61
|
};
|
|
62
|
-
const
|
|
62
|
+
const handleDrawerOpenAutoFocus = () => {
|
|
63
63
|
emit("openAutoFocus");
|
|
64
64
|
};
|
|
65
|
-
const
|
|
65
|
+
const handleDrawerCloseAutoFocus = () => {
|
|
66
66
|
emit("closeAutoFocus");
|
|
67
67
|
};
|
|
68
68
|
vue.onActivated(() => {
|
|
@@ -77,12 +77,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
77
|
teleportTo,
|
|
78
78
|
handleClose,
|
|
79
79
|
updateModelValue,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
handleDrawerOpen,
|
|
81
|
+
handleDrawerOpened,
|
|
82
|
+
handleDrawerClose,
|
|
83
|
+
handleDrawerClosed,
|
|
84
|
+
handleDrawerOpenAutoFocus,
|
|
85
|
+
handleDrawerCloseAutoFocus
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -123,12 +123,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
123
|
modalClass: _ctx.drawerClass,
|
|
124
124
|
zIndex: _ctx.zIndex,
|
|
125
125
|
headerAriaLevel: _ctx.headerAriaLevel,
|
|
126
|
-
onOpen: _ctx.
|
|
127
|
-
onOpened: _ctx.
|
|
128
|
-
onClose: _ctx.
|
|
129
|
-
onClosed: _ctx.
|
|
130
|
-
onOpenAutoFocus: _ctx.
|
|
131
|
-
onCloseAutoFocus: _ctx.
|
|
126
|
+
onOpen: _ctx.handleDrawerOpen,
|
|
127
|
+
onOpened: _ctx.handleDrawerOpened,
|
|
128
|
+
onClose: _ctx.handleDrawerClose,
|
|
129
|
+
onClosed: _ctx.handleDrawerClosed,
|
|
130
|
+
onOpenAutoFocus: _ctx.handleDrawerOpenAutoFocus,
|
|
131
|
+
onCloseAutoFocus: _ctx.handleDrawerCloseAutoFocus,
|
|
132
132
|
"onUpdate:modelValue": _ctx.updateModelValue
|
|
133
133
|
}), vue.createSlots({
|
|
134
134
|
header: vue.withCtx(({ close }) => [
|
|
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
29
29
|
closeDelay: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
30
30
|
top: {
|
|
31
31
|
readonly type: import('vue').PropType<string>;
|
|
32
|
-
readonly required: false;
|
|
32
|
+
readonly required: false; /** 关闭事件 */
|
|
33
33
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
34
|
__epPropKey: true;
|
|
35
35
|
};
|
|
@@ -68,12 +68,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
68
68
|
teleportTo: import('vue').ComputedRef<string | Element>;
|
|
69
69
|
handleClose: () => void;
|
|
70
70
|
updateModelValue: (value: boolean) => void;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
handleDrawerOpen: () => void;
|
|
72
|
+
handleDrawerOpened: () => void;
|
|
73
|
+
handleDrawerClose: () => void;
|
|
74
|
+
handleDrawerClosed: () => void;
|
|
75
|
+
handleDrawerOpenAutoFocus: () => void;
|
|
76
|
+
handleDrawerCloseAutoFocus: () => void;
|
|
77
77
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
78
78
|
open: () => boolean;
|
|
79
79
|
opened: () => boolean;
|
|
@@ -111,7 +111,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
111
111
|
closeDelay: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
112
112
|
top: {
|
|
113
113
|
readonly type: import('vue').PropType<string>;
|
|
114
|
-
readonly required: false;
|
|
114
|
+
readonly required: false; /** 关闭事件 */
|
|
115
115
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
116
|
__epPropKey: true;
|
|
117
117
|
};
|
|
@@ -39,14 +39,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
39
39
|
emit("change", value);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
const
|
|
42
|
+
const handleMenuClick = (command) => {
|
|
43
43
|
updateModelValue(command);
|
|
44
44
|
emit("command", command);
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const handleBtnClick = () => {
|
|
47
47
|
emit("click");
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const handlePopVisibleChange = (visible) => {
|
|
50
50
|
emit("visibleChange", visible);
|
|
51
51
|
};
|
|
52
52
|
const handleOpen = () => {
|
|
@@ -64,9 +64,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
64
64
|
dropdownRef,
|
|
65
65
|
rootProps,
|
|
66
66
|
selected,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
handleMenuClick,
|
|
68
|
+
handleBtnClick,
|
|
69
|
+
handlePopVisibleChange,
|
|
70
70
|
handleOpen,
|
|
71
71
|
handleClose
|
|
72
72
|
};
|
|
@@ -88,9 +88,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88
88
|
return vue.openBlock(), vue.createBlock(_component_ElDropdown, vue.mergeProps(_ctx.rootProps, {
|
|
89
89
|
ref: "dropdownRef",
|
|
90
90
|
class: "ele-dropdown-trigger",
|
|
91
|
-
onClick: _ctx.
|
|
92
|
-
onCommand: _ctx.
|
|
93
|
-
onVisibleChange: _ctx.
|
|
91
|
+
onClick: _ctx.handleBtnClick,
|
|
92
|
+
onCommand: _ctx.handleMenuClick,
|
|
93
|
+
onVisibleChange: _ctx.handlePopVisibleChange
|
|
94
94
|
}), {
|
|
95
95
|
dropdown: vue.withCtx(() => [
|
|
96
96
|
!_ctx.items && _ctx.$slots.dropdown ? vue.renderSlot(_ctx.$slots, "dropdown", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_ElDropdownMenu, {
|
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
47
47
|
dropdownRef: import('vue').Ref<ElDropdownInstance | undefined>;
|
|
48
48
|
rootProps: import('vue').ComputedRef<ElDropdownProps>;
|
|
49
49
|
selected: import('vue').ComputedRef<DropdownItem | null | undefined>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
handleMenuClick: (command: DropdownItem['command']) => void;
|
|
51
|
+
handleBtnClick: () => void;
|
|
52
|
+
handlePopVisibleChange: (visible: boolean) => void;
|
|
53
53
|
handleOpen: () => void;
|
|
54
54
|
handleClose: () => void;
|
|
55
55
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -48,7 +48,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
48
48
|
}
|
|
49
49
|
return style;
|
|
50
50
|
});
|
|
51
|
-
const
|
|
51
|
+
const handleHover = (e) => {
|
|
52
52
|
if (!props2.tooltip) {
|
|
53
53
|
virtualRef.value = void 0;
|
|
54
54
|
return;
|
|
@@ -81,7 +81,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
81
81
|
multiLine,
|
|
82
82
|
textProps,
|
|
83
83
|
rootStyle,
|
|
84
|
-
|
|
84
|
+
handleHover
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
});
|
|
@@ -99,7 +99,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
99
|
ref: "textRef",
|
|
100
100
|
style: _ctx.rootStyle,
|
|
101
101
|
class: ["ele-ellipsis", { "is-multi-line": _ctx.multiLine }],
|
|
102
|
-
onMouseover: _ctx.
|
|
102
|
+
onMouseover: _ctx.handleHover
|
|
103
103
|
}), {
|
|
104
104
|
default: vue.withCtx(() => [
|
|
105
105
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
30
|
multiLine: import('vue').ComputedRef<boolean>;
|
|
31
31
|
textProps: import('vue').ComputedRef<EleTextProps>;
|
|
32
32
|
rootStyle: import('vue').ComputedRef<Partial<import('vue').CSSProperties>>;
|
|
33
|
-
|
|
33
|
+
handleHover: (e: MouseEvent) => void;
|
|
34
34
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
35
|
maxLine: NumberConstructor;
|
|
36
36
|
lineHeight: (StringConstructor | NumberConstructor)[];
|
|
@@ -68,23 +68,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
68
68
|
}
|
|
69
69
|
return (_c = props.icons.find((d) => d.type === "file")) == null ? void 0 : _c.icon;
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const handleClick = () => {
|
|
72
72
|
emit("click", props.item);
|
|
73
73
|
};
|
|
74
|
-
const
|
|
74
|
+
const handleCheckChange = () => {
|
|
75
75
|
emit("checkChange", props.item);
|
|
76
76
|
};
|
|
77
|
-
const
|
|
77
|
+
const handleContextmenu = (e) => {
|
|
78
78
|
e.preventDefault();
|
|
79
79
|
e.stopPropagation();
|
|
80
80
|
if (dropdownRef.value) {
|
|
81
81
|
dropdownRef.value.handleOpen();
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
const
|
|
84
|
+
const handleItemContextMenu = (command) => {
|
|
85
85
|
emit("contextMenu", { key: command, item: props.item });
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const handleContextVisibleChange = (visible) => {
|
|
88
88
|
dropdownVisible.value = visible;
|
|
89
89
|
if (visible) {
|
|
90
90
|
emit("contextOpen", dropdownRef.value);
|
|
@@ -96,11 +96,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
96
96
|
selectable,
|
|
97
97
|
selected,
|
|
98
98
|
icon,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
handleClick,
|
|
100
|
+
handleCheckChange,
|
|
101
|
+
handleContextmenu,
|
|
102
|
+
handleItemContextMenu,
|
|
103
|
+
handleContextVisibleChange
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -126,11 +126,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
126
|
{ "is-checked": _ctx.selected },
|
|
127
127
|
{ "is-active": _ctx.dropdownVisible }
|
|
128
128
|
]),
|
|
129
|
-
onClick: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.
|
|
129
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
130
130
|
}, [
|
|
131
131
|
vue.createElementVNode("div", {
|
|
132
132
|
class: "ele-file-list-item-body",
|
|
133
|
-
onContextmenu: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
133
|
+
onContextmenu: _cache[0] || (_cache[0] = (...args) => _ctx.handleContextmenu && _ctx.handleContextmenu(...args))
|
|
134
134
|
}, [
|
|
135
135
|
vue.createElementVNode("div", _hoisted_1, [
|
|
136
136
|
vue.renderSlot(_ctx.$slots, "icon", {
|
|
@@ -153,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153
153
|
_ctx.selectable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: "ele-file-list-item-checkbox",
|
|
156
|
-
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.
|
|
156
|
+
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.handleCheckChange && _ctx.handleCheckChange(...args), ["stop"]))
|
|
157
157
|
}, _hoisted_5)) : vue.createCommentVNode("", true),
|
|
158
158
|
_ctx.contextMenus || _ctx.$slots.contextMenu ? (vue.openBlock(), vue.createBlock(_component_EleDropdown, vue.mergeProps({
|
|
159
159
|
key: 1,
|
|
@@ -164,8 +164,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
164
|
trigger: "click",
|
|
165
165
|
class: "ele-file-list-item-dropdown",
|
|
166
166
|
items: _ctx.contextMenus,
|
|
167
|
-
onCommand: _ctx.
|
|
168
|
-
onVisibleChange: _ctx.
|
|
167
|
+
onCommand: _ctx.handleItemContextMenu,
|
|
168
|
+
onVisibleChange: _ctx.handleContextVisibleChange
|
|
169
169
|
}), vue.createSlots({
|
|
170
170
|
default: vue.withCtx(() => [
|
|
171
171
|
vue.createElementVNode("div", {
|
|
@@ -27,11 +27,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
selectable: import('vue').ComputedRef<boolean>;
|
|
28
28
|
selected: import('vue').ComputedRef<boolean>;
|
|
29
29
|
icon: import('vue').ComputedRef<string | undefined>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
handleClick: () => void;
|
|
31
|
+
handleCheckChange: () => void;
|
|
32
|
+
handleContextmenu: (e: MouseEvent) => void;
|
|
33
|
+
handleItemContextMenu: (command: string) => void;
|
|
34
|
+
handleContextVisibleChange: (visible: boolean) => void;
|
|
35
35
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
36
|
click: (_item: FileItem) => true;
|
|
37
37
|
checkChange: (_item: FileItem) => true;
|
|
@@ -55,19 +55,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
55
55
|
}
|
|
56
56
|
return props.contextMenus;
|
|
57
57
|
};
|
|
58
|
-
const
|
|
58
|
+
const handleCheckAllChange = () => {
|
|
59
59
|
emit("checkAllChange");
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const handleItemClick = (item) => {
|
|
62
62
|
emit("itemClick", item);
|
|
63
63
|
};
|
|
64
|
-
const
|
|
64
|
+
const handleItemCheckChange = (item) => {
|
|
65
65
|
emit("itemCheckChange", item);
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const handleItemContextMenu = (option) => {
|
|
68
68
|
emit("itemContextMenu", option);
|
|
69
69
|
};
|
|
70
|
-
const
|
|
70
|
+
const handleItemContextOpen = (ref2) => {
|
|
71
71
|
if (itemRefs.value) {
|
|
72
72
|
itemRefs.value.forEach((r) => {
|
|
73
73
|
if ((r == null ? void 0 : r.dropdownRef) && r.dropdownRef !== ref2) {
|
|
@@ -80,11 +80,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
80
80
|
itemRefs,
|
|
81
81
|
headerText,
|
|
82
82
|
getContextMenus,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
handleCheckAllChange,
|
|
84
|
+
handleItemClick,
|
|
85
|
+
handleItemCheckChange,
|
|
86
|
+
handleItemContextMenu,
|
|
87
|
+
handleItemContextOpen
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
});
|
|
@@ -108,7 +108,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
108
|
_ctx.selectionType === "checkbox" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
109
109
|
vue.createElementVNode("div", {
|
|
110
110
|
class: "ele-file-list-selection",
|
|
111
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.
|
|
111
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleCheckAllChange && _ctx.handleCheckAllChange(...args), ["stop"]))
|
|
112
112
|
}, [
|
|
113
113
|
vue.createElementVNode("i", {
|
|
114
114
|
class: vue.normalizeClass([
|
|
@@ -133,10 +133,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
133
|
icons: _ctx.icons,
|
|
134
134
|
contextMenus: _ctx.getContextMenus(item),
|
|
135
135
|
contextMenuProps: _ctx.contextMenuProps,
|
|
136
|
-
onClick: _ctx.
|
|
137
|
-
onCheckChange: _ctx.
|
|
138
|
-
onContextMenu: _ctx.
|
|
139
|
-
onContextOpen: _ctx.
|
|
136
|
+
onClick: _ctx.handleItemClick,
|
|
137
|
+
onCheckChange: _ctx.handleItemCheckChange,
|
|
138
|
+
onContextMenu: _ctx.handleItemContextMenu,
|
|
139
|
+
onContextOpen: _ctx.handleItemContextOpen
|
|
140
140
|
}, vue.createSlots({ _: 2 }, [
|
|
141
141
|
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
142
142
|
return {
|
|
@@ -30,11 +30,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
30
|
itemRefs: Ref<GridItemInstance[]>;
|
|
31
31
|
headerText: import('vue').ComputedRef<string | undefined>;
|
|
32
32
|
getContextMenus: (item: FileItem) => import('../../ele-dropdown/types').DropdownItem[] | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
handleCheckAllChange: () => void;
|
|
34
|
+
handleItemClick: (item: FileItem) => void;
|
|
35
|
+
handleItemCheckChange: (item: FileItem) => void;
|
|
36
|
+
handleItemContextMenu: (option: ItemContextMenuOption) => void;
|
|
37
|
+
handleItemContextOpen: (ref: EleDropdownInstance) => void;
|
|
38
38
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
39
|
checkAllChange: () => true;
|
|
40
40
|
itemClick: (_item: FileItem) => true;
|
|
@@ -66,8 +66,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
66
66
|
}>> & {
|
|
67
67
|
onItemClick?: ((_item: FileItem) => any) | undefined;
|
|
68
68
|
onCheckAllChange?: (() => any) | undefined;
|
|
69
|
-
onItemContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
70
69
|
onItemCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
70
|
+
onItemContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
isIndeterminate: boolean;
|
|
73
73
|
isCheckAll: boolean;
|