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