@antdv-vue/pro-layout 0.0.0-stage → 2.0.3
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/CHANGELOG.md +266 -0
- package/README.md +111 -2
- package/dist/BasicLayout.d.ts +255 -0
- package/dist/BasicLayout.js +895 -0
- package/dist/ProLayout.d.ts +334 -0
- package/dist/ProLayout.js +548 -0
- package/dist/RenderTypings.d.ts +116 -0
- package/dist/RenderTypings.js +1 -0
- package/dist/WrapContent.d.ts +23 -0
- package/dist/WrapContent.js +73 -0
- package/dist/assert/Logo.d.ts +6 -0
- package/dist/assert/Logo.js +102 -0
- package/dist/components/AppsLogoComponents/AppsLogo.d.ts +10 -0
- package/dist/components/AppsLogoComponents/AppsLogo.js +17 -0
- package/dist/components/AppsLogoComponents/DefaultContent.d.ts +22 -0
- package/dist/components/AppsLogoComponents/DefaultContent.js +42 -0
- package/dist/components/AppsLogoComponents/SimpleContent.d.ts +12 -0
- package/dist/components/AppsLogoComponents/SimpleContent.js +44 -0
- package/dist/components/AppsLogoComponents/index.d.ts +22 -0
- package/dist/components/AppsLogoComponents/index.js +85 -0
- package/dist/components/AppsLogoComponents/style/default.d.ts +7 -0
- package/dist/components/AppsLogoComponents/style/default.js +72 -0
- package/dist/components/AppsLogoComponents/style/index.d.ts +8 -0
- package/dist/components/AppsLogoComponents/style/index.js +69 -0
- package/dist/components/AppsLogoComponents/style/simple.d.ts +7 -0
- package/dist/components/AppsLogoComponents/style/simple.js +85 -0
- package/dist/components/AppsLogoComponents/typing.d.ts +14 -0
- package/dist/components/AppsLogoComponents/typing.js +1 -0
- package/dist/components/CollapsedIcon/index.d.ts +9 -0
- package/dist/components/CollapsedIcon/index.js +6 -0
- package/dist/components/Footer/index.d.ts +18 -0
- package/dist/components/Footer/index.js +25 -0
- package/dist/components/FooterToolbar/index.d.ts +21 -0
- package/dist/components/FooterToolbar/index.js +85 -0
- package/dist/components/FooterToolbar/style/index.d.ts +8 -0
- package/dist/components/FooterToolbar/style/index.js +35 -0
- package/dist/components/FooterToolbar/style/stylish.d.ts +13 -0
- package/dist/components/FooterToolbar/style/stylish.js +12 -0
- package/dist/components/GlobalFooter/index.d.ts +17 -0
- package/dist/components/GlobalFooter/index.js +46 -0
- package/dist/components/GlobalFooter/style/index.d.ts +8 -0
- package/dist/components/GlobalFooter/style/index.js +33 -0
- package/dist/components/GlobalHeader/ActionsContent.d.ts +30 -0
- package/dist/components/GlobalHeader/ActionsContent.js +88 -0
- package/dist/components/GlobalHeader/index.d.ts +146 -0
- package/dist/components/GlobalHeader/index.js +289 -0
- package/dist/components/GlobalHeader/style/index.d.ts +8 -0
- package/dist/components/GlobalHeader/style/index.js +62 -0
- package/dist/components/GlobalHeader/style/rightContentStyle.d.ts +8 -0
- package/dist/components/GlobalHeader/style/rightContentStyle.js +99 -0
- package/dist/components/GridContent/index.d.ts +19 -0
- package/dist/components/GridContent/index.js +40 -0
- package/dist/components/GridContent/style/index.d.ts +8 -0
- package/dist/components/GridContent/style/index.js +17 -0
- package/dist/components/Header/index.d.ts +106 -0
- package/dist/components/Header/index.js +330 -0
- package/dist/components/Header/style/header.d.ts +8 -0
- package/dist/components/Header/style/header.js +39 -0
- package/dist/components/Header/style/stylish.d.ts +17 -0
- package/dist/components/Header/style/stylish.js +12 -0
- package/dist/components/Help/AsyncContentPanel.d.ts +11 -0
- package/dist/components/Help/AsyncContentPanel.js +51 -0
- package/dist/components/Help/HelpProvide.d.ts +206 -0
- package/dist/components/Help/HelpProvide.js +20 -0
- package/dist/components/Help/ProHelpContentPanel.d.ts +19 -0
- package/dist/components/Help/ProHelpContentPanel.js +120 -0
- package/dist/components/Help/ProHelpDrawer.d.ts +13 -0
- package/dist/components/Help/ProHelpDrawer.js +108 -0
- package/dist/components/Help/ProHelpModal.d.ts +19 -0
- package/dist/components/Help/ProHelpModal.js +105 -0
- package/dist/components/Help/ProHelpPanel.d.ts +95 -0
- package/dist/components/Help/ProHelpPanel.js +245 -0
- package/dist/components/Help/ProHelpPopover.d.ts +61 -0
- package/dist/components/Help/ProHelpPopover.js +183 -0
- package/dist/components/Help/ProHelpSearch.d.ts +14 -0
- package/dist/components/Help/ProHelpSearch.js +530 -0
- package/dist/components/Help/RenderContentPanel.d.ts +11 -0
- package/dist/components/Help/RenderContentPanel.js +90 -0
- package/dist/components/Help/index.d.ts +43 -0
- package/dist/components/Help/index.js +31 -0
- package/dist/components/Help/style/index.d.ts +10 -0
- package/dist/components/Help/style/index.js +96 -0
- package/dist/components/MultiTab/index.d.ts +71 -0
- package/dist/components/MultiTab/index.js +303 -0
- package/dist/components/MultiTab/style/index.d.ts +8 -0
- package/dist/components/MultiTab/style/index.js +67 -0
- package/dist/components/PageContainer/PageContainerBase.d.ts +155 -0
- package/dist/components/PageContainer/PageContainerBase.js +349 -0
- package/dist/components/PageContainer/index.d.ts +57 -0
- package/dist/components/PageContainer/index.js +234 -0
- package/dist/components/PageContainer/style/index.d.ts +8 -0
- package/dist/components/PageContainer/style/index.js +63 -0
- package/dist/components/PageContainer/style/stylish.d.ts +13 -0
- package/dist/components/PageContainer/style/stylish.js +12 -0
- package/dist/components/PageHeader/index.d.ts +37 -0
- package/dist/components/PageHeader/index.js +221 -0
- package/dist/components/PageHeader/style/index.d.ts +17 -0
- package/dist/components/PageHeader/style/index.js +132 -0
- package/dist/components/PageLoading/index.d.ts +9 -0
- package/dist/components/PageLoading/index.js +15 -0
- package/dist/components/SettingDrawer/BlockCheckbox.d.ts +18 -0
- package/dist/components/SettingDrawer/BlockCheckbox.js +25 -0
- package/dist/components/SettingDrawer/LayoutChange.d.ts +28 -0
- package/dist/components/SettingDrawer/LayoutChange.js +127 -0
- package/dist/components/SettingDrawer/RegionalChange.d.ts +15 -0
- package/dist/components/SettingDrawer/RegionalChange.js +35 -0
- package/dist/components/SettingDrawer/ThemeColor.d.ts +28 -0
- package/dist/components/SettingDrawer/ThemeColor.js +30 -0
- package/dist/components/SettingDrawer/icon/group.d.ts +10 -0
- package/dist/components/SettingDrawer/icon/group.js +190 -0
- package/dist/components/SettingDrawer/icon/sub.d.ts +10 -0
- package/dist/components/SettingDrawer/icon/sub.js +187 -0
- package/dist/components/SettingDrawer/index.d.ts +42 -0
- package/dist/components/SettingDrawer/index.js +510 -0
- package/dist/components/SettingDrawer/style/index.d.ts +9 -0
- package/dist/components/SettingDrawer/style/index.js +236 -0
- package/dist/components/SiderMenu/BaseMenu.d.ts +133 -0
- package/dist/components/SiderMenu/BaseMenu.js +583 -0
- package/dist/components/SiderMenu/SiderMenu.d.ts +326 -0
- package/dist/components/SiderMenu/SiderMenu.js +756 -0
- package/dist/components/SiderMenu/index.d.ts +72 -0
- package/dist/components/SiderMenu/index.js +507 -0
- package/dist/components/SiderMenu/style/index.d.ts +20 -0
- package/dist/components/SiderMenu/style/index.js +301 -0
- package/dist/components/SiderMenu/style/menu.d.ts +10 -0
- package/dist/components/SiderMenu/style/menu.js +23 -0
- package/dist/components/SiderMenu/style/stylish.d.ts +20 -0
- package/dist/components/SiderMenu/style/stylish.js +15 -0
- package/dist/components/TopNavHeader/index.d.ts +86 -0
- package/dist/components/TopNavHeader/index.js +536 -0
- package/dist/components/TopNavHeader/style/index.d.ts +8 -0
- package/dist/components/TopNavHeader/style/index.js +71 -0
- package/dist/context/RouteContext.d.ts +39 -0
- package/dist/context/RouteContext.js +9 -0
- package/dist/defaultSettings.d.ts +115 -0
- package/dist/defaultSettings.js +16 -0
- package/dist/getPageTitle.d.ts +31 -0
- package/dist/getPageTitle.js +55 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +17 -0
- package/dist/locales/ar-EG/help.d.ts +6 -0
- package/dist/locales/ar-EG/help.js +4 -0
- package/dist/locales/ar-EG/multiTab.d.ts +6 -0
- package/dist/locales/ar-EG/multiTab.js +10 -0
- package/dist/locales/ar-EG/settingDrawer.d.ts +6 -0
- package/dist/locales/ar-EG/settingDrawer.js +50 -0
- package/dist/locales/ar-EG.d.ts +56 -0
- package/dist/locales/ar-EG.js +11 -0
- package/dist/locales/ca-ES/help.d.ts +6 -0
- package/dist/locales/ca-ES/help.js +4 -0
- package/dist/locales/ca-ES/multiTab.d.ts +6 -0
- package/dist/locales/ca-ES/multiTab.js +10 -0
- package/dist/locales/ca-ES/settingDrawer.d.ts +6 -0
- package/dist/locales/ca-ES/settingDrawer.js +50 -0
- package/dist/locales/ca-ES.d.ts +56 -0
- package/dist/locales/ca-ES.js +11 -0
- package/dist/locales/cs-CZ/help.d.ts +6 -0
- package/dist/locales/cs-CZ/help.js +4 -0
- package/dist/locales/cs-CZ/multiTab.d.ts +6 -0
- package/dist/locales/cs-CZ/multiTab.js +10 -0
- package/dist/locales/cs-CZ/settingDrawer.d.ts +6 -0
- package/dist/locales/cs-CZ/settingDrawer.js +50 -0
- package/dist/locales/cs-CZ.d.ts +56 -0
- package/dist/locales/cs-CZ.js +11 -0
- package/dist/locales/de-DE/help.d.ts +6 -0
- package/dist/locales/de-DE/help.js +4 -0
- package/dist/locales/de-DE/multiTab.d.ts +6 -0
- package/dist/locales/de-DE/multiTab.js +10 -0
- package/dist/locales/de-DE/settingDrawer.d.ts +6 -0
- package/dist/locales/de-DE/settingDrawer.js +50 -0
- package/dist/locales/de-DE.d.ts +56 -0
- package/dist/locales/de-DE.js +11 -0
- package/dist/locales/en-GB/help.d.ts +6 -0
- package/dist/locales/en-GB/help.js +4 -0
- package/dist/locales/en-GB/multiTab.d.ts +6 -0
- package/dist/locales/en-GB/multiTab.js +10 -0
- package/dist/locales/en-GB/settingDrawer.d.ts +6 -0
- package/dist/locales/en-GB/settingDrawer.js +50 -0
- package/dist/locales/en-GB.d.ts +56 -0
- package/dist/locales/en-GB.js +11 -0
- package/dist/locales/en-US/help.d.ts +6 -0
- package/dist/locales/en-US/help.js +4 -0
- package/dist/locales/en-US/multiTab.d.ts +6 -0
- package/dist/locales/en-US/multiTab.js +10 -0
- package/dist/locales/en-US/settingDrawer.d.ts +6 -0
- package/dist/locales/en-US/settingDrawer.js +50 -0
- package/dist/locales/en-US.d.ts +56 -0
- package/dist/locales/en-US.js +11 -0
- package/dist/locales/es-ES/help.d.ts +6 -0
- package/dist/locales/es-ES/help.js +4 -0
- package/dist/locales/es-ES/multiTab.d.ts +6 -0
- package/dist/locales/es-ES/multiTab.js +10 -0
- package/dist/locales/es-ES/settingDrawer.d.ts +6 -0
- package/dist/locales/es-ES/settingDrawer.js +50 -0
- package/dist/locales/es-ES.d.ts +56 -0
- package/dist/locales/es-ES.js +11 -0
- package/dist/locales/fa-IR/help.d.ts +6 -0
- package/dist/locales/fa-IR/help.js +4 -0
- package/dist/locales/fa-IR/multiTab.d.ts +6 -0
- package/dist/locales/fa-IR/multiTab.js +10 -0
- package/dist/locales/fa-IR/settingDrawer.d.ts +6 -0
- package/dist/locales/fa-IR/settingDrawer.js +50 -0
- package/dist/locales/fa-IR.d.ts +56 -0
- package/dist/locales/fa-IR.js +11 -0
- package/dist/locales/fr-FR/help.d.ts +6 -0
- package/dist/locales/fr-FR/help.js +4 -0
- package/dist/locales/fr-FR/multiTab.d.ts +6 -0
- package/dist/locales/fr-FR/multiTab.js +10 -0
- package/dist/locales/fr-FR/settingDrawer.d.ts +6 -0
- package/dist/locales/fr-FR/settingDrawer.js +50 -0
- package/dist/locales/fr-FR.d.ts +56 -0
- package/dist/locales/fr-FR.js +11 -0
- package/dist/locales/he-IL/help.d.ts +6 -0
- package/dist/locales/he-IL/help.js +4 -0
- package/dist/locales/he-IL/multiTab.d.ts +6 -0
- package/dist/locales/he-IL/multiTab.js +10 -0
- package/dist/locales/he-IL/settingDrawer.d.ts +6 -0
- package/dist/locales/he-IL/settingDrawer.js +50 -0
- package/dist/locales/he-IL.d.ts +56 -0
- package/dist/locales/he-IL.js +11 -0
- package/dist/locales/hr-HR/help.d.ts +6 -0
- package/dist/locales/hr-HR/help.js +4 -0
- package/dist/locales/hr-HR/multiTab.d.ts +6 -0
- package/dist/locales/hr-HR/multiTab.js +10 -0
- package/dist/locales/hr-HR/settingDrawer.d.ts +6 -0
- package/dist/locales/hr-HR/settingDrawer.js +50 -0
- package/dist/locales/hr-HR.d.ts +56 -0
- package/dist/locales/hr-HR.js +11 -0
- package/dist/locales/id-ID/help.d.ts +6 -0
- package/dist/locales/id-ID/help.js +4 -0
- package/dist/locales/id-ID/multiTab.d.ts +6 -0
- package/dist/locales/id-ID/multiTab.js +10 -0
- package/dist/locales/id-ID/settingDrawer.d.ts +6 -0
- package/dist/locales/id-ID/settingDrawer.js +50 -0
- package/dist/locales/id-ID.d.ts +56 -0
- package/dist/locales/id-ID.js +11 -0
- package/dist/locales/index.d.ts +1756 -0
- package/dist/locales/index.js +86 -0
- package/dist/locales/it-IT/help.d.ts +6 -0
- package/dist/locales/it-IT/help.js +4 -0
- package/dist/locales/it-IT/multiTab.d.ts +6 -0
- package/dist/locales/it-IT/multiTab.js +10 -0
- package/dist/locales/it-IT/settingDrawer.d.ts +6 -0
- package/dist/locales/it-IT/settingDrawer.js +50 -0
- package/dist/locales/it-IT.d.ts +56 -0
- package/dist/locales/it-IT.js +11 -0
- package/dist/locales/ja-JP/help.d.ts +6 -0
- package/dist/locales/ja-JP/help.js +4 -0
- package/dist/locales/ja-JP/multiTab.d.ts +6 -0
- package/dist/locales/ja-JP/multiTab.js +10 -0
- package/dist/locales/ja-JP/settingDrawer.d.ts +6 -0
- package/dist/locales/ja-JP/settingDrawer.js +50 -0
- package/dist/locales/ja-JP.d.ts +56 -0
- package/dist/locales/ja-JP.js +11 -0
- package/dist/locales/ko-KR/help.d.ts +6 -0
- package/dist/locales/ko-KR/help.js +4 -0
- package/dist/locales/ko-KR/multiTab.d.ts +6 -0
- package/dist/locales/ko-KR/multiTab.js +10 -0
- package/dist/locales/ko-KR/settingDrawer.d.ts +6 -0
- package/dist/locales/ko-KR/settingDrawer.js +50 -0
- package/dist/locales/ko-KR.d.ts +56 -0
- package/dist/locales/ko-KR.js +11 -0
- package/dist/locales/mn-MN/help.d.ts +6 -0
- package/dist/locales/mn-MN/help.js +4 -0
- package/dist/locales/mn-MN/multiTab.d.ts +6 -0
- package/dist/locales/mn-MN/multiTab.js +10 -0
- package/dist/locales/mn-MN/settingDrawer.d.ts +6 -0
- package/dist/locales/mn-MN/settingDrawer.js +50 -0
- package/dist/locales/mn-MN.d.ts +56 -0
- package/dist/locales/mn-MN.js +11 -0
- package/dist/locales/ms-MY/help.d.ts +6 -0
- package/dist/locales/ms-MY/help.js +4 -0
- package/dist/locales/ms-MY/multiTab.d.ts +6 -0
- package/dist/locales/ms-MY/multiTab.js +10 -0
- package/dist/locales/ms-MY/settingDrawer.d.ts +6 -0
- package/dist/locales/ms-MY/settingDrawer.js +50 -0
- package/dist/locales/ms-MY.d.ts +56 -0
- package/dist/locales/ms-MY.js +11 -0
- package/dist/locales/nl-NL/help.d.ts +6 -0
- package/dist/locales/nl-NL/help.js +4 -0
- package/dist/locales/nl-NL/multiTab.d.ts +6 -0
- package/dist/locales/nl-NL/multiTab.js +10 -0
- package/dist/locales/nl-NL/settingDrawer.d.ts +6 -0
- package/dist/locales/nl-NL/settingDrawer.js +50 -0
- package/dist/locales/nl-NL.d.ts +56 -0
- package/dist/locales/nl-NL.js +11 -0
- package/dist/locales/pl-PL/help.d.ts +6 -0
- package/dist/locales/pl-PL/help.js +4 -0
- package/dist/locales/pl-PL/multiTab.d.ts +6 -0
- package/dist/locales/pl-PL/multiTab.js +10 -0
- package/dist/locales/pl-PL/settingDrawer.d.ts +6 -0
- package/dist/locales/pl-PL/settingDrawer.js +50 -0
- package/dist/locales/pl-PL.d.ts +56 -0
- package/dist/locales/pl-PL.js +11 -0
- package/dist/locales/pt-BR/help.d.ts +6 -0
- package/dist/locales/pt-BR/help.js +4 -0
- package/dist/locales/pt-BR/multiTab.d.ts +6 -0
- package/dist/locales/pt-BR/multiTab.js +10 -0
- package/dist/locales/pt-BR/settingDrawer.d.ts +6 -0
- package/dist/locales/pt-BR/settingDrawer.js +50 -0
- package/dist/locales/pt-BR.d.ts +56 -0
- package/dist/locales/pt-BR.js +11 -0
- package/dist/locales/ro-RO/help.d.ts +6 -0
- package/dist/locales/ro-RO/help.js +4 -0
- package/dist/locales/ro-RO/multiTab.d.ts +6 -0
- package/dist/locales/ro-RO/multiTab.js +10 -0
- package/dist/locales/ro-RO/settingDrawer.d.ts +6 -0
- package/dist/locales/ro-RO/settingDrawer.js +50 -0
- package/dist/locales/ro-RO.d.ts +56 -0
- package/dist/locales/ro-RO.js +11 -0
- package/dist/locales/ru-RU/help.d.ts +6 -0
- package/dist/locales/ru-RU/help.js +4 -0
- package/dist/locales/ru-RU/multiTab.d.ts +6 -0
- package/dist/locales/ru-RU/multiTab.js +10 -0
- package/dist/locales/ru-RU/settingDrawer.d.ts +6 -0
- package/dist/locales/ru-RU/settingDrawer.js +50 -0
- package/dist/locales/ru-RU.d.ts +56 -0
- package/dist/locales/ru-RU.js +11 -0
- package/dist/locales/sk-SK/help.d.ts +6 -0
- package/dist/locales/sk-SK/help.js +4 -0
- package/dist/locales/sk-SK/multiTab.d.ts +6 -0
- package/dist/locales/sk-SK/multiTab.js +9 -0
- package/dist/locales/sk-SK/settingDrawer.d.ts +6 -0
- package/dist/locales/sk-SK/settingDrawer.js +50 -0
- package/dist/locales/sk-SK.d.ts +56 -0
- package/dist/locales/sk-SK.js +11 -0
- package/dist/locales/sr-RS/help.d.ts +6 -0
- package/dist/locales/sr-RS/help.js +4 -0
- package/dist/locales/sr-RS/multiTab.d.ts +6 -0
- package/dist/locales/sr-RS/multiTab.js +10 -0
- package/dist/locales/sr-RS/settingDrawer.d.ts +6 -0
- package/dist/locales/sr-RS/settingDrawer.js +50 -0
- package/dist/locales/sr-RS.d.ts +56 -0
- package/dist/locales/sr-RS.js +11 -0
- package/dist/locales/sv-SE/help.d.ts +6 -0
- package/dist/locales/sv-SE/help.js +4 -0
- package/dist/locales/sv-SE/multiTab.d.ts +6 -0
- package/dist/locales/sv-SE/multiTab.js +10 -0
- package/dist/locales/sv-SE/settingDrawer.d.ts +6 -0
- package/dist/locales/sv-SE/settingDrawer.js +50 -0
- package/dist/locales/sv-SE.d.ts +56 -0
- package/dist/locales/sv-SE.js +11 -0
- package/dist/locales/th-TH/help.d.ts +6 -0
- package/dist/locales/th-TH/help.js +4 -0
- package/dist/locales/th-TH/multiTab.d.ts +6 -0
- package/dist/locales/th-TH/multiTab.js +10 -0
- package/dist/locales/th-TH/settingDrawer.d.ts +6 -0
- package/dist/locales/th-TH/settingDrawer.js +50 -0
- package/dist/locales/th-TH.d.ts +56 -0
- package/dist/locales/th-TH.js +11 -0
- package/dist/locales/tr-TR/help.d.ts +6 -0
- package/dist/locales/tr-TR/help.js +4 -0
- package/dist/locales/tr-TR/multiTab.d.ts +6 -0
- package/dist/locales/tr-TR/multiTab.js +10 -0
- package/dist/locales/tr-TR/settingDrawer.d.ts +6 -0
- package/dist/locales/tr-TR/settingDrawer.js +50 -0
- package/dist/locales/tr-TR.d.ts +56 -0
- package/dist/locales/tr-TR.js +11 -0
- package/dist/locales/uk-UA/help.d.ts +6 -0
- package/dist/locales/uk-UA/help.js +4 -0
- package/dist/locales/uk-UA/multiTab.d.ts +6 -0
- package/dist/locales/uk-UA/multiTab.js +10 -0
- package/dist/locales/uk-UA/settingDrawer.d.ts +6 -0
- package/dist/locales/uk-UA/settingDrawer.js +50 -0
- package/dist/locales/uk-UA.d.ts +56 -0
- package/dist/locales/uk-UA.js +11 -0
- package/dist/locales/uz-UZ/help.d.ts +6 -0
- package/dist/locales/uz-UZ/help.js +4 -0
- package/dist/locales/uz-UZ/multiTab.d.ts +6 -0
- package/dist/locales/uz-UZ/multiTab.js +10 -0
- package/dist/locales/uz-UZ/settingDrawer.d.ts +6 -0
- package/dist/locales/uz-UZ/settingDrawer.js +50 -0
- package/dist/locales/uz-UZ.d.ts +56 -0
- package/dist/locales/uz-UZ.js +11 -0
- package/dist/locales/vi-VN/help.d.ts +6 -0
- package/dist/locales/vi-VN/help.js +4 -0
- package/dist/locales/vi-VN/multiTab.d.ts +6 -0
- package/dist/locales/vi-VN/multiTab.js +10 -0
- package/dist/locales/vi-VN/settingDrawer.d.ts +6 -0
- package/dist/locales/vi-VN/settingDrawer.js +50 -0
- package/dist/locales/vi-VN.d.ts +56 -0
- package/dist/locales/vi-VN.js +11 -0
- package/dist/locales/zh-CN/help.d.ts +8 -0
- package/dist/locales/zh-CN/help.js +4 -0
- package/dist/locales/zh-CN/multiTab.d.ts +19 -0
- package/dist/locales/zh-CN/multiTab.js +17 -0
- package/dist/locales/zh-CN/settingDrawer.d.ts +52 -0
- package/dist/locales/zh-CN/settingDrawer.js +50 -0
- package/dist/locales/zh-CN.d.ts +56 -0
- package/dist/locales/zh-CN.js +11 -0
- package/dist/locales/zh-HK/help.d.ts +6 -0
- package/dist/locales/zh-HK/help.js +4 -0
- package/dist/locales/zh-HK/multiTab.d.ts +6 -0
- package/dist/locales/zh-HK/multiTab.js +10 -0
- package/dist/locales/zh-HK/settingDrawer.d.ts +6 -0
- package/dist/locales/zh-HK/settingDrawer.js +50 -0
- package/dist/locales/zh-HK.d.ts +56 -0
- package/dist/locales/zh-HK.js +11 -0
- package/dist/locales/zh-TW/help.d.ts +6 -0
- package/dist/locales/zh-TW/help.js +4 -0
- package/dist/locales/zh-TW/multiTab.d.ts +6 -0
- package/dist/locales/zh-TW/multiTab.js +10 -0
- package/dist/locales/zh-TW/settingDrawer.d.ts +6 -0
- package/dist/locales/zh-TW/settingDrawer.js +50 -0
- package/dist/locales/zh-TW.d.ts +56 -0
- package/dist/locales/zh-TW.js +11 -0
- package/dist/pro-layout.esm.js +11423 -0
- package/dist/style/index.d.ts +30 -0
- package/dist/style/index.js +120 -0
- package/dist/typing.d.ts +63 -0
- package/dist/typing.js +1 -0
- package/dist/utils/getBreadcrumbProps.d.ts +34 -0
- package/dist/utils/getBreadcrumbProps.js +91 -0
- package/dist/utils/getMenuData.d.ts +13 -0
- package/dist/utils/getMenuData.js +19 -0
- package/dist/utils/index.d.ts +30 -0
- package/dist/utils/index.js +55 -0
- package/dist/utils/siderWidth.d.ts +29 -0
- package/dist/utils/siderWidth.js +20 -0
- package/dist/utils/useCurrentMenuLayoutProps.d.ts +10 -0
- package/dist/utils/useCurrentMenuLayoutProps.js +28 -0
- package/dist/utils/useProLayoutLocation.d.ts +8 -0
- package/dist/utils/useProLayoutLocation.js +14 -0
- package/dist/utils/useProLayoutRender.d.ts +25 -0
- package/dist/utils/useProLayoutRender.js +42 -0
- package/package.json +61 -3
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { useStyle as useStyle$1 } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { Keyframes, mergeToken, unit } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/SiderMenu/style/index.ts
|
|
4
|
+
const proLayoutTitleHide = new Keyframes("proLayoutTitleHide", {
|
|
5
|
+
"0%": {
|
|
6
|
+
display: "none",
|
|
7
|
+
opacity: 0,
|
|
8
|
+
overflow: "hidden"
|
|
9
|
+
},
|
|
10
|
+
"80%": { overflow: "hidden" },
|
|
11
|
+
"100%": {
|
|
12
|
+
display: "unset",
|
|
13
|
+
opacity: 1
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const genSiderMenuStyle = (token) => {
|
|
17
|
+
return {
|
|
18
|
+
[token.componentCls]: {
|
|
19
|
+
[`&${token.antCls}-layout-sider`]: {
|
|
20
|
+
zIndex: 10,
|
|
21
|
+
[`&${token.componentCls}-light`]: {
|
|
22
|
+
boxShadow: "2px 0 8px rgba(29, 35, 41, .05)",
|
|
23
|
+
[`&${token.componentCls}-mix`]: { zIndex: 9 },
|
|
24
|
+
[`& ${token.antCls}-layout-sider-children`]: {
|
|
25
|
+
"& ::-webkit-scrollbar-thumb": {
|
|
26
|
+
backgroundColor: "rgba(0,0,0,.12)",
|
|
27
|
+
borderRadius: 3,
|
|
28
|
+
boxShadow: "inset 0 0 5px rgba(0,21,41,.05)"
|
|
29
|
+
},
|
|
30
|
+
"& ::-webkit-scrollbar-track": {
|
|
31
|
+
backgroundColor: "rgba(0,0,0,.06)",
|
|
32
|
+
borderRadius: 3,
|
|
33
|
+
boxShadow: "inset 0 0 5px rgba(0,21,41,.05)"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
[`&${token.componentCls}-dark`]: {
|
|
38
|
+
[`${token.componentCls}-logo`]: {
|
|
39
|
+
color: "rgba(255,255,255,0.85)",
|
|
40
|
+
"> a": { "> h1": { color: "rgba(255,255,255,0.85)" } },
|
|
41
|
+
[`${token.proComponentsCls}-layout-apps`]: { "&-icon": {
|
|
42
|
+
color: "rgba(255, 255, 255, 0.85)",
|
|
43
|
+
"&:hover": {
|
|
44
|
+
color: "rgba(255, 255, 255, 1)",
|
|
45
|
+
backgroundColor: "rgba(255,255,255, 0.05)"
|
|
46
|
+
},
|
|
47
|
+
"&-active": {
|
|
48
|
+
color: "rgba(255, 255, 255, 1)",
|
|
49
|
+
backgroundColor: "rgba(255,255,255, 0.05)"
|
|
50
|
+
}
|
|
51
|
+
} }
|
|
52
|
+
},
|
|
53
|
+
[`${token.componentCls}-actions`]: { color: "rgba(255,255,255,0.85)" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
[`& ${token.antCls}-layout-sider-children`]: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
flexDirection: "column",
|
|
59
|
+
height: "100%",
|
|
60
|
+
"& ::-webkit-scrollbar": {
|
|
61
|
+
width: 6,
|
|
62
|
+
height: 6
|
|
63
|
+
},
|
|
64
|
+
"& ::-webkit-scrollbar-thumb": {
|
|
65
|
+
backgroundColor: "rgba(255,255,255,0.2)",
|
|
66
|
+
borderRadius: 3,
|
|
67
|
+
boxShadow: "inset 0 0 5px rgba(255,255,255,.05)"
|
|
68
|
+
},
|
|
69
|
+
"& ::-webkit-scrollbar-track": {
|
|
70
|
+
backgroundColor: "rgba(255,255,255,0.15)",
|
|
71
|
+
borderRadius: 3,
|
|
72
|
+
boxShadow: "inset 0 0 5px rgba(37,37,37,.05)"
|
|
73
|
+
},
|
|
74
|
+
[`${token.componentCls}-collapsed-button`]: { [`& ${token.antCls}-menu-light`]: { borderInlineEnd: "none" } }
|
|
75
|
+
},
|
|
76
|
+
"&-logo": {
|
|
77
|
+
position: "relative",
|
|
78
|
+
display: "flex",
|
|
79
|
+
alignItems: "center",
|
|
80
|
+
justifyContent: "space-between",
|
|
81
|
+
paddingInline: 8,
|
|
82
|
+
paddingBlock: 16,
|
|
83
|
+
color: token.proLayoutSiderColorTextMenu,
|
|
84
|
+
cursor: "pointer",
|
|
85
|
+
"> a": {
|
|
86
|
+
display: "flex",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
justifyContent: "center",
|
|
89
|
+
minHeight: 32,
|
|
90
|
+
fontSize: 32,
|
|
91
|
+
"> img": {
|
|
92
|
+
display: "inline-block",
|
|
93
|
+
height: 32,
|
|
94
|
+
verticalAlign: "middle",
|
|
95
|
+
transition: "height 0.2s"
|
|
96
|
+
},
|
|
97
|
+
"> svg": { fontSize: 32 },
|
|
98
|
+
"> img + h1, > svg+ h1": { marginInlineStart: 10 },
|
|
99
|
+
"> h1": {
|
|
100
|
+
display: "inline-block",
|
|
101
|
+
height: 32,
|
|
102
|
+
marginBlock: 0,
|
|
103
|
+
marginInlineEnd: 0,
|
|
104
|
+
color: token.proLayoutSiderColorTextMenuTitle,
|
|
105
|
+
animationName: proLayoutTitleHide,
|
|
106
|
+
animationDuration: ".4s",
|
|
107
|
+
animationTimingFunction: "ease",
|
|
108
|
+
fontWeight: 600,
|
|
109
|
+
fontSize: 18,
|
|
110
|
+
lineHeight: "32px",
|
|
111
|
+
verticalAlign: "middle"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"&-collapsed": {
|
|
115
|
+
flexDirection: "column-reverse",
|
|
116
|
+
margin: 0,
|
|
117
|
+
padding: 12,
|
|
118
|
+
[`${token.proComponentsCls}-layout-apps-icon`]: {
|
|
119
|
+
marginBlockEnd: 8,
|
|
120
|
+
fontSize: 16,
|
|
121
|
+
transition: "font-size 0.2s ease-in-out,color 0.2s ease-in-out"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"&-actions": {
|
|
126
|
+
display: "flex",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
justifyContent: "space-between",
|
|
129
|
+
marginBlock: 4,
|
|
130
|
+
marginInline: 0,
|
|
131
|
+
color: token.proLayoutSiderColorTextMenu,
|
|
132
|
+
"&-collapsed": {
|
|
133
|
+
flexDirection: "column-reverse",
|
|
134
|
+
paddingBlock: 0,
|
|
135
|
+
paddingInline: 8,
|
|
136
|
+
fontSize: 16,
|
|
137
|
+
transition: "font-size 0.3s ease-in-out"
|
|
138
|
+
},
|
|
139
|
+
"&-list": {
|
|
140
|
+
color: token.proLayoutSiderColorTextMenuSecondary,
|
|
141
|
+
"&-collapsed": {
|
|
142
|
+
marginBlockEnd: 8,
|
|
143
|
+
animationName: "none"
|
|
144
|
+
},
|
|
145
|
+
"&-item": {
|
|
146
|
+
paddingInline: 6,
|
|
147
|
+
paddingBlock: 6,
|
|
148
|
+
lineHeight: "16px",
|
|
149
|
+
fontSize: 16,
|
|
150
|
+
cursor: "pointer",
|
|
151
|
+
borderRadius: token.borderRadius,
|
|
152
|
+
"&:hover": { background: token.colorBgTextHover }
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"&-avatar": {
|
|
156
|
+
fontSize: 14,
|
|
157
|
+
paddingInline: 8,
|
|
158
|
+
paddingBlock: 8,
|
|
159
|
+
display: "flex",
|
|
160
|
+
alignItems: "center",
|
|
161
|
+
gap: 8,
|
|
162
|
+
borderRadius: token.borderRadius,
|
|
163
|
+
"& *": { cursor: "pointer" },
|
|
164
|
+
"&:hover": { background: token.colorBgTextHover }
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"&-extra": {
|
|
168
|
+
marginBlockEnd: 16,
|
|
169
|
+
marginBlock: 0,
|
|
170
|
+
marginInline: 16,
|
|
171
|
+
"&-no-logo": { marginBlockStart: 16 }
|
|
172
|
+
},
|
|
173
|
+
"&-links": { width: "100%" },
|
|
174
|
+
"&-footer": {
|
|
175
|
+
color: token.proLayoutSiderColorTextMenuSecondary,
|
|
176
|
+
paddingBlockEnd: 16,
|
|
177
|
+
fontSize: token.fontSize,
|
|
178
|
+
animationName: proLayoutTitleHide,
|
|
179
|
+
animationDuration: ".3s",
|
|
180
|
+
animationTimingFunction: "ease"
|
|
181
|
+
},
|
|
182
|
+
[`&&-mix${token.antCls}-layout-sider`]: { insetBlockStart: token.proLayoutHeaderHeightLayoutHeader || 56 },
|
|
183
|
+
"&&-left": {
|
|
184
|
+
[`${token.componentCls}-left-container`]: {
|
|
185
|
+
display: "flex",
|
|
186
|
+
height: "100%"
|
|
187
|
+
},
|
|
188
|
+
[`${token.componentCls}-left-rail`]: {
|
|
189
|
+
flex: `0 0 ${token.calc(token.proLayoutFirstMenuWidth || 80).equal()}`,
|
|
190
|
+
width: token.proLayoutFirstMenuWidth || 80,
|
|
191
|
+
borderInlineEnd: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
|
|
192
|
+
[`${token.componentCls}-left-logo`]: {
|
|
193
|
+
display: "flex",
|
|
194
|
+
justifyContent: "center",
|
|
195
|
+
alignItems: "center",
|
|
196
|
+
paddingInline: 8,
|
|
197
|
+
paddingBlock: 16,
|
|
198
|
+
"> img": {
|
|
199
|
+
display: "inline-block",
|
|
200
|
+
height: 32,
|
|
201
|
+
verticalAlign: "middle",
|
|
202
|
+
transition: "height 0.2s"
|
|
203
|
+
},
|
|
204
|
+
"> svg": { fontSize: 32 }
|
|
205
|
+
},
|
|
206
|
+
[`${token.antCls}-menu-light${token.antCls}-menu-root`]: { borderInlineEnd: "none" },
|
|
207
|
+
[`${token.antCls}-menu`]: {
|
|
208
|
+
"&-item": {
|
|
209
|
+
display: "flex",
|
|
210
|
+
flexDirection: "column",
|
|
211
|
+
alignItems: "center",
|
|
212
|
+
justifyContent: "center",
|
|
213
|
+
padding: 0,
|
|
214
|
+
height: token.calc(token.controlHeightLG).mul(1.5).equal(),
|
|
215
|
+
lineHeight: token.lineHeight,
|
|
216
|
+
marginInline: token.marginXS,
|
|
217
|
+
width: token.calc("100%").sub(token.calc(token.margin).equal()).equal({ unit: false }),
|
|
218
|
+
[`${token.iconCls}`]: { fontSize: token.fontSizeXL }
|
|
219
|
+
},
|
|
220
|
+
"&-title-content": {
|
|
221
|
+
marginInlineStart: 0,
|
|
222
|
+
paddingBlockStart: token.paddingXS,
|
|
223
|
+
fontSize: token.fontSizeSM
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
[`${token.componentCls}-left-menu`]: {
|
|
228
|
+
flex: 1,
|
|
229
|
+
display: "flex",
|
|
230
|
+
boxShadow: "2px 0 8px rgba(29, 35, 41, .05)",
|
|
231
|
+
"&-realDark": { boxShadow: "2px 0 8px rgba(13,13,13, 0.65)" },
|
|
232
|
+
[`${token.componentCls}-logo-title`]: {
|
|
233
|
+
position: "relative",
|
|
234
|
+
display: "flex",
|
|
235
|
+
alignItems: "center",
|
|
236
|
+
justifyContent: "space-between",
|
|
237
|
+
paddingInline: token.padding,
|
|
238
|
+
paddingBlock: token.padding,
|
|
239
|
+
color: token.proLayoutSiderColorTextMenuTitle,
|
|
240
|
+
cursor: "pointer",
|
|
241
|
+
"> a": {
|
|
242
|
+
display: "flex",
|
|
243
|
+
alignItems: "center",
|
|
244
|
+
justifyContent: "center",
|
|
245
|
+
minHeight: 32,
|
|
246
|
+
fontSize: 32,
|
|
247
|
+
"> h1": {
|
|
248
|
+
display: "inline-block",
|
|
249
|
+
height: 32,
|
|
250
|
+
marginBlock: 0,
|
|
251
|
+
color: token.proLayoutSiderColorTextMenuTitle,
|
|
252
|
+
animationName: proLayoutTitleHide,
|
|
253
|
+
animationDuration: ".4s",
|
|
254
|
+
animationTimingFunction: "ease",
|
|
255
|
+
fontWeight: 600,
|
|
256
|
+
fontSize: 18,
|
|
257
|
+
lineHeight: "32px",
|
|
258
|
+
verticalAlign: "middle"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
[`${token.componentCls}-menu`]: { paddingInline: token.paddingXXS }
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"&&-mix": {
|
|
266
|
+
[`&${token.componentCls}-mix`]: { zIndex: 9 },
|
|
267
|
+
[`&${token.componentCls}-realDark`]: { boxShadow: " 0 2px 8px #0d0d0da6" },
|
|
268
|
+
[`& ${token.antCls}-layout-sider-children`]: {
|
|
269
|
+
"& ::-webkit-scrollbar-thumb": {
|
|
270
|
+
backgroundColor: "rgba(0,0,0,.12)",
|
|
271
|
+
borderRadius: 3,
|
|
272
|
+
boxShadow: "inset 0 0 5px rgba(0,21,41,.05)"
|
|
273
|
+
},
|
|
274
|
+
"& ::-webkit-scrollbar-track": {
|
|
275
|
+
backgroundColor: "rgba(0,0,0,.06)",
|
|
276
|
+
borderRadius: 3,
|
|
277
|
+
boxShadow: "inset 0 0 5px rgba(0,21,41,.05)"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
[`${token.componentCls}${token.componentCls}-fixed`]: {
|
|
283
|
+
position: "fixed",
|
|
284
|
+
insetBlockStart: 0,
|
|
285
|
+
insetInlineStart: 0,
|
|
286
|
+
zIndex: 99,
|
|
287
|
+
height: "100%",
|
|
288
|
+
"&-mix": { height: token.calc("100%").sub(token.proLayoutHeaderHeightLayoutHeader || 56).equal() }
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
function useStyle(prefixCls, { proLayoutCollapsedWidth, proLayoutFirstMenuWidth }) {
|
|
293
|
+
return useStyle$1("ProLayoutSiderMenu", (token) => {
|
|
294
|
+
return [genSiderMenuStyle(mergeToken(token, {
|
|
295
|
+
proLayoutCollapsedWidth,
|
|
296
|
+
proLayoutFirstMenuWidth
|
|
297
|
+
}))];
|
|
298
|
+
})(prefixCls);
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
export { proLayoutTitleHide, useStyle };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ComputedRef } from "vue";
|
|
3
|
+
import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
4
|
+
import { MenuProps } from "antdv-next";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SiderMenu/style/menu.d.ts
|
|
7
|
+
interface ProLayoutBaseMenuToken extends ProAliasCssVarToken {}
|
|
8
|
+
declare function useStyle(prefixCls: ComputedRef<string>, mode?: MenuProps['mode']): readonly [_$vue.Ref<string, string>, ComputedRef<string | undefined>];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ProLayoutBaseMenuToken, useStyle };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useStyle as useStyle$1 } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/SiderMenu/style/menu.ts
|
|
4
|
+
const genProLayoutBaseMenuStyle = (token, mode) => {
|
|
5
|
+
return {
|
|
6
|
+
[`${token.componentCls}${token.antCls}-menu`]: {
|
|
7
|
+
[`${token.antCls}-menu-item-group`]: { "&-title": {
|
|
8
|
+
paddingInlineStart: 8,
|
|
9
|
+
[`${token.iconCls}`]: { marginInlineEnd: 10 }
|
|
10
|
+
} },
|
|
11
|
+
[`${token.antCls}-menu-title-content`]: { "&>*": { display: "inline-block" } }
|
|
12
|
+
},
|
|
13
|
+
[`${token.proComponentsCls}-drawer-sider`]: { [`${token.componentCls}${token.proComponentsCls}-sider-menu${token.antCls}-menu-light${token.antCls}-menu-root`]: { borderInlineEnd: "none" } },
|
|
14
|
+
...mode?.includes("horizontal") ? { [`${token.componentCls}${token.antCls}-menu-light`]: { borderBlockEnd: "none" } } : { [`${token.componentCls}${token.proComponentsCls}-sider-menu${token.antCls}-menu-light${token.antCls}-menu-root`]: { borderInlineEnd: "none" } }
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
function useStyle(prefixCls, mode) {
|
|
18
|
+
return useStyle$1(`ProLayoutBaseMenu${(mode || "inline").charAt(0).toUpperCase()}${(mode || "inline").slice(1)}`, (token) => {
|
|
19
|
+
return [genProLayoutBaseMenuStyle(mergeToken(token, {}), mode || "inline")];
|
|
20
|
+
})(prefixCls);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useStyle };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ComputedRef } from "vue";
|
|
3
|
+
import { GenerateStyle, ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SiderMenu/style/stylish.d.ts
|
|
6
|
+
interface SiderMenuToken extends ProAliasCssVarToken {
|
|
7
|
+
proLayoutCollapsedWidth: number;
|
|
8
|
+
proLayoutFirstMenuWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
declare function useStylish(prefixCls: ComputedRef<string>, {
|
|
11
|
+
stylish,
|
|
12
|
+
proLayoutCollapsedWidth,
|
|
13
|
+
proLayoutFirstMenuWidth
|
|
14
|
+
}: {
|
|
15
|
+
stylish?: GenerateStyle<SiderMenuToken>;
|
|
16
|
+
proLayoutCollapsedWidth: number;
|
|
17
|
+
proLayoutFirstMenuWidth?: number;
|
|
18
|
+
}): readonly [_$vue.Ref<string, string>, ComputedRef<string | undefined>];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { SiderMenuToken, useStylish };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/SiderMenu/style/stylish.ts
|
|
4
|
+
function useStylish(prefixCls, { stylish, proLayoutCollapsedWidth, proLayoutFirstMenuWidth }) {
|
|
5
|
+
return useStyle("ProLayoutSiderMenuStylish", (token) => {
|
|
6
|
+
const siderMenuToken = mergeToken(token, {
|
|
7
|
+
proLayoutCollapsedWidth,
|
|
8
|
+
proLayoutFirstMenuWidth
|
|
9
|
+
});
|
|
10
|
+
if (!stylish) return [];
|
|
11
|
+
return [{ [`${token.proComponentsCls}-basicLayout`]: { [`${siderMenuToken.componentCls}`]: stylish?.(siderMenuToken) } }];
|
|
12
|
+
})(prefixCls);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useStylish };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { PureSettings } from "../../defaultSettings.js";
|
|
2
|
+
import { AppItemProps, AppListProps } from "../AppsLogoComponents/typing.js";
|
|
3
|
+
import { MenuDataItem, MessageDescriptor, RouterTypes } from "../../typing.js";
|
|
4
|
+
import { AvatarPropsType } from "../GlobalHeader/ActionsContent.js";
|
|
5
|
+
import { PrivateSiderMenuProps, SiderMenuProps } from "../SiderMenu/SiderMenu.js";
|
|
6
|
+
import { GlobalHeaderProps } from "../GlobalHeader/index.js";
|
|
7
|
+
import { ActionsRender, AppListRender, CollapsedButtonRender, HeaderContentRender, HeaderRender, HeaderTitleRender, MenuContentRender, MenuExtraRender, MenuFooterRender, MenuHeaderRender, MenuItemRender, MenuRender, SlotsRenderType, SubMenuItemRender } from "../../RenderTypings.js";
|
|
8
|
+
import * as _$vue from "vue";
|
|
9
|
+
import * as _$_antdv_vue_pro_provider0 from "@antdv-vue/pro-provider";
|
|
10
|
+
import * as _$_antdv_vue_pro_utils0 from "@antdv-vue/pro-utils";
|
|
11
|
+
import * as _$antdv_next0 from "antdv-next";
|
|
12
|
+
import * as _$antdv_next_dist__util_type0 from "antdv-next/dist/_util/type";
|
|
13
|
+
import { CustomSlotsType, VueNode as VueNode$2 } from "@v-c/util/dist/type";
|
|
14
|
+
import * as _$antdv_next_dist_menu_index0 from "antdv-next/dist/menu/index";
|
|
15
|
+
import * as _$antdv_next_dist__util_responsiveObserver0 from "antdv-next/dist/_util/responsiveObserver";
|
|
16
|
+
import * as _$antdv_next_dist_layout_Sider0 from "antdv-next/dist/layout/Sider";
|
|
17
|
+
|
|
18
|
+
//#region src/components/TopNavHeader/index.d.ts
|
|
19
|
+
type TopNavHeaderProps = PrivateSiderMenuProps & SiderMenuProps & GlobalHeaderProps;
|
|
20
|
+
declare const TopNavHeader: _$vue.DefineSetupFnComponent<TopNavHeaderProps, {}, CustomSlotsType<Pick<SlotsRenderType, "menuItemRender" | "subMenuItemRender" | "appListRender" | "menuHeaderRender" | "actionsRender" | "headerRender" | "menuRender" | "headerTitleRender" | "headerContentRender"> & {
|
|
21
|
+
default: () => VueNode$2[];
|
|
22
|
+
}>, PrivateSiderMenuProps & {
|
|
23
|
+
defaultCollapsed?: boolean;
|
|
24
|
+
collapsed?: boolean;
|
|
25
|
+
isMobile?: boolean;
|
|
26
|
+
onOpenChange?: (openKeys?: _$_antdv_vue_pro_utils0.Key[] | false) => void;
|
|
27
|
+
menuData?: MenuDataItem[];
|
|
28
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
29
|
+
openKeys?: string[] | false;
|
|
30
|
+
mode?: _$antdv_next0.MenuProps["mode"];
|
|
31
|
+
menuProps?: _$antdv_next0.MenuProps;
|
|
32
|
+
menuItemRender?: MenuItemRender | false;
|
|
33
|
+
subMenuItemRender?: SubMenuItemRender | false;
|
|
34
|
+
iconPrefixes?: string;
|
|
35
|
+
formatMessage?: (message: MessageDescriptor) => string | undefined;
|
|
36
|
+
postMenuData?: (menusData?: MenuDataItem[]) => MenuDataItem[];
|
|
37
|
+
onSelect?: (selectedKeys: _$_antdv_vue_pro_utils0.Key[]) => void;
|
|
38
|
+
} & Partial<RouterTypes> & Omit<_$antdv_next_dist_menu_index0.InternalMenuProps, "openKeys" | "onOpenChange" | "title"> & Partial<PureSettings> & {
|
|
39
|
+
collapsedWidth?: number;
|
|
40
|
+
firstMenuWidth?: number;
|
|
41
|
+
theme?: _$antdv_next_dist_layout_Sider0.SiderProps["theme"];
|
|
42
|
+
logo?: _$antdv_next_dist__util_type0.VueNode;
|
|
43
|
+
appList?: AppListProps;
|
|
44
|
+
appListRender?: AppListRender | false;
|
|
45
|
+
itemClick?: (item: AppItemProps, popoverRef: _$vue.ShallowRef<HTMLSpanElement | null>) => void;
|
|
46
|
+
links?: ({
|
|
47
|
+
icon?: _$vue.VNode;
|
|
48
|
+
title?: string;
|
|
49
|
+
label?: _$vue.VNode;
|
|
50
|
+
}[] | VueNode$2[]) | false;
|
|
51
|
+
siderWidth?: number;
|
|
52
|
+
menuHeaderRender?: MenuHeaderRender | false;
|
|
53
|
+
menuContentRender?: MenuContentRender | false;
|
|
54
|
+
menuFooterRender?: MenuFooterRender | false;
|
|
55
|
+
collapsedButtonRender?: CollapsedButtonRender | false;
|
|
56
|
+
siderProps?: _$antdv_next_dist_layout_Sider0.SiderProps;
|
|
57
|
+
breakpoint?: _$antdv_next_dist__util_responsiveObserver0.Breakpoint | false;
|
|
58
|
+
avatarProps?: AvatarPropsType;
|
|
59
|
+
actionsRender?: ActionsRender | false;
|
|
60
|
+
menuExtraRender?: MenuExtraRender | false;
|
|
61
|
+
onMenuHeaderClick?: (e: _$vue.Events["onClick"]) => void;
|
|
62
|
+
logoStyle?: _$vue.CSSProperties;
|
|
63
|
+
headerRender?: HeaderRender | false;
|
|
64
|
+
} & {
|
|
65
|
+
collapsed?: boolean;
|
|
66
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
67
|
+
isMobile?: boolean;
|
|
68
|
+
logo?: _$antdv_next_dist__util_type0.VueNode;
|
|
69
|
+
menuRender?: MenuRender | false;
|
|
70
|
+
menuProps?: _$antdv_next0.MenuProps;
|
|
71
|
+
prefixCls?: string;
|
|
72
|
+
appList?: AppListProps;
|
|
73
|
+
itemClick?: (item: AppItemProps, popoverRef: _$vue.ShallowRef<HTMLSpanElement | null>) => void;
|
|
74
|
+
menuData?: MenuDataItem[];
|
|
75
|
+
onMenuHeaderClick?: (e: _$vue.Events["onClick"]) => void;
|
|
76
|
+
menuHeaderRender?: MenuHeaderRender | false;
|
|
77
|
+
headerTitleRender?: HeaderTitleRender | false;
|
|
78
|
+
token?: _$_antdv_vue_pro_provider0.ProTokenType["layout"];
|
|
79
|
+
headerContentRender?: HeaderContentRender | false;
|
|
80
|
+
actionsRender?: ActionsRender | false;
|
|
81
|
+
avatarProps?: AvatarPropsType;
|
|
82
|
+
formatMessage?: (message: MessageDescriptor) => string | undefined;
|
|
83
|
+
appListRender?: AppListRender | false;
|
|
84
|
+
} & {}, _$vue.PublicProps>;
|
|
85
|
+
//#endregion
|
|
86
|
+
export { TopNavHeaderProps, TopNavHeader as default };
|