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
package/es/ele-app/plus.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { TableProps } from '../ele-table/props';
|
|
|
23
23
|
import type EleTabs from '../ele-tabs/index';
|
|
24
24
|
import type EleText from '../ele-text/index';
|
|
25
25
|
import type { TextProps } from '../ele-text/props';
|
|
26
|
+
import type EleTool from '../ele-tool/index';
|
|
26
27
|
import type { ToolProps } from '../ele-tool/props';
|
|
27
28
|
import type { ToolbarProps } from '../ele-toolbar/props';
|
|
28
29
|
import type EleTooltip from '../ele-tooltip/index';
|
|
@@ -137,6 +138,8 @@ export type EleTextProps = ComponentProps<TextProps>;
|
|
|
137
138
|
/**
|
|
138
139
|
* EleTool
|
|
139
140
|
*/
|
|
141
|
+
export type EleToolInstance = InstanceType<typeof EleTool> | null;
|
|
142
|
+
|
|
140
143
|
export type EleToolProps = Partial<ToolProps>;
|
|
141
144
|
|
|
142
145
|
/**
|
|
@@ -101,6 +101,25 @@ body .el-overlay.is-message-box > .el-overlay-message-box {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/* useMessageBox */
|
|
105
|
+
.ele-message-box > .el-message-box__content > .el-message-box__container {
|
|
106
|
+
gap: 0;
|
|
107
|
+
|
|
108
|
+
& > .el-message-box__status {
|
|
109
|
+
width: auto;
|
|
110
|
+
height: auto;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ele-message-box-icon {
|
|
115
|
+
width: 1em;
|
|
116
|
+
height: 1em;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
margin-right: 12px;
|
|
121
|
+
}
|
|
122
|
+
|
|
104
123
|
/* 容器 */
|
|
105
124
|
.ele-message-box-wrapper {
|
|
106
125
|
position: absolute;
|
|
@@ -31,10 +31,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
avatarData: import('vue').ComputedRef<AvatarItem[]>;
|
|
32
32
|
overflowCount: import('vue').ComputedRef<number>;
|
|
33
33
|
overflowData: import('vue').ComputedRef<AvatarItem[]>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
handleItemHover: (item: AvatarItem, e: MouseEvent) => void;
|
|
35
|
+
handleItemClick: (item: AvatarItem) => void;
|
|
36
|
+
handleMoreClick: () => void;
|
|
37
|
+
handleError: (option: AvatarErrorOption) => void;
|
|
38
38
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
39
|
itemClick: (_item: AvatarItem) => boolean;
|
|
40
40
|
moreClick: () => boolean;
|
|
@@ -42,19 +42,19 @@ const _sfc_main = defineComponent({
|
|
|
42
42
|
}
|
|
43
43
|
return props.data.slice(props.maxCount);
|
|
44
44
|
});
|
|
45
|
-
const
|
|
45
|
+
const handleItemHover = (item, e) => {
|
|
46
46
|
if (props.tooltip && item.label) {
|
|
47
47
|
virtualRef.value = e.currentTarget;
|
|
48
48
|
tooltipContent.value = item.label;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
const
|
|
51
|
+
const handleItemClick = (item) => {
|
|
52
52
|
emit("itemClick", item);
|
|
53
53
|
};
|
|
54
|
-
const
|
|
54
|
+
const handleMoreClick = () => {
|
|
55
55
|
emit("moreClick");
|
|
56
56
|
};
|
|
57
|
-
const
|
|
57
|
+
const handleError = (option) => {
|
|
58
58
|
emit("error", option);
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
@@ -66,10 +66,10 @@ const _sfc_main = defineComponent({
|
|
|
66
66
|
avatarData,
|
|
67
67
|
overflowCount,
|
|
68
68
|
overflowData,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
handleItemHover,
|
|
70
|
+
handleItemClick,
|
|
71
|
+
handleMoreClick,
|
|
72
|
+
handleError
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
});
|
|
@@ -98,9 +98,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
98
98
|
shape: _ctx.shape,
|
|
99
99
|
src: item.value,
|
|
100
100
|
style: normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
101
|
-
onClick: ($event) => _ctx.
|
|
102
|
-
onError: (e) => _ctx.
|
|
103
|
-
onMouseover: (e) => _ctx.
|
|
101
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
102
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
103
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
104
104
|
}, {
|
|
105
105
|
default: withCtx(() => [
|
|
106
106
|
_ctx.$slots.item ? renderSlot(_ctx.$slots, "item", {
|
|
@@ -134,9 +134,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
134
|
shape: _ctx.shape,
|
|
135
135
|
src: item.value,
|
|
136
136
|
style: normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
137
|
-
onClick: ($event) => _ctx.
|
|
138
|
-
onError: (e) => _ctx.
|
|
139
|
-
onMouseover: (e) => _ctx.
|
|
137
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
138
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
139
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
140
140
|
}, {
|
|
141
141
|
default: withCtx(() => [
|
|
142
142
|
_ctx.$slots.item ? renderSlot(_ctx.$slots, "item", {
|
|
@@ -156,7 +156,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
156
156
|
shape: _ctx.shape,
|
|
157
157
|
style: normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.moreStyle]),
|
|
158
158
|
class: "ele-avatar-more",
|
|
159
|
-
onClick: _ctx.
|
|
159
|
+
onClick: _ctx.handleMoreClick
|
|
160
160
|
}, {
|
|
161
161
|
default: withCtx(() => [
|
|
162
162
|
createElementVNode("span", _hoisted_1, [
|
|
@@ -50,11 +50,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
50
|
updateSearchValue: (modelValue: string) => void;
|
|
51
51
|
updateInputValue: (modelValue: string) => void;
|
|
52
52
|
updateVisible: (visible: boolean) => void;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
handleTagClose: (item: SelectedItem) => void;
|
|
54
|
+
handleClear: () => void;
|
|
55
|
+
handleInputFocus: (e: FocusEvent) => void;
|
|
56
|
+
handleInputBlur: (e: FocusEvent) => void;
|
|
57
|
+
handleInputEsc: (e: FocusEvent) => void;
|
|
58
58
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
59
|
'update:visible': (_visible: boolean) => boolean;
|
|
60
60
|
removeTag: (_item: SelectedItem) => boolean;
|
|
@@ -91,24 +91,24 @@ const _sfc_main = defineComponent({
|
|
|
91
91
|
emit("update:visible", visible);
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
const
|
|
94
|
+
const handleTagClose = (item) => {
|
|
95
95
|
if (!props.disabled) {
|
|
96
96
|
emit("removeTag", item);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
const
|
|
99
|
+
const handleClear = () => {
|
|
100
100
|
emit("clear");
|
|
101
101
|
};
|
|
102
|
-
const
|
|
102
|
+
const handleInputFocus = (e) => {
|
|
103
103
|
if (props.automaticDropdown && !props.visible) {
|
|
104
104
|
updateVisible(true);
|
|
105
105
|
}
|
|
106
106
|
emit("focus", e);
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const handleInputBlur = (e) => {
|
|
109
109
|
emit("blur", e);
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const handleInputEsc = (e) => {
|
|
112
112
|
if (!props.disabled && props.visible) {
|
|
113
113
|
e.stopPropagation();
|
|
114
114
|
e.preventDefault();
|
|
@@ -156,11 +156,11 @@ const _sfc_main = defineComponent({
|
|
|
156
156
|
updateSearchValue,
|
|
157
157
|
updateInputValue,
|
|
158
158
|
updateVisible,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
handleTagClose,
|
|
160
|
+
handleClear,
|
|
161
|
+
handleInputFocus,
|
|
162
|
+
handleInputBlur,
|
|
163
|
+
handleInputEsc
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
});
|
|
@@ -238,15 +238,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
238
|
readonly: !_ctx.filterable || !_ctx.visible || _ctx.multiple,
|
|
239
239
|
style: normalizeStyle(_ctx.inputStyle),
|
|
240
240
|
"onUpdate:modelValue": _ctx.updateInputValue,
|
|
241
|
-
onFocus: _ctx.
|
|
242
|
-
onBlur: _ctx.
|
|
243
|
-
onKeydown: withKeys(_ctx.
|
|
241
|
+
onFocus: _ctx.handleInputFocus,
|
|
242
|
+
onBlur: _ctx.handleInputBlur,
|
|
243
|
+
onKeydown: withKeys(_ctx.handleInputEsc, ["esc"])
|
|
244
244
|
}, createSlots({
|
|
245
245
|
suffix: withCtx(() => [
|
|
246
246
|
_ctx.clearable && !_ctx.disabled && !_ctx.isEmpty ? (openBlock(), createBlock(_component_ElIcon, {
|
|
247
247
|
key: 0,
|
|
248
248
|
class: "ele-select-clear el-input__icon",
|
|
249
|
-
onClick: withModifiers(_ctx.
|
|
249
|
+
onClick: withModifiers(_ctx.handleClear, ["stop"])
|
|
250
250
|
}, {
|
|
251
251
|
default: withCtx(() => [
|
|
252
252
|
renderSlot(_ctx.$slots, "clearIcon", {}, () => [
|
|
@@ -283,7 +283,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
283
283
|
closable: !_ctx.disabled,
|
|
284
284
|
disableTransitions: true,
|
|
285
285
|
title: item.label,
|
|
286
|
-
onClose: ($event) => _ctx.
|
|
286
|
+
onClose: ($event) => _ctx.handleTagClose(item)
|
|
287
287
|
}, {
|
|
288
288
|
default: withCtx(() => [
|
|
289
289
|
item.label && _ctx.maxTagTextLength && item.label.length > _ctx.maxTagTextLength ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -325,7 +325,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325
325
|
modelValue: _ctx.searchValue,
|
|
326
326
|
placeholder: _ctx.inputPlaceholder,
|
|
327
327
|
"onUpdate:modelValue": _ctx.updateSearchValue,
|
|
328
|
-
onKeydown: withKeys(_ctx.
|
|
328
|
+
onKeydown: withKeys(_ctx.handleInputEsc, ["esc"])
|
|
329
329
|
}, null, 8, ["size", "modelValue", "placeholder", "onUpdate:modelValue", "onKeydown"])
|
|
330
330
|
]),
|
|
331
331
|
_: 1
|
package/es/ele-card/index.js
CHANGED
|
@@ -89,7 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
89
|
class: "ele-card-collapse-icon",
|
|
90
90
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleCollapseClick && _ctx.handleCollapseClick(...args), ["stop"]))
|
|
91
91
|
}, [
|
|
92
|
-
renderSlot(_ctx.$slots, "collapseIcon", {}, () => [
|
|
92
|
+
renderSlot(_ctx.$slots, "collapseIcon", { collapse: _ctx.isCollapse }, () => [
|
|
93
93
|
createVNode(_component_ElIcon, null, {
|
|
94
94
|
default: withCtx(() => [
|
|
95
95
|
createVNode(_component_ArrowUp)
|
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
row: import('vue').PropType<boolean | import('../ele-app/el').ElRowProps>;
|
|
23
23
|
}, {
|
|
24
24
|
isChecked: (item: CheckCardItem) => boolean;
|
|
25
|
-
|
|
25
|
+
handleItemClick: (item: CheckCardItem) => void;
|
|
26
26
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
27
|
'update:modelValue': (_value: CheckedValue) => boolean;
|
|
28
28
|
change: (_value: CheckedValue) => boolean;
|
|
@@ -24,7 +24,7 @@ const _sfc_main = defineComponent({
|
|
|
24
24
|
emit("update:modelValue", value);
|
|
25
25
|
emit("change", value);
|
|
26
26
|
};
|
|
27
|
-
const
|
|
27
|
+
const handleItemClick = (item) => {
|
|
28
28
|
if (props.disabled || item.disabled) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
@@ -50,7 +50,7 @@ const _sfc_main = defineComponent({
|
|
|
50
50
|
}
|
|
51
51
|
updateModelValue(props.modelValue.filter((v) => v !== item.value));
|
|
52
52
|
};
|
|
53
|
-
return { isChecked,
|
|
53
|
+
return { isChecked, handleItemClick };
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const _export_sfc = (sfc, props) => {
|
|
@@ -83,7 +83,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83
83
|
arrowStyle: _ctx.arrowStyle,
|
|
84
84
|
style: normalizeStyle([_ctx.itemStyle, item.style]),
|
|
85
85
|
class: normalizeClass([_ctx.itemClass, item.class]),
|
|
86
|
-
onClick: ($event) => _ctx.
|
|
86
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
87
87
|
}, {
|
|
88
88
|
default: withCtx((slotProps) => [
|
|
89
89
|
renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -109,7 +109,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
109
|
arrowStyle: _ctx.arrowStyle,
|
|
110
110
|
style: normalizeStyle([_ctx.itemStyle, item.style]),
|
|
111
111
|
class: normalizeClass([_ctx.itemClass, item.class]),
|
|
112
|
-
onClick: ($event) => _ctx.
|
|
112
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
113
113
|
}, {
|
|
114
114
|
default: withCtx((slotProps) => [
|
|
115
115
|
renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -26,8 +26,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
tooltipRef: import('vue').Ref<EleTooltipInstance>;
|
|
27
27
|
virtualRef: import('vue').Ref<HTMLElement | undefined>;
|
|
28
28
|
copied: import('vue').Ref<boolean>;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
handleCopyClick: () => void;
|
|
30
|
+
handleCopyHover: (e: MouseEvent) => void;
|
|
31
31
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
32
|
copy: (_error?: any) => boolean;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
package/es/ele-copyable/index.js
CHANGED
|
@@ -27,7 +27,7 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
}
|
|
28
28
|
return ((_a = innerRef.value) == null ? void 0 : _a.innerText) || "";
|
|
29
29
|
};
|
|
30
|
-
const
|
|
30
|
+
const handleCopyClick = () => {
|
|
31
31
|
copyText(getText()).then(() => {
|
|
32
32
|
copied.value = true;
|
|
33
33
|
updateTooltip();
|
|
@@ -43,7 +43,7 @@ const _sfc_main = defineComponent({
|
|
|
43
43
|
emit("copy", error);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const handleCopyHover = (e) => {
|
|
47
47
|
if (props.tooltip) {
|
|
48
48
|
virtualRef.value = e.currentTarget;
|
|
49
49
|
}
|
|
@@ -63,8 +63,8 @@ const _sfc_main = defineComponent({
|
|
|
63
63
|
tooltipRef,
|
|
64
64
|
virtualRef,
|
|
65
65
|
copied,
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
handleCopyClick,
|
|
67
|
+
handleCopyHover
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -93,8 +93,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
createElementVNode("div", {
|
|
94
94
|
class: "ele-copyable-icon",
|
|
95
95
|
style: normalizeStyle(_ctx.customStyle),
|
|
96
|
-
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
97
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
96
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.handleCopyHover && _ctx.handleCopyHover(...args)),
|
|
97
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCopyClick && _ctx.handleCopyClick(...args))
|
|
98
98
|
}, [
|
|
99
99
|
_ctx.copied ? (openBlock(), createBlock(_component_ElIcon, normalizeProps(mergeProps({ key: 0 }, _ctx.copiedIconProps || {})), {
|
|
100
100
|
default: withCtx(() => [
|
|
@@ -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;
|
|
@@ -53,7 +53,7 @@ const _sfc_main = defineComponent({
|
|
|
53
53
|
const groups = shallowRef([]);
|
|
54
54
|
const tooltipContent = ref("");
|
|
55
55
|
const virtualRef = ref();
|
|
56
|
-
const
|
|
56
|
+
const handleUpload = (file) => {
|
|
57
57
|
const reader = new FileReader();
|
|
58
58
|
reader.onload = (e) => {
|
|
59
59
|
var _a;
|
|
@@ -65,10 +65,10 @@ const _sfc_main = defineComponent({
|
|
|
65
65
|
reader.readAsDataURL(file);
|
|
66
66
|
return false;
|
|
67
67
|
};
|
|
68
|
-
const
|
|
68
|
+
const handleClick = (name) => {
|
|
69
69
|
emit(name);
|
|
70
70
|
};
|
|
71
|
-
const
|
|
71
|
+
const handleItemHover = (item, e) => {
|
|
72
72
|
const title = lang.value[item.name];
|
|
73
73
|
if (props.tooltip && item.name !== "ok" && title) {
|
|
74
74
|
virtualRef.value = e.currentTarget;
|
|
@@ -106,9 +106,9 @@ const _sfc_main = defineComponent({
|
|
|
106
106
|
groups,
|
|
107
107
|
tooltipContent,
|
|
108
108
|
virtualRef,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
handleUpload,
|
|
110
|
+
handleClick,
|
|
111
|
+
handleItemHover
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
});
|
|
@@ -141,7 +141,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
141
|
action: "",
|
|
142
142
|
accept: _ctx.accept,
|
|
143
143
|
showUploadList: false,
|
|
144
|
-
beforeUpload: _ctx.
|
|
144
|
+
beforeUpload: _ctx.handleUpload,
|
|
145
145
|
style: { "display": "inline-block", "line-height": "0" }
|
|
146
146
|
}, {
|
|
147
147
|
default: withCtx(() => [
|
|
@@ -149,7 +149,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
149
|
type: "primary",
|
|
150
150
|
icon: item.icon,
|
|
151
151
|
class: normalizeClass(["ele-cropper-tool", item.className]),
|
|
152
|
-
onMouseover: (e) => _ctx.
|
|
152
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
153
153
|
}, null, 8, ["icon", "class", "onMouseover"])
|
|
154
154
|
]),
|
|
155
155
|
_: 2
|
|
@@ -158,8 +158,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
158
|
type: "primary",
|
|
159
159
|
icon: item.icon,
|
|
160
160
|
class: normalizeClass(["ele-cropper-tool", item.className]),
|
|
161
|
-
onMouseover: (e) => _ctx.
|
|
162
|
-
onClick: ($event) => _ctx.
|
|
161
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e),
|
|
162
|
+
onClick: ($event) => _ctx.handleClick(item.name)
|
|
163
163
|
}, {
|
|
164
164
|
default: withCtx(() => [
|
|
165
165
|
item.name === "ok" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -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) => {
|