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/lib/ele-menus/index.cjs
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const elementPlus = require("element-plus");
|
|
4
|
-
const EleTooltip = require("../ele-tooltip/index");
|
|
5
|
-
const core = require("../utils/core");
|
|
6
4
|
const icons = require("../icons");
|
|
5
|
+
const core = require("../utils/core");
|
|
6
|
+
const EleTooltip = require("../ele-tooltip/index");
|
|
7
|
+
const MenuItems = require("./components/menu-items");
|
|
7
8
|
const util = require("./util");
|
|
8
9
|
const props = require("./props");
|
|
9
|
-
const
|
|
10
|
+
const _sfc_main = vue.defineComponent({
|
|
10
11
|
name: "EleMenus",
|
|
12
|
+
components: { ElMenu: elementPlus.ElMenu, ElSubMenu: elementPlus.ElSubMenu, ElIcon: elementPlus.ElIcon, EleTooltip, MenuItems },
|
|
11
13
|
props: props.menusProps,
|
|
12
14
|
emits: props.menusEmits,
|
|
13
|
-
setup(props$1, {
|
|
14
|
-
|
|
15
|
+
setup(props$1, { emit }) {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const isWebkit = (_b = (_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, "WebKit");
|
|
15
18
|
const menuRef = vue.ref(null);
|
|
16
19
|
const ellipsisRef = vue.ref(null);
|
|
17
20
|
const sliceIndex = vue.ref(-1);
|
|
21
|
+
const menuItems = vue.shallowRef([]);
|
|
22
|
+
const moreMenuItems = vue.shallowRef([]);
|
|
18
23
|
const tooltipVirtualRef = vue.ref();
|
|
19
24
|
const tooltipContent = vue.ref("");
|
|
20
25
|
const tooltipVisible = vue.ref(false);
|
|
@@ -23,54 +28,26 @@ const index = vue.defineComponent({
|
|
|
23
28
|
const collapseTooltipDisabled = vue.computed(
|
|
24
29
|
() => isCompact.value ? !props$1.collapse : props$1.tooltipDisabled
|
|
25
30
|
);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
getMoreEl: () => {
|
|
32
|
-
var _a;
|
|
33
|
-
return (_a = ellipsisRef.value) == null ? void 0 : _a.$el;
|
|
34
|
-
},
|
|
35
|
-
onEllipsis: (index2) => {
|
|
36
|
-
if (sliceIndex.value !== index2) {
|
|
37
|
-
sliceIndex.value = index2;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
vue.onMounted(() => {
|
|
42
|
-
var _a;
|
|
43
|
-
if (props$1.ellipsis && isHorizontal.value && ((_a = menuRef.value) == null ? void 0 : _a.$el)) {
|
|
44
|
-
computedEllipsis();
|
|
45
|
-
observe();
|
|
31
|
+
const menuProps = vue.computed(() => core.pick(props$1, props.menuPropKeys));
|
|
32
|
+
const open = (index2) => {
|
|
33
|
+
if (menuRef.value) {
|
|
34
|
+
menuRef.value.open(index2);
|
|
46
35
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
()
|
|
51
|
-
isHorizontal,
|
|
52
|
-
() => {
|
|
53
|
-
var _a;
|
|
54
|
-
return (_a = menuRef.value) == null ? void 0 : _a.$el;
|
|
55
|
-
},
|
|
56
|
-
() => props$1.items
|
|
57
|
-
],
|
|
58
|
-
() => {
|
|
59
|
-
var _a;
|
|
60
|
-
if (props$1.ellipsis && isHorizontal.value && ((_a = menuRef.value) == null ? void 0 : _a.$el)) {
|
|
61
|
-
observe();
|
|
62
|
-
} else {
|
|
63
|
-
unobserve();
|
|
64
|
-
sliceIndex.value = -1;
|
|
65
|
-
}
|
|
36
|
+
};
|
|
37
|
+
const close = (index2) => {
|
|
38
|
+
if (menuRef.value) {
|
|
39
|
+
menuRef.value.open(index2);
|
|
66
40
|
}
|
|
67
|
-
|
|
41
|
+
};
|
|
42
|
+
const hideTooltip = () => {
|
|
43
|
+
tooltipVisible.value = false;
|
|
44
|
+
};
|
|
68
45
|
const triggerTooltip = (e) => {
|
|
69
|
-
var
|
|
46
|
+
var _a2;
|
|
70
47
|
if (props$1.textEllipsisTooltip) {
|
|
71
|
-
const itemEl = (
|
|
48
|
+
const itemEl = (_a2 = e.currentTarget) == null ? void 0 : _a2.parentNode;
|
|
72
49
|
if (itemEl) {
|
|
73
|
-
const titleEl = itemEl.querySelector(
|
|
50
|
+
const titleEl = itemEl.querySelector(".ele-menu-title");
|
|
74
51
|
const text = titleEl == null ? void 0 : titleEl.innerText;
|
|
75
52
|
if (text && core.contentIsEllipsis(titleEl, "horizontal")) {
|
|
76
53
|
tooltipVirtualRef.value = itemEl;
|
|
@@ -82,32 +59,14 @@ const index = vue.defineComponent({
|
|
|
82
59
|
}
|
|
83
60
|
hideTooltip();
|
|
84
61
|
};
|
|
85
|
-
const
|
|
86
|
-
|
|
62
|
+
const handleOpen = (index2, indexPath) => {
|
|
63
|
+
emit("open", index2, indexPath);
|
|
87
64
|
};
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
menuRef.value.open(index2);
|
|
91
|
-
}
|
|
65
|
+
const handleClose = (index2, indexPath) => {
|
|
66
|
+
emit("close", index2, indexPath);
|
|
92
67
|
};
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
menuRef.value.open(index2);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const scrollToActive = () => {
|
|
99
|
-
var _a;
|
|
100
|
-
const menuEl = (_a = menuRef.value) == null ? void 0 : _a.$el;
|
|
101
|
-
if (menuEl) {
|
|
102
|
-
const el = menuEl.querySelector(".el-menu-item.is-active") || menuEl.querySelector(".el-sub-menu.is-active");
|
|
103
|
-
if (el) {
|
|
104
|
-
if (typeof el["scrollIntoViewIfNeeded"] === "function") {
|
|
105
|
-
el.scrollIntoViewIfNeeded(true);
|
|
106
|
-
} else {
|
|
107
|
-
el.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
68
|
+
const handleSelect = (index2, indexPath, item, routerResult) => {
|
|
69
|
+
emit("select", index2, indexPath, item, routerResult);
|
|
111
70
|
};
|
|
112
71
|
const handleItemClick = (item, e) => {
|
|
113
72
|
emit("itemClick", item, e);
|
|
@@ -128,146 +87,257 @@ const index = vue.defineComponent({
|
|
|
128
87
|
hideTooltip();
|
|
129
88
|
emit("parentMouseleave", item, e);
|
|
130
89
|
};
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
collapse: isCompact.value ? true : props$1.collapse,
|
|
142
|
-
class: [
|
|
143
|
-
"ele-menu",
|
|
144
|
-
{ "ele-menu-dark": props$1.theme === "dark" },
|
|
145
|
-
{ "is-night": props$1.theme === "dark" },
|
|
146
|
-
{ "ele-menu-colorful": props$1.colorful },
|
|
147
|
-
{ "is-colorful": props$1.colorful },
|
|
148
|
-
{ "is-compact": isCompact.value },
|
|
149
|
-
{ "is-compact-collapse": isCompact.value && props$1.collapse }
|
|
150
|
-
],
|
|
151
|
-
onOpen: (index2, indexPath) => {
|
|
152
|
-
emit("open", index2, indexPath);
|
|
153
|
-
},
|
|
154
|
-
onClose: (index2, indexPath) => {
|
|
155
|
-
emit("close", index2, indexPath);
|
|
156
|
-
},
|
|
157
|
-
onSelect: (index2, indexPath, item, routerResult) => {
|
|
158
|
-
emit("select", index2, indexPath, item, routerResult);
|
|
90
|
+
const scrollToActive = () => {
|
|
91
|
+
var _a2;
|
|
92
|
+
const menuEl = (_a2 = menuRef.value) == null ? void 0 : _a2.$el;
|
|
93
|
+
if (menuEl) {
|
|
94
|
+
const el = menuEl.querySelector(".el-menu-item.is-active") || menuEl.querySelector(".el-sub-menu.is-active");
|
|
95
|
+
if (el) {
|
|
96
|
+
if (typeof el["scrollIntoViewIfNeeded"] === "function") {
|
|
97
|
+
el.scrollIntoViewIfNeeded(true);
|
|
98
|
+
} else {
|
|
99
|
+
el.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
159
100
|
}
|
|
160
|
-
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const { observe, unobserve, computedEllipsis } = util.useMenuEllipsis({
|
|
105
|
+
getMenuEl: () => {
|
|
106
|
+
var _a2;
|
|
107
|
+
return (_a2 = menuRef.value) == null ? void 0 : _a2.$el;
|
|
108
|
+
},
|
|
109
|
+
getMoreEl: () => {
|
|
110
|
+
var _a2;
|
|
111
|
+
return (_a2 = ellipsisRef.value) == null ? void 0 : _a2.$el;
|
|
112
|
+
},
|
|
113
|
+
onEllipsis: (index2) => {
|
|
114
|
+
if (sliceIndex.value !== index2) {
|
|
115
|
+
sliceIndex.value = index2;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
vue.onMounted(() => {
|
|
120
|
+
var _a2;
|
|
121
|
+
if (props$1.ellipsis && isHorizontal.value && ((_a2 = menuRef.value) == null ? void 0 : _a2.$el)) {
|
|
122
|
+
computedEllipsis();
|
|
123
|
+
observe();
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
vue.watch(
|
|
127
|
+
[
|
|
128
|
+
() => props$1.ellipsis,
|
|
129
|
+
isHorizontal,
|
|
161
130
|
() => {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
props$1.theme,
|
|
173
|
-
props$1.popupTheme,
|
|
174
|
-
props$1.colorful,
|
|
175
|
-
props$1.popupColorful,
|
|
176
|
-
props$1.firstPopperClass,
|
|
177
|
-
true,
|
|
178
|
-
handleItemClick,
|
|
179
|
-
handleItemMouseenter,
|
|
180
|
-
handleItemMouseleave,
|
|
181
|
-
isWebkit,
|
|
182
|
-
handleParentMouseenter,
|
|
183
|
-
handleParentMouseleave
|
|
184
|
-
);
|
|
185
|
-
if (moreItems) {
|
|
186
|
-
const ellipsisProps = props$1.ellipsisProps || {};
|
|
187
|
-
const popperClass = util.getPopperClass(
|
|
188
|
-
ellipsisProps.popperClass,
|
|
189
|
-
props$1.theme,
|
|
190
|
-
props$1.popupTheme,
|
|
191
|
-
props$1.colorful,
|
|
192
|
-
props$1.popupColorful,
|
|
193
|
-
props$1.firstPopperClass,
|
|
194
|
-
true,
|
|
195
|
-
isWebkit
|
|
196
|
-
);
|
|
197
|
-
nodes.push(
|
|
198
|
-
vue.h(
|
|
199
|
-
elementPlus.ElSubMenu,
|
|
200
|
-
{
|
|
201
|
-
teleported: true,
|
|
202
|
-
class: util.ellipsisClass,
|
|
203
|
-
key: "sub-menu-more",
|
|
204
|
-
...ellipsisProps,
|
|
205
|
-
index: "sub-menu-more",
|
|
206
|
-
ref: ellipsisRef,
|
|
207
|
-
popperClass
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
default: () => {
|
|
211
|
-
return util.renderItems(
|
|
212
|
-
moreItems,
|
|
213
|
-
slots.icon,
|
|
214
|
-
slots.title,
|
|
215
|
-
collapseTooltipDisabled.value,
|
|
216
|
-
props$1.theme,
|
|
217
|
-
props$1.popupTheme,
|
|
218
|
-
props$1.colorful,
|
|
219
|
-
props$1.popupColorful,
|
|
220
|
-
props$1.firstPopperClass,
|
|
221
|
-
false,
|
|
222
|
-
handleItemClick,
|
|
223
|
-
handleItemMouseenter,
|
|
224
|
-
handleItemMouseleave,
|
|
225
|
-
isWebkit,
|
|
226
|
-
handleParentMouseenter,
|
|
227
|
-
handleParentMouseleave
|
|
228
|
-
);
|
|
229
|
-
},
|
|
230
|
-
title: () => {
|
|
231
|
-
return vue.h(elementPlus.ElIcon, ellipsisProps.iconProps || {}, () => {
|
|
232
|
-
return vue.h(
|
|
233
|
-
ellipsisProps.icon ?? icons.EllipsisOutlined,
|
|
234
|
-
{ style: ellipsisProps.iconStyle }
|
|
235
|
-
);
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
if (props$1.textEllipsisTooltip) {
|
|
243
|
-
nodes.push(
|
|
244
|
-
vue.h(EleTooltip, {
|
|
245
|
-
trigger: "click",
|
|
246
|
-
placement: "right",
|
|
247
|
-
fallbackPlacements: [
|
|
248
|
-
"top-end",
|
|
249
|
-
"top",
|
|
250
|
-
"top-start",
|
|
251
|
-
"bottom-end",
|
|
252
|
-
"bottom",
|
|
253
|
-
"bottom-start",
|
|
254
|
-
"left"
|
|
255
|
-
],
|
|
256
|
-
persistent: false,
|
|
257
|
-
enterable: false,
|
|
258
|
-
triggerKeys: [],
|
|
259
|
-
...props$1.textEllipsisTooltip === true ? {} : props$1.textEllipsisTooltip,
|
|
260
|
-
virtualTriggering: true,
|
|
261
|
-
virtualRef: tooltipVirtualRef.value,
|
|
262
|
-
content: tooltipContent.value,
|
|
263
|
-
visible: tooltipVisible.value
|
|
264
|
-
})
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
return nodes;
|
|
131
|
+
var _a2;
|
|
132
|
+
return (_a2 = menuRef.value) == null ? void 0 : _a2.$el;
|
|
133
|
+
},
|
|
134
|
+
() => props$1.items
|
|
135
|
+
],
|
|
136
|
+
() => {
|
|
137
|
+
var _a2;
|
|
138
|
+
if (props$1.ellipsis && isHorizontal.value && ((_a2 = menuRef.value) == null ? void 0 : _a2.$el)) {
|
|
139
|
+
observe();
|
|
140
|
+
return;
|
|
268
141
|
}
|
|
269
|
-
|
|
142
|
+
unobserve();
|
|
143
|
+
sliceIndex.value = -1;
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
vue.watch(
|
|
147
|
+
[() => props$1.items, sliceIndex, isHorizontal],
|
|
148
|
+
() => {
|
|
149
|
+
const { items, moreItems } = util.getMenuItems(
|
|
150
|
+
props$1.items,
|
|
151
|
+
sliceIndex.value,
|
|
152
|
+
isHorizontal.value
|
|
153
|
+
);
|
|
154
|
+
menuItems.value = items;
|
|
155
|
+
moreMenuItems.value = moreItems;
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
immediate: true,
|
|
159
|
+
deep: true
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
return {
|
|
163
|
+
EllipsisOutlined: icons.EllipsisOutlined,
|
|
164
|
+
getPopperClass: util.getPopperClass,
|
|
165
|
+
isWebkit,
|
|
166
|
+
menuRef,
|
|
167
|
+
ellipsisRef,
|
|
168
|
+
menuItems,
|
|
169
|
+
moreMenuItems,
|
|
170
|
+
tooltipVirtualRef,
|
|
171
|
+
tooltipContent,
|
|
172
|
+
tooltipVisible,
|
|
173
|
+
isCompact,
|
|
174
|
+
collapseTooltipDisabled,
|
|
175
|
+
menuProps,
|
|
176
|
+
open,
|
|
177
|
+
close,
|
|
178
|
+
handleOpen,
|
|
179
|
+
handleClose,
|
|
180
|
+
handleSelect,
|
|
181
|
+
handleItemClick,
|
|
182
|
+
handleItemMouseenter,
|
|
183
|
+
handleItemMouseleave,
|
|
184
|
+
handleParentMouseenter,
|
|
185
|
+
handleParentMouseleave,
|
|
186
|
+
scrollToActive
|
|
270
187
|
};
|
|
271
188
|
}
|
|
272
189
|
});
|
|
190
|
+
const _export_sfc = (sfc, props2) => {
|
|
191
|
+
const target = sfc.__vccOpts || sfc;
|
|
192
|
+
for (const [key, val] of props2) {
|
|
193
|
+
target[key] = val;
|
|
194
|
+
}
|
|
195
|
+
return target;
|
|
196
|
+
};
|
|
197
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
198
|
+
const _component_MenuItems = vue.resolveComponent("MenuItems");
|
|
199
|
+
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
200
|
+
const _component_ElSubMenu = vue.resolveComponent("ElSubMenu");
|
|
201
|
+
const _component_EleTooltip = vue.resolveComponent("EleTooltip");
|
|
202
|
+
const _component_ElMenu = vue.resolveComponent("ElMenu");
|
|
203
|
+
return vue.openBlock(), vue.createBlock(_component_ElMenu, vue.mergeProps(_ctx.menuProps, {
|
|
204
|
+
ref: "menuRef",
|
|
205
|
+
ellipsis: false,
|
|
206
|
+
mode: _ctx.isCompact ? "vertical" : _ctx.mode,
|
|
207
|
+
collapse: _ctx.isCompact ? true : _ctx.collapse,
|
|
208
|
+
class: [
|
|
209
|
+
"ele-menu",
|
|
210
|
+
{ "ele-menu-dark": _ctx.theme === "dark" },
|
|
211
|
+
{ "is-night": _ctx.theme === "dark" },
|
|
212
|
+
{ "ele-menu-colorful": _ctx.colorful },
|
|
213
|
+
{ "is-colorful": _ctx.colorful },
|
|
214
|
+
{ "is-compact": _ctx.isCompact },
|
|
215
|
+
{ "is-compact-collapse": _ctx.isCompact && _ctx.collapse }
|
|
216
|
+
],
|
|
217
|
+
onOpen: _ctx.handleOpen,
|
|
218
|
+
onClose: _ctx.handleClose,
|
|
219
|
+
onSelect: _ctx.handleSelect
|
|
220
|
+
}), {
|
|
221
|
+
default: vue.withCtx(() => {
|
|
222
|
+
var _a;
|
|
223
|
+
return [
|
|
224
|
+
_ctx.menuItems && _ctx.menuItems.length ? (vue.openBlock(), vue.createBlock(_component_MenuItems, {
|
|
225
|
+
key: 0,
|
|
226
|
+
items: _ctx.menuItems,
|
|
227
|
+
first: true,
|
|
228
|
+
tipDisabled: _ctx.collapseTooltipDisabled,
|
|
229
|
+
parentIsGroup: false,
|
|
230
|
+
theme: _ctx.theme,
|
|
231
|
+
popTheme: _ctx.popupTheme,
|
|
232
|
+
colorful: _ctx.colorful,
|
|
233
|
+
popupColorful: _ctx.popupColorful,
|
|
234
|
+
firstPopClass: _ctx.firstPopperClass,
|
|
235
|
+
webkit: _ctx.isWebkit,
|
|
236
|
+
onItemClick: _ctx.handleItemClick,
|
|
237
|
+
onItemMouseenter: _ctx.handleItemMouseenter,
|
|
238
|
+
onItemMouseleave: _ctx.handleItemMouseleave,
|
|
239
|
+
onParentMouseenter: _ctx.handleParentMouseenter,
|
|
240
|
+
onParentMouseleave: _ctx.handleParentMouseleave
|
|
241
|
+
}, vue.createSlots({ _: 2 }, [
|
|
242
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
243
|
+
return {
|
|
244
|
+
name,
|
|
245
|
+
fn: vue.withCtx((slotProps) => [
|
|
246
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
247
|
+
])
|
|
248
|
+
};
|
|
249
|
+
})
|
|
250
|
+
]), 1032, ["items", "tipDisabled", "theme", "popTheme", "colorful", "popupColorful", "firstPopClass", "webkit", "onItemClick", "onItemMouseenter", "onItemMouseleave", "onParentMouseenter", "onParentMouseleave"])) : vue.createCommentVNode("", true),
|
|
251
|
+
_ctx.moreMenuItems && _ctx.moreMenuItems.length ? (vue.openBlock(), vue.createBlock(_component_ElSubMenu, vue.mergeProps({
|
|
252
|
+
key: "sub-menu-more",
|
|
253
|
+
teleported: true
|
|
254
|
+
}, _ctx.ellipsisProps || {}, {
|
|
255
|
+
ref: "ellipsisRef",
|
|
256
|
+
index: "sub-menu-more",
|
|
257
|
+
popperClass: _ctx.getPopperClass(
|
|
258
|
+
(_a = _ctx.ellipsisProps) == null ? void 0 : _a.popperClass,
|
|
259
|
+
_ctx.theme,
|
|
260
|
+
_ctx.popupTheme,
|
|
261
|
+
_ctx.colorful,
|
|
262
|
+
_ctx.popupColorful,
|
|
263
|
+
_ctx.firstPopperClass,
|
|
264
|
+
true,
|
|
265
|
+
_ctx.isWebkit
|
|
266
|
+
),
|
|
267
|
+
class: "ele-sub-menu-ellipsis"
|
|
268
|
+
}), {
|
|
269
|
+
title: vue.withCtx(() => {
|
|
270
|
+
var _a2;
|
|
271
|
+
return [
|
|
272
|
+
vue.createVNode(_component_ElIcon, vue.normalizeProps(vue.guardReactiveProps(((_a2 = _ctx.ellipsisProps) == null ? void 0 : _a2.iconProps) || {})), {
|
|
273
|
+
default: vue.withCtx(() => {
|
|
274
|
+
var _a3, _b;
|
|
275
|
+
return [
|
|
276
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(((_a3 = _ctx.ellipsisProps) == null ? void 0 : _a3.icon) ?? _ctx.EllipsisOutlined), {
|
|
277
|
+
style: vue.normalizeStyle((_b = _ctx.ellipsisProps) == null ? void 0 : _b.iconStyle)
|
|
278
|
+
}, null, 8, ["style"]))
|
|
279
|
+
];
|
|
280
|
+
}),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 16)
|
|
283
|
+
];
|
|
284
|
+
}),
|
|
285
|
+
default: vue.withCtx(() => [
|
|
286
|
+
vue.createVNode(_component_MenuItems, {
|
|
287
|
+
items: _ctx.moreMenuItems,
|
|
288
|
+
first: false,
|
|
289
|
+
tipDisabled: _ctx.collapseTooltipDisabled,
|
|
290
|
+
parentIsGroup: false,
|
|
291
|
+
theme: _ctx.theme,
|
|
292
|
+
popTheme: _ctx.popupTheme,
|
|
293
|
+
colorful: _ctx.colorful,
|
|
294
|
+
popupColorful: _ctx.popupColorful,
|
|
295
|
+
firstPopClass: _ctx.firstPopperClass,
|
|
296
|
+
webkit: _ctx.isWebkit,
|
|
297
|
+
onItemClick: _ctx.handleItemClick,
|
|
298
|
+
onItemMouseenter: _ctx.handleItemMouseenter,
|
|
299
|
+
onItemMouseleave: _ctx.handleItemMouseleave,
|
|
300
|
+
onParentMouseenter: _ctx.handleParentMouseenter,
|
|
301
|
+
onParentMouseleave: _ctx.handleParentMouseleave
|
|
302
|
+
}, vue.createSlots({ _: 2 }, [
|
|
303
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
304
|
+
return {
|
|
305
|
+
name,
|
|
306
|
+
fn: vue.withCtx((slotProps) => [
|
|
307
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
308
|
+
])
|
|
309
|
+
};
|
|
310
|
+
})
|
|
311
|
+
]), 1032, ["items", "tipDisabled", "theme", "popTheme", "colorful", "popupColorful", "firstPopClass", "webkit", "onItemClick", "onItemMouseenter", "onItemMouseleave", "onParentMouseenter", "onParentMouseleave"])
|
|
312
|
+
]),
|
|
313
|
+
_: 3
|
|
314
|
+
}, 16, ["popperClass"])) : vue.createCommentVNode("", true),
|
|
315
|
+
_ctx.textEllipsisTooltip ? (vue.openBlock(), vue.createBlock(_component_EleTooltip, vue.mergeProps({
|
|
316
|
+
key: 2,
|
|
317
|
+
trigger: "click",
|
|
318
|
+
placement: "right",
|
|
319
|
+
fallbackPlacements: [
|
|
320
|
+
"top-end",
|
|
321
|
+
"top",
|
|
322
|
+
"top-start",
|
|
323
|
+
"bottom-end",
|
|
324
|
+
"bottom",
|
|
325
|
+
"bottom-start",
|
|
326
|
+
"left"
|
|
327
|
+
],
|
|
328
|
+
persistent: false,
|
|
329
|
+
enterable: false,
|
|
330
|
+
triggerKeys: []
|
|
331
|
+
}, _ctx.textEllipsisTooltip === true ? {} : _ctx.textEllipsisTooltip, {
|
|
332
|
+
virtualTriggering: true,
|
|
333
|
+
virtualRef: _ctx.tooltipVirtualRef,
|
|
334
|
+
content: _ctx.tooltipContent,
|
|
335
|
+
visible: _ctx.tooltipVisible
|
|
336
|
+
}), null, 16, ["virtualRef", "content", "visible"])) : vue.createCommentVNode("", true)
|
|
337
|
+
];
|
|
338
|
+
}),
|
|
339
|
+
_: 3
|
|
340
|
+
}, 16, ["mode", "collapse", "class", "onOpen", "onClose", "onSelect"]);
|
|
341
|
+
}
|
|
342
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
273
343
|
module.exports = index;
|