ele-admin-plus 1.2.1-beta.2 → 1.2.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core-components.d.ts +1 -0
- package/es/core-components.js +60 -58
- package/es/ele-admin-layout/components/layout-tabs.d.ts +1 -6
- package/es/ele-admin-layout/components/layout-tabs.js +18 -76
- package/es/ele-admin-layout/index.d.ts +26 -30
- package/es/ele-admin-layout/index.js +7 -2
- package/es/ele-admin-layout/props.d.ts +11 -10
- package/es/ele-admin-layout/types.d.ts +2 -0
- package/es/ele-alert/index.d.ts +14 -14
- package/es/ele-alert/props.d.ts +9 -8
- package/es/ele-app/components/message-body.d.ts +5 -4
- package/es/ele-app/components/message-box-icon.d.ts +7 -6
- package/es/ele-app/el.d.ts +3 -0
- package/es/ele-app/plus.d.ts +21 -0
- package/es/ele-app/style/overwrite/css-var.scss +0 -2
- package/es/ele-app/style/overwrite/index.js +0 -1
- package/es/ele-app/style/overwrite/index.scss +0 -1
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-app/style/scrollbar/css-var.scss +17 -16
- package/es/ele-app/types.d.ts +8 -1
- package/es/ele-avatar-group/index.d.ts +15 -14
- package/es/ele-avatar-group/props.d.ts +10 -7
- package/es/ele-basic-select/index.d.ts +19 -16
- package/es/ele-basic-select/index.js +14 -7
- package/es/ele-basic-select/props.d.ts +11 -6
- package/es/ele-basic-select/props.js +3 -1
- package/es/ele-basic-select/util.d.ts +6 -0
- package/es/ele-basic-select/util.js +13 -0
- package/es/ele-bottom-bar/index.d.ts +13 -6
- package/es/ele-bottom-bar/index.js +37 -15
- package/es/ele-bottom-bar/props.d.ts +5 -2
- package/es/ele-bottom-bar/props.js +3 -1
- package/es/ele-bottom-bar/style/index.scss +5 -0
- package/es/ele-breadcrumb/index.d.ts +3 -3
- package/es/ele-breadcrumb/props.d.ts +1 -1
- package/es/ele-card/index.d.ts +14 -14
- package/es/ele-card/props.d.ts +8 -6
- package/es/ele-check-card/components/card-item.d.ts +3 -2
- package/es/ele-check-card/index.d.ts +6 -6
- package/es/ele-check-card/index.js +8 -3
- package/es/ele-check-card/props.d.ts +3 -2
- package/es/ele-config-provider/index.d.ts +4 -4
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/types.d.ts +1 -0
- package/es/ele-copyable/index.d.ts +10 -10
- package/es/ele-copyable/props.d.ts +7 -5
- package/es/ele-count-up/index.d.ts +1 -1
- package/es/ele-cropper/components/cropper-tools.d.ts +12 -5
- package/es/ele-cropper/components/cropper-tools.js +41 -13
- package/es/ele-cropper/index.d.ts +6 -4
- package/es/ele-cropper/index.js +2 -1
- package/es/ele-cropper/props.d.ts +5 -2
- package/es/ele-cropper/props.js +2 -0
- package/es/ele-cropper/style/index.scss +3 -2
- package/es/ele-cropper/types.d.ts +16 -0
- package/es/ele-cropper-modal/index.d.ts +7 -5
- package/es/ele-cropper-modal/index.js +2 -1
- package/es/ele-cropper-modal/props.d.ts +2 -4
- package/es/ele-data-table/components/table-columns.d.ts +32 -0
- package/es/ele-data-table/components/table-columns.js +114 -0
- package/es/ele-data-table/index.d.ts +223 -41
- package/es/ele-data-table/index.js +202 -120
- package/es/ele-data-table/props.d.ts +22 -26
- package/es/ele-data-table/style/index.scss +1 -1
- package/es/ele-data-table/types.d.ts +2 -0
- package/es/ele-data-table/util.d.ts +1 -45
- package/es/ele-data-table/util.js +2 -106
- package/es/ele-drawer/index.d.ts +22 -22
- package/es/ele-drawer/props.d.ts +13 -12
- package/es/ele-dropdown/components/pro-dropdown.d.ts +237 -0
- package/es/ele-dropdown/components/pro-dropdown.js +204 -0
- package/es/ele-dropdown/index.d.ts +534 -48
- package/es/ele-dropdown/index.js +110 -25
- package/es/ele-dropdown/props.d.ts +120 -25
- package/es/ele-dropdown/props.js +54 -7
- package/es/ele-dropdown/style/index.js +4 -1
- package/es/ele-dropdown/style/index.scss +174 -6
- package/es/ele-edit-tag/index.d.ts +22 -20
- package/es/ele-edit-tag/index.js +10 -2
- package/es/ele-edit-tag/props.d.ts +13 -8
- package/es/ele-edit-tag/props.js +3 -1
- package/es/ele-ellipsis/index.d.ts +5 -4
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-file-list/components/file-grid-item.d.ts +11 -20
- package/es/ele-file-list/components/file-grid-item.js +19 -58
- package/es/ele-file-list/components/file-grid.d.ts +15 -19
- package/es/ele-file-list/components/file-grid.js +16 -39
- package/es/ele-file-list/components/file-table-item.d.ts +11 -20
- package/es/ele-file-list/components/file-table-item.js +19 -58
- package/es/ele-file-list/components/file-table.d.ts +15 -19
- package/es/ele-file-list/components/file-table.js +17 -37
- package/es/ele-file-list/index.d.ts +37 -16
- package/es/ele-file-list/index.js +118 -20
- package/es/ele-file-list/props.d.ts +4 -5
- package/es/ele-file-list/props.js +5 -8
- package/es/ele-file-list/style/index.scss +10 -5
- package/es/ele-file-list/types.d.ts +13 -1
- package/es/ele-icon-select/components/icon-grid.d.ts +9 -7
- package/es/ele-icon-select/index.d.ts +39 -38
- package/es/ele-icon-select/index.js +6 -2
- package/es/ele-icon-select/props.d.ts +18 -14
- package/es/ele-icon-select/props.js +2 -0
- package/es/ele-image-viewer/index.d.ts +120 -0
- package/es/ele-image-viewer/index.js +88 -0
- package/es/ele-image-viewer/props.d.ts +58 -0
- package/es/ele-image-viewer/props.js +35 -0
- package/es/ele-image-viewer/style/css-var.scss +8 -0
- package/es/ele-image-viewer/style/index.js +2 -0
- package/es/ele-image-viewer/style/index.scss +117 -0
- package/es/ele-loading/index.d.ts +4 -4
- package/es/ele-loading/props.d.ts +3 -2
- package/es/ele-map-picker/components/map-view.d.ts +8 -10
- package/es/ele-map-picker/components/map-view.js +1 -0
- package/es/ele-map-picker/index.d.ts +10 -10
- package/es/ele-map-picker/props.d.ts +6 -5
- package/es/ele-map-picker/style/index.scss +1 -1
- package/es/ele-menus/components/item-title.d.ts +48 -0
- package/es/ele-menus/components/item-title.js +108 -0
- package/es/ele-menus/components/menu-items.d.ts +78 -0
- package/es/ele-menus/components/menu-items.js +269 -0
- package/es/ele-menus/index.d.ts +79 -20
- package/es/ele-menus/index.js +280 -210
- package/es/ele-menus/props.d.ts +3 -3
- package/es/ele-menus/style/index.scss +4 -0
- package/es/ele-menus/util.d.ts +1 -62
- package/es/ele-menus/util.js +3 -244
- package/es/ele-modal/index.d.ts +33 -32
- package/es/ele-modal/index.js +30 -64
- package/es/ele-modal/props.d.ts +16 -15
- package/es/ele-modal/util.d.ts +32 -25
- package/es/ele-modal/util.js +239 -132
- package/es/ele-pagination/index.d.ts +18 -6
- package/es/ele-pagination/index.js +3 -2
- package/es/ele-pagination/props.d.ts +8 -2
- package/es/ele-pagination/style/index.scss +70 -0
- package/es/ele-popconfirm/index.d.ts +43 -46
- package/es/ele-popconfirm/props.d.ts +22 -21
- package/es/ele-popover/index.d.ts +33 -36
- package/es/ele-popover/props.d.ts +11 -11
- package/es/ele-popover/props.js +1 -1
- package/es/ele-printer/index.d.ts +8 -8
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/util.d.ts +5 -5
- package/es/ele-printer/util.js +68 -43
- package/es/ele-pro-layout/components/pro-iframe.d.ts +6 -6
- package/es/ele-pro-layout/components/pro-iframe.js +6 -4
- package/es/ele-pro-layout/index.d.ts +44 -48
- package/es/ele-pro-layout/index.js +13 -4
- package/es/ele-pro-layout/props.d.ts +19 -17
- package/es/ele-pro-layout/props.js +3 -3
- package/es/ele-pro-layout/types.d.ts +9 -5
- package/es/ele-pro-layout/util.d.ts +6 -0
- package/es/ele-pro-layout/util.js +12 -0
- package/es/ele-pro-table/components/table-tools.d.ts +405 -35
- package/es/ele-pro-table/components/table-tools.js +225 -143
- package/es/ele-pro-table/components/tool-column-list.d.ts +12 -0
- package/es/ele-pro-table/components/tool-column-list.js +33 -6
- package/es/ele-pro-table/components/tool-column.d.ts +7 -6
- package/es/ele-pro-table/components/tool-column.js +15 -9
- package/es/ele-pro-table/components/tool-export.d.ts +30 -27
- package/es/ele-pro-table/components/tool-export.js +204 -184
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print-body-cell.js +1 -1
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/es/ele-pro-table/components/tool-print-header-cell.js +3 -2
- package/es/ele-pro-table/components/tool-print.d.ts +38 -37
- package/es/ele-pro-table/components/tool-print.js +357 -336
- package/es/ele-pro-table/index.d.ts +1015 -89
- package/es/ele-pro-table/index.js +60 -14
- package/es/ele-pro-table/props.d.ts +24 -27
- package/es/ele-pro-table/props.js +4 -2
- package/es/ele-pro-table/style/index.scss +43 -12
- package/es/ele-pro-table/types.d.ts +54 -0
- package/es/ele-pro-table/util.d.ts +51 -9
- package/es/ele-pro-table/util.js +89 -28
- package/es/ele-qr-code/components/canvas-render.d.ts +67 -0
- package/es/ele-qr-code/components/canvas-render.js +147 -0
- package/es/ele-qr-code/index.d.ts +5 -9
- package/es/ele-qr-code/index.js +33 -136
- package/es/ele-qr-code/props.d.ts +5 -2
- package/es/ele-qr-code/props.js +3 -1
- package/es/ele-qr-code/types.d.ts +5 -0
- package/es/ele-qr-code-svg/index.d.ts +6 -5
- package/es/ele-qr-code-svg/index.js +11 -14
- package/es/ele-segmented/index.d.ts +3 -1
- package/es/ele-segmented/index.js +30 -3
- package/es/ele-segmented/style/index.scss +7 -1
- package/es/ele-split-panel/index.d.ts +7 -7
- package/es/ele-split-panel/props.d.ts +4 -3
- package/es/ele-steps/index.d.ts +10 -10
- package/es/ele-steps/props.d.ts +5 -5
- package/es/ele-tab-tool/index.d.ts +6 -1
- package/es/ele-tab-tool/index.js +44 -3
- package/es/ele-tab-tool/props.d.ts +2 -0
- package/es/ele-tab-tool/props.js +3 -1
- package/es/ele-tab-wrap/components/tab-dropdown.js +9 -26
- package/es/ele-tab-wrap/index.js +21 -2
- package/es/ele-table/index.d.ts +2 -2
- package/es/ele-table/props.d.ts +2 -1
- package/es/ele-table/style/index.scss +1 -2
- package/es/ele-table-select/index.d.ts +24 -22
- package/es/ele-table-select/index.js +5 -2
- package/es/ele-table-select/props.d.ts +11 -7
- package/es/ele-table-select/props.js +2 -0
- package/es/ele-tabs/index.d.ts +39 -52
- package/es/ele-tabs/index.js +290 -118
- package/es/ele-tabs/props.d.ts +11 -30
- package/es/ele-tabs/props.js +4 -2
- package/es/ele-tabs/style/index.scss +186 -170
- package/es/ele-tabs/types.d.ts +25 -11
- package/es/ele-text/index.d.ts +2 -2
- package/es/ele-text/props.d.ts +2 -1
- package/es/ele-tool/index.d.ts +5 -2
- package/es/ele-tool/index.js +5 -3
- package/es/ele-tool/props.d.ts +4 -1
- package/es/ele-tool/props.js +3 -1
- package/es/ele-tool/style/index.scss +13 -0
- package/es/ele-toolbar/index.d.ts +18 -18
- package/es/ele-toolbar/props.d.ts +4 -3
- package/es/ele-tooltip/index.d.ts +27 -26
- package/es/ele-tooltip/props.d.ts +9 -8
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tour/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +19 -19
- package/es/ele-tree-select/index.js +5 -2
- package/es/ele-tree-select/props.d.ts +12 -8
- package/es/ele-tree-select/props.js +3 -1
- package/es/ele-upload-list/components/list-item.d.ts +31 -5
- package/es/ele-upload-list/components/list-item.js +146 -66
- package/es/ele-upload-list/index.d.ts +57 -30
- package/es/ele-upload-list/index.js +180 -97
- package/es/ele-upload-list/props.d.ts +24 -10
- package/es/ele-upload-list/props.js +20 -8
- package/es/ele-upload-list/style/css-var.scss +8 -0
- package/es/ele-upload-list/style/index.js +1 -1
- package/es/ele-upload-list/style/index.scss +426 -132
- package/es/ele-upload-list/types.d.ts +35 -11
- package/es/ele-virtual-table/components/body-cell.d.ts +13 -29
- package/es/ele-virtual-table/components/body-row.d.ts +13 -29
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +6 -6
- package/es/ele-virtual-table/components/footer-row.d.ts +3 -3
- package/es/ele-virtual-table/components/header-cell.d.ts +8 -8
- package/es/ele-virtual-table/components/header-row.d.ts +8 -8
- package/es/ele-virtual-table/index.d.ts +27 -36
- package/es/ele-virtual-table/index.js +8 -6
- package/es/ele-virtual-table/props.d.ts +13 -15
- package/es/ele-watermark/index.d.ts +5 -4
- package/es/ele-watermark/props.d.ts +2 -1
- package/es/ele-xg-player/index.d.ts +3 -3
- package/es/icons/CornerLeftFilled.d.ts +2 -0
- package/es/icons/CornerLeftFilled.js +26 -0
- package/es/icons/CornerRightFilled.d.ts +2 -0
- package/es/icons/CornerRightFilled.js +26 -0
- package/es/icons/EyeOutlined.d.ts +2 -0
- package/es/icons/EyeOutlined.js +30 -0
- package/es/icons/FileOutlined.js +4 -4
- package/es/icons/SizeCompactOutlined.d.ts +2 -0
- package/es/icons/SizeCompactOutlined.js +34 -0
- package/es/icons/SizeMiddleOutlined.d.ts +2 -0
- package/es/icons/SizeMiddleOutlined.js +34 -0
- package/es/icons/SizeSlackOutlined.d.ts +2 -0
- package/es/icons/SizeSlackOutlined.js +34 -0
- package/es/icons/index.d.ts +6 -0
- package/es/icons/index.js +162 -150
- package/es/lang/en_US.js +5 -1
- package/es/lang/zh_CN.js +5 -1
- package/es/lang/zh_TW.js +5 -1
- package/es/style/plus.scss +1 -0
- package/es/style/themes/default.scss +92 -9
- package/es/style/themes/rounded.scss +9 -5
- package/es/style/themes/theme-util.scss +4 -0
- package/es/style/util.scss +10 -3
- package/es/utils/core.d.ts +4 -2
- package/es/utils/hook.d.ts +77 -4
- package/es/utils/hook.js +159 -6
- package/es/utils/menu-util.js +11 -5
- package/es/utils/message-box.js +5 -1
- package/es/utils/message.js +2 -2
- package/lib/core-components.cjs +60 -58
- package/lib/core-components.d.ts +1 -0
- package/lib/ele-admin-layout/components/layout-tabs.cjs +17 -75
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +1 -6
- package/lib/ele-admin-layout/index.cjs +7 -2
- package/lib/ele-admin-layout/index.d.ts +26 -30
- package/lib/ele-admin-layout/props.d.ts +11 -10
- package/lib/ele-admin-layout/types.d.ts +2 -0
- package/lib/ele-alert/index.d.ts +14 -14
- package/lib/ele-alert/props.d.ts +9 -8
- package/lib/ele-app/components/message-body.d.ts +5 -4
- package/lib/ele-app/components/message-box-icon.d.ts +7 -6
- package/lib/ele-app/el.d.ts +3 -0
- package/lib/ele-app/plus.d.ts +21 -0
- package/lib/ele-app/style/overwrite/css-var.scss +0 -2
- package/lib/ele-app/style/overwrite/index.cjs +0 -1
- package/lib/ele-app/style/overwrite/index.scss +0 -1
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-app/style/scrollbar/css-var.scss +17 -16
- package/lib/ele-app/types.d.ts +8 -1
- package/lib/ele-avatar-group/index.d.ts +15 -14
- package/lib/ele-avatar-group/props.d.ts +10 -7
- package/lib/ele-basic-select/index.cjs +14 -7
- package/lib/ele-basic-select/index.d.ts +19 -16
- package/lib/ele-basic-select/props.cjs +3 -1
- package/lib/ele-basic-select/props.d.ts +11 -6
- package/lib/ele-basic-select/util.cjs +13 -0
- package/lib/ele-basic-select/util.d.ts +6 -0
- package/lib/ele-bottom-bar/index.cjs +36 -14
- package/lib/ele-bottom-bar/index.d.ts +13 -6
- package/lib/ele-bottom-bar/props.cjs +3 -1
- package/lib/ele-bottom-bar/props.d.ts +5 -2
- package/lib/ele-bottom-bar/style/index.scss +5 -0
- package/lib/ele-breadcrumb/index.d.ts +3 -3
- package/lib/ele-breadcrumb/props.d.ts +1 -1
- package/lib/ele-card/index.d.ts +14 -14
- package/lib/ele-card/props.d.ts +8 -6
- package/lib/ele-check-card/components/card-item.d.ts +3 -2
- package/lib/ele-check-card/index.cjs +8 -3
- package/lib/ele-check-card/index.d.ts +6 -6
- package/lib/ele-check-card/props.d.ts +3 -2
- package/lib/ele-config-provider/index.d.ts +4 -4
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +1 -0
- package/lib/ele-copyable/index.d.ts +10 -10
- package/lib/ele-copyable/props.d.ts +7 -5
- package/lib/ele-count-up/index.d.ts +1 -1
- package/lib/ele-cropper/components/cropper-tools.cjs +40 -12
- package/lib/ele-cropper/components/cropper-tools.d.ts +12 -5
- package/lib/ele-cropper/index.cjs +2 -1
- package/lib/ele-cropper/index.d.ts +6 -4
- package/lib/ele-cropper/props.cjs +2 -0
- package/lib/ele-cropper/props.d.ts +5 -2
- package/lib/ele-cropper/style/index.scss +3 -2
- package/lib/ele-cropper/types.d.ts +16 -0
- package/lib/ele-cropper-modal/index.cjs +2 -1
- package/lib/ele-cropper-modal/index.d.ts +7 -5
- package/lib/ele-cropper-modal/props.d.ts +2 -4
- package/lib/ele-data-table/components/table-columns.cjs +113 -0
- package/lib/ele-data-table/components/table-columns.d.ts +32 -0
- package/lib/ele-data-table/index.cjs +199 -117
- package/lib/ele-data-table/index.d.ts +223 -41
- package/lib/ele-data-table/props.d.ts +22 -26
- package/lib/ele-data-table/style/index.scss +1 -1
- package/lib/ele-data-table/types.d.ts +2 -0
- package/lib/ele-data-table/util.cjs +0 -104
- package/lib/ele-data-table/util.d.ts +1 -45
- package/lib/ele-drawer/index.d.ts +22 -22
- package/lib/ele-drawer/props.d.ts +13 -12
- package/lib/ele-dropdown/components/pro-dropdown.cjs +203 -0
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +237 -0
- package/lib/ele-dropdown/index.cjs +113 -28
- package/lib/ele-dropdown/index.d.ts +534 -48
- package/lib/ele-dropdown/props.cjs +53 -6
- package/lib/ele-dropdown/props.d.ts +120 -25
- package/lib/ele-dropdown/style/index.cjs +4 -1
- package/lib/ele-dropdown/style/index.scss +174 -6
- package/lib/ele-edit-tag/index.cjs +10 -2
- package/lib/ele-edit-tag/index.d.ts +22 -20
- package/lib/ele-edit-tag/props.cjs +3 -1
- package/lib/ele-edit-tag/props.d.ts +13 -8
- package/lib/ele-ellipsis/index.d.ts +5 -4
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-file-list/components/file-grid-item.cjs +18 -57
- package/lib/ele-file-list/components/file-grid-item.d.ts +11 -20
- package/lib/ele-file-list/components/file-grid.cjs +15 -38
- package/lib/ele-file-list/components/file-grid.d.ts +15 -19
- package/lib/ele-file-list/components/file-table-item.cjs +18 -57
- package/lib/ele-file-list/components/file-table-item.d.ts +11 -20
- package/lib/ele-file-list/components/file-table.cjs +16 -36
- package/lib/ele-file-list/components/file-table.d.ts +15 -19
- package/lib/ele-file-list/index.cjs +117 -19
- package/lib/ele-file-list/index.d.ts +37 -16
- package/lib/ele-file-list/props.cjs +4 -7
- package/lib/ele-file-list/props.d.ts +4 -5
- package/lib/ele-file-list/style/index.scss +10 -5
- package/lib/ele-file-list/types.d.ts +13 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +9 -7
- package/lib/ele-icon-select/index.cjs +9 -5
- package/lib/ele-icon-select/index.d.ts +39 -38
- package/lib/ele-icon-select/props.cjs +2 -0
- package/lib/ele-icon-select/props.d.ts +18 -14
- package/lib/ele-image-viewer/index.cjs +87 -0
- package/lib/ele-image-viewer/index.d.ts +120 -0
- package/lib/ele-image-viewer/props.cjs +35 -0
- package/lib/ele-image-viewer/props.d.ts +58 -0
- package/lib/ele-image-viewer/style/css-var.scss +8 -0
- package/lib/ele-image-viewer/style/index.cjs +3 -0
- package/lib/ele-image-viewer/style/index.scss +117 -0
- package/lib/ele-loading/index.d.ts +4 -4
- package/lib/ele-loading/props.d.ts +3 -2
- package/lib/ele-map-picker/components/map-view.cjs +1 -0
- package/lib/ele-map-picker/components/map-view.d.ts +8 -10
- package/lib/ele-map-picker/index.d.ts +10 -10
- package/lib/ele-map-picker/props.d.ts +6 -5
- package/lib/ele-map-picker/style/index.scss +1 -1
- package/lib/ele-menus/components/item-title.cjs +107 -0
- package/lib/ele-menus/components/item-title.d.ts +48 -0
- package/lib/ele-menus/components/menu-items.cjs +268 -0
- package/lib/ele-menus/components/menu-items.d.ts +78 -0
- package/lib/ele-menus/index.cjs +278 -208
- package/lib/ele-menus/index.d.ts +79 -20
- package/lib/ele-menus/props.d.ts +3 -3
- package/lib/ele-menus/style/index.scss +4 -0
- package/lib/ele-menus/util.cjs +1 -242
- package/lib/ele-menus/util.d.ts +1 -62
- package/lib/ele-modal/index.cjs +28 -62
- package/lib/ele-modal/index.d.ts +33 -32
- package/lib/ele-modal/props.d.ts +16 -15
- package/lib/ele-modal/util.cjs +239 -132
- package/lib/ele-modal/util.d.ts +32 -25
- package/lib/ele-pagination/index.cjs +3 -2
- package/lib/ele-pagination/index.d.ts +18 -6
- package/lib/ele-pagination/props.d.ts +8 -2
- package/lib/ele-pagination/style/index.scss +70 -0
- package/lib/ele-popconfirm/index.d.ts +43 -46
- package/lib/ele-popconfirm/props.d.ts +22 -21
- package/lib/ele-popover/index.d.ts +33 -36
- package/lib/ele-popover/props.cjs +1 -1
- package/lib/ele-popover/props.d.ts +11 -11
- package/lib/ele-printer/index.d.ts +8 -8
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/util.cjs +68 -43
- package/lib/ele-printer/util.d.ts +5 -5
- package/lib/ele-pro-layout/components/pro-iframe.cjs +6 -4
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +6 -6
- package/lib/ele-pro-layout/index.cjs +13 -4
- package/lib/ele-pro-layout/index.d.ts +44 -48
- package/lib/ele-pro-layout/props.cjs +3 -3
- package/lib/ele-pro-layout/props.d.ts +19 -17
- package/lib/ele-pro-layout/types.d.ts +9 -5
- package/lib/ele-pro-layout/util.cjs +12 -0
- package/lib/ele-pro-layout/util.d.ts +6 -0
- package/lib/ele-pro-table/components/table-tools.cjs +223 -141
- package/lib/ele-pro-table/components/table-tools.d.ts +405 -35
- package/lib/ele-pro-table/components/tool-column-list.cjs +32 -5
- package/lib/ele-pro-table/components/tool-column-list.d.ts +12 -0
- package/lib/ele-pro-table/components/tool-column.cjs +14 -8
- package/lib/ele-pro-table/components/tool-column.d.ts +7 -6
- package/lib/ele-pro-table/components/tool-export.cjs +201 -181
- package/lib/ele-pro-table/components/tool-export.d.ts +30 -27
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +1 -1
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +3 -2
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-print.cjs +354 -333
- package/lib/ele-pro-table/components/tool-print.d.ts +38 -37
- package/lib/ele-pro-table/index.cjs +59 -13
- package/lib/ele-pro-table/index.d.ts +1015 -89
- package/lib/ele-pro-table/props.cjs +4 -2
- package/lib/ele-pro-table/props.d.ts +24 -27
- package/lib/ele-pro-table/style/index.scss +43 -12
- package/lib/ele-pro-table/types.d.ts +54 -0
- package/lib/ele-pro-table/util.cjs +89 -28
- package/lib/ele-pro-table/util.d.ts +51 -9
- package/lib/ele-qr-code/components/canvas-render.cjs +146 -0
- package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
- package/lib/ele-qr-code/index.cjs +32 -135
- package/lib/ele-qr-code/index.d.ts +5 -9
- package/lib/ele-qr-code/props.cjs +3 -1
- package/lib/ele-qr-code/props.d.ts +5 -2
- package/lib/ele-qr-code/types.d.ts +5 -0
- package/lib/ele-qr-code-svg/index.cjs +10 -13
- package/lib/ele-qr-code-svg/index.d.ts +6 -5
- package/lib/ele-segmented/index.cjs +29 -2
- package/lib/ele-segmented/index.d.ts +3 -1
- package/lib/ele-segmented/style/index.scss +7 -1
- package/lib/ele-split-panel/index.d.ts +7 -7
- package/lib/ele-split-panel/props.d.ts +4 -3
- package/lib/ele-steps/index.d.ts +10 -10
- package/lib/ele-steps/props.d.ts +5 -5
- package/lib/ele-tab-tool/index.cjs +43 -2
- package/lib/ele-tab-tool/index.d.ts +6 -1
- package/lib/ele-tab-tool/props.cjs +3 -1
- package/lib/ele-tab-tool/props.d.ts +2 -0
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +8 -25
- package/lib/ele-tab-wrap/index.cjs +20 -1
- package/lib/ele-table/index.d.ts +2 -2
- package/lib/ele-table/props.d.ts +2 -1
- package/lib/ele-table/style/index.scss +1 -2
- package/lib/ele-table-select/index.cjs +20 -17
- package/lib/ele-table-select/index.d.ts +24 -22
- package/lib/ele-table-select/props.cjs +2 -0
- package/lib/ele-table-select/props.d.ts +11 -7
- package/lib/ele-tabs/index.cjs +288 -116
- package/lib/ele-tabs/index.d.ts +39 -52
- package/lib/ele-tabs/props.cjs +4 -2
- package/lib/ele-tabs/props.d.ts +11 -30
- package/lib/ele-tabs/style/index.scss +186 -170
- package/lib/ele-tabs/types.d.ts +25 -11
- package/lib/ele-text/index.d.ts +2 -2
- package/lib/ele-text/props.d.ts +2 -1
- package/lib/ele-tool/index.cjs +5 -3
- package/lib/ele-tool/index.d.ts +5 -2
- package/lib/ele-tool/props.cjs +3 -1
- package/lib/ele-tool/props.d.ts +4 -1
- package/lib/ele-tool/style/index.scss +13 -0
- package/lib/ele-toolbar/index.d.ts +18 -18
- package/lib/ele-toolbar/props.d.ts +4 -3
- package/lib/ele-tooltip/index.d.ts +27 -26
- package/lib/ele-tooltip/props.d.ts +9 -8
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tour/index.d.ts +1 -1
- package/lib/ele-tree-select/index.cjs +4 -1
- package/lib/ele-tree-select/index.d.ts +19 -19
- package/lib/ele-tree-select/props.cjs +3 -1
- package/lib/ele-tree-select/props.d.ts +12 -8
- package/lib/ele-upload-list/components/list-item.cjs +144 -64
- package/lib/ele-upload-list/components/list-item.d.ts +31 -5
- package/lib/ele-upload-list/index.cjs +178 -95
- package/lib/ele-upload-list/index.d.ts +57 -30
- package/lib/ele-upload-list/props.cjs +20 -8
- package/lib/ele-upload-list/props.d.ts +24 -10
- package/lib/ele-upload-list/style/css-var.scss +8 -0
- package/lib/ele-upload-list/style/index.cjs +1 -1
- package/lib/ele-upload-list/style/index.scss +426 -132
- package/lib/ele-upload-list/types.d.ts +35 -11
- package/lib/ele-virtual-table/components/body-cell.d.ts +13 -29
- package/lib/ele-virtual-table/components/body-row.d.ts +13 -29
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/lib/ele-virtual-table/components/cell-filter.d.ts +6 -6
- package/lib/ele-virtual-table/components/footer-row.d.ts +3 -3
- package/lib/ele-virtual-table/components/header-cell.d.ts +8 -8
- package/lib/ele-virtual-table/components/header-row.d.ts +8 -8
- package/lib/ele-virtual-table/index.cjs +7 -5
- package/lib/ele-virtual-table/index.d.ts +27 -36
- package/lib/ele-virtual-table/props.d.ts +13 -15
- package/lib/ele-watermark/index.d.ts +5 -4
- package/lib/ele-watermark/props.d.ts +2 -1
- package/lib/ele-xg-player/index.d.ts +3 -3
- package/lib/icons/CornerLeftFilled.cjs +25 -0
- package/lib/icons/CornerLeftFilled.d.ts +2 -0
- package/lib/icons/CornerRightFilled.cjs +25 -0
- package/lib/icons/CornerRightFilled.d.ts +2 -0
- package/lib/icons/EyeOutlined.cjs +29 -0
- package/lib/icons/EyeOutlined.d.ts +2 -0
- package/lib/icons/FileOutlined.cjs +4 -4
- package/lib/icons/SizeCompactOutlined.cjs +33 -0
- package/lib/icons/SizeCompactOutlined.d.ts +2 -0
- package/lib/icons/SizeMiddleOutlined.cjs +33 -0
- package/lib/icons/SizeMiddleOutlined.d.ts +2 -0
- package/lib/icons/SizeSlackOutlined.cjs +33 -0
- package/lib/icons/SizeSlackOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +12 -0
- package/lib/icons/index.d.ts +6 -0
- package/lib/lang/en_US.cjs +5 -1
- package/lib/lang/zh_CN.cjs +5 -1
- package/lib/lang/zh_TW.cjs +5 -1
- package/lib/style/plus.scss +1 -0
- package/lib/style/themes/default.scss +92 -9
- package/lib/style/themes/rounded.scss +9 -5
- package/lib/style/themes/theme-util.scss +4 -0
- package/lib/style/util.scss +10 -3
- package/lib/utils/core.d.ts +4 -2
- package/lib/utils/hook.cjs +158 -5
- package/lib/utils/hook.d.ts +77 -4
- package/lib/utils/menu-util.cjs +9 -3
- package/lib/utils/message-box.cjs +4 -0
- package/lib/utils/message.cjs +1 -1
- package/package.json +38 -37
- package/typings/global.d.ts +1 -0
- package/es/ele-app/style/overwrite/image-viewer/css-var.scss +0 -8
- package/es/ele-app/style/overwrite/image-viewer/index.js +0 -1
- package/es/ele-app/style/overwrite/image-viewer/index.scss +0 -10
- package/es/ele-tabs/components/tab-title.d.ts +0 -52
- package/es/ele-tabs/components/tab-title.js +0 -115
- package/lib/ele-app/style/overwrite/image-viewer/css-var.scss +0 -8
- package/lib/ele-app/style/overwrite/image-viewer/index.cjs +0 -2
- package/lib/ele-app/style/overwrite/image-viewer/index.scss +0 -10
- package/lib/ele-tabs/components/tab-title.cjs +0 -114
- package/lib/ele-tabs/components/tab-title.d.ts +0 -52
- /package/es/{ele-app/style/overwrite/image-viewer → ele-image-viewer/style}/index.d.ts +0 -0
- /package/lib/{ele-app/style/overwrite/image-viewer → ele-image-viewer/style}/index.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ElProgressProps, ElImageProps } from '../../ele-app/el';
|
|
3
|
-
import { UploadItem, UploadLocale } from '../types';
|
|
3
|
+
import { UploadItem, UploadLocale, ImageObjectUrl, ListType } from '../types';
|
|
4
4
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<{
|
|
6
6
|
/** 数据 */
|
|
@@ -12,22 +12,36 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
12
|
readonly: BooleanConstructor;
|
|
13
13
|
/** 是否禁用 */
|
|
14
14
|
disabled: BooleanConstructor;
|
|
15
|
-
/**
|
|
15
|
+
/** 是否可拖拽排序 */
|
|
16
|
+
sortable: BooleanConstructor;
|
|
17
|
+
/** 图片属性 */
|
|
16
18
|
imageProps: PropType<ElImageProps>;
|
|
17
19
|
/** 进度条属性 */
|
|
18
20
|
progressProps: PropType<ElProgressProps>;
|
|
21
|
+
/** 预读图片文件 */
|
|
22
|
+
imageObjectUrls: PropType<ImageObjectUrl[]>;
|
|
23
|
+
/** 是否开启底部预览和修改的操作按钮 */
|
|
24
|
+
tools: BooleanConstructor;
|
|
25
|
+
/** 列表样式 */
|
|
26
|
+
listType: PropType<ListType>;
|
|
19
27
|
/** 国际化 */
|
|
20
28
|
locale: {
|
|
21
29
|
type: PropType<Partial<UploadLocale>>;
|
|
22
30
|
required: true;
|
|
23
31
|
};
|
|
24
32
|
}, {
|
|
25
|
-
|
|
33
|
+
imageUrl: import('vue').ComputedRef<string | undefined>;
|
|
34
|
+
uploadProgress: import('vue').ComputedRef<number>;
|
|
26
35
|
handleItemClick: () => void;
|
|
36
|
+
handleRemove: () => void;
|
|
37
|
+
handleEdit: () => void;
|
|
38
|
+
handlePreview: () => void;
|
|
27
39
|
handleRetry: () => void;
|
|
28
40
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
41
|
itemClick: (_item: UploadItem) => true;
|
|
30
42
|
remove: (_item: UploadItem) => true;
|
|
43
|
+
edit: (_item: UploadItem) => true;
|
|
44
|
+
preview: (_item: UploadItem) => true;
|
|
31
45
|
retry: (_item: UploadItem) => true;
|
|
32
46
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
47
|
/** 数据 */
|
|
@@ -39,21 +53,33 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
39
53
|
readonly: BooleanConstructor;
|
|
40
54
|
/** 是否禁用 */
|
|
41
55
|
disabled: BooleanConstructor;
|
|
42
|
-
/**
|
|
56
|
+
/** 是否可拖拽排序 */
|
|
57
|
+
sortable: BooleanConstructor;
|
|
58
|
+
/** 图片属性 */
|
|
43
59
|
imageProps: PropType<ElImageProps>;
|
|
44
60
|
/** 进度条属性 */
|
|
45
61
|
progressProps: PropType<ElProgressProps>;
|
|
62
|
+
/** 预读图片文件 */
|
|
63
|
+
imageObjectUrls: PropType<ImageObjectUrl[]>;
|
|
64
|
+
/** 是否开启底部预览和修改的操作按钮 */
|
|
65
|
+
tools: BooleanConstructor;
|
|
66
|
+
/** 列表样式 */
|
|
67
|
+
listType: PropType<ListType>;
|
|
46
68
|
/** 国际化 */
|
|
47
69
|
locale: {
|
|
48
70
|
type: PropType<Partial<UploadLocale>>;
|
|
49
71
|
required: true;
|
|
50
72
|
};
|
|
51
73
|
}>> & {
|
|
74
|
+
onEdit?: ((_item: UploadItem) => any) | undefined;
|
|
52
75
|
onRetry?: ((_item: UploadItem) => any) | undefined;
|
|
53
|
-
onItemClick?: ((_item: UploadItem) => any) | undefined;
|
|
54
76
|
onRemove?: ((_item: UploadItem) => any) | undefined;
|
|
77
|
+
onPreview?: ((_item: UploadItem) => any) | undefined;
|
|
78
|
+
onItemClick?: ((_item: UploadItem) => any) | undefined;
|
|
55
79
|
}, {
|
|
56
80
|
disabled: boolean;
|
|
57
81
|
readonly: boolean;
|
|
82
|
+
sortable: boolean;
|
|
83
|
+
tools: boolean;
|
|
58
84
|
}, {}>;
|
|
59
85
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, renderSlot,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createVNode, withCtx, createElementVNode, toDisplayString, createBlock, mergeProps, withModifiers, createCommentVNode } from "vue";
|
|
2
2
|
import { ElImage, ElProgress, ElIcon } from "element-plus";
|
|
3
|
-
import { CloseOutlined, SyncOutlined, FileOutlined } from "../../icons";
|
|
4
|
-
import EleTooltip from "../../ele-tooltip/index";
|
|
3
|
+
import { CloseOutlined, EyeOutlined, EditOutlined, SyncOutlined, FileOutlined } from "../../icons";
|
|
5
4
|
const _sfc_main = defineComponent({
|
|
6
5
|
name: "ListItem",
|
|
7
6
|
components: {
|
|
8
7
|
CloseOutlined,
|
|
8
|
+
EyeOutlined,
|
|
9
|
+
EditOutlined,
|
|
9
10
|
SyncOutlined,
|
|
10
11
|
FileOutlined,
|
|
11
12
|
ElImage,
|
|
12
13
|
ElProgress,
|
|
13
|
-
ElIcon
|
|
14
|
-
EleTooltip
|
|
14
|
+
ElIcon
|
|
15
15
|
},
|
|
16
16
|
props: {
|
|
17
17
|
/** 数据 */
|
|
@@ -23,10 +23,18 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
readonly: Boolean,
|
|
24
24
|
/** 是否禁用 */
|
|
25
25
|
disabled: Boolean,
|
|
26
|
-
/**
|
|
26
|
+
/** 是否可拖拽排序 */
|
|
27
|
+
sortable: Boolean,
|
|
28
|
+
/** 图片属性 */
|
|
27
29
|
imageProps: Object,
|
|
28
30
|
/** 进度条属性 */
|
|
29
31
|
progressProps: Object,
|
|
32
|
+
/** 预读图片文件 */
|
|
33
|
+
imageObjectUrls: Array,
|
|
34
|
+
/** 是否开启底部预览和修改的操作按钮 */
|
|
35
|
+
tools: Boolean,
|
|
36
|
+
/** 列表样式 */
|
|
37
|
+
listType: String,
|
|
30
38
|
/** 国际化 */
|
|
31
39
|
locale: {
|
|
32
40
|
type: Object,
|
|
@@ -36,19 +44,52 @@ const _sfc_main = defineComponent({
|
|
|
36
44
|
emits: {
|
|
37
45
|
itemClick: (_item) => true,
|
|
38
46
|
remove: (_item) => true,
|
|
47
|
+
edit: (_item) => true,
|
|
48
|
+
preview: (_item) => true,
|
|
39
49
|
retry: (_item) => true
|
|
40
50
|
},
|
|
41
51
|
setup(props, { emit }) {
|
|
52
|
+
const imageUrl = computed(() => {
|
|
53
|
+
var _a;
|
|
54
|
+
if (props.item.url) {
|
|
55
|
+
return props.item.url;
|
|
56
|
+
}
|
|
57
|
+
if (!props.item.file || !props.imageObjectUrls) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
return (_a = props.imageObjectUrls.find((d) => d.file === props.item.file)) == null ? void 0 : _a.url;
|
|
61
|
+
});
|
|
62
|
+
const uploadProgress = computed(() => {
|
|
63
|
+
const progress = props.item.progress;
|
|
64
|
+
if (!progress || progress < 0) {
|
|
65
|
+
return 0;
|
|
66
|
+
}
|
|
67
|
+
return progress > 100 ? 100 : progress;
|
|
68
|
+
});
|
|
69
|
+
const handleItemClick = () => {
|
|
70
|
+
emit("itemClick", props.item);
|
|
71
|
+
};
|
|
42
72
|
const handleRemove = () => {
|
|
43
73
|
emit("remove", props.item);
|
|
44
74
|
};
|
|
45
|
-
const
|
|
46
|
-
emit("
|
|
75
|
+
const handleEdit = () => {
|
|
76
|
+
emit("edit", props.item);
|
|
77
|
+
};
|
|
78
|
+
const handlePreview = () => {
|
|
79
|
+
emit("preview", props.item);
|
|
47
80
|
};
|
|
48
81
|
const handleRetry = () => {
|
|
49
82
|
emit("retry", props.item);
|
|
50
83
|
};
|
|
51
|
-
return {
|
|
84
|
+
return {
|
|
85
|
+
imageUrl,
|
|
86
|
+
uploadProgress,
|
|
87
|
+
handleItemClick,
|
|
88
|
+
handleRemove,
|
|
89
|
+
handleEdit,
|
|
90
|
+
handlePreview,
|
|
91
|
+
handleRetry
|
|
92
|
+
};
|
|
52
93
|
}
|
|
53
94
|
});
|
|
54
95
|
const _export_sfc = (sfc, props) => {
|
|
@@ -60,91 +101,130 @@ const _export_sfc = (sfc, props) => {
|
|
|
60
101
|
};
|
|
61
102
|
const _hoisted_1 = ["title"];
|
|
62
103
|
const _hoisted_2 = {
|
|
63
|
-
key:
|
|
104
|
+
key: 0,
|
|
64
105
|
class: "ele-upload-thumbnail"
|
|
65
106
|
};
|
|
66
|
-
const _hoisted_3 = {
|
|
67
|
-
|
|
107
|
+
const _hoisted_3 = { class: "ele-upload-thumbnail-text" };
|
|
108
|
+
const _hoisted_4 = {
|
|
109
|
+
key: 0,
|
|
68
110
|
class: "ele-upload-progress"
|
|
69
111
|
};
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
|
|
112
|
+
const _hoisted_5 = { class: "ele-upload-text" };
|
|
113
|
+
const _hoisted_6 = ["title"];
|
|
114
|
+
const _hoisted_7 = { class: "ele-upload-tool-text" };
|
|
115
|
+
const _hoisted_8 = {
|
|
116
|
+
key: 1,
|
|
73
117
|
class: "ele-upload-tools"
|
|
74
118
|
};
|
|
119
|
+
const _hoisted_9 = ["title"];
|
|
120
|
+
const _hoisted_10 = { class: "ele-upload-tool-text" };
|
|
121
|
+
const _hoisted_11 = ["title"];
|
|
122
|
+
const _hoisted_12 = { class: "ele-upload-tool-text" };
|
|
123
|
+
const _hoisted_13 = ["title"];
|
|
124
|
+
const _hoisted_14 = {
|
|
125
|
+
key: 3,
|
|
126
|
+
class: "ele-upload-handle"
|
|
127
|
+
};
|
|
75
128
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
|
-
const _component_ElImage = resolveComponent("ElImage");
|
|
77
129
|
const _component_FileOutlined = resolveComponent("FileOutlined");
|
|
78
130
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
79
|
-
const
|
|
131
|
+
const _component_ElImage = resolveComponent("ElImage");
|
|
80
132
|
const _component_ElProgress = resolveComponent("ElProgress");
|
|
81
133
|
const _component_SyncOutlined = resolveComponent("SyncOutlined");
|
|
82
|
-
const
|
|
134
|
+
const _component_EyeOutlined = resolveComponent("EyeOutlined");
|
|
135
|
+
const _component_EditOutlined = resolveComponent("EditOutlined");
|
|
136
|
+
const _component_CloseOutlined = resolveComponent("CloseOutlined");
|
|
83
137
|
return openBlock(), createElementBlock("div", {
|
|
84
138
|
title: _ctx.item.name,
|
|
85
139
|
class: "ele-upload-item",
|
|
86
|
-
onClick: _cache[
|
|
140
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleItemClick && _ctx.handleItemClick(...args))
|
|
87
141
|
}, [
|
|
88
|
-
renderSlot(_ctx.$slots, "thumbnail", {
|
|
89
|
-
_ctx.item
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}), null, 16, ["src"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
95
|
-
createVNode(_component_ElIcon, null, {
|
|
142
|
+
renderSlot(_ctx.$slots, "thumbnail", {
|
|
143
|
+
item: _ctx.item,
|
|
144
|
+
imageUrl: _ctx.imageUrl
|
|
145
|
+
}, () => [
|
|
146
|
+
_ctx.listType === "file" || !_ctx.imageUrl ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
147
|
+
createVNode(_component_ElIcon, { class: "ele-upload-thumbnail-icon" }, {
|
|
96
148
|
default: withCtx(() => [
|
|
97
149
|
createVNode(_component_FileOutlined)
|
|
98
150
|
]),
|
|
99
151
|
_: 1
|
|
100
|
-
})
|
|
101
|
-
|
|
152
|
+
}),
|
|
153
|
+
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.item.name || _ctx.item.url), 1)
|
|
154
|
+
])) : (openBlock(), createBlock(_component_ElImage, mergeProps({
|
|
155
|
+
key: 1,
|
|
156
|
+
fit: "contain",
|
|
157
|
+
class: "ele-upload-image"
|
|
158
|
+
}, _ctx.imageProps || {}, { src: _ctx.imageUrl }), null, 16, ["src"]))
|
|
102
159
|
]),
|
|
160
|
+
_ctx.item.status === "uploading" || _ctx.item.status === "exception" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
161
|
+
renderSlot(_ctx.$slots, "progress", { item: _ctx.item }, () => [
|
|
162
|
+
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.item.status == "exception" ? _ctx.locale.exception : _ctx.locale.uploading), 1),
|
|
163
|
+
createVNode(_component_ElProgress, mergeProps({
|
|
164
|
+
showText: false,
|
|
165
|
+
strokeWidth: _ctx.listType === "file" ? 2 : void 0,
|
|
166
|
+
status: _ctx.item.status === "exception" ? "exception" : void 0,
|
|
167
|
+
class: "ele-upload-progress-bar"
|
|
168
|
+
}, _ctx.progressProps || {}, { percentage: _ctx.uploadProgress }), null, 16, ["strokeWidth", "status", "percentage"]),
|
|
169
|
+
!_ctx.disabled && _ctx.item.status === "exception" ? (openBlock(), createElementBlock("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
title: _ctx.locale.retry,
|
|
172
|
+
class: "ele-upload-tool ele-upload-retry",
|
|
173
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleRetry && _ctx.handleRetry(...args), ["stop"]))
|
|
174
|
+
}, [
|
|
175
|
+
createVNode(_component_ElIcon, { class: "ele-upload-tool-icon" }, {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createVNode(_component_SyncOutlined)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}),
|
|
181
|
+
createElementVNode("div", _hoisted_7, toDisplayString(_ctx.locale.retry), 1)
|
|
182
|
+
], 8, _hoisted_6)) : createCommentVNode("", true)
|
|
183
|
+
])
|
|
184
|
+
])) : _ctx.tools && !_ctx.readonly && !_ctx.disabled && !_ctx.item.readonly ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
185
|
+
createElementVNode("div", {
|
|
186
|
+
title: _ctx.locale.preview,
|
|
187
|
+
class: "ele-upload-tool",
|
|
188
|
+
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handlePreview && _ctx.handlePreview(...args), ["stop"]))
|
|
189
|
+
}, [
|
|
190
|
+
createVNode(_component_ElIcon, { class: "ele-upload-tool-icon" }, {
|
|
191
|
+
default: withCtx(() => [
|
|
192
|
+
createVNode(_component_EyeOutlined)
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}),
|
|
196
|
+
createElementVNode("div", _hoisted_10, toDisplayString(_ctx.locale.preview), 1)
|
|
197
|
+
], 8, _hoisted_9),
|
|
198
|
+
createElementVNode("div", {
|
|
199
|
+
title: _ctx.locale.edit,
|
|
200
|
+
class: "ele-upload-tool",
|
|
201
|
+
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.handleEdit && _ctx.handleEdit(...args), ["stop"]))
|
|
202
|
+
}, [
|
|
203
|
+
createVNode(_component_ElIcon, { class: "ele-upload-tool-icon" }, {
|
|
204
|
+
default: withCtx(() => [
|
|
205
|
+
createVNode(_component_EditOutlined)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}),
|
|
209
|
+
createElementVNode("div", _hoisted_12, toDisplayString(_ctx.locale.edit), 1)
|
|
210
|
+
], 8, _hoisted_11)
|
|
211
|
+
])) : createCommentVNode("", true),
|
|
103
212
|
!_ctx.readonly && !_ctx.disabled && !_ctx.item.readonly ? (openBlock(), createElementBlock("div", {
|
|
104
|
-
key:
|
|
105
|
-
|
|
106
|
-
|
|
213
|
+
key: 2,
|
|
214
|
+
title: _ctx.locale.remove,
|
|
215
|
+
class: "ele-upload-tool ele-upload-remove",
|
|
216
|
+
onClick: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleRemove && _ctx.handleRemove(...args), ["stop"]))
|
|
107
217
|
}, [
|
|
108
218
|
renderSlot(_ctx.$slots, "remove", { item: _ctx.item }, () => [
|
|
109
|
-
createVNode(_component_ElIcon,
|
|
219
|
+
createVNode(_component_ElIcon, { class: "ele-upload-tool-icon" }, {
|
|
110
220
|
default: withCtx(() => [
|
|
111
|
-
createVNode(_component_CloseOutlined
|
|
221
|
+
createVNode(_component_CloseOutlined)
|
|
112
222
|
]),
|
|
113
223
|
_: 1
|
|
114
224
|
})
|
|
115
225
|
])
|
|
116
|
-
])) : createCommentVNode("", true),
|
|
117
|
-
_ctx.
|
|
118
|
-
renderSlot(_ctx.$slots, "progress", { item: _ctx.item }, () => [
|
|
119
|
-
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.item.status == "exception" ? _ctx.locale.exception : _ctx.locale.uploading), 1),
|
|
120
|
-
createVNode(_component_ElProgress, mergeProps({ showText: false }, _ctx.progressProps || {}, {
|
|
121
|
-
percentage: _ctx.item.progress,
|
|
122
|
-
status: _ctx.item.status === "exception" ? "exception" : void 0
|
|
123
|
-
}), null, 16, ["percentage", "status"]),
|
|
124
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
125
|
-
_ctx.item.status === "exception" ? (openBlock(), createElementBlock("div", {
|
|
126
|
-
key: 0,
|
|
127
|
-
class: "ele-upload-retry",
|
|
128
|
-
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleRetry && _ctx.handleRetry(...args), ["stop"]))
|
|
129
|
-
}, [
|
|
130
|
-
createVNode(_component_EleTooltip, {
|
|
131
|
-
content: _ctx.locale.retry,
|
|
132
|
-
placement: "top"
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx(() => [
|
|
135
|
-
createVNode(_component_ElIcon, null, {
|
|
136
|
-
default: withCtx(() => [
|
|
137
|
-
createVNode(_component_SyncOutlined)
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
})
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["content"])
|
|
144
|
-
])) : createCommentVNode("", true)
|
|
145
|
-
])) : createCommentVNode("", true)
|
|
146
|
-
])
|
|
147
|
-
])) : createCommentVNode("", true)
|
|
226
|
+
], 8, _hoisted_13)) : createCommentVNode("", true),
|
|
227
|
+
_ctx.sortable ? (openBlock(), createElementBlock("div", _hoisted_14)) : createCommentVNode("", true)
|
|
148
228
|
], 8, _hoisted_1);
|
|
149
229
|
}
|
|
150
230
|
const listItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { ElImageInstance } from '../ele-app/el';
|
|
2
1
|
import { UploadItem, UploadLocale } from './types';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<{
|
|
5
|
-
modelValue:
|
|
6
|
-
type: import('vue').PropType<UploadItem[]>;
|
|
7
|
-
required: boolean;
|
|
8
|
-
};
|
|
4
|
+
modelValue: import('vue').PropType<UploadItem[]>;
|
|
9
5
|
readonly: BooleanConstructor;
|
|
10
6
|
disabled: BooleanConstructor;
|
|
11
7
|
preview: {
|
|
@@ -19,44 +15,65 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
19
15
|
type: StringConstructor;
|
|
20
16
|
default: string;
|
|
21
17
|
};
|
|
22
|
-
itemStyle: import('vue').PropType<
|
|
23
|
-
buttonStyle:
|
|
18
|
+
itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue | false>;
|
|
19
|
+
buttonStyle: {
|
|
20
|
+
type: import('vue').PropType<import('../ele-app/types').StyleValue | false>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
24
23
|
sortable: {
|
|
25
|
-
type: import('vue').PropType<boolean | Record<
|
|
24
|
+
type: import('vue').PropType<boolean | Record<keyof any, any>>;
|
|
26
25
|
default: boolean;
|
|
27
26
|
};
|
|
28
27
|
imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
29
28
|
progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
|
|
30
|
-
previewProps: import('vue').PropType<import('../ele-app/
|
|
31
|
-
|
|
29
|
+
previewProps: import('vue').PropType<import('../ele-app/plus').EleImageViewerProps>;
|
|
30
|
+
tools: BooleanConstructor;
|
|
31
|
+
listType: import('vue').PropType<import('./types').ListType>;
|
|
32
|
+
beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
|
|
33
|
+
beforeItemEdit: import('vue').PropType<import('./types').BeforeItemEdit>;
|
|
32
34
|
locale: import('vue').PropType<Partial<UploadLocale>>;
|
|
33
35
|
}, {
|
|
36
|
+
ownSlots: string[];
|
|
34
37
|
lang: import('vue').ComputedRef<UploadLocale>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
previewVisible: import('vue').Ref<boolean>;
|
|
39
|
+
previewImages: import('vue').Ref<string[]>;
|
|
40
|
+
previewCurrentIndex: import('vue').Ref<number>;
|
|
41
|
+
imageObjectUrls: import('vue').Ref<{
|
|
42
|
+
file: {
|
|
43
|
+
readonly lastModified: number;
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly webkitRelativePath: string;
|
|
46
|
+
readonly size: number;
|
|
47
|
+
readonly type: string;
|
|
48
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
49
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
50
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
51
|
+
text: () => Promise<string>;
|
|
52
|
+
};
|
|
53
|
+
url: string;
|
|
54
|
+
}[]>;
|
|
55
|
+
uploadInputRef: import('vue').Ref<HTMLInputElement | null>;
|
|
42
56
|
uploadEnable: import('vue').ComputedRef<boolean>;
|
|
43
|
-
draggableProps: import('vue').ComputedRef<Record<string | number | symbol, any>>;
|
|
44
57
|
updateModelValue: (value: UploadItem[]) => void;
|
|
45
58
|
handleUpload: (file: File) => boolean;
|
|
46
|
-
handleItemRemove: (item: UploadItem) => void;
|
|
47
59
|
handleItemClick: (item: UploadItem) => void;
|
|
60
|
+
handleItemRemove: (item: UploadItem) => void;
|
|
61
|
+
handleItemEdit: (item: UploadItem) => void;
|
|
62
|
+
handleItemPreview: (item: UploadItem) => void;
|
|
48
63
|
handleItemRetry: (item: UploadItem) => void;
|
|
64
|
+
handleInputChange: (e: Event) => void;
|
|
65
|
+
handleUploadClick: (e: MouseEvent) => void;
|
|
66
|
+
openImagePreview: (urls: string[], index: number) => void;
|
|
49
67
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
68
|
'update:modelValue': (_value: UploadItem[]) => boolean;
|
|
51
69
|
itemClick: (_item: UploadItem) => boolean;
|
|
52
70
|
upload: (_item: UploadItem) => boolean;
|
|
53
71
|
remove: (_item: UploadItem) => boolean;
|
|
54
72
|
retry: (_item: UploadItem) => boolean;
|
|
73
|
+
editUpload: (_result: import('./types').EditUploadResult) => boolean;
|
|
74
|
+
preview: (_item: UploadItem) => boolean;
|
|
55
75
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
-
modelValue:
|
|
57
|
-
type: import('vue').PropType<UploadItem[]>;
|
|
58
|
-
required: boolean;
|
|
59
|
-
};
|
|
76
|
+
modelValue: import('vue').PropType<UploadItem[]>;
|
|
60
77
|
readonly: BooleanConstructor;
|
|
61
78
|
disabled: BooleanConstructor;
|
|
62
79
|
preview: {
|
|
@@ -70,30 +87,40 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
87
|
type: StringConstructor;
|
|
71
88
|
default: string;
|
|
72
89
|
};
|
|
73
|
-
itemStyle: import('vue').PropType<
|
|
74
|
-
buttonStyle:
|
|
90
|
+
itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue | false>;
|
|
91
|
+
buttonStyle: {
|
|
92
|
+
type: import('vue').PropType<import('../ele-app/types').StyleValue | false>;
|
|
93
|
+
default: null;
|
|
94
|
+
};
|
|
75
95
|
sortable: {
|
|
76
|
-
type: import('vue').PropType<boolean | Record<
|
|
96
|
+
type: import('vue').PropType<boolean | Record<keyof any, any>>;
|
|
77
97
|
default: boolean;
|
|
78
98
|
};
|
|
79
99
|
imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
|
|
80
100
|
progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
|
|
81
|
-
previewProps: import('vue').PropType<import('../ele-app/
|
|
82
|
-
|
|
101
|
+
previewProps: import('vue').PropType<import('../ele-app/plus').EleImageViewerProps>;
|
|
102
|
+
tools: BooleanConstructor;
|
|
103
|
+
listType: import('vue').PropType<import('./types').ListType>;
|
|
104
|
+
beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
|
|
105
|
+
beforeItemEdit: import('vue').PropType<import('./types').BeforeItemEdit>;
|
|
83
106
|
locale: import('vue').PropType<Partial<UploadLocale>>;
|
|
84
107
|
}>> & {
|
|
85
108
|
"onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;
|
|
86
109
|
onItemClick?: ((_item: UploadItem) => any) | undefined;
|
|
87
110
|
onRemove?: ((_item: UploadItem) => any) | undefined;
|
|
111
|
+
onPreview?: ((_item: UploadItem) => any) | undefined;
|
|
88
112
|
onRetry?: ((_item: UploadItem) => any) | undefined;
|
|
89
113
|
onUpload?: ((_item: UploadItem) => any) | undefined;
|
|
114
|
+
onEditUpload?: ((_result: import('./types').EditUploadResult) => any) | undefined;
|
|
90
115
|
}, {
|
|
116
|
+
drag: boolean;
|
|
91
117
|
disabled: boolean;
|
|
92
118
|
readonly: boolean;
|
|
119
|
+
sortable: boolean | Record<string | number | symbol, any>;
|
|
93
120
|
multiple: boolean;
|
|
94
121
|
preview: boolean;
|
|
95
|
-
sortable: boolean | Record<string | number | symbol, any>;
|
|
96
|
-
drag: boolean;
|
|
97
122
|
accept: string;
|
|
123
|
+
tools: boolean;
|
|
124
|
+
buttonStyle: false | Partial<import('vue').CSSProperties>;
|
|
98
125
|
}, {}>;
|
|
99
126
|
export default _default;
|