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,19 +43,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
43
43
|
}
|
|
44
44
|
return props2.data.slice(props2.maxCount);
|
|
45
45
|
});
|
|
46
|
-
const
|
|
46
|
+
const handleItemHover = (item, e) => {
|
|
47
47
|
if (props2.tooltip && item.label) {
|
|
48
48
|
virtualRef.value = e.currentTarget;
|
|
49
49
|
tooltipContent.value = item.label;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
const
|
|
52
|
+
const handleItemClick = (item) => {
|
|
53
53
|
emit("itemClick", item);
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleMoreClick = () => {
|
|
56
56
|
emit("moreClick");
|
|
57
57
|
};
|
|
58
|
-
const
|
|
58
|
+
const handleError = (option) => {
|
|
59
59
|
emit("error", option);
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
@@ -67,10 +67,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
67
|
avatarData,
|
|
68
68
|
overflowCount,
|
|
69
69
|
overflowData,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
handleItemHover,
|
|
71
|
+
handleItemClick,
|
|
72
|
+
handleMoreClick,
|
|
73
|
+
handleError
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -99,9 +99,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
99
|
shape: _ctx.shape,
|
|
100
100
|
src: item.value,
|
|
101
101
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
102
|
-
onClick: ($event) => _ctx.
|
|
103
|
-
onError: (e) => _ctx.
|
|
104
|
-
onMouseover: (e) => _ctx.
|
|
102
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
103
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
104
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
105
105
|
}, {
|
|
106
106
|
default: vue.withCtx(() => [
|
|
107
107
|
_ctx.$slots.item ? vue.renderSlot(_ctx.$slots, "item", {
|
|
@@ -135,9 +135,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
135
|
shape: _ctx.shape,
|
|
136
136
|
src: item.value,
|
|
137
137
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.avatarStyle]),
|
|
138
|
-
onClick: ($event) => _ctx.
|
|
139
|
-
onError: (e) => _ctx.
|
|
140
|
-
onMouseover: (e) => _ctx.
|
|
138
|
+
onClick: ($event) => _ctx.handleItemClick(item),
|
|
139
|
+
onError: (e) => _ctx.handleError({ item, e }),
|
|
140
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
141
141
|
}, {
|
|
142
142
|
default: vue.withCtx(() => [
|
|
143
143
|
_ctx.$slots.item ? vue.renderSlot(_ctx.$slots, "item", {
|
|
@@ -157,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
shape: _ctx.shape,
|
|
158
158
|
style: vue.normalizeStyle([_ctx.commonStyle, _ctx.itemStyle, _ctx.moreStyle]),
|
|
159
159
|
class: "ele-avatar-more",
|
|
160
|
-
onClick: _ctx.
|
|
160
|
+
onClick: _ctx.handleMoreClick
|
|
161
161
|
}, {
|
|
162
162
|
default: vue.withCtx(() => [
|
|
163
163
|
vue.createElementVNode("span", _hoisted_1, [
|
|
@@ -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;
|
|
@@ -92,24 +92,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
92
92
|
emit("update:visible", visible);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
const
|
|
95
|
+
const handleTagClose = (item) => {
|
|
96
96
|
if (!props2.disabled) {
|
|
97
97
|
emit("removeTag", item);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
const
|
|
100
|
+
const handleClear = () => {
|
|
101
101
|
emit("clear");
|
|
102
102
|
};
|
|
103
|
-
const
|
|
103
|
+
const handleInputFocus = (e) => {
|
|
104
104
|
if (props2.automaticDropdown && !props2.visible) {
|
|
105
105
|
updateVisible(true);
|
|
106
106
|
}
|
|
107
107
|
emit("focus", e);
|
|
108
108
|
};
|
|
109
|
-
const
|
|
109
|
+
const handleInputBlur = (e) => {
|
|
110
110
|
emit("blur", e);
|
|
111
111
|
};
|
|
112
|
-
const
|
|
112
|
+
const handleInputEsc = (e) => {
|
|
113
113
|
if (!props2.disabled && props2.visible) {
|
|
114
114
|
e.stopPropagation();
|
|
115
115
|
e.preventDefault();
|
|
@@ -157,11 +157,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
157
157
|
updateSearchValue,
|
|
158
158
|
updateInputValue,
|
|
159
159
|
updateVisible,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
handleTagClose,
|
|
161
|
+
handleClear,
|
|
162
|
+
handleInputFocus,
|
|
163
|
+
handleInputBlur,
|
|
164
|
+
handleInputEsc
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
});
|
|
@@ -239,15 +239,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
239
239
|
readonly: !_ctx.filterable || !_ctx.visible || _ctx.multiple,
|
|
240
240
|
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
241
241
|
"onUpdate:modelValue": _ctx.updateInputValue,
|
|
242
|
-
onFocus: _ctx.
|
|
243
|
-
onBlur: _ctx.
|
|
244
|
-
onKeydown: vue.withKeys(_ctx.
|
|
242
|
+
onFocus: _ctx.handleInputFocus,
|
|
243
|
+
onBlur: _ctx.handleInputBlur,
|
|
244
|
+
onKeydown: vue.withKeys(_ctx.handleInputEsc, ["esc"])
|
|
245
245
|
}, vue.createSlots({
|
|
246
246
|
suffix: vue.withCtx(() => [
|
|
247
247
|
_ctx.clearable && !_ctx.disabled && !_ctx.isEmpty ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
248
248
|
key: 0,
|
|
249
249
|
class: "ele-select-clear el-input__icon",
|
|
250
|
-
onClick: vue.withModifiers(_ctx.
|
|
250
|
+
onClick: vue.withModifiers(_ctx.handleClear, ["stop"])
|
|
251
251
|
}, {
|
|
252
252
|
default: vue.withCtx(() => [
|
|
253
253
|
vue.renderSlot(_ctx.$slots, "clearIcon", {}, () => [
|
|
@@ -284,7 +284,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
284
284
|
closable: !_ctx.disabled,
|
|
285
285
|
disableTransitions: true,
|
|
286
286
|
title: item.label,
|
|
287
|
-
onClose: ($event) => _ctx.
|
|
287
|
+
onClose: ($event) => _ctx.handleTagClose(item)
|
|
288
288
|
}, {
|
|
289
289
|
default: vue.withCtx(() => [
|
|
290
290
|
item.label && _ctx.maxTagTextLength && item.label.length > _ctx.maxTagTextLength ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -326,7 +326,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
326
326
|
modelValue: _ctx.searchValue,
|
|
327
327
|
placeholder: _ctx.inputPlaceholder,
|
|
328
328
|
"onUpdate:modelValue": _ctx.updateSearchValue,
|
|
329
|
-
onKeydown: vue.withKeys(_ctx.
|
|
329
|
+
onKeydown: vue.withKeys(_ctx.handleInputEsc, ["esc"])
|
|
330
330
|
}, null, 8, ["size", "modelValue", "placeholder", "onUpdate:modelValue", "onKeydown"])
|
|
331
331
|
]),
|
|
332
332
|
_: 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;
|
|
@@ -25,7 +25,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
25
25
|
emit("update:modelValue", value);
|
|
26
26
|
emit("change", value);
|
|
27
27
|
};
|
|
28
|
-
const
|
|
28
|
+
const handleItemClick = (item) => {
|
|
29
29
|
if (props2.disabled || item.disabled) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
@@ -51,7 +51,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
51
|
}
|
|
52
52
|
updateModelValue(props2.modelValue.filter((v) => v !== item.value));
|
|
53
53
|
};
|
|
54
|
-
return { isChecked,
|
|
54
|
+
return { isChecked, handleItemClick };
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
arrowStyle: _ctx.arrowStyle,
|
|
85
85
|
style: vue.normalizeStyle([_ctx.itemStyle, item.style]),
|
|
86
86
|
class: vue.normalizeClass([_ctx.itemClass, item.class]),
|
|
87
|
-
onClick: ($event) => _ctx.
|
|
87
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
88
88
|
}, {
|
|
89
89
|
default: vue.withCtx((slotProps) => [
|
|
90
90
|
vue.renderSlot(_ctx.$slots, "item", vue.mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -110,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
110
|
arrowStyle: _ctx.arrowStyle,
|
|
111
111
|
style: vue.normalizeStyle([_ctx.itemStyle, item.style]),
|
|
112
112
|
class: vue.normalizeClass([_ctx.itemClass, item.class]),
|
|
113
|
-
onClick: ($event) => _ctx.
|
|
113
|
+
onClick: ($event) => _ctx.handleItemClick(item)
|
|
114
114
|
}, {
|
|
115
115
|
default: vue.withCtx((slotProps) => [
|
|
116
116
|
vue.renderSlot(_ctx.$slots, "item", vue.mergeProps({ ref_for: true }, slotProps || {}), () => [
|
|
@@ -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;
|
|
@@ -28,7 +28,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
28
|
}
|
|
29
29
|
return ((_a = innerRef.value) == null ? void 0 : _a.innerText) || "";
|
|
30
30
|
};
|
|
31
|
-
const
|
|
31
|
+
const handleCopyClick = () => {
|
|
32
32
|
core.copyText(getText()).then(() => {
|
|
33
33
|
copied.value = true;
|
|
34
34
|
updateTooltip();
|
|
@@ -44,7 +44,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
44
44
|
emit("copy", error);
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
const
|
|
47
|
+
const handleCopyHover = (e) => {
|
|
48
48
|
if (props2.tooltip) {
|
|
49
49
|
virtualRef.value = e.currentTarget;
|
|
50
50
|
}
|
|
@@ -64,8 +64,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
64
64
|
tooltipRef,
|
|
65
65
|
virtualRef,
|
|
66
66
|
copied,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
handleCopyClick,
|
|
68
|
+
handleCopyHover
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -94,8 +94,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
94
|
vue.createElementVNode("div", {
|
|
95
95
|
class: "ele-copyable-icon",
|
|
96
96
|
style: vue.normalizeStyle(_ctx.customStyle),
|
|
97
|
-
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
98
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
97
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.handleCopyHover && _ctx.handleCopyHover(...args)),
|
|
98
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCopyClick && _ctx.handleCopyClick(...args))
|
|
99
99
|
}, [
|
|
100
100
|
_ctx.copied ? (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.copiedIconProps || {})), {
|
|
101
101
|
default: vue.withCtx(() => [
|
|
@@ -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<{
|
|
@@ -54,7 +54,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
54
54
|
const groups = vue.shallowRef([]);
|
|
55
55
|
const tooltipContent = vue.ref("");
|
|
56
56
|
const virtualRef = vue.ref();
|
|
57
|
-
const
|
|
57
|
+
const handleUpload = (file) => {
|
|
58
58
|
const reader = new FileReader();
|
|
59
59
|
reader.onload = (e) => {
|
|
60
60
|
var _a;
|
|
@@ -66,10 +66,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
66
|
reader.readAsDataURL(file);
|
|
67
67
|
return false;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
69
|
+
const handleClick = (name) => {
|
|
70
70
|
emit(name);
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handleItemHover = (item, e) => {
|
|
73
73
|
const title = lang.value[item.name];
|
|
74
74
|
if (props.tooltip && item.name !== "ok" && title) {
|
|
75
75
|
virtualRef.value = e.currentTarget;
|
|
@@ -107,9 +107,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
107
107
|
groups,
|
|
108
108
|
tooltipContent,
|
|
109
109
|
virtualRef,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
handleUpload,
|
|
111
|
+
handleClick,
|
|
112
|
+
handleItemHover
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -142,7 +142,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
142
|
action: "",
|
|
143
143
|
accept: _ctx.accept,
|
|
144
144
|
showUploadList: false,
|
|
145
|
-
beforeUpload: _ctx.
|
|
145
|
+
beforeUpload: _ctx.handleUpload,
|
|
146
146
|
style: { "display": "inline-block", "line-height": "0" }
|
|
147
147
|
}, {
|
|
148
148
|
default: vue.withCtx(() => [
|
|
@@ -150,7 +150,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
150
|
type: "primary",
|
|
151
151
|
icon: item.icon,
|
|
152
152
|
class: vue.normalizeClass(["ele-cropper-tool", item.className]),
|
|
153
|
-
onMouseover: (e) => _ctx.
|
|
153
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e)
|
|
154
154
|
}, null, 8, ["icon", "class", "onMouseover"])
|
|
155
155
|
]),
|
|
156
156
|
_: 2
|
|
@@ -159,8 +159,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
type: "primary",
|
|
160
160
|
icon: item.icon,
|
|
161
161
|
class: vue.normalizeClass(["ele-cropper-tool", item.className]),
|
|
162
|
-
onMouseover: (e) => _ctx.
|
|
163
|
-
onClick: ($event) => _ctx.
|
|
162
|
+
onMouseover: (e) => _ctx.handleItemHover(item, e),
|
|
163
|
+
onClick: ($event) => _ctx.handleClick(item.name)
|
|
164
164
|
}, {
|
|
165
165
|
default: vue.withCtx(() => [
|
|
166
166
|
item.name === "ok" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -17,9 +17,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
groups: import('vue').ShallowRef<ToolGroup[]>;
|
|
18
18
|
tooltipContent: import('vue').Ref<string>;
|
|
19
19
|
virtualRef: import('vue').Ref<any>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
handleUpload: (file: File) => boolean;
|
|
21
|
+
handleClick: (name: Omit<ToolName, 'upload'>) => void;
|
|
22
|
+
handleItemHover: (item: ToolItem, e: MouseEvent) => void;
|
|
23
23
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
24
|
zoomIn: () => true;
|
|
25
25
|
zoomOut: () => true;
|
|
@@ -34,42 +34,42 @@ const _sfc_main = vue.defineComponent({
|
|
|
34
34
|
state.instance && state.instance.destroy();
|
|
35
35
|
state.instance = null;
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const handleZoomIn = () => {
|
|
38
38
|
state.instance && state.instance.zoom(0.1);
|
|
39
39
|
};
|
|
40
|
-
const
|
|
40
|
+
const handleZoomOut = () => {
|
|
41
41
|
state.instance && state.instance.zoom(-0.1);
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const handleMoveLeft = () => {
|
|
44
44
|
state.instance && state.instance.move(-10, 0);
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const handleMoveRight = () => {
|
|
47
47
|
state.instance && state.instance.move(10, 0);
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const handleMoveUp = () => {
|
|
50
50
|
state.instance && state.instance.move(0, -10);
|
|
51
51
|
};
|
|
52
|
-
const
|
|
52
|
+
const handleMoveDown = () => {
|
|
53
53
|
state.instance && state.instance.move(0, 10);
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleRotateLeft = () => {
|
|
56
56
|
state.instance && state.instance.rotate(-45);
|
|
57
57
|
};
|
|
58
|
-
const
|
|
58
|
+
const handleRotateRight = () => {
|
|
59
59
|
state.instance && state.instance.rotate(45);
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const handleFlipX = () => {
|
|
62
62
|
state.instance && state.instance.scaleX(state.scaleXValue);
|
|
63
63
|
state.scaleXValue = -state.scaleXValue;
|
|
64
64
|
};
|
|
65
|
-
const
|
|
65
|
+
const handleFlipY = () => {
|
|
66
66
|
state.instance && state.instance.scaleY(state.scaleYValue);
|
|
67
67
|
state.scaleYValue = -state.scaleYValue;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
69
|
+
const handleReset = () => {
|
|
70
70
|
state.instance && state.instance.reset();
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const handleUpload = ({ data, type }) => {
|
|
73
73
|
state.imageType = type;
|
|
74
74
|
if (state.instance) {
|
|
75
75
|
state.instance.replace(data);
|
|
@@ -82,7 +82,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
82
82
|
render();
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
const
|
|
85
|
+
const handleOk = () => {
|
|
86
86
|
if (!state.instance) {
|
|
87
87
|
emit("done");
|
|
88
88
|
return;
|
|
@@ -135,19 +135,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
135
135
|
imageRef,
|
|
136
136
|
previewRef,
|
|
137
137
|
isResponsive,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
138
|
+
handleZoomIn,
|
|
139
|
+
handleZoomOut,
|
|
140
|
+
handleMoveLeft,
|
|
141
|
+
handleMoveRight,
|
|
142
|
+
handleMoveUp,
|
|
143
|
+
handleMoveDown,
|
|
144
|
+
handleRotateLeft,
|
|
145
|
+
handleRotateRight,
|
|
146
|
+
handleFlipX,
|
|
147
|
+
handleFlipY,
|
|
148
|
+
handleReset,
|
|
149
|
+
handleUpload,
|
|
150
|
+
handleOk
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
});
|
|
@@ -190,19 +190,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
190
|
locale: _ctx.locale,
|
|
191
191
|
tooltip: _ctx.tooltip,
|
|
192
192
|
tooltipProps: _ctx.tooltipProps,
|
|
193
|
-
onZoomIn: _ctx.
|
|
194
|
-
onZoomOut: _ctx.
|
|
195
|
-
onMoveLeft: _ctx.
|
|
196
|
-
onMoveRight: _ctx.
|
|
197
|
-
onMoveUp: _ctx.
|
|
198
|
-
onMoveDown: _ctx.
|
|
199
|
-
onRotateLeft: _ctx.
|
|
200
|
-
onRotateRight: _ctx.
|
|
201
|
-
onFlipX: _ctx.
|
|
202
|
-
onFlipY: _ctx.
|
|
203
|
-
onReset: _ctx.
|
|
204
|
-
onUpload: _ctx.
|
|
205
|
-
onOk: _ctx.
|
|
193
|
+
onZoomIn: _ctx.handleZoomIn,
|
|
194
|
+
onZoomOut: _ctx.handleZoomOut,
|
|
195
|
+
onMoveLeft: _ctx.handleMoveLeft,
|
|
196
|
+
onMoveRight: _ctx.handleMoveRight,
|
|
197
|
+
onMoveUp: _ctx.handleMoveUp,
|
|
198
|
+
onMoveDown: _ctx.handleMoveDown,
|
|
199
|
+
onRotateLeft: _ctx.handleRotateLeft,
|
|
200
|
+
onRotateRight: _ctx.handleRotateRight,
|
|
201
|
+
onFlipX: _ctx.handleFlipX,
|
|
202
|
+
onFlipY: _ctx.handleFlipY,
|
|
203
|
+
onReset: _ctx.handleReset,
|
|
204
|
+
onUpload: _ctx.handleUpload,
|
|
205
|
+
onOk: _ctx.handleOk
|
|
206
206
|
}, null, 8, ["tools", "accept", "locale", "tooltip", "tooltipProps", "onZoomIn", "onZoomOut", "onMoveLeft", "onMoveRight", "onMoveUp", "onMoveDown", "onRotateLeft", "onRotateRight", "onFlipX", "onFlipY", "onReset", "onUpload", "onOk"])
|
|
207
207
|
], 2);
|
|
208
208
|
}
|
|
@@ -43,22 +43,22 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
43
|
imageRef: Ref<HTMLImageElement | null>;
|
|
44
44
|
previewRef: Ref<PreviewInstance>;
|
|
45
45
|
isResponsive: import('vue').ComputedRef<boolean>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
handleZoomIn: () => void;
|
|
47
|
+
handleZoomOut: () => void;
|
|
48
|
+
handleMoveLeft: () => void;
|
|
49
|
+
handleMoveRight: () => void;
|
|
50
|
+
handleMoveUp: () => void;
|
|
51
|
+
handleMoveDown: () => void;
|
|
52
|
+
handleRotateLeft: () => void;
|
|
53
|
+
handleRotateRight: () => void;
|
|
54
|
+
handleFlipX: () => void;
|
|
55
|
+
handleFlipY: () => void;
|
|
56
|
+
handleReset: () => void;
|
|
57
|
+
handleUpload: ({ data, type }: {
|
|
58
58
|
data: string;
|
|
59
59
|
type: string;
|
|
60
60
|
}) => void;
|
|
61
|
-
|
|
61
|
+
handleOk: () => void;
|
|
62
62
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
63
|
done: (_result?: string | Blob | null | undefined) => boolean;
|
|
64
64
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -14,10 +14,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
const updateModelValue = (value) => {
|
|
15
15
|
emit("update:modelValue", value);
|
|
16
16
|
};
|
|
17
|
-
const
|
|
17
|
+
const handleDone = (result) => {
|
|
18
18
|
emit("done", result);
|
|
19
19
|
};
|
|
20
|
-
return { lang, updateModelValue,
|
|
20
|
+
return { lang, updateModelValue, handleDone };
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -53,7 +53,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53
53
|
tooltipProps: _ctx.tooltipProps,
|
|
54
54
|
responsive: _ctx.responsive,
|
|
55
55
|
locale: _ctx.locale,
|
|
56
|
-
onDone: _ctx.
|
|
56
|
+
onDone: _ctx.handleDone
|
|
57
57
|
}, null, 8, ["height", "src", "imageType", "accept", "tools", "preview", "previewWidth", "toBlob", "options", "croppedOptions", "tooltip", "tooltipProps", "responsive", "locale", "onDone"])
|
|
58
58
|
]),
|
|
59
59
|
_: 2
|
|
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
41
41
|
}, {
|
|
42
42
|
lang: import('vue').ComputedRef<CropperLocale>;
|
|
43
43
|
updateModelValue: (value: boolean) => void;
|
|
44
|
-
|
|
44
|
+
handleDone: (result: Blob | string | null) => void;
|
|
45
45
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
46
|
done: (_result: string | Blob | null) => boolean;
|
|
47
47
|
'update:modelValue': (_value: boolean) => boolean; /** 更新绑定值 */
|
|
@@ -32,7 +32,7 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
32
32
|
columnKey: col.columnKey ?? col.prop,
|
|
33
33
|
className: getCellClass(col),
|
|
34
34
|
index: col.index ?? pageIndex,
|
|
35
|
-
key: col.uid
|
|
35
|
+
key: col.uid ?? col.columnKey ?? col.prop
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
default: (slotProps) => {
|
package/lib/ele-drawer/index.cjs
CHANGED
|
@@ -47,22 +47,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
47
|
const updateModelValue = (value) => {
|
|
48
48
|
emit("update:modelValue", value);
|
|
49
49
|
};
|
|
50
|
-
const
|
|
50
|
+
const handleDrawerOpen = () => {
|
|
51
51
|
emit("open");
|
|
52
52
|
};
|
|
53
|
-
const
|
|
53
|
+
const handleDrawerOpened = () => {
|
|
54
54
|
emit("opened");
|
|
55
55
|
};
|
|
56
|
-
const
|
|
56
|
+
const handleDrawerClose = () => {
|
|
57
57
|
emit("close");
|
|
58
58
|
};
|
|
59
|
-
const
|
|
59
|
+
const handleDrawerClosed = () => {
|
|
60
60
|
emit("closed");
|
|
61
61
|
};
|
|
62
|
-
const
|
|
62
|
+
const handleDrawerOpenAutoFocus = () => {
|
|
63
63
|
emit("openAutoFocus");
|
|
64
64
|
};
|
|
65
|
-
const
|
|
65
|
+
const handleDrawerCloseAutoFocus = () => {
|
|
66
66
|
emit("closeAutoFocus");
|
|
67
67
|
};
|
|
68
68
|
vue.onActivated(() => {
|
|
@@ -77,12 +77,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
77
|
teleportTo,
|
|
78
78
|
handleClose,
|
|
79
79
|
updateModelValue,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
handleDrawerOpen,
|
|
81
|
+
handleDrawerOpened,
|
|
82
|
+
handleDrawerClose,
|
|
83
|
+
handleDrawerClosed,
|
|
84
|
+
handleDrawerOpenAutoFocus,
|
|
85
|
+
handleDrawerCloseAutoFocus
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -123,12 +123,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
123
|
modalClass: _ctx.drawerClass,
|
|
124
124
|
zIndex: _ctx.zIndex,
|
|
125
125
|
headerAriaLevel: _ctx.headerAriaLevel,
|
|
126
|
-
onOpen: _ctx.
|
|
127
|
-
onOpened: _ctx.
|
|
128
|
-
onClose: _ctx.
|
|
129
|
-
onClosed: _ctx.
|
|
130
|
-
onOpenAutoFocus: _ctx.
|
|
131
|
-
onCloseAutoFocus: _ctx.
|
|
126
|
+
onOpen: _ctx.handleDrawerOpen,
|
|
127
|
+
onOpened: _ctx.handleDrawerOpened,
|
|
128
|
+
onClose: _ctx.handleDrawerClose,
|
|
129
|
+
onClosed: _ctx.handleDrawerClosed,
|
|
130
|
+
onOpenAutoFocus: _ctx.handleDrawerOpenAutoFocus,
|
|
131
|
+
onCloseAutoFocus: _ctx.handleDrawerCloseAutoFocus,
|
|
132
132
|
"onUpdate:modelValue": _ctx.updateModelValue
|
|
133
133
|
}), vue.createSlots({
|
|
134
134
|
header: vue.withCtx(({ close }) => [
|