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
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
|
+
const icons = require("../../icons");
|
|
5
|
+
const core = require("../../utils/core");
|
|
6
|
+
const ItemTitle = require("./item-title");
|
|
7
|
+
const util = require("../util");
|
|
8
|
+
const _sfc_main = vue.defineComponent({
|
|
9
|
+
name: "MenuItems",
|
|
10
|
+
components: { ElMenuItem: elementPlus.ElMenuItem, ElSubMenu: elementPlus.ElSubMenu, ElMenuItemGroup: elementPlus.ElMenuItemGroup, ItemTitle },
|
|
11
|
+
props: {
|
|
12
|
+
/** 菜单数据 */
|
|
13
|
+
items: Array,
|
|
14
|
+
/** 是否是第一级菜单 */
|
|
15
|
+
first: Boolean,
|
|
16
|
+
/** 是否禁用折叠的 tooltip */
|
|
17
|
+
tipDisabled: Boolean,
|
|
18
|
+
/** 父级是否是分组菜单 */
|
|
19
|
+
parentIsGroup: Boolean,
|
|
20
|
+
/** 主题 */
|
|
21
|
+
theme: String,
|
|
22
|
+
/** 气泡菜单主题 */
|
|
23
|
+
popTheme: String,
|
|
24
|
+
/** 是否彩色图标 */
|
|
25
|
+
colorful: Boolean,
|
|
26
|
+
/** 气泡菜单是否彩色图标 */
|
|
27
|
+
popupColorful: [Boolean, String],
|
|
28
|
+
/** 第一级气泡菜单类名 */
|
|
29
|
+
firstPopClass: String,
|
|
30
|
+
/** 是否是 webkit 内核 */
|
|
31
|
+
webkit: Boolean
|
|
32
|
+
},
|
|
33
|
+
emits: {
|
|
34
|
+
itemClick: (_item, _e) => true,
|
|
35
|
+
itemMouseenter: (_item, _e) => true,
|
|
36
|
+
itemMouseleave: (_item, _e) => true,
|
|
37
|
+
parentMouseenter: (_item, _e) => true,
|
|
38
|
+
parentMouseleave: (_item, _e) => true
|
|
39
|
+
},
|
|
40
|
+
setup(_props, { emit }) {
|
|
41
|
+
const handleMenuItemClick = () => {
|
|
42
|
+
};
|
|
43
|
+
const handleItemClick = (item, e) => {
|
|
44
|
+
emit("itemClick", item, e);
|
|
45
|
+
};
|
|
46
|
+
const handleItemMouseenter = (item, e) => {
|
|
47
|
+
emit("itemMouseenter", item, e);
|
|
48
|
+
};
|
|
49
|
+
const handleItemMouseleave = (item, e) => {
|
|
50
|
+
emit("itemMouseleave", item, e);
|
|
51
|
+
};
|
|
52
|
+
const handleParentMouseenter = (item, e) => {
|
|
53
|
+
emit("parentMouseenter", item, e);
|
|
54
|
+
};
|
|
55
|
+
const handleParentMouseleave = (item, e) => {
|
|
56
|
+
emit("parentMouseleave", item, e);
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
pick: core.pick,
|
|
60
|
+
ArrowDown: icons.ArrowDown,
|
|
61
|
+
ArrowRight: icons.ArrowRight,
|
|
62
|
+
getPopperClass: util.getPopperClass,
|
|
63
|
+
handleMenuItemClick,
|
|
64
|
+
handleItemClick,
|
|
65
|
+
handleItemMouseenter,
|
|
66
|
+
handleItemMouseleave,
|
|
67
|
+
handleParentMouseenter,
|
|
68
|
+
handleParentMouseleave
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const _export_sfc = (sfc, props) => {
|
|
73
|
+
const target = sfc.__vccOpts || sfc;
|
|
74
|
+
for (const [key, val] of props) {
|
|
75
|
+
target[key] = val;
|
|
76
|
+
}
|
|
77
|
+
return target;
|
|
78
|
+
};
|
|
79
|
+
const _hoisted_1 = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "ele-menu-title"
|
|
82
|
+
};
|
|
83
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
|
+
const _component_ItemTitle = vue.resolveComponent("ItemTitle");
|
|
85
|
+
const _component_ElMenuItem = vue.resolveComponent("ElMenuItem");
|
|
86
|
+
const _component_MenuItems = vue.resolveComponent("MenuItems", true);
|
|
87
|
+
const _component_ElMenuItemGroup = vue.resolveComponent("ElMenuItemGroup");
|
|
88
|
+
const _component_ElSubMenu = vue.resolveComponent("ElSubMenu");
|
|
89
|
+
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.items, (item) => {
|
|
90
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
91
|
+
!item.children || !item.children.length ? (vue.openBlock(), vue.createBlock(_component_ElMenuItem, vue.mergeProps({
|
|
92
|
+
key: 0,
|
|
93
|
+
ref_for: true
|
|
94
|
+
}, _ctx.pick(item, ["route", "disabled", "class", "style"]), {
|
|
95
|
+
key: (item.key || item.index || item.path) + "-" + _ctx.tipDisabled,
|
|
96
|
+
index: item.index || item.path,
|
|
97
|
+
class: [{ "ele-menu-overflow": item.overflow }],
|
|
98
|
+
onClick: _ctx.handleMenuItemClick
|
|
99
|
+
}), vue.createSlots({
|
|
100
|
+
default: vue.withCtx(() => [
|
|
101
|
+
vue.createVNode(_component_ItemTitle, {
|
|
102
|
+
item,
|
|
103
|
+
showTitle: !(_ctx.first && !_ctx.tipDisabled),
|
|
104
|
+
showLink: true,
|
|
105
|
+
onItemClick: _ctx.handleItemClick,
|
|
106
|
+
onItemMouseenter: _ctx.handleItemMouseenter,
|
|
107
|
+
onItemMouseleave: _ctx.handleItemMouseleave
|
|
108
|
+
}, vue.createSlots({ _: 2 }, [
|
|
109
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
110
|
+
return {
|
|
111
|
+
name,
|
|
112
|
+
fn: vue.withCtx((slotProps) => [
|
|
113
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps({ ref_for: true }, slotProps || {}))
|
|
114
|
+
])
|
|
115
|
+
};
|
|
116
|
+
})
|
|
117
|
+
]), 1032, ["item", "showTitle", "onItemClick", "onItemMouseenter", "onItemMouseleave"])
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, [
|
|
121
|
+
_ctx.first && !_ctx.tipDisabled ? {
|
|
122
|
+
name: "title",
|
|
123
|
+
fn: vue.withCtx(() => [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, "title", {
|
|
125
|
+
item,
|
|
126
|
+
title: item.title
|
|
127
|
+
}, () => [
|
|
128
|
+
item.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(item.title), 1)) : vue.createCommentVNode("", true)
|
|
129
|
+
])
|
|
130
|
+
]),
|
|
131
|
+
key: "0"
|
|
132
|
+
} : void 0
|
|
133
|
+
]), 1040, ["index", "class", "onClick"])) : item.group === true && !_ctx.parentIsGroup ? (vue.openBlock(), vue.createBlock(_component_ElMenuItemGroup, {
|
|
134
|
+
key: (item.key || item.index || item.path) + "-group",
|
|
135
|
+
class: vue.normalizeClass(item.class),
|
|
136
|
+
style: vue.normalizeStyle(item.style)
|
|
137
|
+
}, {
|
|
138
|
+
title: vue.withCtx(() => [
|
|
139
|
+
vue.createVNode(_component_ItemTitle, {
|
|
140
|
+
item,
|
|
141
|
+
onItemMouseenter: _ctx.handleParentMouseenter,
|
|
142
|
+
onItemMouseleave: _ctx.handleParentMouseleave
|
|
143
|
+
}, vue.createSlots({ _: 2 }, [
|
|
144
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
145
|
+
return {
|
|
146
|
+
name,
|
|
147
|
+
fn: vue.withCtx((slotProps) => [
|
|
148
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps({ ref_for: true }, slotProps || {}))
|
|
149
|
+
])
|
|
150
|
+
};
|
|
151
|
+
})
|
|
152
|
+
]), 1032, ["item", "onItemMouseenter", "onItemMouseleave"])
|
|
153
|
+
]),
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
vue.createVNode(_component_MenuItems, {
|
|
156
|
+
items: item.children,
|
|
157
|
+
first: _ctx.first,
|
|
158
|
+
tipDisabled: _ctx.tipDisabled,
|
|
159
|
+
parentIsGroup: true,
|
|
160
|
+
theme: _ctx.theme,
|
|
161
|
+
popTheme: _ctx.popTheme,
|
|
162
|
+
colorful: _ctx.colorful,
|
|
163
|
+
popupColorful: _ctx.popupColorful,
|
|
164
|
+
firstPopClass: _ctx.firstPopClass,
|
|
165
|
+
webkit: _ctx.webkit,
|
|
166
|
+
onItemClick: _ctx.handleItemClick,
|
|
167
|
+
onItemMouseenter: _ctx.handleItemMouseenter,
|
|
168
|
+
onItemMouseleave: _ctx.handleItemMouseleave,
|
|
169
|
+
onParentMouseenter: _ctx.handleParentMouseenter,
|
|
170
|
+
onParentMouseleave: _ctx.handleParentMouseleave
|
|
171
|
+
}, vue.createSlots({ _: 2 }, [
|
|
172
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
173
|
+
return {
|
|
174
|
+
name,
|
|
175
|
+
fn: vue.withCtx((slotProps) => [
|
|
176
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps({ ref_for: true }, slotProps || {}))
|
|
177
|
+
])
|
|
178
|
+
};
|
|
179
|
+
})
|
|
180
|
+
]), 1032, ["items", "first", "tipDisabled", "theme", "popTheme", "colorful", "popupColorful", "firstPopClass", "webkit", "onItemClick", "onItemMouseenter", "onItemMouseleave", "onParentMouseenter", "onParentMouseleave"])
|
|
181
|
+
]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, 1032, ["class", "style"])) : (vue.openBlock(), vue.createBlock(_component_ElSubMenu, vue.mergeProps(
|
|
184
|
+
{
|
|
185
|
+
key: 2,
|
|
186
|
+
ref_for: true
|
|
187
|
+
},
|
|
188
|
+
_ctx.pick(item, [
|
|
189
|
+
"showTimeout",
|
|
190
|
+
"hideTimeout",
|
|
191
|
+
"disabled",
|
|
192
|
+
"popperOffset",
|
|
193
|
+
"class",
|
|
194
|
+
"style"
|
|
195
|
+
]),
|
|
196
|
+
{
|
|
197
|
+
key: (item.key || item.index || item.path) + "-sub",
|
|
198
|
+
index: item.index || item.path || "",
|
|
199
|
+
popperClass: _ctx.getPopperClass(
|
|
200
|
+
item.popperClass,
|
|
201
|
+
_ctx.theme,
|
|
202
|
+
_ctx.popTheme,
|
|
203
|
+
_ctx.colorful,
|
|
204
|
+
_ctx.popupColorful,
|
|
205
|
+
_ctx.firstPopClass,
|
|
206
|
+
_ctx.first,
|
|
207
|
+
_ctx.webkit
|
|
208
|
+
),
|
|
209
|
+
teleported: item.teleported ?? !!_ctx.first,
|
|
210
|
+
expandCloseIcon: item.expandCloseIcon ?? _ctx.ArrowDown,
|
|
211
|
+
expandOpenIcon: item.expandOpenIcon ?? _ctx.ArrowDown,
|
|
212
|
+
collapseCloseIcon: item.collapseCloseIcon ?? _ctx.ArrowRight,
|
|
213
|
+
collapseOpenIcon: item.collapseOpenIcon ?? _ctx.ArrowRight,
|
|
214
|
+
class: [{ "ele-menu-overflow": item.overflow }]
|
|
215
|
+
}
|
|
216
|
+
), {
|
|
217
|
+
title: vue.withCtx(() => [
|
|
218
|
+
vue.createVNode(_component_ItemTitle, {
|
|
219
|
+
item,
|
|
220
|
+
onItemMouseenter: _ctx.handleParentMouseenter,
|
|
221
|
+
onItemMouseleave: _ctx.handleParentMouseleave
|
|
222
|
+
}, vue.createSlots({ _: 2 }, [
|
|
223
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
224
|
+
return {
|
|
225
|
+
name,
|
|
226
|
+
fn: vue.withCtx((slotProps) => [
|
|
227
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps({ ref_for: true }, slotProps || {}))
|
|
228
|
+
])
|
|
229
|
+
};
|
|
230
|
+
})
|
|
231
|
+
]), 1032, ["item", "onItemMouseenter", "onItemMouseleave"])
|
|
232
|
+
]),
|
|
233
|
+
default: vue.withCtx(() => [
|
|
234
|
+
!(item.children.length === 1 && item.children[0] == null) ? (vue.openBlock(), vue.createBlock(_component_MenuItems, {
|
|
235
|
+
key: 0,
|
|
236
|
+
items: item.children,
|
|
237
|
+
first: false,
|
|
238
|
+
tipDisabled: _ctx.tipDisabled,
|
|
239
|
+
parentIsGroup: false,
|
|
240
|
+
theme: _ctx.theme,
|
|
241
|
+
popTheme: _ctx.popTheme,
|
|
242
|
+
colorful: _ctx.colorful,
|
|
243
|
+
popupColorful: _ctx.popupColorful,
|
|
244
|
+
firstPopClass: _ctx.firstPopClass,
|
|
245
|
+
webkit: _ctx.webkit,
|
|
246
|
+
onItemClick: _ctx.handleItemClick,
|
|
247
|
+
onItemMouseenter: _ctx.handleItemMouseenter,
|
|
248
|
+
onItemMouseleave: _ctx.handleItemMouseleave,
|
|
249
|
+
onParentMouseenter: _ctx.handleParentMouseenter,
|
|
250
|
+
onParentMouseleave: _ctx.handleParentMouseleave
|
|
251
|
+
}, vue.createSlots({ _: 2 }, [
|
|
252
|
+
vue.renderList(Object.keys(_ctx.$slots), (name) => {
|
|
253
|
+
return {
|
|
254
|
+
name,
|
|
255
|
+
fn: vue.withCtx((slotProps) => [
|
|
256
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps({ ref_for: true }, slotProps || {}))
|
|
257
|
+
])
|
|
258
|
+
};
|
|
259
|
+
})
|
|
260
|
+
]), 1032, ["items", "tipDisabled", "theme", "popTheme", "colorful", "popupColorful", "firstPopClass", "webkit", "onItemClick", "onItemMouseenter", "onItemMouseleave", "onParentMouseenter", "onParentMouseleave"])) : vue.createCommentVNode("", true)
|
|
261
|
+
]),
|
|
262
|
+
_: 2
|
|
263
|
+
}, 1040, ["index", "popperClass", "teleported", "expandCloseIcon", "expandOpenIcon", "collapseCloseIcon", "collapseOpenIcon", "class"]))
|
|
264
|
+
], 64);
|
|
265
|
+
}), 256);
|
|
266
|
+
}
|
|
267
|
+
const menuItems = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
268
|
+
module.exports = menuItems;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { pick } from '../../utils/core';
|
|
3
|
+
import { getPopperClass } from '../util';
|
|
4
|
+
import { MenuItem, MenuTheme, PopupMenuTheme, PopupColorful, MenuItemEvent } from '../types';
|
|
5
|
+
|
|
6
|
+
declare const _default: import('vue').DefineComponent<{
|
|
7
|
+
/** 菜单数据 */
|
|
8
|
+
items: PropType<MenuItem[]>;
|
|
9
|
+
/** 是否是第一级菜单 */
|
|
10
|
+
first: BooleanConstructor;
|
|
11
|
+
/** 是否禁用折叠的 tooltip */
|
|
12
|
+
tipDisabled: BooleanConstructor;
|
|
13
|
+
/** 父级是否是分组菜单 */
|
|
14
|
+
parentIsGroup: BooleanConstructor;
|
|
15
|
+
/** 主题 */
|
|
16
|
+
theme: PropType<MenuTheme>;
|
|
17
|
+
/** 气泡菜单主题 */
|
|
18
|
+
popTheme: PropType<PopupMenuTheme>;
|
|
19
|
+
/** 是否彩色图标 */
|
|
20
|
+
colorful: BooleanConstructor;
|
|
21
|
+
/** 气泡菜单是否彩色图标 */
|
|
22
|
+
popupColorful: PropType<PopupColorful>;
|
|
23
|
+
/** 第一级气泡菜单类名 */
|
|
24
|
+
firstPopClass: StringConstructor;
|
|
25
|
+
/** 是否是 webkit 内核 */
|
|
26
|
+
webkit: BooleanConstructor;
|
|
27
|
+
}, {
|
|
28
|
+
pick: typeof pick;
|
|
29
|
+
ArrowDown: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
30
|
+
ArrowRight: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
31
|
+
getPopperClass: typeof getPopperClass;
|
|
32
|
+
handleMenuItemClick: () => void;
|
|
33
|
+
handleItemClick: MenuItemEvent;
|
|
34
|
+
handleItemMouseenter: MenuItemEvent;
|
|
35
|
+
handleItemMouseleave: MenuItemEvent;
|
|
36
|
+
handleParentMouseenter: MenuItemEvent;
|
|
37
|
+
handleParentMouseleave: MenuItemEvent;
|
|
38
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
itemClick: (_item: MenuItem, _e: MouseEvent) => true;
|
|
40
|
+
itemMouseenter: (_item: MenuItem, _e: MouseEvent) => true;
|
|
41
|
+
itemMouseleave: (_item: MenuItem, _e: MouseEvent) => true;
|
|
42
|
+
parentMouseenter: (_item: MenuItem, _e: MouseEvent) => true;
|
|
43
|
+
parentMouseleave: (_item: MenuItem, _e: MouseEvent) => true;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
/** 菜单数据 */
|
|
46
|
+
items: PropType<MenuItem[]>;
|
|
47
|
+
/** 是否是第一级菜单 */
|
|
48
|
+
first: BooleanConstructor;
|
|
49
|
+
/** 是否禁用折叠的 tooltip */
|
|
50
|
+
tipDisabled: BooleanConstructor;
|
|
51
|
+
/** 父级是否是分组菜单 */
|
|
52
|
+
parentIsGroup: BooleanConstructor;
|
|
53
|
+
/** 主题 */
|
|
54
|
+
theme: PropType<MenuTheme>;
|
|
55
|
+
/** 气泡菜单主题 */
|
|
56
|
+
popTheme: PropType<PopupMenuTheme>;
|
|
57
|
+
/** 是否彩色图标 */
|
|
58
|
+
colorful: BooleanConstructor;
|
|
59
|
+
/** 气泡菜单是否彩色图标 */
|
|
60
|
+
popupColorful: PropType<PopupColorful>;
|
|
61
|
+
/** 第一级气泡菜单类名 */
|
|
62
|
+
firstPopClass: StringConstructor;
|
|
63
|
+
/** 是否是 webkit 内核 */
|
|
64
|
+
webkit: BooleanConstructor;
|
|
65
|
+
}>> & {
|
|
66
|
+
onItemClick?: ((_item: MenuItem, _e: MouseEvent) => any) | undefined;
|
|
67
|
+
onItemMouseenter?: ((_item: MenuItem, _e: MouseEvent) => any) | undefined;
|
|
68
|
+
onItemMouseleave?: ((_item: MenuItem, _e: MouseEvent) => any) | undefined;
|
|
69
|
+
onParentMouseenter?: ((_item: MenuItem, _e: MouseEvent) => any) | undefined;
|
|
70
|
+
onParentMouseleave?: ((_item: MenuItem, _e: MouseEvent) => any) | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
first: boolean;
|
|
73
|
+
colorful: boolean;
|
|
74
|
+
tipDisabled: boolean;
|
|
75
|
+
parentIsGroup: boolean;
|
|
76
|
+
webkit: boolean;
|
|
77
|
+
}, {}>;
|
|
78
|
+
export default _default;
|