@pubinfo/core 2.0.0-beta.1
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/es/AppSetting-BXQHV5F8.js +125 -0
- package/es/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +25 -0
- package/es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js +41 -0
- package/es/HDivider-DgXBhPr0.js +21 -0
- package/es/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +33 -0
- package/es/HToggle-Cd71WKvG.js +34 -0
- package/es/PreferencesContent-CQkwkQ_1.js +972 -0
- package/es/SettingBreadcrumb-Bp_66IFN.js +50 -0
- package/es/SettingCopyright-BPSnoTQb.js +62 -0
- package/es/SettingEnableTransition-Rx2-0Wxj.js +78 -0
- package/es/SettingHome-BW27PQqs.js +55 -0
- package/es/SettingMenu-D5gdNfal.js +120 -0
- package/es/SettingMode-B4_HGVez.js +69 -0
- package/es/SettingNavSearch-CRovYxzh.js +46 -0
- package/es/SettingOther-D0zo11vM.js +81 -0
- package/es/SettingPage-B8GHuoKV.js +29 -0
- package/es/SettingTabbar-Cn_QzvA8.js +154 -0
- package/es/SettingThemes-D_DpEncn.js +144 -0
- package/es/SettingToolbar-Csl2gnfi.js +85 -0
- package/es/SettingTopbar-CaHjQULM.js +52 -0
- package/es/SettingWidthMode-BGiP7gTw.js +68 -0
- package/es/TopThinMode-DWm0oY5Y.js +35 -0
- package/es/_...all_-DI_QAUox.js +52 -0
- package/es/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/es/api/enum/code.d.ts +67 -0
- package/es/api/helper.d.ts +32 -0
- package/es/api/index.d.ts +12 -0
- package/es/api/interface.d.ts +14 -0
- package/es/api/modules/auth/index.d.ts +1 -0
- package/es/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/es/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/es/api/modules/configData/index.d.ts +3 -0
- package/es/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/es/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/es/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/es/api/modules/rbac/index.d.ts +11 -0
- package/es/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/es/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/es/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/es/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/es/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/es/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/es/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/es/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/es/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/es/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/es/api/request.d.ts +2 -0
- package/es/api/system/app.d.ts +17 -0
- package/es/api/system/user.d.ts +24 -0
- package/es/assets/styles/index.d.ts +6 -0
- package/es/colors-oRlAXMUC.js +25 -0
- package/es/components/NotAllowed/index.vue.d.ts +2 -0
- package/es/components/PageHeader/index.vue.d.ts +23 -0
- package/es/components/PageMain/index.vue.d.ts +27 -0
- package/es/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/es/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/es/components/PubinfoApp/index.vue.d.ts +2 -0
- package/es/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/es/components/PubinfoProvider/index.d.ts +8 -0
- package/es/components/index.d.ts +8 -0
- package/es/composables/auth.d.ts +8 -0
- package/es/composables/index.d.ts +4 -0
- package/es/composables/log.d.ts +6 -0
- package/es/composables/theme.d.ts +3 -0
- package/es/composables/watchDiff.d.ts +2 -0
- package/es/config/index.d.ts +1 -0
- package/es/config/settings.d.ts +3 -0
- package/es/context.d.ts +14 -0
- package/es/create.d.ts +3 -0
- package/es/directives/index.d.ts +4 -0
- package/es/directives/plugins/permission.d.ts +6 -0
- package/es/index-B9I6Pru6.js +276 -0
- package/es/index-BHkrq701.js +137 -0
- package/es/index-BkqnOkyO.js +49 -0
- package/es/index-BvVAS3S-.js +35841 -0
- package/es/index-ChOUZNbk.js +354 -0
- package/es/index-D8eeneI_.js +271 -0
- package/es/index-DTQQt_XY.js +10 -0
- package/es/index-Dav3jQVP.js +8228 -0
- package/es/index-DvHnVMX5.js +12913 -0
- package/es/index-P2cA5UeU.js +230 -0
- package/es/index.d.ts +11 -0
- package/es/index.js +76 -0
- package/es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js +2300 -0
- package/es/interface.d.ts +29 -0
- package/es/layout/Layout.vue.d.ts +20 -0
- package/es/layout/components/BackTop/index.vue.d.ts +2 -0
- package/es/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/es/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/es/layout/components/Content/index.vue.d.ts +2 -0
- package/es/layout/components/Copyright/index.vue.d.ts +2 -0
- package/es/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/es/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/es/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/es/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/es/layout/components/Header/index.vue.d.ts +19 -0
- package/es/layout/components/Logo/index.vue.d.ts +26 -0
- package/es/layout/components/Menu/index.vue.d.ts +10 -0
- package/es/layout/components/Menu/item.vue.d.ts +11 -0
- package/es/layout/components/Menu/sub.vue.d.ts +219 -0
- package/es/layout/components/Menu/types.d.ts +42 -0
- package/es/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/es/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/es/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/es/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/es/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/es/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/es/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/es/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/es/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/es/layout/components/Tools/Search.vue.d.ts +199 -0
- package/es/layout/components/Tools/index.vue.d.ts +233 -0
- package/es/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/es/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/es/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/es/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/es/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/es/layout/components/Topbar/index.vue.d.ts +2 -0
- package/es/layout/composables/useContext.d.ts +18 -0
- package/es/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/es/layout/composables/useHotkey.d.ts +5 -0
- package/es/layout/composables/useMainPage.d.ts +14 -0
- package/es/layout/composables/useMenu.d.ts +8 -0
- package/es/layout/composables/useTabbar.d.ts +14 -0
- package/es/layout/composables/useTitle.d.ts +3 -0
- package/es/layout/composables/useViewTransition.d.ts +3 -0
- package/es/layout/composables/useWatermark.d.ts +4 -0
- package/es/layout/index.d.ts +19 -0
- package/es/layout/provider.d.ts +1 -0
- package/es/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/es/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/es/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/es/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/es/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/es/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/es/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/es/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/es/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/es/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/es/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/es/locales/index.d.ts +301 -0
- package/es/locales/lang/en.json.d.ts +99 -0
- package/es/locales/lang/zh-cn.json.d.ts +100 -0
- package/es/locales/lang/zh-tw.json.d.ts +100 -0
- package/es/locales/ui.d.ts +3 -0
- package/es/modules.d.ts +11 -0
- package/es/notification-6D5hA7Bp.js +15347 -0
- package/es/pages/personal/profile/index.vue.d.ts +2 -0
- package/es/pages/system/[...all].vue.d.ts +2 -0
- package/es/pages/system/change-organization/index.vue.d.ts +2 -0
- package/es/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/es/pages/system/change-password/index.vue.d.ts +31 -0
- package/es/pages/system/index.vue.d.ts +2 -0
- package/es/pages/system/not-permission/index.vue.d.ts +2 -0
- package/es/pages/system/reload.vue.d.ts +2 -0
- package/es/pick-Br-UKn7B.js +19 -0
- package/es/question-line-CfkciTFq.js +18 -0
- package/es/reload-CUcPYtl7.js +14 -0
- package/es/request.js +1811 -0
- package/es/right-Bfe2p1o0.js +36 -0
- package/es/route/async.d.ts +9 -0
- package/es/route/guard/auth.d.ts +3 -0
- package/es/route/guard/basic.d.ts +3 -0
- package/es/route/guard/index.d.ts +3 -0
- package/es/route/guard/setting.d.ts +3 -0
- package/es/route/index.d.ts +7 -0
- package/es/route/routes.d.ts +3 -0
- package/es/stores/enum/index.d.ts +20 -0
- package/es/stores/helper.d.ts +2 -0
- package/es/stores/index.d.ts +5 -0
- package/es/stores/modules/favorites.d.ts +32 -0
- package/es/stores/modules/iframe.d.ts +41 -0
- package/es/stores/modules/index.d.ts +9 -0
- package/es/stores/modules/keepAlive.d.ts +23 -0
- package/es/stores/modules/menu.d.ts +32 -0
- package/es/stores/modules/notification.d.ts +18 -0
- package/es/stores/modules/route.d.ts +42 -0
- package/es/stores/modules/settings.d.ts +85 -0
- package/es/stores/modules/tabbar.d.ts +59 -0
- package/es/stores/modules/user.d.ts +3 -0
- package/es/stores/plugin/persist.d.ts +5 -0
- package/es/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/es/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/es/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/es/stores/plugin/sideEffect/index.d.ts +5 -0
- package/es/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/es/style.css +9 -0
- package/es/utils/cleanup.d.ts +8 -0
- package/es/utils/crypto.d.ts +4 -0
- package/es/utils/eventBus.d.ts +5 -0
- package/es/utils/index.d.ts +14 -0
- package/es/utils/injectionKeys.d.ts +2 -0
- package/es/utils/storage.d.ts +21 -0
- package/es/utils/utils.d.ts +3 -0
- package/es/utils/watermark.d.ts +51 -0
- package/lib/AppSetting-CCiwpjoq.cjs +1 -0
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +1 -0
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +1 -0
- package/lib/HDivider-DCfDgE8l.cjs +1 -0
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +1 -0
- package/lib/HToggle-BP6YYf-s.cjs +1 -0
- package/lib/PreferencesContent-DgL-Jc_J.cjs +3 -0
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +1 -0
- package/lib/SettingCopyright-x7aPlkQy.cjs +1 -0
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +1 -0
- package/lib/SettingHome-u52oz6i8.cjs +1 -0
- package/lib/SettingMenu-DsElOvvv.cjs +1 -0
- package/lib/SettingMode-C_kgpTxw.cjs +1 -0
- package/lib/SettingNavSearch-3auTi8UW.cjs +1 -0
- package/lib/SettingOther-6XGQq7OA.cjs +1 -0
- package/lib/SettingPage-C8yIHpLc.cjs +1 -0
- package/lib/SettingTabbar-K-nHb89z.cjs +1 -0
- package/lib/SettingThemes-BeNwFz7K.cjs +1 -0
- package/lib/SettingToolbar-Be1V7lwV.cjs +1 -0
- package/lib/SettingTopbar-C-j8O3c8.cjs +1 -0
- package/lib/SettingWidthMode-GMjAF-s3.cjs +1 -0
- package/lib/TopThinMode-DGUvyHT2.cjs +1 -0
- package/lib/_...all_-C4CXjAo9.cjs +1 -0
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/lib/api/enum/code.d.ts +67 -0
- package/lib/api/helper.d.ts +32 -0
- package/lib/api/index.d.ts +12 -0
- package/lib/api/interface.d.ts +14 -0
- package/lib/api/modules/auth/index.d.ts +1 -0
- package/lib/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/lib/api/modules/configData/index.d.ts +3 -0
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/lib/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/lib/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/lib/api/modules/rbac/index.d.ts +11 -0
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/lib/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/lib/api/request.d.ts +2 -0
- package/lib/api/system/app.d.ts +17 -0
- package/lib/api/system/user.d.ts +24 -0
- package/lib/assets/styles/index.d.ts +6 -0
- package/lib/colors-KAaBT84S.cjs +1 -0
- package/lib/components/NotAllowed/index.vue.d.ts +2 -0
- package/lib/components/PageHeader/index.vue.d.ts +23 -0
- package/lib/components/PageMain/index.vue.d.ts +27 -0
- package/lib/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/lib/components/PubinfoApp/index.vue.d.ts +2 -0
- package/lib/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/lib/components/PubinfoProvider/index.d.ts +8 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/composables/auth.d.ts +8 -0
- package/lib/composables/index.d.ts +4 -0
- package/lib/composables/log.d.ts +6 -0
- package/lib/composables/theme.d.ts +3 -0
- package/lib/composables/watchDiff.d.ts +2 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/settings.d.ts +3 -0
- package/lib/context.d.ts +14 -0
- package/lib/create.d.ts +3 -0
- package/lib/directives/index.d.ts +4 -0
- package/lib/directives/plugins/permission.d.ts +6 -0
- package/lib/index-38bsQrho.cjs +1 -0
- package/lib/index-BEqD62a0.cjs +1 -0
- package/lib/index-Bbm9CQRP.cjs +1 -0
- package/lib/index-BqHsuJkr.cjs +1 -0
- package/lib/index-JZl6Zh3L.cjs +44 -0
- package/lib/index-VGR0Mt4q.cjs +240 -0
- package/lib/index-WMo0GAa6.cjs +1 -0
- package/lib/index-_YsHduAE.cjs +1 -0
- package/lib/index-gr8kFwPx.cjs +18 -0
- package/lib/index-zvGq9tSu.cjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +1 -0
- package/lib/interface.d.ts +29 -0
- package/lib/layout/Layout.vue.d.ts +20 -0
- package/lib/layout/components/BackTop/index.vue.d.ts +2 -0
- package/lib/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/lib/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/lib/layout/components/Content/index.vue.d.ts +2 -0
- package/lib/layout/components/Copyright/index.vue.d.ts +2 -0
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/lib/layout/components/Header/index.vue.d.ts +19 -0
- package/lib/layout/components/Logo/index.vue.d.ts +26 -0
- package/lib/layout/components/Menu/index.vue.d.ts +10 -0
- package/lib/layout/components/Menu/item.vue.d.ts +11 -0
- package/lib/layout/components/Menu/sub.vue.d.ts +219 -0
- package/lib/layout/components/Menu/types.d.ts +42 -0
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Search.vue.d.ts +199 -0
- package/lib/layout/components/Tools/index.vue.d.ts +233 -0
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/index.vue.d.ts +2 -0
- package/lib/layout/composables/useContext.d.ts +18 -0
- package/lib/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/lib/layout/composables/useHotkey.d.ts +5 -0
- package/lib/layout/composables/useMainPage.d.ts +14 -0
- package/lib/layout/composables/useMenu.d.ts +8 -0
- package/lib/layout/composables/useTabbar.d.ts +14 -0
- package/lib/layout/composables/useTitle.d.ts +3 -0
- package/lib/layout/composables/useViewTransition.d.ts +3 -0
- package/lib/layout/composables/useWatermark.d.ts +4 -0
- package/lib/layout/index.d.ts +19 -0
- package/lib/layout/provider.d.ts +1 -0
- package/lib/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/lib/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/lib/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/lib/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/lib/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/lib/locales/index.d.ts +301 -0
- package/lib/locales/lang/en.json.d.ts +99 -0
- package/lib/locales/lang/zh-cn.json.d.ts +100 -0
- package/lib/locales/lang/zh-tw.json.d.ts +100 -0
- package/lib/locales/ui.d.ts +3 -0
- package/lib/modules.d.ts +11 -0
- package/lib/notification-IZqPm_OK.cjs +199 -0
- package/lib/pages/personal/profile/index.vue.d.ts +2 -0
- package/lib/pages/system/[...all].vue.d.ts +2 -0
- package/lib/pages/system/change-organization/index.vue.d.ts +2 -0
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/lib/pages/system/change-password/index.vue.d.ts +31 -0
- package/lib/pages/system/index.vue.d.ts +2 -0
- package/lib/pages/system/not-permission/index.vue.d.ts +2 -0
- package/lib/pages/system/reload.vue.d.ts +2 -0
- package/lib/pick-y2yLda1R.cjs +1 -0
- package/lib/question-line-Cd0CU4hr.cjs +1 -0
- package/lib/reload-6L7Dzs7h.cjs +1 -0
- package/lib/request.cjs +6 -0
- package/lib/right-C5JQ_uRB.cjs +1 -0
- package/lib/route/async.d.ts +9 -0
- package/lib/route/guard/auth.d.ts +3 -0
- package/lib/route/guard/basic.d.ts +3 -0
- package/lib/route/guard/index.d.ts +3 -0
- package/lib/route/guard/setting.d.ts +3 -0
- package/lib/route/index.d.ts +7 -0
- package/lib/route/routes.d.ts +3 -0
- package/lib/stores/enum/index.d.ts +20 -0
- package/lib/stores/helper.d.ts +2 -0
- package/lib/stores/index.d.ts +5 -0
- package/lib/stores/modules/favorites.d.ts +32 -0
- package/lib/stores/modules/iframe.d.ts +41 -0
- package/lib/stores/modules/index.d.ts +9 -0
- package/lib/stores/modules/keepAlive.d.ts +23 -0
- package/lib/stores/modules/menu.d.ts +32 -0
- package/lib/stores/modules/notification.d.ts +18 -0
- package/lib/stores/modules/route.d.ts +42 -0
- package/lib/stores/modules/settings.d.ts +85 -0
- package/lib/stores/modules/tabbar.d.ts +59 -0
- package/lib/stores/modules/user.d.ts +3 -0
- package/lib/stores/plugin/persist.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/index.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/lib/style.css +9 -0
- package/lib/utils/cleanup.d.ts +8 -0
- package/lib/utils/crypto.d.ts +4 -0
- package/lib/utils/eventBus.d.ts +5 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/injectionKeys.d.ts +2 -0
- package/lib/utils/storage.d.ts +21 -0
- package/lib/utils/utils.d.ts +3 -0
- package/lib/utils/watermark.d.ts +51 -0
- package/package.json +101 -0
- package/src/api/enum/code.ts +78 -0
- package/src/api/helper.ts +64 -0
- package/src/api/index.ts +75 -0
- package/src/api/interface.ts +15 -0
- package/src/api/modules/auth/index.ts +3 -0
- package/src/api/modules/auth/renzhengfuwu.ts +131 -0
- package/src/api/modules/auth/typings.d.ts +97 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +95 -0
- package/src/api/modules/configData/index.ts +5 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +322 -0
- package/src/api/modules/configData/zidianfuwu.ts +193 -0
- package/src/api/modules/rbac/gangweijiekou.ts +114 -0
- package/src/api/modules/rbac/index.ts +13 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +124 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +113 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +186 -0
- package/src/api/modules/rbac/typings.d.ts +2030 -0
- package/src/api/modules/rbac/yonghujiekou.ts +294 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +93 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +72 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +223 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +91 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +76 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +171 -0
- package/src/api/request.ts +4 -0
- package/src/api/system/app.ts +28 -0
- package/src/api/system/typings.d.ts +77 -0
- package/src/api/system/user.ts +47 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.svg +135 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7/stylesheet.css +12 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +134 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7_mono/stylesheet.css +12 -0
- package/src/assets/fonts/title.otf +0 -0
- package/src/assets/icons/403.svg +1 -0
- package/src/assets/icons/403_dark.svg +1 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/404_dark.svg +1 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-360.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-qq.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/browser-uc.svg +1 -0
- package/src/assets/icons/change-org.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/empty-data.svg +1 -0
- package/src/assets/icons/favorites.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/image-load-fail.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/logo-sig.svg +1 -0
- package/src/assets/icons/mima.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/process-management.svg +1 -0
- package/src/assets/icons/project-management.svg +1 -0
- package/src/assets/icons/rbac.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/test.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/toolbar-collapse.svg +1 -0
- package/src/assets/icons/tree_icon.svg +1 -0
- package/src/assets/icons/tree_icon_checked.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/workbench.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/change-org-bc.webp +0 -0
- package/src/assets/images/header-bg.png +0 -0
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/login-small.png +0 -0
- package/src/assets/images/login-small_dark.webp +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/not-cursor.png +0 -0
- package/src/assets/images/org.svg +19 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/images/slider-bg.png +0 -0
- package/src/assets/styles/globals.scss +189 -0
- package/src/assets/styles/index.ts +6 -0
- package/src/assets/styles/nprogress.scss +63 -0
- package/src/assets/styles/rbac.scss +61 -0
- package/src/assets/styles/resources/utils.scss +53 -0
- package/src/assets/styles/resources/variables.scss +6 -0
- package/src/components/NotAllowed/index.vue +76 -0
- package/src/components/PageHeader/index.vue +32 -0
- package/src/components/PageMain/index.vue +51 -0
- package/src/components/PassStrengthValidator/index.vue +213 -0
- package/src/components/PassStrengthValidator/rule.vue +51 -0
- package/src/components/PubinfoApp/index.vue +21 -0
- package/src/components/PubinfoIcon/index.vue +85 -0
- package/src/components/PubinfoProvider/index.ts +34 -0
- package/src/components/index.ts +8 -0
- package/src/composables/auth.ts +53 -0
- package/src/composables/index.ts +4 -0
- package/src/composables/log.ts +44 -0
- package/src/composables/theme.ts +16 -0
- package/src/composables/watchDiff.ts +53 -0
- package/src/config/index.ts +1 -0
- package/src/config/settings.ts +107 -0
- package/src/context.ts +30 -0
- package/src/create.ts +88 -0
- package/src/directives/index.ts +6 -0
- package/src/directives/plugins/permission.ts +23 -0
- package/src/index.ts +12 -0
- package/src/interface.ts +35 -0
- package/src/layout/Layout.vue +330 -0
- package/src/layout/components/BackTop/index.vue +47 -0
- package/src/layout/components/Content/IframeView.vue +120 -0
- package/src/layout/components/Content/LinkView.vue +118 -0
- package/src/layout/components/Content/index.vue +100 -0
- package/src/layout/components/Copyright/index.vue +49 -0
- package/src/layout/components/Header/TopMode/More.vue +103 -0
- package/src/layout/components/Header/TopMode/NotCursor.vue +77 -0
- package/src/layout/components/Header/TopMode/index.vue +151 -0
- package/src/layout/components/Header/TopThinMode.vue +45 -0
- package/src/layout/components/Header/index.vue +263 -0
- package/src/layout/components/Logo/index.vue +70 -0
- package/src/layout/components/Menu/index.vue +195 -0
- package/src/layout/components/Menu/item.vue +166 -0
- package/src/layout/components/Menu/sub.vue +220 -0
- package/src/layout/components/Menu/types.ts +49 -0
- package/src/layout/components/SettingBar/AppSetting.vue +146 -0
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +238 -0
- package/src/layout/components/SettingBar/components/SettingBreadcrumb.vue +42 -0
- package/src/layout/components/SettingBar/components/SettingCopyright.vue +44 -0
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +215 -0
- package/src/layout/components/SettingBar/components/SettingHome.vue +33 -0
- package/src/layout/components/SettingBar/components/SettingMenu.vue +108 -0
- package/src/layout/components/SettingBar/components/SettingMode.vue +164 -0
- package/src/layout/components/SettingBar/components/SettingNavSearch.vue +30 -0
- package/src/layout/components/SettingBar/components/SettingOther.vue +53 -0
- package/src/layout/components/SettingBar/components/SettingPage.vue +20 -0
- package/src/layout/components/SettingBar/components/SettingTabbar.vue +70 -0
- package/src/layout/components/SettingBar/components/SettingThemes.vue +202 -0
- package/src/layout/components/SettingBar/components/SettingToolbar.vue +54 -0
- package/src/layout/components/SettingBar/components/SettingTopbar.vue +37 -0
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +149 -0
- package/src/layout/components/SettingBar/index.vue +112 -0
- package/src/layout/components/Sidebar/MainSidebar.vue +240 -0
- package/src/layout/components/Sidebar/SubSidebar.vue +165 -0
- package/src/layout/components/Sidebar/index.vue +13 -0
- package/src/layout/components/Tools/Breadcrumb/index.vue +21 -0
- package/src/layout/components/Tools/Breadcrumb/item.vue +44 -0
- package/src/layout/components/Tools/DayNightSwitch.vue +93 -0
- package/src/layout/components/Tools/HotkeysIntro.vue +103 -0
- package/src/layout/components/Tools/I18nSelector.vue +52 -0
- package/src/layout/components/Tools/Notification.vue +152 -0
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +722 -0
- package/src/layout/components/Tools/Preferences/index.vue +20 -0
- package/src/layout/components/Tools/Search.vue +380 -0
- package/src/layout/components/Tools/index.vue +241 -0
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +304 -0
- package/src/layout/components/Topbar/Tabbar/index.vue +781 -0
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +138 -0
- package/src/layout/components/Topbar/Toolbar/Star.vue +30 -0
- package/src/layout/components/Topbar/Toolbar/index.vue +307 -0
- package/src/layout/components/Topbar/index.vue +106 -0
- package/src/layout/composables/useContext.ts +38 -0
- package/src/layout/composables/useGetComputedStyle.ts +70 -0
- package/src/layout/composables/useHotkey.ts +49 -0
- package/src/layout/composables/useMainPage.ts +68 -0
- package/src/layout/composables/useMenu.ts +29 -0
- package/src/layout/composables/useTabbar.ts +165 -0
- package/src/layout/composables/useTitle.ts +41 -0
- package/src/layout/composables/useViewTransition.ts +16 -0
- package/src/layout/composables/useWatermark.ts +67 -0
- package/src/layout/index.ts +59 -0
- package/src/layout/provider.ts +61 -0
- package/src/layout/ui-kit/HBadge.vue +41 -0
- package/src/layout/ui-kit/HButton.vue +28 -0
- package/src/layout/ui-kit/HCheckList.vue +49 -0
- package/src/layout/ui-kit/HDialog.vue +108 -0
- package/src/layout/ui-kit/HDivider.vue +53 -0
- package/src/layout/ui-kit/HDropdown.vue +13 -0
- package/src/layout/ui-kit/HDropdownMenu.vue +50 -0
- package/src/layout/ui-kit/HDropdownTree.vue +79 -0
- package/src/layout/ui-kit/HInput.vue +40 -0
- package/src/layout/ui-kit/HKbd.vue +33 -0
- package/src/layout/ui-kit/HSelect.vue +66 -0
- package/src/layout/ui-kit/HSlideover.vue +119 -0
- package/src/layout/ui-kit/HTabList.vue +56 -0
- package/src/layout/ui-kit/HToggle.vue +177 -0
- package/src/layout/ui-kit/HTooltip.vue +21 -0
- package/src/locales/index.ts +80 -0
- package/src/locales/lang/en.json +96 -0
- package/src/locales/lang/zh-cn.json +97 -0
- package/src/locales/lang/zh-tw.json +97 -0
- package/src/locales/ui.ts +3 -0
- package/src/modules.ts +49 -0
- package/src/pages/personal/notification.vue +58 -0
- package/src/pages/personal/profile/index.vue +125 -0
- package/src/pages/system/[...all].vue +74 -0
- package/src/pages/system/change-organization/index.vue +174 -0
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +144 -0
- package/src/pages/system/change-password/index.vue +102 -0
- package/src/pages/system/change-password/page.vue +58 -0
- package/src/pages/system/index.vue +5 -0
- package/src/pages/system/not-permission/index.vue +73 -0
- package/src/pages/system/reload.vue +11 -0
- package/src/route/async.ts +18 -0
- package/src/route/guard/auth.ts +92 -0
- package/src/route/guard/basic.ts +23 -0
- package/src/route/guard/index.ts +3 -0
- package/src/route/guard/setting.ts +122 -0
- package/src/route/index.ts +12 -0
- package/src/route/routes.ts +110 -0
- package/src/stores/enum/index.ts +29 -0
- package/src/stores/helper.ts +37 -0
- package/src/stores/index.ts +10 -0
- package/src/stores/modules/favorites.ts +152 -0
- package/src/stores/modules/iframe.ts +114 -0
- package/src/stores/modules/index.ts +9 -0
- package/src/stores/modules/keepAlive.ts +68 -0
- package/src/stores/modules/menu.ts +207 -0
- package/src/stores/modules/notification.ts +34 -0
- package/src/stores/modules/route.ts +435 -0
- package/src/stores/modules/settings.ts +371 -0
- package/src/stores/modules/tabbar.ts +338 -0
- package/src/stores/modules/user.ts +210 -0
- package/src/stores/plugin/persist.ts +27 -0
- package/src/stores/plugin/sideEffect/cleanup.ts +20 -0
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +62 -0
- package/src/stores/plugin/sideEffect/iframeCache.ts +32 -0
- package/src/stores/plugin/sideEffect/index.ts +15 -0
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +98 -0
- package/src/utils/cleanup.ts +20 -0
- package/src/utils/crypto.ts +27 -0
- package/src/utils/eventBus.ts +15 -0
- package/src/utils/index.ts +44 -0
- package/src/utils/injectionKeys.ts +5 -0
- package/src/utils/storage.ts +57 -0
- package/src/utils/utils.ts +12 -0
- package/src/utils/watermark.ts +256 -0
- package/types/auto-imports.d.ts +85 -0
- package/types/components.d.ts +36 -0
- package/types/favorites.d.ts +8 -0
- package/types/iframe.d.ts +8 -0
- package/types/index.d.ts +9 -0
- package/types/menu.d.ts +31 -0
- package/types/module.d.ts +23 -0
- package/types/settings.d.ts +571 -0
- package/types/tabbar.d.ts +23 -0
- package/types/user.d.ts +46 -0
- package/types/vite-env.d.ts +39 -0
- package/types/vue-router.d.ts +68 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { OverlayScrollbarsComponentRef } from 'overlayscrollbars-vue';
|
|
3
|
+
import type { SubMenuProps } from './types';
|
|
4
|
+
import { useTimeoutFn } from '@vueuse/core';
|
|
5
|
+
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
6
|
+
import Item from './item.vue';
|
|
7
|
+
import { rootMenuInjectionKey } from './types';
|
|
8
|
+
|
|
9
|
+
defineOptions({
|
|
10
|
+
name: 'SubMenu',
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(
|
|
14
|
+
defineProps<SubMenuProps>(),
|
|
15
|
+
{
|
|
16
|
+
level: 0,
|
|
17
|
+
},
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const index = props.menu.path ?? JSON.stringify(props.menu);
|
|
21
|
+
const itemRef = shallowRef();
|
|
22
|
+
const subMenuRef = shallowRef<OverlayScrollbarsComponentRef>();
|
|
23
|
+
const rootMenu = inject(rootMenuInjectionKey)!;
|
|
24
|
+
|
|
25
|
+
const opened = computed(() => {
|
|
26
|
+
return rootMenu.openedMenus.includes(props.uniqueKey[props.uniqueKey.length - 1]);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const transitionEvent = computed(() => {
|
|
30
|
+
return rootMenu.isMenuPopup
|
|
31
|
+
? {
|
|
32
|
+
enter(el: HTMLElement) {
|
|
33
|
+
if (el.offsetHeight > window.innerHeight) {
|
|
34
|
+
el.style.height = `${window.innerHeight}px`;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
afterEnter: () => {},
|
|
38
|
+
beforeLeave: (el: HTMLElement) => {
|
|
39
|
+
el.style.overflow = 'hidden';
|
|
40
|
+
el.style.maxHeight = `${el.offsetHeight}px`;
|
|
41
|
+
},
|
|
42
|
+
leave: (el: HTMLElement) => {
|
|
43
|
+
el.style.maxHeight = '0';
|
|
44
|
+
},
|
|
45
|
+
afterLeave(el: HTMLElement) {
|
|
46
|
+
el.style.overflow = '';
|
|
47
|
+
el.style.maxHeight = '';
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
: {
|
|
51
|
+
enter(el: HTMLElement) {
|
|
52
|
+
const memorizedHeight = el.offsetHeight;
|
|
53
|
+
el.style.maxHeight = '0';
|
|
54
|
+
el.style.overflow = 'hidden';
|
|
55
|
+
void el.offsetHeight;
|
|
56
|
+
el.style.maxHeight = `${memorizedHeight}px`;
|
|
57
|
+
},
|
|
58
|
+
afterEnter(el: HTMLElement) {
|
|
59
|
+
el.style.overflow = '';
|
|
60
|
+
el.style.maxHeight = '';
|
|
61
|
+
},
|
|
62
|
+
beforeLeave(el: HTMLElement) {
|
|
63
|
+
el.style.overflow = 'hidden';
|
|
64
|
+
el.style.maxHeight = `${el.offsetHeight}px`;
|
|
65
|
+
},
|
|
66
|
+
leave(el: HTMLElement) {
|
|
67
|
+
el.style.maxHeight = '0';
|
|
68
|
+
},
|
|
69
|
+
afterLeave(el: HTMLElement) {
|
|
70
|
+
el.style.overflow = '';
|
|
71
|
+
el.style.maxHeight = '';
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const transitionClass = computed(() => {
|
|
77
|
+
return rootMenu.isMenuPopup
|
|
78
|
+
? {
|
|
79
|
+
enterActiveClass: 'ease-in-out duration-300',
|
|
80
|
+
enterFromClass: 'opacity-0 translate-x-4',
|
|
81
|
+
enterToClass: 'opacity-100',
|
|
82
|
+
leaveActiveClass: 'ease-in-out duration-300',
|
|
83
|
+
leaveFromClass: 'opacity-100',
|
|
84
|
+
leaveToClass: 'opacity-0',
|
|
85
|
+
}
|
|
86
|
+
: {
|
|
87
|
+
enterActiveClass: 'ease-in-out duration-300',
|
|
88
|
+
enterFromClass: 'opacity-0',
|
|
89
|
+
enterToClass: 'opacity-100',
|
|
90
|
+
leaveActiveClass: 'ease-in-out duration-300',
|
|
91
|
+
leaveFromClass: 'opacity-100',
|
|
92
|
+
leaveToClass: 'opacity-0',
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const hasChildren = computed(() => {
|
|
97
|
+
let flag = true;
|
|
98
|
+
if (props.menu.children) {
|
|
99
|
+
if (props.menu.children.every((item: any) => item.meta?.sidebar === false)) {
|
|
100
|
+
flag = false;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
flag = false;
|
|
105
|
+
}
|
|
106
|
+
return flag;
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
function handleClick() {
|
|
110
|
+
if (rootMenu.isMenuPopup && hasChildren.value) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (hasChildren.value) {
|
|
114
|
+
rootMenu.handleSubMenuClick(index, props.uniqueKey);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
rootMenu.handleMenuItemClick(index, props.menu.meta);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
let timeout: (() => void) | undefined;
|
|
122
|
+
|
|
123
|
+
function handleMouseenter() {
|
|
124
|
+
if (!rootMenu.isMenuPopup) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
rootMenu.mouseInMenu = props.uniqueKey;
|
|
128
|
+
timeout?.()
|
|
129
|
+
;({ stop: timeout } = useTimeoutFn(() => {
|
|
130
|
+
if (hasChildren.value) {
|
|
131
|
+
rootMenu.openMenu(index, props.uniqueKey);
|
|
132
|
+
nextTick(() => {
|
|
133
|
+
const el = itemRef.value.ref;
|
|
134
|
+
let top = 0;
|
|
135
|
+
let left = 0;
|
|
136
|
+
if (rootMenu.props.mode === 'vertical' || props.level !== 0) {
|
|
137
|
+
top = el.getBoundingClientRect().top + el.scrollTop;
|
|
138
|
+
left = el.getBoundingClientRect().left + el.getBoundingClientRect().width;
|
|
139
|
+
if (top + subMenuRef.value!.getElement()!.offsetHeight > window.innerHeight) {
|
|
140
|
+
top = window.innerHeight - subMenuRef.value!.getElement()!.offsetHeight;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
top = el.getBoundingClientRect().top + el.getBoundingClientRect().height;
|
|
145
|
+
left = el.getBoundingClientRect().left;
|
|
146
|
+
if (top + subMenuRef.value!.getElement()!.offsetHeight > window.innerHeight) {
|
|
147
|
+
subMenuRef.value!.getElement()!.style.height = `${window.innerHeight - top}px`;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
subMenuRef.value!.getElement()!.style.top = `${top}px`;
|
|
151
|
+
subMenuRef.value!.getElement()!.style.left = `${left}px`;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
const path = props.menu.children ? rootMenu.subMenus[index].indexPath.at(-1)! : rootMenu.items[index].indexPath.at(-1)!;
|
|
156
|
+
rootMenu.openMenu(path, rootMenu.subMenus[path].indexPath);
|
|
157
|
+
}
|
|
158
|
+
}, 300));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function handleMouseleave() {
|
|
162
|
+
if (!rootMenu.isMenuPopup) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
rootMenu.mouseInMenu = [];
|
|
166
|
+
timeout?.()
|
|
167
|
+
;({ stop: timeout } = useTimeoutFn(() => {
|
|
168
|
+
if (rootMenu.mouseInMenu.length === 0) {
|
|
169
|
+
rootMenu.closeMenu(props.uniqueKey);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
if (hasChildren.value) {
|
|
173
|
+
if (!rootMenu.mouseInMenu.includes(props.uniqueKey.at(-1)!)) {
|
|
174
|
+
rootMenu.closeMenu(props.uniqueKey.at(-1)!);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}, 300));
|
|
179
|
+
}
|
|
180
|
+
</script>
|
|
181
|
+
|
|
182
|
+
<template>
|
|
183
|
+
<Item
|
|
184
|
+
ref="itemRef"
|
|
185
|
+
:unique-key="uniqueKey"
|
|
186
|
+
:item="menu"
|
|
187
|
+
:level="level"
|
|
188
|
+
:sub-menu="hasChildren"
|
|
189
|
+
:expand="opened"
|
|
190
|
+
@click="handleClick"
|
|
191
|
+
@mouseenter="handleMouseenter"
|
|
192
|
+
@mouseleave="handleMouseleave"
|
|
193
|
+
/>
|
|
194
|
+
<Teleport v-if="hasChildren" to="body" :disabled="!rootMenu.isMenuPopup">
|
|
195
|
+
<Transition v-bind="transitionClass" v-on="transitionEvent">
|
|
196
|
+
<OverlayScrollbarsComponent
|
|
197
|
+
v-if="opened"
|
|
198
|
+
ref="subMenuRef"
|
|
199
|
+
:options="{ scrollbars: { visibility: 'hidden' } }"
|
|
200
|
+
defer
|
|
201
|
+
class="sub-menu"
|
|
202
|
+
:class="{
|
|
203
|
+
'bg-[var(--g-sub-sidebar-bg)]': rootMenu.isMenuPopup,
|
|
204
|
+
'ring-1 ring-stone-2 dark:ring-stone-8 shadow-xl fixed z-3000 w-[200px]': rootMenu.isMenuPopup,
|
|
205
|
+
'mx-2': rootMenu.isMenuPopup && (rootMenu.props.mode === 'vertical' || level !== 0),
|
|
206
|
+
'rounded-2 py-1': rootMenu.props.rounded && rootMenu.isMenuPopup,
|
|
207
|
+
}"
|
|
208
|
+
>
|
|
209
|
+
<template v-for="item in menu.children" :key="item.path ?? JSON.stringify(item)">
|
|
210
|
+
<SubMenu
|
|
211
|
+
v-if="item.meta?.sidebar !== false"
|
|
212
|
+
:unique-key="[...uniqueKey, item.path ?? JSON.stringify(item)]"
|
|
213
|
+
:menu="item"
|
|
214
|
+
:level="level + 1"
|
|
215
|
+
/>
|
|
216
|
+
</template>
|
|
217
|
+
</OverlayScrollbarsComponent>
|
|
218
|
+
</Transition>
|
|
219
|
+
</Teleport>
|
|
220
|
+
</template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Menu } from '#/menu';
|
|
2
|
+
import { createInjectionKey } from '@/utils';
|
|
3
|
+
|
|
4
|
+
export interface MenuItem {
|
|
5
|
+
index: string
|
|
6
|
+
indexPath: string[]
|
|
7
|
+
active?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MenuProps {
|
|
11
|
+
menu: Menu.recordRaw[]
|
|
12
|
+
value: string
|
|
13
|
+
accordion?: boolean
|
|
14
|
+
defaultOpeneds?: string[]
|
|
15
|
+
mode?: 'horizontal' | 'vertical'
|
|
16
|
+
collapse?: boolean
|
|
17
|
+
showCollapseName?: boolean
|
|
18
|
+
rounded?: boolean
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MenuInjection {
|
|
22
|
+
props: MenuProps
|
|
23
|
+
items: Record<string, MenuItem>
|
|
24
|
+
subMenus: Record<string, MenuItem>
|
|
25
|
+
activeIndex: MenuProps['value']
|
|
26
|
+
openedMenus: string[]
|
|
27
|
+
mouseInMenu: string[]
|
|
28
|
+
isMenuPopup: boolean
|
|
29
|
+
openMenu: (index: string, indexPath: string[]) => void
|
|
30
|
+
closeMenu: (index: string | string[]) => void
|
|
31
|
+
handleMenuItemClick: (index: string, meta?: Menu.recordRaw['meta']) => void
|
|
32
|
+
handleSubMenuClick: (index: string, indexPath: string[]) => void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const rootMenuInjectionKey = createInjectionKey<MenuInjection>('rootMenu');
|
|
36
|
+
|
|
37
|
+
export interface SubMenuProps {
|
|
38
|
+
uniqueKey: string[]
|
|
39
|
+
menu: Menu.recordRaw
|
|
40
|
+
level?: number
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SubMenuItemProps {
|
|
44
|
+
uniqueKey: string[]
|
|
45
|
+
item: Menu.recordRaw
|
|
46
|
+
level?: number
|
|
47
|
+
subMenu?: boolean
|
|
48
|
+
expand?: boolean
|
|
49
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useClipboard } from '@vueuse/core';
|
|
3
|
+
import { defineAsyncComponent } from 'vue';
|
|
4
|
+
import Message from 'vue-m-message';
|
|
5
|
+
import EpDocumentCopy from '~icons/ep/document-copy';
|
|
6
|
+
import { useContext } from '../../composables/useContext';
|
|
7
|
+
|
|
8
|
+
defineOptions({
|
|
9
|
+
name: 'AppSetting',
|
|
10
|
+
components: {
|
|
11
|
+
SettingThemes: defineAsyncComponent(() => import('./components/SettingThemes.vue')),
|
|
12
|
+
SettingsMode: defineAsyncComponent(() => import('./components/SettingMode.vue')),
|
|
13
|
+
SettingWidthMode: defineAsyncComponent(() => import('./components/SettingWidthMode.vue')),
|
|
14
|
+
SettingEnableTransition: defineAsyncComponent(() => import('./components/SettingEnableTransition.vue')),
|
|
15
|
+
SettingMenu: defineAsyncComponent(() => import('./components/SettingMenu.vue')),
|
|
16
|
+
SettingTopbar: defineAsyncComponent(() => import('./components/SettingTopbar.vue')),
|
|
17
|
+
SettingTabbar: defineAsyncComponent(() => import('./components/SettingTabbar.vue')),
|
|
18
|
+
SettingToolbar: defineAsyncComponent(() => import('./components/SettingToolbar.vue')),
|
|
19
|
+
SettingBreadcrumb: defineAsyncComponent(() => import('./components/SettingBreadcrumb.vue')),
|
|
20
|
+
SettingPage: defineAsyncComponent(() => import('./components/SettingPage.vue')),
|
|
21
|
+
SettingNavSearch: defineAsyncComponent(() => import('./components/SettingNavSearch.vue')),
|
|
22
|
+
SettingCopyright: defineAsyncComponent(() => import('./components/SettingCopyright.vue')),
|
|
23
|
+
SettingHome: defineAsyncComponent(() => import('./components/SettingHome.vue')),
|
|
24
|
+
SettingOther: defineAsyncComponent(() => import('./components/SettingOther.vue')),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const isShow = defineModel('open', { default: false });
|
|
29
|
+
|
|
30
|
+
const route = useRoute();
|
|
31
|
+
const { settingsStore, menuStore } = useContext();
|
|
32
|
+
|
|
33
|
+
const isMobile = computed(() => {
|
|
34
|
+
return settingsStore.mode !== 'pc';
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const settingComponents = computed(() => {
|
|
38
|
+
const normal = [
|
|
39
|
+
'SettingsMode',
|
|
40
|
+
'SettingWidthMode',
|
|
41
|
+
'SettingEnableTransition',
|
|
42
|
+
'SettingBreadcrumb',
|
|
43
|
+
];
|
|
44
|
+
return excludesComponents(
|
|
45
|
+
[
|
|
46
|
+
'SettingThemes',
|
|
47
|
+
'SettingsMode',
|
|
48
|
+
'SettingWidthMode',
|
|
49
|
+
'SettingEnableTransition',
|
|
50
|
+
'SettingMenu',
|
|
51
|
+
'SettingTopbar',
|
|
52
|
+
'SettingTabbar',
|
|
53
|
+
'SettingToolbar',
|
|
54
|
+
'SettingBreadcrumb',
|
|
55
|
+
'SettingPage',
|
|
56
|
+
'SettingNavSearch',
|
|
57
|
+
'SettingHome',
|
|
58
|
+
'SettingCopyright',
|
|
59
|
+
'SettingOther',
|
|
60
|
+
],
|
|
61
|
+
normal,
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
watch(() => settingsStore.settings.menu.menuMode, (value) => {
|
|
66
|
+
if (value === 'single') {
|
|
67
|
+
menuStore.setActived(0);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
menuStore.setActived(route.fullPath);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const { copy, copied, isSupported } = useClipboard();
|
|
75
|
+
|
|
76
|
+
watch(copied, (val) => {
|
|
77
|
+
if (val) {
|
|
78
|
+
Message.success('复制成功,请粘贴到 src/settings.ts 文件中!', {
|
|
79
|
+
zIndex: 2000,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
function handleCopy() {
|
|
85
|
+
copy(JSON.stringify(settingsStore.settings, null, 2));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function excludesComponents(all: string[], excludes: string[]) {
|
|
89
|
+
return all.filter((comp) => {
|
|
90
|
+
if (isMobile.value) {
|
|
91
|
+
return !excludes.includes(comp);
|
|
92
|
+
}
|
|
93
|
+
return comp;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<template>
|
|
99
|
+
<HSlideover v-model="isShow" title="应用配置">
|
|
100
|
+
<div class="settong-warp">
|
|
101
|
+
<div class="rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose">
|
|
102
|
+
<p class="my-1">
|
|
103
|
+
应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。
|
|
104
|
+
</p>
|
|
105
|
+
<p class="my-1">
|
|
106
|
+
注意:在生产环境中应关闭该模块。
|
|
107
|
+
</p>
|
|
108
|
+
</div>
|
|
109
|
+
<template v-for="comp in settingComponents" :key="comp">
|
|
110
|
+
<component :is="comp" />
|
|
111
|
+
</template>
|
|
112
|
+
</div>
|
|
113
|
+
<template v-if="isSupported" #footer>
|
|
114
|
+
<HButton block @click="handleCopy">
|
|
115
|
+
<EpDocumentCopy />
|
|
116
|
+
复制配置
|
|
117
|
+
</HButton>
|
|
118
|
+
</template>
|
|
119
|
+
</HSlideover>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<style lang="scss" scoped>
|
|
123
|
+
.settong-warp :deep(.setting-item) {
|
|
124
|
+
--at-apply:
|
|
125
|
+
flex
|
|
126
|
+
items-center
|
|
127
|
+
justify-between
|
|
128
|
+
gap-4
|
|
129
|
+
px-4
|
|
130
|
+
py-2
|
|
131
|
+
rounded-2
|
|
132
|
+
transition;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
--at-apply: bg-stone-1 dark:bg-stone-1 dark:bg-stone-9;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.label {
|
|
139
|
+
--at-apply: flex items-center flex-shrink-0 gap-2 text-sm;
|
|
140
|
+
|
|
141
|
+
i {
|
|
142
|
+
--at-apply: text-xl text-orange cursor-help;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
</style>
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineOptions({
|
|
3
|
+
name: 'DayNightToggle',
|
|
4
|
+
});
|
|
5
|
+
const enabled = defineModel();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div flex justify-center pb-15px>
|
|
10
|
+
<div class="toggleWrapper">
|
|
11
|
+
<input
|
|
12
|
+
id="dn"
|
|
13
|
+
v-model="enabled"
|
|
14
|
+
type="checkbox"
|
|
15
|
+
class="dn"
|
|
16
|
+
>
|
|
17
|
+
<label for="dn" class="toggle">
|
|
18
|
+
<span class="toggle__handler">
|
|
19
|
+
<span class="crater crater--1" />
|
|
20
|
+
<span class="crater crater--2" />
|
|
21
|
+
<span class="crater crater--3" />
|
|
22
|
+
</span>
|
|
23
|
+
<span class="star star--1" />
|
|
24
|
+
<span class="star star--2" />
|
|
25
|
+
<span class="star star--3" />
|
|
26
|
+
<span class="star star--4" />
|
|
27
|
+
<span class="star star--5" />
|
|
28
|
+
<span class="star star--6" />
|
|
29
|
+
</label>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<style scoped lang="scss">
|
|
35
|
+
.toggleWrapper {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
transform: scale(0.5);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.toggleWrapper input {
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: -99em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.toggle {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
width: 90px;
|
|
49
|
+
height: 50px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
background-color: #83d8ff;
|
|
52
|
+
border-radius: 84px;
|
|
53
|
+
transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toggle::before {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 15px;
|
|
59
|
+
left: -50px;
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
content: "Day";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.toggle::after {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 15px;
|
|
67
|
+
right: -60px;
|
|
68
|
+
font-size: 18px;
|
|
69
|
+
color: #384f6d;
|
|
70
|
+
content: "Night";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.toggle__handler {
|
|
74
|
+
position: relative;
|
|
75
|
+
top: 3px;
|
|
76
|
+
left: 3px;
|
|
77
|
+
z-index: 1;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
width: 44px;
|
|
80
|
+
height: 44px;
|
|
81
|
+
background-color: #ffdb98;
|
|
82
|
+
border-radius: 50px;
|
|
83
|
+
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
|
|
84
|
+
transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
85
|
+
transform: rotate(-45deg);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.toggle__handler .crater {
|
|
89
|
+
position: absolute;
|
|
90
|
+
background-color: #e8cda5;
|
|
91
|
+
border-radius: 100%;
|
|
92
|
+
opacity: 0;
|
|
93
|
+
transition: opacity 200ms ease-in-out;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.toggle__handler .crater--1 {
|
|
97
|
+
top: 18px;
|
|
98
|
+
left: 10px;
|
|
99
|
+
width: 4px;
|
|
100
|
+
height: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.toggle__handler .crater--2 {
|
|
104
|
+
top: 28px;
|
|
105
|
+
left: 22px;
|
|
106
|
+
width: 6px;
|
|
107
|
+
height: 6px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.toggle__handler .crater--3 {
|
|
111
|
+
top: 10px;
|
|
112
|
+
left: 25px;
|
|
113
|
+
width: 8px;
|
|
114
|
+
height: 8px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.star {
|
|
118
|
+
position: absolute;
|
|
119
|
+
background-color: #fff;
|
|
120
|
+
border-radius: 50%;
|
|
121
|
+
transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.star--1 {
|
|
125
|
+
top: 10px;
|
|
126
|
+
left: 35px;
|
|
127
|
+
z-index: 0;
|
|
128
|
+
width: 30px;
|
|
129
|
+
height: 3px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.star--2 {
|
|
133
|
+
top: 18px;
|
|
134
|
+
left: 28px;
|
|
135
|
+
z-index: 1;
|
|
136
|
+
width: 30px;
|
|
137
|
+
height: 3px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.star--3 {
|
|
141
|
+
top: 27px;
|
|
142
|
+
left: 40px;
|
|
143
|
+
z-index: 0;
|
|
144
|
+
width: 30px;
|
|
145
|
+
height: 3px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.star--4,
|
|
149
|
+
.star--5,
|
|
150
|
+
.star--6 {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.star--4 {
|
|
156
|
+
top: 16px;
|
|
157
|
+
left: 11px;
|
|
158
|
+
z-index: 0;
|
|
159
|
+
width: 2px;
|
|
160
|
+
height: 2px;
|
|
161
|
+
transform: translate3d(3px, 0, 0);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.star--5 {
|
|
165
|
+
top: 32px;
|
|
166
|
+
left: 17px;
|
|
167
|
+
z-index: 0;
|
|
168
|
+
width: 3px;
|
|
169
|
+
height: 3px;
|
|
170
|
+
transform: translate3d(3px, 0, 0);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.star--6 {
|
|
174
|
+
top: 36px;
|
|
175
|
+
left: 28px;
|
|
176
|
+
z-index: 0;
|
|
177
|
+
width: 2px;
|
|
178
|
+
height: 2px;
|
|
179
|
+
transform: translate3d(3px, 0, 0);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
input:checked + .toggle {
|
|
183
|
+
background-color: #749dd6;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
input:checked + .toggle::before {
|
|
187
|
+
color: #749ed7;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
input:checked + .toggle::after {
|
|
191
|
+
color: #fff;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
input:checked + .toggle .toggle__handler {
|
|
195
|
+
background-color: #ffe5b5;
|
|
196
|
+
transform: translate3d(40px, 0, 0) rotate(0);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
input:checked + .toggle .toggle__handler .crater {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
input:checked + .toggle .star--1 {
|
|
204
|
+
width: 2px;
|
|
205
|
+
height: 2px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
input:checked + .toggle .star--2 {
|
|
209
|
+
width: 4px;
|
|
210
|
+
height: 4px;
|
|
211
|
+
transform: translate3d(-5px, 0, 0);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
input:checked + .toggle .star--3 {
|
|
215
|
+
width: 2px;
|
|
216
|
+
height: 2px;
|
|
217
|
+
transform: translate3d(-7px, 0, 0);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
input:checked + .toggle .star--4,
|
|
221
|
+
input:checked + .toggle .star--5,
|
|
222
|
+
input:checked + .toggle .star--6 {
|
|
223
|
+
opacity: 1;
|
|
224
|
+
transform: translate3d(0, 0, 0);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
input:checked + .toggle .star--4 {
|
|
228
|
+
transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
input:checked + .toggle .star--5 {
|
|
232
|
+
transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
input:checked + .toggle .star--6 {
|
|
236
|
+
transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
237
|
+
}
|
|
238
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useContext } from '../../../composables/useContext';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'SettingBreadcrumb',
|
|
6
|
+
});
|
|
7
|
+
const { settingsStore } = useContext();
|
|
8
|
+
const { breadcrumb, menu } = toRefs(settingsStore.settings);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<HDivider title="面包屑导航">
|
|
13
|
+
<div class="setting-item">
|
|
14
|
+
<div class="label">
|
|
15
|
+
是否启用
|
|
16
|
+
</div>
|
|
17
|
+
<HToggle v-model="breadcrumb.enable" />
|
|
18
|
+
</div>
|
|
19
|
+
<div class="setting-item">
|
|
20
|
+
<div class="label">
|
|
21
|
+
风格
|
|
22
|
+
</div>
|
|
23
|
+
<HCheckList
|
|
24
|
+
v-model="breadcrumb.style"
|
|
25
|
+
:options="[
|
|
26
|
+
{ label: '默认', value: '' },
|
|
27
|
+
{ label: '现代', value: 'modern' },
|
|
28
|
+
]"
|
|
29
|
+
:disabled="!breadcrumb.enable"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="setting-item">
|
|
33
|
+
<div class="label">
|
|
34
|
+
是否显示主导航
|
|
35
|
+
</div>
|
|
36
|
+
<HToggle
|
|
37
|
+
v-model="breadcrumb.enableMainMenu"
|
|
38
|
+
:disabled="!breadcrumb.enable || ['single'].includes(menu.menuMode)"
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
41
|
+
</HDivider>
|
|
42
|
+
</template>
|