@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,95 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { InjectionKey, Ref } from "vue";
|
|
3
|
+
import { VueNode } from "@v-c/util";
|
|
4
|
+
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Help/ProHelpPanel.d.ts
|
|
7
|
+
declare const selectKeyContextKey: InjectionKey<Ref<{
|
|
8
|
+
selectedKey?: string;
|
|
9
|
+
setSelectedKey?: (key: string) => void;
|
|
10
|
+
}>>;
|
|
11
|
+
declare function useSelectKeyProvider(props: Ref<{
|
|
12
|
+
selectedKey?: string;
|
|
13
|
+
setSelectedKey?: (key: string) => void;
|
|
14
|
+
}>): void;
|
|
15
|
+
declare function useSelectKeyContext(): Ref<{
|
|
16
|
+
selectedKey?: string;
|
|
17
|
+
setSelectedKey?: (key: string) => void;
|
|
18
|
+
}, {
|
|
19
|
+
selectedKey?: string;
|
|
20
|
+
setSelectedKey?: (key: string) => void;
|
|
21
|
+
}>;
|
|
22
|
+
interface ProHelpPanelProps {
|
|
23
|
+
/**
|
|
24
|
+
* 帮助面板的标题
|
|
25
|
+
*/
|
|
26
|
+
title?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 帮助面板首次打开时的默认选中文档的键名
|
|
29
|
+
*/
|
|
30
|
+
defaultSelectedKey?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 当前选中的帮助文档的键名。如果提供了这个 prop,那么该组件将是一个受控组件,其状态将由父组件管理。如果未提供,那么该组件将是一个非受控组件,其状态将在组件内部管理。
|
|
33
|
+
*/
|
|
34
|
+
selectedKey?: string;
|
|
35
|
+
'onUpdate:selectedKey'?: (selectedKey?: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* 当选中的文档键名发生变化时调用的回调函数。新的键名将作为参数传递给该函数。
|
|
38
|
+
*/
|
|
39
|
+
onSelectedKeyChange?: (key: string | undefined) => void;
|
|
40
|
+
/**
|
|
41
|
+
*控制左侧面板是否能够打开
|
|
42
|
+
*/
|
|
43
|
+
showLeftPanel?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 当左侧面板打开状态发生变化时调用的回调函数。新的打开状态将作为参数传递给该函数。
|
|
46
|
+
*/
|
|
47
|
+
'onUpdate:showLeftPanel'?: (showLeftPanel?: boolean) => void;
|
|
48
|
+
/**
|
|
49
|
+
* 当左侧面板打开状态发生变化时调用的回调函数。新的打开状态将作为参数传递给该函数。
|
|
50
|
+
*/
|
|
51
|
+
onShowLeftPanelChange?: (show: boolean) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 卡片的变体类型
|
|
54
|
+
*/
|
|
55
|
+
variant?: 'outlined' | 'borderless';
|
|
56
|
+
/**
|
|
57
|
+
* 当帮助面板关闭时调用的回调函数。
|
|
58
|
+
*/
|
|
59
|
+
onClose?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* 帮助面板的高度,可以是数字或字符串类型。
|
|
62
|
+
*/
|
|
63
|
+
height?: number | string;
|
|
64
|
+
/**
|
|
65
|
+
* 帮助面板的页脚
|
|
66
|
+
*/
|
|
67
|
+
footer?: VueNode;
|
|
68
|
+
/**
|
|
69
|
+
* 在一页内加载所有的 children 内容
|
|
70
|
+
*/
|
|
71
|
+
infiniteScrollFull?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 自定义渲染 extra 部分的内容
|
|
74
|
+
*
|
|
75
|
+
* @param {VueNode} collapsePannelAction - 折叠收起的左侧按钮
|
|
76
|
+
* @param {VueNode} helpSelectAction - 默认的帮助筛选按钮
|
|
77
|
+
* @param {VueNode} closeAction - 关闭操作按钮
|
|
78
|
+
* @returns {VueNode} - 返回自定义渲染的 extra 操作按钮
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
extraRender?: (collapsePannelAction: VueNode, helpSelectAction: VueNode, closeAction: VueNode) => VueNode;
|
|
82
|
+
}
|
|
83
|
+
declare const ProHelpPanel: _$vue.DefineSetupFnComponent<ProHelpPanelProps, {
|
|
84
|
+
'onUpdate:selectedKey': any;
|
|
85
|
+
'onUpdate:showLeftPanel': any;
|
|
86
|
+
}, CustomSlotsType<{
|
|
87
|
+
extraRender?: (collapsePannelAction: VueNode, helpSearchAction: VueNode, closeAction: VueNode) => VueNode;
|
|
88
|
+
footer?: () => VueNode;
|
|
89
|
+
default?: () => VueNode;
|
|
90
|
+
}>, ProHelpPanelProps & {
|
|
91
|
+
"onOnUpdate:selectedKey"?: ((...args: any) => any) | undefined;
|
|
92
|
+
"onOnUpdate:showLeftPanel"?: ((...args: any) => any) | undefined;
|
|
93
|
+
}, _$vue.PublicProps>;
|
|
94
|
+
//#endregion
|
|
95
|
+
export { ProHelpPanelProps, ProHelpPanel as default, selectKeyContextKey, useSelectKeyContext, useSelectKeyProvider };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { gLocaleObject } from "../../locales/index.js";
|
|
2
|
+
import { useProHelpContext } from "./HelpProvide.js";
|
|
3
|
+
import ProHelpContentPanel from "./ProHelpContentPanel.js";
|
|
4
|
+
import ProHelpSearch from "./ProHelpSearch.js";
|
|
5
|
+
import style_default from "./style/index.js";
|
|
6
|
+
import { Fragment, computed, createVNode, defineComponent, h, inject, mergeProps, provide, ref } from "vue";
|
|
7
|
+
import { isNeedOpenHash, useProConfig } from "@antdv-vue/pro-provider";
|
|
8
|
+
import { useMountMergeState, useState } from "@antdv-vue/pro-utils";
|
|
9
|
+
import { classNames } from "@v-c/util";
|
|
10
|
+
import { Card, ConfigProvider, Menu } from "antdv-next";
|
|
11
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
12
|
+
import { CloseOutlined, ProfileOutlined } from "@antdv-next/icons";
|
|
13
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
14
|
+
//#region src/components/Help/ProHelpPanel.tsx
|
|
15
|
+
const selectKeyContextKey = Symbol("selectKeyContext");
|
|
16
|
+
function useSelectKeyProvider(props) {
|
|
17
|
+
return provide(selectKeyContextKey, props);
|
|
18
|
+
}
|
|
19
|
+
function useSelectKeyContext() {
|
|
20
|
+
return inject(selectKeyContextKey, ref({}));
|
|
21
|
+
}
|
|
22
|
+
function getFormatMessage() {
|
|
23
|
+
return ({ id }) => {
|
|
24
|
+
return gLocaleObject()[id];
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const ProHelpPanel = /* @__PURE__ */ defineComponent((props, { emit, slots }) => {
|
|
28
|
+
const config = useConfig();
|
|
29
|
+
const prefixCls = computed(() => config.value.getPrefixCls("pro"));
|
|
30
|
+
const baseClassName = computed(() => `${prefixCls.value}-help`);
|
|
31
|
+
const proConfig = useProConfig();
|
|
32
|
+
const [hashId, cssVarCls] = style_default(baseClassName);
|
|
33
|
+
const proHelpContextProvide = useProHelpContext();
|
|
34
|
+
const [openKey, setOpenKey] = useState("");
|
|
35
|
+
const formatMessage = getFormatMessage();
|
|
36
|
+
const [selectedKey, setSelectedKey] = useMountMergeState(() => {
|
|
37
|
+
if (props.selectedKey) return props.selectedKey;
|
|
38
|
+
return props.defaultSelectedKey;
|
|
39
|
+
}, {
|
|
40
|
+
defaultValue: props.defaultSelectedKey,
|
|
41
|
+
value: computed(() => props.selectedKey),
|
|
42
|
+
onChange: (value) => {
|
|
43
|
+
emit("onUpdate:selectedKey", value);
|
|
44
|
+
props["onUpdate:selectedKey"]?.(value);
|
|
45
|
+
props.onSelectedKeyChange?.(value);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const [showLeftPanel, setShowLeftPanel] = useMountMergeState(() => {
|
|
49
|
+
if (props.showLeftPanel) return props.showLeftPanel;
|
|
50
|
+
return true;
|
|
51
|
+
}, {
|
|
52
|
+
defaultValue: true,
|
|
53
|
+
value: computed(() => props.showLeftPanel),
|
|
54
|
+
onChange: (show) => {
|
|
55
|
+
emit("onUpdate:showLeftPanel", show);
|
|
56
|
+
props["onUpdate:showLeftPanel"]?.(show);
|
|
57
|
+
props.onShowLeftPanelChange?.(show);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const dataSourceKeyMap = computed(() => {
|
|
61
|
+
const map = /* @__PURE__ */ new Map();
|
|
62
|
+
proHelpContextProvide.value.dataSource.forEach((page) => {
|
|
63
|
+
map.set(page.key, page);
|
|
64
|
+
page.children?.forEach((item) => {
|
|
65
|
+
map.set(item.key || item.title, {
|
|
66
|
+
parentKey: page.key,
|
|
67
|
+
...item
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
return map;
|
|
72
|
+
});
|
|
73
|
+
const parentKey = computed(() => dataSourceKeyMap.value.get(selectedKey.value)?.parentKey || "");
|
|
74
|
+
useSelectKeyProvider(computed(() => ({
|
|
75
|
+
selectedKey: selectedKey.value,
|
|
76
|
+
setSelectedKey
|
|
77
|
+
})));
|
|
78
|
+
return () => {
|
|
79
|
+
const { title = formatMessage({
|
|
80
|
+
id: "app.help.title",
|
|
81
|
+
defaultMessage: "帮助中心"
|
|
82
|
+
}), variant = "outlined", onClose, footer = slots.footer, extraRender = slots.extraRender, height } = props;
|
|
83
|
+
const defaultExtraActions = {
|
|
84
|
+
collapsePanelAction: createVNode("div", { "class": classNames(`${baseClassName.value}-actions-item`, hashId?.value, cssVarCls?.value) }, [createVNode(ProfileOutlined, mergeProps({ title: "collapse panel" }, { "onClick": () => setShowLeftPanel(!showLeftPanel.value) }), null)]),
|
|
85
|
+
helpSearchAction: createVNode(ProHelpSearch, {
|
|
86
|
+
"iconClassName": classNames(`${baseClassName.value}-actions-item`, hashId?.value, cssVarCls?.value),
|
|
87
|
+
"class": classNames(`${baseClassName.value}-actions-input`, hashId?.value, cssVarCls?.value),
|
|
88
|
+
"value": selectedKey.value,
|
|
89
|
+
"basePrefixCls": baseClassName.value,
|
|
90
|
+
"onChange": (value, item) => {
|
|
91
|
+
setSelectedKey(value);
|
|
92
|
+
setOpenKey(item.dataItemKey);
|
|
93
|
+
}
|
|
94
|
+
}, null),
|
|
95
|
+
closeAction: createVNode("div", { "class": classNames(`${baseClassName.value}-actions-item`, hashId?.value, cssVarCls?.value) }, [createVNode(CloseOutlined, { "onClick": () => onClose?.() }, null)])
|
|
96
|
+
};
|
|
97
|
+
return createVNode(Fragment, null, [createVNode(Card, {
|
|
98
|
+
"variant": variant,
|
|
99
|
+
"title": title,
|
|
100
|
+
"styles": { body: {
|
|
101
|
+
display: "flex",
|
|
102
|
+
padding: 0,
|
|
103
|
+
margin: 0,
|
|
104
|
+
height: "100%",
|
|
105
|
+
width: "100%"
|
|
106
|
+
} },
|
|
107
|
+
"size": "small",
|
|
108
|
+
"extra": createVNode("div", { "class": classNames(`${baseClassName.value}-actions`, hashId?.value, cssVarCls?.value) }, [extraRender ? extraRender(defaultExtraActions.collapsePanelAction, defaultExtraActions.helpSearchAction, defaultExtraActions.closeAction) : createVNode(Fragment, null, [
|
|
109
|
+
defaultExtraActions.collapsePanelAction,
|
|
110
|
+
defaultExtraActions.helpSearchAction,
|
|
111
|
+
onClose ? defaultExtraActions.closeAction : null
|
|
112
|
+
])])
|
|
113
|
+
}, { default: () => [showLeftPanel.value ? createVNode("div", {
|
|
114
|
+
"class": classNames(hashId?.value, cssVarCls?.value, `${baseClassName.value}-left-panel`),
|
|
115
|
+
"style": { height: unit(height) }
|
|
116
|
+
}, [createVNode(ConfigProvider, { "theme": {
|
|
117
|
+
hashed: isNeedOpenHash(),
|
|
118
|
+
token: {
|
|
119
|
+
lineHeight: 1.2,
|
|
120
|
+
fontSize: 12,
|
|
121
|
+
controlHeightLG: 26
|
|
122
|
+
},
|
|
123
|
+
components: { Menu: {
|
|
124
|
+
itemBorderRadius: proConfig.value.token.borderRadius,
|
|
125
|
+
activeBarWidth: 0,
|
|
126
|
+
activeBarBorderWidth: 0,
|
|
127
|
+
itemSelectedBg: proConfig.value.token.layout?.sider?.colorBgMenuItemSelected || "rgba(0, 0, 0, 0.04)",
|
|
128
|
+
itemActiveBg: proConfig.value.token.layout?.sider?.colorBgMenuItemHover || "rgba(0, 0, 0, 0.04)",
|
|
129
|
+
itemColor: proConfig.value.token.layout?.sider?.colorTextMenu || "rgba(0, 0, 0, 0.65)",
|
|
130
|
+
itemHoverColor: proConfig.value.token.layout?.sider?.colorTextMenuActive || "rgba(0, 0, 0, 0.85)",
|
|
131
|
+
itemSelectedColor: proConfig.value.token.layout?.sider?.colorTextMenuSelected || "rgba(0, 0, 0, 1)",
|
|
132
|
+
itemBg: "transparent",
|
|
133
|
+
subMenuItemBg: "transparent",
|
|
134
|
+
popupBg: proConfig.value.token?.colorBgElevated,
|
|
135
|
+
darkPopupBg: proConfig.value.token?.colorBgElevated
|
|
136
|
+
} }
|
|
137
|
+
} }, { default: () => [createVNode(Menu, {
|
|
138
|
+
"class": classNames(hashId?.value, cssVarCls?.value, `${baseClassName.value}-left-panel-menu`),
|
|
139
|
+
"openKeys": [parentKey.value, openKey.value],
|
|
140
|
+
"onOpenChange": (keys) => {
|
|
141
|
+
setOpenKey(keys.at(-1) || "");
|
|
142
|
+
},
|
|
143
|
+
"selectedKeys": selectedKey.value ? [selectedKey.value] : [],
|
|
144
|
+
"onSelect": ({ selectedKeys }) => {
|
|
145
|
+
setSelectedKey(selectedKeys.at(-1) || "");
|
|
146
|
+
},
|
|
147
|
+
"mode": "inline",
|
|
148
|
+
"items": proHelpContextProvide.value.dataSource.map((item) => {
|
|
149
|
+
return {
|
|
150
|
+
key: item.key,
|
|
151
|
+
label: item.title,
|
|
152
|
+
children: item.children.map((child) => {
|
|
153
|
+
return {
|
|
154
|
+
key: child.key,
|
|
155
|
+
label: child.title
|
|
156
|
+
};
|
|
157
|
+
})
|
|
158
|
+
};
|
|
159
|
+
})
|
|
160
|
+
}, null)] })]) : null, createVNode("div", {
|
|
161
|
+
"class": classNames(hashId?.value, cssVarCls?.value, `${baseClassName.value}-content-panel`),
|
|
162
|
+
"style": { height: unit(height) }
|
|
163
|
+
}, [selectedKey.value ? createVNode(ProHelpContentPanel, {
|
|
164
|
+
"parentItem": dataSourceKeyMap.value.get(parentKey.value),
|
|
165
|
+
"class": classNames(`${baseClassName.value}-content-render`, hashId?.value, cssVarCls?.value),
|
|
166
|
+
"selectedKey": selectedKey.value,
|
|
167
|
+
"onScroll": (key) => setSelectedKey(key)
|
|
168
|
+
}, null) : null, footer ? createVNode("div", { "class": classNames(`${baseClassName.value}-footer`, hashId?.value, cssVarCls?.value) }, [Array.isArray(footer) || typeof footer === "boolean" || typeof footer === "number" || typeof footer === "string" ? footer : h(footer)]) : null])] })]);
|
|
169
|
+
};
|
|
170
|
+
}, {
|
|
171
|
+
props: {
|
|
172
|
+
title: {
|
|
173
|
+
type: String,
|
|
174
|
+
required: false
|
|
175
|
+
},
|
|
176
|
+
defaultSelectedKey: {
|
|
177
|
+
type: String,
|
|
178
|
+
required: false
|
|
179
|
+
},
|
|
180
|
+
selectedKey: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: false
|
|
183
|
+
},
|
|
184
|
+
"onUpdate:selectedKey": {
|
|
185
|
+
type: Function,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
onSelectedKeyChange: {
|
|
189
|
+
type: Function,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
showLeftPanel: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
required: false,
|
|
195
|
+
default: void 0
|
|
196
|
+
},
|
|
197
|
+
"onUpdate:showLeftPanel": {
|
|
198
|
+
type: Function,
|
|
199
|
+
required: false
|
|
200
|
+
},
|
|
201
|
+
onShowLeftPanelChange: {
|
|
202
|
+
type: Function,
|
|
203
|
+
required: false
|
|
204
|
+
},
|
|
205
|
+
variant: {
|
|
206
|
+
type: String,
|
|
207
|
+
required: false
|
|
208
|
+
},
|
|
209
|
+
onClose: {
|
|
210
|
+
type: Function,
|
|
211
|
+
required: false
|
|
212
|
+
},
|
|
213
|
+
height: {
|
|
214
|
+
type: [Number, String],
|
|
215
|
+
required: false
|
|
216
|
+
},
|
|
217
|
+
footer: {
|
|
218
|
+
type: [
|
|
219
|
+
Object,
|
|
220
|
+
Function,
|
|
221
|
+
String,
|
|
222
|
+
Number,
|
|
223
|
+
null,
|
|
224
|
+
Boolean,
|
|
225
|
+
Array
|
|
226
|
+
],
|
|
227
|
+
required: false,
|
|
228
|
+
default: void 0
|
|
229
|
+
},
|
|
230
|
+
infiniteScrollFull: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
required: false,
|
|
233
|
+
default: void 0
|
|
234
|
+
},
|
|
235
|
+
extraRender: {
|
|
236
|
+
type: Function,
|
|
237
|
+
required: false
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
emits: ["onUpdate:selectedKey", "onUpdate:showLeftPanel"],
|
|
241
|
+
name: "ProHelpPanel",
|
|
242
|
+
inheritAttrs: false
|
|
243
|
+
});
|
|
244
|
+
//#endregion
|
|
245
|
+
export { ProHelpPanel as default, selectKeyContextKey, useSelectKeyContext, useSelectKeyProvider };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
|
+
import { PopoverProps } from "antdv-next";
|
|
4
|
+
import { CustomSlotsType, VueNode } from "@v-c/util/dist/type";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Help/ProHelpPopover.d.ts
|
|
7
|
+
type ProHelpPopoverProps = Omit<PopoverProps, 'content'> & {
|
|
8
|
+
/**
|
|
9
|
+
* 悬浮提示文字的 CSS 类名
|
|
10
|
+
*/
|
|
11
|
+
textClassName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Popover 内容的 content 的 CSS 类名
|
|
14
|
+
*/
|
|
15
|
+
popoverContextClassName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 悬浮提示文字的 CSS 样式对象
|
|
18
|
+
*/
|
|
19
|
+
textStyle?: CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* 当前选中的帮助文档的 key 值
|
|
22
|
+
*/
|
|
23
|
+
selectedKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* 可选的悬浮提示 Popover 组件的 Props,用于自定义悬浮提示的样式和行为。
|
|
26
|
+
* 该属性可以传递 Ant Design Popover 组件的 props,如位置、大小、触发方式等等
|
|
27
|
+
* @see popoverProps 注意,content 属性已经被从 PopoverProps 中删除,因为这个属性由 ProHelpPopover 内部控制。
|
|
28
|
+
*/
|
|
29
|
+
popoverProps?: PopoverProps;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 异步加载内容的面板组件
|
|
33
|
+
*/
|
|
34
|
+
declare const ProHelpPopover: _$vue.DefineSetupFnComponent<ProHelpPopoverProps, {}, CustomSlotsType<{
|
|
35
|
+
default?: () => VueNode;
|
|
36
|
+
}>, Omit<PopoverProps, "content"> & {
|
|
37
|
+
/**
|
|
38
|
+
* 悬浮提示文字的 CSS 类名
|
|
39
|
+
*/
|
|
40
|
+
textClassName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Popover 内容的 content 的 CSS 类名
|
|
43
|
+
*/
|
|
44
|
+
popoverContextClassName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 悬浮提示文字的 CSS 样式对象
|
|
47
|
+
*/
|
|
48
|
+
textStyle?: CSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* 当前选中的帮助文档的 key 值
|
|
51
|
+
*/
|
|
52
|
+
selectedKey: string;
|
|
53
|
+
/**
|
|
54
|
+
* 可选的悬浮提示 Popover 组件的 Props,用于自定义悬浮提示的样式和行为。
|
|
55
|
+
* 该属性可以传递 Ant Design Popover 组件的 props,如位置、大小、触发方式等等
|
|
56
|
+
* @see popoverProps 注意,content 属性已经被从 PopoverProps 中删除,因为这个属性由 ProHelpPopover 内部控制。
|
|
57
|
+
*/
|
|
58
|
+
popoverProps?: PopoverProps;
|
|
59
|
+
} & {}, _$vue.PublicProps>;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { ProHelpPopoverProps, ProHelpPopover as default };
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import ProHelpContentPanel from "./ProHelpContentPanel.js";
|
|
2
|
+
import { computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
3
|
+
import { useProConfig } from "@antdv-vue/pro-provider";
|
|
4
|
+
import { classNames } from "@v-c/util";
|
|
5
|
+
import { Popover } from "antdv-next";
|
|
6
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
7
|
+
//#region src/components/Help/ProHelpPopover.tsx
|
|
8
|
+
/**
|
|
9
|
+
* 异步加载内容的面板组件
|
|
10
|
+
*/
|
|
11
|
+
const ProHelpPopover = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
12
|
+
const config = useConfig();
|
|
13
|
+
const proConfig = useProConfig();
|
|
14
|
+
const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
|
|
15
|
+
const baseClassName = computed(() => `${prefixCls.value}-help-popover`);
|
|
16
|
+
return () => {
|
|
17
|
+
return createVNode(Popover, mergeProps({
|
|
18
|
+
"styles": { container: { padding: 0 } },
|
|
19
|
+
"content": createVNode("div", { "class": classNames(`${baseClassName.value}-content`, proConfig.value.hashId, props.popoverContextClassName) }, [createVNode(ProHelpContentPanel, { "selectedKey": props.selectedKey }, null)])
|
|
20
|
+
}, props.popoverProps), { default: () => [createVNode("span", { "class": classNames(`${baseClassName.value}-text`, proConfig.value.hashId, props.textClassName) }, [slots.default?.()])] });
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
props: {
|
|
24
|
+
title: {
|
|
25
|
+
type: [
|
|
26
|
+
Function,
|
|
27
|
+
String,
|
|
28
|
+
Number,
|
|
29
|
+
null,
|
|
30
|
+
Object,
|
|
31
|
+
Boolean
|
|
32
|
+
],
|
|
33
|
+
required: false,
|
|
34
|
+
default: void 0
|
|
35
|
+
},
|
|
36
|
+
classes: {
|
|
37
|
+
type: [Object, Function],
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
styles: {
|
|
41
|
+
type: [Object, Function],
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
afterOpenChange: {
|
|
45
|
+
type: Function,
|
|
46
|
+
required: false
|
|
47
|
+
},
|
|
48
|
+
builtinPlacements: { required: false },
|
|
49
|
+
overlay: {
|
|
50
|
+
type: [
|
|
51
|
+
Function,
|
|
52
|
+
String,
|
|
53
|
+
Number,
|
|
54
|
+
null,
|
|
55
|
+
Object,
|
|
56
|
+
Boolean
|
|
57
|
+
],
|
|
58
|
+
required: false,
|
|
59
|
+
default: void 0
|
|
60
|
+
},
|
|
61
|
+
openClass: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
unique: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
required: false,
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
align: {
|
|
71
|
+
type: Object,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
arrow: {
|
|
75
|
+
type: [Boolean, Object],
|
|
76
|
+
required: false,
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
autoAdjustOverflow: {
|
|
80
|
+
type: [Boolean, Object],
|
|
81
|
+
required: false,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
color: { required: false },
|
|
85
|
+
open: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
required: false,
|
|
88
|
+
default: void 0
|
|
89
|
+
},
|
|
90
|
+
defaultOpen: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
required: false,
|
|
93
|
+
default: void 0
|
|
94
|
+
},
|
|
95
|
+
disabled: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: false,
|
|
98
|
+
default: void 0
|
|
99
|
+
},
|
|
100
|
+
getPopupContainer: {
|
|
101
|
+
type: Function,
|
|
102
|
+
required: false
|
|
103
|
+
},
|
|
104
|
+
destroyOnHidden: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
required: false,
|
|
107
|
+
default: void 0
|
|
108
|
+
},
|
|
109
|
+
zIndex: {
|
|
110
|
+
type: Number,
|
|
111
|
+
required: false
|
|
112
|
+
},
|
|
113
|
+
placement: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: false
|
|
116
|
+
},
|
|
117
|
+
trigger: {
|
|
118
|
+
type: [String, Array],
|
|
119
|
+
required: false
|
|
120
|
+
},
|
|
121
|
+
fresh: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
required: false,
|
|
124
|
+
default: void 0
|
|
125
|
+
},
|
|
126
|
+
mouseEnterDelay: {
|
|
127
|
+
type: Number,
|
|
128
|
+
required: false
|
|
129
|
+
},
|
|
130
|
+
mouseLeaveDelay: {
|
|
131
|
+
type: Number,
|
|
132
|
+
required: false
|
|
133
|
+
},
|
|
134
|
+
getTooltipContainer: {
|
|
135
|
+
type: Function,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
138
|
+
motion: {
|
|
139
|
+
type: Object,
|
|
140
|
+
required: false
|
|
141
|
+
},
|
|
142
|
+
rootClass: {
|
|
143
|
+
type: String,
|
|
144
|
+
required: false
|
|
145
|
+
},
|
|
146
|
+
prefixCls: {
|
|
147
|
+
type: String,
|
|
148
|
+
required: false
|
|
149
|
+
},
|
|
150
|
+
"onUpdate:open": {
|
|
151
|
+
type: Function,
|
|
152
|
+
required: false
|
|
153
|
+
},
|
|
154
|
+
onOpenChange: {
|
|
155
|
+
type: Function,
|
|
156
|
+
required: false
|
|
157
|
+
},
|
|
158
|
+
textClassName: {
|
|
159
|
+
type: String,
|
|
160
|
+
required: false
|
|
161
|
+
},
|
|
162
|
+
popoverContextClassName: {
|
|
163
|
+
type: String,
|
|
164
|
+
required: false
|
|
165
|
+
},
|
|
166
|
+
textStyle: {
|
|
167
|
+
type: Object,
|
|
168
|
+
required: false
|
|
169
|
+
},
|
|
170
|
+
selectedKey: {
|
|
171
|
+
type: String,
|
|
172
|
+
required: true
|
|
173
|
+
},
|
|
174
|
+
popoverProps: {
|
|
175
|
+
type: Object,
|
|
176
|
+
required: false
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
name: "ProHelpPopover",
|
|
180
|
+
inheritAttrs: false
|
|
181
|
+
});
|
|
182
|
+
//#endregion
|
|
183
|
+
export { ProHelpPopover as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { SelectProps } from "antdv-next";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Help/ProHelpSearch.d.ts
|
|
5
|
+
type ProHelpSearchProps = Omit<SelectProps, 'onSearch' | 'optionFilterProp' | 'options' | 'filterOption'> & {
|
|
6
|
+
iconClassName?: string;
|
|
7
|
+
basePrefixCls?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ProHelpSearch: _$vue.DefineSetupFnComponent<ProHelpSearchProps, {}, {}, Omit<SelectProps, "onSearch" | "optionFilterProp" | "options" | "filterOption"> & {
|
|
10
|
+
iconClassName?: string;
|
|
11
|
+
basePrefixCls?: string;
|
|
12
|
+
} & {}, _$vue.PublicProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ProHelpSearchProps, ProHelpSearch as default };
|