yuang-framework-ui-pc 1.0.19 → 1.2.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/README.md +17 -41
- package/es/ele-admin-layout/components/layout-skeleton.d.ts +10 -0
- package/es/ele-admin-layout/components/layout-skeleton.js +47 -0
- package/es/ele-admin-layout/components/layout-tabs.d.ts +64 -0
- package/es/ele-admin-layout/components/layout-tabs.js +132 -0
- package/es/ele-admin-layout/components/layout-tool.d.ts +2 -0
- package/es/ele-admin-layout/components/layout-tool.js +21 -0
- package/es/ele-admin-layout/index.d.ts +293 -0
- package/es/ele-admin-layout/index.js +693 -0
- package/es/ele-admin-layout/props.d.ts +182 -0
- package/es/ele-admin-layout/props.js +169 -0
- package/es/ele-admin-layout/style/css-var.scss +14 -0
- package/es/ele-admin-layout/style/header.scss +192 -0
- package/es/ele-admin-layout/style/index.d.ts +1 -0
- package/es/ele-admin-layout/style/index.js +9 -0
- package/es/ele-admin-layout/style/index.scss +313 -0
- package/es/ele-admin-layout/style/sidebar.scss +187 -0
- package/es/ele-admin-layout/style/tabs.scss +59 -0
- package/es/ele-admin-layout/types.d.ts +54 -0
- package/es/ele-app/components/message-body.d.ts +46 -0
- package/es/ele-app/components/message-body.js +98 -0
- package/es/ele-app/components/message-box-icon.d.ts +31 -0
- package/es/ele-app/components/message-box-icon.js +63 -0
- package/es/ele-app/el.d.ts +304 -0
- package/es/ele-app/index.d.ts +4 -0
- package/es/ele-app/index.js +13 -0
- package/es/ele-app/plus.d.ts +181 -0
- package/es/ele-app/style/common/index.d.ts +1 -0
- package/es/ele-app/style/common/index.js +1 -0
- package/es/ele-app/style/common/index.scss +55 -0
- package/es/ele-app/style/css-var.scss +11 -0
- package/es/ele-app/style/index.d.ts +1 -0
- package/es/ele-app/style/index.js +4 -0
- package/es/ele-app/style/index.scss +4 -0
- package/es/ele-app/style/message/css-var.scss +8 -0
- package/es/ele-app/style/message/index.d.ts +1 -0
- package/es/ele-app/style/message/index.js +2 -0
- package/es/ele-app/style/message/index.scss +261 -0
- package/es/ele-app/style/overwrite/autocomplete/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/autocomplete/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/autocomplete/index.js +1 -0
- package/es/ele-app/style/overwrite/autocomplete/index.scss +33 -0
- package/es/ele-app/style/overwrite/backtop/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/backtop/index.js +1 -0
- package/es/ele-app/style/overwrite/backtop/index.scss +8 -0
- package/es/ele-app/style/overwrite/cascader/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/cascader/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/cascader/index.js +1 -0
- package/es/ele-app/style/overwrite/cascader/index.scss +166 -0
- package/es/ele-app/style/overwrite/checkbox/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/checkbox/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/checkbox/index.js +1 -0
- package/es/ele-app/style/overwrite/checkbox/index.scss +161 -0
- package/es/ele-app/style/overwrite/color-picker/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/color-picker/index.js +1 -0
- package/es/ele-app/style/overwrite/color-picker/index.scss +42 -0
- package/es/ele-app/style/overwrite/css-var.scss +33 -0
- package/es/ele-app/style/overwrite/date-picker/css-var.scss +16 -0
- package/es/ele-app/style/overwrite/date-picker/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/date-picker/index.js +1 -0
- package/es/ele-app/style/overwrite/date-picker/index.scss +895 -0
- package/es/ele-app/style/overwrite/descriptions/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/descriptions/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/descriptions/index.js +1 -0
- package/es/ele-app/style/overwrite/descriptions/index.scss +52 -0
- package/es/ele-app/style/overwrite/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/index.js +16 -0
- package/es/ele-app/style/overwrite/index.scss +16 -0
- package/es/ele-app/style/overwrite/input/css-var.scss +34 -0
- package/es/ele-app/style/overwrite/input/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/input/index.js +1 -0
- package/es/ele-app/style/overwrite/input/index.scss +540 -0
- package/es/ele-app/style/overwrite/message-box/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/message-box/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/message-box/index.js +2 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +148 -0
- package/es/ele-app/style/overwrite/notification/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/notification/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/notification/index.js +2 -0
- package/es/ele-app/style/overwrite/notification/index.scss +65 -0
- package/es/ele-app/style/overwrite/popper/css-var.scss +14 -0
- package/es/ele-app/style/overwrite/popper/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/popper/index.js +1 -0
- package/es/ele-app/style/overwrite/popper/index.scss +9 -0
- package/es/ele-app/style/overwrite/radio/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/radio/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/radio/index.js +1 -0
- package/es/ele-app/style/overwrite/radio/index.scss +128 -0
- package/es/ele-app/style/overwrite/select/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/select/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/select/index.js +1 -0
- package/es/ele-app/style/overwrite/select/index.scss +203 -0
- package/es/ele-app/style/overwrite/tag/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/tag/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/tag/index.js +1 -0
- package/es/ele-app/style/overwrite/tag/index.scss +346 -0
- package/es/ele-app/style/overwrite/tree/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/tree/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/tree/index.js +1 -0
- package/es/ele-app/style/overwrite/tree/index.scss +106 -0
- package/es/ele-app/style/overwrite/tree-select/css-var.scss +8 -0
- package/es/ele-app/style/overwrite/tree-select/index.d.ts +1 -0
- package/es/ele-app/style/overwrite/tree-select/index.js +1 -0
- package/es/ele-app/style/overwrite/tree-select/index.scss +108 -0
- package/es/ele-app/style/scrollbar/css-var.scss +71 -0
- package/es/ele-app/style/scrollbar/index.d.ts +1 -0
- package/es/ele-app/style/scrollbar/index.js +1 -0
- package/es/ele-app/style/scrollbar/index.scss +9 -0
- package/es/ele-app/types.d.ts +48 -0
- package/es/ele-pro-layout/components/pro-iframe.vue +120 -0
- package/es/ele-pro-layout/index.vue +1277 -0
- package/es/ele-pro-layout/props.ts +255 -0
- package/es/ele-pro-layout/style/index.scss +41 -0
- package/es/ele-pro-layout/style/index.ts +2 -0
- package/es/ele-pro-layout/types.ts +212 -0
- package/es/ele-pro-layout/util.ts +277 -0
- package/es/ele-tabs/index.d.ts +149 -0
- package/es/ele-tabs/index.js +480 -0
- package/es/ele-tabs/props.d.ts +82 -0
- package/es/ele-tabs/props.js +46 -0
- package/es/ele-tabs/style/css-var.scss +8 -0
- package/es/ele-tabs/style/index.d.ts +1 -0
- package/es/ele-tabs/style/index.js +5 -0
- package/es/ele-tabs/style/index.scss +1074 -0
- package/es/ele-tabs/types.d.ts +70 -0
- package/es/icons/AnalysisOutlined.d.ts +2 -0
- package/es/icons/AnalysisOutlined.js +35 -0
- package/es/icons/ApplicationOutlined.d.ts +2 -0
- package/es/icons/ApplicationOutlined.js +26 -0
- package/es/icons/AppstoreAddOutlined.d.ts +2 -0
- package/es/icons/AppstoreAddOutlined.js +35 -0
- package/es/icons/AppstoreOutlined.d.ts +2 -0
- package/es/icons/AppstoreOutlined.js +35 -0
- package/es/icons/ArrowDown.d.ts +2 -0
- package/es/icons/ArrowDown.js +31 -0
- package/es/icons/ArrowDownOutlined.d.ts +2 -0
- package/es/icons/ArrowDownOutlined.js +30 -0
- package/es/icons/ArrowLeft.d.ts +2 -0
- package/es/icons/ArrowLeft.js +31 -0
- package/es/icons/ArrowLeftOutlined.d.ts +2 -0
- package/es/icons/ArrowLeftOutlined.js +30 -0
- package/es/icons/ArrowRight.d.ts +2 -0
- package/es/icons/ArrowRight.js +31 -0
- package/es/icons/ArrowRightOutlined.d.ts +2 -0
- package/es/icons/ArrowRightOutlined.js +30 -0
- package/es/icons/ArrowUp.d.ts +2 -0
- package/es/icons/ArrowUp.js +31 -0
- package/es/icons/ArrowUpOutlined.d.ts +2 -0
- package/es/icons/ArrowUpOutlined.js +30 -0
- package/es/icons/BellOutlined.d.ts +2 -0
- package/es/icons/BellOutlined.js +29 -0
- package/es/icons/BookOutlined.d.ts +2 -0
- package/es/icons/BookOutlined.js +29 -0
- package/es/icons/CalendarOutlined.d.ts +2 -0
- package/es/icons/CalendarOutlined.js +29 -0
- package/es/icons/CaretDownFilled.d.ts +2 -0
- package/es/icons/CaretDownFilled.js +26 -0
- package/es/icons/CaretUpFilled.d.ts +2 -0
- package/es/icons/CaretUpFilled.js +26 -0
- package/es/icons/CheckCircleFilled.d.ts +2 -0
- package/es/icons/CheckCircleFilled.js +26 -0
- package/es/icons/CheckCircleOutlined.d.ts +2 -0
- package/es/icons/CheckCircleOutlined.js +32 -0
- package/es/icons/CheckOutlined.d.ts +2 -0
- package/es/icons/CheckOutlined.js +30 -0
- package/es/icons/CityOutlined.d.ts +2 -0
- package/es/icons/CityOutlined.js +35 -0
- package/es/icons/ClockCircleOutlined.d.ts +2 -0
- package/es/icons/ClockCircleOutlined.js +32 -0
- package/es/icons/CloseCircleFilled.d.ts +2 -0
- package/es/icons/CloseCircleFilled.js +26 -0
- package/es/icons/CloseCircleOutlined.d.ts +2 -0
- package/es/icons/CloseCircleOutlined.js +31 -0
- package/es/icons/CloseOutlined.d.ts +2 -0
- package/es/icons/CloseOutlined.js +30 -0
- package/es/icons/CloudUploadOutlined.d.ts +2 -0
- package/es/icons/CloudUploadOutlined.js +32 -0
- package/es/icons/ClusterOutlined.d.ts +2 -0
- package/es/icons/ClusterOutlined.js +29 -0
- package/es/icons/CodeOutlined.d.ts +2 -0
- package/es/icons/CodeOutlined.js +34 -0
- package/es/icons/ColumnHeightOutlined.d.ts +2 -0
- package/es/icons/ColumnHeightOutlined.js +35 -0
- package/es/icons/CompassOutlined.d.ts +2 -0
- package/es/icons/CompassOutlined.js +34 -0
- package/es/icons/CompressOutlined.d.ts +2 -0
- package/es/icons/CompressOutlined.js +36 -0
- package/es/icons/ConnectionOutlined.d.ts +2 -0
- package/es/icons/ConnectionOutlined.js +31 -0
- package/es/icons/ControlOutlined.d.ts +2 -0
- package/es/icons/ControlOutlined.js +33 -0
- package/es/icons/CopyOutlined.d.ts +2 -0
- package/es/icons/CopyOutlined.js +35 -0
- 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/CpuOutlined.d.ts +2 -0
- package/es/icons/CpuOutlined.js +30 -0
- package/es/icons/DashboardOutlined.d.ts +2 -0
- package/es/icons/DashboardOutlined.js +37 -0
- package/es/icons/DatabaseOutlined.d.ts +2 -0
- package/es/icons/DatabaseOutlined.js +35 -0
- package/es/icons/DeleteOutlined.d.ts +2 -0
- package/es/icons/DeleteOutlined.js +34 -0
- package/es/icons/DesktopOutlined.d.ts +2 -0
- package/es/icons/DesktopOutlined.js +29 -0
- package/es/icons/DownloadOutlined.d.ts +2 -0
- package/es/icons/DownloadOutlined.js +32 -0
- package/es/icons/DragOutlined.d.ts +2 -0
- package/es/icons/DragOutlined.js +30 -0
- package/es/icons/EditOutlined.d.ts +2 -0
- package/es/icons/EditOutlined.js +32 -0
- package/es/icons/EllipsisOutlined.d.ts +2 -0
- package/es/icons/EllipsisOutlined.js +42 -0
- package/es/icons/EnvironmentOutlined.d.ts +2 -0
- package/es/icons/EnvironmentOutlined.js +31 -0
- package/es/icons/ExclamationCircleFilled.d.ts +2 -0
- package/es/icons/ExclamationCircleFilled.js +26 -0
- package/es/icons/ExpandOutlined.d.ts +2 -0
- package/es/icons/ExpandOutlined.js +36 -0
- package/es/icons/EyeOutlined.d.ts +2 -0
- package/es/icons/EyeOutlined.js +30 -0
- package/es/icons/FileOutlined.d.ts +2 -0
- package/es/icons/FileOutlined.js +35 -0
- package/es/icons/FilterFilled.d.ts +2 -0
- package/es/icons/FilterFilled.js +26 -0
- package/es/icons/FolderAddOutlined.d.ts +2 -0
- package/es/icons/FolderAddOutlined.js +31 -0
- package/es/icons/FolderOutlined.d.ts +2 -0
- package/es/icons/FolderOutlined.js +29 -0
- package/es/icons/FormOutlined.d.ts +2 -0
- package/es/icons/FormOutlined.js +31 -0
- package/es/icons/FullscreenExitOutlined.d.ts +2 -0
- package/es/icons/FullscreenExitOutlined.js +34 -0
- package/es/icons/FullscreenOutlined.d.ts +2 -0
- package/es/icons/FullscreenOutlined.js +34 -0
- package/es/icons/FundOutlined.d.ts +2 -0
- package/es/icons/FundOutlined.js +31 -0
- package/es/icons/GlobalOutlined.d.ts +2 -0
- package/es/icons/GlobalOutlined.js +28 -0
- package/es/icons/HolderOutlined.d.ts +2 -0
- package/es/icons/HolderOutlined.js +26 -0
- package/es/icons/HomeOutlined.d.ts +2 -0
- package/es/icons/HomeOutlined.js +29 -0
- package/es/icons/IdcardOutlined.d.ts +2 -0
- package/es/icons/IdcardOutlined.js +38 -0
- package/es/icons/InfoCircleFilled.d.ts +2 -0
- package/es/icons/InfoCircleFilled.js +26 -0
- package/es/icons/LinkOutlined.d.ts +2 -0
- package/es/icons/LinkOutlined.js +32 -0
- package/es/icons/LoadingDotOutlined.d.ts +2 -0
- package/es/icons/LoadingDotOutlined.js +29 -0
- package/es/icons/LoadingOutlined.d.ts +2 -0
- package/es/icons/LoadingOutlined.js +29 -0
- package/es/icons/LockOutlined.d.ts +2 -0
- package/es/icons/LockOutlined.js +32 -0
- package/es/icons/LogOutlined.d.ts +2 -0
- package/es/icons/LogOutlined.js +35 -0
- package/es/icons/LogoutOutlined.d.ts +2 -0
- package/es/icons/LogoutOutlined.js +31 -0
- package/es/icons/MailOutlined.d.ts +2 -0
- package/es/icons/MailOutlined.js +29 -0
- package/es/icons/MenuFoldOutlined.d.ts +2 -0
- package/es/icons/MenuFoldOutlined.js +28 -0
- package/es/icons/MenuOutlined.d.ts +2 -0
- package/es/icons/MenuOutlined.js +32 -0
- package/es/icons/MenuUnfoldOutlined.d.ts +2 -0
- package/es/icons/MenuUnfoldOutlined.js +28 -0
- package/es/icons/MessageOutlined.d.ts +2 -0
- package/es/icons/MessageOutlined.js +50 -0
- package/es/icons/MinusCircleOutlined.d.ts +2 -0
- package/es/icons/MinusCircleOutlined.js +31 -0
- package/es/icons/MobileOutlined.d.ts +2 -0
- package/es/icons/MobileOutlined.js +37 -0
- package/es/icons/MoonOutlined.d.ts +2 -0
- package/es/icons/MoonOutlined.js +29 -0
- package/es/icons/MoreOutlined.d.ts +2 -0
- package/es/icons/MoreOutlined.js +42 -0
- package/es/icons/PauseFilled.d.ts +2 -0
- package/es/icons/PauseFilled.js +30 -0
- package/es/icons/PieChartOutlined.d.ts +2 -0
- package/es/icons/PieChartOutlined.js +31 -0
- package/es/icons/PlayFilled.d.ts +2 -0
- package/es/icons/PlayFilled.js +26 -0
- package/es/icons/PlusCircleOutlined.d.ts +2 -0
- package/es/icons/PlusCircleOutlined.js +31 -0
- package/es/icons/PlusOutlined.d.ts +2 -0
- package/es/icons/PlusOutlined.js +29 -0
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/ProtectOutlined.d.ts +2 -0
- package/es/icons/ProtectOutlined.js +32 -0
- package/es/icons/QuestionCircleFilled.d.ts +2 -0
- package/es/icons/QuestionCircleFilled.js +26 -0
- package/es/icons/QuestionCircleOutlined.d.ts +2 -0
- package/es/icons/QuestionCircleOutlined.js +39 -0
- package/es/icons/ReloadOutlined.d.ts +2 -0
- package/es/icons/ReloadOutlined.js +30 -0
- package/es/icons/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- package/es/icons/SearchOutlined.d.ts +2 -0
- package/es/icons/SearchOutlined.js +29 -0
- package/es/icons/SettingOutlined.d.ts +2 -0
- package/es/icons/SettingOutlined.js +31 -0
- package/es/icons/ShoppingOutlined.d.ts +2 -0
- package/es/icons/ShoppingOutlined.js +29 -0
- 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/SortOutlined.d.ts +2 -0
- package/es/icons/SortOutlined.js +32 -0
- package/es/icons/StarFilled.d.ts +2 -0
- package/es/icons/StarFilled.js +26 -0
- package/es/icons/StepBackwardFilled.d.ts +2 -0
- package/es/icons/StepBackwardFilled.js +33 -0
- package/es/icons/StepForwardFilled.d.ts +2 -0
- package/es/icons/StepForwardFilled.js +33 -0
- package/es/icons/SuitcaseOutlined.d.ts +2 -0
- package/es/icons/SuitcaseOutlined.js +29 -0
- package/es/icons/SunOutlined.d.ts +2 -0
- package/es/icons/SunOutlined.js +29 -0
- package/es/icons/SwapOutlined.d.ts +2 -0
- package/es/icons/SwapOutlined.js +32 -0
- package/es/icons/SyncOutlined.d.ts +2 -0
- package/es/icons/SyncOutlined.js +32 -0
- package/es/icons/TableOutlined.d.ts +2 -0
- package/es/icons/TableOutlined.js +29 -0
- package/es/icons/TagOutlined.d.ts +2 -0
- package/es/icons/TagOutlined.js +31 -0
- package/es/icons/TimerOutlined.d.ts +2 -0
- package/es/icons/TimerOutlined.js +31 -0
- package/es/icons/UndoOutlined.d.ts +2 -0
- package/es/icons/UndoOutlined.js +30 -0
- package/es/icons/UnlockOutlined.d.ts +2 -0
- package/es/icons/UnlockOutlined.js +32 -0
- package/es/icons/UploadOutlined.d.ts +2 -0
- package/es/icons/UploadOutlined.js +32 -0
- package/es/icons/UserOutlined.d.ts +2 -0
- package/es/icons/UserOutlined.js +29 -0
- package/es/icons/VerticalAlignMiddleOutlined.d.ts +2 -0
- package/es/icons/VerticalAlignMiddleOutlined.js +32 -0
- package/es/icons/VerticalLeftOutlined.d.ts +2 -0
- package/es/icons/VerticalLeftOutlined.js +28 -0
- package/es/icons/VerticalRightOutlined.d.ts +2 -0
- package/es/icons/VerticalRightOutlined.js +28 -0
- package/es/icons/WarningOutlined.d.ts +2 -0
- package/es/icons/WarningOutlined.js +42 -0
- package/es/icons/ZoomInOutlined.d.ts +2 -0
- package/es/icons/ZoomInOutlined.js +31 -0
- package/es/icons/ZoomOutOutlined.d.ts +2 -0
- package/es/icons/ZoomOutOutlined.js +31 -0
- package/es/icons/index.d.ts +115 -0
- package/es/icons/index.js +232 -0
- package/es/utils/chart-theme-dark.d.ts +373 -0
- package/es/utils/chart-theme-dark.js +397 -0
- package/es/utils/chart-theme.d.ts +368 -0
- package/es/utils/chart-theme.js +392 -0
- package/es/utils/core.d.ts +168 -0
- package/es/utils/core.js +318 -0
- package/es/utils/hook.d.ts +113 -0
- package/es/utils/hook.js +264 -0
- package/es/utils/menu-util.d.ts +14 -0
- package/es/utils/menu-util.js +78 -0
- package/es/utils/message-box.d.ts +25 -0
- package/es/utils/message-box.js +98 -0
- package/es/utils/message.d.ts +66 -0
- package/es/utils/message.js +267 -0
- package/es/utils/resolvers.d.ts +18 -0
- package/es/utils/resolvers.js +50 -0
- package/es/utils/theme-util.d.ts +6 -0
- package/es/utils/theme-util.js +42 -0
- package/es/utils/validate.d.ts +182 -0
- package/es/utils/validate.js +197 -0
- package/package.json +184 -44
- package/typings/global.d.ts +64 -0
- package/dist/favicon.ico +0 -0
- package/dist/style.css +0 -1
- package/dist/yuang-framework-ui-pc.es.js +0 -78
- package/dist/yuang-framework-ui-pc.umd.js +0 -1
- package/src/App.vue +0 -31
- package/src/components/YuButton/index.vue +0 -35
- package/src/components/YuRow/index.vue +0 -16
- package/src/components/index.ts +0 -14
- package/src/main.ts +0 -42
- package/src/router/index.ts +0 -26
- package/src/shims-vue.d.ts +0 -10
- package/src/utils/vueRouterUtils.ts +0 -30
- package/src/views/components/yu-button/index.vue +0 -15
- package/src/views/exception/403/components/icon-svg.vue +0 -276
- package/src/views/exception/403/index.vue +0 -25
- package/src/views/exception/404/components/icon-svg.vue +0 -288
- package/src/views/exception/404/index.vue +0 -25
- package/src/views/exception/500/components/icon-svg.vue +0 -331
- package/src/views/exception/500/index.vue +0 -25
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
import { defineComponent, shallowRef, computed, shallowReactive, provide, watch, nextTick, onMounted, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createElementVNode, createCommentVNode, toDisplayString, mergeProps, createSlots, normalizeProps, guardReactiveProps, renderList, createVNode, Fragment } from "vue";
|
|
2
|
+
import { ElScrollbar } from "element-plus";
|
|
3
|
+
import { useTimer } from "../utils/hook";
|
|
4
|
+
import EleMenus from "../ele-menus/index";
|
|
5
|
+
import EleBreadcrumb from "../ele-breadcrumb/index";
|
|
6
|
+
import EleBacktop from "../ele-backtop/index";
|
|
7
|
+
import LayoutSkeleton from "./components/layout-skeleton";
|
|
8
|
+
import LayoutTabs from "./components/layout-tabs";
|
|
9
|
+
import { adminLayoutProps, adminLayoutEmits, LAYOUT_KEY } from "./props";
|
|
10
|
+
const tabSlots = ["tabTitle", "tabExtra", "tabHome"];
|
|
11
|
+
const ownSlots = [
|
|
12
|
+
"logo",
|
|
13
|
+
"logoTitle",
|
|
14
|
+
"left",
|
|
15
|
+
"right",
|
|
16
|
+
"center",
|
|
17
|
+
"breadcrumb",
|
|
18
|
+
"top",
|
|
19
|
+
"bottom",
|
|
20
|
+
"boxTop",
|
|
21
|
+
"boxBottom",
|
|
22
|
+
"body",
|
|
23
|
+
...tabSlots
|
|
24
|
+
];
|
|
25
|
+
const _sfc_main = defineComponent({
|
|
26
|
+
name: "EleAdminLayout",
|
|
27
|
+
components: {
|
|
28
|
+
ElScrollbar,
|
|
29
|
+
EleMenus,
|
|
30
|
+
EleBreadcrumb,
|
|
31
|
+
EleBacktop,
|
|
32
|
+
LayoutSkeleton,
|
|
33
|
+
LayoutTabs
|
|
34
|
+
},
|
|
35
|
+
props: adminLayoutProps,
|
|
36
|
+
emits: adminLayoutEmits,
|
|
37
|
+
setup(props, { emit }) {
|
|
38
|
+
const [startDisableTransitionTimer] = useTimer(100);
|
|
39
|
+
const [startSidebarMenuTimer, stopSidebarMenuTimer] = useTimer(420);
|
|
40
|
+
const [startSideboxMenuTimer, stopSideboxMenuTimer] = useTimer(420);
|
|
41
|
+
const [startHeaderHoverTimer, stopHeaderHoverTimer] = useTimer(300);
|
|
42
|
+
let isHeaderhover = false;
|
|
43
|
+
const sidebarMenuRef = shallowRef(null);
|
|
44
|
+
const sideboxMenuRef = shallowRef(null);
|
|
45
|
+
const contentRef = shallowRef(null);
|
|
46
|
+
const modalsRef = shallowRef(null);
|
|
47
|
+
const isDisableTransition = shallowRef(false);
|
|
48
|
+
const layoutHeight = computed(
|
|
49
|
+
() => typeof props.height === "number" ? `${props.height}px` : props.height
|
|
50
|
+
);
|
|
51
|
+
const isFixedHeader = computed(
|
|
52
|
+
() => !props.fixedBody && props.fixedHeader
|
|
53
|
+
);
|
|
54
|
+
const isFixedSidebar = computed(
|
|
55
|
+
() => !props.fixedBody && props.fixedSidebar
|
|
56
|
+
);
|
|
57
|
+
const isTopLayout = computed(() => props.layout === "top");
|
|
58
|
+
const isSideLayout = computed(() => props.layout === "side");
|
|
59
|
+
const isBoxSidebar = computed(
|
|
60
|
+
() => props.sidebarLayout === "box"
|
|
61
|
+
);
|
|
62
|
+
const isMixSidebar = computed(
|
|
63
|
+
() => !isTopLayout.value && (props.sidebarLayout === "mix" || isBoxSidebar.value)
|
|
64
|
+
);
|
|
65
|
+
const isMobile = computed(() => props.mobile && !isTopLayout.value);
|
|
66
|
+
const isHeaderLogo = computed(
|
|
67
|
+
() => (props.logoInHeader || isTopLayout.value) && !isSideLayout.value && !isMobile.value
|
|
68
|
+
);
|
|
69
|
+
const showHeaderMenus = computed(
|
|
70
|
+
() => isTopLayout.value || props.layout === "mix"
|
|
71
|
+
);
|
|
72
|
+
const showHeaderTabs = computed(() => props.tabBar === "header");
|
|
73
|
+
const isDarkHeader = computed(
|
|
74
|
+
() => props.headerStyle === "dark"
|
|
75
|
+
);
|
|
76
|
+
const isPrimaryHeader = computed(
|
|
77
|
+
() => props.headerStyle === "primary"
|
|
78
|
+
);
|
|
79
|
+
const isButtonTab = computed(() => props.tabStyle === "button");
|
|
80
|
+
const isDarkSidebar = computed(
|
|
81
|
+
() => props.sidebarStyle === "dark"
|
|
82
|
+
);
|
|
83
|
+
const isDarkMixSidebar = computed(
|
|
84
|
+
() => isMixSidebar.value && !isHeaderLogo.value && isDarkSidebar.value && (isDarkHeader.value || isPrimaryHeader.value)
|
|
85
|
+
);
|
|
86
|
+
const isGhostHeader = computed(
|
|
87
|
+
() => !isDarkHeader.value && !isPrimaryHeader.value && showHeaderTabs.value && isButtonTab.value
|
|
88
|
+
);
|
|
89
|
+
const isGhostSidebar = computed(
|
|
90
|
+
() => isGhostHeader.value && !isDarkSidebar.value
|
|
91
|
+
);
|
|
92
|
+
const isCollapseSidebar = computed(
|
|
93
|
+
() => !isMobile.value && props.collapse
|
|
94
|
+
);
|
|
95
|
+
const isCollapseMobile = computed(
|
|
96
|
+
() => isMobile.value && props.collapse
|
|
97
|
+
);
|
|
98
|
+
const getContentEl = () => {
|
|
99
|
+
return contentRef.value;
|
|
100
|
+
};
|
|
101
|
+
const getModalsEl = () => {
|
|
102
|
+
return modalsRef.value;
|
|
103
|
+
};
|
|
104
|
+
const getBodyWrapperEl = () => {
|
|
105
|
+
const contentEl = getContentEl();
|
|
106
|
+
return contentEl == null ? void 0 : contentEl.parentElement;
|
|
107
|
+
};
|
|
108
|
+
const sidebarScrollToActive = () => {
|
|
109
|
+
stopSidebarMenuTimer();
|
|
110
|
+
if (!props.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
startSidebarMenuTimer(() => {
|
|
114
|
+
sidebarMenuRef.value && sidebarMenuRef.value.scrollToActive();
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
const sideboxScrollToActive = () => {
|
|
118
|
+
stopSideboxMenuTimer();
|
|
119
|
+
if (!props.menuScrollToActive || sideboxMenuRef.value == null || isCollapseMobile.value) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
startSideboxMenuTimer(() => {
|
|
123
|
+
sideboxMenuRef.value && sideboxMenuRef.value.scrollToActive();
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
const updateCollapse = (value) => {
|
|
127
|
+
const collapse = typeof value === "boolean" ? value : !props.collapse;
|
|
128
|
+
if (collapse !== props.collapse) {
|
|
129
|
+
emit("update:collapse", collapse);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const handleLogoClick = (e) => {
|
|
133
|
+
emit("logoClick", e);
|
|
134
|
+
};
|
|
135
|
+
const handleHeadMenuOpen = (index2, indexPath) => {
|
|
136
|
+
emit("headMenuOpen", index2, indexPath);
|
|
137
|
+
};
|
|
138
|
+
const handleHeadMenuClose = (index2, indexPath) => {
|
|
139
|
+
emit("headMenuClose", index2, indexPath);
|
|
140
|
+
};
|
|
141
|
+
const handleHeadMenuItemClick = (item, e) => {
|
|
142
|
+
emit("headMenuItemClick", item, e);
|
|
143
|
+
};
|
|
144
|
+
const handleHeadMenuItemMouseenter = (item, e) => {
|
|
145
|
+
emit("headMenuItemMouseenter", item, e);
|
|
146
|
+
handleHeadMouseenter(e);
|
|
147
|
+
};
|
|
148
|
+
const handleHeadMenuItemMouseleave = (item, e) => {
|
|
149
|
+
emit("headMenuItemMouseleave", item, e);
|
|
150
|
+
handleHeadMouseleave(e);
|
|
151
|
+
};
|
|
152
|
+
const handleHeadMouseenter = (e) => {
|
|
153
|
+
stopHeaderHoverTimer();
|
|
154
|
+
if (!isHeaderhover) {
|
|
155
|
+
isHeaderhover = true;
|
|
156
|
+
emit("headMouseenter", e);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const handleHeadMouseleave = (e) => {
|
|
160
|
+
startHeaderHoverTimer(() => {
|
|
161
|
+
isHeaderhover = false;
|
|
162
|
+
emit("headMouseleave", e);
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
const handleBoxMenuItemClick = (item, e) => {
|
|
166
|
+
emit("boxMenuItemClick", item, e);
|
|
167
|
+
};
|
|
168
|
+
const handleBoxMenuItemMouseenter = (item, e) => {
|
|
169
|
+
emit("boxMenuItemMouseenter", item, e);
|
|
170
|
+
};
|
|
171
|
+
const handleBoxMenuItemMouseleave = (item, e) => {
|
|
172
|
+
emit("boxMenuItemMouseleave", item, e);
|
|
173
|
+
};
|
|
174
|
+
const handleBoxMouseEnter = (e) => {
|
|
175
|
+
emit("boxMouseenter", e);
|
|
176
|
+
};
|
|
177
|
+
const handleBoxMouseLeave = (e) => {
|
|
178
|
+
emit("boxMouseleave", e);
|
|
179
|
+
};
|
|
180
|
+
const handleSideMenuOpen = (index2, indexPath) => {
|
|
181
|
+
emit("sideMenuOpen", index2, indexPath);
|
|
182
|
+
};
|
|
183
|
+
const handleSideMenuClose = (index2, indexPath) => {
|
|
184
|
+
emit("sideMenuClose", index2, indexPath);
|
|
185
|
+
};
|
|
186
|
+
const handleSideMenuItemClick = (item, e) => {
|
|
187
|
+
emit("sideMenuItemClick", item, e);
|
|
188
|
+
};
|
|
189
|
+
const handleSideMouseEnter = (e) => {
|
|
190
|
+
emit("sideMouseenter", e);
|
|
191
|
+
};
|
|
192
|
+
const handleSideMouseLeave = (e) => {
|
|
193
|
+
emit("sideMouseleave", e);
|
|
194
|
+
};
|
|
195
|
+
const handleTabClick = (option) => {
|
|
196
|
+
emit("tabClick", option);
|
|
197
|
+
};
|
|
198
|
+
const handleTabRemove = (name) => {
|
|
199
|
+
emit("tabRemove", name);
|
|
200
|
+
};
|
|
201
|
+
const handleTabContextMenu = (option) => {
|
|
202
|
+
emit("tabContextMenu", option);
|
|
203
|
+
};
|
|
204
|
+
const handleTabSortChange = (data) => {
|
|
205
|
+
emit("tabSortChange", data);
|
|
206
|
+
};
|
|
207
|
+
const layoutProvide = shallowReactive({
|
|
208
|
+
layout: props.layout,
|
|
209
|
+
maximized: props.maximized,
|
|
210
|
+
fixedHeader: isFixedHeader.value,
|
|
211
|
+
fixedBody: props.fixedBody,
|
|
212
|
+
modalsEl: null,
|
|
213
|
+
getModalsEl,
|
|
214
|
+
getBodyWrapperEl
|
|
215
|
+
});
|
|
216
|
+
provide(LAYOUT_KEY, layoutProvide);
|
|
217
|
+
watch(
|
|
218
|
+
[
|
|
219
|
+
() => props.layout,
|
|
220
|
+
() => props.sidebarLayout,
|
|
221
|
+
() => props.fixedSidebar,
|
|
222
|
+
() => props.fixedBody,
|
|
223
|
+
() => props.logoInHeader,
|
|
224
|
+
() => props.maximized,
|
|
225
|
+
isFixedHeader,
|
|
226
|
+
isMobile
|
|
227
|
+
],
|
|
228
|
+
() => {
|
|
229
|
+
isDisableTransition.value = true;
|
|
230
|
+
startDisableTransitionTimer(() => {
|
|
231
|
+
isDisableTransition.value = false;
|
|
232
|
+
});
|
|
233
|
+
if (layoutProvide.layout !== props.layout) {
|
|
234
|
+
layoutProvide.layout = props.layout;
|
|
235
|
+
}
|
|
236
|
+
if (layoutProvide.maximized !== props.maximized) {
|
|
237
|
+
layoutProvide.maximized = props.maximized;
|
|
238
|
+
}
|
|
239
|
+
if (layoutProvide.fixedHeader !== isFixedHeader.value) {
|
|
240
|
+
layoutProvide.fixedHeader = isFixedHeader.value;
|
|
241
|
+
}
|
|
242
|
+
if (layoutProvide.fixedBody !== props.fixedBody) {
|
|
243
|
+
layoutProvide.fixedBody = props.fixedBody;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
watch([() => props.sidebarActive, () => props.collapse], () => {
|
|
248
|
+
nextTick(() => {
|
|
249
|
+
sidebarScrollToActive();
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
watch([() => props.sideboxActive, () => props.compact], () => {
|
|
253
|
+
nextTick(() => {
|
|
254
|
+
sideboxScrollToActive();
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
onMounted(() => {
|
|
258
|
+
sideboxScrollToActive();
|
|
259
|
+
sidebarScrollToActive();
|
|
260
|
+
const modalsEl = getModalsEl();
|
|
261
|
+
layoutProvide.modalsEl = modalsEl;
|
|
262
|
+
const contentEl = getContentEl();
|
|
263
|
+
if (contentEl != null && modalsEl != null) {
|
|
264
|
+
emit("contentMounted", contentEl, modalsEl);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
return {
|
|
268
|
+
ownSlots,
|
|
269
|
+
tabSlots,
|
|
270
|
+
sidebarMenuRef,
|
|
271
|
+
sideboxMenuRef,
|
|
272
|
+
contentRef,
|
|
273
|
+
modalsRef,
|
|
274
|
+
isDisableTransition,
|
|
275
|
+
layoutHeight,
|
|
276
|
+
isFixedHeader,
|
|
277
|
+
isFixedSidebar,
|
|
278
|
+
isTopLayout,
|
|
279
|
+
isSideLayout,
|
|
280
|
+
isBoxSidebar,
|
|
281
|
+
isMixSidebar,
|
|
282
|
+
isMobile,
|
|
283
|
+
isHeaderLogo,
|
|
284
|
+
showHeaderMenus,
|
|
285
|
+
showHeaderTabs,
|
|
286
|
+
isDarkHeader,
|
|
287
|
+
isPrimaryHeader,
|
|
288
|
+
isButtonTab,
|
|
289
|
+
isDarkSidebar,
|
|
290
|
+
isDarkMixSidebar,
|
|
291
|
+
isGhostHeader,
|
|
292
|
+
isGhostSidebar,
|
|
293
|
+
isCollapseSidebar,
|
|
294
|
+
isCollapseMobile,
|
|
295
|
+
getContentEl,
|
|
296
|
+
getModalsEl,
|
|
297
|
+
updateCollapse,
|
|
298
|
+
handleLogoClick,
|
|
299
|
+
handleHeadMenuOpen,
|
|
300
|
+
handleHeadMenuClose,
|
|
301
|
+
handleHeadMenuItemClick,
|
|
302
|
+
handleHeadMenuItemMouseenter,
|
|
303
|
+
handleHeadMenuItemMouseleave,
|
|
304
|
+
handleHeadMouseenter,
|
|
305
|
+
handleHeadMouseleave,
|
|
306
|
+
handleBoxMenuItemClick,
|
|
307
|
+
handleBoxMenuItemMouseenter,
|
|
308
|
+
handleBoxMenuItemMouseleave,
|
|
309
|
+
handleBoxMouseEnter,
|
|
310
|
+
handleBoxMouseLeave,
|
|
311
|
+
handleSideMenuOpen,
|
|
312
|
+
handleSideMenuClose,
|
|
313
|
+
handleSideMenuItemClick,
|
|
314
|
+
handleSideMouseEnter,
|
|
315
|
+
handleSideMouseLeave,
|
|
316
|
+
handleTabClick,
|
|
317
|
+
handleTabRemove,
|
|
318
|
+
handleTabContextMenu,
|
|
319
|
+
handleTabSortChange
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
const _export_sfc = (sfc, props) => {
|
|
324
|
+
const target = sfc.__vccOpts || sfc;
|
|
325
|
+
for (const [key, val] of props) {
|
|
326
|
+
target[key] = val;
|
|
327
|
+
}
|
|
328
|
+
return target;
|
|
329
|
+
};
|
|
330
|
+
const _hoisted_1 = ["src"];
|
|
331
|
+
const _hoisted_2 = {
|
|
332
|
+
key: 1,
|
|
333
|
+
class: "ele-admin-tools"
|
|
334
|
+
};
|
|
335
|
+
const _hoisted_3 = {
|
|
336
|
+
key: 2,
|
|
337
|
+
class: "ele-admin-breadcrumb"
|
|
338
|
+
};
|
|
339
|
+
const _hoisted_4 = {
|
|
340
|
+
key: 5,
|
|
341
|
+
class: "ele-admin-tools"
|
|
342
|
+
};
|
|
343
|
+
const _hoisted_5 = ["src"];
|
|
344
|
+
const _hoisted_6 = ["src"];
|
|
345
|
+
const _hoisted_7 = {
|
|
346
|
+
ref: "modalsRef",
|
|
347
|
+
class: "ele-admin-modals"
|
|
348
|
+
};
|
|
349
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
350
|
+
const _component_EleBreadcrumb = resolveComponent("EleBreadcrumb");
|
|
351
|
+
const _component_EleMenus = resolveComponent("EleMenus");
|
|
352
|
+
const _component_LayoutTabs = resolveComponent("LayoutTabs");
|
|
353
|
+
const _component_ElScrollbar = resolveComponent("ElScrollbar");
|
|
354
|
+
const _component_EleBacktop = resolveComponent("EleBacktop");
|
|
355
|
+
const _component_LayoutSkeleton = resolveComponent("LayoutSkeleton");
|
|
356
|
+
return openBlock(), createBlock(_component_LayoutSkeleton, {
|
|
357
|
+
isHeaderLogo: _ctx.isHeaderLogo,
|
|
358
|
+
class: normalizeClass([
|
|
359
|
+
{ "is-fixed-body": _ctx.fixedBody },
|
|
360
|
+
{ "is-transition-disabled": _ctx.isDisableTransition },
|
|
361
|
+
{ "is-maximized": _ctx.maximized },
|
|
362
|
+
{ "is-expanded": _ctx.maximized === "expanded" },
|
|
363
|
+
{ "is-mobile": _ctx.isMobile },
|
|
364
|
+
{ "is-collapse": _ctx.isCollapseMobile }
|
|
365
|
+
]),
|
|
366
|
+
style: normalizeStyle({
|
|
367
|
+
minHeight: _ctx.layoutHeight,
|
|
368
|
+
height: _ctx.fixedBody ? _ctx.layoutHeight : void 0
|
|
369
|
+
})
|
|
370
|
+
}, {
|
|
371
|
+
head: withCtx(() => [
|
|
372
|
+
!_ctx.isSideLayout ? (openBlock(), createElementBlock("div", {
|
|
373
|
+
key: 0,
|
|
374
|
+
class: normalizeClass([
|
|
375
|
+
"ele-admin-header",
|
|
376
|
+
{ "is-dark": _ctx.isDarkHeader },
|
|
377
|
+
{ "is-primary": _ctx.isPrimaryHeader },
|
|
378
|
+
{ "is-ghost": _ctx.isGhostHeader },
|
|
379
|
+
{ "show-divider": _ctx.tabBar && !_ctx.showHeaderTabs && !_ctx.isButtonTab },
|
|
380
|
+
{ "is-fixed": _ctx.isFixedHeader }
|
|
381
|
+
]),
|
|
382
|
+
style: normalizeStyle(_ctx.headerCustomStyle),
|
|
383
|
+
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.handleHeadMouseenter && _ctx.handleHeadMouseenter(...args)),
|
|
384
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.handleHeadMouseleave && _ctx.handleHeadMouseleave(...args))
|
|
385
|
+
}, [
|
|
386
|
+
_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
387
|
+
key: 0,
|
|
388
|
+
class: "ele-admin-logo",
|
|
389
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
390
|
+
}, [
|
|
391
|
+
_ctx.logoSrc || _ctx.$slots.logo ? renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
392
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_1)
|
|
393
|
+
]) : createCommentVNode("", true),
|
|
394
|
+
_ctx.logoTitle || _ctx.$slots.logoTitle ? renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
395
|
+
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
396
|
+
]) : createCommentVNode("", true)
|
|
397
|
+
], 4)) : createCommentVNode("", true),
|
|
398
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
399
|
+
renderSlot(_ctx.$slots, "left")
|
|
400
|
+
])) : createCommentVNode("", true),
|
|
401
|
+
_ctx.breadcrumb ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
402
|
+
renderSlot(_ctx.$slots, "breadcrumb", {}, () => [
|
|
403
|
+
_ctx.levels && _ctx.levels.length ? (openBlock(), createBlock(_component_EleBreadcrumb, mergeProps({ key: 0 }, _ctx.breadcrumb === true ? {} : _ctx.breadcrumb, { items: _ctx.levels }), null, 16, ["items"])) : createCommentVNode("", true)
|
|
404
|
+
])
|
|
405
|
+
])) : createCommentVNode("", true),
|
|
406
|
+
renderSlot(_ctx.$slots, "center"),
|
|
407
|
+
!_ctx.showHeaderTabs || _ctx.showHeaderMenus ? (openBlock(), createElementBlock("div", {
|
|
408
|
+
key: 3,
|
|
409
|
+
class: "ele-admin-menus",
|
|
410
|
+
style: normalizeStyle(_ctx.headerMenusStyle)
|
|
411
|
+
}, [
|
|
412
|
+
_ctx.showHeaderMenus && _ctx.headerMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
413
|
+
key: 0,
|
|
414
|
+
mode: "horizontal",
|
|
415
|
+
theme: _ctx.isDarkHeader || _ctx.isPrimaryHeader ? "dark" : "light",
|
|
416
|
+
popupTheme: _ctx.isDarkHeader ? "dark" : "light",
|
|
417
|
+
defaultActive: _ctx.headerActive
|
|
418
|
+
}, _ctx.headerMenuProps || {}, {
|
|
419
|
+
items: _ctx.headerMenus,
|
|
420
|
+
onOpen: _ctx.handleHeadMenuOpen,
|
|
421
|
+
onClose: _ctx.handleHeadMenuClose,
|
|
422
|
+
onItemClick: _ctx.handleHeadMenuItemClick,
|
|
423
|
+
onItemMouseenter: _ctx.handleHeadMenuItemMouseenter,
|
|
424
|
+
onItemMouseleave: _ctx.handleHeadMenuItemMouseleave
|
|
425
|
+
}), createSlots({ _: 2 }, [
|
|
426
|
+
_ctx.headerIconSlot && !_ctx.ownSlots.includes(_ctx.headerIconSlot) && _ctx.$slots[_ctx.headerIconSlot] ? {
|
|
427
|
+
name: "icon",
|
|
428
|
+
fn: withCtx((slotProps) => [
|
|
429
|
+
renderSlot(_ctx.$slots, _ctx.headerIconSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
430
|
+
]),
|
|
431
|
+
key: "0"
|
|
432
|
+
} : void 0,
|
|
433
|
+
_ctx.headerTitleSlot && !_ctx.ownSlots.includes(_ctx.headerTitleSlot) && _ctx.$slots[_ctx.headerTitleSlot] ? {
|
|
434
|
+
name: "title",
|
|
435
|
+
fn: withCtx((slotProps) => [
|
|
436
|
+
renderSlot(_ctx.$slots, _ctx.headerTitleSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
437
|
+
]),
|
|
438
|
+
key: "1"
|
|
439
|
+
} : void 0
|
|
440
|
+
]), 1040, ["theme", "popupTheme", "defaultActive", "items", "onOpen", "onClose", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : createCommentVNode("", true)
|
|
441
|
+
], 4)) : createCommentVNode("", true),
|
|
442
|
+
_ctx.showHeaderTabs ? (openBlock(), createBlock(_component_LayoutTabs, {
|
|
443
|
+
key: 4,
|
|
444
|
+
tabs: _ctx.tabs,
|
|
445
|
+
active: _ctx.tabActive,
|
|
446
|
+
fixedHome: _ctx.fixedHome,
|
|
447
|
+
homePath: _ctx.homePath,
|
|
448
|
+
isHome: _ctx.isHome,
|
|
449
|
+
tabStyle: _ctx.tabStyle,
|
|
450
|
+
tabContextMenu: _ctx.tabContextMenu,
|
|
451
|
+
tabContextMenus: _ctx.tabContextMenus,
|
|
452
|
+
tabSortable: _ctx.tabSortable,
|
|
453
|
+
class: normalizeClass([{ "is-fixed-home": _ctx.fixedHome }]),
|
|
454
|
+
style: normalizeStyle(_ctx.tabsCustomStyle),
|
|
455
|
+
onTabClick: _ctx.handleTabClick,
|
|
456
|
+
onTabRemove: _ctx.handleTabRemove,
|
|
457
|
+
onTabContextMenu: _ctx.handleTabContextMenu,
|
|
458
|
+
onTabSortChange: _ctx.handleTabSortChange
|
|
459
|
+
}, createSlots({ _: 2 }, [
|
|
460
|
+
renderList(Object.keys(_ctx.$slots).filter(
|
|
461
|
+
(k) => _ctx.tabSlots.includes(k)
|
|
462
|
+
), (name) => {
|
|
463
|
+
return {
|
|
464
|
+
name,
|
|
465
|
+
fn: withCtx((slotProps) => [
|
|
466
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
467
|
+
])
|
|
468
|
+
};
|
|
469
|
+
})
|
|
470
|
+
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true),
|
|
471
|
+
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
472
|
+
renderSlot(_ctx.$slots, "right")
|
|
473
|
+
])) : createCommentVNode("", true)
|
|
474
|
+
], 38)) : createCommentVNode("", true)
|
|
475
|
+
]),
|
|
476
|
+
side: withCtx(() => [
|
|
477
|
+
!_ctx.isTopLayout ? (openBlock(), createElementBlock("div", {
|
|
478
|
+
key: 0,
|
|
479
|
+
class: normalizeClass([
|
|
480
|
+
"ele-admin-side",
|
|
481
|
+
{ "is-fixed": _ctx.isFixedSidebar },
|
|
482
|
+
{ "show-placeholder": _ctx.isFixedSidebar && _ctx.isHeaderLogo },
|
|
483
|
+
{ "is-collapse": !_ctx.isMobile && !_ctx.isBoxSidebar && _ctx.isCollapseSidebar },
|
|
484
|
+
{ "is-mix": !_ctx.isMobile && !_ctx.isBoxSidebar && _ctx.isMixSidebar },
|
|
485
|
+
{ "is-compact": !_ctx.isMobile && _ctx.compact },
|
|
486
|
+
{ "is-box": !_ctx.isMobile && _ctx.isBoxSidebar }
|
|
487
|
+
]),
|
|
488
|
+
style: normalizeStyle({ height: _ctx.isFixedSidebar ? _ctx.layoutHeight : void 0 })
|
|
489
|
+
}, [
|
|
490
|
+
_ctx.isMixSidebar ? (openBlock(), createElementBlock("div", {
|
|
491
|
+
key: 0,
|
|
492
|
+
class: normalizeClass([
|
|
493
|
+
"ele-admin-sidebox",
|
|
494
|
+
{ "is-dark": _ctx.isDarkSidebar },
|
|
495
|
+
{ "is-ghost": _ctx.isGhostSidebar },
|
|
496
|
+
{ "show-divider": !_ctx.isCollapseSidebar && !_ctx.isBoxSidebar },
|
|
497
|
+
{ "is-compact": _ctx.compact }
|
|
498
|
+
]),
|
|
499
|
+
style: normalizeStyle(_ctx.sideboxCustomStyle),
|
|
500
|
+
onMouseenter: _cache[2] || (_cache[2] = (...args) => _ctx.handleBoxMouseEnter && _ctx.handleBoxMouseEnter(...args)),
|
|
501
|
+
onMouseleave: _cache[3] || (_cache[3] = (...args) => _ctx.handleBoxMouseLeave && _ctx.handleBoxMouseLeave(...args))
|
|
502
|
+
}, [
|
|
503
|
+
!_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.$slots.logo) ? (openBlock(), createElementBlock("div", {
|
|
504
|
+
key: 0,
|
|
505
|
+
class: "ele-admin-logo",
|
|
506
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
507
|
+
}, [
|
|
508
|
+
renderSlot(_ctx.$slots, "logo", {}, () => [
|
|
509
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_5)
|
|
510
|
+
])
|
|
511
|
+
], 4)) : createCommentVNode("", true),
|
|
512
|
+
renderSlot(_ctx.$slots, "boxTop"),
|
|
513
|
+
createVNode(_component_ElScrollbar, {
|
|
514
|
+
class: "ele-admin-menus",
|
|
515
|
+
style: normalizeStyle(_ctx.sideboxMenusStyle)
|
|
516
|
+
}, {
|
|
517
|
+
default: withCtx(() => [
|
|
518
|
+
_ctx.sideboxMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
519
|
+
key: 0,
|
|
520
|
+
ref: "sideboxMenuRef",
|
|
521
|
+
mode: "compact",
|
|
522
|
+
uniqueOpened: true,
|
|
523
|
+
collapseTransition: false,
|
|
524
|
+
theme: _ctx.sidebarStyle,
|
|
525
|
+
defaultActive: _ctx.sideboxActive,
|
|
526
|
+
collapse: _ctx.compact
|
|
527
|
+
}, _ctx.sideboxMenuProps || {}, {
|
|
528
|
+
items: _ctx.sideboxMenus,
|
|
529
|
+
onItemClick: _ctx.handleBoxMenuItemClick,
|
|
530
|
+
onItemMouseenter: _ctx.handleBoxMenuItemMouseenter,
|
|
531
|
+
onItemMouseleave: _ctx.handleBoxMenuItemMouseleave
|
|
532
|
+
}), createSlots({ _: 2 }, [
|
|
533
|
+
_ctx.sideboxIconSlot && !_ctx.ownSlots.includes(_ctx.sideboxIconSlot) && _ctx.$slots[_ctx.sideboxIconSlot] ? {
|
|
534
|
+
name: "icon",
|
|
535
|
+
fn: withCtx((slotProps) => [
|
|
536
|
+
renderSlot(_ctx.$slots, _ctx.sideboxIconSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
537
|
+
]),
|
|
538
|
+
key: "0"
|
|
539
|
+
} : void 0,
|
|
540
|
+
_ctx.sideboxTitleSlot && !_ctx.ownSlots.includes(_ctx.sideboxTitleSlot) && _ctx.$slots[_ctx.sideboxTitleSlot] ? {
|
|
541
|
+
name: "title",
|
|
542
|
+
fn: withCtx((slotProps) => [
|
|
543
|
+
renderSlot(_ctx.$slots, _ctx.sideboxTitleSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
544
|
+
]),
|
|
545
|
+
key: "1"
|
|
546
|
+
} : void 0
|
|
547
|
+
]), 1040, ["theme", "defaultActive", "collapse", "items", "onItemClick", "onItemMouseenter", "onItemMouseleave"])) : createCommentVNode("", true)
|
|
548
|
+
]),
|
|
549
|
+
_: 3
|
|
550
|
+
}, 8, ["style"]),
|
|
551
|
+
renderSlot(_ctx.$slots, "boxBottom")
|
|
552
|
+
], 38)) : createCommentVNode("", true),
|
|
553
|
+
!_ctx.isBoxSidebar ? (openBlock(), createElementBlock("div", {
|
|
554
|
+
key: 1,
|
|
555
|
+
class: normalizeClass([
|
|
556
|
+
"ele-admin-sidebar",
|
|
557
|
+
{ "is-dark": _ctx.isMixSidebar ? _ctx.isDarkMixSidebar : _ctx.isDarkSidebar },
|
|
558
|
+
{ "is-ghost": _ctx.isGhostSidebar },
|
|
559
|
+
{ "is-mix": _ctx.isMixSidebar },
|
|
560
|
+
{ "is-collapse": _ctx.isCollapseSidebar }
|
|
561
|
+
]),
|
|
562
|
+
style: normalizeStyle(_ctx.sidebarCustomStyle),
|
|
563
|
+
onMouseenter: _cache[4] || (_cache[4] = (...args) => _ctx.handleSideMouseEnter && _ctx.handleSideMouseEnter(...args)),
|
|
564
|
+
onMouseleave: _cache[5] || (_cache[5] = (...args) => _ctx.handleSideMouseLeave && _ctx.handleSideMouseLeave(...args))
|
|
565
|
+
}, [
|
|
566
|
+
_ctx.isMixSidebar ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
567
|
+
!_ctx.isHeaderLogo && (_ctx.logoTitle || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
568
|
+
key: 0,
|
|
569
|
+
class: "ele-admin-logo-title",
|
|
570
|
+
style: normalizeStyle(_ctx.logoTitleStyle)
|
|
571
|
+
}, [
|
|
572
|
+
renderSlot(_ctx.$slots, "logoTitle", {}, () => [
|
|
573
|
+
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
574
|
+
])
|
|
575
|
+
], 4)) : createCommentVNode("", true)
|
|
576
|
+
], 64)) : !_ctx.isHeaderLogo && (_ctx.logoSrc || _ctx.logoTitle || _ctx.$slots.logo || _ctx.$slots.logoTitle) ? (openBlock(), createElementBlock("div", {
|
|
577
|
+
key: 1,
|
|
578
|
+
class: "ele-admin-logo",
|
|
579
|
+
style: normalizeStyle(_ctx.logoStyle)
|
|
580
|
+
}, [
|
|
581
|
+
_ctx.logoSrc || _ctx.$slots.logo ? renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
|
|
582
|
+
createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_6)
|
|
583
|
+
]) : createCommentVNode("", true),
|
|
584
|
+
_ctx.logoTitle || _ctx.$slots.logoTitle ? renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
|
|
585
|
+
createElementVNode("h1", null, toDisplayString(_ctx.logoTitle), 1)
|
|
586
|
+
]) : createCommentVNode("", true)
|
|
587
|
+
], 4)) : createCommentVNode("", true),
|
|
588
|
+
renderSlot(_ctx.$slots, "top"),
|
|
589
|
+
createVNode(_component_ElScrollbar, {
|
|
590
|
+
class: "ele-admin-menus",
|
|
591
|
+
style: normalizeStyle(_ctx.sidebarMenusStyle)
|
|
592
|
+
}, {
|
|
593
|
+
default: withCtx(() => [
|
|
594
|
+
_ctx.sidebarMenus ? (openBlock(), createBlock(_component_EleMenus, mergeProps({
|
|
595
|
+
key: 0,
|
|
596
|
+
ref: "sidebarMenuRef",
|
|
597
|
+
uniqueOpened: true,
|
|
598
|
+
collapseTransition: false,
|
|
599
|
+
theme: _ctx.isMixSidebar && !_ctx.isDarkMixSidebar ? void 0 : _ctx.sidebarStyle,
|
|
600
|
+
defaultActive: _ctx.sidebarActive,
|
|
601
|
+
collapse: _ctx.isMixSidebar ? false : _ctx.isCollapseSidebar
|
|
602
|
+
}, _ctx.sidebarMenuProps || {}, {
|
|
603
|
+
items: _ctx.sidebarMenus,
|
|
604
|
+
onOpen: _ctx.handleSideMenuOpen,
|
|
605
|
+
onClose: _ctx.handleSideMenuClose,
|
|
606
|
+
onItemClick: _ctx.handleSideMenuItemClick
|
|
607
|
+
}), createSlots({ _: 2 }, [
|
|
608
|
+
_ctx.sidebarIconSlot && !_ctx.ownSlots.includes(_ctx.sidebarIconSlot) && _ctx.$slots[_ctx.sidebarIconSlot] ? {
|
|
609
|
+
name: "icon",
|
|
610
|
+
fn: withCtx((slotProps) => [
|
|
611
|
+
renderSlot(_ctx.$slots, _ctx.sidebarIconSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
612
|
+
]),
|
|
613
|
+
key: "0"
|
|
614
|
+
} : void 0,
|
|
615
|
+
_ctx.sidebarTitleSlot && !_ctx.ownSlots.includes(_ctx.sidebarTitleSlot) && _ctx.$slots[_ctx.sidebarTitleSlot] ? {
|
|
616
|
+
name: "title",
|
|
617
|
+
fn: withCtx((slotProps) => [
|
|
618
|
+
renderSlot(_ctx.$slots, _ctx.sidebarTitleSlot, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
619
|
+
]),
|
|
620
|
+
key: "1"
|
|
621
|
+
} : void 0
|
|
622
|
+
]), 1040, ["theme", "defaultActive", "collapse", "items", "onOpen", "onClose", "onItemClick"])) : createCommentVNode("", true)
|
|
623
|
+
]),
|
|
624
|
+
_: 3
|
|
625
|
+
}, 8, ["style"]),
|
|
626
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
627
|
+
], 38)) : createCommentVNode("", true)
|
|
628
|
+
], 6)) : createCommentVNode("", true)
|
|
629
|
+
]),
|
|
630
|
+
tabs: withCtx(() => [
|
|
631
|
+
_ctx.tabBar && !_ctx.showHeaderTabs ? (openBlock(), createBlock(_component_LayoutTabs, {
|
|
632
|
+
key: 0,
|
|
633
|
+
tabs: _ctx.tabs,
|
|
634
|
+
active: _ctx.tabActive,
|
|
635
|
+
fixedHome: _ctx.fixedHome,
|
|
636
|
+
homePath: _ctx.homePath,
|
|
637
|
+
isHome: _ctx.isHome,
|
|
638
|
+
tabStyle: _ctx.tabStyle,
|
|
639
|
+
tabContextMenu: _ctx.tabContextMenu,
|
|
640
|
+
tabContextMenus: _ctx.tabContextMenus,
|
|
641
|
+
tabSortable: _ctx.tabSortable,
|
|
642
|
+
class: normalizeClass([
|
|
643
|
+
{ "is-fixed-home": _ctx.fixedHome },
|
|
644
|
+
{ "is-fixed": _ctx.isFixedHeader },
|
|
645
|
+
{ "is-fixed-top": _ctx.isFixedHeader && (_ctx.isSideLayout || _ctx.maximized) }
|
|
646
|
+
]),
|
|
647
|
+
style: normalizeStyle(_ctx.tabsCustomStyle),
|
|
648
|
+
onTabClick: _ctx.handleTabClick,
|
|
649
|
+
onTabRemove: _ctx.handleTabRemove,
|
|
650
|
+
onTabContextMenu: _ctx.handleTabContextMenu,
|
|
651
|
+
onTabSortChange: _ctx.handleTabSortChange
|
|
652
|
+
}, createSlots({ _: 2 }, [
|
|
653
|
+
renderList(Object.keys(_ctx.$slots).filter(
|
|
654
|
+
(k) => _ctx.tabSlots.includes(k)
|
|
655
|
+
), (name) => {
|
|
656
|
+
return {
|
|
657
|
+
name,
|
|
658
|
+
fn: withCtx((slotProps) => [
|
|
659
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
660
|
+
])
|
|
661
|
+
};
|
|
662
|
+
})
|
|
663
|
+
]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true)
|
|
664
|
+
]),
|
|
665
|
+
body: withCtx(() => [
|
|
666
|
+
createElementVNode("div", {
|
|
667
|
+
ref: "contentRef",
|
|
668
|
+
class: "ele-admin-content",
|
|
669
|
+
style: normalizeStyle(_ctx.contentCustomStyle)
|
|
670
|
+
}, [
|
|
671
|
+
renderSlot(_ctx.$slots, "default")
|
|
672
|
+
], 4),
|
|
673
|
+
renderSlot(_ctx.$slots, "body"),
|
|
674
|
+
_ctx.backTop ? (openBlock(), createBlock(_component_EleBacktop, mergeProps({
|
|
675
|
+
key: 0,
|
|
676
|
+
target: _ctx.fixedBody && _ctx.contentRef ? _ctx.contentRef : void 0,
|
|
677
|
+
style: _ctx.fixedBody ? { position: "absolute" } : void 0
|
|
678
|
+
}, _ctx.backTop === true ? {} : _ctx.backTop), null, 16, ["target", "style"])) : createCommentVNode("", true),
|
|
679
|
+
createElementVNode("div", _hoisted_7, null, 512)
|
|
680
|
+
]),
|
|
681
|
+
default: withCtx(() => [
|
|
682
|
+
createElementVNode("div", {
|
|
683
|
+
class: "ele-admin-mask",
|
|
684
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.updateCollapse())
|
|
685
|
+
})
|
|
686
|
+
]),
|
|
687
|
+
_: 3
|
|
688
|
+
}, 8, ["isHeaderLogo", "class", "style"]);
|
|
689
|
+
}
|
|
690
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
691
|
+
export {
|
|
692
|
+
index as default
|
|
693
|
+
};
|