@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,510 @@
|
|
|
1
|
+
import { genStringToTheme } from "../../utils/index.js";
|
|
2
|
+
import defaultSettings from "../../defaultSettings.js";
|
|
3
|
+
import BlockCheckbox from "./BlockCheckbox.js";
|
|
4
|
+
import { GroupIcon } from "./icon/group.js";
|
|
5
|
+
import { SubIcon } from "./icon/sub.js";
|
|
6
|
+
import { LayoutSetting, getFormatMessage, renderLayoutSettingItem } from "./LayoutChange.js";
|
|
7
|
+
import RegionalSetting from "./RegionalChange.js";
|
|
8
|
+
import style_default from "./style/index.js";
|
|
9
|
+
import ThemeColor from "./ThemeColor.js";
|
|
10
|
+
import { Fragment, Teleport, computed, createVNode, defineComponent, isVNode, onBeforeUnmount, reactive, ref, shallowRef, watch } from "vue";
|
|
11
|
+
import { CopyToClipboard, useMountMergeState } from "@antdv-vue/pro-utils";
|
|
12
|
+
import { classNames, omit } from "@v-c/util";
|
|
13
|
+
import { Alert, Button, Divider, Drawer, Listy, Switch, message } from "antdv-next";
|
|
14
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
15
|
+
import { CloseOutlined, CopyOutlined, NotificationOutlined, SettingOutlined } from "@antdv-next/icons";
|
|
16
|
+
//#region src/components/SettingDrawer/index.tsx
|
|
17
|
+
function _isSlot(s) {
|
|
18
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
19
|
+
}
|
|
20
|
+
const colorWeakStates = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
function acquireColorWeak(ownerDocument, hashClass) {
|
|
22
|
+
const { body } = ownerDocument;
|
|
23
|
+
let state = colorWeakStates.get(ownerDocument);
|
|
24
|
+
if (!state) {
|
|
25
|
+
state = {
|
|
26
|
+
count: 0,
|
|
27
|
+
hadAttribute: body.hasAttribute("data-color-weak"),
|
|
28
|
+
hashClasses: /* @__PURE__ */ new Map()
|
|
29
|
+
};
|
|
30
|
+
colorWeakStates.set(ownerDocument, state);
|
|
31
|
+
}
|
|
32
|
+
state.count += 1;
|
|
33
|
+
body.setAttribute("data-color-weak", "");
|
|
34
|
+
if (hashClass) {
|
|
35
|
+
const hashState = state.hashClasses.get(hashClass) || {
|
|
36
|
+
count: 0,
|
|
37
|
+
existed: body.classList.contains(hashClass)
|
|
38
|
+
};
|
|
39
|
+
hashState.count += 1;
|
|
40
|
+
state.hashClasses.set(hashClass, hashState);
|
|
41
|
+
body.classList.add(hashClass);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function releaseColorWeak(ownerDocument, hashClass) {
|
|
45
|
+
const state = colorWeakStates.get(ownerDocument);
|
|
46
|
+
if (!state) return;
|
|
47
|
+
const { body } = ownerDocument;
|
|
48
|
+
state.count = Math.max(0, state.count - 1);
|
|
49
|
+
if (hashClass) {
|
|
50
|
+
const hashState = state.hashClasses.get(hashClass);
|
|
51
|
+
if (hashState) {
|
|
52
|
+
hashState.count = Math.max(0, hashState.count - 1);
|
|
53
|
+
if (hashState.count === 0) {
|
|
54
|
+
if (!hashState.existed) body.classList.remove(hashClass);
|
|
55
|
+
state.hashClasses.delete(hashClass);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (state.count === 0) {
|
|
60
|
+
if (!state.hadAttribute) body.removeAttribute("data-color-weak");
|
|
61
|
+
colorWeakStates.delete(ownerDocument);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const SeetingBody = ({ hashId, prefixCls, title, cssVarCls }, { slots }) => createVNode("div", { "style": { marginBlockEnd: "12px" } }, [createVNode("h3", { "class": classNames(`${prefixCls}-body-title`, hashId, cssVarCls) }, [title]), slots.default?.()]);
|
|
65
|
+
function genCopySettingJson(settingState) {
|
|
66
|
+
return JSON.stringify(omit({
|
|
67
|
+
...settingState,
|
|
68
|
+
colorPrimary: settingState.colorPrimary
|
|
69
|
+
}, ["colorWeak"]), null, 2);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 可视化配置组件
|
|
73
|
+
*
|
|
74
|
+
* @param props
|
|
75
|
+
*/
|
|
76
|
+
const SettingDrawer = /* @__PURE__ */ defineComponent((props) => {
|
|
77
|
+
const config = useConfig();
|
|
78
|
+
const [message$1, ContextHolder] = message.useMessage();
|
|
79
|
+
const hideMessage = ref();
|
|
80
|
+
const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
|
|
81
|
+
const baseClassName = computed(() => `${prefixCls.value}-setting-drawer`);
|
|
82
|
+
const [hashId, cssVarCls] = style_default(baseClassName);
|
|
83
|
+
const formatMessage = getFormatMessage();
|
|
84
|
+
const drawerRef = shallowRef(null);
|
|
85
|
+
const [open, setOpen] = useMountMergeState(false, {
|
|
86
|
+
value: props.collapsed === void 0 ? void 0 : ref(props.collapsed),
|
|
87
|
+
onChange: (value) => props["onUpdate:collapsed"]?.(value) && props.onCollapse?.(value)
|
|
88
|
+
});
|
|
89
|
+
const className = computed(() => classNames(baseClassName.value, hashId?.value, cssVarCls?.value, {
|
|
90
|
+
[`${baseClassName.value}-collapsed`]: !open.value,
|
|
91
|
+
[`${baseClassName.value}-realDark`]: props.settings?.navTheme === "realDark"
|
|
92
|
+
}));
|
|
93
|
+
const [settingState, setSettingState] = useMountMergeState(defaultSettings, {
|
|
94
|
+
value: props.settings === void 0 ? void 0 : computed(() => props.settings || {}),
|
|
95
|
+
onChange: props.onSettingChange
|
|
96
|
+
});
|
|
97
|
+
const nextState = reactive(settingState.value);
|
|
98
|
+
let ownsColorWeak = false;
|
|
99
|
+
let ownedHashClass = "";
|
|
100
|
+
const syncColorWeak = (enabled) => {
|
|
101
|
+
if (typeof document === "undefined") return;
|
|
102
|
+
if (enabled && !ownsColorWeak) {
|
|
103
|
+
ownedHashClass = hashId?.value || "";
|
|
104
|
+
acquireColorWeak(document, ownedHashClass);
|
|
105
|
+
ownsColorWeak = true;
|
|
106
|
+
} else if (!enabled && ownsColorWeak) {
|
|
107
|
+
releaseColorWeak(document, ownedHashClass);
|
|
108
|
+
ownsColorWeak = false;
|
|
109
|
+
ownedHashClass = "";
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
watch(() => Boolean(settingState.value.colorWeak), syncColorWeak, { immediate: true });
|
|
113
|
+
onBeforeUnmount(() => {
|
|
114
|
+
if (ownsColorWeak) releaseColorWeak(document, ownedHashClass);
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* 修改设置
|
|
118
|
+
*
|
|
119
|
+
* @param key
|
|
120
|
+
* @param value
|
|
121
|
+
*/
|
|
122
|
+
const changeSetting = (key, value) => {
|
|
123
|
+
nextState[key] = value;
|
|
124
|
+
if (key === "layout") {
|
|
125
|
+
nextState.contentWidth = value === "top" ? "Fixed" : "Fluid";
|
|
126
|
+
if (![
|
|
127
|
+
"mix",
|
|
128
|
+
"side",
|
|
129
|
+
"left"
|
|
130
|
+
].includes(value)) nextState.siderMenuType = "sub";
|
|
131
|
+
}
|
|
132
|
+
if (key === "layout" && value !== "mix") nextState.splitMenus = false;
|
|
133
|
+
if (key === "layout" && value === "mix") nextState.fixedHeader = true;
|
|
134
|
+
if (key === "layout" && value === "left") {
|
|
135
|
+
nextState.fixedHeader = true;
|
|
136
|
+
nextState.splitMenus = true;
|
|
137
|
+
}
|
|
138
|
+
delete nextState.fixSiderbar;
|
|
139
|
+
delete nextState.menu;
|
|
140
|
+
delete nextState.title;
|
|
141
|
+
delete nextState.iconfontUrl;
|
|
142
|
+
delete nextState.logo;
|
|
143
|
+
delete nextState.pwa;
|
|
144
|
+
setSettingState({
|
|
145
|
+
...settingState.value,
|
|
146
|
+
...nextState
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
const otherSettingsOptions = computed(() => {
|
|
150
|
+
const { otherSettingsRender } = props;
|
|
151
|
+
if (otherSettingsRender === false) return [];
|
|
152
|
+
let doms = [{
|
|
153
|
+
title: formatMessage({
|
|
154
|
+
id: "app.setting.weakmode",
|
|
155
|
+
defaultMessage: "色弱模式"
|
|
156
|
+
}),
|
|
157
|
+
action: createVNode(Switch, {
|
|
158
|
+
"size": "small",
|
|
159
|
+
"class": "color-weak",
|
|
160
|
+
"checked": !!settingState.value.colorWeak,
|
|
161
|
+
"onUpdate:checked": (checked) => changeSetting("colorWeak", checked)
|
|
162
|
+
}, null)
|
|
163
|
+
}];
|
|
164
|
+
if (otherSettingsRender && typeof otherSettingsRender === "function") doms = otherSettingsRender({
|
|
165
|
+
settings: { ...settingState.value },
|
|
166
|
+
changeSetting,
|
|
167
|
+
items: doms
|
|
168
|
+
});
|
|
169
|
+
return doms;
|
|
170
|
+
});
|
|
171
|
+
return () => {
|
|
172
|
+
let _slot;
|
|
173
|
+
const { colorList = [
|
|
174
|
+
{
|
|
175
|
+
key: "techBlue",
|
|
176
|
+
color: "#1677FF"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
key: "daybreak",
|
|
180
|
+
color: "#1890FF"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: "dust",
|
|
184
|
+
color: "#F5222D"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
key: "volcano",
|
|
188
|
+
color: "#FA541C"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
key: "sunset",
|
|
192
|
+
color: "#FAAD14"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
key: "cyan",
|
|
196
|
+
color: "#13C2C2"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: "green",
|
|
200
|
+
color: "#52C41A"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: "geekblue",
|
|
204
|
+
color: "#2F54EB"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
key: "purple",
|
|
208
|
+
color: "#722ED1"
|
|
209
|
+
}
|
|
210
|
+
], hideCopyButton, hideHintAlert } = props;
|
|
211
|
+
const copyMessage = formatMessage({
|
|
212
|
+
id: "app.setting.copyinfo",
|
|
213
|
+
defaultMessage: "拷贝成功,请到 src/defaultSettings.js 中替换默认配置"
|
|
214
|
+
});
|
|
215
|
+
const loadingMessage = formatMessage({
|
|
216
|
+
id: "app.setting.loading",
|
|
217
|
+
defaultMessage: "正在加载主题"
|
|
218
|
+
});
|
|
219
|
+
return createVNode(Fragment, null, [createVNode(Teleport, { "to": "body" }, { default: () => [!open.value && createVNode("div", null, [createVNode("div", { "class": classNames(`${baseClassName.value}-handle-container`, hashId?.value, cssVarCls?.value) }, [createVNode("div", {
|
|
220
|
+
"class": classNames(`${baseClassName.value}-handle`, hashId?.value, cssVarCls?.value),
|
|
221
|
+
"onClick": () => setOpen(!open.value)
|
|
222
|
+
}, [createVNode(SettingOutlined, {
|
|
223
|
+
"spin": true,
|
|
224
|
+
"style": {
|
|
225
|
+
color: "rgb(255,255,255)",
|
|
226
|
+
fontSize: "20px"
|
|
227
|
+
}
|
|
228
|
+
}, null)])])])] }), createVNode(Drawer, {
|
|
229
|
+
"open": open.value,
|
|
230
|
+
"closable": false,
|
|
231
|
+
"size": 300,
|
|
232
|
+
"rootClass": className.value,
|
|
233
|
+
"onClose": () => setOpen(false),
|
|
234
|
+
"placement": "right",
|
|
235
|
+
"drawerRender": (dom) => {
|
|
236
|
+
return createVNode(Fragment, null, [createVNode("div", {
|
|
237
|
+
"ref": drawerRef,
|
|
238
|
+
"class": classNames(`${baseClassName.value}-handle`, hashId?.value, cssVarCls?.value),
|
|
239
|
+
"onClick": () => setOpen(!open.value)
|
|
240
|
+
}, [!open.value ? createVNode(SettingOutlined, {
|
|
241
|
+
"spin": true,
|
|
242
|
+
"style": {
|
|
243
|
+
color: "rgb(255,255,255)",
|
|
244
|
+
fontSize: "20px"
|
|
245
|
+
}
|
|
246
|
+
}, null) : createVNode(CloseOutlined, { "style": {
|
|
247
|
+
color: "rgb(255,255,255)",
|
|
248
|
+
fontSize: "20px"
|
|
249
|
+
} }, null)]), dom]);
|
|
250
|
+
}
|
|
251
|
+
}, { default: () => [createVNode("div", { "class": classNames(`${baseClassName.value}-content`, hashId?.value, cssVarCls?.value) }, [
|
|
252
|
+
createVNode(SeetingBody, {
|
|
253
|
+
"prefixCls": baseClassName.value,
|
|
254
|
+
"hashId": hashId?.value,
|
|
255
|
+
"cssVarCls": cssVarCls?.value,
|
|
256
|
+
"title": formatMessage({
|
|
257
|
+
id: "app.setting.pagestyle",
|
|
258
|
+
defaultMessage: "整体风格设置"
|
|
259
|
+
})
|
|
260
|
+
}, { default: () => [createVNode(BlockCheckbox, {
|
|
261
|
+
"hashId": hashId?.value,
|
|
262
|
+
"cssVarCls": cssVarCls?.value,
|
|
263
|
+
"prefixCls": baseClassName.value,
|
|
264
|
+
"list": [
|
|
265
|
+
{
|
|
266
|
+
key: "light",
|
|
267
|
+
title: formatMessage({
|
|
268
|
+
id: "app.setting.pagestyle.light",
|
|
269
|
+
defaultMessage: "亮色菜单风格"
|
|
270
|
+
})
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
key: "dark",
|
|
274
|
+
title: formatMessage({
|
|
275
|
+
id: "app.setting.pagestyle.dark",
|
|
276
|
+
defaultMessage: "暗色菜单风格"
|
|
277
|
+
})
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
key: "realDark",
|
|
281
|
+
title: formatMessage({
|
|
282
|
+
id: "app.setting.pagestyle.realdark",
|
|
283
|
+
defaultMessage: "暗色风格"
|
|
284
|
+
})
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"configType": "theme",
|
|
288
|
+
"key": "navTheme",
|
|
289
|
+
"value": settingState.value.navTheme,
|
|
290
|
+
"onChange": (value) => changeSetting("navTheme", value)
|
|
291
|
+
}, null)] }),
|
|
292
|
+
colorList !== false && createVNode(SeetingBody, {
|
|
293
|
+
"hashId": hashId?.value,
|
|
294
|
+
"cssVarCls": cssVarCls?.value,
|
|
295
|
+
"title": formatMessage({
|
|
296
|
+
id: "app.setting.themecolor",
|
|
297
|
+
defaultMessage: "主题色"
|
|
298
|
+
}),
|
|
299
|
+
"prefixCls": baseClassName.value
|
|
300
|
+
}, { default: () => [createVNode(ThemeColor, {
|
|
301
|
+
"hashId": hashId?.value,
|
|
302
|
+
"cssVarCls": cssVarCls?.value,
|
|
303
|
+
"prefixCls": baseClassName.value,
|
|
304
|
+
"colorList": colorList,
|
|
305
|
+
"formatMessage": formatMessage,
|
|
306
|
+
"value": genStringToTheme(settingState.value.colorPrimary),
|
|
307
|
+
"onChange": async (color) => {
|
|
308
|
+
if (color !== settingState.value.colorPrimary) hideMessage.value = message.loading(loadingMessage, 0);
|
|
309
|
+
changeSetting("colorPrimary", color);
|
|
310
|
+
if (hideMessage.value) hideMessage.value?.();
|
|
311
|
+
}
|
|
312
|
+
}, null)] }),
|
|
313
|
+
createVNode(Divider, null, null),
|
|
314
|
+
createVNode(SeetingBody, {
|
|
315
|
+
"hashId": hashId?.value,
|
|
316
|
+
"cssVarCls": cssVarCls?.value,
|
|
317
|
+
"title": formatMessage({
|
|
318
|
+
id: "app.setting.navigationmode",
|
|
319
|
+
defaultMessage: "导航模式"
|
|
320
|
+
}),
|
|
321
|
+
"prefixCls": baseClassName.value
|
|
322
|
+
}, { default: () => [createVNode(BlockCheckbox, {
|
|
323
|
+
"prefixCls": baseClassName.value,
|
|
324
|
+
"value": settingState.value.layout,
|
|
325
|
+
"key": "layout",
|
|
326
|
+
"hashId": hashId?.value,
|
|
327
|
+
"cssVarCls": cssVarCls?.value,
|
|
328
|
+
"configType": "layout",
|
|
329
|
+
"list": [
|
|
330
|
+
{
|
|
331
|
+
key: "side",
|
|
332
|
+
title: formatMessage({
|
|
333
|
+
id: "app.setting.sidemenu",
|
|
334
|
+
defaultMessage: "侧边菜单布局"
|
|
335
|
+
})
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
key: "top",
|
|
339
|
+
title: formatMessage({
|
|
340
|
+
id: "app.setting.topmenu",
|
|
341
|
+
defaultMessage: "顶部菜单布局"
|
|
342
|
+
})
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
key: "mix",
|
|
346
|
+
title: formatMessage({
|
|
347
|
+
id: "app.setting.mixmenu",
|
|
348
|
+
defaultMessage: "混合菜单布局"
|
|
349
|
+
})
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
key: "left",
|
|
353
|
+
title: formatMessage({
|
|
354
|
+
id: "app.setting.leftmenu",
|
|
355
|
+
defaultMessage: "左侧混合布局"
|
|
356
|
+
})
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"onChange": (value) => changeSetting("layout", value)
|
|
360
|
+
}, null)] }),
|
|
361
|
+
settingState.value.layout === "side" || settingState.value.layout === "mix" || settingState.value.layout === "left" ? createVNode(SeetingBody, {
|
|
362
|
+
"hashId": hashId?.value,
|
|
363
|
+
"cssVarCls": cssVarCls?.value,
|
|
364
|
+
"prefixCls": baseClassName.value,
|
|
365
|
+
"title": formatMessage({
|
|
366
|
+
id: "app.setting.sidermenutype",
|
|
367
|
+
defaultMessage: "侧边菜单类型"
|
|
368
|
+
})
|
|
369
|
+
}, { default: () => [createVNode(BlockCheckbox, {
|
|
370
|
+
"prefixCls": baseClassName.value,
|
|
371
|
+
"value": settingState.value.siderMenuType,
|
|
372
|
+
"key": "siderMenuType",
|
|
373
|
+
"hashId": hashId?.value,
|
|
374
|
+
"cssVarCls": cssVarCls?.value,
|
|
375
|
+
"configType": "siderMenuType",
|
|
376
|
+
"list": [{
|
|
377
|
+
key: "sub",
|
|
378
|
+
icon: createVNode(SubIcon, { "dark": props.settings?.navTheme === "realDark" }, null),
|
|
379
|
+
title: formatMessage({
|
|
380
|
+
id: "app.setting.sidermenutype-sub",
|
|
381
|
+
defaultMessage: "经典模式"
|
|
382
|
+
})
|
|
383
|
+
}, {
|
|
384
|
+
key: "group",
|
|
385
|
+
icon: createVNode(GroupIcon, { "dark": props.settings?.navTheme === "realDark" }, null),
|
|
386
|
+
title: formatMessage({
|
|
387
|
+
id: "app.setting.sidermenutype-group",
|
|
388
|
+
defaultMessage: "分组模式"
|
|
389
|
+
})
|
|
390
|
+
}],
|
|
391
|
+
"onChange": (value) => changeSetting("siderMenuType", value)
|
|
392
|
+
}, null)] }) : null,
|
|
393
|
+
createVNode(LayoutSetting, {
|
|
394
|
+
"prefixCls": baseClassName.value,
|
|
395
|
+
"hashId": hashId?.value,
|
|
396
|
+
"cssVarCls": cssVarCls?.value,
|
|
397
|
+
"formatMessage": formatMessage,
|
|
398
|
+
"settings": { ...settingState.value },
|
|
399
|
+
"changeSetting": changeSetting
|
|
400
|
+
}, null),
|
|
401
|
+
createVNode(Divider, null, null),
|
|
402
|
+
createVNode(SeetingBody, {
|
|
403
|
+
"hashId": hashId?.value,
|
|
404
|
+
"cssVarCls": cssVarCls?.value,
|
|
405
|
+
"prefixCls": baseClassName.value,
|
|
406
|
+
"title": formatMessage({
|
|
407
|
+
id: "app.setting.regionalsettings",
|
|
408
|
+
defaultMessage: "内容区域"
|
|
409
|
+
})
|
|
410
|
+
}, { default: () => [createVNode(RegionalSetting, {
|
|
411
|
+
"hashId": hashId?.value,
|
|
412
|
+
"cssVarCls": cssVarCls?.value,
|
|
413
|
+
"prefixCls": baseClassName.value,
|
|
414
|
+
"formatMessage": formatMessage,
|
|
415
|
+
"settings": { ...settingState.value },
|
|
416
|
+
"changeSetting": changeSetting
|
|
417
|
+
}, null)] }),
|
|
418
|
+
otherSettingsOptions.value.length > 0 && createVNode(Fragment, null, [createVNode(Divider, null, null), createVNode(SeetingBody, {
|
|
419
|
+
"hashId": hashId?.value,
|
|
420
|
+
"cssVarCls": cssVarCls?.value,
|
|
421
|
+
"prefixCls": baseClassName.value,
|
|
422
|
+
"title": formatMessage({
|
|
423
|
+
id: "app.setting.othersettings",
|
|
424
|
+
defaultMessage: "其他设置"
|
|
425
|
+
})
|
|
426
|
+
}, { default: () => [createVNode(Listy, {
|
|
427
|
+
"class": classNames(`${baseClassName.value}-list`, hashId?.value, cssVarCls?.value),
|
|
428
|
+
"rowKey": (item) => item.title,
|
|
429
|
+
"itemRender": (item) => renderLayoutSettingItem(item),
|
|
430
|
+
"items": otherSettingsOptions.value,
|
|
431
|
+
"styles": { item: {
|
|
432
|
+
borderBottom: 0,
|
|
433
|
+
paddingInlineStart: 0,
|
|
434
|
+
paddingInlineEnd: 0
|
|
435
|
+
} }
|
|
436
|
+
}, null)] })]),
|
|
437
|
+
hideHintAlert && hideCopyButton ? null : createVNode(Divider, null, null),
|
|
438
|
+
hideHintAlert ? null : createVNode(Alert, {
|
|
439
|
+
"type": "warning",
|
|
440
|
+
"message": formatMessage({
|
|
441
|
+
id: "app.setting.production.hint",
|
|
442
|
+
defaultMessage: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"
|
|
443
|
+
}),
|
|
444
|
+
"icon": createVNode(NotificationOutlined, null, null),
|
|
445
|
+
"showIcon": true,
|
|
446
|
+
"style": { marginBlockEnd: "16px" }
|
|
447
|
+
}, null),
|
|
448
|
+
hideCopyButton ? null : createVNode(CopyToClipboard, {
|
|
449
|
+
"text": genCopySettingJson(settingState.value),
|
|
450
|
+
"onCopy": () => message$1.info(copyMessage)
|
|
451
|
+
}, { default: () => [createVNode(ContextHolder, null, null), createVNode(Button, {
|
|
452
|
+
"block": true,
|
|
453
|
+
"icon": createVNode(CopyOutlined, null, null),
|
|
454
|
+
"style": { marginBlockEnd: "24px" }
|
|
455
|
+
}, _isSlot(_slot = formatMessage({ id: "app.setting.copy" })) ? _slot : { default: () => [_slot] })] })
|
|
456
|
+
])] })]);
|
|
457
|
+
};
|
|
458
|
+
}, {
|
|
459
|
+
props: {
|
|
460
|
+
settings: {
|
|
461
|
+
type: Object,
|
|
462
|
+
required: false
|
|
463
|
+
},
|
|
464
|
+
prefixCls: {
|
|
465
|
+
type: String,
|
|
466
|
+
required: false
|
|
467
|
+
},
|
|
468
|
+
collapsed: {
|
|
469
|
+
type: Boolean,
|
|
470
|
+
required: false,
|
|
471
|
+
default: void 0
|
|
472
|
+
},
|
|
473
|
+
colorList: {
|
|
474
|
+
type: [Array, Boolean],
|
|
475
|
+
required: false,
|
|
476
|
+
default: void 0
|
|
477
|
+
},
|
|
478
|
+
hideHintAlert: {
|
|
479
|
+
type: Boolean,
|
|
480
|
+
required: false,
|
|
481
|
+
default: void 0
|
|
482
|
+
},
|
|
483
|
+
hideCopyButton: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
required: false,
|
|
486
|
+
default: void 0
|
|
487
|
+
},
|
|
488
|
+
onSettingChange: {
|
|
489
|
+
type: Function,
|
|
490
|
+
required: false
|
|
491
|
+
},
|
|
492
|
+
onCollapse: {
|
|
493
|
+
type: Function,
|
|
494
|
+
required: false
|
|
495
|
+
},
|
|
496
|
+
"onUpdate:collapsed": {
|
|
497
|
+
type: Function,
|
|
498
|
+
required: false
|
|
499
|
+
},
|
|
500
|
+
otherSettingsRender: {
|
|
501
|
+
type: [Function, Boolean],
|
|
502
|
+
required: false,
|
|
503
|
+
default: void 0
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
name: "SettingDrawer",
|
|
507
|
+
inheritAttrs: false
|
|
508
|
+
});
|
|
509
|
+
//#endregion
|
|
510
|
+
export { SettingDrawer as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
|
+
import { GenerateStyle, ProAliasCssVarToken } from "@antdv-vue/pro-provider";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SettingDrawer/style/index.d.ts
|
|
5
|
+
interface SettingDrawerToken extends ProAliasCssVarToken {}
|
|
6
|
+
declare const genSettingDrawerStyle: GenerateStyle<SettingDrawerToken>;
|
|
7
|
+
declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SettingDrawerToken, _default as default, genSettingDrawerStyle };
|