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
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComp
|
|
|
2
2
|
import { ElTreeV2 } from "element-plus";
|
|
3
3
|
import { findTree } from "../utils/core";
|
|
4
4
|
import EleBasicSelect from "../ele-basic-select/index";
|
|
5
|
-
import { isEmptyValue, valueIsChanged } from "../ele-basic-select/util";
|
|
5
|
+
import { useFormValidate, isEmptyValue, valueIsChanged } from "../ele-basic-select/util";
|
|
6
6
|
import { getModelValue, getNormalSelectedItems, checkSelectedItems, getTreeSelectedItems, isCheckAll } from "./util";
|
|
7
7
|
import { treeSelectProps, treeSelectEmits } from "./props";
|
|
8
8
|
const _sfc_main = defineComponent({
|
|
@@ -11,6 +11,7 @@ const _sfc_main = defineComponent({
|
|
|
11
11
|
props: treeSelectProps,
|
|
12
12
|
emits: treeSelectEmits,
|
|
13
13
|
setup(props, { emit }) {
|
|
14
|
+
const { validateChange } = useFormValidate();
|
|
14
15
|
const selectRef = ref(null);
|
|
15
16
|
const treeRef = ref(null);
|
|
16
17
|
const selectVisible = ref(false);
|
|
@@ -133,7 +134,7 @@ const _sfc_main = defineComponent({
|
|
|
133
134
|
const label = item[treeOptions.value.label];
|
|
134
135
|
return label != null && label.includes(keywords);
|
|
135
136
|
};
|
|
136
|
-
const
|
|
137
|
+
const handleSelectFilter = (keywords) => {
|
|
137
138
|
treeRef.value && treeRef.value.filter(keywords);
|
|
138
139
|
};
|
|
139
140
|
const focusSearchInput = () => {
|
|
@@ -142,19 +143,20 @@ const _sfc_main = defineComponent({
|
|
|
142
143
|
const updateModelValue = (modelValue) => {
|
|
143
144
|
if (valueIsChanged(modelValue, props.modelValue, props.multiple)) {
|
|
144
145
|
emit("update:modelValue", modelValue);
|
|
146
|
+
validateChange();
|
|
145
147
|
emit("change", modelValue);
|
|
146
148
|
}
|
|
147
149
|
};
|
|
148
150
|
const updateVisible = (visible) => {
|
|
149
151
|
if (visible) {
|
|
150
|
-
|
|
152
|
+
handleSelectFilter("");
|
|
151
153
|
}
|
|
152
154
|
if (selectVisible.value !== visible) {
|
|
153
155
|
selectVisible.value = visible;
|
|
154
156
|
emit("visibleChange", visible);
|
|
155
157
|
}
|
|
156
158
|
};
|
|
157
|
-
const
|
|
159
|
+
const handleSelectRemove = (item) => {
|
|
158
160
|
treeRef.value && treeRef.value.setChecked(item.value, false);
|
|
159
161
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
160
162
|
selectedItems.value = getMultipleSelected(keys);
|
|
@@ -163,18 +165,18 @@ const _sfc_main = defineComponent({
|
|
|
163
165
|
);
|
|
164
166
|
emit("removeTag", item.value);
|
|
165
167
|
};
|
|
166
|
-
const
|
|
168
|
+
const handleSelectClear = () => {
|
|
167
169
|
updateModelValue(props.multiple ? [] : null);
|
|
168
170
|
updateVisible(false);
|
|
169
171
|
emit("clear");
|
|
170
172
|
};
|
|
171
|
-
const
|
|
173
|
+
const handleSelectFocus = (e) => {
|
|
172
174
|
emit("focus", e);
|
|
173
175
|
};
|
|
174
|
-
const
|
|
176
|
+
const handleSelectBlur = (e) => {
|
|
175
177
|
emit("blur", e);
|
|
176
178
|
};
|
|
177
|
-
const
|
|
179
|
+
const handleTreeClick = (item, _node, e) => {
|
|
178
180
|
var _a, _b, _c;
|
|
179
181
|
e.stopPropagation();
|
|
180
182
|
const valueKey = treeOptions.value.value;
|
|
@@ -240,7 +242,7 @@ const _sfc_main = defineComponent({
|
|
|
240
242
|
);
|
|
241
243
|
}
|
|
242
244
|
};
|
|
243
|
-
const
|
|
245
|
+
const handleTreeCheck = () => {
|
|
244
246
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
245
247
|
selectedItems.value = getMultipleSelected(keys);
|
|
246
248
|
updateModelValue(
|
|
@@ -248,10 +250,10 @@ const _sfc_main = defineComponent({
|
|
|
248
250
|
);
|
|
249
251
|
focusSearchInput();
|
|
250
252
|
};
|
|
251
|
-
const
|
|
253
|
+
const handleTreeExpand = () => {
|
|
252
254
|
focusSearchInput();
|
|
253
255
|
};
|
|
254
|
-
const
|
|
256
|
+
const handleTreeCollapse = () => {
|
|
255
257
|
focusSearchInput();
|
|
256
258
|
};
|
|
257
259
|
watch(
|
|
@@ -353,15 +355,15 @@ const _sfc_main = defineComponent({
|
|
|
353
355
|
updatePopover,
|
|
354
356
|
treeFilter,
|
|
355
357
|
updateVisible,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
358
|
+
handleSelectFilter,
|
|
359
|
+
handleSelectRemove,
|
|
360
|
+
handleSelectClear,
|
|
361
|
+
handleSelectFocus,
|
|
362
|
+
handleSelectBlur,
|
|
363
|
+
handleTreeClick,
|
|
364
|
+
handleTreeCheck,
|
|
365
|
+
handleTreeExpand,
|
|
366
|
+
handleTreeCollapse
|
|
365
367
|
};
|
|
366
368
|
}
|
|
367
369
|
});
|
|
@@ -398,15 +400,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
398
400
|
popperClass: _ctx.selectPopperClass,
|
|
399
401
|
selectStyle: _ctx.selectStyle,
|
|
400
402
|
inputStyle: _ctx.inputStyle,
|
|
403
|
+
selectTagsStyle: _ctx.selectTagsStyle,
|
|
401
404
|
selectedLabel: _ctx.selectedLabel,
|
|
402
405
|
selected: _ctx.selectedItems.filter((d) => !d.hide),
|
|
403
406
|
visible: _ctx.selectVisible,
|
|
404
407
|
"onUpdate:visible": _ctx.updateVisible,
|
|
405
|
-
onFilterChange: _ctx.
|
|
406
|
-
onRemoveTag: _ctx.
|
|
407
|
-
onClear: _ctx.
|
|
408
|
-
onFocus: _ctx.
|
|
409
|
-
onBlur: _ctx.
|
|
408
|
+
onFilterChange: _ctx.handleSelectFilter,
|
|
409
|
+
onRemoveTag: _ctx.handleSelectRemove,
|
|
410
|
+
onClear: _ctx.handleSelectClear,
|
|
411
|
+
onFocus: _ctx.handleSelectFocus,
|
|
412
|
+
onBlur: _ctx.handleSelectBlur
|
|
410
413
|
}, createSlots({
|
|
411
414
|
default: withCtx(() => [
|
|
412
415
|
createVNode(_component_ElTreeV2, mergeProps({
|
|
@@ -419,10 +422,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
419
422
|
showCheckbox: !!_ctx.multiple,
|
|
420
423
|
checkOnClickNode: false,
|
|
421
424
|
defaultCheckedKeys: _ctx.multiple ? _ctx.modelValue : void 0,
|
|
422
|
-
onCheck: _ctx.
|
|
423
|
-
onNodeClick: _ctx.
|
|
424
|
-
onNodeExpand: _ctx.
|
|
425
|
-
onNodeCollapse: _ctx.
|
|
425
|
+
onCheck: _ctx.handleTreeCheck,
|
|
426
|
+
onNodeClick: _ctx.handleTreeClick,
|
|
427
|
+
onNodeExpand: _ctx.handleTreeExpand,
|
|
428
|
+
onNodeCollapse: _ctx.handleTreeCollapse
|
|
426
429
|
}), {
|
|
427
430
|
default: withCtx((slotProps) => [
|
|
428
431
|
createElementVNode("span", {
|
|
@@ -449,7 +452,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
449
452
|
]),
|
|
450
453
|
key: "0"
|
|
451
454
|
} : void 0
|
|
452
|
-
]), 1032, ["value", "multiple", "disabled", "size", "clearable", "placeholder", "maxTagCount", "maxTagTextLength", "tagType", "automaticDropdown", "filterable", "teleported", "persistent", "placement", "transition", "popperWidth", "popperOptions", "popperClass", "selectStyle", "inputStyle", "selectedLabel", "selected", "visible", "onUpdate:visible", "onFilterChange", "onRemoveTag", "onClear", "onFocus", "onBlur"]);
|
|
455
|
+
]), 1032, ["value", "multiple", "disabled", "size", "clearable", "placeholder", "maxTagCount", "maxTagTextLength", "tagType", "automaticDropdown", "filterable", "teleported", "persistent", "placement", "transition", "popperWidth", "popperOptions", "popperClass", "selectStyle", "inputStyle", "selectTagsStyle", "selectedLabel", "selected", "visible", "onUpdate:visible", "onFilterChange", "onRemoveTag", "onClear", "onFocus", "onBlur"]);
|
|
453
456
|
}
|
|
454
457
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
455
458
|
export {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { StyleValue } from '../ele-app/types';
|
|
3
|
+
import { ElInputProps, ElTagProps, ElTreeV2Props } from '../ele-app/el';
|
|
4
|
+
import { EleTooltipProps } from '../ele-app/plus';
|
|
3
5
|
import { SelectValue, SingleValue } from '../ele-basic-select/types';
|
|
4
6
|
import { ShowCheckedStrategy } from './types';
|
|
5
7
|
|
|
@@ -17,13 +19,13 @@ export declare const treeSelectProps: {
|
|
|
17
19
|
/** 是否禁用 */
|
|
18
20
|
disabled: BooleanConstructor;
|
|
19
21
|
/** 尺寸 */
|
|
20
|
-
size: PropType<
|
|
22
|
+
size: PropType<ElInputProps["size"]>;
|
|
21
23
|
/** 是否支持清除 */
|
|
22
24
|
clearable: BooleanConstructor;
|
|
23
25
|
/** 无选中时提示文本 */
|
|
24
26
|
placeholder: StringConstructor;
|
|
25
27
|
/** 缓存数据 */
|
|
26
|
-
cacheData: PropType<
|
|
28
|
+
cacheData: PropType<ElTreeV2Props["data"]>;
|
|
27
29
|
/** 树配置 */
|
|
28
30
|
treeProps: {
|
|
29
31
|
type: PropType<ElTreeV2Props>;
|
|
@@ -39,7 +41,7 @@ export declare const treeSelectProps: {
|
|
|
39
41
|
maxTagTextLength: NumberConstructor;
|
|
40
42
|
/** 多选标签类型 */
|
|
41
43
|
tagType: {
|
|
42
|
-
type: PropType<
|
|
44
|
+
type: PropType<ElTagProps["type"]>;
|
|
43
45
|
default: string;
|
|
44
46
|
};
|
|
45
47
|
/** 是否在输入框获得焦点后自动弹出选项菜单 */
|
|
@@ -58,7 +60,7 @@ export declare const treeSelectProps: {
|
|
|
58
60
|
};
|
|
59
61
|
/** 下拉框位置 */
|
|
60
62
|
placement: {
|
|
61
|
-
type: PropType<
|
|
63
|
+
type: PropType<EleTooltipProps["placement"]>;
|
|
62
64
|
default: string;
|
|
63
65
|
};
|
|
64
66
|
/** 下拉框渐变动画 */
|
|
@@ -67,15 +69,17 @@ export declare const treeSelectProps: {
|
|
|
67
69
|
default: string;
|
|
68
70
|
};
|
|
69
71
|
/** popper.js 参数 */
|
|
70
|
-
popperOptions: PropType<
|
|
72
|
+
popperOptions: PropType<EleTooltipProps["popperOptions"]>;
|
|
71
73
|
/** 下拉框类名 */
|
|
72
74
|
popperClass: StringConstructor;
|
|
73
75
|
/** 下拉框宽度 */
|
|
74
76
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
75
77
|
/** 自定义样式 */
|
|
76
|
-
selectStyle: PropType<
|
|
78
|
+
selectStyle: PropType<StyleValue>;
|
|
77
79
|
/** 自定义输入框样式 */
|
|
78
|
-
inputStyle: PropType<
|
|
80
|
+
inputStyle: PropType<StyleValue>;
|
|
81
|
+
/** 自定义多选标签容器样式 */
|
|
82
|
+
selectTagsStyle: PropType<StyleValue>;
|
|
79
83
|
};
|
|
80
84
|
export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
|
|
81
85
|
/**
|
|
@@ -22,9 +22,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
}, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
handleRemove: () => void;
|
|
26
|
+
handleItemClick: () => void;
|
|
27
|
+
handleRetry: () => void;
|
|
28
28
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
29
|
itemClick: (_item: UploadItem) => true;
|
|
30
30
|
remove: (_item: UploadItem) => true;
|
|
@@ -39,16 +39,16 @@ const _sfc_main = defineComponent({
|
|
|
39
39
|
retry: (_item) => true
|
|
40
40
|
},
|
|
41
41
|
setup(props, { emit }) {
|
|
42
|
-
const
|
|
42
|
+
const handleRemove = () => {
|
|
43
43
|
emit("remove", props.item);
|
|
44
44
|
};
|
|
45
|
-
const
|
|
45
|
+
const handleItemClick = () => {
|
|
46
46
|
emit("itemClick", props.item);
|
|
47
47
|
};
|
|
48
|
-
const
|
|
48
|
+
const handleRetry = () => {
|
|
49
49
|
emit("retry", props.item);
|
|
50
50
|
};
|
|
51
|
-
return {
|
|
51
|
+
return { handleRemove, handleItemClick, handleRetry };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
const _export_sfc = (sfc, props) => {
|
|
@@ -83,7 +83,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83
83
|
return openBlock(), createElementBlock("div", {
|
|
84
84
|
title: _ctx.item.name,
|
|
85
85
|
class: "ele-upload-item",
|
|
86
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
86
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleItemClick && _ctx.handleItemClick(...args))
|
|
87
87
|
}, [
|
|
88
88
|
renderSlot(_ctx.$slots, "thumbnail", { item: _ctx.item }, () => [
|
|
89
89
|
_ctx.item.url ? (openBlock(), createBlock(_component_ElImage, mergeProps({
|
|
@@ -103,7 +103,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
103
|
!_ctx.readonly && !_ctx.disabled && !_ctx.item.readonly ? (openBlock(), createElementBlock("div", {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "ele-upload-remove",
|
|
106
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.
|
|
106
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleRemove && _ctx.handleRemove(...args), ["stop"]))
|
|
107
107
|
}, [
|
|
108
108
|
renderSlot(_ctx.$slots, "remove", { item: _ctx.item }, () => [
|
|
109
109
|
createVNode(_component_ElIcon, null, {
|
|
@@ -125,7 +125,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
125
125
|
_ctx.item.status === "exception" ? (openBlock(), createElementBlock("div", {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "ele-upload-retry",
|
|
128
|
-
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.
|
|
128
|
+
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleRetry && _ctx.handleRetry(...args), ["stop"]))
|
|
129
129
|
}, [
|
|
130
130
|
createVNode(_component_EleTooltip, {
|
|
131
131
|
content: _ctx.locale.retry,
|
|
@@ -19,33 +19,32 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
-
itemStyle: import('vue').PropType<
|
|
23
|
-
buttonStyle: import('vue').PropType<
|
|
22
|
+
itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
23
|
+
buttonStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
24
24
|
sortable: {
|
|
25
|
-
type: import('vue').PropType<boolean | Record<
|
|
25
|
+
type: import('vue').PropType<boolean | Record<keyof any, any>>;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
29
29
|
progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
|
|
30
30
|
previewProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
31
|
-
/** 当前图片地址 */
|
|
32
31
|
locale: import('vue').PropType<Partial<UploadLocale>>;
|
|
33
32
|
}, {
|
|
34
33
|
lang: import('vue').ComputedRef<UploadLocale>;
|
|
35
34
|
previewRef: import('vue').Ref<ElImageInstance>;
|
|
36
35
|
previewOption: {
|
|
37
36
|
visible: boolean;
|
|
38
|
-
current?: string
|
|
37
|
+
current?: string;
|
|
39
38
|
currentIndex: number;
|
|
40
39
|
images: string[];
|
|
41
40
|
};
|
|
42
41
|
uploadEnable: import('vue').ComputedRef<boolean>;
|
|
43
42
|
draggableProps: import('vue').ComputedRef<Record<string | number | symbol, any>>;
|
|
44
43
|
updateModelValue: (value: UploadItem[]) => void;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
handleUpload: (file: File) => boolean;
|
|
45
|
+
handleItemRemove: (item: UploadItem) => void;
|
|
46
|
+
handleItemClick: (item: UploadItem) => void;
|
|
47
|
+
handleItemRetry: (item: UploadItem) => void;
|
|
49
48
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
49
|
'update:modelValue': (_value: UploadItem[]) => boolean;
|
|
51
50
|
itemClick: (_item: UploadItem) => boolean;
|
|
@@ -70,16 +69,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
69
|
type: StringConstructor;
|
|
71
70
|
default: string;
|
|
72
71
|
};
|
|
73
|
-
itemStyle: import('vue').PropType<
|
|
74
|
-
buttonStyle: import('vue').PropType<
|
|
72
|
+
itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
73
|
+
buttonStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
75
74
|
sortable: {
|
|
76
|
-
type: import('vue').PropType<boolean | Record<
|
|
75
|
+
type: import('vue').PropType<boolean | Record<keyof any, any>>;
|
|
77
76
|
default: boolean;
|
|
78
77
|
};
|
|
79
78
|
imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
80
79
|
progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
|
|
81
80
|
previewProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
82
|
-
/** 当前图片地址 */
|
|
83
81
|
locale: import('vue').PropType<Partial<UploadLocale>>;
|
|
84
82
|
}>> & {
|
|
85
83
|
"onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;
|
|
@@ -51,7 +51,7 @@ const _sfc_main = defineComponent({
|
|
|
51
51
|
const updateModelValue = (value) => {
|
|
52
52
|
emit("update:modelValue", value);
|
|
53
53
|
};
|
|
54
|
-
const
|
|
54
|
+
const handleUpload = (file) => {
|
|
55
55
|
if (!uploadEnable.value || props.disabled) {
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
@@ -63,15 +63,15 @@ const _sfc_main = defineComponent({
|
|
|
63
63
|
file
|
|
64
64
|
};
|
|
65
65
|
if (file.type.startsWith("image")) {
|
|
66
|
-
item.url =
|
|
66
|
+
item.url = URL.createObjectURL(file);
|
|
67
67
|
}
|
|
68
68
|
emit("upload", item);
|
|
69
69
|
return false;
|
|
70
70
|
};
|
|
71
|
-
const
|
|
71
|
+
const handleItemRemove = (item) => {
|
|
72
72
|
emit("remove", item);
|
|
73
73
|
};
|
|
74
|
-
const
|
|
74
|
+
const handleItemClick = (item) => {
|
|
75
75
|
if (props.preview && item.url && props.modelValue != null) {
|
|
76
76
|
const temp = props.modelValue.filter((d) => !!d.url);
|
|
77
77
|
const i = temp.findIndex((t) => t.key === item.key);
|
|
@@ -92,7 +92,7 @@ const _sfc_main = defineComponent({
|
|
|
92
92
|
}
|
|
93
93
|
emit("itemClick", item);
|
|
94
94
|
};
|
|
95
|
-
const
|
|
95
|
+
const handleItemRetry = (item) => {
|
|
96
96
|
emit("retry", item);
|
|
97
97
|
};
|
|
98
98
|
onDeactivated(() => {
|
|
@@ -105,10 +105,10 @@ const _sfc_main = defineComponent({
|
|
|
105
105
|
uploadEnable,
|
|
106
106
|
draggableProps,
|
|
107
107
|
updateModelValue,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
handleUpload,
|
|
109
|
+
handleItemRemove,
|
|
110
|
+
handleItemClick,
|
|
111
|
+
handleItemRetry
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
});
|
|
@@ -140,9 +140,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
class: normalizeClass({
|
|
141
141
|
"ele-draggable": _ctx.sortable && !_ctx.readonly && !_ctx.disabled && _ctx.limit !== 1
|
|
142
142
|
}),
|
|
143
|
-
onItemClick: _ctx.
|
|
144
|
-
onRemove: _ctx.
|
|
145
|
-
onRetry: _ctx.
|
|
143
|
+
onItemClick: _ctx.handleItemClick,
|
|
144
|
+
onRemove: _ctx.handleItemRemove,
|
|
145
|
+
onRetry: _ctx.handleItemRetry
|
|
146
146
|
}, createSlots({ _: 2 }, [
|
|
147
147
|
renderList(Object.keys(_ctx.$slots), (name) => {
|
|
148
148
|
return {
|
|
@@ -167,7 +167,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167
167
|
multiple: _ctx.multiple,
|
|
168
168
|
disabled: _ctx.disabled,
|
|
169
169
|
showUploadList: false,
|
|
170
|
-
beforeUpload: _ctx.
|
|
170
|
+
beforeUpload: _ctx.handleUpload
|
|
171
171
|
}, {
|
|
172
172
|
default: withCtx(() => [
|
|
173
173
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { StyleValue } from '../ele-app/types';
|
|
2
3
|
import { ElProgressProps, ElImageProps } from '../ele-app/el';
|
|
3
4
|
import { UploadItem, UploadLocale } from './types';
|
|
4
5
|
|
|
@@ -32,12 +33,12 @@ export declare const uploadListProps: {
|
|
|
32
33
|
default: string;
|
|
33
34
|
};
|
|
34
35
|
/** 自定义条目样式 */
|
|
35
|
-
itemStyle: PropType<
|
|
36
|
+
itemStyle: PropType<StyleValue>;
|
|
36
37
|
/** 自定义上传按钮样式 */
|
|
37
|
-
buttonStyle: PropType<
|
|
38
|
+
buttonStyle: PropType<StyleValue>;
|
|
38
39
|
/** 是否开启拖拽排序 */
|
|
39
40
|
sortable: {
|
|
40
|
-
type: PropType<boolean | Record<
|
|
41
|
+
type: PropType<boolean | Record<keyof any, any>>;
|
|
41
42
|
default: boolean;
|
|
42
43
|
};
|
|
43
44
|
/** 自定义图片属性 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { StyleValues } from '../../ele-app/types';
|
|
3
|
-
import { DataItem, Column } from '../../ele-data-table/types';
|
|
3
|
+
import { DataItem, Column, TableSize, CellClass, CellStyle, SpanMethod, ShowOverflowTooltip } from '../../ele-data-table/types';
|
|
4
4
|
import { BodyColumn, CustomRenderProps, ColSize } from '../types';
|
|
5
5
|
|
|
6
6
|
declare const _default: import('vue').DefineComponent<{
|
|
@@ -30,21 +30,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
32
|
/** 单元格类名自定义 */
|
|
33
|
-
bodyCellClass: PropType<
|
|
33
|
+
bodyCellClass: PropType<CellClass>;
|
|
34
34
|
/** 单元格样式自定义 */
|
|
35
|
-
bodyCellStyle: PropType<
|
|
35
|
+
bodyCellStyle: PropType<CellStyle>;
|
|
36
36
|
/** 单元格合并行列方法 */
|
|
37
|
-
spanMethod: PropType<
|
|
38
|
-
row: DataItem;
|
|
39
|
-
rowIndex: number;
|
|
40
|
-
column: import('element-plus').TableColumnCtx<DataItem>;
|
|
41
|
-
columnIndex: number;
|
|
42
|
-
}) => number[] | {
|
|
43
|
-
rowspan: number;
|
|
44
|
-
colspan: number;
|
|
45
|
-
} | undefined) | undefined>;
|
|
37
|
+
spanMethod: PropType<SpanMethod>;
|
|
46
38
|
/** 溢出提示组件全局属性 */
|
|
47
|
-
tableTooltipProps: PropType<
|
|
39
|
+
tableTooltipProps: PropType<ShowOverflowTooltip>;
|
|
48
40
|
/** 序号列起始编号 */
|
|
49
41
|
pageIndex: NumberConstructor;
|
|
50
42
|
/** 表格行高 */
|
|
@@ -54,7 +46,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
54
46
|
/** 多选当前行是否禁用 */
|
|
55
47
|
isDisabled: BooleanConstructor;
|
|
56
48
|
/** 表格尺寸 */
|
|
57
|
-
tableSize: PropType<
|
|
49
|
+
tableSize: PropType<TableSize>;
|
|
58
50
|
/** 树表格展开图标的列 */
|
|
59
51
|
expandColumnKey: StringConstructor;
|
|
60
52
|
/** 树表格当前行是否有子级 */
|
|
@@ -76,14 +68,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
76
68
|
cellText: import('vue').ComputedRef<string | undefined>;
|
|
77
69
|
isExpandCol: import('vue').ComputedRef<boolean>;
|
|
78
70
|
renderOpt: import('vue').ComputedRef<CustomRenderProps>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
handleTextClick: (e: MouseEvent) => void;
|
|
72
|
+
handleCheckedChange: (checked: boolean) => void;
|
|
73
|
+
handleExpandChange: () => void;
|
|
74
|
+
handleClick: (e: MouseEvent) => void;
|
|
75
|
+
handleDblclick: (e: MouseEvent) => void;
|
|
76
|
+
handleContextmenu: (e: MouseEvent) => void;
|
|
77
|
+
handleMouseenter: (e: MouseEvent) => void;
|
|
78
|
+
handleMouseleave: (e: MouseEvent) => void;
|
|
87
79
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
88
80
|
/** 多选框选中改变事件 */
|
|
89
81
|
checkedChange: (_checked: boolean) => true;
|
|
@@ -126,21 +118,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
126
118
|
required: true;
|
|
127
119
|
};
|
|
128
120
|
/** 单元格类名自定义 */
|
|
129
|
-
bodyCellClass: PropType<
|
|
121
|
+
bodyCellClass: PropType<CellClass>;
|
|
130
122
|
/** 单元格样式自定义 */
|
|
131
|
-
bodyCellStyle: PropType<
|
|
123
|
+
bodyCellStyle: PropType<CellStyle>;
|
|
132
124
|
/** 单元格合并行列方法 */
|
|
133
|
-
spanMethod: PropType<
|
|
134
|
-
row: DataItem;
|
|
135
|
-
rowIndex: number;
|
|
136
|
-
column: import('element-plus').TableColumnCtx<DataItem>;
|
|
137
|
-
columnIndex: number;
|
|
138
|
-
}) => number[] | {
|
|
139
|
-
rowspan: number;
|
|
140
|
-
colspan: number;
|
|
141
|
-
} | undefined) | undefined>;
|
|
125
|
+
spanMethod: PropType<SpanMethod>;
|
|
142
126
|
/** 溢出提示组件全局属性 */
|
|
143
|
-
tableTooltipProps: PropType<
|
|
127
|
+
tableTooltipProps: PropType<ShowOverflowTooltip>;
|
|
144
128
|
/** 序号列起始编号 */
|
|
145
129
|
pageIndex: NumberConstructor;
|
|
146
130
|
/** 表格行高 */
|
|
@@ -150,7 +134,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
150
134
|
/** 多选当前行是否禁用 */
|
|
151
135
|
isDisabled: BooleanConstructor;
|
|
152
136
|
/** 表格尺寸 */
|
|
153
|
-
tableSize: PropType<
|
|
137
|
+
tableSize: PropType<TableSize>;
|
|
154
138
|
/** 树表格展开图标的列 */
|
|
155
139
|
expandColumnKey: StringConstructor;
|
|
156
140
|
/** 树表格当前行是否有子级 */
|