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,10 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode,
|
|
2
|
-
import { ElForm, ElFormItem, ElInput, ElSelect, ElOption, ElCheckbox, ElButton
|
|
3
|
-
import { DownloadOutlined } from "../../icons";
|
|
1
|
+
import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode, toDisplayString, withModifiers, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import { ElForm, ElFormItem, ElInput, 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
|
-
import {
|
|
5
|
+
import { getCheckedColumns, columnsExportFilter, getExportData, exportCSV, getCacheColsWidth, getColItems } from "../util";
|
|
8
6
|
import ToolColumnList from "./tool-column-list";
|
|
9
7
|
const _sfc_main = defineComponent({
|
|
10
8
|
name: "ToolExport",
|
|
@@ -16,20 +14,17 @@ const _sfc_main = defineComponent({
|
|
|
16
14
|
ElOption,
|
|
17
15
|
ElCheckbox,
|
|
18
16
|
ElButton,
|
|
19
|
-
ElIcon,
|
|
20
|
-
DownloadOutlined,
|
|
21
|
-
EleTool,
|
|
22
17
|
EleModal,
|
|
23
18
|
ToolColumnList
|
|
24
19
|
},
|
|
25
20
|
props: {
|
|
26
|
-
/** 提示位置 */
|
|
27
|
-
placement: String,
|
|
28
21
|
/** 表格国际化 */
|
|
29
22
|
locale: {
|
|
30
23
|
type: Object,
|
|
31
24
|
required: true
|
|
32
25
|
},
|
|
26
|
+
/** 缓存本地的名称 */
|
|
27
|
+
cacheKey: String,
|
|
33
28
|
/** 弹窗参数 */
|
|
34
29
|
modalProps: Object,
|
|
35
30
|
/** 列数据 */
|
|
@@ -66,6 +61,13 @@ const _sfc_main = defineComponent({
|
|
|
66
61
|
type: String,
|
|
67
62
|
default: "pageData"
|
|
68
63
|
},
|
|
64
|
+
/** 默认是否勾选表尾 */
|
|
65
|
+
defaultShowFooter: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true
|
|
68
|
+
},
|
|
69
|
+
/** 默认是否勾选层级序号 */
|
|
70
|
+
defaultShowTreeIndex: Boolean,
|
|
69
71
|
/** 导出前的钩子函数 */
|
|
70
72
|
beforeExport: Function
|
|
71
73
|
},
|
|
@@ -91,57 +93,80 @@ const _sfc_main = defineComponent({
|
|
|
91
93
|
const showFooter = ref(false);
|
|
92
94
|
const showTreeIndex = ref(false);
|
|
93
95
|
const treeIndexDisabled = ref(true);
|
|
94
|
-
const openModal = () => {
|
|
95
|
-
visible.value = true;
|
|
96
|
-
};
|
|
97
|
-
const closeModal = () => {
|
|
98
|
-
visible.value = false;
|
|
99
|
-
};
|
|
100
96
|
const showLoading = () => {
|
|
101
97
|
loading.value = true;
|
|
102
98
|
};
|
|
103
99
|
const hideLoading = () => {
|
|
104
100
|
loading.value = false;
|
|
105
101
|
};
|
|
106
|
-
const
|
|
102
|
+
const openModal = () => {
|
|
103
|
+
visible.value = true;
|
|
104
|
+
};
|
|
105
|
+
const closeModal = () => {
|
|
106
|
+
hideLoading();
|
|
107
|
+
visible.value = false;
|
|
108
|
+
};
|
|
109
|
+
const exportData = (params) => {
|
|
107
110
|
var _a;
|
|
108
111
|
showLoading();
|
|
109
|
-
const
|
|
112
|
+
const exportFileName = (params == null ? void 0 : params.fileName) ?? form.fileName;
|
|
113
|
+
const exportDataValue = (params == null ? void 0 : params.data) || [];
|
|
114
|
+
const isShowHeader = (params == null ? void 0 : params.showHeader) ?? showHeader.value;
|
|
115
|
+
const isShowFooter = (params == null ? void 0 : params.showFooter) ?? showFooter.value;
|
|
116
|
+
const isShowTreeIndex = (params == null ? void 0 : params.showTreeIndex) ?? showTreeIndex.value;
|
|
117
|
+
const exportDataType = (params == null ? void 0 : params.dataType) ?? dataType.value;
|
|
118
|
+
const exportColumns = (params == null ? void 0 : params.columns) || getCheckedColumns(
|
|
110
119
|
props.columns,
|
|
111
120
|
colItems.value,
|
|
112
121
|
true,
|
|
113
|
-
|
|
114
|
-
columnsExportFilter
|
|
122
|
+
void 0,
|
|
123
|
+
columnsExportFilter,
|
|
124
|
+
false,
|
|
125
|
+
colItems.value
|
|
126
|
+
);
|
|
127
|
+
const tableColumns = (params == null ? void 0 : params.columns) || getCheckedColumns(
|
|
128
|
+
props.columns,
|
|
129
|
+
colItems.value,
|
|
130
|
+
true,
|
|
131
|
+
void 0,
|
|
132
|
+
columnsExportFilter,
|
|
133
|
+
true,
|
|
134
|
+
colItems.value
|
|
115
135
|
);
|
|
116
136
|
const { headerData, bodyData, footerData, bodyCols } = getExportData(
|
|
117
|
-
|
|
118
|
-
|
|
137
|
+
exportDataValue,
|
|
138
|
+
exportColumns,
|
|
119
139
|
props.spanMethod,
|
|
120
140
|
props.pageIndex,
|
|
121
|
-
|
|
141
|
+
isShowFooter,
|
|
122
142
|
props.sumText,
|
|
123
143
|
props.summaryMethod,
|
|
124
144
|
(_a = props.treeProps) == null ? void 0 : _a.children,
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
isShowTreeIndex,
|
|
146
|
+
isShowHeader
|
|
127
147
|
);
|
|
128
148
|
if (typeof props.beforeExport === "function") {
|
|
129
149
|
const flag = props.beforeExport({
|
|
130
|
-
data,
|
|
131
|
-
columns,
|
|
150
|
+
data: exportDataValue,
|
|
151
|
+
columns: exportColumns,
|
|
132
152
|
headerData,
|
|
133
153
|
bodyData,
|
|
134
154
|
footerData,
|
|
135
155
|
bodyCols,
|
|
136
|
-
fileName:
|
|
156
|
+
fileName: exportFileName,
|
|
157
|
+
dataType: exportDataType,
|
|
137
158
|
hideLoading,
|
|
138
|
-
closeModal
|
|
159
|
+
closeModal,
|
|
160
|
+
showHeader: isShowHeader,
|
|
161
|
+
showFooter: isShowFooter,
|
|
162
|
+
showTreeIndex: isShowTreeIndex,
|
|
163
|
+
tableColumns
|
|
139
164
|
});
|
|
140
165
|
if (flag === false) {
|
|
141
166
|
return;
|
|
142
167
|
}
|
|
143
168
|
}
|
|
144
|
-
exportCSV(
|
|
169
|
+
exportCSV(exportFileName, headerData, bodyData, footerData);
|
|
145
170
|
hideLoading();
|
|
146
171
|
closeModal();
|
|
147
172
|
};
|
|
@@ -152,11 +177,11 @@ const _sfc_main = defineComponent({
|
|
|
152
177
|
return;
|
|
153
178
|
}
|
|
154
179
|
if (dataType.value === "selections") {
|
|
155
|
-
exportData([...props.selections || []]);
|
|
180
|
+
exportData({ data: [...props.selections || []] });
|
|
156
181
|
return;
|
|
157
182
|
}
|
|
158
183
|
if (dataType.value !== "data") {
|
|
159
|
-
exportData([...props.pageData || []]);
|
|
184
|
+
exportData({ data: [...props.pageData || []] });
|
|
160
185
|
return;
|
|
161
186
|
}
|
|
162
187
|
if (props.datasource == null || typeof props.datasource !== "function" || typeof props.fetch !== "function") {
|
|
@@ -167,9 +192,10 @@ const _sfc_main = defineComponent({
|
|
|
167
192
|
props.datasource(params).then((result) => {
|
|
168
193
|
if (result == null) {
|
|
169
194
|
hideLoading();
|
|
195
|
+
closeModal();
|
|
170
196
|
return;
|
|
171
197
|
}
|
|
172
|
-
exportData(result);
|
|
198
|
+
exportData({ data: result });
|
|
173
199
|
}).catch((e) => {
|
|
174
200
|
console.error(e);
|
|
175
201
|
hideLoading();
|
|
@@ -178,13 +204,15 @@ const _sfc_main = defineComponent({
|
|
|
178
204
|
});
|
|
179
205
|
};
|
|
180
206
|
const initColItems = () => {
|
|
207
|
+
const colsWidth = getCacheColsWidth(props.cacheKey);
|
|
181
208
|
const { cols, checkAll, indeterminate } = getColItems(
|
|
182
209
|
props.columns,
|
|
183
210
|
props.locale,
|
|
184
211
|
columnsExportFilter,
|
|
185
212
|
void 0,
|
|
186
213
|
true,
|
|
187
|
-
true
|
|
214
|
+
true,
|
|
215
|
+
colsWidth
|
|
188
216
|
);
|
|
189
217
|
colItems.value = cols;
|
|
190
218
|
isCheckAll.value = checkAll;
|
|
@@ -232,6 +260,14 @@ const _sfc_main = defineComponent({
|
|
|
232
260
|
});
|
|
233
261
|
}
|
|
234
262
|
};
|
|
263
|
+
const handleColWidthChange = (item, width) => {
|
|
264
|
+
eachTree(colItems.value, (d) => {
|
|
265
|
+
if (d.uid === item.uid) {
|
|
266
|
+
d.width = width;
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
};
|
|
235
271
|
const handleReset = () => {
|
|
236
272
|
initColItems();
|
|
237
273
|
};
|
|
@@ -246,21 +282,18 @@ const _sfc_main = defineComponent({
|
|
|
246
282
|
form.fileName = props.defaultFileName;
|
|
247
283
|
dataType.value = props.defaultDataType;
|
|
248
284
|
initColItems();
|
|
249
|
-
showHeader.value = props.tableHeader;
|
|
250
|
-
showFooter.value = props.showSummary;
|
|
285
|
+
showHeader.value = !!props.tableHeader;
|
|
286
|
+
showFooter.value = props.showSummary ? !!props.defaultShowFooter : false;
|
|
251
287
|
treeIndexDisabled.value = !(props.pageData && props.pageData.some(
|
|
252
288
|
(d) => {
|
|
253
289
|
var _a2, _b2, _c;
|
|
254
290
|
return ((_b2 = d[((_a2 = props.treeProps) == null ? void 0 : _a2.children) || "children"]) == null ? void 0 : _b2.length) || d[((_c = props.treeProps) == null ? void 0 : _c.hasChildren) || "hasChildren"];
|
|
255
291
|
}
|
|
256
292
|
)) && findTree(colItems.value, (c) => c.type === "expand") == null;
|
|
257
|
-
|
|
258
|
-
showTreeIndex.value = false;
|
|
259
|
-
}
|
|
260
|
-
handleTreeIndexChange(showTreeIndex.value);
|
|
293
|
+
showTreeIndex.value = treeIndexDisabled.value ? false : !!props.defaultShowTreeIndex;
|
|
261
294
|
return;
|
|
262
295
|
}
|
|
263
|
-
|
|
296
|
+
hideLoading();
|
|
264
297
|
(_b = (_a = formRef.value) == null ? void 0 : _a.clearValidate) == null ? void 0 : _b.call(_a);
|
|
265
298
|
});
|
|
266
299
|
watch(
|
|
@@ -288,9 +321,11 @@ const _sfc_main = defineComponent({
|
|
|
288
321
|
handleExport,
|
|
289
322
|
handleCheckedChange,
|
|
290
323
|
handleSortChange,
|
|
324
|
+
handleColWidthChange,
|
|
291
325
|
handleCheckAllChange,
|
|
292
326
|
handleReset,
|
|
293
|
-
handleTreeIndexChange
|
|
327
|
+
handleTreeIndexChange,
|
|
328
|
+
exportData
|
|
294
329
|
};
|
|
295
330
|
}
|
|
296
331
|
});
|
|
@@ -306,8 +341,6 @@ const _hoisted_2 = { class: "ele-tool-column-header" };
|
|
|
306
341
|
const _hoisted_3 = { class: "ele-tool-column-label" };
|
|
307
342
|
const _hoisted_4 = { class: "ele-tool-form-options" };
|
|
308
343
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
309
|
-
const _component_DownloadOutlined = resolveComponent("DownloadOutlined");
|
|
310
|
-
const _component_ElIcon = resolveComponent("ElIcon");
|
|
311
344
|
const _component_ElInput = resolveComponent("ElInput");
|
|
312
345
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
313
346
|
const _component_ElOption = resolveComponent("ElOption");
|
|
@@ -317,168 +350,155 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
317
350
|
const _component_ElForm = resolveComponent("ElForm");
|
|
318
351
|
const _component_ElButton = resolveComponent("ElButton");
|
|
319
352
|
const _component_EleModal = resolveComponent("EleModal");
|
|
320
|
-
|
|
321
|
-
|
|
353
|
+
return openBlock(), createBlock(_component_EleModal, mergeProps({
|
|
354
|
+
form: true,
|
|
355
|
+
width: "460px",
|
|
322
356
|
title: _ctx.locale.export,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
357
|
+
position: "center"
|
|
358
|
+
}, _ctx.modalProps || {}, {
|
|
359
|
+
modelValue: _ctx.visible,
|
|
360
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.visible = $event)
|
|
361
|
+
}), {
|
|
362
|
+
footer: withCtx(() => [
|
|
363
|
+
createVNode(_component_ElButton, { onClick: _ctx.closeModal }, {
|
|
328
364
|
default: withCtx(() => [
|
|
329
|
-
|
|
365
|
+
createTextVNode(toDisplayString(_ctx.locale.exportCancel), 1)
|
|
330
366
|
]),
|
|
331
367
|
_: 1
|
|
332
|
-
}),
|
|
333
|
-
createVNode(
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
368
|
+
}, 8, ["onClick"]),
|
|
369
|
+
createVNode(_component_ElButton, {
|
|
370
|
+
loading: _ctx.loading,
|
|
371
|
+
type: "primary",
|
|
372
|
+
onClick: _ctx.handleExport
|
|
373
|
+
}, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createTextVNode(toDisplayString(_ctx.locale.exportOk), 1)
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
}, 8, ["loading", "onClick"])
|
|
379
|
+
]),
|
|
380
|
+
default: withCtx(() => [
|
|
381
|
+
createVNode(_component_ElForm, {
|
|
382
|
+
ref: "formRef",
|
|
383
|
+
model: _ctx.form,
|
|
384
|
+
labelWidth: "80px",
|
|
385
|
+
onSubmit: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
386
|
+
}, ["prevent"])),
|
|
387
|
+
class: "ele-tool-export-form"
|
|
388
|
+
}, {
|
|
389
|
+
default: withCtx(() => [
|
|
390
|
+
createVNode(_component_ElFormItem, {
|
|
391
|
+
label: _ctx.locale.exportFileName,
|
|
392
|
+
prop: "fileName",
|
|
393
|
+
rules: _ctx.fileNameRules
|
|
353
394
|
}, {
|
|
354
395
|
default: withCtx(() => [
|
|
355
|
-
|
|
396
|
+
createVNode(_component_ElInput, {
|
|
397
|
+
maxlength: 200,
|
|
398
|
+
clearable: true,
|
|
399
|
+
modelValue: _ctx.form.fileName,
|
|
400
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.form.fileName = $event),
|
|
401
|
+
placeholder: _ctx.locale.exportFileNamePlaceholder
|
|
402
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
356
403
|
]),
|
|
357
404
|
_: 1
|
|
358
|
-
}, 8, ["
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
createVNode(_component_ElForm, {
|
|
362
|
-
ref: "formRef",
|
|
363
|
-
model: _ctx.form,
|
|
364
|
-
labelWidth: "80px",
|
|
365
|
-
onSubmit: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
366
|
-
}, ["prevent"])),
|
|
367
|
-
class: "ele-tool-export-form"
|
|
405
|
+
}, 8, ["label", "rules"]),
|
|
406
|
+
createVNode(_component_ElFormItem, {
|
|
407
|
+
label: _ctx.locale.exportSelectData
|
|
368
408
|
}, {
|
|
369
409
|
default: withCtx(() => [
|
|
370
|
-
createVNode(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}, {
|
|
375
|
-
default: withCtx(() => [
|
|
376
|
-
createVNode(_component_ElInput, {
|
|
377
|
-
maxlength: 20,
|
|
378
|
-
clearable: true,
|
|
379
|
-
modelValue: _ctx.form.fileName,
|
|
380
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.form.fileName = $event),
|
|
381
|
-
placeholder: _ctx.locale.exportFileNamePlaceholder
|
|
382
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
383
|
-
]),
|
|
384
|
-
_: 1
|
|
385
|
-
}, 8, ["label", "rules"]),
|
|
386
|
-
createVNode(_component_ElFormItem, {
|
|
387
|
-
label: _ctx.locale.exportSelectData
|
|
388
|
-
}, {
|
|
389
|
-
default: withCtx(() => [
|
|
390
|
-
createVNode(_component_ElSelect, {
|
|
391
|
-
modelValue: _ctx.dataType,
|
|
392
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.dataType = $event),
|
|
393
|
-
placeholder: _ctx.locale.exportSelectData
|
|
394
|
-
}, {
|
|
395
|
-
default: withCtx(() => [
|
|
396
|
-
_ctx.pageData != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
397
|
-
key: 0,
|
|
398
|
-
value: "pageData",
|
|
399
|
-
label: _ctx.locale.exportDataTypePage
|
|
400
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
401
|
-
_ctx.selections != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
402
|
-
key: 1,
|
|
403
|
-
value: "selections",
|
|
404
|
-
label: _ctx.locale.exportDataTypeSelected
|
|
405
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
406
|
-
_ctx.datasource != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
407
|
-
key: 2,
|
|
408
|
-
value: "data",
|
|
409
|
-
label: _ctx.locale.exportDataTypeAll
|
|
410
|
-
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
}, 8, ["modelValue", "placeholder"])
|
|
414
|
-
]),
|
|
415
|
-
_: 1
|
|
416
|
-
}, 8, ["label"]),
|
|
417
|
-
createVNode(_component_ElFormItem, {
|
|
418
|
-
label: _ctx.locale.exportSelectColumn
|
|
410
|
+
createVNode(_component_ElSelect, {
|
|
411
|
+
modelValue: _ctx.dataType,
|
|
412
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.dataType = $event),
|
|
413
|
+
placeholder: _ctx.locale.exportSelectData
|
|
419
414
|
}, {
|
|
420
415
|
default: withCtx(() => [
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
createVNode(_component_ToolColumnList, {
|
|
437
|
-
data: _ctx.colItems,
|
|
438
|
-
sortable: true,
|
|
439
|
-
onSortChange: _ctx.handleSortChange,
|
|
440
|
-
onCheckedChange: _ctx.handleCheckedChange
|
|
441
|
-
}, null, 8, ["data", "onSortChange", "onCheckedChange"])
|
|
442
|
-
])
|
|
416
|
+
_ctx.pageData != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
417
|
+
key: 0,
|
|
418
|
+
value: "pageData",
|
|
419
|
+
label: _ctx.locale.exportDataTypePage
|
|
420
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
421
|
+
_ctx.selections != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
422
|
+
key: 1,
|
|
423
|
+
value: "selections",
|
|
424
|
+
label: _ctx.locale.exportDataTypeSelected
|
|
425
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
426
|
+
_ctx.datasource != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
427
|
+
key: 2,
|
|
428
|
+
value: "data",
|
|
429
|
+
label: _ctx.locale.exportDataTypeAll
|
|
430
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
443
431
|
]),
|
|
444
432
|
_: 1
|
|
445
|
-
}, 8, ["
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
createVNode(_component_ElCheckbox, {
|
|
457
|
-
label: _ctx.locale.exportOtherFooter,
|
|
458
|
-
modelValue: _ctx.showFooter,
|
|
459
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showFooter = $event),
|
|
460
|
-
disabled: !_ctx.showSummary
|
|
461
|
-
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
433
|
+
}, 8, ["modelValue", "placeholder"])
|
|
434
|
+
]),
|
|
435
|
+
_: 1
|
|
436
|
+
}, 8, ["label"]),
|
|
437
|
+
createVNode(_component_ElFormItem, {
|
|
438
|
+
label: _ctx.locale.exportSelectColumn
|
|
439
|
+
}, {
|
|
440
|
+
default: withCtx(() => [
|
|
441
|
+
createElementVNode("div", _hoisted_1, [
|
|
442
|
+
createElementVNode("div", _hoisted_2, [
|
|
443
|
+
createElementVNode("div", _hoisted_3, [
|
|
462
444
|
createVNode(_component_ElCheckbox, {
|
|
463
|
-
label: _ctx.locale.
|
|
464
|
-
modelValue: _ctx.
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
445
|
+
label: _ctx.locale.columnTitle,
|
|
446
|
+
modelValue: _ctx.isCheckAll,
|
|
447
|
+
indeterminate: _ctx.isIndeterminate,
|
|
448
|
+
"onUpdate:modelValue": _ctx.handleCheckAllChange
|
|
449
|
+
}, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
450
|
+
]),
|
|
451
|
+
createElementVNode("div", {
|
|
452
|
+
class: "ele-tool-column-link",
|
|
453
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleReset && _ctx.handleReset(...args))
|
|
454
|
+
}, toDisplayString(_ctx.locale.columnReset), 1)
|
|
470
455
|
]),
|
|
471
|
-
|
|
472
|
-
|
|
456
|
+
createVNode(_component_ToolColumnList, {
|
|
457
|
+
data: _ctx.colItems,
|
|
458
|
+
sortable: true,
|
|
459
|
+
allowWidth: true,
|
|
460
|
+
columnWidthPlaceholder: _ctx.locale.columnWidth,
|
|
461
|
+
onSortChange: _ctx.handleSortChange,
|
|
462
|
+
onCheckedChange: _ctx.handleCheckedChange,
|
|
463
|
+
onColWidthChange: _ctx.handleColWidthChange
|
|
464
|
+
}, null, 8, ["data", "columnWidthPlaceholder", "onSortChange", "onCheckedChange", "onColWidthChange"])
|
|
465
|
+
])
|
|
466
|
+
]),
|
|
467
|
+
_: 1
|
|
468
|
+
}, 8, ["label"]),
|
|
469
|
+
createVNode(_component_ElFormItem, {
|
|
470
|
+
label: _ctx.locale.exportOther
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx(() => [
|
|
473
|
+
createElementVNode("div", _hoisted_4, [
|
|
474
|
+
createVNode(_component_ElCheckbox, {
|
|
475
|
+
label: _ctx.locale.exportOtherHeader,
|
|
476
|
+
modelValue: _ctx.showHeader,
|
|
477
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showHeader = $event)
|
|
478
|
+
}, null, 8, ["label", "modelValue"]),
|
|
479
|
+
createVNode(_component_ElCheckbox, {
|
|
480
|
+
label: _ctx.locale.exportOtherFooter,
|
|
481
|
+
modelValue: _ctx.showFooter,
|
|
482
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showFooter = $event),
|
|
483
|
+
disabled: !_ctx.showSummary
|
|
484
|
+
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
485
|
+
createVNode(_component_ElCheckbox, {
|
|
486
|
+
label: _ctx.locale.exportOtherTreeIndex,
|
|
487
|
+
modelValue: _ctx.showTreeIndex,
|
|
488
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.showTreeIndex = $event),
|
|
489
|
+
disabled: _ctx.treeIndexDisabled,
|
|
490
|
+
onChange: _ctx.handleTreeIndexChange
|
|
491
|
+
}, null, 8, ["label", "modelValue", "disabled", "onChange"])
|
|
492
|
+
])
|
|
473
493
|
]),
|
|
474
494
|
_: 1
|
|
475
|
-
}, 8, ["
|
|
495
|
+
}, 8, ["label"])
|
|
476
496
|
]),
|
|
477
497
|
_: 1
|
|
478
|
-
},
|
|
498
|
+
}, 8, ["model"])
|
|
479
499
|
]),
|
|
480
500
|
_: 1
|
|
481
|
-
},
|
|
501
|
+
}, 16, ["title", "modelValue"]);
|
|
482
502
|
}
|
|
483
503
|
const toolExport = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
484
504
|
export {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { StyleValues } from '../../ele-app/types';
|
|
3
|
+
import { CellStyle, CellClass } from '../../ele-data-table/types';
|
|
3
4
|
import { CustomRenderProps } from '../../ele-virtual-table/types';
|
|
4
5
|
import { ExportDataItem } from '../types';
|
|
5
6
|
|
|
@@ -12,9 +13,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
13
|
/** 列索引 */
|
|
13
14
|
columnIndex: NumberConstructor;
|
|
14
15
|
/** 单元格样式 */
|
|
15
|
-
bodyCellStyle: PropType<
|
|
16
|
+
bodyCellStyle: PropType<CellStyle>;
|
|
16
17
|
/** 单元格类名自定义 */
|
|
17
|
-
bodyCellClass: PropType<
|
|
18
|
+
bodyCellClass: PropType<CellClass>;
|
|
18
19
|
}, {
|
|
19
20
|
renderOpt: import('vue').ComputedRef<CustomRenderProps>;
|
|
20
21
|
cellStyle: import('vue').ComputedRef<StyleValues | undefined>;
|
|
@@ -28,8 +29,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
29
|
/** 列索引 */
|
|
29
30
|
columnIndex: NumberConstructor;
|
|
30
31
|
/** 单元格样式 */
|
|
31
|
-
bodyCellStyle: PropType<
|
|
32
|
+
bodyCellStyle: PropType<CellStyle>;
|
|
32
33
|
/** 单元格类名自定义 */
|
|
33
|
-
bodyCellClass: PropType<
|
|
34
|
+
bodyCellClass: PropType<CellClass>;
|
|
34
35
|
}>>, {}, {}>;
|
|
35
36
|
export default _default;
|
|
@@ -23,7 +23,7 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
const { text, row, column, index: $index } = props.col;
|
|
24
24
|
const params = [{ row, column, $index }];
|
|
25
25
|
const slotName = column ? column.printSlot || column.slot : void 0;
|
|
26
|
-
if (column &&
|
|
26
|
+
if (column && "expand" !== column.type && slotName && typeof slots[slotName] === "function") {
|
|
27
27
|
return { render: slots[slotName], params };
|
|
28
28
|
}
|
|
29
29
|
return { render: () => text, params };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { StyleValues } from '../../ele-app/types';
|
|
3
|
+
import { HeaderCellStyle, HeaderCellClass } from '../../ele-data-table/types';
|
|
3
4
|
import { CustomRenderProps } from '../../ele-virtual-table/types';
|
|
4
5
|
import { ExportDataItem } from '../types';
|
|
5
6
|
|
|
@@ -12,9 +13,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
13
|
/** 列索引 */
|
|
13
14
|
columnIndex: NumberConstructor;
|
|
14
15
|
/** 单元格样式 */
|
|
15
|
-
headerCellStyle: PropType<
|
|
16
|
+
headerCellStyle: PropType<HeaderCellStyle>;
|
|
16
17
|
/** 单元格类名自定义 */
|
|
17
|
-
headerCellClass: PropType<
|
|
18
|
+
headerCellClass: PropType<HeaderCellClass>;
|
|
18
19
|
}, {
|
|
19
20
|
renderOpt: import('vue').ComputedRef<CustomRenderProps>;
|
|
20
21
|
cellStyle: import('vue').ComputedRef<StyleValues | undefined>;
|
|
@@ -28,8 +29,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
29
|
/** 列索引 */
|
|
29
30
|
columnIndex: NumberConstructor;
|
|
30
31
|
/** 单元格样式 */
|
|
31
|
-
headerCellStyle: PropType<
|
|
32
|
+
headerCellStyle: PropType<HeaderCellStyle>;
|
|
32
33
|
/** 单元格类名自定义 */
|
|
33
|
-
headerCellClass: PropType<
|
|
34
|
+
headerCellClass: PropType<HeaderCellClass>;
|
|
34
35
|
}>>, {}, {}>;
|
|
35
36
|
export default _default;
|
|
@@ -20,8 +20,9 @@ const _sfc_main = defineComponent({
|
|
|
20
20
|
const renderOpt = computed(() => {
|
|
21
21
|
const { text, column } = props.col;
|
|
22
22
|
const params = [{ column, $index: props.columnIndex }];
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const slotName = column ? column.printHeaderSlot || column.headerSlot : void 0;
|
|
24
|
+
if (column && slotName && typeof slots[slotName] === "function") {
|
|
25
|
+
return { render: slots[slotName], params };
|
|
25
26
|
}
|
|
26
27
|
return { render: () => text, params };
|
|
27
28
|
});
|