ele-admin-plus 1.2.1-beta.2 → 1.2.1-beta.3
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 +26 -30
- package/es/ele-admin-layout/props.d.ts +11 -10
- package/es/ele-alert/index.d.ts +14 -14
- package/es/ele-alert/props.d.ts +9 -8
- package/es/ele-app/components/message-body.d.ts +5 -4
- package/es/ele-app/components/message-box-icon.d.ts +7 -6
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-avatar-group/index.d.ts +15 -14
- package/es/ele-avatar-group/props.d.ts +10 -7
- package/es/ele-basic-select/index.d.ts +17 -14
- package/es/ele-basic-select/index.js +14 -7
- package/es/ele-basic-select/props.d.ts +11 -6
- package/es/ele-basic-select/props.js +3 -1
- package/es/ele-basic-select/util.d.ts +6 -0
- package/es/ele-basic-select/util.js +13 -0
- package/es/ele-bottom-bar/index.d.ts +4 -4
- package/es/ele-bottom-bar/props.d.ts +3 -2
- package/es/ele-breadcrumb/index.d.ts +3 -3
- package/es/ele-breadcrumb/props.d.ts +1 -1
- package/es/ele-card/index.d.ts +14 -14
- package/es/ele-card/props.d.ts +8 -6
- package/es/ele-check-card/components/card-item.d.ts +3 -2
- package/es/ele-check-card/index.d.ts +4 -4
- package/es/ele-check-card/index.js +8 -3
- package/es/ele-check-card/props.d.ts +3 -2
- package/es/ele-config-provider/index.d.ts +4 -4
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/types.d.ts +1 -0
- package/es/ele-copyable/index.d.ts +10 -10
- package/es/ele-copyable/props.d.ts +7 -5
- package/es/ele-count-up/index.d.ts +1 -1
- package/es/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/es/ele-cropper/index.d.ts +3 -3
- package/es/ele-cropper/props.d.ts +2 -1
- package/es/ele-cropper-modal/index.d.ts +4 -4
- package/es/ele-cropper-modal/props.d.ts +1 -4
- package/es/ele-data-table/index.d.ts +22 -22
- package/es/ele-data-table/props.d.ts +16 -16
- package/es/ele-data-table/style/index.scss +1 -1
- package/es/ele-data-table/types.d.ts +2 -0
- package/es/ele-data-table/util.js +5 -1
- package/es/ele-drawer/index.d.ts +14 -14
- package/es/ele-drawer/props.d.ts +11 -10
- package/es/ele-dropdown/index.d.ts +22 -22
- package/es/ele-dropdown/index.js +45 -39
- package/es/ele-dropdown/props.d.ts +13 -12
- package/es/ele-dropdown/types.d.ts +2 -0
- package/es/ele-edit-tag/index.d.ts +21 -19
- package/es/ele-edit-tag/index.js +10 -2
- package/es/ele-edit-tag/props.d.ts +13 -8
- package/es/ele-edit-tag/props.js +3 -1
- package/es/ele-ellipsis/index.d.ts +5 -4
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-file-list/index.d.ts +4 -4
- package/es/ele-icon-select/components/icon-grid.d.ts +8 -6
- package/es/ele-icon-select/index.d.ts +37 -36
- package/es/ele-icon-select/index.js +6 -2
- package/es/ele-icon-select/props.d.ts +18 -14
- package/es/ele-icon-select/props.js +2 -0
- package/es/ele-loading/index.d.ts +4 -4
- package/es/ele-loading/props.d.ts +3 -2
- package/es/ele-map-picker/components/map-view.d.ts +26 -28
- package/es/ele-map-picker/components/map-view.js +1 -0
- package/es/ele-map-picker/index.d.ts +10 -10
- package/es/ele-map-picker/props.d.ts +6 -5
- package/es/ele-map-picker/style/index.scss +1 -1
- package/es/ele-menus/index.d.ts +2 -2
- package/es/ele-menus/props.d.ts +1 -1
- package/es/ele-menus/style/index.scss +4 -0
- package/es/ele-modal/index.d.ts +24 -23
- package/es/ele-modal/index.js +30 -64
- package/es/ele-modal/props.d.ts +14 -13
- package/es/ele-modal/util.d.ts +31 -24
- package/es/ele-modal/util.js +235 -132
- package/es/ele-pagination/index.d.ts +18 -6
- package/es/ele-pagination/index.js +3 -2
- package/es/ele-pagination/props.d.ts +8 -2
- package/es/ele-pagination/style/index.scss +70 -0
- package/es/ele-popconfirm/index.d.ts +32 -32
- package/es/ele-popconfirm/props.d.ts +19 -17
- package/es/ele-popover/index.d.ts +22 -22
- package/es/ele-popover/props.d.ts +11 -10
- package/es/ele-printer/index.d.ts +8 -8
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/util.d.ts +5 -5
- package/es/ele-printer/util.js +68 -43
- package/es/ele-pro-layout/index.d.ts +43 -47
- package/es/ele-pro-layout/props.d.ts +16 -14
- package/es/ele-pro-table/components/table-tools.d.ts +402 -32
- package/es/ele-pro-table/components/table-tools.js +223 -140
- package/es/ele-pro-table/components/tool-column-list.d.ts +12 -0
- package/es/ele-pro-table/components/tool-column-list.js +33 -6
- package/es/ele-pro-table/components/tool-column.d.ts +8 -7
- package/es/ele-pro-table/components/tool-column.js +11 -5
- package/es/ele-pro-table/components/tool-export.d.ts +33 -30
- package/es/ele-pro-table/components/tool-export.js +204 -184
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print.d.ts +41 -40
- package/es/ele-pro-table/components/tool-print.js +357 -336
- package/es/ele-pro-table/index.d.ts +1006 -70
- package/es/ele-pro-table/index.js +63 -13
- package/es/ele-pro-table/props.d.ts +17 -18
- package/es/ele-pro-table/props.js +3 -1
- package/es/ele-pro-table/style/index.scss +43 -12
- package/es/ele-pro-table/types.d.ts +54 -0
- package/es/ele-pro-table/util.d.ts +51 -9
- package/es/ele-pro-table/util.js +89 -28
- package/es/ele-qr-code/components/canvas-render.d.ts +67 -0
- package/es/ele-qr-code/components/canvas-render.js +147 -0
- package/es/ele-qr-code/index.d.ts +5 -9
- package/es/ele-qr-code/index.js +33 -136
- package/es/ele-qr-code/props.d.ts +5 -2
- package/es/ele-qr-code/props.js +3 -1
- package/es/ele-qr-code/types.d.ts +5 -0
- package/es/ele-qr-code-svg/index.d.ts +6 -5
- package/es/ele-qr-code-svg/index.js +11 -14
- package/es/ele-segmented/index.js +3 -0
- package/es/ele-split-panel/index.d.ts +7 -7
- package/es/ele-split-panel/props.d.ts +4 -3
- package/es/ele-steps/index.d.ts +2 -2
- package/es/ele-steps/props.d.ts +2 -2
- package/es/ele-table/index.d.ts +2 -2
- package/es/ele-table/props.d.ts +2 -1
- package/es/ele-table-select/index.d.ts +22 -20
- package/es/ele-table-select/index.js +5 -2
- package/es/ele-table-select/props.d.ts +11 -7
- package/es/ele-table-select/props.js +2 -0
- package/es/ele-tabs/index.d.ts +19 -34
- package/es/ele-tabs/index.js +133 -86
- package/es/ele-tabs/props.d.ts +10 -24
- package/es/ele-tabs/props.js +3 -1
- package/es/ele-tabs/style/index.scss +42 -2
- package/es/ele-tabs/types.d.ts +2 -11
- package/es/ele-text/index.d.ts +2 -2
- package/es/ele-text/props.d.ts +2 -1
- package/es/ele-tool/index.d.ts +5 -2
- package/es/ele-tool/index.js +2 -5
- package/es/ele-tool/props.d.ts +4 -1
- package/es/ele-tool/props.js +3 -1
- package/es/ele-tool/style/index.scss +13 -0
- package/es/ele-toolbar/index.d.ts +17 -17
- package/es/ele-toolbar/props.d.ts +4 -3
- package/es/ele-tooltip/index.d.ts +13 -12
- package/es/ele-tooltip/props.d.ts +7 -6
- package/es/ele-tour/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +18 -18
- package/es/ele-tree-select/index.js +5 -2
- package/es/ele-tree-select/props.d.ts +12 -8
- package/es/ele-tree-select/props.js +3 -1
- package/es/ele-upload-list/index.d.ts +7 -9
- package/es/ele-upload-list/props.d.ts +4 -3
- package/es/ele-upload-list/style/index.scss +4 -0
- package/es/ele-virtual-table/components/body-cell.d.ts +11 -27
- package/es/ele-virtual-table/components/body-row.d.ts +13 -29
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +6 -6
- package/es/ele-virtual-table/components/footer-row.d.ts +3 -3
- package/es/ele-virtual-table/components/header-cell.d.ts +7 -7
- package/es/ele-virtual-table/components/header-row.d.ts +7 -7
- package/es/ele-virtual-table/index.d.ts +20 -21
- package/es/ele-virtual-table/props.d.ts +11 -11
- package/es/ele-watermark/index.d.ts +5 -4
- package/es/ele-watermark/props.d.ts +2 -1
- package/es/ele-xg-player/index.d.ts +3 -3
- package/es/icons/SizeCompactOutlined.d.ts +2 -0
- package/es/icons/SizeCompactOutlined.js +34 -0
- package/es/icons/SizeSlackOutlined.d.ts +2 -0
- package/es/icons/SizeSlackOutlined.js +34 -0
- package/es/icons/index.d.ts +2 -0
- package/es/icons/index.js +46 -42
- package/es/lang/en_US.js +1 -0
- package/es/lang/zh_CN.js +1 -0
- package/es/lang/zh_TW.js +1 -0
- package/es/style/themes/default.scss +12 -5
- package/es/style/themes/rounded.scss +3 -2
- package/es/utils/hook.d.ts +75 -4
- package/es/utils/hook.js +155 -6
- package/lib/ele-admin-layout/index.d.ts +26 -30
- package/lib/ele-admin-layout/props.d.ts +11 -10
- package/lib/ele-alert/index.d.ts +14 -14
- package/lib/ele-alert/props.d.ts +9 -8
- package/lib/ele-app/components/message-body.d.ts +5 -4
- package/lib/ele-app/components/message-box-icon.d.ts +7 -6
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-avatar-group/index.d.ts +15 -14
- package/lib/ele-avatar-group/props.d.ts +10 -7
- package/lib/ele-basic-select/index.cjs +14 -7
- package/lib/ele-basic-select/index.d.ts +17 -14
- package/lib/ele-basic-select/props.cjs +3 -1
- package/lib/ele-basic-select/props.d.ts +11 -6
- package/lib/ele-basic-select/util.cjs +13 -0
- package/lib/ele-basic-select/util.d.ts +6 -0
- package/lib/ele-bottom-bar/index.d.ts +4 -4
- package/lib/ele-bottom-bar/props.d.ts +3 -2
- package/lib/ele-breadcrumb/index.d.ts +3 -3
- package/lib/ele-breadcrumb/props.d.ts +1 -1
- package/lib/ele-card/index.d.ts +14 -14
- package/lib/ele-card/props.d.ts +8 -6
- package/lib/ele-check-card/components/card-item.d.ts +3 -2
- package/lib/ele-check-card/index.cjs +8 -3
- package/lib/ele-check-card/index.d.ts +4 -4
- package/lib/ele-check-card/props.d.ts +3 -2
- package/lib/ele-config-provider/index.d.ts +4 -4
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +1 -0
- package/lib/ele-copyable/index.d.ts +10 -10
- package/lib/ele-copyable/props.d.ts +7 -5
- package/lib/ele-count-up/index.d.ts +1 -1
- package/lib/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/lib/ele-cropper/index.d.ts +3 -3
- package/lib/ele-cropper/props.d.ts +2 -1
- package/lib/ele-cropper-modal/index.d.ts +4 -4
- package/lib/ele-cropper-modal/props.d.ts +1 -4
- package/lib/ele-data-table/index.d.ts +22 -22
- package/lib/ele-data-table/props.d.ts +16 -16
- package/lib/ele-data-table/style/index.scss +1 -1
- package/lib/ele-data-table/types.d.ts +2 -0
- package/lib/ele-data-table/util.cjs +5 -1
- package/lib/ele-drawer/index.d.ts +14 -14
- package/lib/ele-drawer/props.d.ts +11 -10
- package/lib/ele-dropdown/index.cjs +45 -39
- package/lib/ele-dropdown/index.d.ts +22 -22
- package/lib/ele-dropdown/props.d.ts +13 -12
- package/lib/ele-dropdown/types.d.ts +2 -0
- package/lib/ele-edit-tag/index.cjs +10 -2
- package/lib/ele-edit-tag/index.d.ts +21 -19
- package/lib/ele-edit-tag/props.cjs +3 -1
- package/lib/ele-edit-tag/props.d.ts +13 -8
- package/lib/ele-ellipsis/index.d.ts +5 -4
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-file-list/index.d.ts +4 -4
- package/lib/ele-icon-select/components/icon-grid.d.ts +8 -6
- package/lib/ele-icon-select/index.cjs +9 -5
- package/lib/ele-icon-select/index.d.ts +37 -36
- package/lib/ele-icon-select/props.cjs +2 -0
- package/lib/ele-icon-select/props.d.ts +18 -14
- package/lib/ele-loading/index.d.ts +4 -4
- package/lib/ele-loading/props.d.ts +3 -2
- package/lib/ele-map-picker/components/map-view.cjs +1 -0
- package/lib/ele-map-picker/components/map-view.d.ts +26 -28
- package/lib/ele-map-picker/index.d.ts +10 -10
- package/lib/ele-map-picker/props.d.ts +6 -5
- package/lib/ele-map-picker/style/index.scss +1 -1
- package/lib/ele-menus/index.d.ts +2 -2
- package/lib/ele-menus/props.d.ts +1 -1
- package/lib/ele-menus/style/index.scss +4 -0
- package/lib/ele-modal/index.cjs +28 -62
- package/lib/ele-modal/index.d.ts +24 -23
- package/lib/ele-modal/props.d.ts +14 -13
- package/lib/ele-modal/util.cjs +235 -132
- package/lib/ele-modal/util.d.ts +31 -24
- package/lib/ele-pagination/index.cjs +3 -2
- package/lib/ele-pagination/index.d.ts +18 -6
- package/lib/ele-pagination/props.d.ts +8 -2
- package/lib/ele-pagination/style/index.scss +70 -0
- package/lib/ele-popconfirm/index.d.ts +32 -32
- package/lib/ele-popconfirm/props.d.ts +19 -17
- package/lib/ele-popover/index.d.ts +22 -22
- package/lib/ele-popover/props.d.ts +11 -10
- package/lib/ele-printer/index.d.ts +8 -8
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/util.cjs +68 -43
- package/lib/ele-printer/util.d.ts +5 -5
- package/lib/ele-pro-layout/index.d.ts +43 -47
- package/lib/ele-pro-layout/props.d.ts +16 -14
- package/lib/ele-pro-table/components/table-tools.cjs +221 -138
- package/lib/ele-pro-table/components/table-tools.d.ts +402 -32
- package/lib/ele-pro-table/components/tool-column-list.cjs +32 -5
- package/lib/ele-pro-table/components/tool-column-list.d.ts +12 -0
- package/lib/ele-pro-table/components/tool-column.cjs +10 -4
- package/lib/ele-pro-table/components/tool-column.d.ts +8 -7
- package/lib/ele-pro-table/components/tool-export.cjs +201 -181
- package/lib/ele-pro-table/components/tool-export.d.ts +33 -30
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print.cjs +354 -333
- package/lib/ele-pro-table/components/tool-print.d.ts +41 -40
- package/lib/ele-pro-table/index.cjs +60 -10
- package/lib/ele-pro-table/index.d.ts +1006 -70
- package/lib/ele-pro-table/props.cjs +3 -1
- package/lib/ele-pro-table/props.d.ts +17 -18
- package/lib/ele-pro-table/style/index.scss +43 -12
- package/lib/ele-pro-table/types.d.ts +54 -0
- package/lib/ele-pro-table/util.cjs +89 -28
- package/lib/ele-pro-table/util.d.ts +51 -9
- package/lib/ele-qr-code/components/canvas-render.cjs +146 -0
- package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
- package/lib/ele-qr-code/index.cjs +32 -135
- package/lib/ele-qr-code/index.d.ts +5 -9
- package/lib/ele-qr-code/props.cjs +3 -1
- package/lib/ele-qr-code/props.d.ts +5 -2
- package/lib/ele-qr-code/types.d.ts +5 -0
- package/lib/ele-qr-code-svg/index.cjs +10 -13
- package/lib/ele-qr-code-svg/index.d.ts +6 -5
- package/lib/ele-segmented/index.cjs +3 -0
- package/lib/ele-split-panel/index.d.ts +7 -7
- package/lib/ele-split-panel/props.d.ts +4 -3
- package/lib/ele-steps/index.d.ts +2 -2
- package/lib/ele-steps/props.d.ts +2 -2
- package/lib/ele-table/index.d.ts +2 -2
- package/lib/ele-table/props.d.ts +2 -1
- package/lib/ele-table-select/index.cjs +20 -17
- package/lib/ele-table-select/index.d.ts +22 -20
- package/lib/ele-table-select/props.cjs +2 -0
- package/lib/ele-table-select/props.d.ts +11 -7
- package/lib/ele-tabs/index.cjs +132 -85
- package/lib/ele-tabs/index.d.ts +19 -34
- package/lib/ele-tabs/props.cjs +3 -1
- package/lib/ele-tabs/props.d.ts +10 -24
- package/lib/ele-tabs/style/index.scss +42 -2
- package/lib/ele-tabs/types.d.ts +2 -11
- package/lib/ele-text/index.d.ts +2 -2
- package/lib/ele-text/props.d.ts +2 -1
- package/lib/ele-tool/index.cjs +2 -5
- package/lib/ele-tool/index.d.ts +5 -2
- package/lib/ele-tool/props.cjs +3 -1
- package/lib/ele-tool/props.d.ts +4 -1
- package/lib/ele-tool/style/index.scss +13 -0
- package/lib/ele-toolbar/index.d.ts +17 -17
- package/lib/ele-toolbar/props.d.ts +4 -3
- package/lib/ele-tooltip/index.d.ts +13 -12
- package/lib/ele-tooltip/props.d.ts +7 -6
- package/lib/ele-tour/index.d.ts +1 -1
- package/lib/ele-tree-select/index.cjs +4 -1
- package/lib/ele-tree-select/index.d.ts +18 -18
- package/lib/ele-tree-select/props.cjs +3 -1
- package/lib/ele-tree-select/props.d.ts +12 -8
- package/lib/ele-upload-list/index.d.ts +7 -9
- package/lib/ele-upload-list/props.d.ts +4 -3
- package/lib/ele-upload-list/style/index.scss +4 -0
- package/lib/ele-virtual-table/components/body-cell.d.ts +11 -27
- package/lib/ele-virtual-table/components/body-row.d.ts +13 -29
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/lib/ele-virtual-table/components/cell-filter.d.ts +6 -6
- package/lib/ele-virtual-table/components/footer-row.d.ts +3 -3
- package/lib/ele-virtual-table/components/header-cell.d.ts +7 -7
- package/lib/ele-virtual-table/components/header-row.d.ts +7 -7
- package/lib/ele-virtual-table/index.d.ts +20 -21
- package/lib/ele-virtual-table/props.d.ts +11 -11
- package/lib/ele-watermark/index.d.ts +5 -4
- package/lib/ele-watermark/props.d.ts +2 -1
- package/lib/ele-xg-player/index.d.ts +3 -3
- package/lib/icons/SizeCompactOutlined.cjs +33 -0
- package/lib/icons/SizeCompactOutlined.d.ts +2 -0
- package/lib/icons/SizeSlackOutlined.cjs +33 -0
- package/lib/icons/SizeSlackOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +4 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/lang/en_US.cjs +1 -0
- package/lib/lang/zh_CN.cjs +1 -0
- package/lib/lang/zh_TW.cjs +1 -0
- package/lib/style/themes/default.scss +12 -5
- package/lib/style/themes/rounded.scss +3 -2
- package/lib/utils/hook.cjs +154 -5
- package/lib/utils/hook.d.ts +75 -4
- package/package.json +14 -13
|
@@ -9,11 +9,14 @@ const EleTool = require("../../ele-tool/index");
|
|
|
9
9
|
const ToolColumn = require("./tool-column");
|
|
10
10
|
const ToolExport = require("./tool-export");
|
|
11
11
|
const ToolPrint = require("./tool-print");
|
|
12
|
+
const ownSlots = ["default", "printTop", "printBottom"];
|
|
12
13
|
const _sfc_main = vue.defineComponent({
|
|
13
14
|
name: "TableTools",
|
|
14
15
|
components: {
|
|
15
16
|
ElIcon: elementPlus.ElIcon,
|
|
16
17
|
ReloadOutlined: icons.ReloadOutlined,
|
|
18
|
+
DownloadOutlined: icons.DownloadOutlined,
|
|
19
|
+
PrinterOutlined: icons.PrinterOutlined,
|
|
17
20
|
ColumnHeightOutlined: icons.ColumnHeightOutlined,
|
|
18
21
|
FullscreenOutlined: icons.FullscreenOutlined,
|
|
19
22
|
FullscreenExitOutlined: icons.FullscreenExitOutlined,
|
|
@@ -90,6 +93,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
90
93
|
},
|
|
91
94
|
setup(props, { emit }) {
|
|
92
95
|
const { lang } = receiver.useLocale("table", props);
|
|
96
|
+
const toolExportRef = vue.ref(null);
|
|
97
|
+
const toolPrintRef = vue.ref(null);
|
|
93
98
|
const placement = vue.computed(() => props.maximized ? "bottom" : "top");
|
|
94
99
|
const reload = () => {
|
|
95
100
|
emit("reload");
|
|
@@ -106,13 +111,43 @@ const _sfc_main = vue.defineComponent({
|
|
|
106
111
|
const toggleMaximized = () => {
|
|
107
112
|
emit("update:maximized", !props.maximized);
|
|
108
113
|
};
|
|
114
|
+
const openExportModal = () => {
|
|
115
|
+
if (toolExportRef.value) {
|
|
116
|
+
toolExportRef.value.openModal();
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const openPrintModal = () => {
|
|
120
|
+
if (toolPrintRef.value) {
|
|
121
|
+
toolPrintRef.value.openModal();
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const printData = (params) => {
|
|
125
|
+
if (toolPrintRef.value) {
|
|
126
|
+
toolPrintRef.value.printData(params);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const exportData = (params) => {
|
|
130
|
+
if (toolExportRef.value) {
|
|
131
|
+
toolExportRef.value.exportData(params);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
109
134
|
return {
|
|
135
|
+
ownSlots,
|
|
136
|
+
SizeSlackOutlined: icons.SizeSlackOutlined,
|
|
137
|
+
MenuOutlined: icons.MenuOutlined,
|
|
138
|
+
SizeCompactOutlined: icons.SizeCompactOutlined,
|
|
110
139
|
lang,
|
|
140
|
+
toolExportRef,
|
|
141
|
+
toolPrintRef,
|
|
111
142
|
placement,
|
|
112
143
|
reload,
|
|
113
144
|
updateSize,
|
|
114
145
|
updateColumns,
|
|
115
|
-
toggleMaximized
|
|
146
|
+
toggleMaximized,
|
|
147
|
+
openExportModal,
|
|
148
|
+
openPrintModal,
|
|
149
|
+
printData,
|
|
150
|
+
exportData
|
|
116
151
|
};
|
|
117
152
|
}
|
|
118
153
|
});
|
|
@@ -124,151 +159,199 @@ const _export_sfc = (sfc, props) => {
|
|
|
124
159
|
return target;
|
|
125
160
|
};
|
|
126
161
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
162
|
+
const _component_ToolExport = vue.resolveComponent("ToolExport");
|
|
163
|
+
const _component_ToolPrint = vue.resolveComponent("ToolPrint");
|
|
127
164
|
const _component_ReloadOutlined = vue.resolveComponent("ReloadOutlined");
|
|
128
165
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
129
166
|
const _component_EleTool = vue.resolveComponent("EleTool");
|
|
167
|
+
const _component_DownloadOutlined = vue.resolveComponent("DownloadOutlined");
|
|
168
|
+
const _component_PrinterOutlined = vue.resolveComponent("PrinterOutlined");
|
|
130
169
|
const _component_ColumnHeightOutlined = vue.resolveComponent("ColumnHeightOutlined");
|
|
131
170
|
const _component_EleDropdown = vue.resolveComponent("EleDropdown");
|
|
132
171
|
const _component_ToolColumn = vue.resolveComponent("ToolColumn");
|
|
133
172
|
const _component_FullscreenExitOutlined = vue.resolveComponent("FullscreenExitOutlined");
|
|
134
173
|
const _component_FullscreenOutlined = vue.resolveComponent("FullscreenOutlined");
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
placement:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
174
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
175
|
+
vue.createVNode(_component_ToolExport, {
|
|
176
|
+
ref: "toolExportRef",
|
|
177
|
+
locale: _ctx.lang,
|
|
178
|
+
cacheKey: _ctx.cacheKey,
|
|
179
|
+
modalProps: _ctx.exportConfig.modalProps,
|
|
180
|
+
columns: _ctx.exportConfig.columns || _ctx.columns,
|
|
181
|
+
selections: _ctx.selections,
|
|
182
|
+
pageData: _ctx.pageData,
|
|
183
|
+
datasource: _ctx.exportConfig.datasource,
|
|
184
|
+
spanMethod: _ctx.spanMethod,
|
|
185
|
+
tableHeader: _ctx.exportConfig.showHeader ?? _ctx.tableHeader,
|
|
186
|
+
showSummary: _ctx.showSummary,
|
|
187
|
+
sumText: _ctx.sumText,
|
|
188
|
+
summaryMethod: _ctx.summaryMethod,
|
|
189
|
+
pageIndex: _ctx.pageIndex,
|
|
190
|
+
treeProps: _ctx.treeProps,
|
|
191
|
+
fetch: _ctx.fetch,
|
|
192
|
+
defaultFileName: _ctx.exportConfig.fileName,
|
|
193
|
+
defaultDataType: _ctx.exportConfig.dataType,
|
|
194
|
+
defaultShowFooter: _ctx.exportConfig.showFooter,
|
|
195
|
+
defaultShowTreeIndex: _ctx.exportConfig.showTreeIndex,
|
|
196
|
+
beforeExport: _ctx.exportConfig.beforeExport
|
|
197
|
+
}, null, 8, ["locale", "cacheKey", "modalProps", "columns", "selections", "pageData", "datasource", "spanMethod", "tableHeader", "showSummary", "sumText", "summaryMethod", "pageIndex", "treeProps", "fetch", "defaultFileName", "defaultDataType", "defaultShowFooter", "defaultShowTreeIndex", "beforeExport"]),
|
|
198
|
+
vue.createVNode(_component_ToolPrint, {
|
|
199
|
+
ref: "toolPrintRef",
|
|
200
|
+
locale: _ctx.lang,
|
|
201
|
+
cacheKey: _ctx.cacheKey,
|
|
202
|
+
modalProps: _ctx.printConfig.modalProps,
|
|
203
|
+
printerProps: _ctx.printConfig.printerProps,
|
|
204
|
+
tableProps: _ctx.printConfig.tableProps,
|
|
205
|
+
columns: _ctx.printConfig.columns || _ctx.columns,
|
|
206
|
+
selections: _ctx.selections,
|
|
207
|
+
pageData: _ctx.pageData,
|
|
208
|
+
datasource: _ctx.printConfig.datasource,
|
|
209
|
+
spanMethod: _ctx.spanMethod,
|
|
210
|
+
tableHeader: _ctx.printConfig.showHeader ?? _ctx.tableHeader,
|
|
211
|
+
showSummary: _ctx.showSummary,
|
|
212
|
+
sumText: _ctx.sumText,
|
|
213
|
+
summaryMethod: _ctx.summaryMethod,
|
|
214
|
+
cellStyle: _ctx.cellStyle,
|
|
215
|
+
cellClassName: _ctx.cellClassName,
|
|
216
|
+
headerCellStyle: _ctx.headerCellStyle,
|
|
217
|
+
headerCellClassName: _ctx.headerCellClassName,
|
|
218
|
+
pageIndex: _ctx.pageIndex,
|
|
219
|
+
treeProps: _ctx.treeProps,
|
|
220
|
+
fetch: _ctx.fetch,
|
|
221
|
+
defaultDataType: _ctx.printConfig.dataType,
|
|
222
|
+
defaultShowFooter: _ctx.printConfig.showFooter,
|
|
223
|
+
defaultShowTreeIndex: _ctx.printConfig.showTreeIndex,
|
|
224
|
+
beforePrint: _ctx.printConfig.beforePrint
|
|
225
|
+
}, vue.createSlots({ _: 2 }, [
|
|
226
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
227
|
+
return {
|
|
228
|
+
name,
|
|
229
|
+
fn: vue.withCtx((slotProps) => [
|
|
230
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
231
|
+
])
|
|
232
|
+
};
|
|
233
|
+
})
|
|
234
|
+
]), 1032, ["locale", "cacheKey", "modalProps", "printerProps", "tableProps", "columns", "selections", "pageData", "datasource", "spanMethod", "tableHeader", "showSummary", "sumText", "summaryMethod", "cellStyle", "cellClassName", "headerCellStyle", "headerCellClassName", "pageIndex", "treeProps", "fetch", "defaultDataType", "defaultShowFooter", "defaultShowTreeIndex", "beforePrint"]),
|
|
235
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tools, (tool, index) => {
|
|
236
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
237
|
+
tool === "reload" ? (vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
238
|
+
key: index + "-reload",
|
|
239
|
+
placement: _ctx.placement,
|
|
240
|
+
title: _ctx.lang.refresh,
|
|
241
|
+
onClick: _ctx.reload
|
|
242
|
+
}, {
|
|
243
|
+
default: vue.withCtx(() => [
|
|
244
|
+
vue.createVNode(_component_ElIcon, null, {
|
|
245
|
+
default: vue.withCtx(() => [
|
|
246
|
+
vue.createVNode(_component_ReloadOutlined)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
})
|
|
250
|
+
]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1032, ["placement", "title", "onClick"])) : tool === "export" ? (vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
253
|
+
key: index + "-export",
|
|
254
|
+
title: _ctx.lang.export,
|
|
255
|
+
placement: _ctx.placement,
|
|
256
|
+
clickHideTooltip: true,
|
|
257
|
+
onClick: _ctx.openExportModal
|
|
258
|
+
}, {
|
|
259
|
+
default: vue.withCtx(() => [
|
|
260
|
+
vue.createVNode(_component_ElIcon, { style: { "transform": "scale(1.1)", "transform-origin": "bottom" } }, {
|
|
261
|
+
default: vue.withCtx(() => [
|
|
262
|
+
vue.createVNode(_component_DownloadOutlined)
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
})
|
|
266
|
+
]),
|
|
267
|
+
_: 2
|
|
268
|
+
}, 1032, ["title", "placement", "onClick"])) : tool === "print" ? (vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
269
|
+
key: index + "-print",
|
|
270
|
+
title: _ctx.lang.print,
|
|
271
|
+
placement: _ctx.placement,
|
|
272
|
+
clickHideTooltip: true,
|
|
273
|
+
onClick: _ctx.openPrintModal
|
|
274
|
+
}, {
|
|
275
|
+
default: vue.withCtx(() => [
|
|
276
|
+
vue.createVNode(_component_ElIcon, null, {
|
|
277
|
+
default: vue.withCtx(() => [
|
|
278
|
+
vue.createVNode(_component_PrinterOutlined)
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
})
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["title", "placement", "onClick"])) : tool === "size" ? (vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
285
|
+
key: index + "-size",
|
|
286
|
+
placement: _ctx.placement,
|
|
287
|
+
title: _ctx.lang.sizes
|
|
288
|
+
}, {
|
|
289
|
+
default: vue.withCtx(() => [
|
|
290
|
+
vue.createVNode(_component_EleDropdown, {
|
|
291
|
+
trigger: "click",
|
|
292
|
+
placement: "bottom",
|
|
293
|
+
popperClass: "ele-tool-size-popper",
|
|
294
|
+
modelValue: _ctx.size,
|
|
295
|
+
items: [
|
|
296
|
+
{ title: _ctx.lang.sizeLarge, command: "large", icon: _ctx.SizeSlackOutlined },
|
|
297
|
+
{
|
|
298
|
+
title: _ctx.lang.sizeDefault,
|
|
299
|
+
command: "default",
|
|
300
|
+
icon: _ctx.MenuOutlined,
|
|
301
|
+
iconStyle: { transform: "scale(0.94)", transformOrigin: "left" }
|
|
302
|
+
},
|
|
303
|
+
{ title: _ctx.lang.sizeSmall, command: "small", icon: _ctx.SizeCompactOutlined }
|
|
304
|
+
],
|
|
305
|
+
popperOptions: {
|
|
306
|
+
modifiers: [{ name: "offset", options: { offset: [0, 10] } }]
|
|
307
|
+
},
|
|
308
|
+
onCommand: _ctx.updateSize
|
|
309
|
+
}, {
|
|
310
|
+
default: vue.withCtx(() => [
|
|
311
|
+
vue.createVNode(_component_ElIcon, null, {
|
|
312
|
+
default: vue.withCtx(() => [
|
|
313
|
+
vue.createVNode(_component_ColumnHeightOutlined)
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
})
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
}, 8, ["modelValue", "items", "onCommand"])
|
|
320
|
+
]),
|
|
321
|
+
_: 2
|
|
322
|
+
}, 1032, ["placement", "title"])) : tool === "columns" ? (vue.openBlock(), vue.createBlock(_component_ToolColumn, {
|
|
323
|
+
key: index + "-columns",
|
|
324
|
+
placement: _ctx.placement,
|
|
325
|
+
locale: _ctx.lang,
|
|
326
|
+
columns: _ctx.columns,
|
|
327
|
+
sortable: _ctx.columnSortable,
|
|
328
|
+
allowFixed: _ctx.columnFixed,
|
|
329
|
+
cacheKey: _ctx.cacheKey,
|
|
330
|
+
"onUpdate:columns": _ctx.updateColumns
|
|
331
|
+
}, null, 8, ["placement", "locale", "columns", "sortable", "allowFixed", "cacheKey", "onUpdate:columns"])) : tool === "maximized" ? (vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
332
|
+
key: index + "-maximized",
|
|
333
|
+
placement: _ctx.placement,
|
|
334
|
+
title: _ctx.lang.maximized,
|
|
335
|
+
clickHideTooltip: true,
|
|
336
|
+
onClick: _ctx.toggleMaximized
|
|
337
|
+
}, {
|
|
338
|
+
default: vue.withCtx(() => [
|
|
339
|
+
vue.createVNode(_component_ElIcon, null, {
|
|
340
|
+
default: vue.withCtx(() => [
|
|
341
|
+
_ctx.maximized ? (vue.openBlock(), vue.createBlock(_component_FullscreenExitOutlined, { key: 0 })) : (vue.openBlock(), vue.createBlock(_component_FullscreenOutlined, { key: 1 }))
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
})
|
|
345
|
+
]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1032, ["placement", "title", "onClick"])) : tool && !_ctx.ownSlots.includes(tool) && _ctx.$slots[tool] ? vue.renderSlot(_ctx.$slots, tool, {
|
|
348
|
+
key: 6,
|
|
349
|
+
pageIndex: _ctx.pageIndex,
|
|
350
|
+
fetch: _ctx.fetch
|
|
351
|
+
}) : vue.createCommentVNode("", true)
|
|
352
|
+
], 64);
|
|
353
|
+
}), 256))
|
|
354
|
+
], 64);
|
|
272
355
|
}
|
|
273
356
|
const tableTools = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
274
357
|
module.exports = tableTools;
|