ele-admin-plus 1.1.3 → 1.1.4-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-alert/index.d.ts +10 -10
- package/es/ele-alert/props.d.ts +6 -6
- package/es/ele-app/style/message.scss +1 -0
- package/es/ele-app/style/overwrite.scss +84 -3
- package/es/ele-app/types/index.d.ts +7 -6
- package/es/ele-avatar-group/index.d.ts +7 -8
- package/es/ele-avatar-group/props.d.ts +3 -4
- package/es/ele-basic-select/style/index.scss +4 -6
- package/es/ele-bottom-bar/index.d.ts +4 -4
- package/es/ele-bottom-bar/props.d.ts +2 -3
- package/es/ele-card/index.d.ts +6 -6
- package/es/ele-card/props.d.ts +3 -4
- package/es/ele-check-card/components/card-item.d.ts +2 -3
- package/es/ele-check-card/index.d.ts +4 -4
- package/es/ele-check-card/props.d.ts +3 -3
- package/es/ele-config-provider/receiver.d.ts +1 -1
- package/es/ele-config-provider/receiver.js +29 -29
- package/es/ele-copyable/index.d.ts +8 -8
- package/es/ele-copyable/index.js +5 -4
- package/es/ele-copyable/props.d.ts +5 -5
- package/es/ele-copyable/style/index.scss +4 -0
- package/es/ele-count-up/index.d.ts +2 -2
- package/es/ele-count-up/index.js +2 -1
- package/es/ele-count-up/props.d.ts +1 -1
- package/es/ele-cropper/index.js +2 -2
- package/es/ele-dashboard/index.d.ts +1 -2
- package/es/ele-drawer/index.d.ts +16 -10
- package/es/ele-drawer/props.d.ts +7 -6
- package/es/ele-dropdown/index.d.ts +2 -2
- package/es/ele-dropdown/props.d.ts +1 -2
- package/es/ele-edit-tag/index.d.ts +4 -4
- package/es/ele-edit-tag/props.d.ts +2 -3
- package/es/ele-ellipsis/index.d.ts +4 -5
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-ellipsis/style/index.scss +4 -0
- package/es/ele-file-list/index.d.ts +2 -7
- package/es/ele-file-list/index.js +2 -2
- package/es/ele-file-list/types/index.d.ts +0 -4
- package/es/ele-icon-select/components/icon-grid.d.ts +5 -5
- package/es/ele-icon-select/components/icon-popper.d.ts +15 -15
- package/es/ele-icon-select/index.d.ts +15 -16
- package/es/ele-icon-select/props.d.ts +8 -8
- package/es/ele-loading/index.d.ts +26 -1
- package/es/ele-loading/index.js +53 -11
- package/es/ele-loading/props.d.ts +11 -1
- package/es/ele-loading/props.js +16 -1
- package/es/ele-loading/style/css-var.scss +7 -0
- package/es/ele-loading/style/index.js +1 -0
- package/es/ele-loading/style/index.scss +90 -0
- package/es/ele-loading/types/index.d.ts +17 -0
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-map-picker/index.d.ts +2 -2
- package/es/ele-map-picker/props.d.ts +3 -3
- package/es/ele-menus/index.d.ts +2 -0
- package/es/ele-menus/index.js +11 -5
- package/es/ele-menus/props.d.ts +10 -0
- package/es/ele-menus/props.js +7 -1
- package/es/ele-menus/style/index.scss +18 -18
- package/es/ele-menus/types/index.d.ts +4 -0
- package/es/ele-menus/util.d.ts +4 -3
- package/es/ele-menus/util.js +23 -12
- package/es/ele-modal/index.d.ts +19 -13
- package/es/ele-modal/props.d.ts +8 -7
- package/es/ele-modal/types/index.d.ts +9 -0
- package/es/ele-modal/util.js +45 -32
- package/es/ele-pagination/index.d.ts +1 -1
- package/es/ele-popconfirm/index.d.ts +10 -10
- package/es/ele-popconfirm/index.js +8 -2
- package/es/ele-popconfirm/props.d.ts +6 -6
- package/es/ele-popover/index.d.ts +6 -6
- package/es/ele-popover/props.d.ts +3 -4
- package/es/ele-printer/index.d.ts +7 -6
- package/es/ele-printer/index.js +11 -4
- package/es/ele-printer/props.d.ts +3 -4
- package/es/ele-pro-layout/components/pro-header.d.ts +7 -2
- package/es/ele-pro-layout/components/pro-header.js +15 -5
- package/es/ele-pro-layout/components/pro-iframe.js +10 -7
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
- package/es/ele-pro-layout/components/pro-sidebar.js +14 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
- package/es/ele-pro-layout/components/pro-sidebox.js +16 -5
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -4
- package/es/ele-pro-layout/index.d.ts +17 -3
- package/es/ele-pro-layout/index.js +208 -105
- package/es/ele-pro-layout/props.d.ts +6 -1
- package/es/ele-pro-layout/props.js +10 -0
- package/es/ele-pro-layout/style/collapse.scss +9 -10
- package/es/ele-pro-layout/style/index.js +0 -1
- package/es/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/es/ele-pro-layout/types/index.d.ts +9 -0
- package/es/ele-pro-layout/util.d.ts +4 -2
- package/es/ele-pro-layout/util.js +20 -17
- package/es/ele-pro-table/components/table-view.d.ts +9 -3
- package/es/ele-pro-table/components/table-view.js +27 -24
- package/es/ele-pro-table/components/tool-column.d.ts +2 -1
- package/es/ele-pro-table/components/tool-column.js +26 -18
- package/es/ele-pro-table/index.d.ts +46 -25
- package/es/ele-pro-table/index.js +182 -196
- package/es/ele-pro-table/props.d.ts +27 -15
- package/es/ele-pro-table/props.js +15 -3
- package/es/ele-pro-table/style/index.js +1 -1
- package/es/ele-pro-table/style/index.scss +64 -8
- package/es/ele-pro-table/types/index.d.ts +39 -5
- package/es/ele-pro-table/util.d.ts +84 -49
- package/es/ele-pro-table/util.js +193 -78
- package/es/ele-qr-code/index.d.ts +3 -3
- package/es/ele-qr-code/props.d.ts +1 -2
- package/es/ele-qr-code-svg/index.d.ts +3 -3
- package/es/ele-split-panel/index.d.ts +6 -6
- package/es/ele-split-panel/props.d.ts +3 -4
- package/es/ele-table/style/index.scss +1 -0
- package/es/ele-tabs/index.js +4 -3
- package/es/ele-tabs/types/index.d.ts +3 -0
- package/es/ele-text/index.d.ts +3 -3
- package/es/ele-text/props.d.ts +2 -2
- package/es/ele-toolbar/index.d.ts +6 -6
- package/es/ele-toolbar/props.d.ts +3 -4
- package/es/ele-tooltip/index.d.ts +3 -3
- package/es/ele-tooltip/props.d.ts +1 -2
- package/es/ele-tour/index.d.ts +2 -3
- package/es/ele-tour/style/index.scss +1 -1
- package/es/ele-tour/util.js +3 -3
- package/es/ele-upload-list/index.d.ts +8 -7
- package/es/ele-upload-list/index.js +18 -11
- package/es/ele-upload-list/props.d.ts +4 -4
- package/es/ele-upload-list/props.js +1 -1
- package/es/ele-watermark/index.d.ts +16 -8
- package/es/ele-watermark/index.js +18 -12
- package/es/ele-watermark/props.d.ts +3 -1
- package/es/ele-watermark/props.js +5 -1
- package/es/ele-watermark/util.js +1 -1
- package/es/ele-xg-player/index.js +1 -0
- package/es/style/index.scss +1 -0
- package/es/style/nprogress.scss +2 -2
- package/es/style/themes/default.scss +36 -12
- package/es/style/themes/rounded.scss +4 -2
- package/es/style/themes/theme-util.scss +2 -0
- package/es/utils/core.d.ts +1 -1
- package/es/utils/core.js +17 -15
- package/es/utils/resolvers.js +2 -2
- package/lib/ele-alert/index.d.ts +10 -10
- package/lib/ele-alert/props.d.ts +6 -6
- package/lib/ele-app/style/message.scss +1 -0
- package/lib/ele-app/style/overwrite.scss +84 -3
- package/lib/ele-app/types/index.d.ts +7 -6
- package/lib/ele-avatar-group/index.d.ts +7 -8
- package/lib/ele-avatar-group/props.d.ts +3 -4
- package/lib/ele-basic-select/style/index.scss +4 -6
- package/lib/ele-bottom-bar/index.d.ts +4 -4
- package/lib/ele-bottom-bar/props.d.ts +2 -3
- package/lib/ele-card/index.d.ts +6 -6
- package/lib/ele-card/props.d.ts +3 -4
- package/lib/ele-check-card/components/card-item.d.ts +2 -3
- package/lib/ele-check-card/index.d.ts +4 -4
- package/lib/ele-check-card/props.d.ts +3 -3
- package/lib/ele-config-provider/receiver.d.ts +1 -1
- package/lib/ele-config-provider/receiver.js +2 -2
- package/lib/ele-copyable/index.d.ts +8 -8
- package/lib/ele-copyable/index.js +4 -3
- package/lib/ele-copyable/props.d.ts +5 -5
- package/lib/ele-copyable/style/index.scss +4 -0
- package/lib/ele-count-up/index.d.ts +2 -2
- package/lib/ele-count-up/index.js +2 -1
- package/lib/ele-count-up/props.d.ts +1 -1
- package/lib/ele-cropper/index.js +2 -2
- package/lib/ele-dashboard/index.d.ts +1 -2
- package/lib/ele-drawer/index.d.ts +16 -10
- package/lib/ele-drawer/props.d.ts +7 -6
- package/lib/ele-dropdown/index.d.ts +2 -2
- package/lib/ele-dropdown/props.d.ts +1 -2
- package/lib/ele-edit-tag/index.d.ts +4 -4
- package/lib/ele-edit-tag/props.d.ts +2 -3
- package/lib/ele-ellipsis/index.d.ts +4 -5
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-ellipsis/style/index.scss +4 -0
- package/lib/ele-file-list/index.d.ts +2 -7
- package/lib/ele-file-list/index.js +2 -2
- package/lib/ele-file-list/types/index.d.ts +0 -4
- package/lib/ele-icon-select/components/icon-grid.d.ts +5 -5
- package/lib/ele-icon-select/components/icon-popper.d.ts +15 -15
- package/lib/ele-icon-select/index.d.ts +15 -16
- package/lib/ele-icon-select/props.d.ts +8 -8
- package/lib/ele-loading/index.d.ts +26 -1
- package/lib/ele-loading/index.js +52 -10
- package/lib/ele-loading/props.d.ts +11 -1
- package/lib/ele-loading/props.js +16 -1
- package/lib/ele-loading/style/css-var.scss +7 -0
- package/lib/ele-loading/style/index.js +1 -0
- package/lib/ele-loading/style/index.scss +90 -0
- package/lib/ele-loading/types/index.d.ts +17 -0
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-map-picker/index.d.ts +2 -2
- package/lib/ele-map-picker/props.d.ts +3 -3
- package/lib/ele-menus/index.d.ts +2 -0
- package/lib/ele-menus/index.js +9 -3
- package/lib/ele-menus/props.d.ts +10 -0
- package/lib/ele-menus/props.js +6 -0
- package/lib/ele-menus/style/index.scss +18 -18
- package/lib/ele-menus/types/index.d.ts +4 -0
- package/lib/ele-menus/util.d.ts +4 -3
- package/lib/ele-menus/util.js +23 -12
- package/lib/ele-modal/index.d.ts +19 -13
- package/lib/ele-modal/props.d.ts +8 -7
- package/lib/ele-modal/types/index.d.ts +9 -0
- package/lib/ele-modal/util.js +45 -32
- package/lib/ele-pagination/index.d.ts +1 -1
- package/lib/ele-popconfirm/index.d.ts +10 -10
- package/lib/ele-popconfirm/index.js +8 -2
- package/lib/ele-popconfirm/props.d.ts +6 -6
- package/lib/ele-popover/index.d.ts +6 -6
- package/lib/ele-popover/props.d.ts +3 -4
- package/lib/ele-printer/index.d.ts +7 -6
- package/lib/ele-printer/index.js +10 -3
- package/lib/ele-printer/props.d.ts +3 -4
- package/lib/ele-pro-layout/components/pro-header.d.ts +7 -2
- package/lib/ele-pro-layout/components/pro-header.js +15 -5
- package/lib/ele-pro-layout/components/pro-iframe.js +10 -7
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
- package/lib/ele-pro-layout/components/pro-sidebar.js +14 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
- package/lib/ele-pro-layout/components/pro-sidebox.js +16 -5
- package/lib/ele-pro-layout/components/tab-dropdown.js +1 -4
- package/lib/ele-pro-layout/index.d.ts +17 -3
- package/lib/ele-pro-layout/index.js +205 -102
- package/lib/ele-pro-layout/props.d.ts +6 -1
- package/lib/ele-pro-layout/props.js +10 -0
- package/lib/ele-pro-layout/style/collapse.scss +9 -10
- package/lib/ele-pro-layout/style/index.js +0 -1
- package/lib/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/lib/ele-pro-layout/types/index.d.ts +9 -0
- package/lib/ele-pro-layout/util.d.ts +4 -2
- package/lib/ele-pro-layout/util.js +19 -16
- package/lib/ele-pro-table/components/table-view.d.ts +9 -3
- package/lib/ele-pro-table/components/table-view.js +25 -22
- package/lib/ele-pro-table/components/tool-column.d.ts +2 -1
- package/lib/ele-pro-table/components/tool-column.js +25 -17
- package/lib/ele-pro-table/index.d.ts +46 -25
- package/lib/ele-pro-table/index.js +180 -194
- package/lib/ele-pro-table/props.d.ts +27 -15
- package/lib/ele-pro-table/props.js +15 -3
- package/lib/ele-pro-table/style/index.js +1 -1
- package/lib/ele-pro-table/style/index.scss +64 -8
- package/lib/ele-pro-table/types/index.d.ts +39 -5
- package/lib/ele-pro-table/util.d.ts +84 -49
- package/lib/ele-pro-table/util.js +192 -77
- package/lib/ele-qr-code/index.d.ts +3 -3
- package/lib/ele-qr-code/props.d.ts +1 -2
- package/lib/ele-qr-code-svg/index.d.ts +3 -3
- package/lib/ele-split-panel/index.d.ts +6 -6
- package/lib/ele-split-panel/props.d.ts +3 -4
- package/lib/ele-table/style/index.scss +1 -0
- package/lib/ele-tabs/index.js +4 -3
- package/lib/ele-tabs/types/index.d.ts +3 -0
- package/lib/ele-text/index.d.ts +3 -3
- package/lib/ele-text/props.d.ts +2 -2
- package/lib/ele-toolbar/index.d.ts +6 -6
- package/lib/ele-toolbar/props.d.ts +3 -4
- package/lib/ele-tooltip/index.d.ts +3 -3
- package/lib/ele-tooltip/props.d.ts +1 -2
- package/lib/ele-tour/index.d.ts +2 -3
- package/lib/ele-tour/style/index.scss +1 -1
- package/lib/ele-tour/util.js +3 -3
- package/lib/ele-upload-list/index.d.ts +8 -7
- package/lib/ele-upload-list/index.js +17 -10
- package/lib/ele-upload-list/props.d.ts +4 -4
- package/lib/ele-upload-list/props.js +1 -1
- package/lib/ele-watermark/index.d.ts +16 -8
- package/lib/ele-watermark/index.js +17 -11
- package/lib/ele-watermark/props.d.ts +3 -1
- package/lib/ele-watermark/props.js +5 -1
- package/lib/ele-watermark/util.js +1 -1
- package/lib/ele-xg-player/index.js +1 -0
- package/lib/style/index.scss +1 -0
- package/lib/style/nprogress.scss +2 -2
- package/lib/style/themes/default.scss +36 -12
- package/lib/style/themes/rounded.scss +4 -2
- package/lib/style/themes/theme-util.scss +2 -0
- package/lib/utils/core.d.ts +1 -1
- package/lib/utils/core.js +17 -15
- package/lib/utils/resolvers.js +2 -2
- package/package.json +25 -23
- package/typings/global.d.ts +52 -52
- package/es/ele-alert/types/index.d.ts +0 -0
- package/lib/ele-alert/types/index.d.ts +0 -0
package/es/ele-modal/index.d.ts
CHANGED
|
@@ -26,12 +26,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
type: NumberConstructor;
|
|
27
27
|
default: number;
|
|
28
28
|
};
|
|
29
|
-
headerStyle: import("vue").PropType<import("
|
|
30
|
-
titleStyle: import("vue").PropType<import("
|
|
31
|
-
bodyStyle: import("vue").PropType<import("
|
|
32
|
-
footerStyle: import("vue").PropType<import("
|
|
33
|
-
closeBtnStyle: import("vue").PropType<import("
|
|
34
|
-
fullscreenBtnStyle: import("vue").PropType<import("
|
|
29
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
30
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
31
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
32
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
33
|
+
closeBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
34
|
+
fullscreenBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
35
35
|
responsive: {
|
|
36
36
|
type: BooleanConstructor;
|
|
37
37
|
default: null;
|
|
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
__epPropKey: true;
|
|
72
72
|
};
|
|
73
73
|
trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
74
|
+
headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
74
75
|
center: BooleanConstructor;
|
|
75
76
|
alignCenter: BooleanConstructor;
|
|
76
77
|
closeIcon: {
|
|
@@ -83,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
84
|
fullscreen: BooleanConstructor;
|
|
84
85
|
showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
85
86
|
title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
87
|
+
ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
86
88
|
}, {
|
|
87
89
|
dialogRef: import("vue").Ref<ElDialogInstance>;
|
|
88
90
|
container: import("vue").Ref<Element>;
|
|
@@ -133,12 +135,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
135
|
type: NumberConstructor;
|
|
134
136
|
default: number;
|
|
135
137
|
};
|
|
136
|
-
headerStyle: import("vue").PropType<import("
|
|
137
|
-
titleStyle: import("vue").PropType<import("
|
|
138
|
-
bodyStyle: import("vue").PropType<import("
|
|
139
|
-
footerStyle: import("vue").PropType<import("
|
|
140
|
-
closeBtnStyle: import("vue").PropType<import("
|
|
141
|
-
fullscreenBtnStyle: import("vue").PropType<import("
|
|
138
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
139
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
140
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
141
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
142
|
+
closeBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
143
|
+
fullscreenBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
142
144
|
responsive: {
|
|
143
145
|
type: BooleanConstructor;
|
|
144
146
|
default: null;
|
|
@@ -178,6 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
180
|
__epPropKey: true;
|
|
179
181
|
};
|
|
180
182
|
trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
183
|
+
headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
181
184
|
center: BooleanConstructor;
|
|
182
185
|
alignCenter: BooleanConstructor;
|
|
183
186
|
closeIcon: {
|
|
@@ -190,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
193
|
fullscreen: BooleanConstructor;
|
|
191
194
|
showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
192
195
|
title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
196
|
+
ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
193
197
|
}>> & {
|
|
194
198
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
195
199
|
onOpen?: (() => any) | undefined;
|
|
@@ -213,14 +217,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
217
|
openDelay: number;
|
|
214
218
|
closeDelay: number;
|
|
215
219
|
trapFocus: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
220
|
+
headerAriaLevel: string;
|
|
216
221
|
alignCenter: boolean;
|
|
217
222
|
customClass: string;
|
|
218
223
|
draggable: boolean;
|
|
219
224
|
fullscreen: boolean;
|
|
220
225
|
showClose: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
|
+
ariaLevel: string;
|
|
221
227
|
minWidth: number;
|
|
222
|
-
responsive: boolean;
|
|
223
228
|
minHeight: number;
|
|
229
|
+
responsive: boolean;
|
|
224
230
|
multiple: boolean;
|
|
225
231
|
resetOnClose: boolean;
|
|
226
232
|
maxable: boolean;
|
package/es/ele-modal/props.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { dialogProps } from 'element-plus';
|
|
3
|
-
import type { StyleValue } from '../ele-app/types';
|
|
4
3
|
import type { Resizable, MoveOut, Position } from './types';
|
|
5
4
|
/**
|
|
6
5
|
* 属性
|
|
@@ -32,12 +31,12 @@ export declare const modalProps: {
|
|
|
32
31
|
type: NumberConstructor;
|
|
33
32
|
default: number;
|
|
34
33
|
};
|
|
35
|
-
headerStyle: PropType<
|
|
36
|
-
titleStyle: PropType<
|
|
37
|
-
bodyStyle: PropType<
|
|
38
|
-
footerStyle: PropType<
|
|
39
|
-
closeBtnStyle: PropType<
|
|
40
|
-
fullscreenBtnStyle: PropType<
|
|
34
|
+
headerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
35
|
+
titleStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
36
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
37
|
+
footerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
38
|
+
closeBtnStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
39
|
+
fullscreenBtnStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
41
40
|
responsive: {
|
|
42
41
|
type: BooleanConstructor;
|
|
43
42
|
default: null;
|
|
@@ -77,6 +76,7 @@ export declare const modalProps: {
|
|
|
77
76
|
__epPropKey: true;
|
|
78
77
|
};
|
|
79
78
|
trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
79
|
+
headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
80
80
|
center: BooleanConstructor;
|
|
81
81
|
alignCenter: BooleanConstructor;
|
|
82
82
|
closeIcon: {
|
|
@@ -89,6 +89,7 @@ export declare const modalProps: {
|
|
|
89
89
|
fullscreen: BooleanConstructor;
|
|
90
90
|
showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
91
91
|
title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
92
|
+
ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
92
93
|
};
|
|
93
94
|
export type ModalProps = ExtractPropTypes<typeof modalProps>;
|
|
94
95
|
/**
|
|
@@ -25,3 +25,12 @@ export type PositionValue = 'top' | 'bottom' | 'left' | 'right' | 'leftTop' | 'l
|
|
|
25
25
|
* 初始位置类型
|
|
26
26
|
*/
|
|
27
27
|
export type Position = PositionValue | PositionObject;
|
|
28
|
+
/**
|
|
29
|
+
* 弹窗坐标
|
|
30
|
+
*/
|
|
31
|
+
export interface Location {
|
|
32
|
+
top?: number;
|
|
33
|
+
left?: number;
|
|
34
|
+
topValue?: string;
|
|
35
|
+
leftValue?: string;
|
|
36
|
+
}
|
package/es/ele-modal/util.js
CHANGED
|
@@ -20,6 +20,8 @@ const singleSidebarClass = "ele-state-single-sidebar";
|
|
|
20
20
|
const topLayoutClass = "ele-state-top-layout";
|
|
21
21
|
const expandedClass = "ele-state-expanded";
|
|
22
22
|
const mobileClass = "ele-state-mobile";
|
|
23
|
+
const fixTop = 0.65;
|
|
24
|
+
const fixLeft = 0.65;
|
|
23
25
|
function initModalStyle(modalEl, resizable) {
|
|
24
26
|
modalEl.style.top = modalEl.offsetTop + "px";
|
|
25
27
|
modalEl.style.left = modalEl.offsetLeft + "px";
|
|
@@ -102,8 +104,8 @@ function handleMovable(event, props) {
|
|
|
102
104
|
left: e.clientX - downX + downOL,
|
|
103
105
|
top: e.clientY - downY + downOT
|
|
104
106
|
};
|
|
105
|
-
const limitL = wrapEl.clientWidth - modalEl.clientWidth -
|
|
106
|
-
const limitT = wrapEl.clientHeight - modalEl.clientHeight -
|
|
107
|
+
const limitL = wrapEl.clientWidth - modalEl.clientWidth - fixLeft;
|
|
108
|
+
const limitT = wrapEl.clientHeight - modalEl.clientHeight - fixTop;
|
|
107
109
|
if (!props.moveOut) {
|
|
108
110
|
if (position.left < 0) {
|
|
109
111
|
position.left = 0;
|
|
@@ -138,8 +140,8 @@ function handleMovable(event, props) {
|
|
|
138
140
|
position.top = minLimitT;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
|
-
modalEl.style.left = `${position.left}px`;
|
|
142
|
-
modalEl.style.top = `${position.top}px`;
|
|
143
|
+
modalEl.style.left = `${Math.floor(position.left)}px`;
|
|
144
|
+
modalEl.style.top = `${Math.floor(position.top)}px`;
|
|
143
145
|
};
|
|
144
146
|
const mouseupFn = function() {
|
|
145
147
|
modalEl.style.userSelect = "";
|
|
@@ -182,7 +184,7 @@ function handleResizable(event, props) {
|
|
|
182
184
|
const mousemoveFn = function(e) {
|
|
183
185
|
if (props.resizable !== "vertical") {
|
|
184
186
|
const w = e.clientX - downX + downW;
|
|
185
|
-
const maxW = wrapEl.clientWidth - modalEl.offsetLeft -
|
|
187
|
+
const maxW = wrapEl.clientWidth - modalEl.offsetLeft - fixLeft;
|
|
186
188
|
const nw = (w < props.minWidth ? props.minWidth : !canMoveOut(props.moveOut, "right") && w > maxW ? maxW : w) + "px";
|
|
187
189
|
modalEl.style.width = nw;
|
|
188
190
|
modalEl.style.maxWidth = nw;
|
|
@@ -190,7 +192,7 @@ function handleResizable(event, props) {
|
|
|
190
192
|
}
|
|
191
193
|
if (props.resizable !== "horizontal") {
|
|
192
194
|
const h = e.clientY - downY + downH;
|
|
193
|
-
const maxH = wrapEl.clientHeight - modalEl.offsetTop -
|
|
195
|
+
const maxH = wrapEl.clientHeight - modalEl.offsetTop - fixTop;
|
|
194
196
|
const nh = (h < props.minHeight ? props.minHeight : !canMoveOut(props.moveOut, "bottom") && h > maxH ? maxH : h) + "px";
|
|
195
197
|
modalEl.style.height = nh;
|
|
196
198
|
modalEl.style.maxHeight = nh;
|
|
@@ -248,60 +250,71 @@ function setModalPosition(modalEl, resizable, position, moveOut) {
|
|
|
248
250
|
if (!wrapEl) {
|
|
249
251
|
return;
|
|
250
252
|
}
|
|
253
|
+
const location = {};
|
|
251
254
|
initModalStyle(modalEl, resizable);
|
|
252
255
|
const canOutB = canMoveOut(moveOut, "bottom");
|
|
253
256
|
const canOutR = canMoveOut(moveOut, "right");
|
|
254
|
-
const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 :
|
|
257
|
+
const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : fixTop);
|
|
255
258
|
const maxTop = t < 0 ? 0 : t;
|
|
256
|
-
const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 :
|
|
259
|
+
const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : fixLeft);
|
|
257
260
|
const maxLeft = l < 0 ? 0 : l;
|
|
258
261
|
if (position === "top") {
|
|
259
|
-
|
|
260
|
-
|
|
262
|
+
location.top = 0;
|
|
263
|
+
location.left = maxLeft / 2;
|
|
261
264
|
} else if (position === "bottom") {
|
|
262
|
-
|
|
263
|
-
|
|
265
|
+
location.top = maxTop;
|
|
266
|
+
location.left = maxLeft / 2;
|
|
264
267
|
} else if (position === "left") {
|
|
265
|
-
|
|
266
|
-
|
|
268
|
+
location.top = maxTop / 2;
|
|
269
|
+
location.left = 0;
|
|
267
270
|
} else if (position === "right") {
|
|
268
|
-
|
|
269
|
-
|
|
271
|
+
location.top = maxTop / 2;
|
|
272
|
+
location.left = maxLeft;
|
|
270
273
|
} else if (position === "leftTop") {
|
|
271
|
-
|
|
272
|
-
|
|
274
|
+
location.top = 0;
|
|
275
|
+
location.left = 0;
|
|
273
276
|
} else if (position === "leftBottom") {
|
|
274
|
-
|
|
275
|
-
|
|
277
|
+
location.top = maxTop;
|
|
278
|
+
location.left = 0;
|
|
276
279
|
} else if (position === "rightTop") {
|
|
277
|
-
|
|
278
|
-
|
|
280
|
+
location.top = 0;
|
|
281
|
+
location.left = maxLeft;
|
|
279
282
|
} else if (position === "rightBottom") {
|
|
280
|
-
|
|
281
|
-
|
|
283
|
+
location.top = maxTop;
|
|
284
|
+
location.left = maxLeft;
|
|
282
285
|
} else if (position === "center") {
|
|
283
|
-
|
|
284
|
-
|
|
286
|
+
location.top = maxTop / 2;
|
|
287
|
+
location.left = maxLeft / 2;
|
|
285
288
|
} else if (typeof position === "object") {
|
|
286
289
|
if (position.top != null) {
|
|
287
290
|
if (typeof position.top === "number") {
|
|
288
|
-
|
|
291
|
+
location.top = position.top;
|
|
289
292
|
} else {
|
|
290
|
-
|
|
293
|
+
location.topValue = position.top;
|
|
291
294
|
}
|
|
292
295
|
} else if (position.left != null) {
|
|
293
|
-
|
|
296
|
+
location.top = maxTop / 2;
|
|
294
297
|
}
|
|
295
298
|
if (position.left != null) {
|
|
296
299
|
if (typeof position.left === "number") {
|
|
297
|
-
|
|
300
|
+
location.left = position.left;
|
|
298
301
|
} else {
|
|
299
|
-
|
|
302
|
+
location.leftValue = position.left;
|
|
300
303
|
}
|
|
301
304
|
} else if (position.top != null) {
|
|
302
|
-
|
|
305
|
+
location.left = maxLeft / 2;
|
|
303
306
|
}
|
|
304
307
|
}
|
|
308
|
+
if (location.top != null) {
|
|
309
|
+
modalEl.style.top = `${Math.floor(location.top)}px`;
|
|
310
|
+
} else if (location.topValue != null) {
|
|
311
|
+
modalEl.style.top = location.topValue;
|
|
312
|
+
}
|
|
313
|
+
if (location.left != null) {
|
|
314
|
+
modalEl.style.left = `${Math.floor(location.left)}px`;
|
|
315
|
+
} else if (location.leftValue != null) {
|
|
316
|
+
modalEl.style.left = location.leftValue;
|
|
317
|
+
}
|
|
305
318
|
}
|
|
306
319
|
function setInitPosition(modalEl, resizable, position, moveOut, force) {
|
|
307
320
|
const attr = "ele-position";
|
|
@@ -58,6 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
popperClass: string;
|
|
59
59
|
disabled: boolean;
|
|
60
60
|
small: boolean;
|
|
61
|
+
background: boolean;
|
|
61
62
|
pagerCount: number;
|
|
62
63
|
layout: string;
|
|
63
64
|
pageSizes: number[];
|
|
@@ -65,7 +66,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
66
|
prevIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
66
67
|
nextText: string;
|
|
67
68
|
nextIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
68
|
-
background: boolean;
|
|
69
69
|
hideOnSinglePage: boolean;
|
|
70
70
|
}, {}>;
|
|
71
71
|
export default _default;
|
|
@@ -23,15 +23,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
hideIcon: BooleanConstructor;
|
|
24
24
|
hideConfirmButton: BooleanConstructor;
|
|
25
25
|
hideCancelButton: BooleanConstructor;
|
|
26
|
-
iconStyle: import("vue").PropType<import("
|
|
26
|
+
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
27
27
|
iconProps: import("vue").PropType<ElIconProps>;
|
|
28
28
|
confirmButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
|
|
29
29
|
cancelButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
|
|
30
|
-
footerStyle: import("vue").PropType<import("
|
|
30
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
31
31
|
bodyClass: StringConstructor;
|
|
32
|
-
bodyStyle: import("vue").PropType<import("
|
|
33
|
-
titleStyle: import("vue").PropType<import("
|
|
34
|
-
contentStyle: import("vue").PropType<import("
|
|
32
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
33
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
34
|
+
contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
35
35
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
36
36
|
effect: {
|
|
37
37
|
readonly default: "light";
|
|
@@ -113,15 +113,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
113
|
hideIcon: BooleanConstructor;
|
|
114
114
|
hideConfirmButton: BooleanConstructor;
|
|
115
115
|
hideCancelButton: BooleanConstructor;
|
|
116
|
-
iconStyle: import("vue").PropType<import("
|
|
116
|
+
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
117
117
|
iconProps: import("vue").PropType<ElIconProps>;
|
|
118
118
|
confirmButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
|
|
119
119
|
cancelButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
|
|
120
|
-
footerStyle: import("vue").PropType<import("
|
|
120
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
121
121
|
bodyClass: StringConstructor;
|
|
122
|
-
bodyStyle: import("vue").PropType<import("
|
|
123
|
-
titleStyle: import("vue").PropType<import("
|
|
124
|
-
contentStyle: import("vue").PropType<import("
|
|
122
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
123
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
124
|
+
contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
125
125
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
126
126
|
effect: {
|
|
127
127
|
readonly default: "light";
|
|
@@ -59,9 +59,15 @@ const _sfc_main = defineComponent({
|
|
|
59
59
|
}
|
|
60
60
|
const classes = ["ele-popconfirm-icon"];
|
|
61
61
|
if (options.class) {
|
|
62
|
-
|
|
62
|
+
if (Array.isArray(options.class)) {
|
|
63
|
+
options.class.forEach((c) => {
|
|
64
|
+
classes.push(c);
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
classes.push(options.class);
|
|
68
|
+
}
|
|
63
69
|
}
|
|
64
|
-
options.class = classes
|
|
70
|
+
options.class = classes;
|
|
65
71
|
return options;
|
|
66
72
|
});
|
|
67
73
|
const confirmText = computed(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ElIconProps, ElButtonProps } from '../ele-app/types';
|
|
3
3
|
/**
|
|
4
4
|
* 属性
|
|
5
5
|
*/
|
|
@@ -26,15 +26,15 @@ export declare const popconfirmProps: {
|
|
|
26
26
|
hideIcon: BooleanConstructor;
|
|
27
27
|
hideConfirmButton: BooleanConstructor;
|
|
28
28
|
hideCancelButton: BooleanConstructor;
|
|
29
|
-
iconStyle: PropType<
|
|
29
|
+
iconStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
30
30
|
iconProps: PropType<ElIconProps>;
|
|
31
31
|
confirmButtonProps: PropType<ElButtonProps>;
|
|
32
32
|
cancelButtonProps: PropType<ElButtonProps>;
|
|
33
|
-
footerStyle: PropType<
|
|
33
|
+
footerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
34
34
|
bodyClass: StringConstructor;
|
|
35
|
-
bodyStyle: PropType<
|
|
36
|
-
titleStyle: PropType<
|
|
37
|
-
contentStyle: PropType<
|
|
35
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
36
|
+
titleStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
37
|
+
contentStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
38
38
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
39
39
|
effect: {
|
|
40
40
|
readonly default: "light";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ElPopoverProps, ElPopoverInstance, ElPopperInstance } from '../ele-app/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
bodyClass: StringConstructor;
|
|
4
|
-
bodyStyle: import("vue").PropType<import("
|
|
5
|
-
titleStyle: import("vue").PropType<import("
|
|
6
|
-
contentStyle: import("vue").PropType<import("
|
|
4
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
5
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
6
|
+
contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
7
7
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
8
8
|
trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
9
9
|
effect: {
|
|
@@ -60,9 +60,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
'after-leave': () => boolean;
|
|
61
61
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
62
|
bodyClass: StringConstructor;
|
|
63
|
-
bodyStyle: import("vue").PropType<import("
|
|
64
|
-
titleStyle: import("vue").PropType<import("
|
|
65
|
-
contentStyle: import("vue").PropType<import("
|
|
63
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
64
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
65
|
+
contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
66
66
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
67
67
|
trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
68
68
|
effect: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { StyleValue } from '../ele-app/types';
|
|
3
2
|
/**
|
|
4
3
|
* 属性
|
|
5
4
|
*/
|
|
6
5
|
export declare const popoverProps: {
|
|
7
6
|
bodyClass: StringConstructor;
|
|
8
|
-
bodyStyle: PropType<
|
|
9
|
-
titleStyle: PropType<
|
|
10
|
-
contentStyle: PropType<
|
|
7
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
8
|
+
titleStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
9
|
+
contentStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
11
10
|
offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
12
11
|
trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
13
12
|
effect: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: BooleanConstructor;
|
|
3
|
-
headerStyle: import("vue").PropType<import("
|
|
4
|
-
bodyStyle: import("vue").PropType<import("
|
|
5
|
-
footerStyle: import("vue").PropType<import("
|
|
3
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
4
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
5
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
6
6
|
title: StringConstructor;
|
|
7
7
|
margin: (StringConstructor | NumberConstructor)[];
|
|
8
8
|
direction: import("vue").PropType<import("./types").PrintDirection | null>;
|
|
@@ -12,15 +12,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
container: import("vue").ShallowRef<Element>;
|
|
14
14
|
visible: import("vue").Ref<boolean>;
|
|
15
|
+
isStatic: import("vue").ComputedRef<boolean>;
|
|
15
16
|
print: () => void;
|
|
16
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
'update:modelValue': (_value: boolean) => boolean;
|
|
18
19
|
done: () => boolean;
|
|
19
20
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
21
|
modelValue: BooleanConstructor;
|
|
21
|
-
headerStyle: import("vue").PropType<import("
|
|
22
|
-
bodyStyle: import("vue").PropType<import("
|
|
23
|
-
footerStyle: import("vue").PropType<import("
|
|
22
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
23
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
24
|
+
footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
24
25
|
title: StringConstructor;
|
|
25
26
|
margin: (StringConstructor | NumberConstructor)[];
|
|
26
27
|
direction: import("vue").PropType<import("./types").PrintDirection | null>;
|
package/es/ele-printer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, shallowRef, ref, watch, nextTick, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, createElementBlock, normalizeStyle, renderSlot, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, shallowRef, ref, computed, watch, nextTick, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, createElementBlock, normalizeStyle, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { useLicense } from "../ele-config-provider/receiver";
|
|
3
3
|
import { usePrinter, getPrintContainer, doPrintOnFrame, doPrint } from "./util";
|
|
4
4
|
import { printerProps, printerEmits } from "./props";
|
|
@@ -14,6 +14,9 @@ const _sfc_main = defineComponent({
|
|
|
14
14
|
});
|
|
15
15
|
const container = shallowRef(getPrintContainer());
|
|
16
16
|
const visible = ref(false);
|
|
17
|
+
const isStatic = computed(() => {
|
|
18
|
+
return props.static;
|
|
19
|
+
});
|
|
17
20
|
const print = () => {
|
|
18
21
|
if (!authenticated.value) {
|
|
19
22
|
updateModelValue(false);
|
|
@@ -54,7 +57,7 @@ const _sfc_main = defineComponent({
|
|
|
54
57
|
},
|
|
55
58
|
{ immediate: true }
|
|
56
59
|
);
|
|
57
|
-
return { container, visible, print };
|
|
60
|
+
return { container, visible, isStatic, print };
|
|
58
61
|
}
|
|
59
62
|
});
|
|
60
63
|
const _export_sfc = (sfc, props) => {
|
|
@@ -69,10 +72,14 @@ const _hoisted_2 = { key: 1 };
|
|
|
69
72
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
70
73
|
return openBlock(), createBlock(Teleport, {
|
|
71
74
|
to: _ctx.container,
|
|
72
|
-
disabled: _ctx.
|
|
75
|
+
disabled: _ctx.isStatic && !_ctx.visible
|
|
73
76
|
}, [
|
|
74
77
|
createElementVNode("table", {
|
|
75
|
-
class: normalizeClass([
|
|
78
|
+
class: normalizeClass([
|
|
79
|
+
"ele-printer",
|
|
80
|
+
{ "is-open": _ctx.visible },
|
|
81
|
+
{ "is-static": _ctx.isStatic }
|
|
82
|
+
])
|
|
76
83
|
}, [
|
|
77
84
|
_ctx.$slots.header ? (openBlock(), createElementBlock("thead", _hoisted_1, [
|
|
78
85
|
createElementVNode("tr", null, [
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { StyleValue } from '../ele-app/types';
|
|
3
2
|
import type { PrintDirection, PrintOrientation, PrintTarget } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* 属性
|
|
6
5
|
*/
|
|
7
6
|
export declare const printerProps: {
|
|
8
7
|
modelValue: BooleanConstructor;
|
|
9
|
-
headerStyle: PropType<
|
|
10
|
-
bodyStyle: PropType<
|
|
11
|
-
footerStyle: PropType<
|
|
8
|
+
headerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
9
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
10
|
+
footerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
12
11
|
title: StringConstructor;
|
|
13
12
|
margin: (StringConstructor | NumberConstructor)[];
|
|
14
13
|
direction: PropType<PrintDirection | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { BreadcrumbItem } from '../../ele-breadcrumb/types';
|
|
3
3
|
import type { EllipsisProps } from '../../ele-menus/types';
|
|
4
|
-
import type { MenuItem, LevelItem, HeaderStyle } from '../types';
|
|
4
|
+
import type { MenuItem, LevelItem, HeaderStyle, MenuItemTrigger, MenuItemProps } from '../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
menus: {
|
|
7
7
|
type: PropType<MenuItem[]>;
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
ellipsis: BooleanConstructor;
|
|
13
13
|
ellipsisProps: PropType<EllipsisProps>;
|
|
14
14
|
menuTrigger: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
15
|
+
itemTrigger: PropType<MenuItemTrigger>;
|
|
15
16
|
collapse: BooleanConstructor;
|
|
16
17
|
sidebar: BooleanConstructor;
|
|
17
18
|
titleSlot: StringConstructor;
|
|
@@ -26,17 +27,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
27
|
isHome: BooleanConstructor;
|
|
27
28
|
}, {
|
|
28
29
|
levelItems: import("vue").ShallowRef<BreadcrumbItem[]>;
|
|
29
|
-
menuItems: import("vue").ComputedRef<
|
|
30
|
+
menuItems: import("vue").ComputedRef<MenuItemProps[]>;
|
|
30
31
|
isDark: import("vue").ComputedRef<boolean>;
|
|
31
32
|
isPrimary: import("vue").ComputedRef<boolean>;
|
|
32
33
|
isIconSeparator: import("vue").ComputedRef<boolean>;
|
|
33
34
|
onLogoClick: () => void;
|
|
34
35
|
onOpen: (index: string, indexPath: string[]) => void;
|
|
35
36
|
onClose: (index: string, indexPath: string[]) => void;
|
|
37
|
+
onItemClick: (item: MenuItemProps) => void;
|
|
36
38
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
39
|
logoClick: () => true;
|
|
38
40
|
open: (_index: string, _indexPath: string[]) => true;
|
|
39
41
|
close: (_index: string, _indexPath: string[]) => true;
|
|
42
|
+
itemClick: (_item: MenuItemProps) => true;
|
|
40
43
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
44
|
menus: {
|
|
42
45
|
type: PropType<MenuItem[]>;
|
|
@@ -47,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
50
|
ellipsis: BooleanConstructor;
|
|
48
51
|
ellipsisProps: PropType<EllipsisProps>;
|
|
49
52
|
menuTrigger: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
53
|
+
itemTrigger: PropType<MenuItemTrigger>;
|
|
50
54
|
collapse: BooleanConstructor;
|
|
51
55
|
sidebar: BooleanConstructor;
|
|
52
56
|
titleSlot: StringConstructor;
|
|
@@ -62,6 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
66
|
}>> & {
|
|
63
67
|
onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
64
68
|
onClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
69
|
+
onItemClick?: ((_item: MenuItemProps) => any) | undefined;
|
|
65
70
|
onLogoClick?: (() => any) | undefined;
|
|
66
71
|
}, {
|
|
67
72
|
collapse: boolean;
|