ele-admin-plus 1.2.1-beta.3 → 1.2.1-beta.5
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.js +7 -2
- package/es/ele-admin-layout/types.d.ts +2 -0
- 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/date-picker/index.scss +13 -11
- 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/scrollbar/css-var.scss +17 -16
- package/es/ele-app/types.d.ts +8 -1
- package/es/ele-basic-select/index.d.ts +2 -2
- package/es/ele-bottom-bar/index.d.ts +9 -2
- package/es/ele-bottom-bar/index.js +37 -15
- package/es/ele-bottom-bar/props.d.ts +2 -0
- package/es/ele-bottom-bar/props.js +3 -1
- package/es/ele-bottom-bar/style/index.scss +5 -0
- package/es/ele-check-card/index.d.ts +2 -2
- package/es/ele-cropper/components/cropper-tools.d.ts +9 -3
- package/es/ele-cropper/components/cropper-tools.js +42 -14
- package/es/ele-cropper/index.d.ts +3 -1
- package/es/ele-cropper/index.js +2 -1
- package/es/ele-cropper/props.d.ts +3 -1
- 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 +3 -1
- package/es/ele-cropper-modal/index.js +2 -1
- package/es/ele-cropper-modal/props.d.ts +1 -0
- package/es/ele-data-table/components/table-columns.d.ts +32 -0
- package/es/ele-data-table/components/table-columns.js +124 -0
- package/es/ele-data-table/index.d.ts +327 -23
- package/es/ele-data-table/index.js +202 -120
- package/es/ele-data-table/props.d.ts +14 -18
- package/es/ele-data-table/style/index.scss +0 -4
- package/es/ele-data-table/types.d.ts +5 -2
- package/es/ele-data-table/util.d.ts +1 -45
- package/es/ele-data-table/util.js +2 -110
- package/es/ele-drawer/index.d.ts +9 -8
- package/es/ele-drawer/index.js +8 -2
- package/es/ele-drawer/props.d.ts +2 -2
- package/es/ele-dropdown/components/dropdown-menu-item.d.ts +39 -0
- package/es/ele-dropdown/components/dropdown-menu-item.js +132 -0
- package/es/ele-dropdown/components/dropdown-menus.d.ts +44 -0
- package/es/ele-dropdown/components/dropdown-menus.js +111 -0
- package/es/ele-dropdown/components/pro-dropdown.d.ts +238 -0
- package/es/ele-dropdown/components/pro-dropdown.js +205 -0
- package/es/ele-dropdown/index.d.ts +521 -33
- package/es/ele-dropdown/index.js +147 -66
- package/es/ele-dropdown/props.d.ts +109 -15
- package/es/ele-dropdown/props.js +54 -7
- package/es/ele-dropdown/style/index.js +4 -1
- package/es/ele-dropdown/style/index.scss +226 -7
- package/es/ele-dropdown/types.d.ts +2 -2
- package/es/ele-edit-tag/index.d.ts +2 -2
- 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 +33 -12
- 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 +1 -1
- package/es/ele-icon-select/index.d.ts +2 -2
- 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-map-picker/components/map-view.d.ts +18 -18
- 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 +77 -18
- package/es/ele-menus/index.js +280 -210
- package/es/ele-menus/props.d.ts +2 -2
- package/es/ele-menus/util.d.ts +1 -62
- package/es/ele-menus/util.js +3 -244
- package/es/ele-modal/index.d.ts +9 -9
- package/es/ele-modal/props.d.ts +2 -2
- package/es/ele-modal/util.d.ts +1 -1
- package/es/ele-modal/util.js +8 -4
- package/es/ele-pagination/index.d.ts +2 -2
- package/es/ele-pagination/props.d.ts +1 -1
- package/es/ele-popconfirm/index.d.ts +11 -14
- package/es/ele-popconfirm/index.js +31 -24
- package/es/ele-popconfirm/props.d.ts +3 -4
- package/es/ele-popover/index.d.ts +11 -14
- package/es/ele-popover/props.d.ts +0 -1
- package/es/ele-popover/props.js +1 -1
- package/es/ele-printer/util.js +1 -1
- 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 +1 -1
- package/es/ele-pro-layout/index.js +20 -6
- package/es/ele-pro-layout/props.d.ts +3 -3
- 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 +25 -26
- package/es/ele-pro-table/components/table-tools.js +26 -18
- package/es/ele-pro-table/components/tool-column.d.ts +7 -7
- package/es/ele-pro-table/components/tool-column.js +4 -4
- package/es/ele-pro-table/components/tool-export.d.ts +5 -5
- package/es/ele-pro-table/components/tool-print-body-cell.js +1 -1
- package/es/ele-pro-table/components/tool-print-header-cell.js +3 -2
- package/es/ele-pro-table/components/tool-print.d.ts +5 -5
- package/es/ele-pro-table/index.d.ts +71 -85
- package/es/ele-pro-table/index.js +19 -23
- package/es/ele-pro-table/props.d.ts +9 -11
- package/es/ele-pro-table/props.js +1 -1
- package/es/ele-segmented/index.d.ts +3 -1
- package/es/ele-segmented/index.js +27 -3
- package/es/ele-segmented/style/index.scss +7 -1
- package/es/ele-steps/index.d.ts +12 -12
- package/es/ele-steps/props.d.ts +3 -3
- 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/style/index.scss +1 -2
- package/es/ele-table-select/index.d.ts +6 -6
- package/es/ele-tabs/index.d.ts +21 -19
- package/es/ele-tabs/index.js +240 -115
- package/es/ele-tabs/props.d.ts +1 -6
- package/es/ele-tabs/props.js +1 -1
- package/es/ele-tabs/style/index.scss +152 -176
- package/es/ele-tabs/types.d.ts +29 -6
- package/es/ele-tool/index.js +6 -1
- package/es/ele-toolbar/index.d.ts +9 -9
- package/es/ele-tooltip/index.d.ts +15 -15
- package/es/ele-tooltip/props.d.ts +2 -2
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tree-select/index.d.ts +5 -5
- 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 +55 -26
- package/es/ele-upload-list/index.js +180 -97
- package/es/ele-upload-list/props.d.ts +22 -9
- 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 +425 -135
- package/es/ele-upload-list/types.d.ts +35 -11
- package/es/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/es/ele-virtual-table/components/header-cell.d.ts +1 -1
- package/es/ele-virtual-table/components/header-row.d.ts +1 -1
- package/es/ele-virtual-table/index.d.ts +14 -22
- package/es/ele-virtual-table/index.js +8 -6
- package/es/ele-virtual-table/props.d.ts +6 -8
- 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.js +4 -4
- package/es/icons/SizeMiddleOutlined.d.ts +2 -0
- package/es/icons/SizeMiddleOutlined.js +34 -0
- package/es/icons/SizeSlackOutlined.js +4 -4
- package/es/icons/index.d.ts +4 -0
- package/es/icons/index.js +162 -154
- package/es/lang/en_US.js +4 -1
- package/es/lang/zh_CN.js +4 -1
- package/es/lang/zh_TW.js +4 -1
- package/es/style/plus.scss +1 -0
- package/es/style/themes/default.scss +84 -6
- package/es/style/themes/rounded.scss +6 -3
- 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 +2 -0
- package/es/utils/hook.js +5 -1
- 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/types.d.ts +2 -0
- 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/date-picker/index.scss +13 -11
- 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/scrollbar/css-var.scss +17 -16
- package/lib/ele-app/types.d.ts +8 -1
- package/lib/ele-basic-select/index.d.ts +2 -2
- package/lib/ele-bottom-bar/index.cjs +36 -14
- package/lib/ele-bottom-bar/index.d.ts +9 -2
- package/lib/ele-bottom-bar/props.cjs +3 -1
- package/lib/ele-bottom-bar/props.d.ts +2 -0
- package/lib/ele-bottom-bar/style/index.scss +5 -0
- package/lib/ele-check-card/index.d.ts +2 -2
- package/lib/ele-cropper/components/cropper-tools.cjs +41 -13
- package/lib/ele-cropper/components/cropper-tools.d.ts +9 -3
- package/lib/ele-cropper/index.cjs +2 -1
- package/lib/ele-cropper/index.d.ts +3 -1
- package/lib/ele-cropper/props.cjs +2 -0
- package/lib/ele-cropper/props.d.ts +3 -1
- 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 +3 -1
- package/lib/ele-cropper-modal/props.d.ts +1 -0
- package/lib/ele-data-table/components/table-columns.cjs +123 -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 +327 -23
- package/lib/ele-data-table/props.d.ts +14 -18
- package/lib/ele-data-table/style/index.scss +0 -4
- package/lib/ele-data-table/types.d.ts +5 -2
- package/lib/ele-data-table/util.cjs +0 -108
- package/lib/ele-data-table/util.d.ts +1 -45
- package/lib/ele-drawer/index.cjs +8 -2
- package/lib/ele-drawer/index.d.ts +9 -8
- package/lib/ele-drawer/props.d.ts +2 -2
- package/lib/ele-dropdown/components/dropdown-menu-item.cjs +131 -0
- package/lib/ele-dropdown/components/dropdown-menu-item.d.ts +39 -0
- package/lib/ele-dropdown/components/dropdown-menus.cjs +110 -0
- package/lib/ele-dropdown/components/dropdown-menus.d.ts +44 -0
- package/lib/ele-dropdown/components/pro-dropdown.cjs +204 -0
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +238 -0
- package/lib/ele-dropdown/index.cjs +149 -68
- package/lib/ele-dropdown/index.d.ts +521 -33
- package/lib/ele-dropdown/props.cjs +53 -6
- package/lib/ele-dropdown/props.d.ts +109 -15
- package/lib/ele-dropdown/style/index.cjs +4 -1
- package/lib/ele-dropdown/style/index.scss +226 -7
- package/lib/ele-dropdown/types.d.ts +2 -2
- package/lib/ele-edit-tag/index.d.ts +2 -2
- 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 +33 -12
- 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 +1 -1
- package/lib/ele-icon-select/index.d.ts +2 -2
- 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-map-picker/components/map-view.d.ts +18 -18
- 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 +77 -18
- package/lib/ele-menus/props.d.ts +2 -2
- package/lib/ele-menus/util.cjs +1 -242
- package/lib/ele-menus/util.d.ts +1 -62
- package/lib/ele-modal/index.d.ts +9 -9
- package/lib/ele-modal/props.d.ts +2 -2
- package/lib/ele-modal/util.cjs +8 -4
- package/lib/ele-modal/util.d.ts +1 -1
- package/lib/ele-pagination/index.d.ts +2 -2
- package/lib/ele-pagination/props.d.ts +1 -1
- package/lib/ele-popconfirm/index.cjs +31 -24
- package/lib/ele-popconfirm/index.d.ts +11 -14
- package/lib/ele-popconfirm/props.d.ts +3 -4
- package/lib/ele-popover/index.d.ts +11 -14
- package/lib/ele-popover/props.cjs +1 -1
- package/lib/ele-popover/props.d.ts +0 -1
- package/lib/ele-printer/util.cjs +1 -1
- 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 +19 -5
- package/lib/ele-pro-layout/index.d.ts +1 -1
- package/lib/ele-pro-layout/props.cjs +3 -3
- package/lib/ele-pro-layout/props.d.ts +3 -3
- 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 +24 -16
- package/lib/ele-pro-table/components/table-tools.d.ts +25 -26
- package/lib/ele-pro-table/components/tool-column.cjs +4 -4
- package/lib/ele-pro-table/components/tool-column.d.ts +7 -7
- package/lib/ele-pro-table/components/tool-export.d.ts +5 -5
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +1 -1
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +3 -2
- package/lib/ele-pro-table/components/tool-print.d.ts +5 -5
- package/lib/ele-pro-table/index.cjs +17 -21
- package/lib/ele-pro-table/index.d.ts +71 -85
- package/lib/ele-pro-table/props.cjs +1 -1
- package/lib/ele-pro-table/props.d.ts +9 -11
- package/lib/ele-segmented/index.cjs +26 -2
- package/lib/ele-segmented/index.d.ts +3 -1
- package/lib/ele-segmented/style/index.scss +7 -1
- package/lib/ele-steps/index.d.ts +12 -12
- package/lib/ele-steps/props.d.ts +3 -3
- 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/style/index.scss +1 -2
- package/lib/ele-table-select/index.d.ts +6 -6
- package/lib/ele-tabs/index.cjs +238 -113
- package/lib/ele-tabs/index.d.ts +21 -19
- package/lib/ele-tabs/props.cjs +1 -1
- package/lib/ele-tabs/props.d.ts +1 -6
- package/lib/ele-tabs/style/index.scss +152 -176
- package/lib/ele-tabs/types.d.ts +29 -6
- package/lib/ele-tool/index.cjs +6 -1
- package/lib/ele-toolbar/index.d.ts +9 -9
- package/lib/ele-tooltip/index.d.ts +15 -15
- package/lib/ele-tooltip/props.d.ts +2 -2
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tree-select/index.d.ts +5 -5
- 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 +55 -26
- package/lib/ele-upload-list/props.cjs +20 -8
- package/lib/ele-upload-list/props.d.ts +22 -9
- 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 +425 -135
- package/lib/ele-upload-list/types.d.ts +35 -11
- package/lib/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/lib/ele-virtual-table/components/header-cell.d.ts +1 -1
- package/lib/ele-virtual-table/components/header-row.d.ts +1 -1
- package/lib/ele-virtual-table/index.cjs +7 -5
- package/lib/ele-virtual-table/index.d.ts +14 -22
- package/lib/ele-virtual-table/props.d.ts +6 -8
- 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 +4 -4
- package/lib/icons/SizeMiddleOutlined.cjs +33 -0
- package/lib/icons/SizeMiddleOutlined.d.ts +2 -0
- package/lib/icons/SizeSlackOutlined.cjs +4 -4
- package/lib/icons/index.cjs +8 -0
- package/lib/icons/index.d.ts +4 -0
- package/lib/lang/en_US.cjs +4 -1
- package/lib/lang/zh_CN.cjs +4 -1
- package/lib/lang/zh_TW.cjs +4 -1
- package/lib/style/plus.scss +1 -0
- package/lib/style/themes/default.scss +84 -6
- package/lib/style/themes/rounded.scss +6 -3
- 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 +5 -1
- package/lib/utils/hook.d.ts +2 -0
- 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 +36 -36
- 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
package/es/core-components.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { default as EleEllipsis } from './ele-ellipsis/index';
|
|
|
20
20
|
export { default as EleFileList } from './ele-file-list/index';
|
|
21
21
|
export { default as EleFileListTool } from './ele-file-list-tool/index';
|
|
22
22
|
export { default as EleIconSelect } from './ele-icon-select/index';
|
|
23
|
+
export { default as EleImageViewer } from './ele-image-viewer/index';
|
|
23
24
|
export { default as EleLoading } from './ele-loading/index';
|
|
24
25
|
export { default as EleMenus } from './ele-menus/index';
|
|
25
26
|
export { default as EleModal } from './ele-modal/index';
|
package/es/core-components.js
CHANGED
|
@@ -20,35 +20,36 @@ import { default as default20 } from "./ele-ellipsis/index";
|
|
|
20
20
|
import { default as default21 } from "./ele-file-list/index";
|
|
21
21
|
import { default as default22 } from "./ele-file-list-tool/index";
|
|
22
22
|
import { default as default23 } from "./ele-icon-select/index";
|
|
23
|
-
import { default as default24 } from "./ele-
|
|
24
|
-
import { default as default25 } from "./ele-
|
|
25
|
-
import { default as default26 } from "./ele-
|
|
26
|
-
import { default as default27 } from "./ele-
|
|
27
|
-
import { default as default28 } from "./ele-
|
|
28
|
-
import { default as default29 } from "./ele-
|
|
29
|
-
import { default as default30 } from "./ele-
|
|
30
|
-
import { default as default31 } from "./ele-
|
|
31
|
-
import { default as default32 } from "./ele-
|
|
32
|
-
import { default as default33 } from "./ele-pro-
|
|
33
|
-
import { default as default34 } from "./ele-
|
|
34
|
-
import { default as default35 } from "./ele-qr-code
|
|
35
|
-
import { default as default36 } from "./ele-
|
|
36
|
-
import { default as default37 } from "./ele-
|
|
37
|
-
import { default as default38 } from "./ele-
|
|
38
|
-
import { default as default39 } from "./ele-
|
|
39
|
-
import { default as default40 } from "./ele-
|
|
40
|
-
import { default as default41 } from "./ele-tab-
|
|
41
|
-
import { default as default42 } from "./ele-
|
|
42
|
-
import { default as default43 } from "./ele-table
|
|
43
|
-
import { default as default44 } from "./ele-
|
|
44
|
-
import { default as default45 } from "./ele-
|
|
45
|
-
import { default as default46 } from "./ele-
|
|
46
|
-
import { default as default47 } from "./ele-
|
|
47
|
-
import { default as default48 } from "./ele-
|
|
48
|
-
import { default as default49 } from "./ele-
|
|
49
|
-
import { default as default50 } from "./ele-
|
|
50
|
-
import { default as default51 } from "./ele-
|
|
51
|
-
import { default as default52 } from "./ele-
|
|
23
|
+
import { default as default24 } from "./ele-image-viewer/index";
|
|
24
|
+
import { default as default25 } from "./ele-loading/index";
|
|
25
|
+
import { default as default26 } from "./ele-menus/index";
|
|
26
|
+
import { default as default27 } from "./ele-modal/index";
|
|
27
|
+
import { default as default28 } from "./ele-page/index";
|
|
28
|
+
import { default as default29 } from "./ele-pagination/index";
|
|
29
|
+
import { default as default30 } from "./ele-popconfirm/index";
|
|
30
|
+
import { default as default31 } from "./ele-popover/index";
|
|
31
|
+
import { default as default32 } from "./ele-printer/index";
|
|
32
|
+
import { default as default33 } from "./ele-pro-layout/index";
|
|
33
|
+
import { default as default34 } from "./ele-pro-table/index";
|
|
34
|
+
import { default as default35 } from "./ele-qr-code/index";
|
|
35
|
+
import { default as default36 } from "./ele-qr-code-svg/index";
|
|
36
|
+
import { default as default37 } from "./ele-segmented/index";
|
|
37
|
+
import { default as default38 } from "./ele-split-panel/index";
|
|
38
|
+
import { default as default39 } from "./ele-steps/index";
|
|
39
|
+
import { default as default40 } from "./ele-tabs/index";
|
|
40
|
+
import { default as default41 } from "./ele-tab-tool/index";
|
|
41
|
+
import { default as default42 } from "./ele-tab-wrap/index";
|
|
42
|
+
import { default as default43 } from "./ele-table/index";
|
|
43
|
+
import { default as default44 } from "./ele-table-select/index";
|
|
44
|
+
import { default as default45 } from "./ele-text/index";
|
|
45
|
+
import { default as default46 } from "./ele-tool/index";
|
|
46
|
+
import { default as default47 } from "./ele-toolbar/index";
|
|
47
|
+
import { default as default48 } from "./ele-tooltip/index";
|
|
48
|
+
import { default as default49 } from "./ele-tour/index";
|
|
49
|
+
import { default as default50 } from "./ele-tree-select/index";
|
|
50
|
+
import { default as default51 } from "./ele-upload-list/index";
|
|
51
|
+
import { default as default52 } from "./ele-virtual-table/index";
|
|
52
|
+
import { default as default53 } from "./ele-watermark/index";
|
|
52
53
|
export {
|
|
53
54
|
default2 as EleAdminLayout,
|
|
54
55
|
default3 as EleAlert,
|
|
@@ -72,33 +73,34 @@ export {
|
|
|
72
73
|
default21 as EleFileList,
|
|
73
74
|
default22 as EleFileListTool,
|
|
74
75
|
default23 as EleIconSelect,
|
|
75
|
-
default24 as
|
|
76
|
-
default25 as
|
|
77
|
-
default26 as
|
|
78
|
-
default27 as
|
|
79
|
-
default28 as
|
|
80
|
-
default29 as
|
|
81
|
-
default30 as
|
|
82
|
-
default31 as
|
|
83
|
-
default32 as
|
|
84
|
-
default33 as
|
|
85
|
-
default34 as
|
|
86
|
-
default35 as
|
|
87
|
-
default36 as
|
|
88
|
-
default37 as
|
|
89
|
-
default38 as
|
|
90
|
-
|
|
91
|
-
default41 as
|
|
92
|
-
default42 as
|
|
93
|
-
default43 as
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
default45 as
|
|
97
|
-
default46 as
|
|
98
|
-
default47 as
|
|
99
|
-
default48 as
|
|
100
|
-
default49 as
|
|
101
|
-
default50 as
|
|
102
|
-
default51 as
|
|
103
|
-
default52 as
|
|
76
|
+
default24 as EleImageViewer,
|
|
77
|
+
default25 as EleLoading,
|
|
78
|
+
default26 as EleMenus,
|
|
79
|
+
default27 as EleModal,
|
|
80
|
+
default28 as ElePage,
|
|
81
|
+
default29 as ElePagination,
|
|
82
|
+
default30 as ElePopconfirm,
|
|
83
|
+
default31 as ElePopover,
|
|
84
|
+
default32 as ElePrinter,
|
|
85
|
+
default33 as EleProLayout,
|
|
86
|
+
default34 as EleProTable,
|
|
87
|
+
default35 as EleQrCode,
|
|
88
|
+
default36 as EleQrCodeSvg,
|
|
89
|
+
default37 as EleSegmented,
|
|
90
|
+
default38 as EleSplitPanel,
|
|
91
|
+
default39 as EleSteps,
|
|
92
|
+
default41 as EleTabTool,
|
|
93
|
+
default42 as EleTabWrap,
|
|
94
|
+
default43 as EleTable,
|
|
95
|
+
default44 as EleTableSelect,
|
|
96
|
+
default40 as EleTabs,
|
|
97
|
+
default45 as EleText,
|
|
98
|
+
default46 as EleTool,
|
|
99
|
+
default47 as EleToolbar,
|
|
100
|
+
default48 as EleTooltip,
|
|
101
|
+
default49 as EleTour,
|
|
102
|
+
default50 as EleTreeSelect,
|
|
103
|
+
default51 as EleUploadList,
|
|
104
|
+
default52 as EleVirtualTable,
|
|
105
|
+
default53 as EleWatermark
|
|
104
106
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { EleDropdownProps
|
|
2
|
+
import { EleDropdownProps } from '../../ele-app/plus';
|
|
3
3
|
import { TabPaneItem, TabEventOption, ContextMenus } from '../../ele-tabs/types';
|
|
4
|
-
import { TabTitleInstance } from '../../ele-tabs/props';
|
|
5
4
|
import { TabStyle } from '../types';
|
|
6
5
|
|
|
7
6
|
declare const _default: import('vue').DefineComponent<{
|
|
@@ -24,13 +23,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
24
23
|
/** 是否支持拖动排序 */
|
|
25
24
|
tabSortable: BooleanConstructor;
|
|
26
25
|
}, {
|
|
27
|
-
homeRef: import('vue').Ref<TabTitleInstance>;
|
|
28
|
-
tabRef: import('vue').Ref<EleTabsInstance>;
|
|
29
|
-
homeContextMenus: import('vue').ComputedRef<import('../../ele-dropdown/types').DropdownItem[] | undefined>;
|
|
30
26
|
handleTabRemove: (name: string) => void;
|
|
31
27
|
handleTabItemClick: (option: TabEventOption) => void;
|
|
32
28
|
handleTabContextMenu: (option: TabEventOption) => void;
|
|
33
|
-
handleTabContextOpen: (ref: EleDropdownInstance) => void;
|
|
34
29
|
handleTabSortChange: (data: TabPaneItem[]) => void;
|
|
35
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
31
|
tabClick: (_option: TabEventOption) => true;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createCommentVNode, createSlots, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { ElIcon } from "element-plus";
|
|
3
3
|
import { HomeOutlined } from "../../icons";
|
|
4
4
|
import EleTabWrap from "../../ele-tab-wrap/index";
|
|
5
5
|
import EleTabTool from "../../ele-tab-tool/index";
|
|
6
6
|
import EleTabs from "../../ele-tabs/index";
|
|
7
|
-
import TabTitle from "../../ele-tabs/components/tab-title";
|
|
8
7
|
const _sfc_main = defineComponent({
|
|
9
8
|
name: "LayoutTabs",
|
|
10
9
|
components: {
|
|
@@ -12,8 +11,7 @@ const _sfc_main = defineComponent({
|
|
|
12
11
|
HomeOutlined,
|
|
13
12
|
EleTabWrap,
|
|
14
13
|
EleTabTool,
|
|
15
|
-
EleTabs
|
|
16
|
-
TabTitle
|
|
14
|
+
EleTabs
|
|
17
15
|
},
|
|
18
16
|
props: {
|
|
19
17
|
/** 页签数据 */
|
|
@@ -41,26 +39,7 @@ const _sfc_main = defineComponent({
|
|
|
41
39
|
tabContextMenu: (_option) => true,
|
|
42
40
|
tabSortChange: (_data) => true
|
|
43
41
|
},
|
|
44
|
-
setup(
|
|
45
|
-
const homeRef = ref(null);
|
|
46
|
-
const tabRef = ref(null);
|
|
47
|
-
const homeContextMenus = computed(() => {
|
|
48
|
-
if (typeof props.tabContextMenus === "function") {
|
|
49
|
-
return props.tabContextMenus();
|
|
50
|
-
}
|
|
51
|
-
return props.tabContextMenus;
|
|
52
|
-
});
|
|
53
|
-
const handleTabContextOpen = (ref2) => {
|
|
54
|
-
const $home = homeRef.value;
|
|
55
|
-
if (!$home || !$home.dropdownRef) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if ($home.dropdownRef !== ref2) {
|
|
59
|
-
$home.dropdownRef.handleClose();
|
|
60
|
-
} else if (tabRef.value) {
|
|
61
|
-
tabRef.value.hideAllDropdown();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
42
|
+
setup(_props, { emit }) {
|
|
64
43
|
const handleTabItemClick = (option) => {
|
|
65
44
|
emit("tabClick", option);
|
|
66
45
|
};
|
|
@@ -74,13 +53,9 @@ const _sfc_main = defineComponent({
|
|
|
74
53
|
emit("tabSortChange", data);
|
|
75
54
|
};
|
|
76
55
|
return {
|
|
77
|
-
homeRef,
|
|
78
|
-
tabRef,
|
|
79
|
-
homeContextMenus,
|
|
80
56
|
handleTabRemove,
|
|
81
57
|
handleTabItemClick,
|
|
82
58
|
handleTabContextMenu,
|
|
83
|
-
handleTabContextOpen,
|
|
84
59
|
handleTabSortChange
|
|
85
60
|
};
|
|
86
61
|
}
|
|
@@ -95,7 +70,6 @@ const _export_sfc = (sfc, props) => {
|
|
|
95
70
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
96
71
|
const _component_HomeOutlined = resolveComponent("HomeOutlined");
|
|
97
72
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
98
|
-
const _component_TabTitle = resolveComponent("TabTitle");
|
|
99
73
|
const _component_EleTabTool = resolveComponent("EleTabTool");
|
|
100
74
|
const _component_EleTabs = resolveComponent("EleTabs");
|
|
101
75
|
const _component_EleTabWrap = resolveComponent("EleTabWrap");
|
|
@@ -107,61 +81,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
81
|
_ctx.fixedHome ? (openBlock(), createBlock(_component_EleTabTool, {
|
|
108
82
|
key: 0,
|
|
109
83
|
tab: true,
|
|
110
|
-
active: _ctx.isHome
|
|
84
|
+
active: _ctx.isHome,
|
|
85
|
+
tabName: _ctx.homePath
|
|
111
86
|
}, {
|
|
112
87
|
default: withCtx(() => [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
onContextMenu: _ctx.handleTabContextMenu,
|
|
121
|
-
onContextOpen: _ctx.handleTabContextOpen,
|
|
122
|
-
onItemClick: _ctx.handleTabItemClick
|
|
123
|
-
}, createSlots({
|
|
124
|
-
label: withCtx((slotProps) => [
|
|
125
|
-
renderSlot(_ctx.$slots, "tabHome", normalizeProps(guardReactiveProps(slotProps || {})), () => [
|
|
126
|
-
createVNode(_component_ElIcon, {
|
|
127
|
-
class: "ele-tab-icon",
|
|
128
|
-
style: { "vertical-align": "-3px" }
|
|
129
|
-
}, {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
createVNode(_component_HomeOutlined, { style: { "transform": "scale(1.08)" } })
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
})
|
|
135
|
-
])
|
|
136
|
-
]),
|
|
137
|
-
_: 2
|
|
138
|
-
}, [
|
|
139
|
-
_ctx.$slots.tabContext ? {
|
|
140
|
-
name: "contextMenu",
|
|
141
|
-
fn: withCtx((slotProps) => [
|
|
142
|
-
renderSlot(_ctx.$slots, "tabContext", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
88
|
+
renderSlot(_ctx.$slots, "tabHome", { active: _ctx.active }, () => [
|
|
89
|
+
createVNode(_component_ElIcon, {
|
|
90
|
+
class: "ele-tab-icon",
|
|
91
|
+
style: { "vertical-align": "-3px" }
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
createVNode(_component_HomeOutlined, { style: { "transform": "scale(1.08)" } })
|
|
143
95
|
]),
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
])
|
|
96
|
+
_: 1
|
|
97
|
+
})
|
|
98
|
+
])
|
|
147
99
|
]),
|
|
148
100
|
_: 3
|
|
149
|
-
}, 8, ["active"])) : createCommentVNode("", true),
|
|
101
|
+
}, 8, ["active", "tabName"])) : createCommentVNode("", true),
|
|
150
102
|
_ctx.tabs ? (openBlock(), createBlock(_component_EleTabs, {
|
|
151
103
|
key: 1,
|
|
152
|
-
ref: "tabRef",
|
|
153
104
|
items: _ctx.tabs,
|
|
154
|
-
type: _ctx.tabStyle,
|
|
155
105
|
modelValue: _ctx.active,
|
|
156
|
-
handleClick: true,
|
|
157
106
|
sortable: _ctx.tabSortable,
|
|
158
107
|
contextMenu: _ctx.tabContextMenu,
|
|
159
108
|
contextMenus: _ctx.tabContextMenus,
|
|
160
109
|
mousewheel: true,
|
|
110
|
+
handleClick: true,
|
|
161
111
|
onTabRemove: _ctx.handleTabRemove,
|
|
162
112
|
onTabItemClick: _ctx.handleTabItemClick,
|
|
163
113
|
onTabContextMenu: _ctx.handleTabContextMenu,
|
|
164
|
-
onTabContextOpen: _ctx.handleTabContextOpen,
|
|
165
114
|
onTabSortChange: _ctx.handleTabSortChange
|
|
166
115
|
}, createSlots({ _: 2 }, [
|
|
167
116
|
_ctx.$slots.tabTitle ? {
|
|
@@ -170,15 +119,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
119
|
renderSlot(_ctx.$slots, "tabTitle", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
171
120
|
]),
|
|
172
121
|
key: "0"
|
|
173
|
-
} : void 0,
|
|
174
|
-
_ctx.$slots.tabContext ? {
|
|
175
|
-
name: "contextMenu",
|
|
176
|
-
fn: withCtx((slotProps) => [
|
|
177
|
-
renderSlot(_ctx.$slots, "tabContext", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
178
|
-
]),
|
|
179
|
-
key: "1"
|
|
180
122
|
} : void 0
|
|
181
|
-
]), 1032, ["items", "
|
|
123
|
+
]), 1032, ["items", "modelValue", "sortable", "contextMenu", "contextMenus", "onTabRemove", "onTabItemClick", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true),
|
|
182
124
|
renderSlot(_ctx.$slots, "tabExtra", { active: _ctx.active })
|
|
183
125
|
]),
|
|
184
126
|
_: 3
|
|
@@ -7,7 +7,7 @@ import EleBacktop from "../ele-backtop/index";
|
|
|
7
7
|
import LayoutSkeleton from "./components/layout-skeleton";
|
|
8
8
|
import LayoutTabs from "./components/layout-tabs";
|
|
9
9
|
import { adminLayoutProps, adminLayoutEmits, LAYOUT_KEY } from "./props";
|
|
10
|
-
const tabSlots = ["tabTitle", "
|
|
10
|
+
const tabSlots = ["tabTitle", "tabExtra", "tabHome"];
|
|
11
11
|
const ownSlots = [
|
|
12
12
|
"logo",
|
|
13
13
|
"logoTitle",
|
|
@@ -101,6 +101,10 @@ const _sfc_main = defineComponent({
|
|
|
101
101
|
const getModalsEl = () => {
|
|
102
102
|
return modalsRef.value;
|
|
103
103
|
};
|
|
104
|
+
const getBodyWrapperEl = () => {
|
|
105
|
+
const contentEl = getContentEl();
|
|
106
|
+
return contentEl == null ? void 0 : contentEl.parentElement;
|
|
107
|
+
};
|
|
104
108
|
const sidebarScrollToActive = () => {
|
|
105
109
|
stopSidebarMenuTimer();
|
|
106
110
|
if (!props.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
|
|
@@ -206,7 +210,8 @@ const _sfc_main = defineComponent({
|
|
|
206
210
|
fixedHeader: isFixedHeader.value,
|
|
207
211
|
fixedBody: props.fixedBody,
|
|
208
212
|
modalsEl: null,
|
|
209
|
-
getModalsEl
|
|
213
|
+
getModalsEl,
|
|
214
|
+
getBodyWrapperEl
|
|
210
215
|
});
|
|
211
216
|
provide(LAYOUT_KEY, layoutProvide);
|
|
212
217
|
watch(
|
package/es/ele-app/el.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import type {
|
|
|
40
40
|
// ElImage
|
|
41
41
|
ElImage,
|
|
42
42
|
ImageProps,
|
|
43
|
+
ElImageViewer,
|
|
43
44
|
// ElInput
|
|
44
45
|
ElInput,
|
|
45
46
|
InputProps,
|
|
@@ -190,6 +191,8 @@ export type ElImageInstance = InstanceType<typeof ElImage> | null;
|
|
|
190
191
|
|
|
191
192
|
export type ElImageProps = ComponentProps<ImageProps>;
|
|
192
193
|
|
|
194
|
+
export type ElImageViewerInstance = InstanceType<typeof ElImageViewer> | null;
|
|
195
|
+
|
|
193
196
|
/**
|
|
194
197
|
* ElInput
|
|
195
198
|
*/
|
package/es/ele-app/plus.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import type EleDataTable from '../ele-data-table/index';
|
|
|
8
8
|
import type { DataTableProps } from '../ele-data-table/props';
|
|
9
9
|
import type EleDropdown from '../ele-dropdown/index';
|
|
10
10
|
import type { DropdownProps } from '../ele-dropdown/props';
|
|
11
|
+
import type { FileListProps } from '../ele-file-list/props';
|
|
12
|
+
import type { ImageViewerProps } from '../ele-image-viewer/props';
|
|
11
13
|
import type { LoadingProps } from '../ele-loading/props';
|
|
12
14
|
import type EleMenus from '../ele-menus/index';
|
|
13
15
|
import type { MenusProps } from '../ele-menus/props';
|
|
@@ -28,6 +30,8 @@ import type { ToolProps } from '../ele-tool/props';
|
|
|
28
30
|
import type { ToolbarProps } from '../ele-toolbar/props';
|
|
29
31
|
import type EleTooltip from '../ele-tooltip/index';
|
|
30
32
|
import type { TooltipProps } from '../ele-tooltip/props';
|
|
33
|
+
import type EleUploadList from '../ele-upload-list/index';
|
|
34
|
+
import type { UploadListProps } from '../ele-upload-list/props';
|
|
31
35
|
import type EleVirtualTable from '../ele-virtual-table/index';
|
|
32
36
|
import type { ComponentProps } from './types';
|
|
33
37
|
|
|
@@ -75,6 +79,16 @@ export type EleDropdownInstance = InstanceType<typeof EleDropdown> | null;
|
|
|
75
79
|
|
|
76
80
|
export type EleDropdownProps = ComponentProps<DropdownProps>;
|
|
77
81
|
|
|
82
|
+
/**
|
|
83
|
+
* EleFileList
|
|
84
|
+
*/
|
|
85
|
+
export type EleFileListProps = ComponentProps<FileListProps>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* EleImageViewer
|
|
89
|
+
*/
|
|
90
|
+
export type EleImageViewerProps = ComponentProps<ImageViewerProps>;
|
|
91
|
+
|
|
78
92
|
/**
|
|
79
93
|
* EleLoading
|
|
80
94
|
*/
|
|
@@ -154,6 +168,13 @@ export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
|
|
|
154
168
|
|
|
155
169
|
export type EleTooltipProps = Partial<TooltipProps>;
|
|
156
170
|
|
|
171
|
+
/**
|
|
172
|
+
* EleUploadList
|
|
173
|
+
*/
|
|
174
|
+
export type EleUploadListInstance = InstanceType<typeof EleUploadList> | null;
|
|
175
|
+
|
|
176
|
+
export type EleUploadListProps = Partial<UploadListProps>;
|
|
177
|
+
|
|
157
178
|
/**
|
|
158
179
|
* EleVirtualTable
|
|
159
180
|
*/
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
@use './checkbox/css-var.scss' as *;
|
|
5
5
|
@use './date-picker/css-var.scss' as *;
|
|
6
6
|
@use './descriptions/css-var.scss' as *;
|
|
7
|
-
@use './image-viewer/css-var.scss' as *;
|
|
8
7
|
@use './input/css-var.scss' as *;
|
|
9
8
|
@use './message-box/css-var.scss' as *;
|
|
10
9
|
@use './notification/css-var.scss' as *;
|
|
@@ -22,7 +21,6 @@
|
|
|
22
21
|
@include set-el-checkbox-var($var);
|
|
23
22
|
@include set-el-date-picker-var($var);
|
|
24
23
|
@include set-el-descriptions-var($var);
|
|
25
|
-
@include set-el-image-viewer-var($var);
|
|
26
24
|
@include set-el-input-var($var);
|
|
27
25
|
@include set-el-message-box-var($var);
|
|
28
26
|
@include set-el-notification-var($var);
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
.el-month-table td {
|
|
245
245
|
width: auto;
|
|
246
246
|
|
|
247
|
-
.
|
|
247
|
+
.el-date-table-cell__text {
|
|
248
248
|
color: eleVar('datepicker', 'color');
|
|
249
249
|
width: eleVar('datepicker', 'year-width');
|
|
250
250
|
height: eleVar('datepicker', 'year-height');
|
|
@@ -261,18 +261,18 @@
|
|
|
261
261
|
transform: none;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
&.today .
|
|
264
|
+
&.today .el-date-table-cell__text {
|
|
265
265
|
color: eleVar('datepicker', 'today-color');
|
|
266
266
|
font-weight: eleVar('datepicker', 'today-weight');
|
|
267
267
|
border: eleVar('datepicker', 'today-border');
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.
|
|
270
|
+
.el-date-table-cell__text:hover {
|
|
271
271
|
color: eleVar('datepicker', 'hover-color');
|
|
272
272
|
background: eleVar('datepicker', 'hover-bg');
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
&.current:not(.disabled) .
|
|
275
|
+
&.current:not(.disabled) .el-date-table-cell__text {
|
|
276
276
|
color: eleVar('datepicker', 'active-color');
|
|
277
277
|
background: eleVar('datepicker', 'active-bg');
|
|
278
278
|
}
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
background: eleVar('datepicker', 'disabled-bg');
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.
|
|
298
|
+
.el-date-table-cell__text {
|
|
299
299
|
color: eleVar('datepicker', 'disabled-color');
|
|
300
300
|
background: none;
|
|
301
301
|
}
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
background: eleVar('datepicker', 'disabled-bg');
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
.
|
|
322
|
+
.el-date-table-cell__text {
|
|
323
323
|
color: eleVar('datepicker', 'disabled-color');
|
|
324
324
|
background: none;
|
|
325
325
|
}
|
|
@@ -444,7 +444,8 @@
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
// 月范围
|
|
447
|
-
.el-month-table td
|
|
447
|
+
.el-month-table td,
|
|
448
|
+
.el-year-table td {
|
|
448
449
|
&.start-date > div {
|
|
449
450
|
border-top-left-radius: eleVar('datepicker', 'year-radius');
|
|
450
451
|
border-bottom-left-radius: eleVar('datepicker', 'year-radius');
|
|
@@ -465,18 +466,19 @@
|
|
|
465
466
|
}
|
|
466
467
|
}
|
|
467
468
|
|
|
468
|
-
&.in-range .
|
|
469
|
+
&.in-range .el-date-table-cell__text:hover {
|
|
469
470
|
background: none;
|
|
470
471
|
}
|
|
471
472
|
|
|
472
|
-
&.in-range.start-date:not(.disabled) .
|
|
473
|
-
&.in-range.end-date:not(.disabled) .
|
|
473
|
+
&.in-range.start-date:not(.disabled) .el-date-table-cell__text,
|
|
474
|
+
&.in-range.end-date:not(.disabled) .el-date-table-cell__text {
|
|
474
475
|
color: eleVar('datepicker', 'active-color');
|
|
475
476
|
background: eleVar('datepicker', 'active-bg');
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
.el-month-table
|
|
480
|
+
.el-month-table,
|
|
481
|
+
.el-year-table {
|
|
480
482
|
border-collapse: separate;
|
|
481
483
|
border-spacing: 0;
|
|
482
484
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@use './color-picker/index.scss' as colorPicker;
|
|
6
6
|
@use './date-picker/index.scss' as datePicker;
|
|
7
7
|
@use './descriptions/index.scss' as descriptions;
|
|
8
|
-
@use './image-viewer/index.scss' as imageViewer;
|
|
9
8
|
@use './input/index.scss' as input;
|
|
10
9
|
@use './message-box/index.scss' as messageBox;
|
|
11
10
|
@use './notification/index.scss' as notification;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@use '../../../style/util.scss' as *;
|
|
2
|
+
// 美化滚动条样式针对谷歌选择器
|
|
3
|
+
$scrollbar-webkit-selector: 'html.is-webkit' !default;
|
|
2
4
|
|
|
3
5
|
/* 滚动条主题变量 */
|
|
4
6
|
@mixin set-scrollbar-var($var) {
|
|
@@ -6,18 +8,18 @@
|
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
/* 滚动条样式 */
|
|
9
|
-
@mixin scrollbar-style() {
|
|
10
|
-
* {
|
|
11
|
+
@mixin scrollbar-style($selector: '') {
|
|
12
|
+
#{if($selector == '', '*', $selector)} {
|
|
11
13
|
scrollbar-width: thin;
|
|
12
14
|
scrollbar-color: eleVar('scrollbar', 'color') eleVar('scrollbar', 'bg');
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
::-webkit-scrollbar {
|
|
17
|
+
#{$selector}::-webkit-scrollbar {
|
|
16
18
|
width: eleVar('scrollbar', 'size');
|
|
17
19
|
height: eleVar('scrollbar', 'size');
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
::-webkit-scrollbar-thumb {
|
|
22
|
+
#{$selector}::-webkit-scrollbar-thumb {
|
|
21
23
|
border: eleVar('scrollbar', 'padding') solid transparent;
|
|
22
24
|
border-radius: eleVar('scrollbar', 'radius');
|
|
23
25
|
background-color: eleVar('scrollbar', 'color');
|
|
@@ -28,11 +30,11 @@
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
::-webkit-scrollbar-track {
|
|
33
|
+
#{$selector}::-webkit-scrollbar-track {
|
|
32
34
|
background: eleVar('scrollbar', 'bg');
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
::-webkit-scrollbar-corner {
|
|
37
|
+
#{$selector}::-webkit-scrollbar-corner {
|
|
36
38
|
background: transparent;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
@@ -42,8 +44,8 @@
|
|
|
42
44
|
@if $selector == '' {
|
|
43
45
|
@include scrollbar-style();
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
#{$scrollbar-webkit-selector},
|
|
48
|
+
#{$scrollbar-webkit-selector} * {
|
|
47
49
|
scrollbar-width: auto;
|
|
48
50
|
scrollbar-color: auto;
|
|
49
51
|
}
|
|
@@ -51,20 +53,19 @@
|
|
|
51
53
|
@media (hover: hover) and (pointer: fine) {
|
|
52
54
|
@include scrollbar-style();
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
#{$scrollbar-webkit-selector},
|
|
57
|
+
#{$scrollbar-webkit-selector} * {
|
|
56
58
|
scrollbar-width: auto;
|
|
57
59
|
scrollbar-color: auto;
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
} @else if $selector != 'never' {
|
|
61
|
-
|
|
62
|
-
@include scrollbar-style();
|
|
63
|
+
@include scrollbar-style($selector);
|
|
63
64
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
#{$scrollbar-webkit-selector}#{$selector},
|
|
66
|
+
#{$scrollbar-webkit-selector} #{$selector} {
|
|
67
|
+
scrollbar-width: auto;
|
|
68
|
+
scrollbar-color: auto;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|
package/es/ele-app/types.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties, Component, SetupContext } from 'vue';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 只读属性改为可读
|
|
5
|
+
*/
|
|
6
|
+
export type Mutable<T> = {
|
|
7
|
+
-readonly [P in keyof T]: T[P];
|
|
8
|
+
};
|
|
9
|
+
|
|
3
10
|
/**
|
|
4
11
|
* 样式值
|
|
5
12
|
*/
|
|
@@ -23,7 +30,7 @@ export type ClassValues = ClassValue | Array<ClassValue>;
|
|
|
23
30
|
/**
|
|
24
31
|
* 组件属性
|
|
25
32
|
*/
|
|
26
|
-
export type ComponentProps<T> = Partial<T
|
|
33
|
+
export type ComponentProps<T> = Mutable<Partial<T>> & {
|
|
27
34
|
/** 类名 */
|
|
28
35
|
class?: ClassValues;
|
|
29
36
|
/** 样式 */
|