@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,96 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { Keyframes, mergeToken, unit } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/Help/style/index.ts
|
|
4
|
+
const actionsInputAnimal = new Keyframes("actionsInputAnimal", {
|
|
5
|
+
"0%": { width: 0 },
|
|
6
|
+
"30%": { width: 20 },
|
|
7
|
+
"100%": { width: 120 }
|
|
8
|
+
});
|
|
9
|
+
const genProHelpStyle = (token) => {
|
|
10
|
+
return { [token.componentCls]: {
|
|
11
|
+
"&-popover-text": {
|
|
12
|
+
color: token.colorPrimary,
|
|
13
|
+
cursor: "pointer",
|
|
14
|
+
boxSizing: "border-box"
|
|
15
|
+
},
|
|
16
|
+
"&-popover-content": {
|
|
17
|
+
maxWidth: 300,
|
|
18
|
+
height: 600,
|
|
19
|
+
maxHeight: token.calc?.("100vh").sub(200).equal(),
|
|
20
|
+
overflow: "auto",
|
|
21
|
+
paddingInline: 20,
|
|
22
|
+
paddingBlockStart: 24,
|
|
23
|
+
paddingBlockEnd: 32,
|
|
24
|
+
boxSizing: "border-box"
|
|
25
|
+
},
|
|
26
|
+
"&-left-panel": {
|
|
27
|
+
overflow: "auto",
|
|
28
|
+
boxSizing: "border-box",
|
|
29
|
+
borderInlineEnd: `${unit(token?.lineWidth)} ${token.lineType} ${token?.colorBorderSecondary}`,
|
|
30
|
+
minHeight: 648,
|
|
31
|
+
minWidth: 190,
|
|
32
|
+
maxWidth: 190,
|
|
33
|
+
"&-menu": {
|
|
34
|
+
width: 190,
|
|
35
|
+
boxSizing: "border-box",
|
|
36
|
+
minWidth: 190,
|
|
37
|
+
height: token.calc("100%").sub(40).equal(),
|
|
38
|
+
marginBlock: 20
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"&-content": {
|
|
42
|
+
"&-render": {
|
|
43
|
+
paddingBlock: 20,
|
|
44
|
+
paddingInline: 24,
|
|
45
|
+
flex: 1
|
|
46
|
+
},
|
|
47
|
+
"&-footer": { padding: 8 },
|
|
48
|
+
"&-panel": {
|
|
49
|
+
minWidth: 200,
|
|
50
|
+
overflow: "auto",
|
|
51
|
+
flex: 1,
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "column",
|
|
54
|
+
boxSizing: "border-box",
|
|
55
|
+
minHeight: 648,
|
|
56
|
+
img: { width: "100%" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"&-actions": {
|
|
60
|
+
display: "flex",
|
|
61
|
+
boxSizing: "border-box",
|
|
62
|
+
gap: token.marginSM,
|
|
63
|
+
"&-item": {
|
|
64
|
+
display: "flex",
|
|
65
|
+
boxSizing: "border-box",
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
justifyItems: "center",
|
|
68
|
+
padding: 4,
|
|
69
|
+
height: 24,
|
|
70
|
+
minWidth: 24,
|
|
71
|
+
cursor: "pointer",
|
|
72
|
+
borderRadius: token.borderRadius,
|
|
73
|
+
"&:hover": { backgroundColor: token.colorBgTextHover }
|
|
74
|
+
},
|
|
75
|
+
"&-input": {
|
|
76
|
+
maxWidth: 120,
|
|
77
|
+
width: 120,
|
|
78
|
+
animationName: actionsInputAnimal,
|
|
79
|
+
animationDuration: "0.1s",
|
|
80
|
+
animationTimingFunction: "linear"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"&-search-list-item-content": {
|
|
84
|
+
flex: "auto",
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
whiteSpace: "nowrap",
|
|
87
|
+
textOverflow: "ellipsis",
|
|
88
|
+
"&-light": { color: token.colorPrimary }
|
|
89
|
+
}
|
|
90
|
+
} };
|
|
91
|
+
};
|
|
92
|
+
var style_default = useStyle("ProHelp", (token) => {
|
|
93
|
+
return [genProHelpStyle(mergeToken(token, {}))];
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
export { actionsInputAnimal, style_default as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { MessageDescriptor } from "../../typing.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
import { DefineSetupFnComponent } from "vue";
|
|
4
|
+
import { TabsProps } from "antdv-next";
|
|
5
|
+
import { CustomSlotsType, VueNode } from "@v-c/util/dist/type";
|
|
6
|
+
|
|
7
|
+
//#region src/components/MultiTab/index.d.ts
|
|
8
|
+
interface MultiTabItem {
|
|
9
|
+
key: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
title: VueNode;
|
|
12
|
+
closable?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
icon?: VueNode | DefineSetupFnComponent<any>;
|
|
16
|
+
meta?: Record<string, any>;
|
|
17
|
+
}
|
|
18
|
+
interface MultiTabProps {
|
|
19
|
+
layout?: 'side' | 'top' | 'mix' | 'left';
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
siderWidth?: number;
|
|
22
|
+
collapsedWidth?: number;
|
|
23
|
+
isMobile?: boolean;
|
|
24
|
+
firstMenuWidth?: number;
|
|
25
|
+
fixedMultiTab?: boolean;
|
|
26
|
+
hasSiderMenu?: boolean;
|
|
27
|
+
prefixCls?: string;
|
|
28
|
+
items?: MultiTabItem[];
|
|
29
|
+
activeKey?: string;
|
|
30
|
+
tabsProps?: TabsProps;
|
|
31
|
+
onChange?: (key: string, item: MultiTabItem) => void;
|
|
32
|
+
onClose?: (key: string, item: MultiTabItem) => void;
|
|
33
|
+
onCloseOther?: (key: string, item: MultiTabItem) => void;
|
|
34
|
+
onCloseLeft?: (key: string, item: MultiTabItem) => void;
|
|
35
|
+
onCloseRight?: (key: string, item: MultiTabItem) => void;
|
|
36
|
+
onRefresh?: (key: string, item: MultiTabItem) => void;
|
|
37
|
+
itemRender?: (options: {
|
|
38
|
+
item: MultiTabItem;
|
|
39
|
+
active: boolean;
|
|
40
|
+
dom: VueNode;
|
|
41
|
+
}) => VueNode;
|
|
42
|
+
menuRender?: (options: {
|
|
43
|
+
item?: MultiTabItem;
|
|
44
|
+
actions: MultiTabAction[];
|
|
45
|
+
}) => VueNode;
|
|
46
|
+
}
|
|
47
|
+
declare function getFormatMessage(): (data: MessageDescriptor) => string | undefined;
|
|
48
|
+
type MultiTabAction = 'change' | 'close' | 'closeOther' | 'closeLeft' | 'closeRight' | 'refresh';
|
|
49
|
+
interface MultiTabActionItem {
|
|
50
|
+
key: string;
|
|
51
|
+
title: VueNode;
|
|
52
|
+
closable?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface MultiTabActionDisabledOptions {
|
|
55
|
+
items?: MultiTabActionItem[];
|
|
56
|
+
item?: MultiTabActionItem;
|
|
57
|
+
activeKey?: string;
|
|
58
|
+
}
|
|
59
|
+
declare function multiTabActionDisabled(action: Exclude<MultiTabAction, 'change'>, options: MultiTabActionDisabledOptions): boolean;
|
|
60
|
+
declare const MultiTab: DefineSetupFnComponent<MultiTabProps, {}, CustomSlotsType<{
|
|
61
|
+
itemRender?: (options: {
|
|
62
|
+
item: MultiTabItem;
|
|
63
|
+
active: boolean;
|
|
64
|
+
}) => VueNode;
|
|
65
|
+
menuRender?: (options: {
|
|
66
|
+
item?: MultiTabItem;
|
|
67
|
+
actions: MultiTabAction[];
|
|
68
|
+
}) => VueNode;
|
|
69
|
+
}>, MultiTabProps & {}, _$vue.PublicProps>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { MultiTabAction, MultiTabActionDisabledOptions, MultiTabActionItem, MultiTabItem, MultiTabProps, MultiTab as default, getFormatMessage, multiTabActionDisabled };
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { gLocaleObject } from "../../locales/index.js";
|
|
2
|
+
import style_default from "./style/index.js";
|
|
3
|
+
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
4
|
+
import { classNames } from "@v-c/util";
|
|
5
|
+
import { Dropdown, Tabs } from "antdv-next";
|
|
6
|
+
import { CloseOutlined, EllipsisOutlined, ReloadOutlined } from "@antdv-next/icons";
|
|
7
|
+
import { useConfig } from "antdv-next/dist/config-provider/index";
|
|
8
|
+
//#region src/components/MultiTab/index.tsx
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
function getFormatMessage() {
|
|
13
|
+
return ({ id, defaultMessage }) => {
|
|
14
|
+
return gLocaleObject()[id] || defaultMessage;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function multiTabActionDisabled(action, options) {
|
|
18
|
+
const { items = [], activeKey } = options;
|
|
19
|
+
const item = options.item || items.find((tab) => tab.key === activeKey);
|
|
20
|
+
if (!item) return true;
|
|
21
|
+
const itemIndex = items.findIndex((tab) => tab.key === item.key);
|
|
22
|
+
if (itemIndex < 0) return true;
|
|
23
|
+
if (action === "close") return options.item?.closable === false;
|
|
24
|
+
if (action === "closeLeft") return itemIndex <= 0;
|
|
25
|
+
if (action === "closeRight") return itemIndex >= items.length - 1;
|
|
26
|
+
if (action === "closeOther") return items.length <= 1;
|
|
27
|
+
if (action === "refresh") return item.key !== activeKey;
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
const actionLocaleMap = {
|
|
31
|
+
close: {
|
|
32
|
+
id: "app.multiTab.close",
|
|
33
|
+
defaultMessage: "关闭当前"
|
|
34
|
+
},
|
|
35
|
+
closeOther: {
|
|
36
|
+
id: "app.multiTab.closeOther",
|
|
37
|
+
defaultMessage: "关闭其他"
|
|
38
|
+
},
|
|
39
|
+
closeLeft: {
|
|
40
|
+
id: "app.multiTab.closeLeft",
|
|
41
|
+
defaultMessage: "关闭到左侧"
|
|
42
|
+
},
|
|
43
|
+
closeRight: {
|
|
44
|
+
id: "app.multiTab.closeRight",
|
|
45
|
+
defaultMessage: "关闭到右侧"
|
|
46
|
+
},
|
|
47
|
+
refresh: {
|
|
48
|
+
id: "app.multiTab.refresh",
|
|
49
|
+
defaultMessage: "刷新当前页"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function capitalize(str) {
|
|
53
|
+
if (!str) return "";
|
|
54
|
+
return str[0]?.toUpperCase() + str.slice(1);
|
|
55
|
+
}
|
|
56
|
+
function getMoreActions(item) {
|
|
57
|
+
if (!item) return [];
|
|
58
|
+
return [
|
|
59
|
+
"closeOther",
|
|
60
|
+
"close",
|
|
61
|
+
"refresh"
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
function getTabActions(item) {
|
|
65
|
+
if (!item) return [];
|
|
66
|
+
return [
|
|
67
|
+
"closeOther",
|
|
68
|
+
"closeLeft",
|
|
69
|
+
"closeRight",
|
|
70
|
+
"refresh"
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
const MultiTab = /* @__PURE__ */ defineComponent((props, { expose, slots }) => {
|
|
74
|
+
const config = useConfig();
|
|
75
|
+
const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
|
|
76
|
+
const baseClassName = computed(() => `${prefixCls.value}-multi-tab`);
|
|
77
|
+
const [hashId, cssVarCls] = style_default(baseClassName);
|
|
78
|
+
const formatMessage = getFormatMessage();
|
|
79
|
+
const activeItem = computed(() => {
|
|
80
|
+
const items = props.items || [];
|
|
81
|
+
return items.find((item) => item.key === props.activeKey) || items[0];
|
|
82
|
+
});
|
|
83
|
+
const handleAction = (action, item) => {
|
|
84
|
+
if (!item) return;
|
|
85
|
+
props[`on${capitalize(action)}`](item.key, item);
|
|
86
|
+
};
|
|
87
|
+
const renderMenu = (item, type = "tab") => {
|
|
88
|
+
const { menuRender = slots.menuRender } = props;
|
|
89
|
+
const actions = type === "more" ? getMoreActions(item) : getTabActions(item);
|
|
90
|
+
const customMenu = menuRender?.({
|
|
91
|
+
item,
|
|
92
|
+
actions
|
|
93
|
+
});
|
|
94
|
+
if (customMenu) return customMenu;
|
|
95
|
+
return {
|
|
96
|
+
items: actions.map((action) => ({
|
|
97
|
+
key: action,
|
|
98
|
+
label: formatMessage(actionLocaleMap[action]),
|
|
99
|
+
disabled: multiTabActionDisabled(action, {
|
|
100
|
+
items: props.items,
|
|
101
|
+
item,
|
|
102
|
+
activeKey: props.activeKey
|
|
103
|
+
})
|
|
104
|
+
})),
|
|
105
|
+
onClick: ({ key }) => handleAction(key, item)
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
const renderItemLabel = (item) => {
|
|
109
|
+
const { itemRender = slots.itemRender, items = [] } = props;
|
|
110
|
+
const active = item.key === props.activeKey;
|
|
111
|
+
const showCloseAction = item.closable !== false;
|
|
112
|
+
const actionIconFirstClassName = `${baseClassName.value}-action-icon-first`;
|
|
113
|
+
const defaultDom = createVNode("span", { "class": classNames(`${baseClassName.value}-title`, hashId?.value, cssVarCls?.value) }, [
|
|
114
|
+
item.icon && createVNode("span", { "class": classNames(`${baseClassName.value}-icon`, hashId?.value, cssVarCls?.value) }, [item.icon]),
|
|
115
|
+
createVNode("span", { "class": classNames(`${baseClassName.value}-title-text`, hashId?.value, cssVarCls?.value) }, [item.title]),
|
|
116
|
+
active && createVNode(ReloadOutlined, {
|
|
117
|
+
"class": classNames(`${baseClassName.value}-reload-btn`, actionIconFirstClassName, hashId?.value, cssVarCls?.value),
|
|
118
|
+
"spin": item.loading,
|
|
119
|
+
"onClick": (event) => {
|
|
120
|
+
event.stopPropagation();
|
|
121
|
+
handleAction("refresh", item);
|
|
122
|
+
}
|
|
123
|
+
}, null),
|
|
124
|
+
showCloseAction && createVNode(Fragment, null, [items.length > 1 ? createVNode(CloseOutlined, {
|
|
125
|
+
"data-action": "close",
|
|
126
|
+
"data-key": item.key,
|
|
127
|
+
"class": classNames(`${baseClassName.value}-close-btn`, !active && actionIconFirstClassName, hashId?.value, cssVarCls?.value),
|
|
128
|
+
"onClick": (event) => {
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
handleAction("close", item);
|
|
131
|
+
}
|
|
132
|
+
}, null) : void 0])
|
|
133
|
+
]);
|
|
134
|
+
const itemDom = itemRender?.({
|
|
135
|
+
item,
|
|
136
|
+
active,
|
|
137
|
+
dom: defaultDom
|
|
138
|
+
}) || defaultDom;
|
|
139
|
+
const menu = renderMenu(item, "tab");
|
|
140
|
+
if (menu && typeof menu === "object" && "items" in menu) return createVNode(Dropdown, {
|
|
141
|
+
"trigger": ["contextMenu"],
|
|
142
|
+
"menu": menu
|
|
143
|
+
}, _isSlot(itemDom) ? itemDom : { default: () => [itemDom] });
|
|
144
|
+
return createVNode(Dropdown, {
|
|
145
|
+
"trigger": ["contextMenu"],
|
|
146
|
+
"popupRender": () => menu
|
|
147
|
+
}, _isSlot(itemDom) ? itemDom : { default: () => [itemDom] });
|
|
148
|
+
};
|
|
149
|
+
expose({});
|
|
150
|
+
return () => {
|
|
151
|
+
const { items = [], fixedMultiTab, tabsProps, collapsed = false, layout, firstMenuWidth = 80, hasSiderMenu, isMobile, siderWidth = 256, collapsedWidth = 64 } = props;
|
|
152
|
+
if (!items.length || items.length < 1) return null;
|
|
153
|
+
const activeActions = getMoreActions(activeItem.value);
|
|
154
|
+
const moreMenu = renderMenu(activeItem.value, "more");
|
|
155
|
+
return createVNode(Fragment, null, [fixedMultiTab && createVNode("div", {
|
|
156
|
+
"class": classNames(`${baseClassName.value}-fixed-wapper`, hashId?.value, cssVarCls?.value),
|
|
157
|
+
"style": {
|
|
158
|
+
width: "100%",
|
|
159
|
+
height: "64px",
|
|
160
|
+
background: "transparent"
|
|
161
|
+
}
|
|
162
|
+
}, null), createVNode(Tabs, mergeProps(tabsProps, {
|
|
163
|
+
"type": "card",
|
|
164
|
+
"activeKey": props.activeKey,
|
|
165
|
+
"class": classNames(baseClassName.value, { [`${baseClassName.value}-fixed`]: fixedMultiTab }, hashId?.value, cssVarCls?.value),
|
|
166
|
+
"styles": {
|
|
167
|
+
...tabsProps?.styles,
|
|
168
|
+
root: { width: !fixedMultiTab || ![
|
|
169
|
+
"side",
|
|
170
|
+
"left",
|
|
171
|
+
"mix"
|
|
172
|
+
].includes(layout) || isMobile || !hasSiderMenu ? "100%" : `calc(100% - ${collapsed ? layout === "left" ? siderWidth < collapsedWidth + firstMenuWidth ? siderWidth : collapsedWidth + firstMenuWidth : collapsedWidth : siderWidth}px)` }
|
|
173
|
+
},
|
|
174
|
+
"onChange": (key) => {
|
|
175
|
+
const item = items.find((tab) => tab.key === key);
|
|
176
|
+
if (item) props.onChange?.(key, item);
|
|
177
|
+
},
|
|
178
|
+
"tabBarExtraContent": {
|
|
179
|
+
left: createVNode("div", { "class": classNames(`${baseClassName.value}-extra-left`, hashId?.value, cssVarCls?.value) }, null),
|
|
180
|
+
right: activeActions.length ? createVNode(Dropdown, {
|
|
181
|
+
"menu": moreMenu && typeof moreMenu === "object" && "items" in moreMenu ? moreMenu : void 0,
|
|
182
|
+
"popupRender": moreMenu && !(typeof moreMenu === "object" && "items" in moreMenu) ? () => moreMenu : void 0
|
|
183
|
+
}, { default: () => [createVNode(EllipsisOutlined, {
|
|
184
|
+
"rotate": 90,
|
|
185
|
+
"class": classNames(`${baseClassName.value}-dropdown-menu-btn`, hashId?.value, cssVarCls?.value)
|
|
186
|
+
}, null)] }) : void 0
|
|
187
|
+
},
|
|
188
|
+
"items": items.map((item) => ({
|
|
189
|
+
key: item.key,
|
|
190
|
+
disabled: item.disabled,
|
|
191
|
+
label: renderItemLabel(item)
|
|
192
|
+
}))
|
|
193
|
+
}), null)]);
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
props: {
|
|
197
|
+
layout: {
|
|
198
|
+
type: String,
|
|
199
|
+
required: false
|
|
200
|
+
},
|
|
201
|
+
collapsed: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
required: false,
|
|
204
|
+
default: void 0
|
|
205
|
+
},
|
|
206
|
+
siderWidth: {
|
|
207
|
+
type: Number,
|
|
208
|
+
required: false
|
|
209
|
+
},
|
|
210
|
+
collapsedWidth: {
|
|
211
|
+
type: Number,
|
|
212
|
+
required: false
|
|
213
|
+
},
|
|
214
|
+
isMobile: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
required: false,
|
|
217
|
+
default: void 0
|
|
218
|
+
},
|
|
219
|
+
firstMenuWidth: {
|
|
220
|
+
type: Number,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
fixedMultiTab: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
required: false,
|
|
226
|
+
default: void 0
|
|
227
|
+
},
|
|
228
|
+
hasSiderMenu: {
|
|
229
|
+
type: Boolean,
|
|
230
|
+
required: false,
|
|
231
|
+
default: void 0
|
|
232
|
+
},
|
|
233
|
+
prefixCls: {
|
|
234
|
+
type: String,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
items: {
|
|
238
|
+
type: Array,
|
|
239
|
+
required: false
|
|
240
|
+
},
|
|
241
|
+
activeKey: {
|
|
242
|
+
type: String,
|
|
243
|
+
required: false
|
|
244
|
+
},
|
|
245
|
+
tabsProps: {
|
|
246
|
+
type: Object,
|
|
247
|
+
required: false
|
|
248
|
+
},
|
|
249
|
+
onChange: {
|
|
250
|
+
type: Function,
|
|
251
|
+
required: false
|
|
252
|
+
},
|
|
253
|
+
onClose: {
|
|
254
|
+
type: Function,
|
|
255
|
+
required: false
|
|
256
|
+
},
|
|
257
|
+
onCloseOther: {
|
|
258
|
+
type: Function,
|
|
259
|
+
required: false
|
|
260
|
+
},
|
|
261
|
+
onCloseLeft: {
|
|
262
|
+
type: Function,
|
|
263
|
+
required: false
|
|
264
|
+
},
|
|
265
|
+
onCloseRight: {
|
|
266
|
+
type: Function,
|
|
267
|
+
required: false
|
|
268
|
+
},
|
|
269
|
+
onRefresh: {
|
|
270
|
+
type: Function,
|
|
271
|
+
required: false
|
|
272
|
+
},
|
|
273
|
+
itemRender: {
|
|
274
|
+
type: Function,
|
|
275
|
+
required: false
|
|
276
|
+
},
|
|
277
|
+
menuRender: {
|
|
278
|
+
type: Function,
|
|
279
|
+
required: false
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
name: "MultiTab",
|
|
283
|
+
inheritAttrs: false,
|
|
284
|
+
emits: [
|
|
285
|
+
"change",
|
|
286
|
+
"close",
|
|
287
|
+
"collapsed",
|
|
288
|
+
"hasSiderMenu",
|
|
289
|
+
"isMobile",
|
|
290
|
+
"tabsProps",
|
|
291
|
+
"closeOther",
|
|
292
|
+
"closeLeft",
|
|
293
|
+
"closeRight",
|
|
294
|
+
"refresh",
|
|
295
|
+
"fixedMultiTab",
|
|
296
|
+
"siderWidth",
|
|
297
|
+
"layout",
|
|
298
|
+
"collapsedWidth",
|
|
299
|
+
"firstMenuWidth"
|
|
300
|
+
]
|
|
301
|
+
});
|
|
302
|
+
//#endregion
|
|
303
|
+
export { MultiTab as default, getFormatMessage, multiTabActionDisabled };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MultiTab/style/index.d.ts
|
|
5
|
+
interface ProMultiTabToken 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 { ProMultiTabToken, _default as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useStyle } from "@antdv-vue/pro-provider";
|
|
2
|
+
import { mergeToken } from "@antdv-next/cssinjs";
|
|
3
|
+
//#region src/components/MultiTab/style/index.ts
|
|
4
|
+
const genProMultiTabStyle = (token) => {
|
|
5
|
+
const { componentCls } = token;
|
|
6
|
+
return { [componentCls]: {
|
|
7
|
+
[`&${token.antCls}-tabs`]: {
|
|
8
|
+
backgroundColor: token.colorBgContainer,
|
|
9
|
+
width: "100%",
|
|
10
|
+
paddingBlockStart: token.paddingXS,
|
|
11
|
+
zIndex: 8,
|
|
12
|
+
[`&${token.antCls}-tabs-card${token.antCls}-tabs-top`]: { [`${token.antCls}-tabs-nav`]: { [`${token.antCls}-tabs-tab+${token.antCls}-tabs-tab`]: { marginInlineStart: token.calc(token.marginXS).sub(3).equal() } } },
|
|
13
|
+
[`${componentCls}-extra-left`]: { width: 24 },
|
|
14
|
+
[`${componentCls}-title`]: {
|
|
15
|
+
display: "inline-flex",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
maxWidth: "100%",
|
|
18
|
+
[`${componentCls}-icon`]: { paddingInlineEnd: token.paddingXXS },
|
|
19
|
+
[`${componentCls}-title-text`]: {
|
|
20
|
+
minWidth: 0,
|
|
21
|
+
overflow: "hidden",
|
|
22
|
+
textOverflow: "ellipsis",
|
|
23
|
+
whiteSpace: "nowrap"
|
|
24
|
+
},
|
|
25
|
+
[`${componentCls}-action-icon-first`]: { marginInlineStart: token.paddingXS },
|
|
26
|
+
[`${componentCls}-reload-btn`]: {
|
|
27
|
+
fontSize: token.fontSizeSM,
|
|
28
|
+
color: token.colorIcon,
|
|
29
|
+
background: "transparent",
|
|
30
|
+
border: "none",
|
|
31
|
+
outline: "none",
|
|
32
|
+
cursor: "pointer",
|
|
33
|
+
transition: `all ${token.motionDurationSlow}`,
|
|
34
|
+
"&:hover": { color: token.colorText }
|
|
35
|
+
},
|
|
36
|
+
[`${componentCls}-close-btn`]: {
|
|
37
|
+
fontSize: token.fontSizeSM,
|
|
38
|
+
color: token.colorIcon,
|
|
39
|
+
background: "transparent",
|
|
40
|
+
border: "none",
|
|
41
|
+
outline: "none",
|
|
42
|
+
cursor: "pointer",
|
|
43
|
+
transition: `all ${token.motionDurationSlow}`,
|
|
44
|
+
"&:hover": { color: token.colorText }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"&-dropdown-menu-btn": {
|
|
49
|
+
display: "flex",
|
|
50
|
+
justifyContent: "center",
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
cursor: "pointer",
|
|
53
|
+
marginInlineEnd: token.marginXS,
|
|
54
|
+
padding: token.paddingSM
|
|
55
|
+
},
|
|
56
|
+
"&-fixed": {
|
|
57
|
+
position: "fixed",
|
|
58
|
+
insetBlockStart: token.proLayoutHeaderHeightLayoutHeader || 56,
|
|
59
|
+
insetInlineEnd: 0
|
|
60
|
+
}
|
|
61
|
+
} };
|
|
62
|
+
};
|
|
63
|
+
var style_default = useStyle("ProMultiTab", (token) => {
|
|
64
|
+
return [genProMultiTabStyle(mergeToken(token, {}))];
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { style_default as default };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { FooterToolbarProps } from "../FooterToolbar/index.js";
|
|
2
|
+
import { PageHeaderProps } from "../PageHeader/index.js";
|
|
3
|
+
import { PageContainerToken } from "./style/index.js";
|
|
4
|
+
import { BreadcrumbRender, PageHeaderRender } from "../../RenderTypings.js";
|
|
5
|
+
import * as _$vue from "vue";
|
|
6
|
+
import { VNode } from "vue";
|
|
7
|
+
import { GenerateStyle } from "@antdv-vue/pro-provider";
|
|
8
|
+
import { AffixProps, AvatarProps, BreadcrumbProps, SpinProps, TabsProps, WatermarkProps } from "antdv-next";
|
|
9
|
+
import { VueNode } from "antdv-next/dist/_util/type";
|
|
10
|
+
import { CustomSlotsType } from "@v-c/util/dist/type";
|
|
11
|
+
|
|
12
|
+
//#region src/components/PageContainer/PageContainerBase.d.ts
|
|
13
|
+
type PageContainerProps = {
|
|
14
|
+
avatar?: AvatarProps;
|
|
15
|
+
/**
|
|
16
|
+
* @name tabList tabs 的列表
|
|
17
|
+
*/
|
|
18
|
+
tabList?: TabsProps['items'];
|
|
19
|
+
/**
|
|
20
|
+
* @name tabActiveKey 当前选中 tab 的 key
|
|
21
|
+
*/
|
|
22
|
+
tabActiveKey?: TabsProps['activeKey'];
|
|
23
|
+
/**
|
|
24
|
+
* @name tab 修改时触发
|
|
25
|
+
*/
|
|
26
|
+
onTabChange?: TabsProps['onChange'];
|
|
27
|
+
/**
|
|
28
|
+
* @name tab 上右边额外的区域
|
|
29
|
+
*/
|
|
30
|
+
tabBarExtraContent?: VueNode | {
|
|
31
|
+
left?: VueNode;
|
|
32
|
+
right?: VueNode;
|
|
33
|
+
}; /** @name tabProps tabs 的其他配置 */
|
|
34
|
+
tabProps?: TabsProps; /** @name fixedHeader 固定 PageHeader 到页面顶部 */
|
|
35
|
+
fixedHeader?: boolean;
|
|
36
|
+
title?: VueNode;
|
|
37
|
+
breadcrumb?: BreadcrumbProps;
|
|
38
|
+
/**
|
|
39
|
+
* 自定义 breadcrumb,
|
|
40
|
+
* @name breadcrumbRender 返回false不展示
|
|
41
|
+
*/
|
|
42
|
+
breadcrumbRender?: PageHeaderProps['breadcrumbRender'] | false;
|
|
43
|
+
content?: VueNode;
|
|
44
|
+
footer?: VueNode | VNode | VNode[];
|
|
45
|
+
extraContent?: VueNode;
|
|
46
|
+
/**
|
|
47
|
+
* 与 Ant Design 完全相同
|
|
48
|
+
*
|
|
49
|
+
* @name PageHeader 的配置
|
|
50
|
+
*/
|
|
51
|
+
header?: PageHeaderProps & {
|
|
52
|
+
children?: VueNode;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @name pageHeaderRender 自定义 pageHeader
|
|
56
|
+
*/
|
|
57
|
+
pageHeaderRender?: PageHeaderRender | false;
|
|
58
|
+
/**
|
|
59
|
+
* 与 Ant Design Vue 完全相同
|
|
60
|
+
* @name affixProps 固钉的配置
|
|
61
|
+
*/
|
|
62
|
+
affixProps?: AffixProps;
|
|
63
|
+
/**
|
|
64
|
+
* 只加载内容区域
|
|
65
|
+
*
|
|
66
|
+
* @name loading 是否加载
|
|
67
|
+
*/
|
|
68
|
+
loading?: SpinProps | VueNode | (() => VueNode);
|
|
69
|
+
/**
|
|
70
|
+
* @name waterMarkProps 水印的配置
|
|
71
|
+
*/
|
|
72
|
+
waterMarkProps?: WatermarkProps;
|
|
73
|
+
stylish?: GenerateStyle<PageContainerToken>;
|
|
74
|
+
footerStylish?: GenerateStyle<PageContainerToken>;
|
|
75
|
+
footerToolBarProps?: FooterToolbarProps;
|
|
76
|
+
} & Omit<PageHeaderProps, 'title' | 'footer' | 'breadcrumb' | 'breadcrumbRender'>;
|
|
77
|
+
declare const PageContainerBase: _$vue.DefineSetupFnComponent<PageContainerProps, {}, CustomSlotsType<{
|
|
78
|
+
default?: VueNode;
|
|
79
|
+
footer?: VueNode;
|
|
80
|
+
extra?: VueNode;
|
|
81
|
+
title?: VueNode;
|
|
82
|
+
tags?: VueNode;
|
|
83
|
+
backIcon?: VueNode;
|
|
84
|
+
content?: VueNode;
|
|
85
|
+
subTitle?: VueNode;
|
|
86
|
+
extraContent?: VueNode;
|
|
87
|
+
tabBarExtraContent?: VueNode;
|
|
88
|
+
pageHeaderRender?: PageHeaderRender;
|
|
89
|
+
breadcrumbRender?: BreadcrumbRender;
|
|
90
|
+
}>, {
|
|
91
|
+
avatar?: AvatarProps;
|
|
92
|
+
/**
|
|
93
|
+
* @name tabList tabs 的列表
|
|
94
|
+
*/
|
|
95
|
+
tabList?: TabsProps["items"];
|
|
96
|
+
/**
|
|
97
|
+
* @name tabActiveKey 当前选中 tab 的 key
|
|
98
|
+
*/
|
|
99
|
+
tabActiveKey?: TabsProps["activeKey"];
|
|
100
|
+
/**
|
|
101
|
+
* @name tab 修改时触发
|
|
102
|
+
*/
|
|
103
|
+
onTabChange?: TabsProps["onChange"];
|
|
104
|
+
/**
|
|
105
|
+
* @name tab 上右边额外的区域
|
|
106
|
+
*/
|
|
107
|
+
tabBarExtraContent?: VueNode | {
|
|
108
|
+
left?: VueNode;
|
|
109
|
+
right?: VueNode;
|
|
110
|
+
}; /** @name tabProps tabs 的其他配置 */
|
|
111
|
+
tabProps?: TabsProps; /** @name fixedHeader 固定 PageHeader 到页面顶部 */
|
|
112
|
+
fixedHeader?: boolean;
|
|
113
|
+
title?: VueNode;
|
|
114
|
+
breadcrumb?: BreadcrumbProps;
|
|
115
|
+
/**
|
|
116
|
+
* 自定义 breadcrumb,
|
|
117
|
+
* @name breadcrumbRender 返回false不展示
|
|
118
|
+
*/
|
|
119
|
+
breadcrumbRender?: PageHeaderProps["breadcrumbRender"] | false;
|
|
120
|
+
content?: VueNode;
|
|
121
|
+
footer?: VueNode | VNode | VNode[];
|
|
122
|
+
extraContent?: VueNode;
|
|
123
|
+
/**
|
|
124
|
+
* 与 Ant Design 完全相同
|
|
125
|
+
*
|
|
126
|
+
* @name PageHeader 的配置
|
|
127
|
+
*/
|
|
128
|
+
header?: PageHeaderProps & {
|
|
129
|
+
children?: VueNode;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @name pageHeaderRender 自定义 pageHeader
|
|
133
|
+
*/
|
|
134
|
+
pageHeaderRender?: PageHeaderRender | false;
|
|
135
|
+
/**
|
|
136
|
+
* 与 Ant Design Vue 完全相同
|
|
137
|
+
* @name affixProps 固钉的配置
|
|
138
|
+
*/
|
|
139
|
+
affixProps?: AffixProps;
|
|
140
|
+
/**
|
|
141
|
+
* 只加载内容区域
|
|
142
|
+
*
|
|
143
|
+
* @name loading 是否加载
|
|
144
|
+
*/
|
|
145
|
+
loading?: SpinProps | VueNode | (() => VueNode);
|
|
146
|
+
/**
|
|
147
|
+
* @name waterMarkProps 水印的配置
|
|
148
|
+
*/
|
|
149
|
+
waterMarkProps?: WatermarkProps;
|
|
150
|
+
stylish?: GenerateStyle<PageContainerToken>;
|
|
151
|
+
footerStylish?: GenerateStyle<PageContainerToken>;
|
|
152
|
+
footerToolBarProps?: FooterToolbarProps;
|
|
153
|
+
} & Omit<PageHeaderProps, "title" | "breadcrumb" | "breadcrumbRender" | "footer"> & {}, _$vue.PublicProps>;
|
|
154
|
+
//#endregion
|
|
155
|
+
export { PageContainerProps, PageContainerBase as default };
|