ele-admin-plus 1.2.1-beta.1 → 1.2.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ele-admin-layout/index.d.ts +29 -24
- package/es/ele-admin-layout/props.d.ts +15 -11
- package/es/ele-admin-layout/props.js +4 -1
- package/es/ele-admin-layout/style/index.scss +7 -2
- package/es/ele-admin-layout/style/sidebar.scss +2 -0
- package/es/ele-alert/index.d.ts +15 -15
- package/es/ele-alert/index.js +3 -3
- package/es/ele-alert/props.d.ts +9 -8
- package/es/ele-app/components/message-body.d.ts +6 -5
- package/es/ele-app/components/message-body.js +2 -2
- package/es/ele-app/components/message-box-icon.d.ts +7 -6
- package/es/ele-app/plus.d.ts +3 -0
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-avatar-group/index.d.ts +19 -18
- package/es/ele-avatar-group/index.js +15 -15
- package/es/ele-avatar-group/props.d.ts +10 -7
- package/es/ele-basic-select/index.d.ts +22 -19
- package/es/ele-basic-select/index.js +30 -23
- package/es/ele-basic-select/props.d.ts +11 -6
- package/es/ele-basic-select/props.js +3 -1
- package/es/ele-basic-select/util.d.ts +6 -0
- package/es/ele-basic-select/util.js +13 -0
- package/es/ele-bottom-bar/index.d.ts +4 -4
- package/es/ele-bottom-bar/props.d.ts +3 -2
- package/es/ele-breadcrumb/index.d.ts +3 -3
- package/es/ele-breadcrumb/props.d.ts +1 -1
- package/es/ele-card/index.d.ts +14 -14
- package/es/ele-card/props.d.ts +8 -6
- package/es/ele-check-card/components/card-item.d.ts +3 -2
- package/es/ele-check-card/index.d.ts +5 -5
- package/es/ele-check-card/index.js +12 -7
- 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 +12 -12
- package/es/ele-copyable/index.js +6 -6
- 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 +6 -5
- package/es/ele-cropper/components/cropper-tools.js +10 -10
- package/es/ele-cropper/index.d.ts +16 -16
- package/es/ele-cropper/index.js +39 -39
- package/es/ele-cropper/props.d.ts +2 -1
- package/es/ele-cropper-modal/index.d.ts +5 -5
- package/es/ele-cropper-modal/index.js +3 -3
- package/es/ele-cropper-modal/props.d.ts +1 -4
- package/es/ele-data-table/index.d.ts +22 -22
- package/es/ele-data-table/props.d.ts +16 -16
- package/es/ele-data-table/style/index.scss +1 -1
- package/es/ele-data-table/types.d.ts +2 -0
- package/es/ele-data-table/util.js +6 -2
- package/es/ele-drawer/index.d.ts +18 -18
- package/es/ele-drawer/index.js +18 -18
- package/es/ele-drawer/props.d.ts +11 -10
- package/es/ele-dropdown/index.d.ts +24 -24
- package/es/ele-dropdown/index.js +54 -48
- package/es/ele-dropdown/props.d.ts +13 -12
- package/es/ele-dropdown/types.d.ts +2 -0
- package/es/ele-edit-tag/index.d.ts +21 -19
- package/es/ele-edit-tag/index.js +10 -2
- package/es/ele-edit-tag/props.d.ts +13 -8
- package/es/ele-edit-tag/props.js +3 -1
- package/es/ele-ellipsis/index.d.ts +6 -5
- package/es/ele-ellipsis/index.js +3 -3
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-file-list/components/file-grid-item.d.ts +5 -5
- package/es/ele-file-list/components/file-grid-item.js +15 -15
- package/es/ele-file-list/components/file-grid.d.ts +6 -6
- package/es/ele-file-list/components/file-grid.js +15 -15
- package/es/ele-file-list/components/file-table-item.d.ts +5 -5
- package/es/ele-file-list/components/file-table-item.js +15 -15
- package/es/ele-file-list/components/file-table.d.ts +7 -7
- package/es/ele-file-list/components/file-table.js +19 -19
- package/es/ele-file-list/index.d.ts +10 -10
- package/es/ele-file-list/index.js +22 -22
- package/es/ele-file-list-tool/index.d.ts +1 -1
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +10 -8
- package/es/ele-icon-select/components/icon-grid.js +6 -6
- package/es/ele-icon-select/index.d.ts +44 -43
- package/es/ele-icon-select/index.js +29 -25
- package/es/ele-icon-select/props.d.ts +18 -14
- package/es/ele-icon-select/props.js +2 -0
- package/es/ele-loading/index.d.ts +4 -4
- package/es/ele-loading/props.d.ts +3 -2
- package/es/ele-map-picker/components/map-view.d.ts +26 -28
- package/es/ele-map-picker/components/map-view.js +1 -0
- package/es/ele-map-picker/index.d.ts +10 -10
- package/es/ele-map-picker/props.d.ts +6 -5
- package/es/ele-map-picker/style/index.scss +1 -1
- package/es/ele-menus/index.d.ts +2 -2
- package/es/ele-menus/index.js +15 -15
- package/es/ele-menus/props.d.ts +1 -1
- package/es/ele-menus/style/index.scss +5 -0
- package/es/ele-menus/util.d.ts +7 -0
- package/es/ele-menus/util.js +49 -26
- package/es/ele-modal/index.d.ts +30 -29
- package/es/ele-modal/index.js +48 -82
- package/es/ele-modal/props.d.ts +14 -13
- package/es/ele-modal/util.d.ts +31 -24
- package/es/ele-modal/util.js +235 -132
- package/es/ele-pagination/index.d.ts +20 -8
- package/es/ele-pagination/index.js +9 -8
- 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 +37 -47
- package/es/ele-popconfirm/index.js +15 -15
- package/es/ele-popconfirm/props.d.ts +18 -21
- package/es/ele-popover/index.d.ts +27 -37
- package/es/ele-popover/index.js +15 -15
- package/es/ele-popover/props.d.ts +11 -15
- package/es/ele-popover/props.js +1 -0
- package/es/ele-printer/index.d.ts +9 -9
- package/es/ele-printer/index.js +19 -22
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/style/index.scss +2 -2
- package/es/ele-printer/types.d.ts +0 -2
- package/es/ele-printer/util.d.ts +7 -28
- package/es/ele-printer/util.js +111 -77
- package/es/ele-pro-layout/index.d.ts +44 -48
- package/es/ele-pro-layout/index.js +2 -2
- package/es/ele-pro-layout/props.d.ts +17 -15
- package/es/ele-pro-layout/props.js +1 -1
- package/es/ele-pro-table/components/table-tools.d.ts +405 -35
- package/es/ele-pro-table/components/table-tools.js +227 -151
- package/es/ele-pro-table/components/tool-column-list.d.ts +21 -9
- package/es/ele-pro-table/components/tool-column-list.js +64 -37
- package/es/ele-pro-table/components/tool-column.d.ts +31 -44
- package/es/ele-pro-table/components/tool-column.js +87 -103
- package/es/ele-pro-table/components/tool-export.d.ts +37 -34
- package/es/ele-pro-table/components/tool-export.js +223 -215
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print.d.ts +47 -43
- package/es/ele-pro-table/components/tool-print.js +380 -369
- package/es/ele-pro-table/index.d.ts +1020 -81
- package/es/ele-pro-table/index.js +103 -76
- package/es/ele-pro-table/props.d.ts +18 -19
- package/es/ele-pro-table/props.js +4 -2
- package/es/ele-pro-table/style/index.scss +44 -12
- package/es/ele-pro-table/types.d.ts +54 -0
- package/es/ele-pro-table/util.d.ts +84 -34
- package/es/ele-pro-table/util.js +186 -94
- 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 +1 -1
- package/es/ele-segmented/index.js +6 -3
- package/es/ele-split-panel/index.d.ts +8 -8
- package/es/ele-split-panel/index.js +3 -3
- package/es/ele-split-panel/props.d.ts +4 -3
- package/es/ele-steps/index.d.ts +2 -2
- package/es/ele-steps/props.d.ts +2 -2
- package/es/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
- package/es/ele-tab-wrap/components/tab-dropdown.js +3 -3
- package/es/ele-table/index.d.ts +2 -2
- package/es/ele-table/props.d.ts +2 -1
- package/es/ele-table-select/index.d.ts +29 -27
- package/es/ele-table-select/index.js +47 -39
- package/es/ele-table-select/props.d.ts +11 -7
- package/es/ele-table-select/props.js +2 -0
- package/es/ele-tabs/index.d.ts +19 -34
- package/es/ele-tabs/index.js +133 -86
- package/es/ele-tabs/props.d.ts +10 -24
- package/es/ele-tabs/props.js +3 -1
- package/es/ele-tabs/style/index.scss +42 -2
- package/es/ele-tabs/types.d.ts +2 -11
- package/es/ele-text/index.d.ts +2 -2
- package/es/ele-text/props.d.ts +2 -1
- package/es/ele-tool/index.d.ts +11 -5
- package/es/ele-tool/index.js +32 -32
- package/es/ele-tool/props.d.ts +4 -1
- package/es/ele-tool/props.js +3 -1
- package/es/ele-tool/style/index.js +0 -1
- package/es/ele-toolbar/index.d.ts +3253 -7
- package/es/ele-toolbar/index.js +44 -5
- package/es/ele-toolbar/props.d.ts +10 -5
- package/es/ele-toolbar/props.js +2 -0
- package/es/ele-toolbar/style/index.js +1 -0
- package/es/ele-toolbar/types.d.ts +15 -0
- package/es/ele-tooltip/index.d.ts +22 -21
- package/es/ele-tooltip/index.js +25 -25
- package/es/ele-tooltip/props.d.ts +7 -6
- package/es/ele-tour/index.d.ts +4 -4
- package/es/ele-tour/index.js +10 -10
- package/es/ele-tree-select/index.d.ts +27 -27
- package/es/ele-tree-select/index.js +33 -30
- 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 +3 -3
- package/es/ele-upload-list/components/list-item.js +7 -7
- package/es/ele-upload-list/index.d.ts +11 -13
- package/es/ele-upload-list/index.js +13 -13
- package/es/ele-upload-list/props.d.ts +4 -3
- package/es/ele-upload-list/style/index.scss +4 -0
- package/es/ele-virtual-table/components/body-cell.d.ts +19 -35
- package/es/ele-virtual-table/components/body-cell.js +24 -24
- package/es/ele-virtual-table/components/body-row.d.ts +20 -36
- package/es/ele-virtual-table/components/body-row.js +21 -21
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +4 -3
- package/es/ele-virtual-table/components/cell-checkbox.js +3 -3
- package/es/ele-virtual-table/components/cell-filter.d.ts +11 -11
- package/es/ele-virtual-table/components/cell-filter.js +18 -18
- package/es/ele-virtual-table/components/footer-row.d.ts +4 -4
- package/es/ele-virtual-table/components/footer-row.js +3 -3
- package/es/ele-virtual-table/components/header-cell.d.ts +12 -12
- package/es/ele-virtual-table/components/header-cell.js +15 -15
- package/es/ele-virtual-table/components/header-row.d.ts +12 -12
- package/es/ele-virtual-table/components/header-row.js +15 -15
- package/es/ele-virtual-table/index.d.ts +36 -35
- package/es/ele-virtual-table/index.js +50 -48
- package/es/ele-virtual-table/props.d.ts +11 -11
- package/es/ele-virtual-table/util.js +3 -3
- package/es/ele-watermark/index.d.ts +5 -4
- package/es/ele-watermark/index.js +1 -0
- package/es/ele-watermark/props.d.ts +2 -1
- package/es/ele-xg-player/index.d.ts +3 -3
- package/es/icons/SizeCompactOutlined.d.ts +2 -0
- package/es/icons/SizeCompactOutlined.js +34 -0
- package/es/icons/SizeSlackOutlined.d.ts +2 -0
- package/es/icons/SizeSlackOutlined.js +34 -0
- package/es/icons/index.d.ts +2 -0
- package/es/icons/index.js +46 -42
- package/es/lang/en_US.js +1 -0
- package/es/lang/zh_CN.js +1 -0
- package/es/lang/zh_TW.js +1 -0
- package/es/style/themes/default.scss +20 -13
- package/es/style/themes/rounded.scss +4 -9
- package/es/utils/core.d.ts +7 -1
- package/es/utils/hook.d.ts +75 -4
- package/es/utils/hook.js +155 -6
- package/lib/ele-admin-layout/index.d.ts +29 -24
- package/lib/ele-admin-layout/props.cjs +4 -1
- package/lib/ele-admin-layout/props.d.ts +15 -11
- package/lib/ele-admin-layout/style/index.scss +7 -2
- package/lib/ele-admin-layout/style/sidebar.scss +2 -0
- package/lib/ele-alert/index.cjs +3 -3
- package/lib/ele-alert/index.d.ts +15 -15
- package/lib/ele-alert/props.d.ts +9 -8
- package/lib/ele-app/components/message-body.cjs +2 -2
- package/lib/ele-app/components/message-body.d.ts +6 -5
- package/lib/ele-app/components/message-box-icon.d.ts +7 -6
- package/lib/ele-app/plus.d.ts +3 -0
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-avatar-group/index.cjs +15 -15
- package/lib/ele-avatar-group/index.d.ts +19 -18
- package/lib/ele-avatar-group/props.d.ts +10 -7
- package/lib/ele-basic-select/index.cjs +30 -23
- package/lib/ele-basic-select/index.d.ts +22 -19
- package/lib/ele-basic-select/props.cjs +3 -1
- package/lib/ele-basic-select/props.d.ts +11 -6
- package/lib/ele-basic-select/util.cjs +13 -0
- package/lib/ele-basic-select/util.d.ts +6 -0
- package/lib/ele-bottom-bar/index.d.ts +4 -4
- package/lib/ele-bottom-bar/props.d.ts +3 -2
- package/lib/ele-breadcrumb/index.d.ts +3 -3
- package/lib/ele-breadcrumb/props.d.ts +1 -1
- package/lib/ele-card/index.d.ts +14 -14
- package/lib/ele-card/props.d.ts +8 -6
- package/lib/ele-check-card/components/card-item.d.ts +3 -2
- package/lib/ele-check-card/index.cjs +12 -7
- package/lib/ele-check-card/index.d.ts +5 -5
- 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.cjs +6 -6
- package/lib/ele-copyable/index.d.ts +12 -12
- 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 +10 -10
- package/lib/ele-cropper/components/cropper-tools.d.ts +6 -5
- package/lib/ele-cropper/index.cjs +39 -39
- package/lib/ele-cropper/index.d.ts +16 -16
- package/lib/ele-cropper/props.d.ts +2 -1
- package/lib/ele-cropper-modal/index.cjs +3 -3
- package/lib/ele-cropper-modal/index.d.ts +5 -5
- package/lib/ele-cropper-modal/props.d.ts +1 -4
- package/lib/ele-data-table/index.d.ts +22 -22
- package/lib/ele-data-table/props.d.ts +16 -16
- package/lib/ele-data-table/style/index.scss +1 -1
- package/lib/ele-data-table/types.d.ts +2 -0
- package/lib/ele-data-table/util.cjs +6 -2
- package/lib/ele-drawer/index.cjs +18 -18
- package/lib/ele-drawer/index.d.ts +18 -18
- package/lib/ele-drawer/props.d.ts +11 -10
- package/lib/ele-dropdown/index.cjs +54 -48
- package/lib/ele-dropdown/index.d.ts +24 -24
- package/lib/ele-dropdown/props.d.ts +13 -12
- package/lib/ele-dropdown/types.d.ts +2 -0
- package/lib/ele-edit-tag/index.cjs +10 -2
- package/lib/ele-edit-tag/index.d.ts +21 -19
- package/lib/ele-edit-tag/props.cjs +3 -1
- package/lib/ele-edit-tag/props.d.ts +13 -8
- package/lib/ele-ellipsis/index.cjs +3 -3
- package/lib/ele-ellipsis/index.d.ts +6 -5
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -15
- package/lib/ele-file-list/components/file-grid-item.d.ts +5 -5
- package/lib/ele-file-list/components/file-grid.cjs +15 -15
- package/lib/ele-file-list/components/file-grid.d.ts +6 -6
- package/lib/ele-file-list/components/file-table-item.cjs +15 -15
- package/lib/ele-file-list/components/file-table-item.d.ts +5 -5
- package/lib/ele-file-list/components/file-table.cjs +19 -19
- package/lib/ele-file-list/components/file-table.d.ts +7 -7
- package/lib/ele-file-list/index.cjs +22 -22
- package/lib/ele-file-list/index.d.ts +10 -10
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +1 -1
- package/lib/ele-icon-select/components/icon-grid.cjs +6 -6
- package/lib/ele-icon-select/components/icon-grid.d.ts +10 -8
- package/lib/ele-icon-select/index.cjs +32 -28
- package/lib/ele-icon-select/index.d.ts +44 -43
- package/lib/ele-icon-select/props.cjs +2 -0
- package/lib/ele-icon-select/props.d.ts +18 -14
- package/lib/ele-loading/index.d.ts +4 -4
- package/lib/ele-loading/props.d.ts +3 -2
- package/lib/ele-map-picker/components/map-view.cjs +1 -0
- package/lib/ele-map-picker/components/map-view.d.ts +26 -28
- package/lib/ele-map-picker/index.d.ts +10 -10
- package/lib/ele-map-picker/props.d.ts +6 -5
- package/lib/ele-map-picker/style/index.scss +1 -1
- package/lib/ele-menus/index.cjs +15 -15
- package/lib/ele-menus/index.d.ts +2 -2
- package/lib/ele-menus/props.d.ts +1 -1
- package/lib/ele-menus/style/index.scss +5 -0
- package/lib/ele-menus/util.cjs +49 -26
- package/lib/ele-menus/util.d.ts +7 -0
- package/lib/ele-modal/index.cjs +46 -80
- package/lib/ele-modal/index.d.ts +30 -29
- package/lib/ele-modal/props.d.ts +14 -13
- package/lib/ele-modal/util.cjs +235 -132
- package/lib/ele-modal/util.d.ts +31 -24
- package/lib/ele-pagination/index.cjs +9 -8
- package/lib/ele-pagination/index.d.ts +20 -8
- package/lib/ele-pagination/props.d.ts +8 -2
- package/lib/ele-pagination/style/index.scss +70 -0
- package/lib/ele-popconfirm/index.cjs +15 -15
- package/lib/ele-popconfirm/index.d.ts +37 -47
- package/lib/ele-popconfirm/props.d.ts +18 -21
- package/lib/ele-popover/index.cjs +15 -15
- package/lib/ele-popover/index.d.ts +27 -37
- package/lib/ele-popover/props.cjs +1 -0
- package/lib/ele-popover/props.d.ts +11 -15
- package/lib/ele-printer/index.cjs +17 -20
- package/lib/ele-printer/index.d.ts +9 -9
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/style/index.scss +2 -2
- package/lib/ele-printer/types.d.ts +0 -2
- package/lib/ele-printer/util.cjs +111 -77
- package/lib/ele-printer/util.d.ts +7 -28
- package/lib/ele-pro-layout/index.cjs +2 -2
- package/lib/ele-pro-layout/index.d.ts +44 -48
- package/lib/ele-pro-layout/props.cjs +1 -1
- package/lib/ele-pro-layout/props.d.ts +17 -15
- package/lib/ele-pro-table/components/table-tools.cjs +225 -149
- package/lib/ele-pro-table/components/table-tools.d.ts +405 -35
- package/lib/ele-pro-table/components/tool-column-list.cjs +63 -36
- package/lib/ele-pro-table/components/tool-column-list.d.ts +21 -9
- package/lib/ele-pro-table/components/tool-column.cjs +86 -102
- package/lib/ele-pro-table/components/tool-column.d.ts +31 -44
- package/lib/ele-pro-table/components/tool-export.cjs +220 -212
- package/lib/ele-pro-table/components/tool-export.d.ts +37 -34
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print.cjs +377 -366
- package/lib/ele-pro-table/components/tool-print.d.ts +47 -43
- package/lib/ele-pro-table/index.cjs +100 -73
- package/lib/ele-pro-table/index.d.ts +1020 -81
- package/lib/ele-pro-table/props.cjs +4 -2
- package/lib/ele-pro-table/props.d.ts +18 -19
- package/lib/ele-pro-table/style/index.scss +44 -12
- package/lib/ele-pro-table/types.d.ts +54 -0
- package/lib/ele-pro-table/util.cjs +186 -94
- package/lib/ele-pro-table/util.d.ts +84 -34
- 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 +6 -3
- package/lib/ele-segmented/index.d.ts +1 -1
- package/lib/ele-split-panel/index.cjs +3 -3
- package/lib/ele-split-panel/index.d.ts +8 -8
- package/lib/ele-split-panel/props.d.ts +4 -3
- package/lib/ele-steps/index.d.ts +2 -2
- package/lib/ele-steps/props.d.ts +2 -2
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +3 -3
- package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
- package/lib/ele-table/index.d.ts +2 -2
- package/lib/ele-table/props.d.ts +2 -1
- package/lib/ele-table-select/index.cjs +62 -54
- package/lib/ele-table-select/index.d.ts +29 -27
- package/lib/ele-table-select/props.cjs +2 -0
- package/lib/ele-table-select/props.d.ts +11 -7
- package/lib/ele-tabs/index.cjs +132 -85
- package/lib/ele-tabs/index.d.ts +19 -34
- package/lib/ele-tabs/props.cjs +3 -1
- package/lib/ele-tabs/props.d.ts +10 -24
- package/lib/ele-tabs/style/index.scss +42 -2
- package/lib/ele-tabs/types.d.ts +2 -11
- package/lib/ele-text/index.d.ts +2 -2
- package/lib/ele-text/props.d.ts +2 -1
- package/lib/ele-tool/index.cjs +31 -31
- package/lib/ele-tool/index.d.ts +11 -5
- package/lib/ele-tool/props.cjs +3 -1
- package/lib/ele-tool/props.d.ts +4 -1
- package/lib/ele-tool/style/index.cjs +0 -1
- package/lib/ele-toolbar/index.cjs +42 -3
- package/lib/ele-toolbar/index.d.ts +3253 -7
- package/lib/ele-toolbar/props.cjs +2 -0
- package/lib/ele-toolbar/props.d.ts +10 -5
- package/lib/ele-toolbar/style/index.cjs +1 -0
- package/lib/ele-toolbar/types.d.ts +15 -0
- package/lib/ele-tooltip/index.cjs +25 -25
- package/lib/ele-tooltip/index.d.ts +22 -21
- package/lib/ele-tooltip/props.d.ts +7 -6
- package/lib/ele-tour/index.cjs +10 -10
- package/lib/ele-tour/index.d.ts +4 -4
- package/lib/ele-tree-select/index.cjs +32 -29
- package/lib/ele-tree-select/index.d.ts +27 -27
- 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 +7 -7
- package/lib/ele-upload-list/components/list-item.d.ts +3 -3
- package/lib/ele-upload-list/index.cjs +13 -13
- package/lib/ele-upload-list/index.d.ts +11 -13
- package/lib/ele-upload-list/props.d.ts +4 -3
- package/lib/ele-upload-list/style/index.scss +4 -0
- package/lib/ele-virtual-table/components/body-cell.cjs +24 -24
- package/lib/ele-virtual-table/components/body-cell.d.ts +19 -35
- package/lib/ele-virtual-table/components/body-row.cjs +21 -21
- package/lib/ele-virtual-table/components/body-row.d.ts +20 -36
- package/lib/ele-virtual-table/components/cell-checkbox.cjs +3 -3
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +4 -3
- package/lib/ele-virtual-table/components/cell-filter.cjs +18 -18
- package/lib/ele-virtual-table/components/cell-filter.d.ts +11 -11
- package/lib/ele-virtual-table/components/footer-row.cjs +3 -3
- package/lib/ele-virtual-table/components/footer-row.d.ts +4 -4
- package/lib/ele-virtual-table/components/header-cell.cjs +15 -15
- package/lib/ele-virtual-table/components/header-cell.d.ts +12 -12
- package/lib/ele-virtual-table/components/header-row.cjs +15 -15
- package/lib/ele-virtual-table/components/header-row.d.ts +12 -12
- package/lib/ele-virtual-table/index.cjs +50 -48
- package/lib/ele-virtual-table/index.d.ts +36 -35
- package/lib/ele-virtual-table/props.d.ts +11 -11
- package/lib/ele-virtual-table/util.cjs +3 -3
- package/lib/ele-watermark/index.cjs +1 -0
- package/lib/ele-watermark/index.d.ts +5 -4
- package/lib/ele-watermark/props.d.ts +2 -1
- package/lib/ele-xg-player/index.d.ts +3 -3
- package/lib/icons/SizeCompactOutlined.cjs +33 -0
- package/lib/icons/SizeCompactOutlined.d.ts +2 -0
- package/lib/icons/SizeSlackOutlined.cjs +33 -0
- package/lib/icons/SizeSlackOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +4 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/lang/en_US.cjs +1 -0
- package/lib/lang/zh_CN.cjs +1 -0
- package/lib/lang/zh_TW.cjs +1 -0
- package/lib/style/themes/default.scss +20 -13
- package/lib/style/themes/rounded.scss +4 -9
- package/lib/utils/core.d.ts +7 -1
- package/lib/utils/hook.cjs +154 -5
- package/lib/utils/hook.d.ts +75 -4
- package/package.json +14 -13
|
@@ -9,6 +9,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
9
9
|
VueDraggable,
|
|
10
10
|
ElCheckbox: elementPlus.ElCheckbox,
|
|
11
11
|
ElIcon: elementPlus.ElIcon,
|
|
12
|
+
ElInput: elementPlus.ElInput,
|
|
12
13
|
HolderOutlined: icons.HolderOutlined,
|
|
13
14
|
VerticalRightOutlined: icons.VerticalRightOutlined,
|
|
14
15
|
VerticalLeftOutlined: icons.VerticalLeftOutlined
|
|
@@ -21,7 +22,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
21
22
|
/** 是否开启列拖拽排序 */
|
|
22
23
|
sortable: Boolean,
|
|
23
24
|
/** 是否开启开关固定列 */
|
|
24
|
-
allowFixed: Boolean
|
|
25
|
+
allowFixed: Boolean,
|
|
26
|
+
/** 是否开启列宽设置 */
|
|
27
|
+
allowWidth: Boolean,
|
|
28
|
+
/** 列宽输入框提示文本 */
|
|
29
|
+
columnWidthPlaceholder: String
|
|
25
30
|
},
|
|
26
31
|
emits: {
|
|
27
32
|
sortChange: (_colItems, _parent) => true,
|
|
@@ -29,46 +34,51 @@ const _sfc_main = vue.defineComponent({
|
|
|
29
34
|
fixedLeft: (_item) => true,
|
|
30
35
|
fixedRight: (_item) => true,
|
|
31
36
|
fixedLeftTooltip: (_el) => true,
|
|
32
|
-
fixedRightTooltip: (_el) => true
|
|
37
|
+
fixedRightTooltip: (_el) => true,
|
|
38
|
+
colWidthChange: (_item, _width) => true
|
|
33
39
|
},
|
|
34
40
|
setup(props, { emit }) {
|
|
35
|
-
const
|
|
36
|
-
|
|
41
|
+
const handleSortChange = (colItems) => {
|
|
42
|
+
handleChildSortChange(colItems, props.parent);
|
|
37
43
|
};
|
|
38
|
-
const
|
|
44
|
+
const handleCheckedChange = (colItem, checked) => {
|
|
39
45
|
emit("checkedChange", colItem, checked);
|
|
40
46
|
};
|
|
41
|
-
const
|
|
47
|
+
const handleFixedLeft = (colItem) => {
|
|
42
48
|
emit("fixedLeft", colItem);
|
|
43
49
|
};
|
|
44
|
-
const
|
|
50
|
+
const handleFixedRight = (colItem) => {
|
|
45
51
|
emit("fixedRight", colItem);
|
|
46
52
|
};
|
|
47
|
-
const
|
|
48
|
-
|
|
53
|
+
const handleFixedLeftTooltip = (e) => {
|
|
54
|
+
handleChildFixedLeftTooltip(e.currentTarget);
|
|
49
55
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
56
|
+
const handleFixedRightTooltip = (e) => {
|
|
57
|
+
handleChildFixedRightTooltip(e.currentTarget);
|
|
52
58
|
};
|
|
53
|
-
const
|
|
59
|
+
const handleChildSortChange = (colItems, parent) => {
|
|
54
60
|
emit("sortChange", colItems, parent);
|
|
55
61
|
};
|
|
56
|
-
const
|
|
62
|
+
const handleChildFixedLeftTooltip = (el) => {
|
|
57
63
|
emit("fixedLeftTooltip", el);
|
|
58
64
|
};
|
|
59
|
-
const
|
|
65
|
+
const handleChildFixedRightTooltip = (el) => {
|
|
60
66
|
emit("fixedRightTooltip", el);
|
|
61
67
|
};
|
|
68
|
+
const handleColWidthChange = (item, width) => {
|
|
69
|
+
emit("colWidthChange", item, width);
|
|
70
|
+
};
|
|
62
71
|
return {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
handleSortChange,
|
|
73
|
+
handleCheckedChange,
|
|
74
|
+
handleFixedLeft,
|
|
75
|
+
handleFixedRight,
|
|
76
|
+
handleFixedLeftTooltip,
|
|
77
|
+
handleFixedRightTooltip,
|
|
78
|
+
handleChildSortChange,
|
|
79
|
+
handleChildFixedLeftTooltip,
|
|
80
|
+
handleChildFixedRightTooltip,
|
|
81
|
+
handleColWidthChange
|
|
72
82
|
};
|
|
73
83
|
}
|
|
74
84
|
});
|
|
@@ -92,12 +102,17 @@ const _hoisted_5 = {
|
|
|
92
102
|
};
|
|
93
103
|
const _hoisted_6 = ["onClick"];
|
|
94
104
|
const _hoisted_7 = ["onClick"];
|
|
105
|
+
const _hoisted_8 = {
|
|
106
|
+
key: 2,
|
|
107
|
+
class: "ele-tool-column-input"
|
|
108
|
+
};
|
|
95
109
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
96
110
|
const _component_HolderOutlined = vue.resolveComponent("HolderOutlined");
|
|
97
111
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
98
112
|
const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
|
|
99
113
|
const _component_VerticalRightOutlined = vue.resolveComponent("VerticalRightOutlined");
|
|
100
114
|
const _component_VerticalLeftOutlined = vue.resolveComponent("VerticalLeftOutlined");
|
|
115
|
+
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
101
116
|
const _component_ToolColumnList = vue.resolveComponent("ToolColumnList", true);
|
|
102
117
|
const _component_VueDraggable = vue.resolveComponent("VueDraggable");
|
|
103
118
|
return vue.openBlock(), vue.createBlock(_component_VueDraggable, {
|
|
@@ -108,7 +123,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
123
|
handle: ".ele-tool-column-handle",
|
|
109
124
|
componentData: { class: "ele-tool-column-list" },
|
|
110
125
|
forceFallback: true,
|
|
111
|
-
"onUpdate:modelValue": _ctx.
|
|
126
|
+
"onUpdate:modelValue": _ctx.handleSortChange
|
|
112
127
|
}, {
|
|
113
128
|
item: vue.withCtx(({ element: d }) => [
|
|
114
129
|
vue.createElementVNode("div", _hoisted_1, [
|
|
@@ -125,7 +140,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
125
140
|
vue.createVNode(_component_ElCheckbox, {
|
|
126
141
|
label: d.label,
|
|
127
142
|
modelValue: d.checked,
|
|
128
|
-
"onUpdate:modelValue": (v) => _ctx.
|
|
143
|
+
"onUpdate:modelValue": (v) => _ctx.handleCheckedChange(d, v)
|
|
129
144
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
|
|
130
145
|
]),
|
|
131
146
|
_ctx.allowFixed ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
@@ -134,8 +149,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
149
|
"ele-tool-column-fixed-item",
|
|
135
150
|
{ "is-active": d.fixed === true || d.fixed === "left" }
|
|
136
151
|
]),
|
|
137
|
-
onClick: ($event) => _ctx.
|
|
138
|
-
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
152
|
+
onClick: ($event) => _ctx.handleFixedLeft(d),
|
|
153
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.handleFixedLeftTooltip && _ctx.handleFixedLeftTooltip(...args))
|
|
139
154
|
}, [
|
|
140
155
|
vue.createVNode(_component_ElIcon, null, {
|
|
141
156
|
default: vue.withCtx(() => [
|
|
@@ -149,8 +164,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
164
|
"ele-tool-column-fixed-item",
|
|
150
165
|
{ "is-active": d.fixed === "right" }
|
|
151
166
|
]),
|
|
152
|
-
onClick: ($event) => _ctx.
|
|
153
|
-
onMouseover: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
167
|
+
onClick: ($event) => _ctx.handleFixedRight(d),
|
|
168
|
+
onMouseover: _cache[1] || (_cache[1] = (...args) => _ctx.handleFixedRightTooltip && _ctx.handleFixedRightTooltip(...args))
|
|
154
169
|
}, [
|
|
155
170
|
vue.createVNode(_component_ElIcon, null, {
|
|
156
171
|
default: vue.withCtx(() => [
|
|
@@ -159,6 +174,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
174
|
_: 1
|
|
160
175
|
})
|
|
161
176
|
], 42, _hoisted_7)
|
|
177
|
+
])) : vue.createCommentVNode("", true),
|
|
178
|
+
_ctx.allowWidth ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
179
|
+
vue.createVNode(_component_ElInput, {
|
|
180
|
+
size: "small",
|
|
181
|
+
maxlength: 12,
|
|
182
|
+
modelValue: d.width,
|
|
183
|
+
placeholder: _ctx.columnWidthPlaceholder,
|
|
184
|
+
"onUpdate:modelValue": (v) => _ctx.handleColWidthChange(d, v)
|
|
185
|
+
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
162
186
|
])) : vue.createCommentVNode("", true)
|
|
163
187
|
]),
|
|
164
188
|
d.children && d.children.length ? (vue.openBlock(), vue.createBlock(_component_ToolColumnList, {
|
|
@@ -166,13 +190,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
190
|
data: d.children,
|
|
167
191
|
parent: d,
|
|
168
192
|
sortable: _ctx.sortable,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
193
|
+
allowWidth: _ctx.allowWidth,
|
|
194
|
+
columnWidthPlaceholder: _ctx.columnWidthPlaceholder,
|
|
195
|
+
onSortChange: _ctx.handleChildSortChange,
|
|
196
|
+
onCheckedChange: _ctx.handleCheckedChange,
|
|
197
|
+
onFixedLeft: _ctx.handleFixedLeft,
|
|
198
|
+
onFixedRight: _ctx.handleFixedRight,
|
|
199
|
+
onFixedLeftTooltip: _ctx.handleChildFixedLeftTooltip,
|
|
200
|
+
onFixedRightTooltip: _ctx.handleChildFixedRightTooltip,
|
|
201
|
+
onColWidthChange: _ctx.handleColWidthChange
|
|
202
|
+
}, null, 8, ["data", "parent", "sortable", "allowWidth", "columnWidthPlaceholder", "onSortChange", "onCheckedChange", "onFixedLeft", "onFixedRight", "onFixedLeftTooltip", "onFixedRightTooltip", "onColWidthChange"])) : vue.createCommentVNode("", true)
|
|
176
203
|
])
|
|
177
204
|
]),
|
|
178
205
|
_: 1
|
|
@@ -10,16 +10,21 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
10
|
sortable: BooleanConstructor;
|
|
11
11
|
/** 是否开启开关固定列 */
|
|
12
12
|
allowFixed: BooleanConstructor;
|
|
13
|
+
/** 是否开启列宽设置 */
|
|
14
|
+
allowWidth: BooleanConstructor;
|
|
15
|
+
/** 列宽输入框提示文本 */
|
|
16
|
+
columnWidthPlaceholder: StringConstructor;
|
|
13
17
|
}, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
handleSortChange: (colItems: ColItem[]) => void;
|
|
19
|
+
handleCheckedChange: (colItem: ColItem, checked: boolean) => void;
|
|
20
|
+
handleFixedLeft: (colItem: ColItem) => void;
|
|
21
|
+
handleFixedRight: (colItem: ColItem) => void;
|
|
22
|
+
handleFixedLeftTooltip: (e: MouseEvent) => void;
|
|
23
|
+
handleFixedRightTooltip: (e: MouseEvent) => void;
|
|
24
|
+
handleChildSortChange: (colItems: ColItem[], parent?: ColItem) => void;
|
|
25
|
+
handleChildFixedLeftTooltip: (el: HTMLElement) => void;
|
|
26
|
+
handleChildFixedRightTooltip: (el: HTMLElement) => void;
|
|
27
|
+
handleColWidthChange: (item: ColItem, width?: string) => void;
|
|
23
28
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
29
|
sortChange: (_colItems: ColItem[], _parent?: ColItem) => true;
|
|
25
30
|
checkedChange: (_item: ColItem, _checked: boolean) => true;
|
|
@@ -27,6 +32,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
32
|
fixedRight: (_item: ColItem) => true;
|
|
28
33
|
fixedLeftTooltip: (_el: HTMLElement) => true;
|
|
29
34
|
fixedRightTooltip: (_el: HTMLElement) => true;
|
|
35
|
+
colWidthChange: (_item: ColItem, _width?: string | number) => true;
|
|
30
36
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
37
|
/** 列配置数据 */
|
|
32
38
|
data: PropType<ColItem[]>;
|
|
@@ -36,6 +42,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
36
42
|
sortable: BooleanConstructor;
|
|
37
43
|
/** 是否开启开关固定列 */
|
|
38
44
|
allowFixed: BooleanConstructor;
|
|
45
|
+
/** 是否开启列宽设置 */
|
|
46
|
+
allowWidth: BooleanConstructor;
|
|
47
|
+
/** 列宽输入框提示文本 */
|
|
48
|
+
columnWidthPlaceholder: StringConstructor;
|
|
39
49
|
}>> & {
|
|
40
50
|
onSortChange?: ((_colItems: ColItem[], _parent?: ColItem | undefined) => any) | undefined;
|
|
41
51
|
onCheckedChange?: ((_item: ColItem, _checked: boolean) => any) | undefined;
|
|
@@ -43,8 +53,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
53
|
onFixedRight?: ((_item: ColItem) => any) | undefined;
|
|
44
54
|
onFixedLeftTooltip?: ((_el: HTMLElement) => any) | undefined;
|
|
45
55
|
onFixedRightTooltip?: ((_el: HTMLElement) => any) | undefined;
|
|
56
|
+
onColWidthChange?: ((_item: ColItem, _width?: string | number | undefined) => any) | undefined;
|
|
46
57
|
}, {
|
|
47
58
|
sortable: boolean;
|
|
48
59
|
allowFixed: boolean;
|
|
60
|
+
allowWidth: boolean;
|
|
49
61
|
}, {}>;
|
|
50
62
|
export default _default;
|
|
@@ -12,26 +12,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
12
12
|
components: {
|
|
13
13
|
ElCheckbox: elementPlus.ElCheckbox,
|
|
14
14
|
ElIcon: elementPlus.ElIcon,
|
|
15
|
-
EleTooltip,
|
|
16
15
|
SettingOutlined: icons.SettingOutlined,
|
|
16
|
+
EleTooltip,
|
|
17
17
|
EleTool,
|
|
18
18
|
ToolColumnList
|
|
19
19
|
},
|
|
20
20
|
props: {
|
|
21
|
-
/** 提示文字 */
|
|
22
|
-
title: String,
|
|
23
21
|
/** 提示位置 */
|
|
24
22
|
placement: String,
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
untitledText: String,
|
|
31
|
-
/** 固定在左侧文字 */
|
|
32
|
-
fixedLeftText: String,
|
|
33
|
-
/** 固定在右侧文字 */
|
|
34
|
-
fixedRightText: String,
|
|
23
|
+
/** 表格国际化 */
|
|
24
|
+
locale: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
35
28
|
/** 列数据 */
|
|
36
29
|
columns: Array,
|
|
37
30
|
/** 是否开启列拖拽排序 */
|
|
@@ -42,50 +35,51 @@ const _sfc_main = vue.defineComponent({
|
|
|
42
35
|
cacheKey: String
|
|
43
36
|
},
|
|
44
37
|
emits: {
|
|
45
|
-
"update:columns": (_columns) => true
|
|
38
|
+
"update:columns": (_columns, _tableColumns) => true
|
|
46
39
|
},
|
|
47
40
|
setup(props, { emit }) {
|
|
48
|
-
const
|
|
41
|
+
const toolRef = vue.ref(null);
|
|
42
|
+
const colItems = vue.ref([]);
|
|
49
43
|
const isCheckAll = vue.ref(false);
|
|
50
44
|
const isIndeterminate = vue.ref(false);
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
const initData = () => {
|
|
54
|
-
const cols = util.getSettingCols(
|
|
45
|
+
const initColItems = () => {
|
|
46
|
+
const { cols, checkAll, indeterminate } = util.getColItems(
|
|
55
47
|
props.columns,
|
|
56
|
-
props.
|
|
57
|
-
|
|
48
|
+
props.locale,
|
|
49
|
+
util.columnsSettingFilter,
|
|
50
|
+
util.getCacheCols(util.getColsCacheKey(props.cacheKey))
|
|
58
51
|
);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
core.eachTree(data.value, (d) => {
|
|
63
|
-
if (!d.checked && checkAll) {
|
|
64
|
-
checkAll = false;
|
|
65
|
-
}
|
|
66
|
-
if (d.checked && !indeterminate) {
|
|
67
|
-
indeterminate = true;
|
|
68
|
-
}
|
|
69
|
-
if (!checkAll && indeterminate) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
isCheckAll.value = data.value.length > 0 && checkAll;
|
|
74
|
-
isIndeterminate.value = !checkAll && indeterminate;
|
|
52
|
+
colItems.value = cols;
|
|
53
|
+
isCheckAll.value = checkAll;
|
|
54
|
+
isIndeterminate.value = indeterminate;
|
|
75
55
|
};
|
|
76
56
|
const updateColumns = () => {
|
|
57
|
+
const colsWidth = util.getCacheColsWidth(props.cacheKey);
|
|
77
58
|
const columns = util.getCheckedColumns(
|
|
78
59
|
props.columns,
|
|
79
|
-
|
|
80
|
-
props.sortable
|
|
60
|
+
colItems.value,
|
|
61
|
+
props.sortable,
|
|
62
|
+
(item) => item.hideInSetting,
|
|
63
|
+
void 0,
|
|
64
|
+
false,
|
|
65
|
+
colsWidth
|
|
81
66
|
);
|
|
82
|
-
|
|
67
|
+
const tableColumns = util.getCheckedColumns(
|
|
68
|
+
props.columns,
|
|
69
|
+
colItems.value,
|
|
70
|
+
props.sortable,
|
|
71
|
+
(item) => item.hideInSetting,
|
|
72
|
+
void 0,
|
|
73
|
+
true,
|
|
74
|
+
colsWidth
|
|
75
|
+
);
|
|
76
|
+
emit("update:columns", columns, tableColumns);
|
|
83
77
|
};
|
|
84
78
|
const cacheSettingCols = () => {
|
|
85
79
|
if (props.cacheKey) {
|
|
86
80
|
localStorage.setItem(
|
|
87
81
|
util.getColsCacheKey(props.cacheKey),
|
|
88
|
-
JSON.stringify(
|
|
82
|
+
JSON.stringify(colItems.value)
|
|
89
83
|
);
|
|
90
84
|
}
|
|
91
85
|
};
|
|
@@ -94,10 +88,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
94
88
|
localStorage.removeItem(util.getColsCacheKey(props.cacheKey));
|
|
95
89
|
}
|
|
96
90
|
};
|
|
97
|
-
const
|
|
91
|
+
const handleCheckedChange = (item, checked) => {
|
|
98
92
|
let checkAll = true;
|
|
99
93
|
let indeterminate = false;
|
|
100
|
-
core.eachTree(
|
|
94
|
+
core.eachTree(colItems.value, (d) => {
|
|
101
95
|
if (d.uid === item.uid) {
|
|
102
96
|
d.checked = checked;
|
|
103
97
|
}
|
|
@@ -111,15 +105,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
111
105
|
return false;
|
|
112
106
|
}
|
|
113
107
|
});
|
|
114
|
-
isCheckAll.value =
|
|
108
|
+
isCheckAll.value = colItems.value.length > 0 && checkAll;
|
|
115
109
|
isIndeterminate.value = !checkAll && indeterminate;
|
|
116
110
|
cacheSettingCols();
|
|
117
111
|
updateColumns();
|
|
118
112
|
};
|
|
119
|
-
const
|
|
113
|
+
const handleCheckAllChange = (checked) => {
|
|
120
114
|
isCheckAll.value = checked;
|
|
121
115
|
isIndeterminate.value = false;
|
|
122
|
-
core.eachTree(
|
|
116
|
+
core.eachTree(colItems.value, (d) => {
|
|
123
117
|
if (d.checked !== checked) {
|
|
124
118
|
d.checked = checked;
|
|
125
119
|
}
|
|
@@ -127,18 +121,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
127
121
|
cacheSettingCols();
|
|
128
122
|
updateColumns();
|
|
129
123
|
};
|
|
130
|
-
const
|
|
131
|
-
cleanSettingCols();
|
|
132
|
-
initData();
|
|
133
|
-
updateColumns();
|
|
134
|
-
};
|
|
135
|
-
const onSortChange = (colItems, parent) => {
|
|
124
|
+
const handleSortChange = (items, parent) => {
|
|
136
125
|
if (!parent) {
|
|
137
|
-
|
|
126
|
+
colItems.value = items;
|
|
138
127
|
} else {
|
|
139
|
-
core.eachTree(
|
|
128
|
+
core.eachTree(colItems.value, (d) => {
|
|
140
129
|
if (d.uid === parent.uid) {
|
|
141
|
-
d.children =
|
|
130
|
+
d.children = items;
|
|
142
131
|
return false;
|
|
143
132
|
}
|
|
144
133
|
});
|
|
@@ -146,8 +135,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
146
135
|
cacheSettingCols();
|
|
147
136
|
updateColumns();
|
|
148
137
|
};
|
|
149
|
-
const
|
|
150
|
-
core.eachTree(
|
|
138
|
+
const handleFixedLeft = (colItem) => {
|
|
139
|
+
core.eachTree(colItems.value, (d) => {
|
|
151
140
|
if (d.uid === colItem.uid) {
|
|
152
141
|
d.fixed = d.fixed === true || d.fixed === "left" ? false : "left";
|
|
153
142
|
return false;
|
|
@@ -156,8 +145,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
156
145
|
cacheSettingCols();
|
|
157
146
|
updateColumns();
|
|
158
147
|
};
|
|
159
|
-
const
|
|
160
|
-
core.eachTree(
|
|
148
|
+
const handleFixedRight = (colItem) => {
|
|
149
|
+
core.eachTree(colItems.value, (d) => {
|
|
161
150
|
if (d.uid === colItem.uid) {
|
|
162
151
|
d.fixed = d.fixed === "right" ? false : "right";
|
|
163
152
|
return false;
|
|
@@ -166,35 +155,37 @@ const _sfc_main = vue.defineComponent({
|
|
|
166
155
|
cacheSettingCols();
|
|
167
156
|
updateColumns();
|
|
168
157
|
};
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
|
|
158
|
+
const handleFixedLeftTooltip = (el) => {
|
|
159
|
+
toolRef.value && toolRef.value.showTooltip(props.locale.columnFixedLeft ?? "", el);
|
|
160
|
+
};
|
|
161
|
+
const handleFixedRightTooltip = (el) => {
|
|
162
|
+
toolRef.value && toolRef.value.showTooltip(props.locale.columnFixedRight ?? "", el);
|
|
172
163
|
};
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
const handleReset = () => {
|
|
165
|
+
cleanSettingCols();
|
|
166
|
+
initColItems();
|
|
167
|
+
updateColumns();
|
|
176
168
|
};
|
|
177
169
|
vue.watch(
|
|
178
|
-
[() => props.columns, () => props.
|
|
170
|
+
[() => props.columns, () => props.locale],
|
|
179
171
|
() => {
|
|
180
|
-
|
|
172
|
+
initColItems();
|
|
181
173
|
},
|
|
182
174
|
{ immediate: true, deep: true }
|
|
183
175
|
);
|
|
184
176
|
return {
|
|
185
|
-
|
|
177
|
+
toolRef,
|
|
178
|
+
colItems,
|
|
186
179
|
isCheckAll,
|
|
187
180
|
isIndeterminate,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
onFixedLeftTooltip,
|
|
197
|
-
onFixedRightTooltip
|
|
181
|
+
handleCheckedChange,
|
|
182
|
+
handleCheckAllChange,
|
|
183
|
+
handleReset,
|
|
184
|
+
handleSortChange,
|
|
185
|
+
handleFixedLeft,
|
|
186
|
+
handleFixedRight,
|
|
187
|
+
handleFixedLeftTooltip,
|
|
188
|
+
handleFixedRightTooltip
|
|
198
189
|
};
|
|
199
190
|
}
|
|
200
191
|
});
|
|
@@ -215,8 +206,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
206
|
const _component_EleTooltip = vue.resolveComponent("EleTooltip");
|
|
216
207
|
const _component_EleTool = vue.resolveComponent("EleTool");
|
|
217
208
|
return vue.openBlock(), vue.createBlock(_component_EleTool, {
|
|
218
|
-
|
|
219
|
-
|
|
209
|
+
ref: "toolRef",
|
|
210
|
+
title: _ctx.locale.columns,
|
|
211
|
+
placement: _ctx.placement,
|
|
212
|
+
clickHideTooltip: true
|
|
220
213
|
}, {
|
|
221
214
|
default: vue.withCtx(() => [
|
|
222
215
|
vue.createVNode(_component_EleTooltip, {
|
|
@@ -243,39 +236,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
236
|
vue.createElementVNode("div", _hoisted_1, [
|
|
244
237
|
vue.createElementVNode("div", _hoisted_2, [
|
|
245
238
|
vue.createVNode(_component_ElCheckbox, {
|
|
246
|
-
label: _ctx.
|
|
239
|
+
label: _ctx.locale.columnTitle,
|
|
247
240
|
modelValue: _ctx.isCheckAll,
|
|
248
241
|
indeterminate: _ctx.isIndeterminate,
|
|
249
|
-
"onUpdate:modelValue": _ctx.
|
|
242
|
+
"onUpdate:modelValue": _ctx.handleCheckAllChange
|
|
250
243
|
}, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
251
244
|
]),
|
|
252
245
|
vue.createElementVNode("div", {
|
|
253
246
|
class: "ele-tool-column-link",
|
|
254
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
255
|
-
}, vue.toDisplayString(_ctx.
|
|
247
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleReset && _ctx.handleReset(...args))
|
|
248
|
+
}, vue.toDisplayString(_ctx.locale.columnReset), 1)
|
|
256
249
|
]),
|
|
257
|
-
_ctx.
|
|
250
|
+
_ctx.colItems.length ? (vue.openBlock(), vue.createBlock(_component_ToolColumnList, {
|
|
258
251
|
key: 0,
|
|
259
|
-
data: _ctx.
|
|
252
|
+
data: _ctx.colItems,
|
|
260
253
|
sortable: _ctx.sortable,
|
|
261
254
|
allowFixed: _ctx.allowFixed,
|
|
262
|
-
onSortChange: _ctx.
|
|
263
|
-
onCheckedChange: _ctx.
|
|
264
|
-
onFixedLeft: _ctx.
|
|
265
|
-
onFixedRight: _ctx.
|
|
266
|
-
onFixedLeftTooltip: _ctx.
|
|
267
|
-
onFixedRightTooltip: _ctx.
|
|
255
|
+
onSortChange: _ctx.handleSortChange,
|
|
256
|
+
onCheckedChange: _ctx.handleCheckedChange,
|
|
257
|
+
onFixedLeft: _ctx.handleFixedLeft,
|
|
258
|
+
onFixedRight: _ctx.handleFixedRight,
|
|
259
|
+
onFixedLeftTooltip: _ctx.handleFixedLeftTooltip,
|
|
260
|
+
onFixedRightTooltip: _ctx.handleFixedRightTooltip
|
|
268
261
|
}, null, 8, ["data", "sortable", "allowFixed", "onSortChange", "onCheckedChange", "onFixedLeft", "onFixedRight", "onFixedLeftTooltip", "onFixedRightTooltip"])) : vue.createCommentVNode("", true)
|
|
269
|
-
], 2)
|
|
270
|
-
vue.createVNode(_component_EleTooltip, {
|
|
271
|
-
trigger: "hover",
|
|
272
|
-
placement: "top",
|
|
273
|
-
teleported: false,
|
|
274
|
-
persistent: false,
|
|
275
|
-
virtualTriggering: true,
|
|
276
|
-
virtualRef: _ctx.virtualRef,
|
|
277
|
-
content: _ctx.tooltipContent
|
|
278
|
-
}, null, 8, ["virtualRef", "content"])
|
|
262
|
+
], 2)
|
|
279
263
|
]),
|
|
280
264
|
default: vue.withCtx(() => [
|
|
281
265
|
vue.createVNode(_component_ElIcon, null, {
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { EleToolInstance, EleTooltipProps } from '../../ele-app/plus';
|
|
2
3
|
import { Columns } from '../../ele-data-table/types';
|
|
3
|
-
import { ColItem } from '../types';
|
|
4
|
+
import { ColItem, TableLocale } from '../types';
|
|
4
5
|
|
|
5
6
|
declare const _default: import('vue').DefineComponent<{
|
|
6
|
-
/** 提示文字 */
|
|
7
|
-
title: StringConstructor;
|
|
8
7
|
/** 提示位置 */
|
|
9
|
-
placement: PropType<
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
untitledText: StringConstructor;
|
|
16
|
-
/** 固定在左侧文字 */
|
|
17
|
-
fixedLeftText: StringConstructor;
|
|
18
|
-
/** 固定在右侧文字 */
|
|
19
|
-
fixedRightText: StringConstructor;
|
|
8
|
+
placement: PropType<EleTooltipProps["placement"]>;
|
|
9
|
+
/** 表格国际化 */
|
|
10
|
+
locale: {
|
|
11
|
+
type: PropType<TableLocale>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
20
14
|
/** 列数据 */
|
|
21
15
|
columns: PropType<Columns>;
|
|
22
16
|
/** 是否开启列拖拽排序 */
|
|
@@ -26,43 +20,36 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
20
|
/** 列配置缓存本地的名称 */
|
|
27
21
|
cacheKey: StringConstructor;
|
|
28
22
|
}, {
|
|
29
|
-
|
|
23
|
+
toolRef: import('vue').Ref<EleToolInstance>;
|
|
24
|
+
colItems: import('vue').Ref<{
|
|
30
25
|
uid: string;
|
|
31
|
-
label?: string
|
|
32
|
-
checked?: boolean
|
|
33
|
-
fixed?:
|
|
26
|
+
label?: string;
|
|
27
|
+
checked?: boolean;
|
|
28
|
+
fixed?: boolean | string;
|
|
34
29
|
children?: any[] | undefined;
|
|
35
|
-
type?: string
|
|
30
|
+
type?: string;
|
|
31
|
+
width?: number | string;
|
|
36
32
|
}[]>;
|
|
37
33
|
isCheckAll: import('vue').Ref<boolean>;
|
|
38
34
|
isIndeterminate: import('vue').Ref<boolean>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
onFixedLeftTooltip: (el: HTMLElement) => void;
|
|
48
|
-
onFixedRightTooltip: (el: HTMLElement) => void;
|
|
35
|
+
handleCheckedChange: (item: ColItem, checked: boolean) => void;
|
|
36
|
+
handleCheckAllChange: (checked: boolean) => void;
|
|
37
|
+
handleReset: () => void;
|
|
38
|
+
handleSortChange: (items: ColItem[], parent?: ColItem) => void;
|
|
39
|
+
handleFixedLeft: (colItem: ColItem) => void;
|
|
40
|
+
handleFixedRight: (colItem: ColItem) => void;
|
|
41
|
+
handleFixedLeftTooltip: (el: HTMLElement) => void;
|
|
42
|
+
handleFixedRightTooltip: (el: HTMLElement) => void;
|
|
49
43
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
'update:columns': (_columns: Columns) => true;
|
|
44
|
+
'update:columns': (_columns: Columns, _tableColumns: Columns) => true;
|
|
51
45
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
-
/** 提示文字 */
|
|
53
|
-
title: StringConstructor;
|
|
54
46
|
/** 提示位置 */
|
|
55
|
-
placement: PropType<
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
untitledText: StringConstructor;
|
|
62
|
-
/** 固定在左侧文字 */
|
|
63
|
-
fixedLeftText: StringConstructor;
|
|
64
|
-
/** 固定在右侧文字 */
|
|
65
|
-
fixedRightText: StringConstructor;
|
|
47
|
+
placement: PropType<EleTooltipProps["placement"]>;
|
|
48
|
+
/** 表格国际化 */
|
|
49
|
+
locale: {
|
|
50
|
+
type: PropType<TableLocale>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
66
53
|
/** 列数据 */
|
|
67
54
|
columns: PropType<Columns>;
|
|
68
55
|
/** 是否开启列拖拽排序 */
|
|
@@ -72,7 +59,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
72
59
|
/** 列配置缓存本地的名称 */
|
|
73
60
|
cacheKey: StringConstructor;
|
|
74
61
|
}>> & {
|
|
75
|
-
"onUpdate:columns"?: ((_columns: Columns) => any) | undefined;
|
|
62
|
+
"onUpdate:columns"?: ((_columns: Columns, _tableColumns: Columns) => any) | undefined;
|
|
76
63
|
}, {
|
|
77
64
|
sortable: boolean;
|
|
78
65
|
allowFixed: boolean;
|