@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,85 @@
|
|
|
1
|
+
//#region src/components/AppsLogoComponents/style/simple.ts
|
|
2
|
+
const genAppsLogoComponentsSimpleListStyle = (token) => {
|
|
3
|
+
return { "&-content": {
|
|
4
|
+
maxHeight: token.calc("100vh").sub(48).equal(),
|
|
5
|
+
overflow: "auto",
|
|
6
|
+
"&-list": {
|
|
7
|
+
boxSizing: "border-box",
|
|
8
|
+
maxWidth: 376,
|
|
9
|
+
marginBlock: 0,
|
|
10
|
+
marginInline: 0,
|
|
11
|
+
paddingBlock: 0,
|
|
12
|
+
paddingInline: 0,
|
|
13
|
+
listStyle: "none",
|
|
14
|
+
"&-item": {
|
|
15
|
+
position: "relative",
|
|
16
|
+
display: "inline-block",
|
|
17
|
+
width: 104,
|
|
18
|
+
height: 104,
|
|
19
|
+
marginBlock: 8,
|
|
20
|
+
marginInline: 8,
|
|
21
|
+
paddingInline: 24,
|
|
22
|
+
paddingBlock: 24,
|
|
23
|
+
verticalAlign: "top",
|
|
24
|
+
listStyleType: "none",
|
|
25
|
+
transition: "transform 0.2s cubic-bezier(0.333, 0, 0, 1)",
|
|
26
|
+
borderRadius: token.borderRadius,
|
|
27
|
+
"&-group": {
|
|
28
|
+
marginBlockEnd: 16,
|
|
29
|
+
"&-title": {
|
|
30
|
+
marginBlockStart: 16,
|
|
31
|
+
marginInlineEnd: 0,
|
|
32
|
+
marginBlockEnd: 8,
|
|
33
|
+
marginInlineStart: 12,
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
color: "rgba(0, 0, 0, 0.88)",
|
|
36
|
+
fontSize: 16,
|
|
37
|
+
opacity: .85,
|
|
38
|
+
lineHeight: 1.5,
|
|
39
|
+
"&:first-child": { marginBlockStart: 12 }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"&:hover": { backgroundColor: token.colorBgTextHover },
|
|
43
|
+
a: {
|
|
44
|
+
display: "flex",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
height: "100%",
|
|
48
|
+
fontSize: 12,
|
|
49
|
+
textDecoration: "none",
|
|
50
|
+
"& > #avatarLogo": {
|
|
51
|
+
width: 40,
|
|
52
|
+
height: 40,
|
|
53
|
+
margin: "0 auto",
|
|
54
|
+
color: token.colorPrimary,
|
|
55
|
+
fontSize: 22,
|
|
56
|
+
lineHeight: "40px",
|
|
57
|
+
textAlign: "center",
|
|
58
|
+
backgroundImage: "linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",
|
|
59
|
+
borderRadius: token.borderRadius
|
|
60
|
+
},
|
|
61
|
+
"& > img": {
|
|
62
|
+
width: 40,
|
|
63
|
+
height: 40
|
|
64
|
+
},
|
|
65
|
+
"& > div": {
|
|
66
|
+
marginBlockStart: 5,
|
|
67
|
+
marginInlineStart: 0,
|
|
68
|
+
color: token.colorTextHeading,
|
|
69
|
+
fontSize: 14,
|
|
70
|
+
lineHeight: "22px",
|
|
71
|
+
whiteSpace: "nowrap",
|
|
72
|
+
textOverflow: "ellipsis"
|
|
73
|
+
},
|
|
74
|
+
"& > div > span": {
|
|
75
|
+
color: token.colorTextSecondary,
|
|
76
|
+
fontSize: 12,
|
|
77
|
+
lineHeight: "20px"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} };
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
export { genAppsLogoComponentsSimpleListStyle };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VueNode } from "antdv-next/dist/_util/type";
|
|
2
|
+
|
|
3
|
+
//#region src/components/AppsLogoComponents/typing.d.ts
|
|
4
|
+
interface AppItemProps {
|
|
5
|
+
title: VueNode;
|
|
6
|
+
desc?: VueNode;
|
|
7
|
+
icon?: VueNode;
|
|
8
|
+
url?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
children?: Omit<AppItemProps, 'children'>[];
|
|
11
|
+
}
|
|
12
|
+
type AppListProps = AppItemProps[];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AppItemProps, AppListProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { MenuFoldOutlined, MenuUnfoldOutlined } from "@antdv-next/icons";
|
|
3
|
+
//#region src/components/CollapsedIcon/index.tsx
|
|
4
|
+
const CollapsedIcon = ({ collapsed, tabIndex }) => collapsed ? createVNode(MenuUnfoldOutlined, { "tabIndex": tabIndex }, null) : createVNode(MenuFoldOutlined, { "tabIndex": tabIndex }, null);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { CollapsedIcon as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties, FunctionalComponent, VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Footer/index.d.ts
|
|
4
|
+
interface FooterProps {
|
|
5
|
+
links?: {
|
|
6
|
+
key?: string;
|
|
7
|
+
title: VNode;
|
|
8
|
+
href: string;
|
|
9
|
+
blankTarget?: boolean;
|
|
10
|
+
}[] | false;
|
|
11
|
+
copyright?: string | false;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
class?: string;
|
|
14
|
+
prefixCls?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const FooterView: FunctionalComponent<FooterProps>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { FooterProps, FooterView as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import GlobalFooter from "../GlobalFooter/index.js";
|
|
2
|
+
import { Fragment, createVNode } from "vue";
|
|
3
|
+
import { LayoutFooter } from "antdv-next";
|
|
4
|
+
import { CopyrightOutlined } from "@antdv-next/icons";
|
|
5
|
+
//#region src/components/Footer/index.tsx
|
|
6
|
+
const FooterView = ({ class: className, style, links, prefixCls, copyright }) => createVNode(LayoutFooter, {
|
|
7
|
+
"class": className,
|
|
8
|
+
"style": {
|
|
9
|
+
padding: 0,
|
|
10
|
+
zIndex: 7,
|
|
11
|
+
...style
|
|
12
|
+
}
|
|
13
|
+
}, { default: () => [createVNode(GlobalFooter, {
|
|
14
|
+
"links": links,
|
|
15
|
+
"prefixCls": prefixCls,
|
|
16
|
+
"copyright": copyright !== false && createVNode(Fragment, null, [
|
|
17
|
+
createVNode(CopyrightOutlined, null, null),
|
|
18
|
+
" ",
|
|
19
|
+
copyright
|
|
20
|
+
])
|
|
21
|
+
}, null)] });
|
|
22
|
+
FooterView.displayName = "Footer";
|
|
23
|
+
FooterView.inheritAttrs = false;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FooterView as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { stylishToken } from "./style/stylish.js";
|
|
2
|
+
import { FooterToolbarContentRender, SlotsRenderType } from "../../RenderTypings.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import { VNode } from "vue";
|
|
5
|
+
import { GenerateStyle } from "@antdv-vue/pro-provider";
|
|
6
|
+
import { VueNode } from "@antdv-vue/pro-utils";
|
|
7
|
+
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
8
|
+
|
|
9
|
+
//#region src/components/FooterToolbar/index.d.ts
|
|
10
|
+
interface FooterToolbarProps {
|
|
11
|
+
extra?: VNode;
|
|
12
|
+
footerToolbarContentRender?: FooterToolbarContentRender;
|
|
13
|
+
prefixCls?: string;
|
|
14
|
+
stylish?: GenerateStyle<stylishToken>;
|
|
15
|
+
portalDom?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const FooterToolbar: _$vue.DefineSetupFnComponent<FooterToolbarProps, {}, CustomSlotsType<Pick<SlotsRenderType, "footerToolbarContentRender"> & {
|
|
18
|
+
default: () => VueNode[];
|
|
19
|
+
}>, FooterToolbarProps & {}, _$vue.PublicProps>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FooterToolbarProps, FooterToolbar as default };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { useRouteContext } from "../../context/RouteContext.js";
|
|
2
|
+
import style_default from "./style/index.js";
|
|
3
|
+
import { useStylish } from "./style/stylish.js";
|
|
4
|
+
import { Fragment, Teleport, computed, createVNode, defineComponent, isVNode } from "vue";
|
|
5
|
+
import { getSlot, isBrowser, useEffect } from "@antdv-vue/pro-utils";
|
|
6
|
+
import { classNames } from "@v-c/util";
|
|
7
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
8
|
+
//#region src/components/FooterToolbar/index.tsx
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
const FooterToolbar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
13
|
+
const config = useConfig();
|
|
14
|
+
const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
|
|
15
|
+
const baseClassName = computed(() => `${prefixCls.value}-footer-bar`);
|
|
16
|
+
const routeContext = useRouteContext();
|
|
17
|
+
const [hashId, cssVarCls] = style_default(baseClassName);
|
|
18
|
+
const width = computed(() => {
|
|
19
|
+
const { hasSiderMenu, isMobile, siderWidth } = routeContext.value;
|
|
20
|
+
if (!hasSiderMenu) return;
|
|
21
|
+
if (!siderWidth) return "100%";
|
|
22
|
+
return isMobile ? "100%" : `calc(100% - ${siderWidth}px)`;
|
|
23
|
+
});
|
|
24
|
+
const containerDom = computed(() => {
|
|
25
|
+
if (typeof window === "undefined" || typeof document === "undefined") return null;
|
|
26
|
+
return config.value.getTargetContainer?.() || document.body;
|
|
27
|
+
});
|
|
28
|
+
useStylish(computed(() => `${baseClassName.value}.${baseClassName.value}-stylish`), { stylish: computed(() => props.stylish) });
|
|
29
|
+
/** 告诉 props 是否存在 footerBar */
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (!routeContext.value || !routeContext.value?.setHasFooterToolbar) return () => {};
|
|
32
|
+
routeContext.value?.setHasFooterToolbar?.(true);
|
|
33
|
+
return () => {
|
|
34
|
+
routeContext.value?.setHasFooterToolbar?.(false);
|
|
35
|
+
};
|
|
36
|
+
}, []);
|
|
37
|
+
return () => {
|
|
38
|
+
const { extra, portalDom = true } = props;
|
|
39
|
+
const footerToolbarContentRender = getSlot(slots, props, "footerToolbarContentRender");
|
|
40
|
+
const dom = createVNode(Fragment, null, [createVNode("div", { "class": classNames(`${baseClassName.value}-left`, hashId?.value, cssVarCls?.value) }, [extra]), createVNode("div", { "class": classNames(`${baseClassName.value}-right`, hashId?.value, cssVarCls?.value) }, [slots.default?.()])]);
|
|
41
|
+
const renderDom = createVNode("div", {
|
|
42
|
+
"class": classNames(baseClassName.value, attrs.class, hashId?.value, cssVarCls?.value, { [`${baseClassName.value}-stylish`]: !!props.stylish }),
|
|
43
|
+
"style": {
|
|
44
|
+
width: width.value,
|
|
45
|
+
...attrs.style || {}
|
|
46
|
+
}
|
|
47
|
+
}, [footerToolbarContentRender ? footerToolbarContentRender({
|
|
48
|
+
props: {
|
|
49
|
+
...props,
|
|
50
|
+
...routeContext.value,
|
|
51
|
+
leftWidth: width.value
|
|
52
|
+
},
|
|
53
|
+
dom
|
|
54
|
+
}) : dom]);
|
|
55
|
+
return createVNode(Fragment, { "key": baseClassName.value }, [!isBrowser() || !portalDom || !containerDom.value ? createVNode(Fragment, null, [renderDom]) : createVNode(Teleport, { "to": containerDom.value }, _isSlot(renderDom) ? renderDom : { default: () => [renderDom] })]);
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
props: {
|
|
59
|
+
extra: {
|
|
60
|
+
type: Object,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
footerToolbarContentRender: {
|
|
64
|
+
type: Function,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
prefixCls: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
stylish: {
|
|
72
|
+
type: Function,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
portalDom: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
required: false,
|
|
78
|
+
default: void 0
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
name: "FooterToolbar",
|
|
82
|
+
inheritAttrs: false
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
export { FooterToolbar as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/FooterToolbar/style/index.d.ts
|
|
5
|
+
interface FooterToolBarToken extends ProAliasCssVarToken {}
|
|
6
|
+
declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { FooterToolBarToken, _default as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken, unit } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/FooterToolbar/style/index.ts
|
|
4
|
+
const genFooterToolBarStyle = (token) => {
|
|
5
|
+
return { [token.componentCls]: {
|
|
6
|
+
position: "fixed",
|
|
7
|
+
insetInlineEnd: 0,
|
|
8
|
+
bottom: 0,
|
|
9
|
+
zIndex: 8,
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
width: "100%",
|
|
13
|
+
paddingInline: 24,
|
|
14
|
+
paddingBlock: 0,
|
|
15
|
+
boxSizing: "border-box",
|
|
16
|
+
lineHeight: "44px",
|
|
17
|
+
backgroundColor: token.colorBgElevated,
|
|
18
|
+
borderBlockStart: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
|
|
19
|
+
boxShadow: token.boxShadowSecondary,
|
|
20
|
+
transition: `all ${token.motionDurationMid}`,
|
|
21
|
+
"&-left": { flex: 1 },
|
|
22
|
+
"&-right": { "> *": {
|
|
23
|
+
marginInlineEnd: 8,
|
|
24
|
+
"&:last-child": {
|
|
25
|
+
marginBlock: 0,
|
|
26
|
+
marginInline: 0
|
|
27
|
+
}
|
|
28
|
+
} }
|
|
29
|
+
} };
|
|
30
|
+
};
|
|
31
|
+
var style_default = useStyle("ProLayoutFooterToolbar", (token) => {
|
|
32
|
+
return [genFooterToolBarStyle(mergeToken(token, {}))];
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { style_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
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/FooterToolbar/style/stylish.d.ts
|
|
6
|
+
interface stylishToken extends ProAliasCssVarToken {}
|
|
7
|
+
declare function useStylish(prefixCls: ComputedRef<string>, {
|
|
8
|
+
stylish
|
|
9
|
+
}: {
|
|
10
|
+
stylish?: ComputedRef<GenerateStyle<stylishToken>>;
|
|
11
|
+
}): readonly [_$vue.Ref<string, string>, ComputedRef<string | undefined>];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { stylishToken, useStylish };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/FooterToolbar/style/stylish.ts
|
|
4
|
+
function useStylish(prefixCls, { stylish }) {
|
|
5
|
+
return useStyle("ProLayoutFooterToolbarStylish", (token) => {
|
|
6
|
+
const stylishToken = mergeToken(token, {});
|
|
7
|
+
if (!stylish?.value) return [];
|
|
8
|
+
return [{ [`${stylishToken.componentCls}`]: stylish.value?.(stylishToken) }];
|
|
9
|
+
})(prefixCls);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { useStylish };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/GlobalFooter/index.d.ts
|
|
5
|
+
interface GlobalFooterProps {
|
|
6
|
+
links?: boolean | {
|
|
7
|
+
key?: string;
|
|
8
|
+
title: VNode;
|
|
9
|
+
href: string;
|
|
10
|
+
blankTarget?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
copyright?: VNode | boolean;
|
|
13
|
+
prefixCls?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const GlobalFooter: _$vue.DefineSetupFnComponent<GlobalFooterProps, {}, {}, GlobalFooterProps & {}, _$vue.PublicProps>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { GlobalFooterProps, GlobalFooter as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import style_default from "./style/index.js";
|
|
2
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
3
|
+
import { classNames } from "@v-c/util";
|
|
4
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
5
|
+
//#region src/components/GlobalFooter/index.tsx
|
|
6
|
+
const GlobalFooter = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
7
|
+
const config = useConfig();
|
|
8
|
+
const baseClassName = computed(() => config.value.getPrefixCls(props.prefixCls || "pro-global-footer"));
|
|
9
|
+
const [hashId, cssVarCls] = style_default(baseClassName);
|
|
10
|
+
return () => {
|
|
11
|
+
const { links, copyright } = props;
|
|
12
|
+
if ((links == null || links === false || Array.isArray(links) && links.length === 0) && (copyright == null || copyright === false)) return null;
|
|
13
|
+
return createVNode("div", {
|
|
14
|
+
"class": classNames(baseClassName.value, hashId?.value, cssVarCls?.value, attrs.class),
|
|
15
|
+
"style": attrs.style
|
|
16
|
+
}, [links && Array.isArray(links) && links.length > 0 && createVNode("div", { "class": classNames(`${baseClassName.value}-list`, hashId?.value, cssVarCls?.value) }, [links?.map((link) => createVNode("a", {
|
|
17
|
+
"class": classNames(`${baseClassName.value}-list-link`, hashId?.value, cssVarCls?.value),
|
|
18
|
+
"key": link.key,
|
|
19
|
+
"title": link.key,
|
|
20
|
+
"target": link.blankTarget ? "_blank" : "_self",
|
|
21
|
+
"href": link.href,
|
|
22
|
+
"rel": "noreferrer"
|
|
23
|
+
}, [link.title]))]), copyright && createVNode("div", { "class": classNames(`${baseClassName.value}-copyright`, hashId?.value, cssVarCls?.value) }, [copyright])]);
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
props: {
|
|
27
|
+
links: {
|
|
28
|
+
type: [Boolean, Array],
|
|
29
|
+
required: false,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
copyright: {
|
|
33
|
+
type: [Object, Boolean],
|
|
34
|
+
required: false,
|
|
35
|
+
default: void 0
|
|
36
|
+
},
|
|
37
|
+
prefixCls: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
name: "GlobalFooter",
|
|
43
|
+
inheritAttrs: false
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { GlobalFooter as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/GlobalFooter/style/index.d.ts
|
|
5
|
+
interface GlobalFooterToken extends ProAliasCssVarToken {}
|
|
6
|
+
declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { GlobalFooterToken, _default as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/GlobalFooter/style/index.ts
|
|
4
|
+
const genGlobalFooterStyle = (token) => {
|
|
5
|
+
return { [token.componentCls]: {
|
|
6
|
+
marginBlock: 0,
|
|
7
|
+
marginBlockStart: 48,
|
|
8
|
+
marginBlockEnd: 24,
|
|
9
|
+
marginInline: 0,
|
|
10
|
+
paddingBlock: 0,
|
|
11
|
+
paddingInline: 16,
|
|
12
|
+
textAlign: "center",
|
|
13
|
+
"&-list": {
|
|
14
|
+
marginBlockEnd: 8,
|
|
15
|
+
color: token.colorTextSecondary,
|
|
16
|
+
"&-link": {
|
|
17
|
+
color: token.colorTextSecondary,
|
|
18
|
+
textDecoration: token.linkDecoration
|
|
19
|
+
},
|
|
20
|
+
"*:not(:last-child)": { marginInlineEnd: 8 },
|
|
21
|
+
"&:hover": { color: token.colorPrimary }
|
|
22
|
+
},
|
|
23
|
+
"&-copyright": {
|
|
24
|
+
fontSize: 14,
|
|
25
|
+
color: token.colorText
|
|
26
|
+
}
|
|
27
|
+
} };
|
|
28
|
+
};
|
|
29
|
+
var style_default = useStyle("ProLayoutGlobalFooter", (token) => {
|
|
30
|
+
return [genGlobalFooterStyle(mergeToken(token, {}))];
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { style_default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SiderMenuProps } from "../SiderMenu/SiderMenu.js";
|
|
2
|
+
import { ActionsRender, SlotsRenderType } from "../../RenderTypings.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import { AvatarProps } from "antdv-next";
|
|
5
|
+
import { CustomSlotsType, VueNode } from "@v-c/util/dist/type";
|
|
6
|
+
|
|
7
|
+
//#region src/components/GlobalHeader/ActionsContent.d.ts
|
|
8
|
+
type AvatarPropsType = (AvatarProps & {
|
|
9
|
+
title?: VueNode;
|
|
10
|
+
render?: (avatarProps: AvatarProps, defaultDom: VueNode, props: SiderMenuProps) => VueNode;
|
|
11
|
+
}) | false;
|
|
12
|
+
declare const ActionsContent: _$vue.DefineSetupFnComponent<{
|
|
13
|
+
prefixCls?: string; /** 头像的设置 */
|
|
14
|
+
avatarProps?: AvatarPropsType;
|
|
15
|
+
/**
|
|
16
|
+
* @name actionsRender Layout的操作功能列表,不同的 layout 会放到不同的位置
|
|
17
|
+
*/
|
|
18
|
+
actionsRender?: ActionsRender | false;
|
|
19
|
+
}, {}, CustomSlotsType<Pick<SlotsRenderType, "actionsRender"> & {
|
|
20
|
+
default: () => VueNode;
|
|
21
|
+
}>, {
|
|
22
|
+
prefixCls?: string; /** 头像的设置 */
|
|
23
|
+
avatarProps?: AvatarPropsType;
|
|
24
|
+
/**
|
|
25
|
+
* @name actionsRender Layout的操作功能列表,不同的 layout 会放到不同的位置
|
|
26
|
+
*/
|
|
27
|
+
actionsRender?: ActionsRender | false;
|
|
28
|
+
} & {}, _$vue.PublicProps>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AvatarPropsType, ActionsContent as default };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import rightContentStyle_default from "./style/rightContentStyle.js";
|
|
2
|
+
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
3
|
+
import { getSlot, useDebounceFn, useState } from "@antdv-vue/pro-utils";
|
|
4
|
+
import { classNames } from "@v-c/util";
|
|
5
|
+
import { Avatar } from "antdv-next";
|
|
6
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
7
|
+
import ResizeObserver from "@v-c/resize-observer";
|
|
8
|
+
//#region src/components/GlobalHeader/ActionsContent.tsx
|
|
9
|
+
const ActionsContent = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
10
|
+
const config = useConfig();
|
|
11
|
+
const prefixCls = computed(() => props.prefixCls || `${config.value.getPrefixCls()}-pro-global-header`);
|
|
12
|
+
const [hashId, cssVarCls] = rightContentStyle_default(prefixCls);
|
|
13
|
+
const [rightSize, setRightSize] = useState("auto");
|
|
14
|
+
const avatarDom = computed(() => {
|
|
15
|
+
const { avatarProps } = props;
|
|
16
|
+
if (!avatarProps) return null;
|
|
17
|
+
const { title, render, ...rest } = avatarProps;
|
|
18
|
+
const domList = createVNode(Fragment, null, [rest?.src || rest?.srcSet || rest.icon ? createVNode(Avatar, mergeProps(rest, {
|
|
19
|
+
"size": 28,
|
|
20
|
+
"key": "avatar"
|
|
21
|
+
}), null) : null, title && createVNode("span", {
|
|
22
|
+
"key": "name",
|
|
23
|
+
"style": { marginInlineStart: "8px" }
|
|
24
|
+
}, [title])]);
|
|
25
|
+
if (render) return render(avatarProps, createVNode("span", null, [domList]), props);
|
|
26
|
+
return createVNode("span", null, [domList]);
|
|
27
|
+
});
|
|
28
|
+
/** 减少一下渲染的次数 */
|
|
29
|
+
const setRightSizeDebounceFn = useDebounceFn(async (width) => setRightSize(width), 160);
|
|
30
|
+
return () => {
|
|
31
|
+
const actionsRender = getSlot(slots, props, "actionsRender");
|
|
32
|
+
const contentRender = actionsRender || avatarDom.value ? (restParams) => {
|
|
33
|
+
const doms = actionsRender && actionsRender({ ...restParams });
|
|
34
|
+
if (!doms && !avatarDom.value) return null;
|
|
35
|
+
if (!Array.isArray(doms)) {
|
|
36
|
+
let hideHover = false;
|
|
37
|
+
if (isVNode(doms)) hideHover = !!doms?.props?.["aria-hidden"];
|
|
38
|
+
return createVNode("div", { "class": classNames(`${prefixCls.value}-actions`, hashId?.value, cssVarCls?.value) }, [createVNode("div", { "class": classNames(`${prefixCls.value}-actions-item`, hashId?.value, cssVarCls?.value, { [`${prefixCls.value}-actions-hover`]: !hideHover }) }, [doms]), avatarDom.value && createVNode("div", { "class": classNames(`${prefixCls.value}-actions-avatar`, hashId?.value, cssVarCls?.value) }, [avatarDom.value])]);
|
|
39
|
+
}
|
|
40
|
+
return createVNode("div", { "class": classNames(`${prefixCls.value}-actions`, hashId?.value, cssVarCls?.value) }, [doms.filter(Boolean).map((dom, index) => {
|
|
41
|
+
let hideHover = false;
|
|
42
|
+
if (isVNode(dom)) hideHover = !!dom?.props?.["aria-hidden"];
|
|
43
|
+
return createVNode("div", {
|
|
44
|
+
"key": index,
|
|
45
|
+
"class": classNames(`${prefixCls.value}-actions-item`, hashId?.value, cssVarCls?.value, { [`${prefixCls.value}-actions-hover`]: !hideHover })
|
|
46
|
+
}, [dom]);
|
|
47
|
+
}), avatarDom.value && createVNode("div", { "class": classNames(`${prefixCls.value}-actions-avatar`, hashId?.value, cssVarCls?.value) }, [avatarDom.value])]);
|
|
48
|
+
} : void 0;
|
|
49
|
+
return createVNode("div", {
|
|
50
|
+
"class": classNames(`${prefixCls.value}-right-content`, hashId?.value, cssVarCls?.value),
|
|
51
|
+
"style": {
|
|
52
|
+
minWidth: rightSize.value,
|
|
53
|
+
height: "100%"
|
|
54
|
+
}
|
|
55
|
+
}, [createVNode(ResizeObserver, { "onResize": async ({ width }) => {
|
|
56
|
+
await setRightSizeDebounceFn.run(width);
|
|
57
|
+
} }, { default: () => [contentRender && createVNode("div", { "style": {
|
|
58
|
+
display: "flex",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
height: "100%",
|
|
61
|
+
justifyContent: "flex-end"
|
|
62
|
+
} }, [contentRender({
|
|
63
|
+
...props,
|
|
64
|
+
rightContentSize: rightSize.value
|
|
65
|
+
})])] })]);
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
props: {
|
|
69
|
+
prefixCls: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false
|
|
72
|
+
},
|
|
73
|
+
avatarProps: {
|
|
74
|
+
type: [Object, Boolean],
|
|
75
|
+
required: false,
|
|
76
|
+
default: void 0
|
|
77
|
+
},
|
|
78
|
+
actionsRender: {
|
|
79
|
+
type: [Function, Boolean],
|
|
80
|
+
required: false,
|
|
81
|
+
default: void 0
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
name: "ActionsContent",
|
|
85
|
+
inheritAttrs: false
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ActionsContent as default };
|