@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,236 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/SettingDrawer/style/index.ts
|
|
4
|
+
const genSettingDrawerStyle = (token) => {
|
|
5
|
+
const portalClassNames = [
|
|
6
|
+
"drawer",
|
|
7
|
+
"message",
|
|
8
|
+
"popover",
|
|
9
|
+
"tooltip",
|
|
10
|
+
"modal-root",
|
|
11
|
+
"image-preview-root",
|
|
12
|
+
"dropdown",
|
|
13
|
+
"menu-submenu-popup",
|
|
14
|
+
"select-dropdown",
|
|
15
|
+
"cascader-dropdown",
|
|
16
|
+
"picker-dropdown",
|
|
17
|
+
"tour",
|
|
18
|
+
"notification"
|
|
19
|
+
].map((className) => `${token.antCls}-${className}`);
|
|
20
|
+
const colorWeakPortalStyles = Object.fromEntries(portalClassNames.flatMap((className) => [[`> ${className}`, { filter: "invert(80%)" }], [`> div > ${className}`, { filter: "invert(80%)" }]]));
|
|
21
|
+
return {
|
|
22
|
+
[`${token.componentCls}-handle`]: {
|
|
23
|
+
position: "absolute",
|
|
24
|
+
insetBlockStart: 240,
|
|
25
|
+
insetInlineEnd: 300,
|
|
26
|
+
zIndex: 0,
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
justifyContent: "center",
|
|
30
|
+
width: 48,
|
|
31
|
+
height: 48,
|
|
32
|
+
fontSize: 16,
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
backgroundColor: token.colorPrimary,
|
|
35
|
+
borderEndStartRadius: token.borderRadiusLG,
|
|
36
|
+
borderStartStartRadius: token.borderRadiusLG,
|
|
37
|
+
"-webkit-backdropilter": "saturate(180%) blur(20px)",
|
|
38
|
+
backdropFilter: "saturate(180%) blur(20px)",
|
|
39
|
+
cursor: "pointer",
|
|
40
|
+
pointerEvents: "auto"
|
|
41
|
+
},
|
|
42
|
+
[`${token.componentCls}-handle-container`]: {
|
|
43
|
+
position: "fixed",
|
|
44
|
+
inset: 0,
|
|
45
|
+
pointerEvents: "none",
|
|
46
|
+
[`${token.componentCls}-handle`]: { insetInlineEnd: 0 }
|
|
47
|
+
},
|
|
48
|
+
[token.componentCls]: {
|
|
49
|
+
"&-collapsed": { [`${token.antCls}-drawer-content-wrapper`]: {
|
|
50
|
+
display: "block !important",
|
|
51
|
+
transform: "translateX(100%) !important"
|
|
52
|
+
} },
|
|
53
|
+
"&-realDark": {
|
|
54
|
+
[`${token.componentCls}-body-title`]: { color: "rgb(229, 224, 216)" },
|
|
55
|
+
[`${token.componentCls}-content`]: { [`${token.componentCls}-block-checkbox`]: { "&-item": {
|
|
56
|
+
"&-realDark": {
|
|
57
|
+
backgroundColor: "rgba(15, 28, 41, 0.85)",
|
|
58
|
+
boxShadow: "0px 1px 2.5px rgba(13, 13, 13, 0.18)",
|
|
59
|
+
"&::before": { backgroundColor: "rgba(15, 28, 41,0.65)" },
|
|
60
|
+
"&::after": { backgroundColor: "rgba(15, 28, 41,0.85)" }
|
|
61
|
+
},
|
|
62
|
+
"&-light": {
|
|
63
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
64
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
65
|
+
"&::before": { backgroundColor: "rgb(36, 37, 37)" },
|
|
66
|
+
"&::after": { backgroundColor: "rgb(36, 37, 37)" }
|
|
67
|
+
},
|
|
68
|
+
"&-dark,&-side": {
|
|
69
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
70
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
71
|
+
"&::before": {
|
|
72
|
+
zIndex: "1",
|
|
73
|
+
backgroundColor: "#0f1c29"
|
|
74
|
+
},
|
|
75
|
+
"&::after": { backgroundColor: "rgb(36, 37, 37)" }
|
|
76
|
+
},
|
|
77
|
+
"&-top": {
|
|
78
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
79
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
80
|
+
"&::after": { backgroundColor: "rgb(15 28 41)" }
|
|
81
|
+
},
|
|
82
|
+
"&-mix": {
|
|
83
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
84
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
85
|
+
"&::before": { backgroundColor: "rgb(36, 37, 37)" },
|
|
86
|
+
"&::after": { backgroundColor: "#0f1c29" }
|
|
87
|
+
},
|
|
88
|
+
"&-left": {
|
|
89
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
90
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
91
|
+
"&-inner": { backgroundColor: "rgb(36, 37, 37)" },
|
|
92
|
+
"&::before": { backgroundColor: "#0f1c29" },
|
|
93
|
+
"&::after": { backgroundColor: "rgb(36, 37, 37)" }
|
|
94
|
+
},
|
|
95
|
+
"&-sub": {
|
|
96
|
+
backgroundColor: "rgb(42, 44, 44)",
|
|
97
|
+
boxShadow: "rgba(13, 13, 13, 0.18) 0px 1px 2.5px",
|
|
98
|
+
"&::before": {
|
|
99
|
+
zIndex: "1",
|
|
100
|
+
backgroundColor: "#0f1c29"
|
|
101
|
+
},
|
|
102
|
+
"&::after": { backgroundColor: "rgb(36, 37, 37)" }
|
|
103
|
+
}
|
|
104
|
+
} } }
|
|
105
|
+
},
|
|
106
|
+
"&-content": { position: "relative" },
|
|
107
|
+
"&-body-title": {
|
|
108
|
+
marginBlock: token.marginXS,
|
|
109
|
+
fontSize: 14,
|
|
110
|
+
lineHeight: "22px",
|
|
111
|
+
color: token.colorTextHeading
|
|
112
|
+
},
|
|
113
|
+
"&-block-checkbox": {
|
|
114
|
+
display: "flex",
|
|
115
|
+
minHeight: 42,
|
|
116
|
+
gap: token.marginSM,
|
|
117
|
+
"& &-item": {
|
|
118
|
+
position: "relative",
|
|
119
|
+
width: 44,
|
|
120
|
+
height: 36,
|
|
121
|
+
overflow: "hidden",
|
|
122
|
+
borderRadius: 4,
|
|
123
|
+
boxShadow: "0 1px 2.5px rgba(0,0,0,.18)",
|
|
124
|
+
cursor: "pointer",
|
|
125
|
+
[`&:not(&-top):not(&-left)::before`]: {
|
|
126
|
+
content: "''",
|
|
127
|
+
position: "absolute",
|
|
128
|
+
insetBlockStart: 0,
|
|
129
|
+
insetInlineStart: 0,
|
|
130
|
+
width: "33%",
|
|
131
|
+
height: "100%"
|
|
132
|
+
},
|
|
133
|
+
"&::after": {
|
|
134
|
+
position: "absolute",
|
|
135
|
+
insetBlockStart: 0,
|
|
136
|
+
insetInlineStart: 0,
|
|
137
|
+
width: "100%",
|
|
138
|
+
height: "25%",
|
|
139
|
+
content: "''"
|
|
140
|
+
},
|
|
141
|
+
"&-realDark": {
|
|
142
|
+
backgroundColor: "rgba(0, 21, 41, 0.85)",
|
|
143
|
+
"&::before": { backgroundColor: "rgba(0, 0, 0, 0.65)" },
|
|
144
|
+
"&::after": { backgroundColor: "rgba(0, 0, 0, 0.85)" }
|
|
145
|
+
},
|
|
146
|
+
"&-light": {
|
|
147
|
+
backgroundColor: "#f0f2f5",
|
|
148
|
+
"&::before": { backgroundColor: "#fff" },
|
|
149
|
+
"&::after": { backgroundColor: "#fff" }
|
|
150
|
+
},
|
|
151
|
+
"&-dark,&-side": {
|
|
152
|
+
backgroundColor: "#f0f2f5",
|
|
153
|
+
"&::before": {
|
|
154
|
+
zIndex: 1,
|
|
155
|
+
backgroundColor: "#001529"
|
|
156
|
+
},
|
|
157
|
+
"&::after": { backgroundColor: "#fff" }
|
|
158
|
+
},
|
|
159
|
+
"&-top": {
|
|
160
|
+
backgroundColor: "#f7f8fa",
|
|
161
|
+
"&::after": { backgroundColor: "#001529" }
|
|
162
|
+
},
|
|
163
|
+
"&-mix": {
|
|
164
|
+
backgroundColor: "#f7f8fa",
|
|
165
|
+
"&::before": { backgroundColor: "#fff" },
|
|
166
|
+
"&::after": { backgroundColor: "#001529" }
|
|
167
|
+
},
|
|
168
|
+
"&-left": {
|
|
169
|
+
backgroundColor: "#f7f8fa",
|
|
170
|
+
"&-inner": {
|
|
171
|
+
position: "absolute",
|
|
172
|
+
insetInlineStart: 0,
|
|
173
|
+
insetBlockStart: 0,
|
|
174
|
+
width: "33%",
|
|
175
|
+
height: "100%",
|
|
176
|
+
backgroundColor: "#fff"
|
|
177
|
+
},
|
|
178
|
+
"&::before": {
|
|
179
|
+
content: "''",
|
|
180
|
+
position: "absolute",
|
|
181
|
+
insetBlockStart: 0,
|
|
182
|
+
insetInlineStart: 0,
|
|
183
|
+
backgroundColor: "#001529",
|
|
184
|
+
width: "16%",
|
|
185
|
+
zIndex: 1,
|
|
186
|
+
height: "100%"
|
|
187
|
+
},
|
|
188
|
+
"&::after": { backgroundColor: "#ffff" }
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"& &-selectIcon": {
|
|
192
|
+
position: "absolute",
|
|
193
|
+
insetInlineEnd: 6,
|
|
194
|
+
insetBlockEnd: 4,
|
|
195
|
+
color: token.colorPrimary,
|
|
196
|
+
fontWeight: "bold",
|
|
197
|
+
fontSize: 14,
|
|
198
|
+
pointerEvents: "none",
|
|
199
|
+
".action": { color: token.colorPrimary }
|
|
200
|
+
},
|
|
201
|
+
"& &-icon": {
|
|
202
|
+
fontSize: 56,
|
|
203
|
+
lineHeight: "56px"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"&-theme-color": {
|
|
207
|
+
marginBlockStart: 16,
|
|
208
|
+
overflow: "hidden",
|
|
209
|
+
"& &-block": {
|
|
210
|
+
float: "left",
|
|
211
|
+
width: 20,
|
|
212
|
+
height: 20,
|
|
213
|
+
lineHeight: "20px",
|
|
214
|
+
marginBlockStart: 8,
|
|
215
|
+
marginInlineEnd: 8,
|
|
216
|
+
color: "#fff",
|
|
217
|
+
fontWeight: "bold",
|
|
218
|
+
textAlign: "center",
|
|
219
|
+
borderRadius: 2,
|
|
220
|
+
cursor: "pointer"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
[`&-list${token.antCls}-listy`]: { [`${token.antCls}-listy-item`]: {
|
|
224
|
+
paddingBlockStart: token.paddingXS,
|
|
225
|
+
paddingBlockEnd: token.paddingXS,
|
|
226
|
+
"&:hover": { backgroundColor: "transparent" }
|
|
227
|
+
} }
|
|
228
|
+
},
|
|
229
|
+
"[data-color-weak]": { ...colorWeakPortalStyles }
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
var style_default = useStyle("ProLayoutSettingDrawer", (token) => {
|
|
233
|
+
return [genSettingDrawerStyle(mergeToken(token, {}))];
|
|
234
|
+
});
|
|
235
|
+
//#endregion
|
|
236
|
+
export { style_default as default, genSettingDrawerStyle };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { PureSettings } from "../../defaultSettings.js";
|
|
2
|
+
import { MenuDataItem, MessageDescriptor, RouterTypes } from "../../typing.js";
|
|
3
|
+
import { PrivateSiderMenuProps } from "./SiderMenu.js";
|
|
4
|
+
import { MenuItemRender, SubMenuItemRender } from "../../RenderTypings.js";
|
|
5
|
+
import * as _$vue from "vue";
|
|
6
|
+
import { DefineSetupFnComponent, VNode } from "vue";
|
|
7
|
+
import { Key } from "@antdv-vue/pro-utils";
|
|
8
|
+
import { MenuProps } from "antdv-next";
|
|
9
|
+
import { VueNode as VueNode$1 } from "antdv-next/dist/_util/type";
|
|
10
|
+
import * as _$antdv_next_dist_menu_index0 from "antdv-next/dist/menu/index";
|
|
11
|
+
|
|
12
|
+
//#region src/components/SiderMenu/BaseMenu.d.ts
|
|
13
|
+
type BaseMenuProps = {
|
|
14
|
+
defaultCollapsed?: boolean;
|
|
15
|
+
collapsed?: boolean;
|
|
16
|
+
isMobile?: boolean;
|
|
17
|
+
onOpenChange?: (openKeys?: Key[] | false) => void;
|
|
18
|
+
menuData?: MenuDataItem[];
|
|
19
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
20
|
+
openKeys?: string[] | false;
|
|
21
|
+
mode?: MenuProps['mode'];
|
|
22
|
+
/**
|
|
23
|
+
* @name menuProps 要给菜单的props, 参考ant-menu的属性
|
|
24
|
+
*/
|
|
25
|
+
menuProps?: MenuProps;
|
|
26
|
+
/**
|
|
27
|
+
* @name menuItemRender 处理菜单的 props,可以复写菜单的点击功能,一般结合 VueRouter 框架使用
|
|
28
|
+
* @see 非子级的菜单要使用 subMenuItemRender 来处理
|
|
29
|
+
*
|
|
30
|
+
* @example 使用 a 标签 menuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
31
|
+
* @example 使用 Link 标签 menuItemRender={(item, defaultDom) => { return <RouterLink to={item.path}>{defaultDom}</RouterLink> }}
|
|
32
|
+
*/
|
|
33
|
+
menuItemRender?: MenuItemRender | false;
|
|
34
|
+
/**
|
|
35
|
+
* @name subMenuItemRender 处理父级菜单的 props,可以复写菜单的点击功能,一般用于埋点
|
|
36
|
+
* @see 子级的菜单要使用 menuItemRender 来处理
|
|
37
|
+
*
|
|
38
|
+
* @example 使用 a 标签跳转到特殊的地址 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
39
|
+
* @example 增加埋点 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> log.click(item.name) }>{defaultDom}</a> }}
|
|
40
|
+
*/
|
|
41
|
+
subMenuItemRender?: SubMenuItemRender | false;
|
|
42
|
+
iconPrefixes?: string;
|
|
43
|
+
formatMessage?: (message: MessageDescriptor) => string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* @name postMenuData 处理 menuData 的方法,与 menuDataRender 不同,postMenuData处理完成后会直接渲染,不再进行国际化和拼接处理
|
|
46
|
+
*
|
|
47
|
+
* @example 增加菜单图标 postMenuData={(menuData) => { return menuData.map(item => { return { ...item, icon: <Icon type={item.icon} /> } }) }}
|
|
48
|
+
*/
|
|
49
|
+
postMenuData?: (menusData?: MenuDataItem[]) => MenuDataItem[];
|
|
50
|
+
onSelect?: (selectedKeys: Key[]) => void;
|
|
51
|
+
} & Partial<RouterTypes> & Omit<MenuProps, 'openKeys' | 'onOpenChange' | 'title'> & Partial<PureSettings>;
|
|
52
|
+
declare function getIcon(icon: VueNode$1 | DefineSetupFnComponent<Record<string, any>>, iconPrefixes: string | undefined, className: string): number | boolean | VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}> | "" | null;
|
|
55
|
+
declare const BaseMenu: DefineSetupFnComponent<{
|
|
56
|
+
defaultCollapsed?: boolean;
|
|
57
|
+
collapsed?: boolean;
|
|
58
|
+
isMobile?: boolean;
|
|
59
|
+
onOpenChange?: (openKeys?: Key[] | false) => void;
|
|
60
|
+
menuData?: MenuDataItem[];
|
|
61
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
62
|
+
openKeys?: string[] | false;
|
|
63
|
+
mode?: MenuProps["mode"];
|
|
64
|
+
/**
|
|
65
|
+
* @name menuProps 要给菜单的props, 参考ant-menu的属性
|
|
66
|
+
*/
|
|
67
|
+
menuProps?: MenuProps;
|
|
68
|
+
/**
|
|
69
|
+
* @name menuItemRender 处理菜单的 props,可以复写菜单的点击功能,一般结合 VueRouter 框架使用
|
|
70
|
+
* @see 非子级的菜单要使用 subMenuItemRender 来处理
|
|
71
|
+
*
|
|
72
|
+
* @example 使用 a 标签 menuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
73
|
+
* @example 使用 Link 标签 menuItemRender={(item, defaultDom) => { return <RouterLink to={item.path}>{defaultDom}</RouterLink> }}
|
|
74
|
+
*/
|
|
75
|
+
menuItemRender?: MenuItemRender | false;
|
|
76
|
+
/**
|
|
77
|
+
* @name subMenuItemRender 处理父级菜单的 props,可以复写菜单的点击功能,一般用于埋点
|
|
78
|
+
* @see 子级的菜单要使用 menuItemRender 来处理
|
|
79
|
+
*
|
|
80
|
+
* @example 使用 a 标签跳转到特殊的地址 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
81
|
+
* @example 增加埋点 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> log.click(item.name) }>{defaultDom}</a> }}
|
|
82
|
+
*/
|
|
83
|
+
subMenuItemRender?: SubMenuItemRender | false;
|
|
84
|
+
iconPrefixes?: string;
|
|
85
|
+
formatMessage?: (message: MessageDescriptor) => string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* @name postMenuData 处理 menuData 的方法,与 menuDataRender 不同,postMenuData处理完成后会直接渲染,不再进行国际化和拼接处理
|
|
88
|
+
*
|
|
89
|
+
* @example 增加菜单图标 postMenuData={(menuData) => { return menuData.map(item => { return { ...item, icon: <Icon type={item.icon} /> } }) }}
|
|
90
|
+
*/
|
|
91
|
+
postMenuData?: (menusData?: MenuDataItem[]) => MenuDataItem[];
|
|
92
|
+
onSelect?: (selectedKeys: Key[]) => void;
|
|
93
|
+
} & Partial<RouterTypes> & Omit<_$antdv_next_dist_menu_index0.InternalMenuProps, "openKeys" | "onOpenChange" | "title"> & Partial<PureSettings> & PrivateSiderMenuProps, {}, {}, {
|
|
94
|
+
defaultCollapsed?: boolean;
|
|
95
|
+
collapsed?: boolean;
|
|
96
|
+
isMobile?: boolean;
|
|
97
|
+
onOpenChange?: (openKeys?: Key[] | false) => void;
|
|
98
|
+
menuData?: MenuDataItem[];
|
|
99
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
100
|
+
openKeys?: string[] | false;
|
|
101
|
+
mode?: MenuProps["mode"];
|
|
102
|
+
/**
|
|
103
|
+
* @name menuProps 要给菜单的props, 参考ant-menu的属性
|
|
104
|
+
*/
|
|
105
|
+
menuProps?: MenuProps;
|
|
106
|
+
/**
|
|
107
|
+
* @name menuItemRender 处理菜单的 props,可以复写菜单的点击功能,一般结合 VueRouter 框架使用
|
|
108
|
+
* @see 非子级的菜单要使用 subMenuItemRender 来处理
|
|
109
|
+
*
|
|
110
|
+
* @example 使用 a 标签 menuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
111
|
+
* @example 使用 Link 标签 menuItemRender={(item, defaultDom) => { return <RouterLink to={item.path}>{defaultDom}</RouterLink> }}
|
|
112
|
+
*/
|
|
113
|
+
menuItemRender?: MenuItemRender | false;
|
|
114
|
+
/**
|
|
115
|
+
* @name subMenuItemRender 处理父级菜单的 props,可以复写菜单的点击功能,一般用于埋点
|
|
116
|
+
* @see 子级的菜单要使用 menuItemRender 来处理
|
|
117
|
+
*
|
|
118
|
+
* @example 使用 a 标签跳转到特殊的地址 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> router.push(item.path) }>{defaultDom}</a> }}
|
|
119
|
+
* @example 增加埋点 subMenuItemRender={(item, defaultDom) => { return <a onClick={()=> log.click(item.name) }>{defaultDom}</a> }}
|
|
120
|
+
*/
|
|
121
|
+
subMenuItemRender?: SubMenuItemRender | false;
|
|
122
|
+
iconPrefixes?: string;
|
|
123
|
+
formatMessage?: (message: MessageDescriptor) => string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* @name postMenuData 处理 menuData 的方法,与 menuDataRender 不同,postMenuData处理完成后会直接渲染,不再进行国际化和拼接处理
|
|
126
|
+
*
|
|
127
|
+
* @example 增加菜单图标 postMenuData={(menuData) => { return menuData.map(item => { return { ...item, icon: <Icon type={item.icon} /> } }) }}
|
|
128
|
+
*/
|
|
129
|
+
postMenuData?: (menusData?: MenuDataItem[]) => MenuDataItem[];
|
|
130
|
+
onSelect?: (selectedKeys: Key[]) => void;
|
|
131
|
+
} & Partial<RouterTypes> & Omit<_$antdv_next_dist_menu_index0.InternalMenuProps, "openKeys" | "onOpenChange" | "title"> & Partial<PureSettings> & PrivateSiderMenuProps & {}, _$vue.PublicProps>;
|
|
132
|
+
//#endregion
|
|
133
|
+
export { BaseMenuProps, BaseMenu as default, getIcon };
|