@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,73 @@
|
|
|
1
|
+
import { createVNode, defineComponent } from "vue";
|
|
2
|
+
import { ErrorBoundary, getSlot } from "@antdv-vue/pro-utils";
|
|
3
|
+
import { classNames } from "@v-c/util";
|
|
4
|
+
import { LayoutContent } from "antdv-next";
|
|
5
|
+
//#region src/WrapContent.tsx
|
|
6
|
+
const WrapContent = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
7
|
+
return () => {
|
|
8
|
+
const { prefixCls, hasHeader, hasPageContainer, hashId, cssVarCls } = props;
|
|
9
|
+
const errorBoundaryRender = getSlot(slots, props, "errorBoundaryRender");
|
|
10
|
+
const contentClassName = classNames(`${prefixCls}-content`, hashId, cssVarCls, {
|
|
11
|
+
[`${prefixCls}-has-header`]: hasHeader,
|
|
12
|
+
[`${prefixCls}-content-has-page-container`]: (hasPageContainer || 0) > 0
|
|
13
|
+
});
|
|
14
|
+
return errorBoundaryRender === false ? createVNode(LayoutContent, {
|
|
15
|
+
"class": contentClassName,
|
|
16
|
+
"style": attrs.style
|
|
17
|
+
}, { default: () => [slots.default?.()] }) : createVNode(ErrorBoundary, {
|
|
18
|
+
"fallback": errorBoundaryRender,
|
|
19
|
+
"onError": (error) => {
|
|
20
|
+
console.log(error);
|
|
21
|
+
}
|
|
22
|
+
}, { default: () => [createVNode(LayoutContent, {
|
|
23
|
+
"class": contentClassName,
|
|
24
|
+
"style": attrs.style
|
|
25
|
+
}, { default: () => [slots.default?.()] })] });
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
props: {
|
|
29
|
+
hasPageContainer: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
33
|
+
isChildrenLayout: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: false,
|
|
36
|
+
default: void 0
|
|
37
|
+
},
|
|
38
|
+
prefixCls: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
location: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
contentHeight: {
|
|
47
|
+
type: [Number, String],
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
errorBoundaryRender: {
|
|
51
|
+
type: [Function, Boolean],
|
|
52
|
+
required: false,
|
|
53
|
+
default: void 0
|
|
54
|
+
},
|
|
55
|
+
hasHeader: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
hashId: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
cssVarCls: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
name: "WrapContent",
|
|
70
|
+
inheritAttrs: false
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { WrapContent as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
//#region src/assert/Logo.tsx
|
|
3
|
+
function Logo() {
|
|
4
|
+
return createVNode("svg", {
|
|
5
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
6
|
+
"xmlnsXlink": "http://www.w3.org/1999/xlink",
|
|
7
|
+
"fill": "none",
|
|
8
|
+
"version": "1.1",
|
|
9
|
+
"width": "1em",
|
|
10
|
+
"height": "1em",
|
|
11
|
+
"viewBox": "0 0 100 100"
|
|
12
|
+
}, [createVNode("defs", null, [createVNode("defs", { "xmlns": "http://www.w3.org/2000/svg" }, [
|
|
13
|
+
createVNode("clipPath", { "id": "master_svg0_15_16" }, [createVNode("rect", {
|
|
14
|
+
"x": "0",
|
|
15
|
+
"y": "0",
|
|
16
|
+
"width": "100",
|
|
17
|
+
"height": "100",
|
|
18
|
+
"rx": "0"
|
|
19
|
+
}, null)]),
|
|
20
|
+
createVNode("linearGradient", {
|
|
21
|
+
"x1": "0.696908175945282",
|
|
22
|
+
"y1": "-0.12974359095096588",
|
|
23
|
+
"x2": "0.4750439931090237",
|
|
24
|
+
"y2": "1.2243471980169296",
|
|
25
|
+
"id": "master_svg1_15_26"
|
|
26
|
+
}, [
|
|
27
|
+
createVNode("stop", {
|
|
28
|
+
"offset": "0%",
|
|
29
|
+
"stop-color": "#FA816E",
|
|
30
|
+
"stop-opacity": "1"
|
|
31
|
+
}, null),
|
|
32
|
+
createVNode("stop", {
|
|
33
|
+
"offset": "41.472604870796204%",
|
|
34
|
+
"stop-color": "#F74A5C",
|
|
35
|
+
"stop-opacity": "1"
|
|
36
|
+
}, null),
|
|
37
|
+
createVNode("stop", {
|
|
38
|
+
"offset": "100%",
|
|
39
|
+
"stop-color": "#F51D2C",
|
|
40
|
+
"stop-opacity": "1"
|
|
41
|
+
}, null)
|
|
42
|
+
]),
|
|
43
|
+
createVNode("linearGradient", {
|
|
44
|
+
"x1": "0.552905797958374",
|
|
45
|
+
"y1": "0.30240023136138916",
|
|
46
|
+
"x2": "-0.011689962096274294",
|
|
47
|
+
"y2": "0.67748094524159",
|
|
48
|
+
"id": "master_svg2_15_23"
|
|
49
|
+
}, [
|
|
50
|
+
createVNode("stop", {
|
|
51
|
+
"offset": "0%",
|
|
52
|
+
"stop-color": "#29CDFF",
|
|
53
|
+
"stop-opacity": "1"
|
|
54
|
+
}, null),
|
|
55
|
+
createVNode("stop", {
|
|
56
|
+
"offset": "36.24463677406311%",
|
|
57
|
+
"stop-color": "#148EFF",
|
|
58
|
+
"stop-opacity": "1"
|
|
59
|
+
}, null),
|
|
60
|
+
createVNode("stop", {
|
|
61
|
+
"offset": "100%",
|
|
62
|
+
"stop-color": "#0A60FF",
|
|
63
|
+
"stop-opacity": "1"
|
|
64
|
+
}, null)
|
|
65
|
+
]),
|
|
66
|
+
createVNode("linearGradient", {
|
|
67
|
+
"x1": "0.5",
|
|
68
|
+
"y1": "0",
|
|
69
|
+
"x2": "0.40112216980036397",
|
|
70
|
+
"y2": "1.1742942637447706",
|
|
71
|
+
"id": "master_svg3_15_20"
|
|
72
|
+
}, [createVNode("stop", {
|
|
73
|
+
"offset": "0%",
|
|
74
|
+
"stop-color": "#4285EB",
|
|
75
|
+
"stop-opacity": "1"
|
|
76
|
+
}, null), createVNode("stop", {
|
|
77
|
+
"offset": "100%",
|
|
78
|
+
"stop-color": "#2EC7FF",
|
|
79
|
+
"stop-opacity": "1"
|
|
80
|
+
}, null)])
|
|
81
|
+
])]), createVNode("g", { "xmlns": "http://www.w3.org/2000/svg" }, [createVNode("g", { "clip-path": "url(#master_svg0_15_16)" }, [createVNode("g", null, [
|
|
82
|
+
createVNode("g", { "transform": "matrix(0,1,-1,0,128.38507080078125,1.3009490966796875)" }, [createVNode("path", {
|
|
83
|
+
"d": "M64.69695375205077,90.04532994873047C66.12390785205078,91.47199394873047,68.43745515205079,91.47199394873047,69.86440945205078,90.04532994873047L79.03075785205078,80.88083794873047C80.62410185205079,79.28782094873047,80.62410185205079,76.71482494873047,79.03094385205078,75.12199194873047L69.78469225205077,65.91039584873047C68.35435965205077,64.48542385873047,66.04007265205078,64.48747908873047,64.61227515205078,65.91498784873046C63.18532103205078,67.34165384873047,63.18532103205078,69.65473504873047,64.61227515205078,71.08139894873047L70.85724495205078,77.32510194873046C71.25382805205078,77.72160194873047,71.25382805205078,78.32337194873047,70.85724495205078,78.71987294873047L64.69695375205077,84.87891394873047C63.26999962205078,86.30557994873047,63.26999962205078,88.61865994873047,64.69695375205077,90.04532994873047Z",
|
|
84
|
+
"fill": "url(#master_svg1_15_26)",
|
|
85
|
+
"fill-opacity": "1"
|
|
86
|
+
}, null)]),
|
|
87
|
+
createVNode("g", null, [createVNode("path", {
|
|
88
|
+
"d": "M45.071075,20.462244300000002C50.317059,17.4434862,57.016956,19.24900955,60.035713,24.4949932L87.180679,71.667404C88.863739,74.592205,87.871445,78.327076,84.958672,80.030849C84.949287,80.036343,84.939903,80.041798,84.930489,80.047234C82.030266,81.722801,78.320847,80.73002600000001,76.64527100000001,77.829803L52.21682,35.546923C52.036407,35.234653,51.776993,34.975366,51.464634,34.795109C50.481709,34.227886,49.22506,34.56488,48.657841,35.547808L24.197922,77.933762C24.188855,77.949471,24.179718,77.965141,24.170509,77.98077C22.496816600000002,80.820942,18.837607900000002,81.76656,15.9974368,80.09286900000001C13.12257836,78.398735,12.14775169,74.705757,13.81193882,71.81346500000001L41.038097,24.4953909C42.002892,22.8186166,43.394342,21.4271069,45.071075,20.462244300000002Z",
|
|
89
|
+
"fill-rule": "evenodd",
|
|
90
|
+
"fill": "url(#master_svg2_15_23)",
|
|
91
|
+
"fill-opacity": "1"
|
|
92
|
+
}, null)]),
|
|
93
|
+
createVNode("g", null, [createVNode("path", {
|
|
94
|
+
"d": "M56.65453717255859,29.786590576171875C60.05306537255859,29.786590576171875,62.594127372558596,31.106560476171875,64.2777233725586,33.74650027617187L86.61734737255858,72.63262957617187C88.29955337255859,75.56081357617188,87.3005633725586,79.29788257617187,84.3816263725586,80.99607857617187C84.37327937255859,81.00094257617187,84.36491437255859,81.00577557617189,84.3565443725586,81.01059357617189C81.44811637255859,82.68416957617188,77.73366737255859,81.68312457617188,76.0600893725586,78.77469657617188L55.2176894725586,42.553740576171876L51.6441945725586,36.51258137617187C51.45962977255859,36.200564876171875,51.19580437255859,35.942928776171875,50.87949277255859,35.765822876171875C49.889291872558594,35.21139527617188,48.63712227255859,35.564660076171876,48.082697242558595,36.55486197617188L48.056419372558594,36.601793776171874C50.389970572558596,32.05832457617188,53.256010072558595,29.786590576171875,56.65453717255859,29.786590576171875Z",
|
|
95
|
+
"fill-rule": "evenodd",
|
|
96
|
+
"fill": "url(#master_svg3_15_20)",
|
|
97
|
+
"fill-opacity": "1"
|
|
98
|
+
}, null)])
|
|
99
|
+
])])])]);
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { Logo };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
//#region src/components/AppsLogoComponents/AppsLogo.tsx
|
|
3
|
+
/**
|
|
4
|
+
* 默认的应用列表的图标
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
function AppsLogo() {
|
|
8
|
+
return createVNode("svg", {
|
|
9
|
+
"width": "1em",
|
|
10
|
+
"height": "1em",
|
|
11
|
+
"viewBox": "0 0 12 12",
|
|
12
|
+
"fill": "currentColor",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, [createVNode("path", { "d": "M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z" }, null)]);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AppsLogo };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppItemProps, AppListProps } from "./typing.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
import { FunctionalComponent, ShallowRef } from "vue";
|
|
4
|
+
import { VueNode } from "antdv-next/dist/_util/type";
|
|
5
|
+
|
|
6
|
+
//#region src/components/AppsLogoComponents/DefaultContent.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 默认渲染logo的方式,如果是个string,用img。否则直接返回
|
|
9
|
+
*
|
|
10
|
+
* @param logo
|
|
11
|
+
*/
|
|
12
|
+
declare function defaultRenderLogo(logo: VueNode): string | number | boolean | void | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> | _$vue.VNodeArrayChildren | null;
|
|
15
|
+
declare const DefaultContent: FunctionalComponent<{
|
|
16
|
+
appList?: AppListProps;
|
|
17
|
+
itemClick?: (item: AppItemProps, popoverRef?: ShallowRef<HTMLSpanElement>) => void;
|
|
18
|
+
baseClassName?: string;
|
|
19
|
+
hashId?: string;
|
|
20
|
+
}>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DefaultContent as default, defaultRenderLogo };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { classNames } from "@v-c/util";
|
|
3
|
+
//#region src/components/AppsLogoComponents/DefaultContent.tsx
|
|
4
|
+
/**
|
|
5
|
+
* 默认渲染logo的方式,如果是个string,用img。否则直接返回
|
|
6
|
+
*
|
|
7
|
+
* @param logo
|
|
8
|
+
*/
|
|
9
|
+
function defaultRenderLogo(logo) {
|
|
10
|
+
if (typeof logo === "string") return createVNode("img", {
|
|
11
|
+
"width": "auto",
|
|
12
|
+
"height": 22,
|
|
13
|
+
"src": logo,
|
|
14
|
+
"alt": "logo"
|
|
15
|
+
}, null);
|
|
16
|
+
if (typeof logo === "function") return logo();
|
|
17
|
+
return logo;
|
|
18
|
+
}
|
|
19
|
+
const DefaultContent = ({ baseClassName, hashId, itemClick, appList }) => {
|
|
20
|
+
return createVNode("div", { "class": classNames(`${baseClassName}-content`, hashId) }, [createVNode("ul", { "class": classNames(`${baseClassName}-content-list`, hashId) }, [appList?.map((app, index) => {
|
|
21
|
+
if (app?.children?.length) return createVNode("div", {
|
|
22
|
+
"key": index,
|
|
23
|
+
"class": classNames(`${baseClassName}-content-list-item-group`, hashId)
|
|
24
|
+
}, [createVNode("div", { "class": classNames(`${baseClassName}-content-list-item-group-title`, hashId) }, [app.title]), createVNode(DefaultContent, {
|
|
25
|
+
"hashId": hashId,
|
|
26
|
+
"itemClick": itemClick,
|
|
27
|
+
"appList": app?.children,
|
|
28
|
+
"baseClassName": baseClassName
|
|
29
|
+
}, null)]);
|
|
30
|
+
return createVNode("li", {
|
|
31
|
+
"key": index,
|
|
32
|
+
"class": classNames(`${baseClassName}-content-list-item`, hashId)
|
|
33
|
+
}, [createVNode("a", {
|
|
34
|
+
"href": itemClick ? void 0 : app.url,
|
|
35
|
+
"onClick": () => itemClick?.(app),
|
|
36
|
+
"target": app.target,
|
|
37
|
+
"rel": "noreferrer"
|
|
38
|
+
}, [defaultRenderLogo(app.icon), createVNode("div", null, [createVNode("div", null, [app.title]), app.desc ? createVNode("span", null, [app.desc]) : null])])]);
|
|
39
|
+
})])]);
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { DefaultContent as default, defaultRenderLogo };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppItemProps, AppListProps } from "./typing.js";
|
|
2
|
+
import { FunctionalComponent, ShallowRef } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/AppsLogoComponents/SimpleContent.d.ts
|
|
5
|
+
declare const SimpleContent: FunctionalComponent<{
|
|
6
|
+
appList?: AppListProps;
|
|
7
|
+
itemClick?: (item: AppItemProps, popoverRef?: ShallowRef<HTMLSpanElement>) => void;
|
|
8
|
+
baseClassName?: string;
|
|
9
|
+
hashId?: string;
|
|
10
|
+
}>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SimpleContent as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { isUrl } from "@antdv-vue/pro-utils";
|
|
3
|
+
import { classNames } from "@v-c/util";
|
|
4
|
+
//#region src/components/AppsLogoComponents/SimpleContent.tsx
|
|
5
|
+
/**
|
|
6
|
+
* simple 模式渲染logo的方式
|
|
7
|
+
*
|
|
8
|
+
* @param logo
|
|
9
|
+
* @param title
|
|
10
|
+
*/
|
|
11
|
+
function renderLogo(logo, title) {
|
|
12
|
+
if (logo && typeof logo === "string" && isUrl(logo)) return createVNode("img", {
|
|
13
|
+
"src": logo,
|
|
14
|
+
"alt": "logo"
|
|
15
|
+
}, null);
|
|
16
|
+
if (typeof logo === "function") return logo();
|
|
17
|
+
if (logo && typeof logo === "string") return createVNode("div", { "id": "avatarLogo" }, [logo]);
|
|
18
|
+
if (!logo && title && typeof title === "string") return createVNode("div", { "id": "avatarLogo" }, [title.substring(0, 1)]);
|
|
19
|
+
return logo;
|
|
20
|
+
}
|
|
21
|
+
const SimpleContent = ({ baseClassName, hashId, itemClick, appList }) => {
|
|
22
|
+
return createVNode("div", { "class": classNames(`${baseClassName}-content`, hashId) }, [createVNode("ul", { "class": classNames(`${baseClassName}-content-list`, hashId) }, [appList?.map((app, index) => {
|
|
23
|
+
if (app?.children?.length) return createVNode("div", {
|
|
24
|
+
"key": index,
|
|
25
|
+
"class": classNames(`${baseClassName}-content-list-item-group`, hashId)
|
|
26
|
+
}, [createVNode("div", { "class": classNames(`${baseClassName}-content-list-item-group-title`, hashId) }, [app.title]), createVNode(SimpleContent, {
|
|
27
|
+
"hashId": hashId,
|
|
28
|
+
"itemClick": itemClick,
|
|
29
|
+
"appList": app?.children,
|
|
30
|
+
"baseClassName": baseClassName
|
|
31
|
+
}, null)]);
|
|
32
|
+
return createVNode("li", {
|
|
33
|
+
"key": index,
|
|
34
|
+
"class": classNames(`${baseClassName}-content-list-item`, hashId)
|
|
35
|
+
}, [createVNode("a", {
|
|
36
|
+
"href": itemClick ? "javascript:void(0);" : app.url,
|
|
37
|
+
"onClick": () => itemClick?.(app),
|
|
38
|
+
"target": app.target,
|
|
39
|
+
"rel": "noreferrer"
|
|
40
|
+
}, [renderLogo(app.icon, app.title), createVNode("div", null, [createVNode("div", null, [app.title])])])]);
|
|
41
|
+
})])]);
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { SimpleContent as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppItemProps, AppListProps } from "./typing.js";
|
|
2
|
+
import { AppListRender, SlotsRenderType } from "../../RenderTypings.js";
|
|
3
|
+
import { defaultRenderLogo } from "./DefaultContent.js";
|
|
4
|
+
import * as _$vue from "vue";
|
|
5
|
+
import { ShallowRef } from "vue";
|
|
6
|
+
import { VueNode } from "@antdv-vue/pro-utils";
|
|
7
|
+
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
8
|
+
|
|
9
|
+
//#region src/components/AppsLogoComponents/index.d.ts
|
|
10
|
+
interface AppsLogoComponentsProps {
|
|
11
|
+
prefixCls?: string;
|
|
12
|
+
/** 相关品牌的列表 */
|
|
13
|
+
appList?: AppListProps;
|
|
14
|
+
appListRender?: AppListRender | false;
|
|
15
|
+
/** 相关品牌的列表项 点击事件,当事件存在时,appList 内配置的 url 不在自动跳转 */
|
|
16
|
+
onItemClick?: (item: AppItemProps, popoverRef: ShallowRef<HTMLSpanElement | null>) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const AppsLogoComponents: _$vue.DefineSetupFnComponent<AppsLogoComponentsProps, {}, CustomSlotsType<Pick<SlotsRenderType, "appListRender"> & {
|
|
19
|
+
default?: () => VueNode[];
|
|
20
|
+
}>, AppsLogoComponentsProps & {}, _$vue.PublicProps>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AppsLogoComponentsProps, AppsLogoComponents as default, defaultRenderLogo };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AppsLogo } from "./AppsLogo.js";
|
|
2
|
+
import DefaultContent, { defaultRenderLogo } from "./DefaultContent.js";
|
|
3
|
+
import SimpleContent from "./SimpleContent.js";
|
|
4
|
+
import style_default from "./style/index.js";
|
|
5
|
+
import { computed, createVNode, defineComponent, shallowRef } from "vue";
|
|
6
|
+
import { getSlot, useState } from "@antdv-vue/pro-utils";
|
|
7
|
+
import { classNames } from "@v-c/util";
|
|
8
|
+
import { Popover } from "antdv-next";
|
|
9
|
+
//#region src/components/AppsLogoComponents/index.tsx
|
|
10
|
+
const AppsLogoComponents = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
11
|
+
const elRef = shallowRef(null);
|
|
12
|
+
const popoverRef = shallowRef(null);
|
|
13
|
+
const baseClassName = computed(() => `${props.prefixCls}-layout-apps`);
|
|
14
|
+
const [hashId] = style_default(baseClassName);
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
const cloneItemClick = (app) => props.onItemClick?.(app, popoverRef);
|
|
17
|
+
const defaultDomContent = computed(() => {
|
|
18
|
+
const { appList = [], onItemClick } = props;
|
|
19
|
+
if (appList.some((app) => !app?.desc)) return createVNode(SimpleContent, {
|
|
20
|
+
"hashId": hashId?.value,
|
|
21
|
+
"appList": appList,
|
|
22
|
+
"itemClick": onItemClick ? cloneItemClick : void 0,
|
|
23
|
+
"baseClassName": `${baseClassName.value}-simple`
|
|
24
|
+
}, null);
|
|
25
|
+
return createVNode(DefaultContent, {
|
|
26
|
+
"hashId": hashId?.value,
|
|
27
|
+
"appList": appList,
|
|
28
|
+
"itemClick": onItemClick ? cloneItemClick : void 0,
|
|
29
|
+
"baseClassName": `${baseClassName.value}-default`
|
|
30
|
+
}, null);
|
|
31
|
+
});
|
|
32
|
+
const popoverContent = computed(() => {
|
|
33
|
+
const { appList = [] } = props;
|
|
34
|
+
const appListRender = getSlot(slots, props, "appListRender");
|
|
35
|
+
return appListRender ? appListRender({
|
|
36
|
+
props: appList,
|
|
37
|
+
dom: defaultDomContent.value
|
|
38
|
+
}) : defaultDomContent.value;
|
|
39
|
+
});
|
|
40
|
+
return () => {
|
|
41
|
+
const { appList = [] } = props;
|
|
42
|
+
if (!appList.length) return null;
|
|
43
|
+
return createVNode("div", {
|
|
44
|
+
"ref": elRef,
|
|
45
|
+
"class": classNames(baseClassName.value, hashId?.value),
|
|
46
|
+
"onClick": (e) => e.stopPropagation()
|
|
47
|
+
}, [createVNode(Popover, {
|
|
48
|
+
"placement": "bottomRight",
|
|
49
|
+
"trigger": ["click"],
|
|
50
|
+
"open": open.value,
|
|
51
|
+
"classes": { root: classNames(`${baseClassName.value}-popover`, hashId?.value) },
|
|
52
|
+
"onOpenChange": (visible) => setOpen(visible),
|
|
53
|
+
"content": popoverContent.value,
|
|
54
|
+
"getPopupContainer": () => elRef.value || document.body
|
|
55
|
+
}, { default: () => [createVNode("div", {
|
|
56
|
+
"ref": popoverRef,
|
|
57
|
+
"onClick": (e) => e.stopPropagation(),
|
|
58
|
+
"class": classNames(`${baseClassName.value}-wrapper`)
|
|
59
|
+
}, [createVNode("span", { "class": classNames(`${baseClassName.value}-icon`, hashId?.value, { [`${baseClassName.value}-icon-active`]: open.value }) }, [createVNode(AppsLogo, null, null)])])] })]);
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
props: {
|
|
63
|
+
prefixCls: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
appList: {
|
|
68
|
+
type: Array,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
appListRender: {
|
|
72
|
+
type: [Function, Boolean],
|
|
73
|
+
required: false,
|
|
74
|
+
default: void 0
|
|
75
|
+
},
|
|
76
|
+
onItemClick: {
|
|
77
|
+
type: Function,
|
|
78
|
+
required: false
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
name: "AppsLogoComponents",
|
|
82
|
+
inheritAttrs: false
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
export { AppsLogoComponents as default, defaultRenderLogo };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppsLogoComponentsToken } from "./index.js";
|
|
2
|
+
import { GenerateStyle } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/AppsLogoComponents/style/default.d.ts
|
|
5
|
+
declare const genAppsLogoComponentsDefaultListStyle: GenerateStyle<AppsLogoComponentsToken>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { genAppsLogoComponentsDefaultListStyle };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { resetComponent } from "@antdv-vue/pro-provider";
|
|
2
|
+
//#region src/components/AppsLogoComponents/style/default.ts
|
|
3
|
+
const genAppsLogoComponentsDefaultListStyle = (token) => {
|
|
4
|
+
return { "&-content": {
|
|
5
|
+
maxHeight: token.calc("100vh").sub(48).equal(),
|
|
6
|
+
overflow: "auto",
|
|
7
|
+
"&-list": {
|
|
8
|
+
boxSizing: "content-box",
|
|
9
|
+
maxWidth: 656,
|
|
10
|
+
marginBlock: 0,
|
|
11
|
+
marginInline: 0,
|
|
12
|
+
paddingBlock: 0,
|
|
13
|
+
paddingInline: 0,
|
|
14
|
+
listStyle: "none",
|
|
15
|
+
"&-item": {
|
|
16
|
+
position: "relative",
|
|
17
|
+
display: "inline-block",
|
|
18
|
+
width: 328,
|
|
19
|
+
height: 72,
|
|
20
|
+
paddingInline: 16,
|
|
21
|
+
paddingBlock: 16,
|
|
22
|
+
verticalAlign: "top",
|
|
23
|
+
listStyleType: "none",
|
|
24
|
+
transition: "transform 0.2s cubic-bezier(0.333, 0, 0, 1)",
|
|
25
|
+
borderRadius: token.borderRadius,
|
|
26
|
+
boxSizing: "border-box",
|
|
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
|
+
"* div": resetComponent?.(token),
|
|
44
|
+
a: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
height: "100%",
|
|
47
|
+
fontSize: 12,
|
|
48
|
+
textDecoration: "none",
|
|
49
|
+
"& > img": {
|
|
50
|
+
width: 40,
|
|
51
|
+
height: 40
|
|
52
|
+
},
|
|
53
|
+
"& > div": {
|
|
54
|
+
marginInlineStart: 14,
|
|
55
|
+
color: token.colorTextHeading,
|
|
56
|
+
fontSize: 14,
|
|
57
|
+
lineHeight: "22px",
|
|
58
|
+
whiteSpace: "nowrap",
|
|
59
|
+
textOverflow: "ellipsis"
|
|
60
|
+
},
|
|
61
|
+
"& > div > span": {
|
|
62
|
+
color: token.colorTextSecondary,
|
|
63
|
+
fontSize: 12,
|
|
64
|
+
lineHeight: "20px"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
} };
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { genAppsLogoComponentsDefaultListStyle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/AppsLogoComponents/style/index.d.ts
|
|
5
|
+
interface AppsLogoComponentsToken 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 { AppsLogoComponentsToken, _default as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { genAppsLogoComponentsDefaultListStyle } from "./default.js";
|
|
2
|
+
import { genAppsLogoComponentsSimpleListStyle } from "./simple.js";
|
|
3
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
4
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
5
|
+
//#region src/components/AppsLogoComponents/style/index.ts
|
|
6
|
+
const genAppsLogoComponentsStyle = (token) => {
|
|
7
|
+
return {
|
|
8
|
+
[`${token.proComponentsCls}-top-nav-header, ${token.proComponentsCls}-global-header`]: { "&-dark": { [token.componentCls]: {
|
|
9
|
+
"&-icon": {
|
|
10
|
+
color: "rgba(255, 255, 255, 0.85)",
|
|
11
|
+
"&:hover": {
|
|
12
|
+
color: "rgba(255, 255, 255, 1)",
|
|
13
|
+
backgroundColor: "rgba(255,255,255, 0.05)"
|
|
14
|
+
},
|
|
15
|
+
"&-active": {
|
|
16
|
+
color: "rgba(255, 255, 255, 1)",
|
|
17
|
+
backgroundColor: "rgba(255,255,255, 0.05)"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"&-item-title": { color: "rgba(255, 255, 255, 0.88)" }
|
|
21
|
+
} } },
|
|
22
|
+
[token.componentCls]: {
|
|
23
|
+
"&-wrapper": {},
|
|
24
|
+
"&-icon": {
|
|
25
|
+
display: "inline-flex",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
paddingInline: 4,
|
|
29
|
+
paddingBlock: 0,
|
|
30
|
+
fontSize: 14,
|
|
31
|
+
lineHeight: "14px",
|
|
32
|
+
height: 28,
|
|
33
|
+
width: 28,
|
|
34
|
+
cursor: "pointer",
|
|
35
|
+
color: token.proLayoutColorTextAppListIcon,
|
|
36
|
+
borderRadius: token.borderRadius,
|
|
37
|
+
boxSizing: "border-box",
|
|
38
|
+
"&:hover": {
|
|
39
|
+
color: token.proLayoutColorTextAppListIconHover,
|
|
40
|
+
backgroundColor: token.proLayoutColorBgAppListIconHover
|
|
41
|
+
},
|
|
42
|
+
"&-active": {
|
|
43
|
+
color: token.proLayoutColorTextAppListIconHover,
|
|
44
|
+
backgroundColor: token.proLayoutColorBgAppListIconHover
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"&-item-title": {
|
|
48
|
+
marginInlineStart: 16,
|
|
49
|
+
marginInlineEnd: 8,
|
|
50
|
+
marginBlockStart: 0,
|
|
51
|
+
marginBlockEnd: 12,
|
|
52
|
+
fontWeight: 600,
|
|
53
|
+
color: "rgba(0, 0, 0, 0.88)",
|
|
54
|
+
fontSize: 16,
|
|
55
|
+
opacity: .85,
|
|
56
|
+
lineHeight: 1.5,
|
|
57
|
+
"&:first-child": { marginBlockStart: 12 }
|
|
58
|
+
},
|
|
59
|
+
"&-popover": { [`${token.antCls}-popover-arrow`]: { display: "none" } },
|
|
60
|
+
"&-simple": genAppsLogoComponentsSimpleListStyle(token),
|
|
61
|
+
"&-default": genAppsLogoComponentsDefaultListStyle(token)
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
var style_default = useStyle("AppsLogoComponents", (token) => {
|
|
66
|
+
return [genAppsLogoComponentsStyle(mergeToken(token, {}))];
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { style_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppsLogoComponentsToken } from "./index.js";
|
|
2
|
+
import { GenerateStyle } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/AppsLogoComponents/style/simple.d.ts
|
|
5
|
+
declare const genAppsLogoComponentsSimpleListStyle: GenerateStyle<AppsLogoComponentsToken>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { genAppsLogoComponentsSimpleListStyle };
|