ele-admin-plus 1.1.9-beta.7 → 1.1.9-beta.9
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.js +2 -4
- package/es/ele-app/el.d.ts +6 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-avatar-group/index.d.ts +1 -1
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-basic-select/index.d.ts +8 -8
- package/es/ele-basic-select/index.js +17 -13
- package/es/ele-check-card/index.d.ts +2 -2
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +45 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/types.d.ts +2 -0
- package/es/ele-copyable/index.d.ts +4 -6
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-cropper/index.d.ts +6 -6
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-dashboard/index.d.ts +0 -1
- package/es/ele-dashboard/index.js +8 -17
- package/es/ele-data-table/index.d.ts +2 -2
- package/es/ele-data-table/index.js +8 -0
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +10 -0
- package/es/ele-data-table/util.d.ts +5 -0
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-dot/index.d.ts +2 -4
- package/es/ele-dot/index.js +4 -10
- package/es/ele-drawer/index.d.ts +6 -6
- package/es/ele-drawer/index.js +14 -11
- package/es/ele-dropdown/index.js +6 -10
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +6 -0
- package/es/ele-edit-tag/index.js +17 -15
- package/es/ele-edit-tag/props.d.ts +4 -0
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +3 -3
- package/es/ele-ellipsis/index.js +2 -4
- package/es/ele-file-list/components/file-grid-item.js +16 -9
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-table-item.js +20 -15
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/index.d.ts +4 -4
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/index.d.ts +22 -10
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +6 -1
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +0 -2
- package/es/ele-loading/index.js +32 -30
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-menus/index.d.ts +3 -3
- package/es/ele-menus/index.js +6 -7
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +2 -1
- package/es/ele-modal/index.d.ts +2 -2
- package/es/ele-modal/index.js +14 -8
- package/es/ele-modal/style/index.scss +18 -29
- package/es/ele-pagination/index.d.ts +10 -8
- package/es/ele-pagination/index.js +19 -13
- package/es/ele-pagination/props.d.ts +3 -2
- package/es/ele-pagination/props.js +2 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-popconfirm/style/index.js +1 -1
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +6 -6
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +3 -1
- package/es/ele-pro-layout/index.d.ts +26 -26
- package/es/ele-pro-layout/index.js +7 -14
- package/es/ele-pro-table/components/table-tools.d.ts +99 -8
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.js +1 -0
- package/es/ele-pro-table/components/tool-column.js +6 -2
- package/es/ele-pro-table/components/tool-export.d.ts +457 -0
- package/es/ele-pro-table/components/tool-export.js +451 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +899 -0
- package/es/ele-pro-table/components/tool-print.js +547 -0
- package/es/ele-pro-table/index.d.ts +31 -12
- package/es/ele-pro-table/index.js +57 -14
- package/es/ele-pro-table/props.d.ts +14 -8
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +147 -5
- package/es/ele-pro-table/util.d.ts +47 -3
- package/es/ele-pro-table/util.js +119 -13
- package/es/ele-segmented/index.js +1 -3
- package/es/ele-split-panel/index.d.ts +9 -8
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-steps/index.d.ts +0 -1
- package/es/ele-steps/index.js +2 -4
- package/es/ele-table/index.d.ts +3 -0
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +2 -0
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-table-select/index.d.ts +1 -1
- package/es/ele-tabs/index.d.ts +7 -5
- package/es/ele-tabs/index.js +1 -6
- package/es/ele-tabs/props.d.ts +1 -1
- package/es/ele-tool/index.d.ts +1 -1
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +7 -0
- package/es/ele-tool/props.js +5 -0
- package/es/ele-tooltip/index.js +9 -13
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.js +80 -77
- package/es/ele-upload-list/components/list-item.d.ts +1 -1
- package/es/ele-upload-list/index.d.ts +6 -4
- package/es/ele-upload-list/index.js +2 -3
- package/es/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/es/ele-virtual-table/components/body-cell.js +32 -47
- package/es/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/es/ele-virtual-table/components/footer-row.js +15 -10
- package/es/ele-virtual-table/index.d.ts +1 -1
- package/es/ele-virtual-table/types.d.ts +15 -1
- package/es/ele-virtual-table/util.d.ts +26 -3
- package/es/ele-virtual-table/util.js +44 -0
- package/es/ele-watermark/index.d.ts +9 -0
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +5 -0
- package/es/ele-watermark/props.js +5 -0
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +58 -56
- package/es/lang/en_US.js +13 -2
- package/es/lang/zh_CN.js +13 -2
- package/es/lang/zh_TW.js +12 -1
- package/es/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/default.scss +5 -2
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +33 -20
- package/lib/ele-alert/index.cjs +2 -4
- package/lib/ele-app/el.d.ts +6 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +1 -1
- package/lib/ele-basic-select/index.cjs +16 -12
- package/lib/ele-basic-select/index.d.ts +8 -8
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +2 -2
- package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +2 -0
- package/lib/ele-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +4 -6
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +6 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +0 -1
- package/lib/ele-data-table/index.cjs +8 -0
- package/lib/ele-data-table/index.d.ts +2 -2
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +10 -0
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +5 -0
- package/lib/ele-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +2 -4
- package/lib/ele-drawer/index.cjs +13 -10
- package/lib/ele-drawer/index.d.ts +6 -6
- package/lib/ele-dropdown/index.cjs +6 -10
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +16 -14
- package/lib/ele-edit-tag/index.d.ts +6 -0
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +4 -0
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +2 -4
- package/lib/ele-ellipsis/index.d.ts +3 -3
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-table-item.cjs +19 -14
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +4 -4
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +22 -10
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +6 -1
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +31 -29
- package/lib/ele-loading/index.d.ts +0 -2
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-menus/index.cjs +6 -7
- package/lib/ele-menus/index.d.ts +3 -3
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +2 -1
- package/lib/ele-modal/index.cjs +13 -7
- package/lib/ele-modal/index.d.ts +2 -2
- package/lib/ele-modal/style/index.scss +18 -29
- package/lib/ele-pagination/index.cjs +18 -12
- package/lib/ele-pagination/index.d.ts +10 -8
- package/lib/ele-pagination/props.cjs +2 -0
- package/lib/ele-pagination/props.d.ts +3 -2
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +6 -6
- package/lib/ele-printer/util.cjs +1 -1
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +3 -1
- package/lib/ele-pro-layout/index.cjs +6 -13
- package/lib/ele-pro-layout/index.d.ts +26 -26
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +99 -8
- package/lib/ele-pro-table/components/tool-column-list.cjs +1 -0
- package/lib/ele-pro-table/components/tool-column.cjs +6 -2
- package/lib/ele-pro-table/components/tool-export.cjs +450 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +457 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print.cjs +546 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +899 -0
- package/lib/ele-pro-table/index.cjs +56 -13
- package/lib/ele-pro-table/index.d.ts +31 -12
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +14 -8
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +147 -5
- package/lib/ele-pro-table/util.cjs +119 -13
- package/lib/ele-pro-table/util.d.ts +47 -3
- package/lib/ele-segmented/index.cjs +1 -3
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +9 -8
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +0 -1
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +3 -0
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +2 -0
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.d.ts +1 -1
- package/lib/ele-tabs/index.cjs +1 -6
- package/lib/ele-tabs/index.d.ts +7 -5
- package/lib/ele-tabs/props.d.ts +1 -1
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +1 -1
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +7 -0
- package/lib/ele-tooltip/index.cjs +9 -13
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-upload-list/components/list-item.d.ts +1 -1
- package/lib/ele-upload-list/index.cjs +1 -2
- package/lib/ele-upload-list/index.d.ts +6 -4
- package/lib/ele-virtual-table/components/body-cell.cjs +31 -46
- package/lib/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/lib/ele-virtual-table/components/footer-row.cjs +13 -8
- package/lib/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/lib/ele-virtual-table/index.d.ts +1 -1
- package/lib/ele-virtual-table/types.d.ts +15 -1
- package/lib/ele-virtual-table/util.cjs +44 -0
- package/lib/ele-virtual-table/util.d.ts +26 -3
- package/lib/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +9 -0
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +5 -0
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/lang/en_US.cjs +13 -2
- package/lib/lang/zh_CN.cjs +13 -2
- package/lib/lang/zh_TW.cjs +12 -1
- package/lib/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/default.scss +5 -2
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +1 -1
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
package/es/ele-tabs/props.d.ts
CHANGED
|
@@ -76,8 +76,8 @@ export declare const tabsEmits: {
|
|
|
76
76
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
77
77
|
}>;
|
|
78
78
|
props: {
|
|
79
|
-
readonly disabled: boolean;
|
|
80
79
|
readonly label: string;
|
|
80
|
+
readonly disabled: boolean;
|
|
81
81
|
readonly closable: boolean;
|
|
82
82
|
readonly lazy: boolean;
|
|
83
83
|
readonly name?: import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
package/es/ele-tool/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
updateVisible: (value: boolean) => void;
|
|
11
11
|
onClick: (e: MouseEvent) => void;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
click: (_e: MouseEvent) =>
|
|
13
|
+
click: (_e: MouseEvent) => boolean;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
title: StringConstructor;
|
|
16
16
|
placement: {
|
package/es/ele-tool/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, renderSlot } from "vue";
|
|
2
2
|
import EleTooltip from "../ele-tooltip/index";
|
|
3
|
-
import { toolProps } from "./props";
|
|
3
|
+
import { toolProps, toolEmits } from "./props";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
5
5
|
name: "EleTool",
|
|
6
6
|
components: { EleTooltip },
|
|
7
7
|
props: toolProps,
|
|
8
|
-
emits:
|
|
9
|
-
click: (_e) => true
|
|
10
|
-
},
|
|
8
|
+
emits: toolEmits,
|
|
11
9
|
setup(props, { emit }) {
|
|
12
10
|
const visible = ref(false);
|
|
13
11
|
const updateVisible = (value) => {
|
package/es/ele-tool/props.d.ts
CHANGED
package/es/ele-tool/props.js
CHANGED
package/es/ele-tooltip/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { ElTooltip } from "element-plus";
|
|
3
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
3
|
import { omit } from "../utils/core";
|
|
5
4
|
import { tooltipProps, tooltipEmits } from "./props";
|
|
6
5
|
const _sfc_main = defineComponent({
|
|
@@ -9,7 +8,6 @@ const _sfc_main = defineComponent({
|
|
|
9
8
|
props: tooltipProps,
|
|
10
9
|
emits: tooltipEmits,
|
|
11
10
|
setup(props, { emit }) {
|
|
12
|
-
const { authenticated } = useLicense();
|
|
13
11
|
const tooltipRef = ref();
|
|
14
12
|
const rootProps = computed(() => {
|
|
15
13
|
const options = omit(props, [
|
|
@@ -26,18 +24,16 @@ const _sfc_main = defineComponent({
|
|
|
26
24
|
"onOpen",
|
|
27
25
|
"onClose"
|
|
28
26
|
]);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
classes.push(props.popperClass);
|
|
38
|
-
}
|
|
39
|
-
options.popperClass = classes.join(" ");
|
|
27
|
+
const classes = ["ele-popper"];
|
|
28
|
+
if (props.isPopover && props.effect === "light") {
|
|
29
|
+
classes.push("ele-popover");
|
|
30
|
+
} else {
|
|
31
|
+
classes.push("ele-tooltip");
|
|
32
|
+
}
|
|
33
|
+
if (typeof props.popperClass === "string" && props.popperClass) {
|
|
34
|
+
classes.push(props.popperClass);
|
|
40
35
|
}
|
|
36
|
+
options.popperClass = classes.join(" ");
|
|
41
37
|
const style = {};
|
|
42
38
|
if (props.bg || props.arrowBg) {
|
|
43
39
|
options.effect = "dark";
|
|
@@ -70,3 +70,26 @@
|
|
|
70
70
|
border-color: elVar('color-success');
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
/* 气泡卡片 */
|
|
75
|
+
.ele-popper.ele-popover {
|
|
76
|
+
color: eleVar('popover', 'color');
|
|
77
|
+
font-size: eleVar('popover', 'font-size');
|
|
78
|
+
line-height: inherit;
|
|
79
|
+
text-align: left;
|
|
80
|
+
min-width: 150px;
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ele-popover-content {
|
|
85
|
+
padding: eleVar('popover', 'padding');
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ele-popover-title {
|
|
90
|
+
color: eleVar('popover', 'title-color');
|
|
91
|
+
font-size: eleVar('popover', 'title-font-size');
|
|
92
|
+
font-weight: eleVar('popover', 'title-font-weight');
|
|
93
|
+
padding: eleVar('popover', 'title-padding');
|
|
94
|
+
border-bottom: eleVar('popover', 'title-border');
|
|
95
|
+
}
|
package/es/ele-tour/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent, ref, shallowRef, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, mergeProps, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { ElButton } from "element-plus";
|
|
3
3
|
import EleTooltip from "../ele-tooltip/index";
|
|
4
|
-
import
|
|
4
|
+
import ReceiverView from "../ele-config-provider/components/receiver-view";
|
|
5
|
+
import { useLocale } from "../ele-config-provider/receiver";
|
|
5
6
|
import { scrollIntoView, getOffset, getPopperProps } from "./util";
|
|
6
7
|
import { tourProps, tourEmits } from "./props";
|
|
7
8
|
const _sfc_main = defineComponent({
|
|
8
9
|
name: "EleTour",
|
|
9
|
-
components: { ElButton, EleTooltip },
|
|
10
|
+
components: { ElButton, EleTooltip, ReceiverView },
|
|
10
11
|
props: tourProps,
|
|
11
12
|
emits: tourEmits,
|
|
12
13
|
setup(props, { emit }) {
|
|
13
|
-
const { authenticated } = useLicense();
|
|
14
14
|
const { lang } = useLocale("tour", props);
|
|
15
15
|
const triggerRef = ref(null);
|
|
16
16
|
const tooltipRef = ref(null);
|
|
@@ -21,7 +21,7 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
const boxStyle = ref({});
|
|
22
22
|
const showMask = ref(false);
|
|
23
23
|
const start = () => {
|
|
24
|
-
if (!
|
|
24
|
+
if (!props.steps || props.modelValue == null || props.modelValue < 0 || props.modelValue >= props.steps.length) {
|
|
25
25
|
close();
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -117,19 +117,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
117
117
|
return target;
|
|
118
118
|
};
|
|
119
119
|
const _hoisted_1 = {
|
|
120
|
-
key: 0,
|
|
121
|
-
class: "ele-popover-body"
|
|
122
|
-
};
|
|
123
|
-
const _hoisted_2 = {
|
|
124
120
|
key: 0,
|
|
125
121
|
class: "ele-tour-title"
|
|
126
122
|
};
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const
|
|
123
|
+
const _hoisted_2 = { class: "ele-tour-text" };
|
|
124
|
+
const _hoisted_3 = { class: "ele-tour-footer" };
|
|
125
|
+
const _hoisted_4 = { class: "ele-tour-counter" };
|
|
126
|
+
const _hoisted_5 = { class: "ele-tour-action" };
|
|
131
127
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
128
|
const _component_ElButton = resolveComponent("ElButton");
|
|
129
|
+
const _component_ReceiverView = resolveComponent("ReceiverView");
|
|
133
130
|
const _component_EleTooltip = resolveComponent("EleTooltip");
|
|
134
131
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
135
132
|
createElementVNode("div", {
|
|
@@ -153,76 +150,82 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153
150
|
hideAfter: 0
|
|
154
151
|
}), {
|
|
155
152
|
body: withCtx(() => [
|
|
156
|
-
_ctx.steps && _ctx.step ? (openBlock(),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
153
|
+
_ctx.steps && _ctx.step ? (openBlock(), createBlock(_component_ReceiverView, {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: "ele-popover-body"
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
_ctx.step.title ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
159
|
+
renderSlot(_ctx.$slots, "title", {
|
|
160
|
+
step: _ctx.step,
|
|
161
|
+
current: _ctx.modelValue
|
|
162
|
+
}, () => [
|
|
163
|
+
createTextVNode(toDisplayString(_ctx.step.title), 1)
|
|
164
|
+
])
|
|
165
|
+
])) : createCommentVNode("", true),
|
|
166
|
+
createElementVNode("div", _hoisted_2, [
|
|
167
|
+
renderSlot(_ctx.$slots, "text", {
|
|
168
|
+
step: _ctx.step,
|
|
169
|
+
current: _ctx.modelValue
|
|
170
|
+
}, () => [
|
|
171
|
+
createTextVNode(toDisplayString(_ctx.step.description), 1)
|
|
172
|
+
])
|
|
173
|
+
]),
|
|
174
|
+
renderSlot(_ctx.$slots, "footer", {
|
|
167
175
|
step: _ctx.step,
|
|
168
176
|
current: _ctx.modelValue
|
|
169
177
|
}, () => [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, {
|
|
217
|
-
default: withCtx(() => [
|
|
218
|
-
createTextVNode(toDisplayString(_ctx.lang.finish), 1)
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
178
|
+
createElementVNode("div", _hoisted_3, [
|
|
179
|
+
createElementVNode("div", _hoisted_4, toDisplayString((_ctx.modelValue || 0) + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
|
|
180
|
+
createElementVNode("div", _hoisted_5, [
|
|
181
|
+
!_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
|
|
182
|
+
key: 0,
|
|
183
|
+
size: "small",
|
|
184
|
+
onClick: _ctx.onFinish
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [
|
|
187
|
+
createTextVNode(toDisplayString(_ctx.lang.skip), 1)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
191
|
+
_ctx.modelValue !== 0 ? (openBlock(), createBlock(_component_ElButton, {
|
|
192
|
+
key: 1,
|
|
193
|
+
size: "small",
|
|
194
|
+
onClick: _ctx.onPrev
|
|
195
|
+
}, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
createTextVNode(toDisplayString(_ctx.lang.prev), 1)
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
201
|
+
!_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
|
|
202
|
+
key: 2,
|
|
203
|
+
size: "small",
|
|
204
|
+
type: "primary",
|
|
205
|
+
onClick: _ctx.onNext
|
|
206
|
+
}, {
|
|
207
|
+
default: withCtx(() => [
|
|
208
|
+
createTextVNode(toDisplayString(_ctx.lang.next), 1)
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
212
|
+
_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
|
|
213
|
+
key: 3,
|
|
214
|
+
size: "small",
|
|
215
|
+
type: "primary",
|
|
216
|
+
onClick: _ctx.onFinish
|
|
217
|
+
}, {
|
|
218
|
+
default: withCtx(() => [
|
|
219
|
+
createTextVNode(toDisplayString(_ctx.lang.finish), 1)
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
223
|
+
])
|
|
222
224
|
])
|
|
223
225
|
])
|
|
224
|
-
])
|
|
225
|
-
|
|
226
|
+
]),
|
|
227
|
+
_: 3
|
|
228
|
+
})) : createCommentVNode("", true)
|
|
226
229
|
]),
|
|
227
230
|
_: 3
|
|
228
231
|
}, 16, ["virtualRef", "disabled"])
|
|
@@ -48,9 +48,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
required: true;
|
|
49
49
|
};
|
|
50
50
|
}>> & {
|
|
51
|
+
onRetry?: ((_item: UploadItem) => any) | undefined;
|
|
51
52
|
onItemClick?: ((_item: UploadItem) => any) | undefined;
|
|
52
53
|
onRemove?: ((_item: UploadItem) => any) | undefined;
|
|
53
|
-
onRetry?: ((_item: UploadItem) => any) | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
disabled: boolean;
|
|
56
56
|
readonly: boolean;
|
|
@@ -22,12 +22,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
23
23
|
sortable: {
|
|
24
24
|
type: import("vue").PropType<boolean | Record<string | number | symbol, any>>;
|
|
25
|
-
default: boolean;
|
|
25
|
+
default: boolean;
|
|
26
26
|
};
|
|
27
27
|
imageProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
|
|
28
28
|
progressProps: import("vue").PropType<import("../ele-app/el").ElProgressProps>;
|
|
29
29
|
previewProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
|
|
30
|
-
|
|
30
|
+
/** 当前图片地址 */
|
|
31
|
+
locale: import("vue").PropType<Partial<UploadLocale>>;
|
|
31
32
|
}, {
|
|
32
33
|
lang: import("vue").ComputedRef<UploadLocale>;
|
|
33
34
|
previewRef: import("vue").Ref<ElImageInstance>;
|
|
@@ -72,12 +73,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
73
|
buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
73
74
|
sortable: {
|
|
74
75
|
type: import("vue").PropType<boolean | Record<string | number | symbol, any>>;
|
|
75
|
-
default: boolean;
|
|
76
|
+
default: boolean;
|
|
76
77
|
};
|
|
77
78
|
imageProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
|
|
78
79
|
progressProps: import("vue").PropType<import("../ele-app/el").ElProgressProps>;
|
|
79
80
|
previewProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
|
|
80
|
-
|
|
81
|
+
/** 当前图片地址 */
|
|
82
|
+
locale: import("vue").PropType<Partial<UploadLocale>>;
|
|
81
83
|
}>> & {
|
|
82
84
|
"onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;
|
|
83
85
|
onItemClick?: ((_item: UploadItem) => any) | undefined;
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, reactive, computed, onDeactivated, nextTick, reso
|
|
|
2
2
|
import VueDraggable from "vuedraggable";
|
|
3
3
|
import { ElUpload, ElImage, ElIcon } from "element-plus";
|
|
4
4
|
import { uuid } from "../utils/core";
|
|
5
|
-
import {
|
|
5
|
+
import { useLocale } from "../ele-config-provider/receiver";
|
|
6
6
|
import { PlusOutlined } from "../icons";
|
|
7
7
|
import ListItem from "./components/list-item";
|
|
8
8
|
import { uploadListProps, uploadListEmits } from "./props";
|
|
@@ -19,7 +19,6 @@ const _sfc_main = defineComponent({
|
|
|
19
19
|
props: uploadListProps,
|
|
20
20
|
emits: uploadListEmits,
|
|
21
21
|
setup(props, { emit }) {
|
|
22
|
-
const { authenticated } = useLicense();
|
|
23
22
|
const { lang } = useLocale("upload", props);
|
|
24
23
|
const previewRef = ref(null);
|
|
25
24
|
const previewOption = reactive({
|
|
@@ -53,7 +52,7 @@ const _sfc_main = defineComponent({
|
|
|
53
52
|
emit("update:modelValue", value);
|
|
54
53
|
};
|
|
55
54
|
const onUpload = (file) => {
|
|
56
|
-
if (!
|
|
55
|
+
if (!uploadEnable.value || props.disabled) {
|
|
57
56
|
return false;
|
|
58
57
|
}
|
|
59
58
|
const item = {
|
|
@@ -55,7 +55,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
colType: import("vue").ComputedRef<string | undefined>;
|
|
56
56
|
cellClass: import("vue").ComputedRef<string>;
|
|
57
57
|
cellStyle: import("vue").ComputedRef<StyleValues | undefined>;
|
|
58
|
-
indexText: import("vue").ComputedRef<string>;
|
|
59
58
|
cellText: import("vue").ComputedRef<string | undefined>;
|
|
60
59
|
isExpandCol: import("vue").ComputedRef<boolean>;
|
|
61
60
|
renderOpt: import("vue").ComputedRef<CustomRenderProps>;
|
|
@@ -3,7 +3,7 @@ import { ElIcon } from "element-plus";
|
|
|
3
3
|
import { getValue } from "../../ele-data-table/util";
|
|
4
4
|
import { ArrowDown, LoadingDotOutlined } from "../../icons";
|
|
5
5
|
import CellCheckbox from "./cell-checkbox";
|
|
6
|
-
import { CellRender } from "../util";
|
|
6
|
+
import { CellRender, getCellSpan, getIndexValue } from "../util";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
8
8
|
name: "BodyCell",
|
|
9
9
|
components: {
|
|
@@ -87,28 +87,7 @@ const _sfc_main = defineComponent({
|
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
89
|
const cellSpan = computed(() => {
|
|
90
|
-
const span =
|
|
91
|
-
if (typeof props.spanMethod === "function") {
|
|
92
|
-
const result = props.spanMethod(cellParam.value);
|
|
93
|
-
if (result != null) {
|
|
94
|
-
if (Array.isArray(result)) {
|
|
95
|
-
const [rowspan, colspan] = result;
|
|
96
|
-
if (rowspan != null) {
|
|
97
|
-
span.rowspan = rowspan;
|
|
98
|
-
}
|
|
99
|
-
if (colspan != null) {
|
|
100
|
-
span.colspan = colspan;
|
|
101
|
-
}
|
|
102
|
-
} else {
|
|
103
|
-
if (result.rowspan != null) {
|
|
104
|
-
span.rowspan = result.rowspan;
|
|
105
|
-
}
|
|
106
|
-
if (result.colspan != null) {
|
|
107
|
-
span.colspan = result.colspan;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
90
|
+
const span = getCellSpan(cellParam.value, props.spanMethod);
|
|
112
91
|
if (colType.value && ["indedx", "selection", "expand"].includes(colType.value)) {
|
|
113
92
|
span.rowspan = 1;
|
|
114
93
|
}
|
|
@@ -236,6 +215,13 @@ const _sfc_main = defineComponent({
|
|
|
236
215
|
];
|
|
237
216
|
});
|
|
238
217
|
const cellText = computed(() => {
|
|
218
|
+
const col = originalCol.value;
|
|
219
|
+
if (col && col.type === "index") {
|
|
220
|
+
if (typeof col.index === "function") {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
return getIndexValue(props.rowIndex, col.index, props.pageIndex);
|
|
224
|
+
}
|
|
239
225
|
const prop = props.column ? props.column.dataKey : void 0;
|
|
240
226
|
const { rowspan, colspan } = cellSpan.value;
|
|
241
227
|
if (rowspan === 0 || colspan === 0 || prop == null || !props.rowData) {
|
|
@@ -243,12 +229,6 @@ const _sfc_main = defineComponent({
|
|
|
243
229
|
}
|
|
244
230
|
return getValue(props.rowData, prop);
|
|
245
231
|
});
|
|
246
|
-
const indexText = computed(() => {
|
|
247
|
-
const rowIndex = props.rowIndex || 0;
|
|
248
|
-
const index = originalCol.value ? originalCol.value.index : void 0;
|
|
249
|
-
const start = typeof index === "function" ? index(rowIndex) : index;
|
|
250
|
-
return String((props.pageIndex || start || 0) + rowIndex);
|
|
251
|
-
});
|
|
252
232
|
const isExpandCol = computed(() => {
|
|
253
233
|
return props.column != null && props.expandColumnKey != null && props.expandColumnKey === props.column.key;
|
|
254
234
|
});
|
|
@@ -256,18 +236,26 @@ const _sfc_main = defineComponent({
|
|
|
256
236
|
const col = originalCol.value;
|
|
257
237
|
const { rowspan, colspan } = cellSpan.value;
|
|
258
238
|
if (col && rowspan !== 0 && colspan !== 0) {
|
|
239
|
+
const { rowIndex, rowData } = props;
|
|
240
|
+
if (col.type === "index") {
|
|
241
|
+
if (typeof col.index === "function") {
|
|
242
|
+
return {
|
|
243
|
+
render: col.index,
|
|
244
|
+
params: [rowIndex]
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
return {};
|
|
248
|
+
}
|
|
259
249
|
if (col.slot && typeof slots[col.slot] === "function") {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
column: col,
|
|
263
|
-
$index: props.rowIndex
|
|
250
|
+
return {
|
|
251
|
+
render: slots[col.slot],
|
|
252
|
+
params: [{ row: rowData, column: col, $index: rowIndex }]
|
|
264
253
|
};
|
|
265
|
-
return { render: slots[col.slot], params: [param] };
|
|
266
254
|
}
|
|
267
255
|
if (typeof col.formatter === "function") {
|
|
268
256
|
return {
|
|
269
257
|
render: col.formatter,
|
|
270
|
-
params: [
|
|
258
|
+
params: [rowData, col, cellText.value, rowIndex]
|
|
271
259
|
};
|
|
272
260
|
}
|
|
273
261
|
}
|
|
@@ -330,7 +318,6 @@ const _sfc_main = defineComponent({
|
|
|
330
318
|
colType,
|
|
331
319
|
cellClass,
|
|
332
320
|
cellStyle,
|
|
333
|
-
indexText,
|
|
334
321
|
cellText,
|
|
335
322
|
isExpandCol,
|
|
336
323
|
renderOpt,
|
|
@@ -360,8 +347,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
360
347
|
const _component_LoadingDotOutlined = resolveComponent("LoadingDotOutlined");
|
|
361
348
|
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
362
349
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
363
|
-
const _component_CellRender = resolveComponent("CellRender");
|
|
364
350
|
const _component_CellCheckbox = resolveComponent("CellCheckbox");
|
|
351
|
+
const _component_CellRender = resolveComponent("CellRender");
|
|
365
352
|
return openBlock(), createElementBlock("div", {
|
|
366
353
|
class: normalizeClass(_ctx.cellClass),
|
|
367
354
|
style: normalizeStyle(_ctx.cellStyle),
|
|
@@ -396,20 +383,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
396
383
|
}, 8, ["class"])
|
|
397
384
|
], 2)) : (openBlock(), createElementBlock("div", _hoisted_1))
|
|
398
385
|
], 64)) : createCommentVNode("", true),
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
createTextVNode(toDisplayString(_ctx.cellText), 1)
|
|
402
|
-
]),
|
|
403
|
-
_: 1
|
|
404
|
-
}, 16)) : _ctx.colType === "index" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
405
|
-
createTextVNode(toDisplayString(_ctx.indexText), 1)
|
|
406
|
-
], 64)) : _ctx.colType === "selection" ? (openBlock(), createBlock(_component_CellCheckbox, {
|
|
407
|
-
key: 3,
|
|
386
|
+
_ctx.colType === "selection" ? (openBlock(), createBlock(_component_CellCheckbox, {
|
|
387
|
+
key: 1,
|
|
408
388
|
checked: _ctx.isChecked,
|
|
409
389
|
disabled: _ctx.rowData ? _ctx.rowData._rowDisabled : false,
|
|
410
390
|
size: _ctx.tableSize,
|
|
411
391
|
onChange: _ctx.onCheckedChange
|
|
412
|
-
}, null, 8, ["checked", "disabled", "size", "onChange"])) :
|
|
392
|
+
}, null, 8, ["checked", "disabled", "size", "onChange"])) : _ctx.colType !== "expand" ? (openBlock(), createBlock(_component_CellRender, normalizeProps(mergeProps({ key: 2 }, _ctx.renderOpt)), {
|
|
393
|
+
default: withCtx(() => [
|
|
394
|
+
createTextVNode(toDisplayString(_ctx.cellText), 1)
|
|
395
|
+
]),
|
|
396
|
+
_: 1
|
|
397
|
+
}, 16)) : createCommentVNode("", true)
|
|
413
398
|
])
|
|
414
399
|
], 38);
|
|
415
400
|
}
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
/** 合计行文本 */
|
|
16
16
|
sumText: StringConstructor;
|
|
17
17
|
/** 合计行自定义方法 */
|
|
18
|
-
summaryMethod:
|
|
18
|
+
summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<DataItem> | undefined>;
|
|
19
19
|
}, {
|
|
20
20
|
sumCols: import("vue").ComputedRef<SumCol[]>;
|
|
21
21
|
onMouseenter: (e: MouseEvent) => void;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
/** 合计行文本 */
|
|
37
37
|
sumText: StringConstructor;
|
|
38
38
|
/** 合计行自定义方法 */
|
|
39
|
-
summaryMethod:
|
|
39
|
+
summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<DataItem> | undefined>;
|
|
40
40
|
}>> & {
|
|
41
41
|
onMouseenter?: ((_e: MouseEvent) => any) | undefined;
|
|
42
42
|
}, {}, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, Fragment, renderList, normalizeClass, createElementVNode,
|
|
2
|
-
import { getSumValue } from "../util";
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, Fragment, renderList, normalizeClass, createElementVNode, createVNode } from "vue";
|
|
2
|
+
import { CellRender, getUserSums, getSumValue } from "../util";
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
name: "FooterRow",
|
|
5
|
+
components: { CellRender },
|
|
5
6
|
props: {
|
|
6
7
|
/** 表格主体列配置 */
|
|
7
8
|
bodyCols: Array,
|
|
@@ -24,13 +25,11 @@ const _sfc_main = defineComponent({
|
|
|
24
25
|
},
|
|
25
26
|
setup(props, { emit }) {
|
|
26
27
|
const userSums = computed(() => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
return props.summaryMethod({ columns, data: props.tableData });
|
|
28
|
+
return getUserSums(
|
|
29
|
+
props.summaryMethod,
|
|
30
|
+
props.bodyCols,
|
|
31
|
+
props.tableData
|
|
32
|
+
);
|
|
34
33
|
});
|
|
35
34
|
const sumCols = computed(() => {
|
|
36
35
|
if (!props.bodyCols) {
|
|
@@ -69,6 +68,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
69
68
|
};
|
|
70
69
|
const _hoisted_1 = { class: "ele-table-cell" };
|
|
71
70
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
71
|
+
const _component_CellRender = resolveComponent("CellRender");
|
|
72
72
|
return openBlock(), createElementBlock("div", {
|
|
73
73
|
class: "ele-table-foot-tr",
|
|
74
74
|
style: normalizeStyle({ width: (_ctx.sumWidth || 0) + "px", height: (_ctx.rowHeight || 0) + "px" })
|
|
@@ -94,7 +94,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
94
|
}),
|
|
95
95
|
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.onMouseenter && _ctx.onMouseenter(...args))
|
|
96
96
|
}, [
|
|
97
|
-
createElementVNode("div", _hoisted_1,
|
|
97
|
+
createElementVNode("div", _hoisted_1, [
|
|
98
|
+
createVNode(_component_CellRender, {
|
|
99
|
+
render: () => col.text,
|
|
100
|
+
params: []
|
|
101
|
+
}, null, 8, ["render"])
|
|
102
|
+
])
|
|
98
103
|
], 38);
|
|
99
104
|
}), 128))
|
|
100
105
|
], 4);
|