yuang-framework-ui-pc 1.0.20 → 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 -45
- 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/lib/utils/vueRouterUtils.ts +0 -30
- 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/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,277 @@
|
|
|
1
|
+
import { inject, computed } from 'vue';
|
|
2
|
+
import type {
|
|
3
|
+
RouteLocationNormalizedLoaded,
|
|
4
|
+
RouteLocationMatched
|
|
5
|
+
} from 'vue-router';
|
|
6
|
+
import type { EleMenuItemProps } from '../ele-app/plus';
|
|
7
|
+
import { findTree, mapTree, omit } from '../utils/core';
|
|
8
|
+
import { LayoutProvide } from '../ele-admin-layout/types';
|
|
9
|
+
import { LAYOUT_KEY } from '../ele-admin-layout/props';
|
|
10
|
+
import { PRO_LAYOUT_KEY } from './props';
|
|
11
|
+
import type {
|
|
12
|
+
MenuItem,
|
|
13
|
+
TabItem,
|
|
14
|
+
LevelItem,
|
|
15
|
+
MatchedResult,
|
|
16
|
+
ProLayoutProvide,
|
|
17
|
+
ResponsiveProps
|
|
18
|
+
} from './types';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 根据菜单地址获取菜单
|
|
22
|
+
* @param path 菜单地址
|
|
23
|
+
* @param menus 菜单数据
|
|
24
|
+
*/
|
|
25
|
+
export function findMenuByPath(path?: string, menus?: MenuItem[]) {
|
|
26
|
+
return path == null ? void 0 : findTree(menus, (d) => path === d.path);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 根据路由地址获取页签
|
|
31
|
+
* @param path 路由地址
|
|
32
|
+
* @param tabs 页签数据
|
|
33
|
+
*/
|
|
34
|
+
export function findTabByPath(path?: string, tabs?: TabItem[] | null) {
|
|
35
|
+
if (path != null && tabs != null) {
|
|
36
|
+
return tabs.find((d) => path === d.key || path === d.fullPath);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 根据页签标识获取页签
|
|
42
|
+
* @param key 页签标识
|
|
43
|
+
* @param tabs 页签数据
|
|
44
|
+
*/
|
|
45
|
+
export function findTabByKey(key?: string, tabs?: TabItem[] | null) {
|
|
46
|
+
if (key != null && tabs != null) {
|
|
47
|
+
return tabs.find((d) => key === d.key);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 根据菜单地址获取菜单及所有父级
|
|
53
|
+
* @param path 菜单地址
|
|
54
|
+
* @param menus 菜单数据
|
|
55
|
+
*/
|
|
56
|
+
export function getMatchedMenus(
|
|
57
|
+
path: string,
|
|
58
|
+
menus: MenuItem[],
|
|
59
|
+
parents?: MenuItem[]
|
|
60
|
+
): MenuItem[] | undefined {
|
|
61
|
+
for (const m of menus) {
|
|
62
|
+
const p = parents ? [...parents, m] : [m];
|
|
63
|
+
if (m.path === path) {
|
|
64
|
+
return p;
|
|
65
|
+
} else if (m.children?.length) {
|
|
66
|
+
const result = getMatchedMenus(path, m.children, p);
|
|
67
|
+
if (result) {
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 获取路由匹配的菜单数据
|
|
76
|
+
* @param route 路由信息
|
|
77
|
+
* @param menus 菜单数据
|
|
78
|
+
*/
|
|
79
|
+
export function getRouteMatched(
|
|
80
|
+
route: RouteLocationNormalizedLoaded,
|
|
81
|
+
menus: MenuItem[]
|
|
82
|
+
): MatchedResult {
|
|
83
|
+
const { path, fullPath, meta } = route;
|
|
84
|
+
if (meta?.active) {
|
|
85
|
+
const m = findMenuByPath(fullPath, menus) ?? findMenuByPath(path, menus);
|
|
86
|
+
return {
|
|
87
|
+
active: meta.active as string,
|
|
88
|
+
activeOther: true,
|
|
89
|
+
title: m?.meta?.title ?? (meta.title as string),
|
|
90
|
+
matched: getMatchedMenus(meta.active as string, menus)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
const fm = findMenuByPath(fullPath, menus);
|
|
94
|
+
if (fm) {
|
|
95
|
+
return {
|
|
96
|
+
active: fullPath,
|
|
97
|
+
title: fm.meta?.title ?? (meta.title as string),
|
|
98
|
+
matched: getMatchedMenus(fullPath, menus)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const m = findMenuByPath(path, menus);
|
|
102
|
+
return {
|
|
103
|
+
active: path,
|
|
104
|
+
title: m?.meta?.title ?? (meta.title as string),
|
|
105
|
+
matched: getMatchedMenus(path, menus)
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 获取面包屑导航数据
|
|
111
|
+
* @param matched 匹配的菜单数据
|
|
112
|
+
* @param activeOther 是否选中非本身
|
|
113
|
+
* @param route 路由信息
|
|
114
|
+
* @param menus 菜单数据
|
|
115
|
+
* @param tabs 页签数据
|
|
116
|
+
*/
|
|
117
|
+
export function getMatchedLevels(
|
|
118
|
+
matched: MenuItem[] | undefined,
|
|
119
|
+
activeOther: boolean | undefined,
|
|
120
|
+
route: RouteLocationNormalizedLoaded,
|
|
121
|
+
menus: MenuItem[],
|
|
122
|
+
tabs: TabItem[]
|
|
123
|
+
): LevelItem[] {
|
|
124
|
+
const levels: LevelItem[] = [];
|
|
125
|
+
if (matched) {
|
|
126
|
+
matched.forEach((m) => {
|
|
127
|
+
if (m.meta && m.meta.title && m.meta.breadcrumb !== false) {
|
|
128
|
+
const title = findTabByPath(m.path, tabs)?.title || m.meta.title;
|
|
129
|
+
levels.push({ path: m.path, title });
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (activeOther) {
|
|
134
|
+
const { path, fullPath, meta } = route;
|
|
135
|
+
const notIn = !levels.length || fullPath !== levels[levels.length - 1].path;
|
|
136
|
+
if (notIn && meta.title) {
|
|
137
|
+
const m = findMenuByPath(fullPath, menus) ?? findMenuByPath(path, menus);
|
|
138
|
+
const t = findTabByPath(fullPath, tabs) ?? findTabByPath(path, tabs);
|
|
139
|
+
const title = t?.title || m?.meta?.title || (meta.title as string);
|
|
140
|
+
levels.push({ path: fullPath, title });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return levels;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 获取路由对应的组件名称
|
|
148
|
+
* @param matched 路由匹配数据
|
|
149
|
+
*/
|
|
150
|
+
export function getMatchedComponents(matched: RouteLocationMatched[]) {
|
|
151
|
+
const components: string[] = [];
|
|
152
|
+
matched.forEach((m) => {
|
|
153
|
+
if (m.components?.default?.name) {
|
|
154
|
+
components.push(m.components.default.name);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
return components;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 返回路由对应的页签数据
|
|
162
|
+
* @param route 路由信息
|
|
163
|
+
* @param tabs 当前页签数据
|
|
164
|
+
* @param homePath 主页地址
|
|
165
|
+
* @param routeTitle 路由对应的标题
|
|
166
|
+
*/
|
|
167
|
+
export function getRouteTab(
|
|
168
|
+
route: RouteLocationNormalizedLoaded,
|
|
169
|
+
tabs: TabItem[],
|
|
170
|
+
homePath: string | undefined,
|
|
171
|
+
routeTitle?: string
|
|
172
|
+
): TabItem {
|
|
173
|
+
const { path, fullPath, meta, matched } = route;
|
|
174
|
+
const key = meta.tabUnique === false ? fullPath : path;
|
|
175
|
+
const t = findTabByPath(key, tabs);
|
|
176
|
+
// 标题
|
|
177
|
+
const title = t?.title || routeTitle;
|
|
178
|
+
// 是否是主页
|
|
179
|
+
const home = path === homePath || fullPath === homePath;
|
|
180
|
+
// 是否可关闭
|
|
181
|
+
const closable = t?.closable ?? meta.closable !== false;
|
|
182
|
+
// 路由对应的组件名
|
|
183
|
+
const components = getMatchedComponents(matched);
|
|
184
|
+
return { key, path, fullPath, title, closable, home, components, meta };
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* 获取选中菜单的子级
|
|
189
|
+
* @param menus 菜单数据
|
|
190
|
+
* @param active 选中地址
|
|
191
|
+
* @param childrenName 子级字段名称
|
|
192
|
+
*/
|
|
193
|
+
export function getActiveChilds(
|
|
194
|
+
menus: MenuItem[],
|
|
195
|
+
active?: string,
|
|
196
|
+
childrenName?: string
|
|
197
|
+
): MenuItem[] {
|
|
198
|
+
const field = childrenName || 'children';
|
|
199
|
+
if (!menus.length) {
|
|
200
|
+
return [];
|
|
201
|
+
}
|
|
202
|
+
if (!active) {
|
|
203
|
+
return menus[0][field] || [];
|
|
204
|
+
}
|
|
205
|
+
const m = menus.find((m) => m.path === active);
|
|
206
|
+
if (m == null) {
|
|
207
|
+
return menus[0][field] || [];
|
|
208
|
+
}
|
|
209
|
+
return m[field] || [];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 拼接内嵌地址
|
|
214
|
+
* @param routePath 路由地址含参数
|
|
215
|
+
* @param iframeUrl 内嵌地址
|
|
216
|
+
*/
|
|
217
|
+
export function getIframeSrc(routePath?: string, iframeUrl?: string) {
|
|
218
|
+
const [_path1, query1 = ''] = (routePath ?? '').split('?');
|
|
219
|
+
const [path2, query2 = ''] = (iframeUrl ?? '').split('?');
|
|
220
|
+
const params1 = new URLSearchParams(query1);
|
|
221
|
+
const params2 = new URLSearchParams(query2);
|
|
222
|
+
// @ts-ignore
|
|
223
|
+
for (const [key, value] of params2.entries()) {
|
|
224
|
+
params1.append(key, value);
|
|
225
|
+
}
|
|
226
|
+
const newQuery = params1.toString();
|
|
227
|
+
return `${path2}${newQuery ? `?${newQuery}` : ''}`;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* 菜单数据转换
|
|
232
|
+
* @param menus 菜单数据
|
|
233
|
+
* @param link 是否使用超链接
|
|
234
|
+
*/
|
|
235
|
+
export function getMenuItems(
|
|
236
|
+
menus: MenuItem[],
|
|
237
|
+
link: boolean
|
|
238
|
+
): EleMenuItemProps[] {
|
|
239
|
+
return mapTree<MenuItem, EleMenuItemProps>(menus, (m) => {
|
|
240
|
+
const { path, meta } = m;
|
|
241
|
+
const { hide, icon, title, props } = meta ?? {};
|
|
242
|
+
if (hide) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const item: EleMenuItemProps = {
|
|
246
|
+
title,
|
|
247
|
+
icon,
|
|
248
|
+
path: link ? path : void 0,
|
|
249
|
+
index: path,
|
|
250
|
+
...omit(props, ['title', 'icon', 'path', 'index']),
|
|
251
|
+
meta
|
|
252
|
+
};
|
|
253
|
+
return item;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* 获取布局共享数据
|
|
259
|
+
*/
|
|
260
|
+
export function useLayoutState(): LayoutProvide {
|
|
261
|
+
return inject(LAYOUT_KEY, {});
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* 获取高级布局共享数据
|
|
266
|
+
*/
|
|
267
|
+
export function useProLayoutState(): ProLayoutProvide {
|
|
268
|
+
return inject(PRO_LAYOUT_KEY, {});
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* 获取是否开启布局响应
|
|
273
|
+
*/
|
|
274
|
+
export function useResponsive(props: ResponsiveProps) {
|
|
275
|
+
const state = useProLayoutState();
|
|
276
|
+
return computed<boolean>(() => props.responsive ?? state.responsive ?? true);
|
|
277
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { TabPaneName, TabsPaneContext } from 'element-plus';
|
|
2
|
+
import { omit } from '../utils/core';
|
|
3
|
+
import { ElTabsProps, ElTabsInstance } from '../ele-app/el';
|
|
4
|
+
import { EleDropdownInstance } from '../ele-app/plus';
|
|
5
|
+
import { DropdownItem } from '../ele-dropdown/types';
|
|
6
|
+
import { TabPaneItem, TabSize, TabType } from './types';
|
|
7
|
+
|
|
8
|
+
declare const _default: import('vue').DefineComponent<{
|
|
9
|
+
items: {
|
|
10
|
+
type: import('vue').PropType<TabPaneItem[]>;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
size: import('vue').PropType<TabSize>;
|
|
14
|
+
type: import('vue').PropType<TabType>;
|
|
15
|
+
center: BooleanConstructor;
|
|
16
|
+
contextMenu: import('vue').PropType<boolean | import('../ele-app/plus').EleDropdownProps>;
|
|
17
|
+
contextMenus: import('vue').PropType<import('./types').ContextMenus>;
|
|
18
|
+
sortable: BooleanConstructor;
|
|
19
|
+
mousewheel: BooleanConstructor;
|
|
20
|
+
handleClick: BooleanConstructor;
|
|
21
|
+
flexTable: BooleanConstructor;
|
|
22
|
+
closable: BooleanConstructor;
|
|
23
|
+
addable: BooleanConstructor;
|
|
24
|
+
modelValue: {
|
|
25
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
|
+
__epPropKey: true;
|
|
29
|
+
};
|
|
30
|
+
editable: BooleanConstructor;
|
|
31
|
+
tabPosition: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
|
|
32
|
+
beforeLeave: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
|
|
33
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
|
|
34
|
+
new (): any;
|
|
35
|
+
readonly prototype: any;
|
|
36
|
+
} | ((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
|
|
37
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
|
|
38
|
+
new (): any;
|
|
39
|
+
readonly prototype: any;
|
|
40
|
+
})[], unknown, unknown, () => true, boolean>;
|
|
41
|
+
stretch: BooleanConstructor;
|
|
42
|
+
}, {
|
|
43
|
+
omit: typeof omit;
|
|
44
|
+
tabRef: import('vue').Ref<ElTabsInstance>;
|
|
45
|
+
isOnlyTab: import('vue').ComputedRef<boolean>;
|
|
46
|
+
tabSize: import('vue').ComputedRef<TabSize | undefined>;
|
|
47
|
+
tabType: import('vue').ComputedRef<TabType | undefined>;
|
|
48
|
+
tabProps: import('vue').ComputedRef<Omit<ElTabsProps, "type">>;
|
|
49
|
+
ctxMenuDropdownRef: import('vue').Ref<EleDropdownInstance>;
|
|
50
|
+
ctxMenuDropdownItems: import('vue').ShallowRef<DropdownItem[]>;
|
|
51
|
+
ctxMenuDropdownVirtualRef: import('vue').Ref<any>;
|
|
52
|
+
updateModelValue: (name: TabPaneName) => void;
|
|
53
|
+
handleContextmenu: (e: MouseEvent) => void;
|
|
54
|
+
handleTabClick: (pane: TabsPaneContext, e: Event) => void;
|
|
55
|
+
handleTabChange: (name: TabPaneName) => void;
|
|
56
|
+
handleTabRemove: (name: TabPaneName) => void;
|
|
57
|
+
handleTabAdd: () => void;
|
|
58
|
+
handleEdit: (name: TabPaneName | undefined, action: "remove" | "add") => void;
|
|
59
|
+
handleItemClick: (item: TabPaneItem | undefined, tabName: string | number | undefined, e: MouseEvent) => void;
|
|
60
|
+
handleItemCtxMenuVisible: (visible: boolean) => void;
|
|
61
|
+
handleItemCtxMenuClick: (command: string) => void;
|
|
62
|
+
handleItemContextmenu: (item: TabPaneItem | undefined, tabName: string | number | undefined, e: MouseEvent) => void;
|
|
63
|
+
hideAllDropdown: () => void;
|
|
64
|
+
updateActiveBar: () => void;
|
|
65
|
+
scrollTabs: (direction: "prev" | "next", done?: () => void) => void;
|
|
66
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
tabItemClick: (_opt: import('./types').TabEventOption) => boolean;
|
|
68
|
+
tabContextMenu: (_opt: import('./types').TabEventOption) => boolean;
|
|
69
|
+
tabContextOpen: (_ref: EleDropdownInstance, _item?: TabPaneItem | null, _name?: string | number | null) => boolean;
|
|
70
|
+
tabSortChange: (_data: TabPaneItem[]) => boolean;
|
|
71
|
+
"update:modelValue": (name: TabPaneName) => boolean;
|
|
72
|
+
tabClick: (pane: TabsPaneContext, ev: Event) => boolean;
|
|
73
|
+
tabChange: (name: TabPaneName) => boolean;
|
|
74
|
+
edit: (paneName: TabPaneName | undefined, action: "remove" | "add") => boolean;
|
|
75
|
+
tabRemove: (name: TabPaneName) => boolean;
|
|
76
|
+
tabAdd: () => boolean;
|
|
77
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
items: {
|
|
79
|
+
type: import('vue').PropType<TabPaneItem[]>;
|
|
80
|
+
required: boolean;
|
|
81
|
+
};
|
|
82
|
+
size: import('vue').PropType<TabSize>;
|
|
83
|
+
type: import('vue').PropType<TabType>;
|
|
84
|
+
center: BooleanConstructor;
|
|
85
|
+
contextMenu: import('vue').PropType<boolean | import('../ele-app/plus').EleDropdownProps>;
|
|
86
|
+
contextMenus: import('vue').PropType<import('./types').ContextMenus>;
|
|
87
|
+
sortable: BooleanConstructor;
|
|
88
|
+
mousewheel: BooleanConstructor;
|
|
89
|
+
handleClick: BooleanConstructor;
|
|
90
|
+
flexTable: BooleanConstructor;
|
|
91
|
+
closable: BooleanConstructor;
|
|
92
|
+
addable: BooleanConstructor;
|
|
93
|
+
modelValue: {
|
|
94
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
95
|
+
readonly required: false;
|
|
96
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
+
__epPropKey: true;
|
|
98
|
+
};
|
|
99
|
+
editable: BooleanConstructor;
|
|
100
|
+
tabPosition: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
|
|
101
|
+
beforeLeave: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
|
|
102
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
|
|
103
|
+
new (): any;
|
|
104
|
+
readonly prototype: any;
|
|
105
|
+
} | ((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
|
|
106
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
|
|
107
|
+
new (): any;
|
|
108
|
+
readonly prototype: any;
|
|
109
|
+
})[], unknown, unknown, () => true, boolean>;
|
|
110
|
+
stretch: BooleanConstructor;
|
|
111
|
+
}>> & {
|
|
112
|
+
"onUpdate:modelValue"?: ((name: TabPaneName) => any) | undefined;
|
|
113
|
+
onTabClick?: ((pane: {
|
|
114
|
+
uid: number;
|
|
115
|
+
slots: import('vue').Slots;
|
|
116
|
+
props: {
|
|
117
|
+
readonly label: string;
|
|
118
|
+
readonly closable: boolean;
|
|
119
|
+
readonly disabled: boolean;
|
|
120
|
+
readonly lazy: boolean;
|
|
121
|
+
readonly name?: import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
122
|
+
};
|
|
123
|
+
paneName: string | number | undefined;
|
|
124
|
+
active: boolean;
|
|
125
|
+
index: string | undefined;
|
|
126
|
+
isClosable: boolean;
|
|
127
|
+
}, ev: Event) => any) | undefined;
|
|
128
|
+
onTabRemove?: ((name: TabPaneName) => any) | undefined;
|
|
129
|
+
onTabChange?: ((name: TabPaneName) => any) | undefined;
|
|
130
|
+
onEdit?: ((paneName: TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
|
|
131
|
+
onTabAdd?: (() => any) | undefined;
|
|
132
|
+
onTabContextMenu?: ((_opt: import('./types').TabEventOption) => any) | undefined;
|
|
133
|
+
onTabItemClick?: ((_opt: import('./types').TabEventOption) => any) | undefined;
|
|
134
|
+
onTabContextOpen?: ((_ref: EleDropdownInstance, _item?: TabPaneItem | null | undefined, _name?: string | number | null | undefined) => any) | undefined;
|
|
135
|
+
onTabSortChange?: ((_data: TabPaneItem[]) => any) | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
mousewheel: boolean;
|
|
138
|
+
closable: boolean;
|
|
139
|
+
center: boolean;
|
|
140
|
+
sortable: boolean;
|
|
141
|
+
addable: boolean;
|
|
142
|
+
editable: boolean;
|
|
143
|
+
tabPosition: import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "top" | "bottom" | "right" | "left", unknown>;
|
|
144
|
+
beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
|
|
145
|
+
stretch: boolean;
|
|
146
|
+
handleClick: boolean;
|
|
147
|
+
flexTable: boolean;
|
|
148
|
+
}, {}>;
|
|
149
|
+
export default _default;
|