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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
1
|
+
import { PropType, ExtractPropTypes, InjectionKey } from 'vue';
|
|
2
2
|
import { EleTextProps } from '../ele-app/plus';
|
|
3
|
-
import { ToolbarTheme } from './types';
|
|
3
|
+
import { ToolbarTheme, ToolbarProvide } from './types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 属性
|
|
@@ -27,3 +27,7 @@ export declare const toolbarProps: {
|
|
|
27
27
|
subtitleProps: PropType<EleTextProps>;
|
|
28
28
|
};
|
|
29
29
|
export type ToolbarProps = ExtractPropTypes<typeof toolbarProps>;
|
|
30
|
+
/**
|
|
31
|
+
* 共享数据key
|
|
32
|
+
*/
|
|
33
|
+
export declare const TOOLBAR_KEY: InjectionKey<ToolbarProvide>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import type { EleTooltipProps } from '../ele-app/plus';
|
|
1
2
|
/**
|
|
2
3
|
* 工具栏主题
|
|
3
4
|
*/
|
|
4
5
|
export type ToolbarTheme = 'default' | 'plain';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 共享数据
|
|
9
|
+
*/
|
|
10
|
+
export interface ToolbarProvide {
|
|
11
|
+
/** 显示提示 */
|
|
12
|
+
showTooltip?: (
|
|
13
|
+
text?: string,
|
|
14
|
+
el?: HTMLElement,
|
|
15
|
+
options?: EleTooltipProps
|
|
16
|
+
) => void;
|
|
17
|
+
/** 关闭提示 */
|
|
18
|
+
hideTooltip?: () => void;
|
|
19
|
+
}
|
|
@@ -77,34 +77,34 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
77
|
const updatePopper = () => {
|
|
78
78
|
tooltipRef.value && tooltipRef.value.updatePopper();
|
|
79
79
|
};
|
|
80
|
-
const
|
|
80
|
+
const handleOpen = (opt) => {
|
|
81
81
|
tooltipRef.value && tooltipRef.value.onOpen(opt);
|
|
82
82
|
};
|
|
83
|
-
const
|
|
83
|
+
const handleClose = (opt) => {
|
|
84
84
|
tooltipRef.value && tooltipRef.value.onClose(opt);
|
|
85
85
|
};
|
|
86
86
|
const hide = (opt) => {
|
|
87
87
|
tooltipRef.value && tooltipRef.value.hide(opt);
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const handleUpdateVisible = (visible) => {
|
|
90
90
|
emit("update:visible", visible);
|
|
91
91
|
};
|
|
92
|
-
const
|
|
92
|
+
const handlePopBeforeShow = (e) => {
|
|
93
93
|
emit("before-show", e);
|
|
94
94
|
};
|
|
95
|
-
const
|
|
95
|
+
const handlePopBeforeHide = (e) => {
|
|
96
96
|
emit("before-hide", e);
|
|
97
97
|
};
|
|
98
|
-
const
|
|
98
|
+
const handlePopShow = (e) => {
|
|
99
99
|
emit("show", e);
|
|
100
100
|
};
|
|
101
|
-
const
|
|
101
|
+
const handlePopHide = (e) => {
|
|
102
102
|
emit("hide", e);
|
|
103
103
|
};
|
|
104
|
-
const
|
|
104
|
+
const handlePopOpen = (e) => {
|
|
105
105
|
emit("open", e);
|
|
106
106
|
};
|
|
107
|
-
const
|
|
107
|
+
const handlePopClose = (e) => {
|
|
108
108
|
emit("close", e);
|
|
109
109
|
};
|
|
110
110
|
return {
|
|
@@ -114,16 +114,16 @@ const _sfc_main = vue.defineComponent({
|
|
|
114
114
|
contentRef,
|
|
115
115
|
isFocusInsideContent,
|
|
116
116
|
updatePopper,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
handleOpen,
|
|
118
|
+
handleClose,
|
|
119
119
|
hide,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
handleUpdateVisible,
|
|
121
|
+
handlePopBeforeShow,
|
|
122
|
+
handlePopBeforeHide,
|
|
123
|
+
handlePopShow,
|
|
124
|
+
handlePopHide,
|
|
125
|
+
handlePopOpen,
|
|
126
|
+
handlePopClose
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
});
|
|
@@ -139,13 +139,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
139
|
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
140
140
|
return vue.openBlock(), vue.createBlock(_component_ElTooltip, vue.mergeProps(_ctx.rootProps, {
|
|
141
141
|
ref: "tooltipRef",
|
|
142
|
-
"onUpdate:visible": _ctx.
|
|
143
|
-
onBeforeShow: _ctx.
|
|
144
|
-
onBeforeHide: _ctx.
|
|
145
|
-
onShow: _ctx.
|
|
146
|
-
onHide: _ctx.
|
|
147
|
-
onOpen: _ctx.
|
|
148
|
-
onClose: _ctx.
|
|
142
|
+
"onUpdate:visible": _ctx.handleUpdateVisible,
|
|
143
|
+
onBeforeShow: _ctx.handlePopBeforeShow,
|
|
144
|
+
onBeforeHide: _ctx.handlePopBeforeHide,
|
|
145
|
+
onShow: _ctx.handlePopShow,
|
|
146
|
+
onHide: _ctx.handlePopHide,
|
|
147
|
+
onOpen: _ctx.handlePopOpen,
|
|
148
|
+
onClose: _ctx.handlePopClose
|
|
149
149
|
}), {
|
|
150
150
|
content: vue.withCtx(() => [
|
|
151
151
|
vue.renderSlot(_ctx.$slots, "body", {}, () => [
|
|
@@ -51,16 +51,16 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
51
51
|
contentRef: import('vue').ComputedRef<any>;
|
|
52
52
|
isFocusInsideContent: () => void;
|
|
53
53
|
updatePopper: () => void;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
handleOpen: (opt?: Event) => void;
|
|
55
|
+
handleClose: (opt?: Event) => void;
|
|
56
56
|
hide: (opt?: Event) => void;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
handleUpdateVisible: (visible: boolean) => void;
|
|
58
|
+
handlePopBeforeShow: (e: Event) => void;
|
|
59
|
+
handlePopBeforeHide: (e: Event) => void;
|
|
60
|
+
handlePopShow: (e: Event) => void;
|
|
61
|
+
handlePopHide: (e: Event) => void;
|
|
62
|
+
handlePopOpen: (e: any) => void;
|
|
63
|
+
handlePopClose: (e: any) => void;
|
|
64
64
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('./props').TooltipEmits, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
65
65
|
bodyStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
66
66
|
bg: StringConstructor;
|
package/lib/ele-tour/index.cjs
CHANGED
|
@@ -69,17 +69,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
69
69
|
const updateModelValue = (value) => {
|
|
70
70
|
emit("update:modelValue", value);
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handlePrev = () => {
|
|
73
73
|
if (props2.modelValue != null && props2.steps != null && props2.steps.length && props2.modelValue > 0) {
|
|
74
74
|
updateModelValue(props2.modelValue - 1);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const
|
|
77
|
+
const handleNext = () => {
|
|
78
78
|
if (props2.modelValue != null && props2.steps != null && props2.steps.length && props2.modelValue < props2.steps.length - 1) {
|
|
79
79
|
updateModelValue(props2.modelValue + 1);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
const
|
|
82
|
+
const handleFinish = () => {
|
|
83
83
|
updateModelValue(null);
|
|
84
84
|
};
|
|
85
85
|
const updatePopper = () => {
|
|
@@ -104,9 +104,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
104
104
|
isLast,
|
|
105
105
|
boxStyle,
|
|
106
106
|
showMask,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
handlePrev,
|
|
108
|
+
handleNext,
|
|
109
|
+
handleFinish
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -182,7 +182,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
182
182
|
!_ctx.isLast ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
183
183
|
key: 0,
|
|
184
184
|
size: "small",
|
|
185
|
-
onClick: _ctx.
|
|
185
|
+
onClick: _ctx.handleFinish
|
|
186
186
|
}, {
|
|
187
187
|
default: vue.withCtx(() => [
|
|
188
188
|
vue.createTextVNode(vue.toDisplayString(_ctx.lang.skip), 1)
|
|
@@ -192,7 +192,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
192
|
_ctx.modelValue !== 0 ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
193
193
|
key: 1,
|
|
194
194
|
size: "small",
|
|
195
|
-
onClick: _ctx.
|
|
195
|
+
onClick: _ctx.handlePrev
|
|
196
196
|
}, {
|
|
197
197
|
default: vue.withCtx(() => [
|
|
198
198
|
vue.createTextVNode(vue.toDisplayString(_ctx.lang.prev), 1)
|
|
@@ -203,7 +203,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
203
|
key: 2,
|
|
204
204
|
size: "small",
|
|
205
205
|
type: "primary",
|
|
206
|
-
onClick: _ctx.
|
|
206
|
+
onClick: _ctx.handleNext
|
|
207
207
|
}, {
|
|
208
208
|
default: vue.withCtx(() => [
|
|
209
209
|
vue.createTextVNode(vue.toDisplayString(_ctx.lang.next), 1)
|
|
@@ -214,7 +214,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
214
214
|
key: 3,
|
|
215
215
|
size: "small",
|
|
216
216
|
type: "primary",
|
|
217
|
-
onClick: _ctx.
|
|
217
|
+
onClick: _ctx.handleFinish
|
|
218
218
|
}, {
|
|
219
219
|
default: vue.withCtx(() => [
|
|
220
220
|
vue.createTextVNode(vue.toDisplayString(_ctx.lang.finish), 1)
|
package/lib/ele-tour/index.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
28
|
isLast: Ref<boolean>;
|
|
29
29
|
boxStyle: Ref<Partial<import('vue').CSSProperties>>;
|
|
30
30
|
showMask: Ref<boolean>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
handlePrev: () => void;
|
|
32
|
+
handleNext: () => void;
|
|
33
|
+
handleFinish: () => void;
|
|
34
34
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
35
|
'update:modelValue': (_value?: number | null | undefined) => boolean;
|
|
36
36
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -134,7 +134,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
134
134
|
const label = item[treeOptions.value.label];
|
|
135
135
|
return label != null && label.includes(keywords);
|
|
136
136
|
};
|
|
137
|
-
const
|
|
137
|
+
const handleSelectFilter = (keywords) => {
|
|
138
138
|
treeRef.value && treeRef.value.filter(keywords);
|
|
139
139
|
};
|
|
140
140
|
const focusSearchInput = () => {
|
|
@@ -148,14 +148,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
148
148
|
};
|
|
149
149
|
const updateVisible = (visible) => {
|
|
150
150
|
if (visible) {
|
|
151
|
-
|
|
151
|
+
handleSelectFilter("");
|
|
152
152
|
}
|
|
153
153
|
if (selectVisible.value !== visible) {
|
|
154
154
|
selectVisible.value = visible;
|
|
155
155
|
emit("visibleChange", visible);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const handleSelectRemove = (item) => {
|
|
159
159
|
treeRef.value && treeRef.value.setChecked(item.value, false);
|
|
160
160
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
161
161
|
selectedItems.value = getMultipleSelected(keys);
|
|
@@ -164,18 +164,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
164
164
|
);
|
|
165
165
|
emit("removeTag", item.value);
|
|
166
166
|
};
|
|
167
|
-
const
|
|
167
|
+
const handleSelectClear = () => {
|
|
168
168
|
updateModelValue(props2.multiple ? [] : null);
|
|
169
169
|
updateVisible(false);
|
|
170
170
|
emit("clear");
|
|
171
171
|
};
|
|
172
|
-
const
|
|
172
|
+
const handleSelectFocus = (e) => {
|
|
173
173
|
emit("focus", e);
|
|
174
174
|
};
|
|
175
|
-
const
|
|
175
|
+
const handleSelectBlur = (e) => {
|
|
176
176
|
emit("blur", e);
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const handleTreeClick = (item, _node, e) => {
|
|
179
179
|
var _a, _b, _c;
|
|
180
180
|
e.stopPropagation();
|
|
181
181
|
const valueKey = treeOptions.value.value;
|
|
@@ -241,7 +241,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
const
|
|
244
|
+
const handleTreeCheck = () => {
|
|
245
245
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
246
246
|
selectedItems.value = getMultipleSelected(keys);
|
|
247
247
|
updateModelValue(
|
|
@@ -249,10 +249,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
249
249
|
);
|
|
250
250
|
focusSearchInput();
|
|
251
251
|
};
|
|
252
|
-
const
|
|
252
|
+
const handleTreeExpand = () => {
|
|
253
253
|
focusSearchInput();
|
|
254
254
|
};
|
|
255
|
-
const
|
|
255
|
+
const handleTreeCollapse = () => {
|
|
256
256
|
focusSearchInput();
|
|
257
257
|
};
|
|
258
258
|
vue.watch(
|
|
@@ -354,15 +354,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
354
354
|
updatePopover,
|
|
355
355
|
treeFilter,
|
|
356
356
|
updateVisible,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
357
|
+
handleSelectFilter,
|
|
358
|
+
handleSelectRemove,
|
|
359
|
+
handleSelectClear,
|
|
360
|
+
handleSelectFocus,
|
|
361
|
+
handleSelectBlur,
|
|
362
|
+
handleTreeClick,
|
|
363
|
+
handleTreeCheck,
|
|
364
|
+
handleTreeExpand,
|
|
365
|
+
handleTreeCollapse
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
});
|
|
@@ -403,11 +403,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
403
403
|
selected: _ctx.selectedItems.filter((d) => !d.hide),
|
|
404
404
|
visible: _ctx.selectVisible,
|
|
405
405
|
"onUpdate:visible": _ctx.updateVisible,
|
|
406
|
-
onFilterChange: _ctx.
|
|
407
|
-
onRemoveTag: _ctx.
|
|
408
|
-
onClear: _ctx.
|
|
409
|
-
onFocus: _ctx.
|
|
410
|
-
onBlur: _ctx.
|
|
406
|
+
onFilterChange: _ctx.handleSelectFilter,
|
|
407
|
+
onRemoveTag: _ctx.handleSelectRemove,
|
|
408
|
+
onClear: _ctx.handleSelectClear,
|
|
409
|
+
onFocus: _ctx.handleSelectFocus,
|
|
410
|
+
onBlur: _ctx.handleSelectBlur
|
|
411
411
|
}, vue.createSlots({
|
|
412
412
|
default: vue.withCtx(() => [
|
|
413
413
|
vue.createVNode(_component_ElTreeV2, vue.mergeProps({
|
|
@@ -420,10 +420,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
420
420
|
showCheckbox: !!_ctx.multiple,
|
|
421
421
|
checkOnClickNode: false,
|
|
422
422
|
defaultCheckedKeys: _ctx.multiple ? _ctx.modelValue : void 0,
|
|
423
|
-
onCheck: _ctx.
|
|
424
|
-
onNodeClick: _ctx.
|
|
425
|
-
onNodeExpand: _ctx.
|
|
426
|
-
onNodeCollapse: _ctx.
|
|
423
|
+
onCheck: _ctx.handleTreeCheck,
|
|
424
|
+
onNodeClick: _ctx.handleTreeClick,
|
|
425
|
+
onNodeExpand: _ctx.handleTreeExpand,
|
|
426
|
+
onNodeCollapse: _ctx.handleTreeCollapse
|
|
427
427
|
}), {
|
|
428
428
|
default: vue.withCtx((slotProps) => [
|
|
429
429
|
vue.createElementVNode("span", {
|
|
@@ -66,15 +66,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
66
66
|
updatePopover: () => void;
|
|
67
67
|
treeFilter: (keywords: string, item: DataItem) => any;
|
|
68
68
|
updateVisible: (visible: boolean) => void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
handleSelectFilter: (keywords: string) => void;
|
|
70
|
+
handleSelectRemove: (item: SelectedItem) => void;
|
|
71
|
+
handleSelectClear: () => void;
|
|
72
|
+
handleSelectFocus: (e: FocusEvent) => void;
|
|
73
|
+
handleSelectBlur: (e: FocusEvent) => void;
|
|
74
|
+
handleTreeClick: (item: DataItem, _node: any, e: MouseEvent) => void;
|
|
75
|
+
handleTreeCheck: () => void;
|
|
76
|
+
handleTreeExpand: () => void;
|
|
77
|
+
handleTreeCollapse: () => void;
|
|
78
78
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
79
|
'update:modelValue': (_value: SelectValue) => boolean;
|
|
80
80
|
change: (_value: SelectValue) => boolean;
|
|
@@ -40,16 +40,16 @@ const _sfc_main = vue.defineComponent({
|
|
|
40
40
|
retry: (_item) => true
|
|
41
41
|
},
|
|
42
42
|
setup(props, { emit }) {
|
|
43
|
-
const
|
|
43
|
+
const handleRemove = () => {
|
|
44
44
|
emit("remove", props.item);
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const handleItemClick = () => {
|
|
47
47
|
emit("itemClick", props.item);
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const handleRetry = () => {
|
|
50
50
|
emit("retry", props.item);
|
|
51
51
|
};
|
|
52
|
-
return {
|
|
52
|
+
return { handleRemove, handleItemClick, handleRetry };
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
const _export_sfc = (sfc, props) => {
|
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
85
85
|
title: _ctx.item.name,
|
|
86
86
|
class: "ele-upload-item",
|
|
87
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
87
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleItemClick && _ctx.handleItemClick(...args))
|
|
88
88
|
}, [
|
|
89
89
|
vue.renderSlot(_ctx.$slots, "thumbnail", { item: _ctx.item }, () => [
|
|
90
90
|
_ctx.item.url ? (vue.openBlock(), vue.createBlock(_component_ElImage, vue.mergeProps({
|
|
@@ -104,7 +104,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
104
|
!_ctx.readonly && !_ctx.disabled && !_ctx.item.readonly ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "ele-upload-remove",
|
|
107
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.
|
|
107
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleRemove && _ctx.handleRemove(...args), ["stop"]))
|
|
108
108
|
}, [
|
|
109
109
|
vue.renderSlot(_ctx.$slots, "remove", { item: _ctx.item }, () => [
|
|
110
110
|
vue.createVNode(_component_ElIcon, null, {
|
|
@@ -126,7 +126,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
126
|
_ctx.item.status === "exception" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "ele-upload-retry",
|
|
129
|
-
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.
|
|
129
|
+
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.handleRetry && _ctx.handleRetry(...args), ["stop"]))
|
|
130
130
|
}, [
|
|
131
131
|
vue.createVNode(_component_EleTooltip, {
|
|
132
132
|
content: _ctx.locale.retry,
|
|
@@ -22,9 +22,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
}, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
handleRemove: () => void;
|
|
26
|
+
handleItemClick: () => void;
|
|
27
|
+
handleRetry: () => void;
|
|
28
28
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
29
|
itemClick: (_item: UploadItem) => true;
|
|
30
30
|
remove: (_item: UploadItem) => true;
|
|
@@ -52,7 +52,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
52
52
|
const updateModelValue = (value) => {
|
|
53
53
|
emit("update:modelValue", value);
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleUpload = (file) => {
|
|
56
56
|
if (!uploadEnable.value || props2.disabled) {
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
@@ -64,15 +64,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
64
64
|
file
|
|
65
65
|
};
|
|
66
66
|
if (file.type.startsWith("image")) {
|
|
67
|
-
item.url =
|
|
67
|
+
item.url = URL.createObjectURL(file);
|
|
68
68
|
}
|
|
69
69
|
emit("upload", item);
|
|
70
70
|
return false;
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handleItemRemove = (item) => {
|
|
73
73
|
emit("remove", item);
|
|
74
74
|
};
|
|
75
|
-
const
|
|
75
|
+
const handleItemClick = (item) => {
|
|
76
76
|
if (props2.preview && item.url && props2.modelValue != null) {
|
|
77
77
|
const temp = props2.modelValue.filter((d) => !!d.url);
|
|
78
78
|
const i = temp.findIndex((t) => t.key === item.key);
|
|
@@ -93,7 +93,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
93
93
|
}
|
|
94
94
|
emit("itemClick", item);
|
|
95
95
|
};
|
|
96
|
-
const
|
|
96
|
+
const handleItemRetry = (item) => {
|
|
97
97
|
emit("retry", item);
|
|
98
98
|
};
|
|
99
99
|
vue.onDeactivated(() => {
|
|
@@ -106,10 +106,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
106
106
|
uploadEnable,
|
|
107
107
|
draggableProps,
|
|
108
108
|
updateModelValue,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
handleUpload,
|
|
110
|
+
handleItemRemove,
|
|
111
|
+
handleItemClick,
|
|
112
|
+
handleItemRetry
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -141,9 +141,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
141
|
class: vue.normalizeClass({
|
|
142
142
|
"ele-draggable": _ctx.sortable && !_ctx.readonly && !_ctx.disabled && _ctx.limit !== 1
|
|
143
143
|
}),
|
|
144
|
-
onItemClick: _ctx.
|
|
145
|
-
onRemove: _ctx.
|
|
146
|
-
onRetry: _ctx.
|
|
144
|
+
onItemClick: _ctx.handleItemClick,
|
|
145
|
+
onRemove: _ctx.handleItemRemove,
|
|
146
|
+
onRetry: _ctx.handleItemRetry
|
|
147
147
|
}, vue.createSlots({ _: 2 }, [
|
|
148
148
|
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
149
149
|
return {
|
|
@@ -168,7 +168,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
168
|
multiple: _ctx.multiple,
|
|
169
169
|
disabled: _ctx.disabled,
|
|
170
170
|
showUploadList: false,
|
|
171
|
-
beforeUpload: _ctx.
|
|
171
|
+
beforeUpload: _ctx.handleUpload
|
|
172
172
|
}, {
|
|
173
173
|
default: vue.withCtx(() => [
|
|
174
174
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -42,10 +42,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
42
|
uploadEnable: import('vue').ComputedRef<boolean>;
|
|
43
43
|
draggableProps: import('vue').ComputedRef<Record<string | number | symbol, any>>;
|
|
44
44
|
updateModelValue: (value: UploadItem[]) => void;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
handleUpload: (file: File) => boolean;
|
|
46
|
+
handleItemRemove: (item: UploadItem) => void;
|
|
47
|
+
handleItemClick: (item: UploadItem) => void;
|
|
48
|
+
handleItemRetry: (item: UploadItem) => void;
|
|
49
49
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
50
|
'update:modelValue': (_value: UploadItem[]) => boolean;
|
|
51
51
|
itemClick: (_item: UploadItem) => boolean;
|
|
@@ -269,32 +269,32 @@ const _sfc_main = vue.defineComponent({
|
|
|
269
269
|
}
|
|
270
270
|
return {};
|
|
271
271
|
});
|
|
272
|
-
const
|
|
272
|
+
const handleTextClick = (e) => {
|
|
273
273
|
if (colType.value === "selection") {
|
|
274
274
|
e.stopPropagation();
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
|
-
const
|
|
277
|
+
const handleCheckedChange = (checked) => {
|
|
278
278
|
emit("checkedChange", checked);
|
|
279
279
|
};
|
|
280
|
-
const
|
|
280
|
+
const handleExpandChange = () => {
|
|
281
281
|
if (!props.loading) {
|
|
282
282
|
emit("expandChange", props.isCollapse);
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
const
|
|
285
|
+
const handleClick = (e) => {
|
|
286
286
|
emit("click", originalCol.value, e);
|
|
287
287
|
};
|
|
288
|
-
const
|
|
288
|
+
const handleDblclick = (e) => {
|
|
289
289
|
emit("dblclick", originalCol.value, e);
|
|
290
290
|
};
|
|
291
|
-
const
|
|
291
|
+
const handleContextmenu = (e) => {
|
|
292
292
|
emit("contextmenu", originalCol.value, e);
|
|
293
293
|
};
|
|
294
|
-
const
|
|
294
|
+
const handleMouseenter = (e) => {
|
|
295
295
|
emit("mouseenter", originalCol.value, e);
|
|
296
296
|
};
|
|
297
|
-
const
|
|
297
|
+
const handleMouseleave = (e) => {
|
|
298
298
|
emit("mouseleave", originalCol.value, e);
|
|
299
299
|
};
|
|
300
300
|
return {
|
|
@@ -304,14 +304,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
304
304
|
cellText,
|
|
305
305
|
isExpandCol,
|
|
306
306
|
renderOpt,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
handleTextClick,
|
|
308
|
+
handleCheckedChange,
|
|
309
|
+
handleExpandChange,
|
|
310
|
+
handleClick,
|
|
311
|
+
handleDblclick,
|
|
312
|
+
handleContextmenu,
|
|
313
|
+
handleMouseenter,
|
|
314
|
+
handleMouseleave
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
});
|
|
@@ -335,15 +335,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
335
335
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
336
336
|
class: vue.normalizeClass(_ctx.cellClass),
|
|
337
337
|
style: vue.normalizeStyle(_ctx.cellStyle),
|
|
338
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
339
|
-
onDblclick: _cache[3] || (_cache[3] = (...args) => _ctx.
|
|
340
|
-
onContextmenu: _cache[4] || (_cache[4] = (...args) => _ctx.
|
|
341
|
-
onMouseenter: _cache[5] || (_cache[5] = (...args) => _ctx.
|
|
342
|
-
onMouseleave: _cache[6] || (_cache[6] = (...args) => _ctx.
|
|
338
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
339
|
+
onDblclick: _cache[3] || (_cache[3] = (...args) => _ctx.handleDblclick && _ctx.handleDblclick(...args)),
|
|
340
|
+
onContextmenu: _cache[4] || (_cache[4] = (...args) => _ctx.handleContextmenu && _ctx.handleContextmenu(...args)),
|
|
341
|
+
onMouseenter: _cache[5] || (_cache[5] = (...args) => _ctx.handleMouseenter && _ctx.handleMouseenter(...args)),
|
|
342
|
+
onMouseleave: _cache[6] || (_cache[6] = (...args) => _ctx.handleMouseleave && _ctx.handleMouseleave(...args))
|
|
343
343
|
}, [
|
|
344
344
|
vue.createElementVNode("div", {
|
|
345
345
|
class: "ele-table-cell",
|
|
346
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
346
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
347
347
|
}, [
|
|
348
348
|
_ctx.isExpandCol ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
349
349
|
_ctx.rowIndent ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -354,7 +354,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
354
354
|
_ctx.hasChildren ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
355
355
|
key: 1,
|
|
356
356
|
class: vue.normalizeClass(["ele-table-expand", { "is-collapse": _ctx.isCollapse }]),
|
|
357
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.
|
|
357
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleExpandChange && _ctx.handleExpandChange(...args), ["stop"]))
|
|
358
358
|
}, [
|
|
359
359
|
vue.createVNode(_component_ElIcon, {
|
|
360
360
|
class: vue.normalizeClass({ "is-loading": _ctx.loading })
|
|
@@ -371,7 +371,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
371
371
|
checked: _ctx.isChecked,
|
|
372
372
|
disabled: _ctx.isDisabled,
|
|
373
373
|
size: _ctx.tableSize,
|
|
374
|
-
onChange: _ctx.
|
|
374
|
+
onChange: _ctx.handleCheckedChange
|
|
375
375
|
}, null, 8, ["checked", "disabled", "size", "onChange"])) : _ctx.colType !== "expand" ? (vue.openBlock(), vue.createBlock(_component_CellRender, vue.normalizeProps(vue.mergeProps({ key: 2 }, _ctx.renderOpt)), {
|
|
376
376
|
default: vue.withCtx(() => [
|
|
377
377
|
vue.createTextVNode(vue.toDisplayString(_ctx.cellText), 1)
|