ele-admin-plus 1.1.9-beta.9 → 1.2.0-beta.1
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-export.d.ts +1 -0
- package/es/core-export.js +1 -0
- package/es/core-installer.d.ts +2 -2
- package/es/ele-alert/index.d.ts +23 -23
- package/es/ele-alert/index.js +2 -2
- package/es/ele-alert/props.d.ts +10 -9
- package/es/ele-app/components/message-body.d.ts +39 -0
- package/es/ele-app/components/message-body.js +92 -0
- package/es/ele-app/el.d.ts +4 -1
- package/es/ele-app/index.d.ts +2 -2
- package/es/ele-app/style/message/css-var.scss +0 -4
- package/es/ele-app/style/message/index.scss +199 -77
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/es/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/es/ele-app/style/overwrite/tag/index.scss +57 -14
- package/es/ele-app/types.d.ts +6 -1
- package/es/ele-avatar-group/index.d.ts +29 -28
- package/es/ele-avatar-group/props.d.ts +10 -9
- package/es/ele-bar-code/index.d.ts +11 -10
- package/es/ele-bar-code/props.d.ts +4 -3
- package/es/ele-basic-select/index.d.ts +37 -35
- package/es/ele-basic-select/index.js +24 -7
- package/es/ele-basic-select/props.d.ts +9 -8
- package/es/ele-basic-select/util.d.ts +2 -1
- package/es/ele-bottom-bar/index.d.ts +6 -6
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-breadcrumb/index.d.ts +11 -10
- package/es/ele-breadcrumb/props.d.ts +5 -4
- package/es/ele-card/index.d.ts +12 -12
- package/es/ele-card/props.d.ts +7 -6
- package/es/ele-check-card/components/card-item.d.ts +7 -6
- package/es/ele-check-card/index.d.ts +15 -14
- package/es/ele-check-card/props.d.ts +6 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/es/ele-config-provider/components/receiver-view.js +120 -31
- package/es/ele-config-provider/index.d.ts +13 -9
- package/es/ele-config-provider/index.js +19 -5
- package/es/ele-config-provider/props.d.ts +12 -6
- package/es/ele-config-provider/props.js +9 -5
- package/es/ele-config-provider/receiver.d.ts +6 -10
- package/es/ele-config-provider/receiver.js +32 -117
- package/es/ele-config-provider/types.d.ts +25 -30
- package/es/ele-copyable/index.d.ts +32 -31
- package/es/ele-copyable/props.d.ts +9 -8
- package/es/ele-count-up/index.d.ts +8 -7
- package/es/ele-count-up/props.d.ts +3 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/es/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/es/ele-cropper/index.d.ts +16 -15
- package/es/ele-cropper/props.d.ts +4 -3
- package/es/ele-cropper-modal/index.d.ts +16 -15
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-cropper-modal/props.d.ts +7 -6
- package/es/ele-dashboard/index.d.ts +5 -5
- package/es/ele-dashboard/props.d.ts +3 -2
- package/es/ele-data-table/index.d.ts +63 -68
- package/es/ele-data-table/props.d.ts +36 -41
- package/es/ele-data-table/types.d.ts +10 -16
- package/es/ele-data-table/util.d.ts +10 -9
- package/es/ele-dot/index.d.ts +4 -4
- package/es/ele-dot/props.d.ts +3 -2
- package/es/ele-drawer/index.d.ts +76 -72
- package/es/ele-drawer/index.js +107 -113
- package/es/ele-drawer/props.d.ts +26 -25
- package/es/ele-drawer/style/index.scss +48 -105
- package/es/ele-dropdown/index.d.ts +66 -65
- package/es/ele-dropdown/props.d.ts +22 -21
- package/es/ele-edit-tag/index.d.ts +40 -34
- package/es/ele-edit-tag/index.js +5 -3
- package/es/ele-edit-tag/props.d.ts +12 -9
- package/es/ele-edit-tag/props.js +2 -0
- package/es/ele-edit-tag/style/index.scss +11 -4
- package/es/ele-ellipsis/index.d.ts +23 -22
- package/es/ele-ellipsis/props.d.ts +8 -7
- package/es/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/es/ele-file-list/components/file-grid-item.js +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +10 -9
- package/es/ele-file-list/components/file-sort.d.ts +2 -2
- package/es/ele-file-list/components/file-table-item.d.ts +13 -12
- package/es/ele-file-list/components/file-table-item.js +1 -1
- package/es/ele-file-list/components/file-table.d.ts +10 -9
- package/es/ele-file-list/icons.d.ts +2 -1
- package/es/ele-file-list/index.d.ts +36 -35
- package/es/ele-file-list/props.d.ts +6 -5
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-icon-select/index.d.ts +59 -60
- package/es/ele-icon-select/props.d.ts +18 -17
- package/es/ele-loading/index.d.ts +12 -15
- package/es/ele-loading/index.js +10 -16
- package/es/ele-loading/props.d.ts +5 -4
- package/es/ele-map-picker/components/map-view.d.ts +29 -28
- package/es/ele-map-picker/components/map-view.js +1 -1
- package/es/ele-map-picker/index.d.ts +27 -26
- package/es/ele-map-picker/index.js +1 -1
- package/es/ele-map-picker/props.d.ts +8 -7
- package/es/ele-menus/index.d.ts +62 -63
- package/es/ele-menus/index.js +12 -1
- package/es/ele-menus/props.d.ts +16 -17
- package/es/ele-menus/props.js +1 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-menus/util.d.ts +3 -2
- package/es/ele-modal/index.d.ts +77 -70
- package/es/ele-modal/index.js +164 -186
- package/es/ele-modal/props.d.ts +26 -23
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +87 -146
- package/es/ele-modal/util.d.ts +20 -45
- package/es/ele-modal/util.js +54 -180
- package/es/ele-page/index.d.ts +2 -2
- package/es/ele-page/props.d.ts +2 -1
- package/es/ele-pagination/index.d.ts +40 -31
- package/es/ele-pagination/index.js +4 -1
- package/es/ele-pagination/props.d.ts +17 -11
- package/es/ele-pagination/props.js +5 -0
- package/es/ele-popconfirm/index.d.ts +93 -92
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +33 -32
- package/es/ele-popover/index.d.ts +71 -70
- package/es/ele-popover/index.js +6 -14
- package/es/ele-popover/props.d.ts +26 -25
- package/es/ele-printer/index.d.ts +18 -18
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/util.d.ts +2 -1
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +85 -29
- package/es/ele-pro-layout/components/pro-header.js +110 -20
- package/es/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/es/ele-pro-layout/components/pro-iframe.js +31 -41
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +15 -19
- package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
- package/es/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
- package/es/ele-pro-layout/index.d.ts +97 -97
- package/es/ele-pro-layout/index.js +63 -48
- package/es/ele-pro-layout/props.d.ts +11 -13
- package/es/ele-pro-layout/props.js +2 -4
- package/es/ele-pro-layout/style/css-var.scss +3 -18
- package/es/ele-pro-layout/style/header.scss +74 -9
- package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/es/ele-pro-layout/style/layout-style.scss +8 -3
- package/es/ele-pro-layout/style/layout-theme.scss +48 -23
- package/es/ele-pro-layout/style/layout.scss +38 -8
- package/es/ele-pro-layout/style/sidebar.scss +0 -1
- package/es/ele-pro-layout/style/tabs.scss +19 -11
- package/es/ele-pro-layout/types.d.ts +5 -5
- package/es/ele-pro-layout/util.d.ts +6 -6
- package/es/ele-pro-layout/util.js +2 -3
- package/es/ele-pro-table/components/table-tools.d.ts +33 -23
- package/es/ele-pro-table/components/table-tools.js +14 -26
- package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/es/ele-pro-table/components/tool-column-list.js +3 -7
- package/es/ele-pro-table/components/tool-column.d.ts +15 -13
- package/es/ele-pro-table/components/tool-column.js +3 -7
- package/es/ele-pro-table/components/tool-export.d.ts +52 -357
- package/es/ele-pro-table/components/tool-export.js +109 -63
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-body-cell.js +50 -6
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-header-cell.js +4 -1
- package/es/ele-pro-table/components/tool-print.d.ts +56 -794
- package/es/ele-pro-table/components/tool-print.js +198 -85
- package/es/ele-pro-table/index.d.ts +131 -143
- package/es/ele-pro-table/index.js +110 -79
- package/es/ele-pro-table/props.d.ts +44 -46
- package/es/ele-pro-table/style/index.scss +9 -0
- package/es/ele-pro-table/types.d.ts +45 -0
- package/es/ele-pro-table/util.d.ts +42 -23
- package/es/ele-pro-table/util.js +206 -53
- package/es/ele-qr-code/index.d.ts +16 -15
- package/es/ele-qr-code/props.d.ts +4 -3
- package/es/ele-qr-code/util.d.ts +3 -2
- package/es/ele-qr-code-svg/index.d.ts +18 -18
- package/es/ele-segmented/index.d.ts +10 -9
- package/es/ele-segmented/props.d.ts +3 -2
- package/es/ele-split-panel/index.d.ts +18 -17
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-steps/index.d.ts +33 -33
- package/es/ele-steps/props.d.ts +10 -9
- package/es/ele-tab-tool/index.d.ts +2 -2
- package/es/ele-tab-tool/props.d.ts +2 -1
- package/es/ele-tab-wrap/index.d.ts +6 -6
- package/es/ele-tab-wrap/index.js +2 -1
- package/es/ele-tab-wrap/props.d.ts +3 -2
- package/es/ele-table/index.d.ts +4 -4
- package/es/ele-table/props.d.ts +3 -2
- package/es/ele-table/style/index.scss +16 -0
- package/es/ele-table-select/index.d.ts +45 -43
- package/es/ele-table-select/index.js +29 -27
- package/es/ele-table-select/props.d.ts +11 -10
- package/es/ele-tabs/components/tab-title.d.ts +9 -8
- package/es/ele-tabs/index.d.ts +43 -55
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-tabs/props.d.ts +17 -23
- package/es/ele-tabs/style/css-var.scss +1 -30
- package/es/ele-tabs/style/index.scss +372 -241
- package/es/ele-tabs/types.d.ts +2 -1
- package/es/ele-text/index.d.ts +12 -12
- package/es/ele-text/props.d.ts +5 -4
- package/es/ele-tool/index.d.ts +7 -7
- package/es/ele-tool/props.d.ts +3 -2
- package/es/ele-toolbar/index.d.ts +15 -15
- package/es/ele-toolbar/props.d.ts +7 -6
- package/es/ele-tooltip/index.d.ts +62 -61
- package/es/ele-tooltip/index.js +3 -0
- package/es/ele-tooltip/props.d.ts +28 -22
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-tour/index.d.ts +15 -14
- package/es/ele-tour/props.d.ts +3 -2
- package/es/ele-tour/util.d.ts +3 -2
- package/es/ele-tree-select/index.d.ts +37 -36
- package/es/ele-tree-select/props.d.ts +12 -11
- package/es/ele-tree-select/util.d.ts +3 -2
- package/es/ele-upload-list/components/list-item.d.ts +7 -6
- package/es/ele-upload-list/index.d.ts +26 -25
- package/es/ele-upload-list/props.d.ts +6 -5
- package/es/ele-virtual-table/components/body-cell.d.ts +100 -64
- package/es/ele-virtual-table/components/body-cell.js +52 -70
- package/es/ele-virtual-table/components/body-row.d.ts +89 -65
- package/es/ele-virtual-table/components/body-row.js +57 -52
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/es/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/es/ele-virtual-table/components/cell-filter.js +8 -12
- package/es/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/es/ele-virtual-table/components/expand-row.js +3 -3
- package/es/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/es/ele-virtual-table/components/footer-row.js +19 -14
- package/es/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/es/ele-virtual-table/components/header-row.d.ts +12 -11
- package/es/ele-virtual-table/index.d.ts +91 -100
- package/es/ele-virtual-table/index.js +134 -136
- package/es/ele-virtual-table/props.d.ts +49 -51
- package/es/ele-virtual-table/style/index.scss +1 -1
- package/es/ele-virtual-table/types.d.ts +88 -68
- package/es/ele-virtual-table/util.d.ts +16 -12
- package/es/ele-virtual-table/util.js +32 -24
- package/es/ele-watermark/index.d.ts +15 -14
- package/es/ele-watermark/props.d.ts +4 -3
- package/es/ele-watermark/util.d.ts +3 -2
- package/es/ele-xg-player/index.d.ts +10 -10
- package/es/icons/AnalysisOutlined.d.ts +1 -1
- package/es/icons/ApplicationOutlined.d.ts +1 -1
- package/es/icons/AppstoreAddOutlined.d.ts +1 -1
- package/es/icons/AppstoreOutlined.d.ts +1 -1
- package/es/icons/ArrowDown.d.ts +1 -1
- package/es/icons/ArrowDownOutlined.d.ts +1 -1
- package/es/icons/ArrowLeft.d.ts +1 -1
- package/es/icons/ArrowLeftOutlined.d.ts +1 -1
- package/es/icons/ArrowRight.d.ts +1 -1
- package/es/icons/ArrowRightOutlined.d.ts +1 -1
- package/es/icons/ArrowUp.d.ts +1 -1
- package/es/icons/ArrowUpOutlined.d.ts +1 -1
- package/es/icons/BellOutlined.d.ts +1 -1
- package/es/icons/BookOutlined.d.ts +1 -1
- package/es/icons/CalendarOutlined.d.ts +1 -1
- package/es/icons/CaretDownFilled.d.ts +1 -1
- package/es/icons/CaretUpFilled.d.ts +1 -1
- package/es/icons/CheckCircleFilled.d.ts +1 -1
- package/es/icons/CheckCircleOutlined.d.ts +1 -1
- package/es/icons/CheckOutlined.d.ts +1 -1
- package/es/icons/CityOutlined.d.ts +1 -1
- package/es/icons/ClockCircleOutlined.d.ts +1 -1
- package/es/icons/CloseCircleFilled.d.ts +1 -1
- package/es/icons/CloseCircleOutlined.d.ts +1 -1
- package/es/icons/CloseOutlined.d.ts +1 -1
- package/es/icons/CloudUploadOutlined.d.ts +1 -1
- package/es/icons/ClusterOutlined.d.ts +1 -1
- package/es/icons/CodeOutlined.d.ts +1 -1
- package/es/icons/ColumnHeightOutlined.d.ts +1 -1
- package/es/icons/CompassOutlined.d.ts +1 -1
- package/es/icons/CompressOutlined.d.ts +1 -1
- package/es/icons/ConnectionOutlined.d.ts +1 -1
- package/es/icons/ControlOutlined.d.ts +1 -1
- package/es/icons/CopyOutlined.d.ts +1 -1
- package/es/icons/CpuOutlined.d.ts +1 -1
- package/es/icons/DashboardOutlined.d.ts +1 -1
- package/es/icons/DatabaseOutlined.d.ts +1 -1
- package/es/icons/DeleteOutlined.d.ts +1 -1
- package/es/icons/DesktopOutlined.d.ts +1 -1
- package/es/icons/DownloadOutlined.d.ts +1 -1
- package/es/icons/DragOutlined.d.ts +1 -1
- package/es/icons/EditOutlined.d.ts +1 -1
- package/es/icons/EllipsisOutlined.d.ts +1 -1
- package/es/icons/EnvironmentOutlined.d.ts +1 -1
- package/es/icons/ExclamationCircleFilled.d.ts +1 -1
- package/es/icons/ExpandOutlined.d.ts +1 -1
- package/es/icons/FileOutlined.d.ts +1 -1
- package/es/icons/FilterFilled.d.ts +1 -1
- package/es/icons/FolderAddOutlined.d.ts +1 -1
- package/es/icons/FolderOutlined.d.ts +1 -1
- package/es/icons/FormOutlined.d.ts +1 -1
- package/es/icons/FullscreenExitOutlined.d.ts +1 -1
- package/es/icons/FullscreenOutlined.d.ts +1 -1
- package/es/icons/FundOutlined.d.ts +1 -1
- package/es/icons/GlobalOutlined.d.ts +1 -1
- package/es/icons/HolderOutlined.d.ts +1 -1
- package/es/icons/HomeOutlined.d.ts +1 -1
- package/es/icons/IdcardOutlined.d.ts +1 -1
- package/es/icons/InfoCircleFilled.d.ts +1 -1
- package/es/icons/LinkOutlined.d.ts +1 -1
- package/es/icons/LoadingDotOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.js +1 -1
- package/es/icons/LockOutlined.d.ts +1 -1
- package/es/icons/LogOutlined.d.ts +1 -1
- package/es/icons/LogoutOutlined.d.ts +1 -1
- package/es/icons/MailOutlined.d.ts +1 -1
- package/es/icons/MenuFoldOutlined.d.ts +1 -1
- package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/es/icons/MessageOutlined.d.ts +1 -1
- package/es/icons/MinusCircleOutlined.d.ts +1 -1
- package/es/icons/MobileOutlined.d.ts +1 -1
- package/es/icons/MoonOutlined.d.ts +1 -1
- package/es/icons/MoreOutlined.d.ts +1 -1
- package/es/icons/PauseFilled.d.ts +1 -1
- package/es/icons/PieChartOutlined.d.ts +1 -1
- package/es/icons/PlayFilled.d.ts +1 -1
- package/es/icons/PlusCircleOutlined.d.ts +1 -1
- package/es/icons/PlusOutlined.d.ts +1 -1
- package/es/icons/PrinterOutlined.d.ts +1 -1
- package/es/icons/ProtectOutlined.d.ts +1 -1
- package/es/icons/QuestionCircleFilled.d.ts +1 -1
- package/es/icons/QuestionCircleOutlined.d.ts +1 -1
- package/es/icons/ReloadOutlined.d.ts +1 -1
- package/es/icons/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- package/es/icons/SearchOutlined.d.ts +1 -1
- package/es/icons/SettingOutlined.d.ts +1 -1
- package/es/icons/ShoppingOutlined.d.ts +1 -1
- package/es/icons/SortOutlined.d.ts +1 -1
- package/es/icons/StarFilled.d.ts +1 -1
- package/es/icons/StepBackwardFilled.d.ts +1 -1
- package/es/icons/StepForwardFilled.d.ts +1 -1
- package/es/icons/SuitcaseOutlined.d.ts +1 -1
- package/es/icons/SunOutlined.d.ts +1 -1
- package/es/icons/SwapOutlined.d.ts +1 -1
- package/es/icons/SyncOutlined.d.ts +1 -1
- package/es/icons/TableOutlined.d.ts +1 -1
- package/es/icons/TagOutlined.d.ts +1 -1
- package/es/icons/TimerOutlined.d.ts +1 -1
- package/es/icons/UndoOutlined.d.ts +1 -1
- package/es/icons/UnlockOutlined.d.ts +1 -1
- package/es/icons/UploadOutlined.d.ts +1 -1
- package/es/icons/UserOutlined.d.ts +1 -1
- package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.d.ts +1 -1
- package/es/icons/VerticalRightOutlined.d.ts +1 -1
- package/es/icons/WarningOutlined.d.ts +1 -1
- package/es/icons/ZoomInOutlined.d.ts +1 -1
- package/es/icons/ZoomOutOutlined.d.ts +1 -1
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +50 -48
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/en_US.js +7 -1
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +7 -1
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +7 -1
- package/es/style/nprogress.scss +1 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +140 -166
- package/es/style/themes/rounded.scss +27 -45
- package/es/utils/core.d.ts +7 -0
- package/es/utils/core.js +16 -2
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/menu-util.js +2 -5
- package/es/utils/message-box.d.ts +25 -0
- package/es/utils/message-box.js +71 -0
- package/es/utils/message.d.ts +45 -20
- package/es/utils/message.js +220 -37
- package/es/utils/resolvers.d.ts +2 -2
- package/lib/core-export.cjs +8 -0
- package/lib/core-export.d.ts +1 -0
- package/lib/core-installer.d.ts +2 -2
- package/lib/ele-alert/index.cjs +2 -2
- package/lib/ele-alert/index.d.ts +23 -23
- package/lib/ele-alert/props.d.ts +10 -9
- package/lib/ele-app/components/message-body.cjs +91 -0
- package/lib/ele-app/components/message-body.d.ts +39 -0
- package/lib/ele-app/el.d.ts +4 -1
- package/lib/ele-app/index.d.ts +2 -2
- package/lib/ele-app/style/message/css-var.scss +0 -4
- package/lib/ele-app/style/message/index.scss +199 -77
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/lib/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/lib/ele-app/style/overwrite/tag/index.scss +57 -14
- package/lib/ele-app/types.d.ts +6 -1
- package/lib/ele-avatar-group/index.d.ts +29 -28
- package/lib/ele-avatar-group/props.d.ts +10 -9
- package/lib/ele-bar-code/index.d.ts +11 -10
- package/lib/ele-bar-code/props.d.ts +4 -3
- package/lib/ele-basic-select/index.cjs +23 -6
- package/lib/ele-basic-select/index.d.ts +37 -35
- package/lib/ele-basic-select/props.d.ts +9 -8
- package/lib/ele-basic-select/util.d.ts +2 -1
- package/lib/ele-bottom-bar/index.d.ts +6 -6
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-breadcrumb/index.d.ts +11 -10
- package/lib/ele-breadcrumb/props.d.ts +5 -4
- package/lib/ele-card/index.d.ts +12 -12
- package/lib/ele-card/props.d.ts +7 -6
- package/lib/ele-check-card/components/card-item.d.ts +7 -6
- package/lib/ele-check-card/index.d.ts +15 -14
- package/lib/ele-check-card/props.d.ts +6 -5
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -44
- package/lib/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/lib/ele-config-provider/index.cjs +18 -4
- package/lib/ele-config-provider/index.d.ts +13 -9
- package/lib/ele-config-provider/props.cjs +9 -5
- package/lib/ele-config-provider/props.d.ts +12 -6
- package/lib/ele-config-provider/receiver.cjs +41 -2
- package/lib/ele-config-provider/receiver.d.ts +6 -10
- package/lib/ele-config-provider/types.d.ts +25 -30
- package/lib/ele-copyable/index.d.ts +32 -31
- package/lib/ele-copyable/props.d.ts +9 -8
- package/lib/ele-count-up/index.d.ts +8 -7
- package/lib/ele-count-up/props.d.ts +3 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/lib/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/lib/ele-cropper/index.d.ts +16 -15
- package/lib/ele-cropper/props.d.ts +4 -3
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-cropper-modal/index.d.ts +16 -15
- package/lib/ele-cropper-modal/props.d.ts +7 -6
- package/lib/ele-dashboard/index.d.ts +5 -5
- package/lib/ele-dashboard/props.d.ts +3 -2
- package/lib/ele-data-table/index.d.ts +63 -68
- package/lib/ele-data-table/props.d.ts +36 -41
- package/lib/ele-data-table/types.d.ts +10 -16
- package/lib/ele-data-table/util.d.ts +10 -9
- package/lib/ele-dot/index.d.ts +4 -4
- package/lib/ele-dot/props.d.ts +3 -2
- package/lib/ele-drawer/index.cjs +105 -111
- package/lib/ele-drawer/index.d.ts +76 -72
- package/lib/ele-drawer/props.d.ts +26 -25
- package/lib/ele-drawer/style/index.scss +48 -105
- package/lib/ele-dropdown/index.d.ts +66 -65
- package/lib/ele-dropdown/props.d.ts +22 -21
- package/lib/ele-edit-tag/index.cjs +5 -3
- package/lib/ele-edit-tag/index.d.ts +40 -34
- package/lib/ele-edit-tag/props.cjs +2 -0
- package/lib/ele-edit-tag/props.d.ts +12 -9
- package/lib/ele-edit-tag/style/index.scss +11 -4
- package/lib/ele-ellipsis/index.d.ts +23 -22
- package/lib/ele-ellipsis/props.d.ts +8 -7
- package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
- package/lib/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-grid.d.ts +10 -9
- package/lib/ele-file-list/components/file-sort.d.ts +2 -2
- package/lib/ele-file-list/components/file-table-item.cjs +1 -1
- package/lib/ele-file-list/components/file-table-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-table.d.ts +10 -9
- package/lib/ele-file-list/icons.d.ts +2 -1
- package/lib/ele-file-list/index.d.ts +36 -35
- package/lib/ele-file-list/props.d.ts +6 -5
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/lib/ele-icon-select/index.d.ts +59 -60
- package/lib/ele-icon-select/props.d.ts +18 -17
- package/lib/ele-loading/index.cjs +9 -15
- package/lib/ele-loading/index.d.ts +12 -15
- package/lib/ele-loading/props.d.ts +5 -4
- package/lib/ele-map-picker/components/map-view.cjs +1 -1
- package/lib/ele-map-picker/components/map-view.d.ts +29 -28
- package/lib/ele-map-picker/index.cjs +1 -1
- package/lib/ele-map-picker/index.d.ts +27 -26
- package/lib/ele-map-picker/props.d.ts +8 -7
- package/lib/ele-menus/index.cjs +12 -1
- package/lib/ele-menus/index.d.ts +62 -63
- package/lib/ele-menus/props.cjs +1 -3
- package/lib/ele-menus/props.d.ts +16 -17
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-menus/util.d.ts +3 -2
- package/lib/ele-modal/index.cjs +176 -198
- package/lib/ele-modal/index.d.ts +77 -70
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +26 -23
- package/lib/ele-modal/style/index.scss +87 -146
- package/lib/ele-modal/util.cjs +53 -179
- package/lib/ele-modal/util.d.ts +20 -45
- package/lib/ele-page/index.d.ts +2 -2
- package/lib/ele-page/props.d.ts +2 -1
- package/lib/ele-pagination/index.cjs +4 -1
- package/lib/ele-pagination/index.d.ts +40 -31
- package/lib/ele-pagination/props.cjs +5 -0
- package/lib/ele-pagination/props.d.ts +17 -11
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +93 -92
- package/lib/ele-popconfirm/props.d.ts +33 -32
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +71 -70
- package/lib/ele-popover/props.d.ts +26 -25
- package/lib/ele-printer/index.d.ts +18 -18
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/util.d.ts +2 -1
- package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
- package/lib/ele-pro-layout/components/pro-header.d.ts +85 -29
- package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +15 -19
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/lib/ele-pro-layout/index.cjs +62 -47
- package/lib/ele-pro-layout/index.d.ts +97 -97
- package/lib/ele-pro-layout/props.cjs +2 -4
- package/lib/ele-pro-layout/props.d.ts +11 -13
- package/lib/ele-pro-layout/style/css-var.scss +3 -18
- package/lib/ele-pro-layout/style/header.scss +74 -9
- package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/lib/ele-pro-layout/style/layout-style.scss +8 -3
- package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
- package/lib/ele-pro-layout/style/layout.scss +38 -8
- package/lib/ele-pro-layout/style/sidebar.scss +0 -1
- package/lib/ele-pro-layout/style/tabs.scss +19 -11
- package/lib/ele-pro-layout/types.d.ts +5 -5
- package/lib/ele-pro-layout/util.cjs +2 -3
- package/lib/ele-pro-layout/util.d.ts +6 -6
- package/lib/ele-pro-table/components/table-tools.cjs +14 -26
- package/lib/ele-pro-table/components/table-tools.d.ts +33 -23
- package/lib/ele-pro-table/components/tool-column-list.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/lib/ele-pro-table/components/tool-column.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column.d.ts +15 -13
- package/lib/ele-pro-table/components/tool-export.cjs +107 -61
- package/lib/ele-pro-table/components/tool-export.d.ts +52 -357
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +49 -5
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +4 -1
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print.cjs +195 -82
- package/lib/ele-pro-table/components/tool-print.d.ts +56 -794
- package/lib/ele-pro-table/index.cjs +108 -77
- package/lib/ele-pro-table/index.d.ts +131 -143
- package/lib/ele-pro-table/props.d.ts +44 -46
- package/lib/ele-pro-table/style/index.scss +9 -0
- package/lib/ele-pro-table/types.d.ts +45 -0
- package/lib/ele-pro-table/util.cjs +205 -52
- package/lib/ele-pro-table/util.d.ts +42 -23
- package/lib/ele-qr-code/index.d.ts +16 -15
- package/lib/ele-qr-code/props.d.ts +4 -3
- package/lib/ele-qr-code/util.d.ts +3 -2
- package/lib/ele-qr-code-svg/index.d.ts +18 -18
- package/lib/ele-segmented/index.d.ts +10 -9
- package/lib/ele-segmented/props.d.ts +3 -2
- package/lib/ele-split-panel/index.d.ts +18 -17
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-steps/index.d.ts +33 -33
- package/lib/ele-steps/props.d.ts +10 -9
- package/lib/ele-tab-tool/index.d.ts +2 -2
- package/lib/ele-tab-tool/props.d.ts +2 -1
- package/lib/ele-tab-wrap/index.cjs +2 -1
- package/lib/ele-tab-wrap/index.d.ts +6 -6
- package/lib/ele-tab-wrap/props.d.ts +3 -2
- package/lib/ele-table/index.d.ts +4 -4
- package/lib/ele-table/props.d.ts +3 -2
- package/lib/ele-table/style/index.scss +16 -0
- package/lib/ele-table-select/index.cjs +29 -27
- package/lib/ele-table-select/index.d.ts +45 -43
- package/lib/ele-table-select/props.d.ts +11 -10
- package/lib/ele-tabs/components/tab-title.d.ts +9 -8
- package/lib/ele-tabs/index.cjs +1 -0
- package/lib/ele-tabs/index.d.ts +43 -55
- package/lib/ele-tabs/props.d.ts +17 -23
- package/lib/ele-tabs/style/css-var.scss +1 -30
- package/lib/ele-tabs/style/index.scss +372 -241
- package/lib/ele-tabs/types.d.ts +2 -1
- package/lib/ele-text/index.d.ts +12 -12
- package/lib/ele-text/props.d.ts +5 -4
- package/lib/ele-tool/index.d.ts +7 -7
- package/lib/ele-tool/props.d.ts +3 -2
- package/lib/ele-toolbar/index.d.ts +15 -15
- package/lib/ele-toolbar/props.d.ts +7 -6
- package/lib/ele-tooltip/index.cjs +3 -0
- package/lib/ele-tooltip/index.d.ts +62 -61
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +28 -22
- package/lib/ele-tour/index.d.ts +15 -14
- package/lib/ele-tour/props.d.ts +3 -2
- package/lib/ele-tour/util.d.ts +3 -2
- package/lib/ele-tree-select/index.d.ts +37 -36
- package/lib/ele-tree-select/props.d.ts +12 -11
- package/lib/ele-tree-select/util.d.ts +3 -2
- package/lib/ele-upload-list/components/list-item.d.ts +7 -6
- package/lib/ele-upload-list/index.d.ts +26 -25
- package/lib/ele-upload-list/props.d.ts +6 -5
- package/lib/ele-virtual-table/components/body-cell.cjs +52 -70
- package/lib/ele-virtual-table/components/body-cell.d.ts +100 -64
- package/lib/ele-virtual-table/components/body-row.cjs +57 -52
- package/lib/ele-virtual-table/components/body-row.d.ts +89 -65
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
- package/lib/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
- package/lib/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/lib/ele-virtual-table/components/footer-row.cjs +19 -14
- package/lib/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/lib/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/lib/ele-virtual-table/components/header-row.d.ts +12 -11
- package/lib/ele-virtual-table/index.cjs +132 -134
- package/lib/ele-virtual-table/index.d.ts +91 -100
- package/lib/ele-virtual-table/props.d.ts +49 -51
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/ele-virtual-table/types.d.ts +88 -68
- package/lib/ele-virtual-table/util.cjs +32 -24
- package/lib/ele-virtual-table/util.d.ts +16 -12
- package/lib/ele-watermark/index.d.ts +15 -14
- package/lib/ele-watermark/props.d.ts +4 -3
- package/lib/ele-watermark/util.d.ts +3 -2
- package/lib/ele-xg-player/index.d.ts +10 -10
- package/lib/icons/AnalysisOutlined.d.ts +1 -1
- package/lib/icons/ApplicationOutlined.d.ts +1 -1
- package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
- package/lib/icons/AppstoreOutlined.d.ts +1 -1
- package/lib/icons/ArrowDown.d.ts +1 -1
- package/lib/icons/ArrowDownOutlined.d.ts +1 -1
- package/lib/icons/ArrowLeft.d.ts +1 -1
- package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
- package/lib/icons/ArrowRight.d.ts +1 -1
- package/lib/icons/ArrowRightOutlined.d.ts +1 -1
- package/lib/icons/ArrowUp.d.ts +1 -1
- package/lib/icons/ArrowUpOutlined.d.ts +1 -1
- package/lib/icons/BellOutlined.d.ts +1 -1
- package/lib/icons/BookOutlined.d.ts +1 -1
- package/lib/icons/CalendarOutlined.d.ts +1 -1
- package/lib/icons/CaretDownFilled.d.ts +1 -1
- package/lib/icons/CaretUpFilled.d.ts +1 -1
- package/lib/icons/CheckCircleFilled.d.ts +1 -1
- package/lib/icons/CheckCircleOutlined.d.ts +1 -1
- package/lib/icons/CheckOutlined.d.ts +1 -1
- package/lib/icons/CityOutlined.d.ts +1 -1
- package/lib/icons/ClockCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseCircleFilled.d.ts +1 -1
- package/lib/icons/CloseCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseOutlined.d.ts +1 -1
- package/lib/icons/CloudUploadOutlined.d.ts +1 -1
- package/lib/icons/ClusterOutlined.d.ts +1 -1
- package/lib/icons/CodeOutlined.d.ts +1 -1
- package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
- package/lib/icons/CompassOutlined.d.ts +1 -1
- package/lib/icons/CompressOutlined.d.ts +1 -1
- package/lib/icons/ConnectionOutlined.d.ts +1 -1
- package/lib/icons/ControlOutlined.d.ts +1 -1
- package/lib/icons/CopyOutlined.d.ts +1 -1
- package/lib/icons/CpuOutlined.d.ts +1 -1
- package/lib/icons/DashboardOutlined.d.ts +1 -1
- package/lib/icons/DatabaseOutlined.d.ts +1 -1
- package/lib/icons/DeleteOutlined.d.ts +1 -1
- package/lib/icons/DesktopOutlined.d.ts +1 -1
- package/lib/icons/DownloadOutlined.d.ts +1 -1
- package/lib/icons/DragOutlined.d.ts +1 -1
- package/lib/icons/EditOutlined.d.ts +1 -1
- package/lib/icons/EllipsisOutlined.d.ts +1 -1
- package/lib/icons/EnvironmentOutlined.d.ts +1 -1
- package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
- package/lib/icons/ExpandOutlined.d.ts +1 -1
- package/lib/icons/FileOutlined.d.ts +1 -1
- package/lib/icons/FilterFilled.d.ts +1 -1
- package/lib/icons/FolderAddOutlined.d.ts +1 -1
- package/lib/icons/FolderOutlined.d.ts +1 -1
- package/lib/icons/FormOutlined.d.ts +1 -1
- package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
- package/lib/icons/FullscreenOutlined.d.ts +1 -1
- package/lib/icons/FundOutlined.d.ts +1 -1
- package/lib/icons/GlobalOutlined.d.ts +1 -1
- package/lib/icons/HolderOutlined.d.ts +1 -1
- package/lib/icons/HomeOutlined.d.ts +1 -1
- package/lib/icons/IdcardOutlined.d.ts +1 -1
- package/lib/icons/InfoCircleFilled.d.ts +1 -1
- package/lib/icons/LinkOutlined.d.ts +1 -1
- package/lib/icons/LoadingDotOutlined.d.ts +1 -1
- package/lib/icons/LoadingOutlined.cjs +1 -1
- package/lib/icons/LoadingOutlined.d.ts +1 -1
- package/lib/icons/LockOutlined.d.ts +1 -1
- package/lib/icons/LogOutlined.d.ts +1 -1
- package/lib/icons/LogoutOutlined.d.ts +1 -1
- package/lib/icons/MailOutlined.d.ts +1 -1
- package/lib/icons/MenuFoldOutlined.d.ts +1 -1
- package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/lib/icons/MessageOutlined.d.ts +1 -1
- package/lib/icons/MinusCircleOutlined.d.ts +1 -1
- package/lib/icons/MobileOutlined.d.ts +1 -1
- package/lib/icons/MoonOutlined.d.ts +1 -1
- package/lib/icons/MoreOutlined.d.ts +1 -1
- package/lib/icons/PauseFilled.d.ts +1 -1
- package/lib/icons/PieChartOutlined.d.ts +1 -1
- package/lib/icons/PlayFilled.d.ts +1 -1
- package/lib/icons/PlusCircleOutlined.d.ts +1 -1
- package/lib/icons/PlusOutlined.d.ts +1 -1
- package/lib/icons/PrinterOutlined.d.ts +1 -1
- package/lib/icons/ProtectOutlined.d.ts +1 -1
- package/lib/icons/QuestionCircleFilled.d.ts +1 -1
- package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
- package/lib/icons/ReloadOutlined.d.ts +1 -1
- package/lib/icons/ResizeOutlined.cjs +29 -0
- package/lib/icons/ResizeOutlined.d.ts +2 -0
- package/lib/icons/SearchOutlined.d.ts +1 -1
- package/lib/icons/SettingOutlined.d.ts +1 -1
- package/lib/icons/ShoppingOutlined.d.ts +1 -1
- package/lib/icons/SortOutlined.d.ts +1 -1
- package/lib/icons/StarFilled.d.ts +1 -1
- package/lib/icons/StepBackwardFilled.d.ts +1 -1
- package/lib/icons/StepForwardFilled.d.ts +1 -1
- package/lib/icons/SuitcaseOutlined.d.ts +1 -1
- package/lib/icons/SunOutlined.d.ts +1 -1
- package/lib/icons/SwapOutlined.d.ts +1 -1
- package/lib/icons/SyncOutlined.d.ts +1 -1
- package/lib/icons/TableOutlined.d.ts +1 -1
- package/lib/icons/TagOutlined.d.ts +1 -1
- package/lib/icons/TimerOutlined.d.ts +1 -1
- package/lib/icons/UndoOutlined.d.ts +1 -1
- package/lib/icons/UnlockOutlined.d.ts +1 -1
- package/lib/icons/UploadOutlined.d.ts +1 -1
- package/lib/icons/UserOutlined.d.ts +1 -1
- package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
- package/lib/icons/VerticalRightOutlined.d.ts +1 -1
- package/lib/icons/WarningOutlined.d.ts +1 -1
- package/lib/icons/ZoomInOutlined.d.ts +1 -1
- package/lib/icons/ZoomOutOutlined.d.ts +1 -1
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.cjs +7 -1
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +7 -1
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +7 -1
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/style/nprogress.scss +1 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +140 -166
- package/lib/style/themes/rounded.scss +27 -45
- package/lib/utils/core.cjs +16 -2
- package/lib/utils/core.d.ts +7 -0
- package/lib/utils/menu-util.cjs +1 -4
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message-box.cjs +71 -0
- package/lib/utils/message-box.d.ts +25 -0
- package/lib/utils/message.cjs +216 -33
- package/lib/utils/message.d.ts +45 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +26 -25
|
@@ -4,9 +4,10 @@ const icons = require("../../icons");
|
|
|
4
4
|
const EleBreadcrumb = require("../../ele-breadcrumb/index");
|
|
5
5
|
const EleMenus = require("../../ele-menus/index");
|
|
6
6
|
const util = require("../util");
|
|
7
|
+
const ProTabs = require("./pro-tabs");
|
|
7
8
|
const _sfc_main = vue.defineComponent({
|
|
8
9
|
name: "ProHeader",
|
|
9
|
-
components: { EleBreadcrumb, EleMenus },
|
|
10
|
+
components: { EleBreadcrumb, EleMenus, ProTabs },
|
|
10
11
|
props: {
|
|
11
12
|
/** 菜单数据 */
|
|
12
13
|
menus: {
|
|
@@ -47,9 +48,29 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
48
|
/** 当前路由是否是主页 */
|
|
48
49
|
isHome: Boolean,
|
|
49
50
|
/** 是否开启菜单文本溢出提示 */
|
|
50
|
-
menuTextEllipsisTooltip: Boolean,
|
|
51
|
-
/**
|
|
52
|
-
|
|
51
|
+
menuTextEllipsisTooltip: [Boolean, Object],
|
|
52
|
+
/** 页签数据 */
|
|
53
|
+
tabs: {
|
|
54
|
+
type: Array,
|
|
55
|
+
required: true
|
|
56
|
+
},
|
|
57
|
+
/** 页签选中 */
|
|
58
|
+
tabActive: {
|
|
59
|
+
type: String,
|
|
60
|
+
required: true
|
|
61
|
+
},
|
|
62
|
+
/** 是否需要固定的主页页签 */
|
|
63
|
+
fixedHome: Boolean,
|
|
64
|
+
/** 页签风格 */
|
|
65
|
+
tabStyle: String,
|
|
66
|
+
/** 是否支持右键菜单 */
|
|
67
|
+
tabContextMenu: [Boolean, Object],
|
|
68
|
+
/** 右键菜单 */
|
|
69
|
+
tabContextMenus: [Array, Function],
|
|
70
|
+
/** 是否支持拖动排序 */
|
|
71
|
+
tabSortable: Boolean,
|
|
72
|
+
/** 是否需要页签栏 */
|
|
73
|
+
tabBar: [Boolean, String]
|
|
53
74
|
},
|
|
54
75
|
emits: {
|
|
55
76
|
logoClick: () => true,
|
|
@@ -59,7 +80,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
59
80
|
itemMouseenter: (_item, _e) => true,
|
|
60
81
|
itemMouseleave: (_item, _e) => true,
|
|
61
82
|
mouseEnter: (_e) => true,
|
|
62
|
-
mouseLeave: (_e) => true
|
|
83
|
+
mouseLeave: (_e) => true,
|
|
84
|
+
tabClick: (_opt) => true,
|
|
85
|
+
tabRemove: (_opt) => true,
|
|
86
|
+
tabContextMenu: (_opt) => true,
|
|
87
|
+
tabSortChange: (_data) => true
|
|
63
88
|
},
|
|
64
89
|
setup(props, { emit }) {
|
|
65
90
|
const state = { hover: false, timer: null };
|
|
@@ -75,6 +100,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
75
100
|
const isIconSeparator = vue.computed(() => {
|
|
76
101
|
return typeof props.breadcrumbSeparator !== "string";
|
|
77
102
|
});
|
|
103
|
+
const hasTab = vue.computed(() => props.tabBar === "header");
|
|
78
104
|
const onLogoClick = () => {
|
|
79
105
|
emit("logoClick");
|
|
80
106
|
};
|
|
@@ -115,6 +141,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
115
141
|
emit("mouseLeave", e);
|
|
116
142
|
}, 300);
|
|
117
143
|
};
|
|
144
|
+
const onTabClick = (opt) => {
|
|
145
|
+
emit("tabClick", opt);
|
|
146
|
+
};
|
|
147
|
+
const onTabRemove = (opt) => {
|
|
148
|
+
emit("tabRemove", opt);
|
|
149
|
+
};
|
|
150
|
+
const onTabContextMenu = (opt) => {
|
|
151
|
+
emit("tabContextMenu", opt);
|
|
152
|
+
};
|
|
153
|
+
const onTabSortChange = (data) => {
|
|
154
|
+
emit("tabSortChange", data);
|
|
155
|
+
};
|
|
118
156
|
vue.watch(
|
|
119
157
|
[() => props.isHome, () => props.homePath, () => props.levels],
|
|
120
158
|
() => {
|
|
@@ -152,6 +190,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
152
190
|
isDark,
|
|
153
191
|
isPrimary,
|
|
154
192
|
isIconSeparator,
|
|
193
|
+
hasTab,
|
|
155
194
|
onLogoClick,
|
|
156
195
|
onOpen,
|
|
157
196
|
onClose,
|
|
@@ -159,7 +198,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
159
198
|
onItemMouseenter,
|
|
160
199
|
onItemMouseleave,
|
|
161
200
|
onMouseenter,
|
|
162
|
-
onMouseleave
|
|
201
|
+
onMouseleave,
|
|
202
|
+
onTabClick,
|
|
203
|
+
onTabRemove,
|
|
204
|
+
onTabContextMenu,
|
|
205
|
+
onTabSortChange
|
|
163
206
|
};
|
|
164
207
|
}
|
|
165
208
|
});
|
|
@@ -178,19 +221,24 @@ const _hoisted_2 = {
|
|
|
178
221
|
key: 2,
|
|
179
222
|
class: "ele-admin-breadcrumb"
|
|
180
223
|
};
|
|
181
|
-
const _hoisted_3 = {
|
|
182
|
-
const _hoisted_4 = {
|
|
224
|
+
const _hoisted_3 = {
|
|
183
225
|
key: 3,
|
|
226
|
+
class: "ele-admin-menus"
|
|
227
|
+
};
|
|
228
|
+
const _hoisted_4 = {
|
|
229
|
+
key: 5,
|
|
184
230
|
class: "ele-admin-tools"
|
|
185
231
|
};
|
|
186
232
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
187
233
|
const _component_EleBreadcrumb = vue.resolveComponent("EleBreadcrumb");
|
|
188
234
|
const _component_EleMenus = vue.resolveComponent("EleMenus");
|
|
235
|
+
const _component_ProTabs = vue.resolveComponent("ProTabs");
|
|
189
236
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
190
237
|
class: vue.normalizeClass([
|
|
191
238
|
"ele-admin-header",
|
|
192
239
|
{ "is-dark": _ctx.isDark },
|
|
193
|
-
{ "is-primary": _ctx.isPrimary }
|
|
240
|
+
{ "is-primary": _ctx.isPrimary },
|
|
241
|
+
{ "is-ghost": !_ctx.isDark && !_ctx.isPrimary && _ctx.hasTab && _ctx.tabStyle === "button" }
|
|
194
242
|
]),
|
|
195
243
|
onMouseenter: _cache[1] || (_cache[1] = (...args) => _ctx.onMouseenter && _ctx.onMouseenter(...args)),
|
|
196
244
|
onMouseleave: _cache[2] || (_cache[2] = (...args) => _ctx.onMouseleave && _ctx.onMouseleave(...args))
|
|
@@ -223,7 +271,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
271
|
])
|
|
224
272
|
])) : vue.createCommentVNode("", true),
|
|
225
273
|
vue.renderSlot(_ctx.$slots, "center", { sidebar: _ctx.sidebar }),
|
|
226
|
-
vue.
|
|
274
|
+
_ctx.menuItems.length || !_ctx.hasTab ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
227
275
|
_ctx.menuItems.length ? (vue.openBlock(), vue.createBlock(_component_EleMenus, {
|
|
228
276
|
key: 0,
|
|
229
277
|
items: _ctx.menuItems,
|
|
@@ -235,33 +283,75 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
235
283
|
defaultActive: _ctx.active,
|
|
236
284
|
menuTrigger: _ctx.menuTrigger,
|
|
237
285
|
textEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
238
|
-
textEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
239
286
|
onOpen: _ctx.onOpen,
|
|
240
287
|
onClose: _ctx.onClose,
|
|
241
288
|
onItemClick: _ctx.onItemClick,
|
|
242
289
|
onItemMouseenter: _ctx.onItemMouseenter,
|
|
243
290
|
onItemMouseleave: _ctx.onItemMouseleave
|
|
244
291
|
}, vue.createSlots({ _: 2 }, [
|
|
245
|
-
_ctx.iconSlot && ![
|
|
246
|
-
|
|
247
|
-
|
|
292
|
+
_ctx.iconSlot && ![
|
|
293
|
+
"logo",
|
|
294
|
+
"left",
|
|
295
|
+
"right",
|
|
296
|
+
"center",
|
|
297
|
+
"breadcrumb",
|
|
298
|
+
"tabTitle",
|
|
299
|
+
"tabContext",
|
|
300
|
+
"tabExtra",
|
|
301
|
+
"tabHome"
|
|
302
|
+
].includes(_ctx.iconSlot) && _ctx.$slots[_ctx.iconSlot] ? {
|
|
248
303
|
name: "icon",
|
|
249
304
|
fn: vue.withCtx((slotProps) => [
|
|
250
305
|
vue.renderSlot(_ctx.$slots, _ctx.iconSlot, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
251
306
|
]),
|
|
252
307
|
key: "0"
|
|
253
308
|
} : void 0,
|
|
254
|
-
_ctx.titleSlot && ![
|
|
255
|
-
|
|
256
|
-
|
|
309
|
+
_ctx.titleSlot && ![
|
|
310
|
+
"logo",
|
|
311
|
+
"left",
|
|
312
|
+
"right",
|
|
313
|
+
"center",
|
|
314
|
+
"breadcrumb",
|
|
315
|
+
"tabTitle",
|
|
316
|
+
"tabContext",
|
|
317
|
+
"tabExtra",
|
|
318
|
+
"tabHome"
|
|
319
|
+
].includes(_ctx.titleSlot) && _ctx.$slots[_ctx.titleSlot] ? {
|
|
257
320
|
name: "title",
|
|
258
321
|
fn: vue.withCtx((slotProps) => [
|
|
259
322
|
vue.renderSlot(_ctx.$slots, _ctx.titleSlot, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
260
323
|
]),
|
|
261
324
|
key: "1"
|
|
262
325
|
} : void 0
|
|
263
|
-
]), 1032, ["items", "theme", "popupTheme", "ellipsis", "ellipsisProps", "defaultActive", "menuTrigger", "textEllipsisTooltip", "
|
|
264
|
-
]),
|
|
326
|
+
]), 1032, ["items", "theme", "popupTheme", "ellipsis", "ellipsisProps", "defaultActive", "menuTrigger", "textEllipsisTooltip", "onOpen", "onClose", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : vue.createCommentVNode("", true)
|
|
327
|
+
])) : vue.createCommentVNode("", true),
|
|
328
|
+
_ctx.hasTab ? (vue.openBlock(), vue.createBlock(_component_ProTabs, {
|
|
329
|
+
key: 4,
|
|
330
|
+
tabs: _ctx.tabs,
|
|
331
|
+
active: _ctx.tabActive,
|
|
332
|
+
tabStyle: _ctx.tabStyle,
|
|
333
|
+
fixedHome: _ctx.fixedHome,
|
|
334
|
+
homePath: _ctx.homePath,
|
|
335
|
+
isHome: _ctx.isHome,
|
|
336
|
+
tabContextMenu: _ctx.tabContextMenu,
|
|
337
|
+
tabContextMenus: _ctx.tabContextMenus,
|
|
338
|
+
tabSortable: _ctx.tabSortable,
|
|
339
|
+
onTabClick: _ctx.onTabClick,
|
|
340
|
+
onTabRemove: _ctx.onTabRemove,
|
|
341
|
+
onTabContextMenu: _ctx.onTabContextMenu,
|
|
342
|
+
onTabSortChange: _ctx.onTabSortChange
|
|
343
|
+
}, vue.createSlots({ _: 2 }, [
|
|
344
|
+
vue.renderList(Object.keys(_ctx.$slots).filter(
|
|
345
|
+
(k) => ["tabTitle", "tabContext", "tabExtra", "tabHome"].includes(k)
|
|
346
|
+
), (name) => {
|
|
347
|
+
return {
|
|
348
|
+
name,
|
|
349
|
+
fn: vue.withCtx((slotProps) => [
|
|
350
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
351
|
+
])
|
|
352
|
+
};
|
|
353
|
+
})
|
|
354
|
+
]), 1032, ["tabs", "active", "tabStyle", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabContextMenus", "tabSortable", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : vue.createCommentVNode("", true),
|
|
265
355
|
_ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
266
356
|
vue.renderSlot(_ctx.$slots, "right", { sidebar: _ctx.sidebar })
|
|
267
357
|
])) : vue.createCommentVNode("", true)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuItem, LevelItem, HeaderStyle, MenuItemTrigger, MenuItemProps, TabStyle, TabItem, TabItemEventOption } from '../types';
|
|
2
|
+
import { ContextMenus } from '../../ele-tabs/types';
|
|
3
|
+
import { EleDropdownProps } from '../../ele-app/plus';
|
|
2
4
|
import { BreadcrumbItem } from '../../ele-breadcrumb/types';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
declare const _default: import(
|
|
5
|
+
import { PropType } from 'vue';
|
|
6
|
+
|
|
7
|
+
declare const _default: import('vue').DefineComponent<{
|
|
6
8
|
/** 菜单数据 */
|
|
7
9
|
menus: {
|
|
8
10
|
type: PropType<MenuItem[]>;
|
|
@@ -15,9 +17,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
17
|
/** 菜单是否省略多余的子项 */
|
|
16
18
|
ellipsis: BooleanConstructor;
|
|
17
19
|
/** 菜单省略项的属性 */
|
|
18
|
-
ellipsisProps: PropType<EllipsisProps>;
|
|
20
|
+
ellipsisProps: PropType<import('../../ele-menus/types').EllipsisProps | undefined>;
|
|
19
21
|
/** 父级菜单展开触发方式 */
|
|
20
|
-
menuTrigger: PropType<import(
|
|
22
|
+
menuTrigger: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
21
23
|
/** 子菜单项触发模式 */
|
|
22
24
|
itemTrigger: PropType<MenuItemTrigger>;
|
|
23
25
|
/** 侧栏是否折叠 */
|
|
@@ -36,21 +38,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
38
|
/** 是否显示面包屑导航 */
|
|
37
39
|
breadcrumb: BooleanConstructor;
|
|
38
40
|
/** 面包屑导航分隔符 */
|
|
39
|
-
breadcrumbSeparator: PropType<import(
|
|
41
|
+
breadcrumbSeparator: PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown> | undefined>;
|
|
40
42
|
/** 主页路由地址 */
|
|
41
43
|
homePath: StringConstructor;
|
|
42
44
|
/** 当前路由是否是主页 */
|
|
43
45
|
isHome: BooleanConstructor;
|
|
44
46
|
/** 是否开启菜单文本溢出提示 */
|
|
45
|
-
menuTextEllipsisTooltip:
|
|
46
|
-
/**
|
|
47
|
-
|
|
47
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import('../../ele-tooltip/props').TooltipProps> | undefined>;
|
|
48
|
+
/** 页签数据 */
|
|
49
|
+
tabs: {
|
|
50
|
+
type: PropType<TabItem[]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
/** 页签选中 */
|
|
54
|
+
tabActive: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
/** 是否需要固定的主页页签 */
|
|
59
|
+
fixedHome: BooleanConstructor;
|
|
60
|
+
/** 页签风格 */
|
|
61
|
+
tabStyle: PropType<TabStyle>;
|
|
62
|
+
/** 是否支持右键菜单 */
|
|
63
|
+
tabContextMenu: PropType<boolean | EleDropdownProps>;
|
|
64
|
+
/** 右键菜单 */
|
|
65
|
+
tabContextMenus: PropType<ContextMenus>;
|
|
66
|
+
/** 是否支持拖动排序 */
|
|
67
|
+
tabSortable: BooleanConstructor;
|
|
68
|
+
/** 是否需要页签栏 */
|
|
69
|
+
tabBar: PropType<boolean | "header">;
|
|
48
70
|
}, {
|
|
49
|
-
levelItems: import(
|
|
50
|
-
menuItems: import(
|
|
51
|
-
isDark: import(
|
|
52
|
-
isPrimary: import(
|
|
53
|
-
isIconSeparator: import(
|
|
71
|
+
levelItems: import('vue').ShallowRef<BreadcrumbItem[]>;
|
|
72
|
+
menuItems: import('vue').ComputedRef<Partial<import('../../ele-menus/types').MenuItem>[]>;
|
|
73
|
+
isDark: import('vue').ComputedRef<boolean>;
|
|
74
|
+
isPrimary: import('vue').ComputedRef<boolean>;
|
|
75
|
+
isIconSeparator: import('vue').ComputedRef<boolean>;
|
|
76
|
+
hasTab: import('vue').ComputedRef<boolean>;
|
|
54
77
|
onLogoClick: () => void;
|
|
55
78
|
onOpen: (index: string, indexPath: string[]) => void;
|
|
56
79
|
onClose: (index: string, indexPath: string[]) => void;
|
|
@@ -59,7 +82,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
82
|
onItemMouseleave: (item: MenuItemProps, e: MouseEvent) => void;
|
|
60
83
|
onMouseenter: (e: MouseEvent) => void;
|
|
61
84
|
onMouseleave: (e: MouseEvent) => void;
|
|
62
|
-
|
|
85
|
+
onTabClick: (opt: TabItemEventOption) => void;
|
|
86
|
+
onTabRemove: (opt: TabItemEventOption) => void;
|
|
87
|
+
onTabContextMenu: (opt: TabItemEventOption) => void;
|
|
88
|
+
onTabSortChange: (data: TabItem[]) => void;
|
|
89
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
90
|
logoClick: () => true;
|
|
64
91
|
open: (_index: string, _indexPath: string[]) => true;
|
|
65
92
|
close: (_index: string, _indexPath: string[]) => true;
|
|
@@ -68,7 +95,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
95
|
itemMouseleave: (_item: MenuItemProps, _e: MouseEvent) => true;
|
|
69
96
|
mouseEnter: (_e: MouseEvent) => true;
|
|
70
97
|
mouseLeave: (_e: MouseEvent) => true;
|
|
71
|
-
|
|
98
|
+
tabClick: (_opt: TabItemEventOption) => true;
|
|
99
|
+
tabRemove: (_opt: TabItemEventOption) => true;
|
|
100
|
+
tabContextMenu: (_opt: TabItemEventOption) => true;
|
|
101
|
+
tabSortChange: (_data: TabItem[]) => true;
|
|
102
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
72
103
|
/** 菜单数据 */
|
|
73
104
|
menus: {
|
|
74
105
|
type: PropType<MenuItem[]>;
|
|
@@ -81,9 +112,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
112
|
/** 菜单是否省略多余的子项 */
|
|
82
113
|
ellipsis: BooleanConstructor;
|
|
83
114
|
/** 菜单省略项的属性 */
|
|
84
|
-
ellipsisProps: PropType<EllipsisProps>;
|
|
115
|
+
ellipsisProps: PropType<import('../../ele-menus/types').EllipsisProps | undefined>;
|
|
85
116
|
/** 父级菜单展开触发方式 */
|
|
86
|
-
menuTrigger: PropType<import(
|
|
117
|
+
menuTrigger: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
|
|
87
118
|
/** 子菜单项触发模式 */
|
|
88
119
|
itemTrigger: PropType<MenuItemTrigger>;
|
|
89
120
|
/** 侧栏是否折叠 */
|
|
@@ -102,21 +133,45 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
133
|
/** 是否显示面包屑导航 */
|
|
103
134
|
breadcrumb: BooleanConstructor;
|
|
104
135
|
/** 面包屑导航分隔符 */
|
|
105
|
-
breadcrumbSeparator: PropType<import(
|
|
136
|
+
breadcrumbSeparator: PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown> | undefined>;
|
|
106
137
|
/** 主页路由地址 */
|
|
107
138
|
homePath: StringConstructor;
|
|
108
139
|
/** 当前路由是否是主页 */
|
|
109
140
|
isHome: BooleanConstructor;
|
|
110
141
|
/** 是否开启菜单文本溢出提示 */
|
|
111
|
-
menuTextEllipsisTooltip:
|
|
112
|
-
/**
|
|
113
|
-
|
|
142
|
+
menuTextEllipsisTooltip: PropType<boolean | Partial<import('../../ele-tooltip/props').TooltipProps> | undefined>;
|
|
143
|
+
/** 页签数据 */
|
|
144
|
+
tabs: {
|
|
145
|
+
type: PropType<TabItem[]>;
|
|
146
|
+
required: true;
|
|
147
|
+
};
|
|
148
|
+
/** 页签选中 */
|
|
149
|
+
tabActive: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
required: true;
|
|
152
|
+
};
|
|
153
|
+
/** 是否需要固定的主页页签 */
|
|
154
|
+
fixedHome: BooleanConstructor;
|
|
155
|
+
/** 页签风格 */
|
|
156
|
+
tabStyle: PropType<TabStyle>;
|
|
157
|
+
/** 是否支持右键菜单 */
|
|
158
|
+
tabContextMenu: PropType<boolean | EleDropdownProps>;
|
|
159
|
+
/** 右键菜单 */
|
|
160
|
+
tabContextMenus: PropType<ContextMenus>;
|
|
161
|
+
/** 是否支持拖动排序 */
|
|
162
|
+
tabSortable: BooleanConstructor;
|
|
163
|
+
/** 是否需要页签栏 */
|
|
164
|
+
tabBar: PropType<boolean | "header">;
|
|
114
165
|
}>> & {
|
|
115
|
-
onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
116
166
|
onClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
167
|
+
onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
|
|
168
|
+
onTabClick?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
169
|
+
onTabRemove?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
170
|
+
onItemClick?: ((_item: Partial<import('../../ele-menus/types').MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
171
|
+
onTabContextMenu?: ((_opt: TabItemEventOption) => any) | undefined;
|
|
172
|
+
onTabSortChange?: ((_data: TabItem[]) => any) | undefined;
|
|
173
|
+
onItemMouseenter?: ((_item: Partial<import('../../ele-menus/types').MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
174
|
+
onItemMouseleave?: ((_item: Partial<import('../../ele-menus/types').MenuItem>, _e: MouseEvent) => any) | undefined;
|
|
120
175
|
onLogoClick?: (() => any) | undefined;
|
|
121
176
|
onMouseEnter?: ((_e: MouseEvent) => any) | undefined;
|
|
122
177
|
onMouseLeave?: ((_e: MouseEvent) => any) | undefined;
|
|
@@ -124,8 +179,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
179
|
collapse: boolean;
|
|
125
180
|
ellipsis: boolean;
|
|
126
181
|
breadcrumb: boolean;
|
|
127
|
-
|
|
128
|
-
|
|
182
|
+
fixedHome: boolean;
|
|
183
|
+
tabSortable: boolean;
|
|
129
184
|
isHome: boolean;
|
|
185
|
+
sidebar: boolean;
|
|
130
186
|
}, {}>;
|
|
131
187
|
export default _default;
|
|
@@ -19,8 +19,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
19
19
|
},
|
|
20
20
|
setup(props) {
|
|
21
21
|
const state = { timer: null };
|
|
22
|
-
const visible = vue.ref(false);
|
|
23
|
-
const active = vue.ref(null);
|
|
24
22
|
const data = vue.computed(() => {
|
|
25
23
|
const list = [];
|
|
26
24
|
props.tabData.forEach((t) => {
|
|
@@ -32,25 +30,29 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
30
|
});
|
|
33
31
|
return list.sort((a, b) => a.id === b.id ? 0 : a.id > b.id ? 1 : -1);
|
|
34
32
|
});
|
|
33
|
+
const dataActive = vue.computed(() => {
|
|
34
|
+
if (!props.tabActive || !data.value.length || !data.value.some((d) => d.id === props.tabActive)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
return props.tabActive;
|
|
38
|
+
});
|
|
39
|
+
const active = vue.ref(dataActive.value);
|
|
35
40
|
const onAfterLeave = (delay) => {
|
|
36
|
-
if (
|
|
37
|
-
if (delay) {
|
|
38
|
-
clearTimer();
|
|
39
|
-
state.timer = setTimeout(() => {
|
|
40
|
-
state.timer = null;
|
|
41
|
-
visible.value = true;
|
|
42
|
-
vue.nextTick(() => {
|
|
43
|
-
active.value = props.tabActive;
|
|
44
|
-
});
|
|
45
|
-
}, delay);
|
|
46
|
-
} else {
|
|
47
|
-
visible.value = true;
|
|
48
|
-
active.value = props.tabActive;
|
|
49
|
-
}
|
|
50
|
-
} else {
|
|
51
|
-
visible.value = false;
|
|
41
|
+
if (!dataActive.value) {
|
|
52
42
|
active.value = null;
|
|
43
|
+
return;
|
|
53
44
|
}
|
|
45
|
+
if (!delay) {
|
|
46
|
+
active.value = dataActive.value;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
clearTimer();
|
|
50
|
+
state.timer = setTimeout(() => {
|
|
51
|
+
state.timer = null;
|
|
52
|
+
vue.nextTick(() => {
|
|
53
|
+
active.value = dataActive.value;
|
|
54
|
+
});
|
|
55
|
+
}, delay);
|
|
54
56
|
};
|
|
55
57
|
const clearTimer = () => {
|
|
56
58
|
if (state.timer != null) {
|
|
@@ -58,30 +60,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
58
60
|
state.timer = null;
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
|
-
vue.watch(
|
|
62
|
-
()
|
|
63
|
-
()
|
|
64
|
-
clearTimer();
|
|
65
|
-
if (visible.value) {
|
|
66
|
-
if (!props.transitionName) {
|
|
67
|
-
onAfterLeave();
|
|
68
|
-
} else {
|
|
69
|
-
active.value = null;
|
|
70
|
-
}
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
63
|
+
vue.watch(dataActive, () => {
|
|
64
|
+
clearTimer();
|
|
65
|
+
if (active.value == null) {
|
|
73
66
|
onAfterLeave(props.transitionName ? props.transitionDelay : void 0);
|
|
67
|
+
} else if (!props.transitionName) {
|
|
68
|
+
onAfterLeave();
|
|
69
|
+
} else {
|
|
70
|
+
active.value = null;
|
|
74
71
|
}
|
|
75
|
-
);
|
|
72
|
+
});
|
|
76
73
|
vue.onBeforeUnmount(() => {
|
|
77
74
|
clearTimer();
|
|
78
75
|
});
|
|
79
|
-
return {
|
|
80
|
-
active,
|
|
81
|
-
visible,
|
|
82
|
-
data,
|
|
83
|
-
onAfterLeave
|
|
84
|
-
};
|
|
76
|
+
return { active, data, onAfterLeave };
|
|
85
77
|
}
|
|
86
78
|
});
|
|
87
79
|
const _export_sfc = (sfc, props) => {
|
|
@@ -95,7 +87,7 @@ const _hoisted_1 = { class: "ele-admin-iframe-wrap" };
|
|
|
95
87
|
const _hoisted_2 = ["data-id", "src"];
|
|
96
88
|
const _hoisted_3 = ["data-id", "src"];
|
|
97
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
|
-
return vue.
|
|
90
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
99
91
|
!_ctx.transitionName ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.data, (item) => {
|
|
100
92
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
101
93
|
key: item.id
|
|
@@ -133,8 +125,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
125
|
]),
|
|
134
126
|
_: 1
|
|
135
127
|
}, 8, ["name"]))
|
|
136
|
-
], 512)), [
|
|
137
|
-
[vue.vShow, _ctx.visible]
|
|
138
128
|
]);
|
|
139
129
|
}
|
|
140
130
|
const proIframe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TabItem, IframeItem } from '../types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
/** 是否支持内链缓存 */
|
|
5
6
|
keepAlive: BooleanConstructor;
|
|
6
7
|
/** 内链切换动画 */
|
|
@@ -15,11 +16,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
16
|
/** 页签选中 */
|
|
16
17
|
tabActive: StringConstructor;
|
|
17
18
|
}, {
|
|
18
|
-
active: import(
|
|
19
|
-
|
|
20
|
-
data: import("vue").ComputedRef<IframeItem[]>;
|
|
19
|
+
active: import('vue').Ref<string | null | undefined>;
|
|
20
|
+
data: import('vue').ComputedRef<IframeItem[]>;
|
|
21
21
|
onAfterLeave: (delay?: number) => void;
|
|
22
|
-
}, unknown, {}, {}, import(
|
|
22
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
23
|
/** 是否支持内链缓存 */
|
|
24
24
|
keepAlive: BooleanConstructor;
|
|
25
25
|
/** 内链切换动画 */
|
|
@@ -33,9 +33,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
33
|
/** 菜单图标插槽名称 */
|
|
34
34
|
iconSlot: String,
|
|
35
35
|
/** 是否开启菜单文本溢出提示 */
|
|
36
|
-
menuTextEllipsisTooltip: Boolean,
|
|
37
|
-
/** 菜单文本溢出提示属性 */
|
|
38
|
-
menuTextEllipsisTooltipProps: Object
|
|
36
|
+
menuTextEllipsisTooltip: [Boolean, Object]
|
|
39
37
|
},
|
|
40
38
|
emits: {
|
|
41
39
|
open: (_index, _indexPath) => true,
|
|
@@ -120,7 +118,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
120
118
|
popperEffect: _ctx.popperEffect,
|
|
121
119
|
collapseTransition: false,
|
|
122
120
|
textEllipsisTooltip: _ctx.menuTextEllipsisTooltip,
|
|
123
|
-
textEllipsisTooltipProps: _ctx.menuTextEllipsisTooltipProps,
|
|
124
121
|
onOpen: _ctx.onOpen,
|
|
125
122
|
onClose: _ctx.onClose,
|
|
126
123
|
onItemClick: _ctx.onItemClick
|
|
@@ -139,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
136
|
]),
|
|
140
137
|
key: "1"
|
|
141
138
|
} : void 0
|
|
142
|
-
]), 1032, ["items", "theme", "colorful", "collapse", "defaultActive", "defaultOpeneds", "uniqueOpened", "popperEffect", "textEllipsisTooltip", "
|
|
139
|
+
]), 1032, ["items", "theme", "colorful", "collapse", "defaultActive", "defaultOpeneds", "uniqueOpened", "popperEffect", "textEllipsisTooltip", "onOpen", "onClose", "onItemClick"])) : vue.createCommentVNode("", true)
|
|
143
140
|
]),
|
|
144
141
|
_: 3
|
|
145
142
|
}, 512),
|