ele-admin-plus 1.2.1-beta.2 → 1.2.1-beta.4
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/core-components.d.ts +1 -0
- package/es/core-components.js +60 -58
- package/es/ele-admin-layout/components/layout-tabs.d.ts +1 -6
- package/es/ele-admin-layout/components/layout-tabs.js +18 -76
- package/es/ele-admin-layout/index.d.ts +26 -30
- package/es/ele-admin-layout/index.js +7 -2
- package/es/ele-admin-layout/props.d.ts +11 -10
- package/es/ele-admin-layout/types.d.ts +2 -0
- 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/el.d.ts +3 -0
- package/es/ele-app/plus.d.ts +21 -0
- package/es/ele-app/style/overwrite/css-var.scss +0 -2
- package/es/ele-app/style/overwrite/index.js +0 -1
- package/es/ele-app/style/overwrite/index.scss +0 -1
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-app/style/scrollbar/css-var.scss +17 -16
- package/es/ele-app/types.d.ts +8 -1
- 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 +19 -16
- 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 +13 -6
- package/es/ele-bottom-bar/index.js +37 -15
- package/es/ele-bottom-bar/props.d.ts +5 -2
- package/es/ele-bottom-bar/props.js +3 -1
- package/es/ele-bottom-bar/style/index.scss +5 -0
- 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 +6 -6
- 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 +12 -5
- package/es/ele-cropper/components/cropper-tools.js +41 -13
- package/es/ele-cropper/index.d.ts +6 -4
- package/es/ele-cropper/index.js +2 -1
- package/es/ele-cropper/props.d.ts +5 -2
- package/es/ele-cropper/props.js +2 -0
- package/es/ele-cropper/style/index.scss +3 -2
- package/es/ele-cropper/types.d.ts +16 -0
- package/es/ele-cropper-modal/index.d.ts +7 -5
- package/es/ele-cropper-modal/index.js +2 -1
- package/es/ele-cropper-modal/props.d.ts +2 -4
- package/es/ele-data-table/components/table-columns.d.ts +32 -0
- package/es/ele-data-table/components/table-columns.js +114 -0
- package/es/ele-data-table/index.d.ts +223 -41
- package/es/ele-data-table/index.js +202 -120
- package/es/ele-data-table/props.d.ts +22 -26
- 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.d.ts +1 -45
- package/es/ele-data-table/util.js +2 -106
- package/es/ele-drawer/index.d.ts +22 -22
- package/es/ele-drawer/props.d.ts +13 -12
- package/es/ele-dropdown/components/pro-dropdown.d.ts +237 -0
- package/es/ele-dropdown/components/pro-dropdown.js +204 -0
- package/es/ele-dropdown/index.d.ts +534 -48
- package/es/ele-dropdown/index.js +110 -25
- package/es/ele-dropdown/props.d.ts +120 -25
- package/es/ele-dropdown/props.js +54 -7
- package/es/ele-dropdown/style/index.js +4 -1
- package/es/ele-dropdown/style/index.scss +174 -6
- package/es/ele-edit-tag/index.d.ts +22 -20
- 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/components/file-grid-item.d.ts +11 -20
- package/es/ele-file-list/components/file-grid-item.js +19 -58
- package/es/ele-file-list/components/file-grid.d.ts +15 -19
- package/es/ele-file-list/components/file-grid.js +16 -39
- package/es/ele-file-list/components/file-table-item.d.ts +11 -20
- package/es/ele-file-list/components/file-table-item.js +19 -58
- package/es/ele-file-list/components/file-table.d.ts +15 -19
- package/es/ele-file-list/components/file-table.js +17 -37
- package/es/ele-file-list/index.d.ts +37 -16
- package/es/ele-file-list/index.js +118 -20
- package/es/ele-file-list/props.d.ts +4 -5
- package/es/ele-file-list/props.js +5 -8
- package/es/ele-file-list/style/index.scss +10 -5
- package/es/ele-file-list/types.d.ts +13 -1
- package/es/ele-icon-select/components/icon-grid.d.ts +9 -7
- package/es/ele-icon-select/index.d.ts +39 -38
- 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-image-viewer/index.d.ts +120 -0
- package/es/ele-image-viewer/index.js +88 -0
- package/es/ele-image-viewer/props.d.ts +58 -0
- package/es/ele-image-viewer/props.js +35 -0
- package/es/ele-image-viewer/style/css-var.scss +8 -0
- package/es/ele-image-viewer/style/index.js +2 -0
- package/es/ele-image-viewer/style/index.scss +117 -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 +8 -10
- 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/components/item-title.d.ts +48 -0
- package/es/ele-menus/components/item-title.js +108 -0
- package/es/ele-menus/components/menu-items.d.ts +78 -0
- package/es/ele-menus/components/menu-items.js +269 -0
- package/es/ele-menus/index.d.ts +79 -20
- package/es/ele-menus/index.js +280 -210
- package/es/ele-menus/props.d.ts +3 -3
- package/es/ele-menus/style/index.scss +4 -0
- package/es/ele-menus/util.d.ts +1 -62
- package/es/ele-menus/util.js +3 -244
- package/es/ele-modal/index.d.ts +33 -32
- package/es/ele-modal/index.js +30 -64
- package/es/ele-modal/props.d.ts +16 -15
- package/es/ele-modal/util.d.ts +32 -25
- package/es/ele-modal/util.js +239 -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 +43 -46
- package/es/ele-popconfirm/props.d.ts +22 -21
- package/es/ele-popover/index.d.ts +33 -36
- package/es/ele-popover/props.d.ts +11 -11
- package/es/ele-popover/props.js +1 -1
- 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/components/pro-iframe.d.ts +6 -6
- package/es/ele-pro-layout/components/pro-iframe.js +6 -4
- package/es/ele-pro-layout/index.d.ts +44 -48
- package/es/ele-pro-layout/index.js +13 -4
- package/es/ele-pro-layout/props.d.ts +19 -17
- package/es/ele-pro-layout/props.js +3 -3
- package/es/ele-pro-layout/types.d.ts +9 -5
- package/es/ele-pro-layout/util.d.ts +6 -0
- package/es/ele-pro-layout/util.js +12 -0
- package/es/ele-pro-table/components/table-tools.d.ts +405 -35
- package/es/ele-pro-table/components/table-tools.js +225 -143
- 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 +7 -6
- package/es/ele-pro-table/components/tool-column.js +15 -9
- package/es/ele-pro-table/components/tool-export.d.ts +30 -27
- 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-body-cell.js +1 -1
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print-header-cell.js +3 -2
- package/es/ele-pro-table/components/tool-print.d.ts +38 -37
- package/es/ele-pro-table/components/tool-print.js +357 -336
- package/es/ele-pro-table/index.d.ts +1015 -89
- package/es/ele-pro-table/index.js +60 -14
- package/es/ele-pro-table/props.d.ts +24 -27
- package/es/ele-pro-table/props.js +4 -2
- 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.d.ts +3 -1
- package/es/ele-segmented/index.js +30 -3
- package/es/ele-segmented/style/index.scss +7 -1
- 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 +10 -10
- package/es/ele-steps/props.d.ts +5 -5
- package/es/ele-tab-tool/index.d.ts +6 -1
- package/es/ele-tab-tool/index.js +44 -3
- package/es/ele-tab-tool/props.d.ts +2 -0
- package/es/ele-tab-tool/props.js +3 -1
- package/es/ele-tab-wrap/components/tab-dropdown.js +9 -26
- package/es/ele-tab-wrap/index.js +21 -2
- package/es/ele-table/index.d.ts +2 -2
- package/es/ele-table/props.d.ts +2 -1
- package/es/ele-table/style/index.scss +1 -2
- package/es/ele-table-select/index.d.ts +24 -22
- 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 +39 -52
- package/es/ele-tabs/index.js +290 -118
- package/es/ele-tabs/props.d.ts +11 -30
- package/es/ele-tabs/props.js +4 -2
- package/es/ele-tabs/style/index.scss +186 -170
- package/es/ele-tabs/types.d.ts +25 -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 +5 -3
- 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 +18 -18
- package/es/ele-toolbar/props.d.ts +4 -3
- package/es/ele-tooltip/index.d.ts +27 -26
- package/es/ele-tooltip/props.d.ts +9 -8
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tour/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +19 -19
- 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/components/list-item.d.ts +31 -5
- package/es/ele-upload-list/components/list-item.js +146 -66
- package/es/ele-upload-list/index.d.ts +57 -30
- package/es/ele-upload-list/index.js +180 -97
- package/es/ele-upload-list/props.d.ts +24 -10
- package/es/ele-upload-list/props.js +20 -8
- package/es/ele-upload-list/style/css-var.scss +8 -0
- package/es/ele-upload-list/style/index.js +1 -1
- package/es/ele-upload-list/style/index.scss +426 -132
- package/es/ele-upload-list/types.d.ts +35 -11
- package/es/ele-virtual-table/components/body-cell.d.ts +13 -29
- 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 +8 -8
- package/es/ele-virtual-table/components/header-row.d.ts +8 -8
- package/es/ele-virtual-table/index.d.ts +27 -36
- package/es/ele-virtual-table/index.js +8 -6
- package/es/ele-virtual-table/props.d.ts +13 -15
- 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/CornerLeftFilled.d.ts +2 -0
- package/es/icons/CornerLeftFilled.js +26 -0
- package/es/icons/CornerRightFilled.d.ts +2 -0
- package/es/icons/CornerRightFilled.js +26 -0
- package/es/icons/EyeOutlined.d.ts +2 -0
- package/es/icons/EyeOutlined.js +30 -0
- package/es/icons/FileOutlined.js +4 -4
- package/es/icons/SizeCompactOutlined.d.ts +2 -0
- package/es/icons/SizeCompactOutlined.js +34 -0
- package/es/icons/SizeMiddleOutlined.d.ts +2 -0
- package/es/icons/SizeMiddleOutlined.js +34 -0
- package/es/icons/SizeSlackOutlined.d.ts +2 -0
- package/es/icons/SizeSlackOutlined.js +34 -0
- package/es/icons/index.d.ts +6 -0
- package/es/icons/index.js +162 -150
- package/es/lang/en_US.js +5 -1
- package/es/lang/zh_CN.js +5 -1
- package/es/lang/zh_TW.js +5 -1
- package/es/style/plus.scss +1 -0
- package/es/style/themes/default.scss +92 -9
- package/es/style/themes/rounded.scss +9 -5
- package/es/style/themes/theme-util.scss +4 -0
- package/es/style/util.scss +10 -3
- package/es/utils/core.d.ts +4 -2
- package/es/utils/hook.d.ts +77 -4
- package/es/utils/hook.js +159 -6
- package/es/utils/menu-util.js +11 -5
- package/es/utils/message-box.js +5 -1
- package/es/utils/message.js +2 -2
- package/lib/core-components.cjs +60 -58
- package/lib/core-components.d.ts +1 -0
- package/lib/ele-admin-layout/components/layout-tabs.cjs +17 -75
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +1 -6
- package/lib/ele-admin-layout/index.cjs +7 -2
- package/lib/ele-admin-layout/index.d.ts +26 -30
- package/lib/ele-admin-layout/props.d.ts +11 -10
- package/lib/ele-admin-layout/types.d.ts +2 -0
- 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/el.d.ts +3 -0
- package/lib/ele-app/plus.d.ts +21 -0
- package/lib/ele-app/style/overwrite/css-var.scss +0 -2
- package/lib/ele-app/style/overwrite/index.cjs +0 -1
- package/lib/ele-app/style/overwrite/index.scss +0 -1
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-app/style/scrollbar/css-var.scss +17 -16
- package/lib/ele-app/types.d.ts +8 -1
- 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 +19 -16
- 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.cjs +36 -14
- package/lib/ele-bottom-bar/index.d.ts +13 -6
- package/lib/ele-bottom-bar/props.cjs +3 -1
- package/lib/ele-bottom-bar/props.d.ts +5 -2
- package/lib/ele-bottom-bar/style/index.scss +5 -0
- 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 +6 -6
- 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.cjs +40 -12
- package/lib/ele-cropper/components/cropper-tools.d.ts +12 -5
- package/lib/ele-cropper/index.cjs +2 -1
- package/lib/ele-cropper/index.d.ts +6 -4
- package/lib/ele-cropper/props.cjs +2 -0
- package/lib/ele-cropper/props.d.ts +5 -2
- package/lib/ele-cropper/style/index.scss +3 -2
- package/lib/ele-cropper/types.d.ts +16 -0
- package/lib/ele-cropper-modal/index.cjs +2 -1
- package/lib/ele-cropper-modal/index.d.ts +7 -5
- package/lib/ele-cropper-modal/props.d.ts +2 -4
- package/lib/ele-data-table/components/table-columns.cjs +113 -0
- package/lib/ele-data-table/components/table-columns.d.ts +32 -0
- package/lib/ele-data-table/index.cjs +199 -117
- package/lib/ele-data-table/index.d.ts +223 -41
- package/lib/ele-data-table/props.d.ts +22 -26
- 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 +0 -104
- package/lib/ele-data-table/util.d.ts +1 -45
- package/lib/ele-drawer/index.d.ts +22 -22
- package/lib/ele-drawer/props.d.ts +13 -12
- package/lib/ele-dropdown/components/pro-dropdown.cjs +203 -0
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +237 -0
- package/lib/ele-dropdown/index.cjs +113 -28
- package/lib/ele-dropdown/index.d.ts +534 -48
- package/lib/ele-dropdown/props.cjs +53 -6
- package/lib/ele-dropdown/props.d.ts +120 -25
- package/lib/ele-dropdown/style/index.cjs +4 -1
- package/lib/ele-dropdown/style/index.scss +174 -6
- package/lib/ele-edit-tag/index.cjs +10 -2
- package/lib/ele-edit-tag/index.d.ts +22 -20
- 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/components/file-grid-item.cjs +18 -57
- package/lib/ele-file-list/components/file-grid-item.d.ts +11 -20
- package/lib/ele-file-list/components/file-grid.cjs +15 -38
- package/lib/ele-file-list/components/file-grid.d.ts +15 -19
- package/lib/ele-file-list/components/file-table-item.cjs +18 -57
- package/lib/ele-file-list/components/file-table-item.d.ts +11 -20
- package/lib/ele-file-list/components/file-table.cjs +16 -36
- package/lib/ele-file-list/components/file-table.d.ts +15 -19
- package/lib/ele-file-list/index.cjs +117 -19
- package/lib/ele-file-list/index.d.ts +37 -16
- package/lib/ele-file-list/props.cjs +4 -7
- package/lib/ele-file-list/props.d.ts +4 -5
- package/lib/ele-file-list/style/index.scss +10 -5
- package/lib/ele-file-list/types.d.ts +13 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +9 -7
- package/lib/ele-icon-select/index.cjs +9 -5
- package/lib/ele-icon-select/index.d.ts +39 -38
- package/lib/ele-icon-select/props.cjs +2 -0
- package/lib/ele-icon-select/props.d.ts +18 -14
- package/lib/ele-image-viewer/index.cjs +87 -0
- package/lib/ele-image-viewer/index.d.ts +120 -0
- package/lib/ele-image-viewer/props.cjs +35 -0
- package/lib/ele-image-viewer/props.d.ts +58 -0
- package/lib/ele-image-viewer/style/css-var.scss +8 -0
- package/lib/ele-image-viewer/style/index.cjs +3 -0
- package/lib/ele-image-viewer/style/index.scss +117 -0
- 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 +8 -10
- 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/components/item-title.cjs +107 -0
- package/lib/ele-menus/components/item-title.d.ts +48 -0
- package/lib/ele-menus/components/menu-items.cjs +268 -0
- package/lib/ele-menus/components/menu-items.d.ts +78 -0
- package/lib/ele-menus/index.cjs +278 -208
- package/lib/ele-menus/index.d.ts +79 -20
- package/lib/ele-menus/props.d.ts +3 -3
- package/lib/ele-menus/style/index.scss +4 -0
- package/lib/ele-menus/util.cjs +1 -242
- package/lib/ele-menus/util.d.ts +1 -62
- package/lib/ele-modal/index.cjs +28 -62
- package/lib/ele-modal/index.d.ts +33 -32
- package/lib/ele-modal/props.d.ts +16 -15
- package/lib/ele-modal/util.cjs +239 -132
- package/lib/ele-modal/util.d.ts +32 -25
- 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 +43 -46
- package/lib/ele-popconfirm/props.d.ts +22 -21
- package/lib/ele-popover/index.d.ts +33 -36
- package/lib/ele-popover/props.cjs +1 -1
- package/lib/ele-popover/props.d.ts +11 -11
- 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/components/pro-iframe.cjs +6 -4
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +6 -6
- package/lib/ele-pro-layout/index.cjs +13 -4
- package/lib/ele-pro-layout/index.d.ts +44 -48
- package/lib/ele-pro-layout/props.cjs +3 -3
- package/lib/ele-pro-layout/props.d.ts +19 -17
- package/lib/ele-pro-layout/types.d.ts +9 -5
- package/lib/ele-pro-layout/util.cjs +12 -0
- package/lib/ele-pro-layout/util.d.ts +6 -0
- package/lib/ele-pro-table/components/table-tools.cjs +223 -141
- package/lib/ele-pro-table/components/table-tools.d.ts +405 -35
- 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 +14 -8
- package/lib/ele-pro-table/components/tool-column.d.ts +7 -6
- package/lib/ele-pro-table/components/tool-export.cjs +201 -181
- package/lib/ele-pro-table/components/tool-export.d.ts +30 -27
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +1 -1
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +3 -2
- 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 +38 -37
- package/lib/ele-pro-table/index.cjs +59 -13
- package/lib/ele-pro-table/index.d.ts +1015 -89
- package/lib/ele-pro-table/props.cjs +4 -2
- package/lib/ele-pro-table/props.d.ts +24 -27
- 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 +29 -2
- package/lib/ele-segmented/index.d.ts +3 -1
- package/lib/ele-segmented/style/index.scss +7 -1
- 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 +10 -10
- package/lib/ele-steps/props.d.ts +5 -5
- package/lib/ele-tab-tool/index.cjs +43 -2
- package/lib/ele-tab-tool/index.d.ts +6 -1
- package/lib/ele-tab-tool/props.cjs +3 -1
- package/lib/ele-tab-tool/props.d.ts +2 -0
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +8 -25
- package/lib/ele-tab-wrap/index.cjs +20 -1
- package/lib/ele-table/index.d.ts +2 -2
- package/lib/ele-table/props.d.ts +2 -1
- package/lib/ele-table/style/index.scss +1 -2
- package/lib/ele-table-select/index.cjs +20 -17
- package/lib/ele-table-select/index.d.ts +24 -22
- 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 +288 -116
- package/lib/ele-tabs/index.d.ts +39 -52
- package/lib/ele-tabs/props.cjs +4 -2
- package/lib/ele-tabs/props.d.ts +11 -30
- package/lib/ele-tabs/style/index.scss +186 -170
- package/lib/ele-tabs/types.d.ts +25 -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 +5 -3
- 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 +18 -18
- package/lib/ele-toolbar/props.d.ts +4 -3
- package/lib/ele-tooltip/index.d.ts +27 -26
- package/lib/ele-tooltip/props.d.ts +9 -8
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- 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 +19 -19
- package/lib/ele-tree-select/props.cjs +3 -1
- package/lib/ele-tree-select/props.d.ts +12 -8
- package/lib/ele-upload-list/components/list-item.cjs +144 -64
- package/lib/ele-upload-list/components/list-item.d.ts +31 -5
- package/lib/ele-upload-list/index.cjs +178 -95
- package/lib/ele-upload-list/index.d.ts +57 -30
- package/lib/ele-upload-list/props.cjs +20 -8
- package/lib/ele-upload-list/props.d.ts +24 -10
- package/lib/ele-upload-list/style/css-var.scss +8 -0
- package/lib/ele-upload-list/style/index.cjs +1 -1
- package/lib/ele-upload-list/style/index.scss +426 -132
- package/lib/ele-upload-list/types.d.ts +35 -11
- package/lib/ele-virtual-table/components/body-cell.d.ts +13 -29
- 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 +8 -8
- package/lib/ele-virtual-table/components/header-row.d.ts +8 -8
- package/lib/ele-virtual-table/index.cjs +7 -5
- package/lib/ele-virtual-table/index.d.ts +27 -36
- package/lib/ele-virtual-table/props.d.ts +13 -15
- 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/CornerLeftFilled.cjs +25 -0
- package/lib/icons/CornerLeftFilled.d.ts +2 -0
- package/lib/icons/CornerRightFilled.cjs +25 -0
- package/lib/icons/CornerRightFilled.d.ts +2 -0
- package/lib/icons/EyeOutlined.cjs +29 -0
- package/lib/icons/EyeOutlined.d.ts +2 -0
- package/lib/icons/FileOutlined.cjs +4 -4
- package/lib/icons/SizeCompactOutlined.cjs +33 -0
- package/lib/icons/SizeCompactOutlined.d.ts +2 -0
- package/lib/icons/SizeMiddleOutlined.cjs +33 -0
- package/lib/icons/SizeMiddleOutlined.d.ts +2 -0
- package/lib/icons/SizeSlackOutlined.cjs +33 -0
- package/lib/icons/SizeSlackOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +12 -0
- package/lib/icons/index.d.ts +6 -0
- package/lib/lang/en_US.cjs +5 -1
- package/lib/lang/zh_CN.cjs +5 -1
- package/lib/lang/zh_TW.cjs +5 -1
- package/lib/style/plus.scss +1 -0
- package/lib/style/themes/default.scss +92 -9
- package/lib/style/themes/rounded.scss +9 -5
- package/lib/style/themes/theme-util.scss +4 -0
- package/lib/style/util.scss +10 -3
- package/lib/utils/core.d.ts +4 -2
- package/lib/utils/hook.cjs +158 -5
- package/lib/utils/hook.d.ts +77 -4
- package/lib/utils/menu-util.cjs +9 -3
- package/lib/utils/message-box.cjs +4 -0
- package/lib/utils/message.cjs +1 -1
- package/package.json +38 -37
- package/typings/global.d.ts +1 -0
- package/es/ele-app/style/overwrite/image-viewer/css-var.scss +0 -8
- package/es/ele-app/style/overwrite/image-viewer/index.js +0 -1
- package/es/ele-app/style/overwrite/image-viewer/index.scss +0 -10
- package/es/ele-tabs/components/tab-title.d.ts +0 -52
- package/es/ele-tabs/components/tab-title.js +0 -115
- package/lib/ele-app/style/overwrite/image-viewer/css-var.scss +0 -8
- package/lib/ele-app/style/overwrite/image-viewer/index.cjs +0 -2
- package/lib/ele-app/style/overwrite/image-viewer/index.scss +0 -10
- package/lib/ele-tabs/components/tab-title.cjs +0 -114
- package/lib/ele-tabs/components/tab-title.d.ts +0 -52
- /package/es/{ele-app/style/overwrite/image-viewer → ele-image-viewer/style}/index.d.ts +0 -0
- /package/lib/{ele-app/style/overwrite/image-viewer → ele-image-viewer/style}/index.d.ts +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, watch, nextTick, resolveComponent, openBlock,
|
|
2
|
-
import { ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElButton
|
|
3
|
-
import { PrinterOutlined } from "../../icons";
|
|
1
|
+
import { defineComponent, ref, reactive, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, mergeProps, withCtx, createTextVNode, toDisplayString, withModifiers, createBlock, createCommentVNode, createElementVNode, renderSlot, renderList, createSlots, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
+
import { ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElButton } from "element-plus";
|
|
4
3
|
import { findTree, eachTree } from "../../utils/core";
|
|
5
|
-
import EleTool from "../../ele-tool/index";
|
|
6
4
|
import EleModal from "../../ele-modal/index";
|
|
7
5
|
import ElePrinter from "../../ele-printer/index";
|
|
8
6
|
import EleTable from "../../ele-table/index";
|
|
9
7
|
import { CellRender } from "../../ele-virtual-table/util";
|
|
10
|
-
import {
|
|
8
|
+
import { getCheckedColumns, columnsPrintFilter, getExportData, getCacheColsWidth, getColItems } from "../util";
|
|
11
9
|
import ToolColumnList from "./tool-column-list";
|
|
12
10
|
import ToolPrintBodyCell from "./tool-print-body-cell";
|
|
13
11
|
import ToolPrintHeaderCell from "./tool-print-header-cell";
|
|
@@ -21,9 +19,6 @@ const _sfc_main = defineComponent({
|
|
|
21
19
|
ElOption,
|
|
22
20
|
ElCheckbox,
|
|
23
21
|
ElButton,
|
|
24
|
-
ElIcon,
|
|
25
|
-
PrinterOutlined,
|
|
26
|
-
EleTool,
|
|
27
22
|
EleModal,
|
|
28
23
|
ElePrinter,
|
|
29
24
|
EleTable,
|
|
@@ -33,13 +28,13 @@ const _sfc_main = defineComponent({
|
|
|
33
28
|
ToolPrintHeaderCell
|
|
34
29
|
},
|
|
35
30
|
props: {
|
|
36
|
-
/** 提示位置 */
|
|
37
|
-
placement: String,
|
|
38
31
|
/** 表格国际化 */
|
|
39
32
|
locale: {
|
|
40
33
|
type: Object,
|
|
41
34
|
required: true
|
|
42
35
|
},
|
|
36
|
+
/** 缓存本地的名称 */
|
|
37
|
+
cacheKey: String,
|
|
43
38
|
/** 弹窗参数 */
|
|
44
39
|
modalProps: Object,
|
|
45
40
|
/** 打印组件参数 */
|
|
@@ -83,6 +78,13 @@ const _sfc_main = defineComponent({
|
|
|
83
78
|
type: String,
|
|
84
79
|
default: "pageData"
|
|
85
80
|
},
|
|
81
|
+
/** 默认是否勾选表尾 */
|
|
82
|
+
defaultShowFooter: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: true
|
|
85
|
+
},
|
|
86
|
+
/** 默认是否勾选层级序号 */
|
|
87
|
+
defaultShowTreeIndex: Boolean,
|
|
86
88
|
/** 打印前的钩子函数 */
|
|
87
89
|
beforePrint: Function
|
|
88
90
|
},
|
|
@@ -107,59 +109,81 @@ const _sfc_main = defineComponent({
|
|
|
107
109
|
bodyCols: [],
|
|
108
110
|
data: []
|
|
109
111
|
});
|
|
110
|
-
const openModal = () => {
|
|
111
|
-
visible.value = true;
|
|
112
|
-
};
|
|
113
|
-
const closeModal = () => {
|
|
114
|
-
visible.value = false;
|
|
115
|
-
};
|
|
116
112
|
const showLoading = () => {
|
|
117
113
|
loading.value = true;
|
|
118
114
|
};
|
|
119
115
|
const hideLoading = () => {
|
|
120
116
|
loading.value = false;
|
|
121
117
|
};
|
|
118
|
+
const openModal = () => {
|
|
119
|
+
visible.value = true;
|
|
120
|
+
};
|
|
121
|
+
const closeModal = () => {
|
|
122
|
+
hideLoading();
|
|
123
|
+
visible.value = false;
|
|
124
|
+
};
|
|
122
125
|
const handlePrintDone = () => {
|
|
123
126
|
hideLoading();
|
|
124
127
|
};
|
|
125
|
-
const printData = (
|
|
128
|
+
const printData = (params) => {
|
|
126
129
|
var _a;
|
|
127
130
|
showLoading();
|
|
128
|
-
const
|
|
131
|
+
const printDataValue = (params == null ? void 0 : params.data) || [];
|
|
132
|
+
const isShowHeader = (params == null ? void 0 : params.showHeader) ?? showHeader.value;
|
|
133
|
+
const isShowFooter = (params == null ? void 0 : params.showFooter) ?? showFooter.value;
|
|
134
|
+
const isShowTreeIndex = (params == null ? void 0 : params.showTreeIndex) ?? showTreeIndex.value;
|
|
135
|
+
const printDataType = (params == null ? void 0 : params.dataType) ?? dataType.value;
|
|
136
|
+
const printColumns = (params == null ? void 0 : params.columns) || getCheckedColumns(
|
|
129
137
|
props.columns,
|
|
130
138
|
colItems.value,
|
|
131
139
|
true,
|
|
132
|
-
|
|
133
|
-
columnsPrintFilter
|
|
140
|
+
void 0,
|
|
141
|
+
columnsPrintFilter,
|
|
142
|
+
false,
|
|
143
|
+
colItems.value
|
|
144
|
+
);
|
|
145
|
+
const tableColumns = (params == null ? void 0 : params.columns) || getCheckedColumns(
|
|
146
|
+
props.columns,
|
|
147
|
+
colItems.value,
|
|
148
|
+
true,
|
|
149
|
+
void 0,
|
|
150
|
+
columnsPrintFilter,
|
|
151
|
+
true,
|
|
152
|
+
colItems.value
|
|
134
153
|
);
|
|
135
154
|
const { headerData, bodyData, footerData, bodyCols } = getExportData(
|
|
136
|
-
|
|
137
|
-
|
|
155
|
+
printDataValue,
|
|
156
|
+
printColumns,
|
|
138
157
|
props.spanMethod,
|
|
139
158
|
props.pageIndex,
|
|
140
|
-
|
|
159
|
+
isShowFooter,
|
|
141
160
|
props.sumText,
|
|
142
161
|
props.summaryMethod,
|
|
143
162
|
(_a = props.treeProps) == null ? void 0 : _a.children,
|
|
144
|
-
|
|
145
|
-
|
|
163
|
+
isShowTreeIndex,
|
|
164
|
+
isShowHeader
|
|
146
165
|
);
|
|
147
166
|
if (typeof props.beforePrint === "function") {
|
|
148
167
|
const flag = props.beforePrint({
|
|
149
|
-
data,
|
|
150
|
-
columns,
|
|
168
|
+
data: printDataValue,
|
|
169
|
+
columns: printColumns,
|
|
151
170
|
headerData,
|
|
152
171
|
bodyData,
|
|
153
172
|
footerData,
|
|
154
173
|
bodyCols,
|
|
174
|
+
dataType: printDataType,
|
|
155
175
|
hideLoading,
|
|
156
|
-
closeModal
|
|
176
|
+
closeModal,
|
|
177
|
+
showHeader: isShowHeader,
|
|
178
|
+
showFooter: isShowFooter,
|
|
179
|
+
showTreeIndex: isShowTreeIndex,
|
|
180
|
+
tableColumns
|
|
157
181
|
});
|
|
158
182
|
if (flag === false) {
|
|
159
183
|
return;
|
|
160
184
|
}
|
|
161
185
|
}
|
|
162
|
-
printOptions.data =
|
|
186
|
+
printOptions.data = printDataValue;
|
|
163
187
|
printOptions.headerData = headerData;
|
|
164
188
|
printOptions.bodyData = bodyData;
|
|
165
189
|
printOptions.footerData = footerData;
|
|
@@ -172,11 +196,11 @@ const _sfc_main = defineComponent({
|
|
|
172
196
|
};
|
|
173
197
|
const handlePrint = () => {
|
|
174
198
|
if (dataType.value === "selections") {
|
|
175
|
-
printData([...props.selections || []]);
|
|
199
|
+
printData({ data: [...props.selections || []] });
|
|
176
200
|
return;
|
|
177
201
|
}
|
|
178
202
|
if (dataType.value !== "data") {
|
|
179
|
-
printData([...props.pageData || []]);
|
|
203
|
+
printData({ data: [...props.pageData || []] });
|
|
180
204
|
return;
|
|
181
205
|
}
|
|
182
206
|
if (props.datasource == null || typeof props.datasource !== "function" || typeof props.fetch !== "function") {
|
|
@@ -187,9 +211,10 @@ const _sfc_main = defineComponent({
|
|
|
187
211
|
props.datasource(params).then((result) => {
|
|
188
212
|
if (result == null) {
|
|
189
213
|
hideLoading();
|
|
214
|
+
closeModal();
|
|
190
215
|
return;
|
|
191
216
|
}
|
|
192
|
-
printData(result);
|
|
217
|
+
printData({ data: result });
|
|
193
218
|
}).catch((e) => {
|
|
194
219
|
console.error(e);
|
|
195
220
|
hideLoading();
|
|
@@ -197,13 +222,15 @@ const _sfc_main = defineComponent({
|
|
|
197
222
|
});
|
|
198
223
|
};
|
|
199
224
|
const initColItems = () => {
|
|
225
|
+
const colsWidth = getCacheColsWidth(props.cacheKey);
|
|
200
226
|
const { cols, checkAll, indeterminate } = getColItems(
|
|
201
227
|
props.columns,
|
|
202
228
|
props.locale,
|
|
203
229
|
columnsPrintFilter,
|
|
204
230
|
void 0,
|
|
205
231
|
true,
|
|
206
|
-
true
|
|
232
|
+
true,
|
|
233
|
+
colsWidth
|
|
207
234
|
);
|
|
208
235
|
colItems.value = cols;
|
|
209
236
|
isCheckAll.value = checkAll;
|
|
@@ -251,6 +278,14 @@ const _sfc_main = defineComponent({
|
|
|
251
278
|
});
|
|
252
279
|
}
|
|
253
280
|
};
|
|
281
|
+
const handleColWidthChange = (item, width) => {
|
|
282
|
+
eachTree(colItems.value, (d) => {
|
|
283
|
+
if (d.uid === item.uid) {
|
|
284
|
+
d.width = width;
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
};
|
|
254
289
|
const handleReset = () => {
|
|
255
290
|
initColItems();
|
|
256
291
|
};
|
|
@@ -263,18 +298,15 @@ const _sfc_main = defineComponent({
|
|
|
263
298
|
if (visible2) {
|
|
264
299
|
dataType.value = props.defaultDataType;
|
|
265
300
|
initColItems();
|
|
266
|
-
showHeader.value = props.tableHeader;
|
|
267
|
-
showFooter.value = props.showSummary;
|
|
301
|
+
showHeader.value = !!props.tableHeader;
|
|
302
|
+
showFooter.value = props.showSummary ? !!props.defaultShowFooter : false;
|
|
268
303
|
treeIndexDisabled.value = !(props.pageData && props.pageData.some(
|
|
269
304
|
(d) => {
|
|
270
305
|
var _a, _b, _c;
|
|
271
306
|
return ((_b = d[((_a = props.treeProps) == null ? void 0 : _a.children) || "children"]) == null ? void 0 : _b.length) || d[((_c = props.treeProps) == null ? void 0 : _c.hasChildren) || "hasChildren"];
|
|
272
307
|
}
|
|
273
308
|
)) && findTree(colItems.value, (c) => c.type === "expand") == null;
|
|
274
|
-
|
|
275
|
-
showTreeIndex.value = false;
|
|
276
|
-
}
|
|
277
|
-
handleTreeIndexChange(showTreeIndex.value);
|
|
309
|
+
showTreeIndex.value = treeIndexDisabled.value ? false : !!props.defaultShowTreeIndex;
|
|
278
310
|
return;
|
|
279
311
|
}
|
|
280
312
|
printOptions.data = [];
|
|
@@ -285,7 +317,7 @@ const _sfc_main = defineComponent({
|
|
|
285
317
|
printOptions.hasHeader = false;
|
|
286
318
|
printOptions.hasFooter = false;
|
|
287
319
|
printOptions.printing = false;
|
|
288
|
-
|
|
320
|
+
hideLoading();
|
|
289
321
|
});
|
|
290
322
|
return {
|
|
291
323
|
ownSlots,
|
|
@@ -306,9 +338,11 @@ const _sfc_main = defineComponent({
|
|
|
306
338
|
handlePrint,
|
|
307
339
|
handleCheckedChange,
|
|
308
340
|
handleSortChange,
|
|
341
|
+
handleColWidthChange,
|
|
309
342
|
handleCheckAllChange,
|
|
310
343
|
handleReset,
|
|
311
|
-
handleTreeIndexChange
|
|
344
|
+
handleTreeIndexChange,
|
|
345
|
+
printData
|
|
312
346
|
};
|
|
313
347
|
}
|
|
314
348
|
});
|
|
@@ -331,8 +365,6 @@ const _hoisted_9 = ["colspan", "rowspan"];
|
|
|
331
365
|
const _hoisted_10 = { key: 1 };
|
|
332
366
|
const _hoisted_11 = ["colspan", "rowspan"];
|
|
333
367
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
334
|
-
const _component_PrinterOutlined = resolveComponent("PrinterOutlined");
|
|
335
|
-
const _component_ElIcon = resolveComponent("ElIcon");
|
|
336
368
|
const _component_ElOption = resolveComponent("ElOption");
|
|
337
369
|
const _component_ElSelect = resolveComponent("ElSelect");
|
|
338
370
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
@@ -346,307 +378,296 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
346
378
|
const _component_CellRender = resolveComponent("CellRender");
|
|
347
379
|
const _component_EleTable = resolveComponent("EleTable");
|
|
348
380
|
const _component_ElePrinter = resolveComponent("ElePrinter");
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
label: _ctx.locale.exportSelectColumn
|
|
430
|
-
}, {
|
|
431
|
-
default: withCtx(() => [
|
|
432
|
-
createElementVNode("div", _hoisted_1, [
|
|
433
|
-
createElementVNode("div", _hoisted_2, [
|
|
434
|
-
createElementVNode("div", _hoisted_3, [
|
|
435
|
-
createVNode(_component_ElCheckbox, {
|
|
436
|
-
label: _ctx.locale.columnTitle,
|
|
437
|
-
modelValue: _ctx.isCheckAll,
|
|
438
|
-
indeterminate: _ctx.isIndeterminate,
|
|
439
|
-
"onUpdate:modelValue": _ctx.handleCheckAllChange
|
|
440
|
-
}, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
441
|
-
]),
|
|
442
|
-
createElementVNode("div", {
|
|
443
|
-
class: "ele-tool-column-link",
|
|
444
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleReset && _ctx.handleReset(...args))
|
|
445
|
-
}, toDisplayString(_ctx.locale.columnReset), 1)
|
|
381
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
382
|
+
createVNode(_component_EleModal, mergeProps({
|
|
383
|
+
form: true,
|
|
384
|
+
width: "460px",
|
|
385
|
+
title: _ctx.locale.print,
|
|
386
|
+
position: "center"
|
|
387
|
+
}, _ctx.modalProps || {}, {
|
|
388
|
+
modelValue: _ctx.visible,
|
|
389
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.visible = $event)
|
|
390
|
+
}), {
|
|
391
|
+
footer: withCtx(() => [
|
|
392
|
+
createVNode(_component_ElButton, { onClick: _ctx.closeModal }, {
|
|
393
|
+
default: withCtx(() => [
|
|
394
|
+
createTextVNode(toDisplayString(_ctx.locale.exportCancel), 1)
|
|
395
|
+
]),
|
|
396
|
+
_: 1
|
|
397
|
+
}, 8, ["onClick"]),
|
|
398
|
+
createVNode(_component_ElButton, {
|
|
399
|
+
loading: _ctx.loading,
|
|
400
|
+
type: "primary",
|
|
401
|
+
onClick: _ctx.handlePrint
|
|
402
|
+
}, {
|
|
403
|
+
default: withCtx(() => [
|
|
404
|
+
createTextVNode(toDisplayString(_ctx.locale.exportOk), 1)
|
|
405
|
+
]),
|
|
406
|
+
_: 1
|
|
407
|
+
}, 8, ["loading", "onClick"])
|
|
408
|
+
]),
|
|
409
|
+
default: withCtx(() => [
|
|
410
|
+
createVNode(_component_ElForm, {
|
|
411
|
+
labelWidth: "80px",
|
|
412
|
+
onSubmit: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
413
|
+
}, ["prevent"])),
|
|
414
|
+
class: "ele-tool-print-form"
|
|
415
|
+
}, {
|
|
416
|
+
default: withCtx(() => [
|
|
417
|
+
createVNode(_component_ElFormItem, {
|
|
418
|
+
label: _ctx.locale.exportSelectData
|
|
419
|
+
}, {
|
|
420
|
+
default: withCtx(() => [
|
|
421
|
+
createVNode(_component_ElSelect, {
|
|
422
|
+
modelValue: _ctx.dataType,
|
|
423
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.dataType = $event),
|
|
424
|
+
placeholder: _ctx.locale.exportSelectData
|
|
425
|
+
}, {
|
|
426
|
+
default: withCtx(() => [
|
|
427
|
+
_ctx.pageData != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
428
|
+
key: 0,
|
|
429
|
+
value: "pageData",
|
|
430
|
+
label: _ctx.locale.exportDataTypePage
|
|
431
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
432
|
+
_ctx.selections != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
433
|
+
key: 1,
|
|
434
|
+
value: "selections",
|
|
435
|
+
label: _ctx.locale.exportDataTypeSelected
|
|
436
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
437
|
+
_ctx.datasource != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
438
|
+
key: 2,
|
|
439
|
+
value: "data",
|
|
440
|
+
label: _ctx.locale.exportDataTypeAll
|
|
441
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["modelValue", "placeholder"])
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["label"]),
|
|
448
|
+
createVNode(_component_ElFormItem, {
|
|
449
|
+
label: _ctx.locale.exportSelectColumn
|
|
450
|
+
}, {
|
|
451
|
+
default: withCtx(() => [
|
|
452
|
+
createElementVNode("div", _hoisted_1, [
|
|
453
|
+
createElementVNode("div", _hoisted_2, [
|
|
454
|
+
createElementVNode("div", _hoisted_3, [
|
|
455
|
+
createVNode(_component_ElCheckbox, {
|
|
456
|
+
label: _ctx.locale.columnTitle,
|
|
457
|
+
modelValue: _ctx.isCheckAll,
|
|
458
|
+
indeterminate: _ctx.isIndeterminate,
|
|
459
|
+
"onUpdate:modelValue": _ctx.handleCheckAllChange
|
|
460
|
+
}, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
446
461
|
]),
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
createVNode(_component_ElCheckbox, {
|
|
463
|
-
label: _ctx.locale.exportOtherHeader,
|
|
464
|
-
modelValue: _ctx.showHeader,
|
|
465
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.showHeader = $event)
|
|
466
|
-
}, null, 8, ["label", "modelValue"]),
|
|
467
|
-
createVNode(_component_ElCheckbox, {
|
|
468
|
-
label: _ctx.locale.exportOtherFooter,
|
|
469
|
-
modelValue: _ctx.showFooter,
|
|
470
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showFooter = $event),
|
|
471
|
-
disabled: !_ctx.showSummary
|
|
472
|
-
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
473
|
-
createVNode(_component_ElCheckbox, {
|
|
474
|
-
label: _ctx.locale.exportOtherTreeIndex,
|
|
475
|
-
modelValue: _ctx.showTreeIndex,
|
|
476
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showTreeIndex = $event),
|
|
477
|
-
disabled: _ctx.treeIndexDisabled,
|
|
478
|
-
onChange: _ctx.handleTreeIndexChange
|
|
479
|
-
}, null, 8, ["label", "modelValue", "disabled", "onChange"])
|
|
480
|
-
])
|
|
481
|
-
]),
|
|
482
|
-
_: 1
|
|
483
|
-
}, 8, ["label"])
|
|
484
|
-
]),
|
|
485
|
-
_: 1
|
|
486
|
-
})
|
|
487
|
-
]),
|
|
488
|
-
_: 1
|
|
489
|
-
}, 16, ["title", "modelValue"]),
|
|
490
|
-
createVNode(_component_ElePrinter, mergeProps({ target: "_iframe" }, _ctx.printerProps || {}, {
|
|
491
|
-
modelValue: _ctx.printOptions.printing,
|
|
492
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.printOptions.printing = $event),
|
|
493
|
-
onDone: _ctx.handlePrintDone
|
|
494
|
-
}), {
|
|
495
|
-
default: withCtx(() => [
|
|
496
|
-
renderSlot(_ctx.$slots, "printTop", {
|
|
497
|
-
data: _ctx.printOptions.data
|
|
498
|
-
}),
|
|
499
|
-
createVNode(_component_EleTable, mergeProps({
|
|
500
|
-
border: true,
|
|
501
|
-
printSkin: true,
|
|
502
|
-
hasHeader: _ctx.printOptions.hasHeader,
|
|
503
|
-
hasFooter: _ctx.printOptions.hasFooter
|
|
504
|
-
}, _ctx.tableProps || {}), {
|
|
505
|
-
default: withCtx(() => [
|
|
506
|
-
createElementVNode("colgroup", null, [
|
|
507
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.bodyCols, (col) => {
|
|
508
|
-
return openBlock(), createElementBlock("col", {
|
|
509
|
-
key: col.key,
|
|
510
|
-
width: col.width
|
|
511
|
-
}, null, 8, _hoisted_5);
|
|
512
|
-
}), 128))
|
|
462
|
+
createElementVNode("div", {
|
|
463
|
+
class: "ele-tool-column-link",
|
|
464
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleReset && _ctx.handleReset(...args))
|
|
465
|
+
}, toDisplayString(_ctx.locale.columnReset), 1)
|
|
466
|
+
]),
|
|
467
|
+
createVNode(_component_ToolColumnList, {
|
|
468
|
+
data: _ctx.colItems,
|
|
469
|
+
sortable: true,
|
|
470
|
+
allowWidth: true,
|
|
471
|
+
columnWidthPlaceholder: _ctx.locale.columnWidth,
|
|
472
|
+
onSortChange: _ctx.handleSortChange,
|
|
473
|
+
onCheckedChange: _ctx.handleCheckedChange,
|
|
474
|
+
onColWidthChange: _ctx.handleColWidthChange
|
|
475
|
+
}, null, 8, ["data", "columnWidthPlaceholder", "onSortChange", "onCheckedChange", "onColWidthChange"])
|
|
476
|
+
])
|
|
513
477
|
]),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
fn: withCtx((slotProps) => [
|
|
541
|
-
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotProps || {}))
|
|
542
|
-
])
|
|
543
|
-
};
|
|
544
|
-
})
|
|
545
|
-
]), 1032, ["col", "columnIndex", "headerCellStyle", "headerCellClass"])) : createCommentVNode("", true)
|
|
546
|
-
], 64);
|
|
547
|
-
}), 128))
|
|
548
|
-
]);
|
|
549
|
-
}), 128))
|
|
550
|
-
])) : createCommentVNode("", true),
|
|
551
|
-
createElementVNode("tbody", null, [
|
|
552
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.bodyData, (item, index) => {
|
|
553
|
-
return openBlock(), createElementBlock("tr", { key: index }, [
|
|
554
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item, (col, columnIndex) => {
|
|
555
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
556
|
-
key: col.key
|
|
557
|
-
}, [
|
|
558
|
-
col.isExpandCell ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
559
|
-
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("td", {
|
|
560
|
-
key: 0,
|
|
561
|
-
rowspan: col.rowspan,
|
|
562
|
-
colspan: col.colspan,
|
|
563
|
-
style: { "padding-left": "0", "padding-right": "0" },
|
|
564
|
-
class: "ele-print-expand-td"
|
|
565
|
-
}, [
|
|
566
|
-
col.column && (col.column.printSlot || col.column.slot) && !_ctx.ownSlots.includes(
|
|
567
|
-
col.column.printSlot || col.column.slot
|
|
568
|
-
) ? renderSlot(_ctx.$slots, col.column.printSlot || col.column.slot, mergeProps({
|
|
569
|
-
key: 0,
|
|
570
|
-
ref_for: true
|
|
571
|
-
}, {
|
|
572
|
-
row: col.row,
|
|
573
|
-
column: col.column,
|
|
574
|
-
$index: col.index
|
|
575
|
-
})) : createCommentVNode("", true)
|
|
576
|
-
], 8, _hoisted_8)) : createCommentVNode("", true)
|
|
577
|
-
], 64)) : col.isTreeIndex ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
578
|
-
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("td", {
|
|
579
|
-
key: 0,
|
|
580
|
-
colspan: col.colspan,
|
|
581
|
-
rowspan: col.rowspan,
|
|
582
|
-
style: normalizeStyle({
|
|
583
|
-
paddingLeft: 0,
|
|
584
|
-
paddingRight: 0,
|
|
585
|
-
textAlign: "center",
|
|
586
|
-
verticalAlign: "top",
|
|
587
|
-
borderLeftColor: col.hideLeftBorder ? "transparent" : void 0
|
|
588
|
-
}),
|
|
589
|
-
class: normalizeClass([
|
|
590
|
-
"ele-print-tree-index",
|
|
591
|
-
{ "is-placeholder": !col.text }
|
|
592
|
-
])
|
|
593
|
-
}, toDisplayString(col.text), 15, _hoisted_9)) : createCommentVNode("", true)
|
|
594
|
-
], 64)) : col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createBlock(_component_ToolPrintBodyCell, {
|
|
595
|
-
key: 2,
|
|
596
|
-
col,
|
|
597
|
-
columnIndex,
|
|
598
|
-
bodyCellStyle: _ctx.cellStyle,
|
|
599
|
-
bodyCellClass: _ctx.cellClassName
|
|
600
|
-
}, createSlots({ _: 2 }, [
|
|
601
|
-
renderList(Object.keys(_ctx.$slots).filter(
|
|
602
|
-
(k) => !_ctx.ownSlots.includes(k)
|
|
603
|
-
), (name) => {
|
|
604
|
-
return {
|
|
605
|
-
name,
|
|
606
|
-
fn: withCtx((slotProps) => [
|
|
607
|
-
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotProps || {}))
|
|
608
|
-
])
|
|
609
|
-
};
|
|
610
|
-
})
|
|
611
|
-
]), 1032, ["col", "columnIndex", "bodyCellStyle", "bodyCellClass"])) : createCommentVNode("", true)
|
|
612
|
-
], 64);
|
|
613
|
-
}), 128))
|
|
614
|
-
]);
|
|
615
|
-
}), 128))
|
|
478
|
+
_: 1
|
|
479
|
+
}, 8, ["label"]),
|
|
480
|
+
createVNode(_component_ElFormItem, {
|
|
481
|
+
label: _ctx.locale.exportOther
|
|
482
|
+
}, {
|
|
483
|
+
default: withCtx(() => [
|
|
484
|
+
createElementVNode("div", _hoisted_4, [
|
|
485
|
+
createVNode(_component_ElCheckbox, {
|
|
486
|
+
label: _ctx.locale.exportOtherHeader,
|
|
487
|
+
modelValue: _ctx.showHeader,
|
|
488
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.showHeader = $event)
|
|
489
|
+
}, null, 8, ["label", "modelValue"]),
|
|
490
|
+
createVNode(_component_ElCheckbox, {
|
|
491
|
+
label: _ctx.locale.exportOtherFooter,
|
|
492
|
+
modelValue: _ctx.showFooter,
|
|
493
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showFooter = $event),
|
|
494
|
+
disabled: !_ctx.showSummary
|
|
495
|
+
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
496
|
+
createVNode(_component_ElCheckbox, {
|
|
497
|
+
label: _ctx.locale.exportOtherTreeIndex,
|
|
498
|
+
modelValue: _ctx.showTreeIndex,
|
|
499
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showTreeIndex = $event),
|
|
500
|
+
disabled: _ctx.treeIndexDisabled,
|
|
501
|
+
onChange: _ctx.handleTreeIndexChange
|
|
502
|
+
}, null, 8, ["label", "modelValue", "disabled", "onChange"])
|
|
503
|
+
])
|
|
616
504
|
]),
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
505
|
+
_: 1
|
|
506
|
+
}, 8, ["label"])
|
|
507
|
+
]),
|
|
508
|
+
_: 1
|
|
509
|
+
})
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 16, ["title", "modelValue"]),
|
|
513
|
+
createVNode(_component_ElePrinter, mergeProps({ target: "_iframe" }, _ctx.printerProps || {}, {
|
|
514
|
+
modelValue: _ctx.printOptions.printing,
|
|
515
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.printOptions.printing = $event),
|
|
516
|
+
onDone: _ctx.handlePrintDone
|
|
517
|
+
}), {
|
|
518
|
+
default: withCtx(() => [
|
|
519
|
+
renderSlot(_ctx.$slots, "printTop", {
|
|
520
|
+
data: _ctx.printOptions.data
|
|
521
|
+
}),
|
|
522
|
+
createVNode(_component_EleTable, mergeProps({
|
|
523
|
+
border: true,
|
|
524
|
+
printSkin: true,
|
|
525
|
+
hasHeader: _ctx.printOptions.hasHeader,
|
|
526
|
+
hasFooter: _ctx.printOptions.hasFooter
|
|
527
|
+
}, _ctx.tableProps || {}), {
|
|
528
|
+
default: withCtx(() => [
|
|
529
|
+
createElementVNode("colgroup", null, [
|
|
530
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.bodyCols, (col) => {
|
|
531
|
+
return openBlock(), createElementBlock("col", {
|
|
532
|
+
key: col.key,
|
|
533
|
+
width: col.width
|
|
534
|
+
}, null, 8, _hoisted_5);
|
|
535
|
+
}), 128))
|
|
536
|
+
]),
|
|
537
|
+
_ctx.printOptions.hasHeader ? (openBlock(), createElementBlock("thead", _hoisted_6, [
|
|
538
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.headerData, (item, index) => {
|
|
539
|
+
return openBlock(), createElementBlock("tr", { key: index }, [
|
|
540
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item, (col, columnIndex) => {
|
|
541
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
542
|
+
key: col.key
|
|
543
|
+
}, [
|
|
544
|
+
col.isTreeIndex ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
545
|
+
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("th", {
|
|
546
|
+
key: 0,
|
|
547
|
+
colspan: col.colspan,
|
|
548
|
+
rowspan: col.rowspan,
|
|
549
|
+
class: "ele-print-tree-index"
|
|
550
|
+
}, null, 8, _hoisted_7)) : createCommentVNode("", true)
|
|
551
|
+
], 64)) : col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createBlock(_component_ToolPrintHeaderCell, {
|
|
552
|
+
key: 1,
|
|
553
|
+
col,
|
|
554
|
+
columnIndex,
|
|
555
|
+
headerCellStyle: _ctx.headerCellStyle,
|
|
556
|
+
headerCellClass: _ctx.headerCellClassName
|
|
557
|
+
}, createSlots({ _: 2 }, [
|
|
558
|
+
renderList(Object.keys(_ctx.$slots).filter(
|
|
559
|
+
(k) => !_ctx.ownSlots.includes(k)
|
|
560
|
+
), (name) => {
|
|
561
|
+
return {
|
|
562
|
+
name,
|
|
563
|
+
fn: withCtx((slotProps) => [
|
|
564
|
+
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotProps || {}))
|
|
565
|
+
])
|
|
566
|
+
};
|
|
567
|
+
})
|
|
568
|
+
]), 1032, ["col", "columnIndex", "headerCellStyle", "headerCellClass"])) : createCommentVNode("", true)
|
|
569
|
+
], 64);
|
|
570
|
+
}), 128))
|
|
571
|
+
]);
|
|
572
|
+
}), 128))
|
|
573
|
+
])) : createCommentVNode("", true),
|
|
574
|
+
createElementVNode("tbody", null, [
|
|
575
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.bodyData, (item, index) => {
|
|
576
|
+
return openBlock(), createElementBlock("tr", { key: index }, [
|
|
577
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item, (col, columnIndex) => {
|
|
578
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
579
|
+
key: col.key
|
|
580
|
+
}, [
|
|
581
|
+
col.isExpandCell ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
622
582
|
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("td", {
|
|
623
|
-
key:
|
|
583
|
+
key: 0,
|
|
584
|
+
rowspan: col.rowspan,
|
|
624
585
|
colspan: col.colspan,
|
|
625
|
-
|
|
586
|
+
style: { "padding-left": "0", "padding-right": "0" },
|
|
587
|
+
class: "ele-print-expand-td"
|
|
626
588
|
}, [
|
|
627
|
-
|
|
589
|
+
col.column && (col.column.printSlot || col.column.slot) && !_ctx.ownSlots.includes(
|
|
590
|
+
col.column.printSlot || col.column.slot
|
|
591
|
+
) ? renderSlot(_ctx.$slots, col.column.printSlot || col.column.slot, mergeProps({
|
|
628
592
|
key: 0,
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
593
|
+
ref_for: true
|
|
594
|
+
}, {
|
|
595
|
+
row: col.row,
|
|
596
|
+
column: col.column,
|
|
597
|
+
$index: col.index
|
|
598
|
+
})) : createCommentVNode("", true)
|
|
599
|
+
], 8, _hoisted_8)) : createCommentVNode("", true)
|
|
600
|
+
], 64)) : col.isTreeIndex ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
601
|
+
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("td", {
|
|
602
|
+
key: 0,
|
|
603
|
+
colspan: col.colspan,
|
|
604
|
+
rowspan: col.rowspan,
|
|
605
|
+
style: normalizeStyle({
|
|
606
|
+
paddingLeft: 0,
|
|
607
|
+
paddingRight: 0,
|
|
608
|
+
textAlign: "center",
|
|
609
|
+
verticalAlign: "top",
|
|
610
|
+
borderLeftColor: col.hideLeftBorder ? "transparent" : void 0
|
|
611
|
+
}),
|
|
612
|
+
class: normalizeClass([
|
|
613
|
+
"ele-print-tree-index",
|
|
614
|
+
{ "is-placeholder": !col.text }
|
|
615
|
+
])
|
|
616
|
+
}, toDisplayString(col.text), 15, _hoisted_9)) : createCommentVNode("", true)
|
|
617
|
+
], 64)) : col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createBlock(_component_ToolPrintBodyCell, {
|
|
618
|
+
key: 2,
|
|
619
|
+
col,
|
|
620
|
+
columnIndex,
|
|
621
|
+
bodyCellStyle: _ctx.cellStyle,
|
|
622
|
+
bodyCellClass: _ctx.cellClassName
|
|
623
|
+
}, createSlots({ _: 2 }, [
|
|
624
|
+
renderList(Object.keys(_ctx.$slots).filter(
|
|
625
|
+
(k) => !_ctx.ownSlots.includes(k)
|
|
626
|
+
), (name) => {
|
|
627
|
+
return {
|
|
628
|
+
name,
|
|
629
|
+
fn: withCtx((slotProps) => [
|
|
630
|
+
renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, slotProps || {}))
|
|
631
|
+
])
|
|
632
|
+
};
|
|
633
|
+
})
|
|
634
|
+
]), 1032, ["col", "columnIndex", "bodyCellStyle", "bodyCellClass"])) : createCommentVNode("", true)
|
|
635
|
+
], 64);
|
|
636
|
+
}), 128))
|
|
637
|
+
]);
|
|
638
|
+
}), 128))
|
|
638
639
|
]),
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
640
|
+
_ctx.printOptions.hasFooter ? (openBlock(), createElementBlock("tfoot", _hoisted_10, [
|
|
641
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.printOptions.footerData, (item, index) => {
|
|
642
|
+
return openBlock(), createElementBlock("tr", { key: index }, [
|
|
643
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item, (col) => {
|
|
644
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
645
|
+
col.rowspan !== 0 && col.colspan !== 0 ? (openBlock(), createElementBlock("td", {
|
|
646
|
+
key: col.key,
|
|
647
|
+
colspan: col.colspan,
|
|
648
|
+
rowspan: col.rowspan
|
|
649
|
+
}, [
|
|
650
|
+
!col.isExpandCell ? (openBlock(), createBlock(_component_CellRender, {
|
|
651
|
+
key: 0,
|
|
652
|
+
render: () => col.text,
|
|
653
|
+
params: []
|
|
654
|
+
}, null, 8, ["render"])) : createCommentVNode("", true)
|
|
655
|
+
], 8, _hoisted_11)) : createCommentVNode("", true)
|
|
656
|
+
], 64);
|
|
657
|
+
}), 256))
|
|
658
|
+
]);
|
|
659
|
+
}), 128))
|
|
660
|
+
])) : createCommentVNode("", true)
|
|
661
|
+
]),
|
|
662
|
+
_: 3
|
|
663
|
+
}, 16, ["hasHeader", "hasFooter"]),
|
|
664
|
+
renderSlot(_ctx.$slots, "printBottom", {
|
|
665
|
+
data: _ctx.printOptions.data
|
|
666
|
+
})
|
|
667
|
+
]),
|
|
668
|
+
_: 3
|
|
669
|
+
}, 16, ["modelValue", "onDone"])
|
|
670
|
+
], 64);
|
|
650
671
|
}
|
|
651
672
|
const toolPrint = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
652
673
|
export {
|