@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,781 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Tabbar } from '#/tabbar';
|
|
3
|
+
import { PubinfoIcon } from '@/components';
|
|
4
|
+
import { storage } from '@/utils';
|
|
5
|
+
import ContextMenu from '@imengyu/vue3-context-menu';
|
|
6
|
+
import { useMagicKeys } from '@vueuse/core';
|
|
7
|
+
import hotkeys from 'hotkeys-js';
|
|
8
|
+
import Sortable from 'sortablejs';
|
|
9
|
+
import { useI18n } from 'vue-i18n';
|
|
10
|
+
import Message from 'vue-m-message';
|
|
11
|
+
import RiCloseFill from '~icons/ri/close-fill';
|
|
12
|
+
import RiPushpin2Fill from '~icons/ri/pushpin-2-fill';
|
|
13
|
+
import useMainPage from '../../..//composables/useMainPage';
|
|
14
|
+
import useTabbar from '../../..//composables/useTabbar';
|
|
15
|
+
import { useContext } from '../../../composables/useContext';
|
|
16
|
+
import MoreAction from './MoreAction.vue';
|
|
17
|
+
import '@imengyu/vue3-context-menu/lib/vue3-context-menu.css';
|
|
18
|
+
|
|
19
|
+
defineOptions({
|
|
20
|
+
name: 'Tabbar',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const route = useRoute();
|
|
24
|
+
const router = useRouter();
|
|
25
|
+
|
|
26
|
+
const { settingsStore, tabbarStore, generateI18nTitle } = useContext();
|
|
27
|
+
|
|
28
|
+
const tabbar = useTabbar();
|
|
29
|
+
const mainPage = useMainPage();
|
|
30
|
+
|
|
31
|
+
const keys = useMagicKeys({ reactive: true });
|
|
32
|
+
|
|
33
|
+
const { t } = useI18n();
|
|
34
|
+
|
|
35
|
+
const activedTabId = computed(() => tabbar.getId());
|
|
36
|
+
const isShowMoreAction = computed(() => tabbarStore.list.length > 1 && (tabbar.checkCloseOtherSide() || tabbar.checkCloseLeftSide() || tabbar.checkCloseRightSide()));
|
|
37
|
+
|
|
38
|
+
const tabsRef = ref();
|
|
39
|
+
const tabContainerRef = ref();
|
|
40
|
+
const tabRef = shallowRef<HTMLElement[]>([]);
|
|
41
|
+
onBeforeUpdate(() => {
|
|
42
|
+
tabRef.value = [];
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const activePseudoTabStart = computed(() => {
|
|
46
|
+
const index = tabbarStore.list.findIndex(item => item.tabId === activedTabId.value);
|
|
47
|
+
return `${tabsRef.value.offsetWidth - (tabRef.value.find(item => Number.parseInt(item.dataset.index!) === index)?.getBoundingClientRect().right || 0)}px`;
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const activePseudoTabWidth = computed(() => {
|
|
51
|
+
const index = tabbarStore.list.findIndex(item => item.tabId === activedTabId.value);
|
|
52
|
+
return `${tabRef.value.find(item => Number.parseInt(item.dataset.index!) === index)?.offsetWidth || 0}px`;
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const isDragging = ref(false);
|
|
56
|
+
let tabSortable: Sortable;
|
|
57
|
+
onMounted(() => {
|
|
58
|
+
tabSortable = new Sortable(tabContainerRef.value.$el, {
|
|
59
|
+
animation: 200,
|
|
60
|
+
ghostClass: 'tab-ghost',
|
|
61
|
+
draggable: '.tab',
|
|
62
|
+
handle: '.drag-handle',
|
|
63
|
+
filter: '.no-drag',
|
|
64
|
+
onStart: () => {
|
|
65
|
+
isDragging.value = true;
|
|
66
|
+
},
|
|
67
|
+
onEnd: () => {
|
|
68
|
+
isDragging.value = false;
|
|
69
|
+
},
|
|
70
|
+
onUpdate: (e) => {
|
|
71
|
+
if (e.newIndex !== undefined && e.oldIndex !== undefined) {
|
|
72
|
+
tabbarStore.sort(e.newIndex, e.oldIndex);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
watch([
|
|
78
|
+
() => settingsStore.mode,
|
|
79
|
+
], (val) => {
|
|
80
|
+
nextTick(() => {
|
|
81
|
+
tabSortable?.option('disabled', val[0] === 'mobile');
|
|
82
|
+
});
|
|
83
|
+
}, {
|
|
84
|
+
immediate: true,
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
watch(() => route, (val) => {
|
|
88
|
+
if (settingsStore.settings.tabbar.enable) {
|
|
89
|
+
tabbarStore.add(val).then(() => {
|
|
90
|
+
const index = tabbarStore.list.findIndex(item => item.tabId === activedTabId.value);
|
|
91
|
+
if (index !== -1) {
|
|
92
|
+
scrollTo(tabRef.value[index].offsetLeft);
|
|
93
|
+
tabbarScrollTip();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
immediate: true,
|
|
99
|
+
deep: true,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
function tabbarScrollTip() {
|
|
103
|
+
if (tabContainerRef.value.$el.clientWidth > tabsRef.value.clientWidth && !storage.local.has('tabbarScrollTip')) {
|
|
104
|
+
storage.local.set('tabbarScrollTip', '');
|
|
105
|
+
Message.info('标签栏数量超过展示区域范围,可以将鼠标移到标签栏上,通过鼠标滚轮滑动浏览', {
|
|
106
|
+
title: '温馨提示',
|
|
107
|
+
duration: 5000,
|
|
108
|
+
closable: true,
|
|
109
|
+
zIndex: 2000,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function tabbarMaximizeTip() {
|
|
114
|
+
if (!storage.local.has('tabbarMaximizeTip')) {
|
|
115
|
+
storage.local.set('tabbarMaximizeTip', '');
|
|
116
|
+
Message.info('可以通过双击标签栏进行最大化操作', {
|
|
117
|
+
title: '温馨提示',
|
|
118
|
+
duration: 5000,
|
|
119
|
+
closable: true,
|
|
120
|
+
zIndex: 2000,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function handlerMouserScroll(event: WheelEvent) {
|
|
125
|
+
tabsRef.value.scrollBy({
|
|
126
|
+
left: event.deltaY || event.detail,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function scrollTo(offsetLeft: number) {
|
|
130
|
+
tabsRef.value.scrollTo({
|
|
131
|
+
left: offsetLeft - 50,
|
|
132
|
+
behavior: 'smooth',
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function onTabbarContextmenu(event: MouseEvent, routeItem: Tabbar.recordRaw) {
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
ContextMenu.showContextMenu({
|
|
138
|
+
x: event.x,
|
|
139
|
+
y: event.y,
|
|
140
|
+
zIndex: 1050,
|
|
141
|
+
iconFontClass: '',
|
|
142
|
+
customClass: 'tabbar-contextmenu',
|
|
143
|
+
items: [
|
|
144
|
+
{
|
|
145
|
+
label: t('app.tabbar.reload'),
|
|
146
|
+
icon: 'i-ri-refresh-line',
|
|
147
|
+
disabled: routeItem.tabId !== activedTabId.value,
|
|
148
|
+
onClick: () => mainPage.reload(),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: t('app.tabbar.close'),
|
|
152
|
+
icon: 'i-ri-close-line',
|
|
153
|
+
disabled: tabbarStore.list.length <= 1 || routeItem.isPin || routeItem.isPermanent,
|
|
154
|
+
divided: true,
|
|
155
|
+
onClick: () => {
|
|
156
|
+
tabbar.closeById(routeItem.tabId);
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: routeItem.isPin ? t('app.tabbar.unpin') : t('app.tabbar.pin'),
|
|
161
|
+
icon: routeItem.isPin ? 'i-lucide-pin-off' : 'i-lucide-pin',
|
|
162
|
+
// 主页不允许被固定,因为如果固定主页且主页未启用,会导致登录时进入路由死循环状态
|
|
163
|
+
disabled: routeItem.fullPath === '/' || routeItem.isPermanent,
|
|
164
|
+
onClick: () => {
|
|
165
|
+
if (routeItem.isPin) {
|
|
166
|
+
tabbarStore.unPin(routeItem.tabId);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
tabbarStore.pin(routeItem.tabId);
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
label: t('app.tabbar.maximize'),
|
|
175
|
+
icon: 'i-ri-picture-in-picture-exit-line',
|
|
176
|
+
onClick: () => {
|
|
177
|
+
if (routeItem.tabId !== activedTabId.value) {
|
|
178
|
+
router.push(routeItem.fullPath);
|
|
179
|
+
}
|
|
180
|
+
tabbarMaximizeTip();
|
|
181
|
+
settingsStore.setMainPageMaximize();
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: t('app.tabbar.closeOtherSide'),
|
|
186
|
+
disabled: !tabbar.checkCloseOtherSide(routeItem.tabId),
|
|
187
|
+
onClick: () => {
|
|
188
|
+
tabbar.closeOtherSide(routeItem.tabId);
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: t('app.tabbar.closeLeftSide'),
|
|
193
|
+
disabled: !tabbar.checkCloseLeftSide(routeItem.tabId),
|
|
194
|
+
onClick: () => {
|
|
195
|
+
tabbar.closeLeftSide(routeItem.tabId);
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: t('app.tabbar.closeRightSide'),
|
|
200
|
+
disabled: !tabbar.checkCloseRightSide(routeItem.tabId),
|
|
201
|
+
onClick: () => {
|
|
202
|
+
tabbar.closeRightSide(routeItem.tabId);
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function iconName(isActive: boolean, icon: Tabbar.recordRaw['icon'], activeIcon: Tabbar.recordRaw['activeIcon']) {
|
|
210
|
+
if (activeIcon === 'system-point') {
|
|
211
|
+
activeIcon = '';
|
|
212
|
+
}
|
|
213
|
+
let name;
|
|
214
|
+
if ((!isActive && icon) || (isActive && !activeIcon)) {
|
|
215
|
+
name = icon;
|
|
216
|
+
}
|
|
217
|
+
else if (isActive && activeIcon) {
|
|
218
|
+
name = activeIcon;
|
|
219
|
+
}
|
|
220
|
+
return name;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
onMounted(() => {
|
|
224
|
+
hotkeys('alt+left,alt+right,alt+w,alt+1,alt+2,alt+3,alt+4,alt+5,alt+6,alt+7,alt+8,alt+9,alt+0', (e, handle) => {
|
|
225
|
+
if (settingsStore.settings.tabbar.enable && settingsStore.settings.tabbar.enableHotkeys) {
|
|
226
|
+
e.preventDefault();
|
|
227
|
+
switch (handle.key) {
|
|
228
|
+
// 切换到当前标签页紧邻的上一个标签页
|
|
229
|
+
case 'alt+left':
|
|
230
|
+
if (tabbarStore.list[0].tabId !== activedTabId.value) {
|
|
231
|
+
const index = tabbarStore.list.findIndex(item => item.tabId === activedTabId.value);
|
|
232
|
+
router.push(tabbarStore.list[index - 1].fullPath);
|
|
233
|
+
}
|
|
234
|
+
break;
|
|
235
|
+
// 切换到当前标签页紧邻的下一个标签页
|
|
236
|
+
case 'alt+right':
|
|
237
|
+
if (tabbarStore.list.at(-1)?.tabId !== activedTabId.value) {
|
|
238
|
+
const index = tabbarStore.list.findIndex(item => item.tabId === activedTabId.value);
|
|
239
|
+
router.push(tabbarStore.list[index + 1].fullPath);
|
|
240
|
+
}
|
|
241
|
+
break;
|
|
242
|
+
// 关闭当前标签页
|
|
243
|
+
case 'alt+w':
|
|
244
|
+
tabbar.closeById(activedTabId.value);
|
|
245
|
+
break;
|
|
246
|
+
// 切换到第 n 个标签页
|
|
247
|
+
case 'alt+1':
|
|
248
|
+
case 'alt+2':
|
|
249
|
+
case 'alt+3':
|
|
250
|
+
case 'alt+4':
|
|
251
|
+
case 'alt+5':
|
|
252
|
+
case 'alt+6':
|
|
253
|
+
case 'alt+7':
|
|
254
|
+
case 'alt+8':
|
|
255
|
+
case 'alt+9':
|
|
256
|
+
{
|
|
257
|
+
const number = Number(handle.key.split('+')[1]);
|
|
258
|
+
if (tabbarStore.list[number - 1]?.fullPath) {
|
|
259
|
+
router.push(tabbarStore.list[number - 1].fullPath);
|
|
260
|
+
}
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
// 切换到最后一个标签页
|
|
264
|
+
case 'alt+0':
|
|
265
|
+
router.push(tabbarStore.list[tabbarStore.list.length - 1].fullPath);
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
onUnmounted(() => {
|
|
272
|
+
hotkeys.unbind('alt+left,alt+right,alt+w,alt+1,alt+2,alt+3,alt+4,alt+5,alt+6,alt+7,alt+8,alt+9,alt+0');
|
|
273
|
+
});
|
|
274
|
+
</script>
|
|
275
|
+
|
|
276
|
+
<template>
|
|
277
|
+
<div class="tabbar-container">
|
|
278
|
+
<div
|
|
279
|
+
ref="tabsRef" class="tabs" :class="{
|
|
280
|
+
'tabs-ontop': settingsStore.settings.topbar.switchTabbarAndToolbar,
|
|
281
|
+
[`tabs-${settingsStore.settings.tabbar.style}`]: true,
|
|
282
|
+
}"
|
|
283
|
+
@wheel.prevent="handlerMouserScroll"
|
|
284
|
+
>
|
|
285
|
+
<TransitionGroup
|
|
286
|
+
ref="tabContainerRef" :name="!isDragging ? 'tabbar' : undefined"
|
|
287
|
+
tag="div" class="tab-container"
|
|
288
|
+
:class="{ dragging: isDragging }"
|
|
289
|
+
>
|
|
290
|
+
<div
|
|
291
|
+
v-for="(element, index) in tabbarStore.list" :key="settingsStore.settings.tabbar.mergeTabsBy === 'routeName' && element.routeName ? element.routeName : element.tabId"
|
|
292
|
+
ref="tabRef" :data-index="index" class="tab"
|
|
293
|
+
:class="{
|
|
294
|
+
'tab-ontop': settingsStore.settings.topbar.switchTabbarAndToolbar,
|
|
295
|
+
'actived': element.tabId === activedTabId,
|
|
296
|
+
'no-drag': element.isPermanent || element.isPin,
|
|
297
|
+
}"
|
|
298
|
+
:title="element.customTitleList.find(item => item.fullPath === element.fullPath)?.title || generateI18nTitle(element.i18n, element.title)"
|
|
299
|
+
@click="router.push(element.fullPath)"
|
|
300
|
+
@dblclick="settingsStore.setMainPageMaximize()"
|
|
301
|
+
@contextmenu="onTabbarContextmenu($event, element)"
|
|
302
|
+
>
|
|
303
|
+
<div class="tab-dividers" />
|
|
304
|
+
<div class="tab-background" />
|
|
305
|
+
<div class="tab-content">
|
|
306
|
+
<div :key="element.tabId" class="title">
|
|
307
|
+
<PubinfoIcon
|
|
308
|
+
v-if="settingsStore.settings.tabbar.enableIcon && iconName(element.tabId === activedTabId, element.icon, element.activeIcon)"
|
|
309
|
+
:name="iconName(element.tabId === activedTabId, element.icon, element.activeIcon)!"
|
|
310
|
+
class="icon"
|
|
311
|
+
/>
|
|
312
|
+
{{ element.customTitleList.find(item => item.fullPath === element.fullPath)?.title || generateI18nTitle(element.i18n, element.title) }}
|
|
313
|
+
</div>
|
|
314
|
+
<div v-if="!element.isPermanent && element.isPin" class="action-icon" @click.stop="tabbarStore.unPin(element.tabId)" @dblclick.stop>
|
|
315
|
+
<RiPushpin2Fill text="10px" />
|
|
316
|
+
</div>
|
|
317
|
+
<div v-else-if="!element.isPermanent && tabbarStore.list.length > 1" class="action-icon" @click.stop="tabbar.closeById(element.tabId)" @dblclick.stop>
|
|
318
|
+
<RiCloseFill text="10px" />
|
|
319
|
+
</div>
|
|
320
|
+
<div v-show="keys.alt && index < 9" class="hotkey-number">
|
|
321
|
+
{{ index + 1 }}
|
|
322
|
+
</div>
|
|
323
|
+
<div class="drag-handle" />
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
</TransitionGroup>
|
|
327
|
+
</div>
|
|
328
|
+
<MoreAction v-if="isShowMoreAction" class="more-action" />
|
|
329
|
+
</div>
|
|
330
|
+
</template>
|
|
331
|
+
|
|
332
|
+
<style lang="scss">
|
|
333
|
+
.tabbar-contextmenu {
|
|
334
|
+
.mx-context-menu {
|
|
335
|
+
--at-apply: fixed ring-1 ring-stone-2 dark-ring-stone-7 shadow-2xl;
|
|
336
|
+
|
|
337
|
+
background-color: var(--g-container-bg);
|
|
338
|
+
|
|
339
|
+
.mx-context-menu-items .mx-context-menu-item {
|
|
340
|
+
--at-apply: transition-background-color;
|
|
341
|
+
|
|
342
|
+
&:not(.disabled):hover {
|
|
343
|
+
--at-apply: cursor-pointer bg-stone-1 dark-bg-stone-9;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
span {
|
|
347
|
+
color: initial;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.icon {
|
|
351
|
+
color: initial;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&.disabled span,
|
|
355
|
+
&.disabled .icon {
|
|
356
|
+
opacity: 0.25;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.mx-context-menu-item-sperator {
|
|
361
|
+
background-color: var(--g-container-bg);
|
|
362
|
+
|
|
363
|
+
&::after {
|
|
364
|
+
--at-apply: bg-stone-2 dark-bg-stone-7;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
</style>
|
|
370
|
+
|
|
371
|
+
<style lang="scss" scoped>
|
|
372
|
+
.tabbar-container {
|
|
373
|
+
position: relative;
|
|
374
|
+
height: var(--g-tabbar-height);
|
|
375
|
+
background-color: var(--g-bg);
|
|
376
|
+
transition: background-color 0.3s;
|
|
377
|
+
|
|
378
|
+
.tabs {
|
|
379
|
+
position: absolute;
|
|
380
|
+
right: 0;
|
|
381
|
+
left: 0;
|
|
382
|
+
padding-inline-end: 50px;
|
|
383
|
+
overflow-y: hidden;
|
|
384
|
+
white-space: nowrap;
|
|
385
|
+
|
|
386
|
+
// firefox隐藏滚动条
|
|
387
|
+
scrollbar-width: none;
|
|
388
|
+
|
|
389
|
+
// chrome隐藏滚动条
|
|
390
|
+
&::-webkit-scrollbar {
|
|
391
|
+
display: none;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&.tabs-ontop {
|
|
395
|
+
top: 0 !important;
|
|
396
|
+
bottom: inherit !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.tab-container {
|
|
400
|
+
display: inline-block;
|
|
401
|
+
|
|
402
|
+
&::after {
|
|
403
|
+
position: absolute;
|
|
404
|
+
inset-inline-start: v-bind(activePseudoTabStart);
|
|
405
|
+
bottom: 0;
|
|
406
|
+
z-index: 10;
|
|
407
|
+
width: v-bind(activePseudoTabWidth);
|
|
408
|
+
content: "";
|
|
409
|
+
transition: width 0.3s, inset-inline-start 0.3s;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
&:not(.dragging) {
|
|
413
|
+
.tab {
|
|
414
|
+
&:not(.actived):hover {
|
|
415
|
+
z-index: 3;
|
|
416
|
+
|
|
417
|
+
&::before,
|
|
418
|
+
&::after {
|
|
419
|
+
content: none;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
& + .tab .tab-dividers::before {
|
|
423
|
+
opacity: 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.tab-content {
|
|
427
|
+
.title,
|
|
428
|
+
.action-icon {
|
|
429
|
+
color: var(--g-tabbar-tab-hover-color);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.tab-background {
|
|
434
|
+
background-color: var(--g-tabbar-tab-hover-bg);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.tab {
|
|
441
|
+
position: relative;
|
|
442
|
+
display: inline-block;
|
|
443
|
+
min-width: var(--g-tabbar-tab-min-width);
|
|
444
|
+
max-width: var(--g-tabbar-tab-max-width);
|
|
445
|
+
height: var(--g-tabbar-height);
|
|
446
|
+
font-size: 14px;
|
|
447
|
+
line-height: calc(var(--g-tabbar-height) - 2px);
|
|
448
|
+
vertical-align: bottom;
|
|
449
|
+
pointer-events: none;
|
|
450
|
+
cursor: pointer;
|
|
451
|
+
|
|
452
|
+
* {
|
|
453
|
+
user-select: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&.actived {
|
|
457
|
+
z-index: 5;
|
|
458
|
+
|
|
459
|
+
&::before,
|
|
460
|
+
&::after {
|
|
461
|
+
content: none;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
& + .tab .tab-dividers::before {
|
|
465
|
+
opacity: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.tab-content {
|
|
469
|
+
.title,
|
|
470
|
+
.action-icon {
|
|
471
|
+
color: var(--g-tabbar-tab-active-color);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.tab-background {
|
|
476
|
+
background-color: var(--g-container-bg);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
&.tab-ghost {
|
|
481
|
+
opacity: 0 !important;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.tab-dividers {
|
|
485
|
+
position: absolute;
|
|
486
|
+
inset-inline: -1px;
|
|
487
|
+
top: 50%;
|
|
488
|
+
z-index: 0;
|
|
489
|
+
height: 14px;
|
|
490
|
+
transform: translateY(-50%);
|
|
491
|
+
|
|
492
|
+
&::before {
|
|
493
|
+
position: absolute;
|
|
494
|
+
inset-inline-start: 1px;
|
|
495
|
+
top: 0;
|
|
496
|
+
bottom: 0;
|
|
497
|
+
display: block;
|
|
498
|
+
width: 1px;
|
|
499
|
+
content: "";
|
|
500
|
+
background-color: var(--g-tabbar-dividers-bg);
|
|
501
|
+
opacity: 1;
|
|
502
|
+
transition: opacity 0.2s ease, background-color 0.3s;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
&:first-child .tab-dividers::before {
|
|
507
|
+
opacity: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.tab-background {
|
|
511
|
+
position: absolute;
|
|
512
|
+
top: 0;
|
|
513
|
+
left: 0;
|
|
514
|
+
z-index: 0;
|
|
515
|
+
width: 100%;
|
|
516
|
+
height: 100%;
|
|
517
|
+
pointer-events: none;
|
|
518
|
+
transition: opacity 0.3s, background-color 0.3s;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.tab-content {
|
|
522
|
+
display: flex;
|
|
523
|
+
width: 100%;
|
|
524
|
+
height: 100%;
|
|
525
|
+
pointer-events: all;
|
|
526
|
+
|
|
527
|
+
.title {
|
|
528
|
+
display: flex;
|
|
529
|
+
flex: 1;
|
|
530
|
+
gap: 5px;
|
|
531
|
+
align-items: center;
|
|
532
|
+
height: 100%;
|
|
533
|
+
padding: 0 10px;
|
|
534
|
+
margin-inline-end: 10px;
|
|
535
|
+
overflow: hidden;
|
|
536
|
+
color: var(--g-tabbar-tab-color);
|
|
537
|
+
white-space: nowrap;
|
|
538
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
|
|
539
|
+
transition: margin-inline-end 0.3s;
|
|
540
|
+
|
|
541
|
+
[dir="rtl"] & {
|
|
542
|
+
mask-image: linear-gradient(to left, #000 calc(100% - 20px), transparent);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
&:has(+ .action-icon) {
|
|
546
|
+
margin-inline-end: 28px;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.icon {
|
|
550
|
+
flex-shrink: 0;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.action-icon {
|
|
555
|
+
position: absolute;
|
|
556
|
+
inset-inline-end: 0.5em;
|
|
557
|
+
top: 50%;
|
|
558
|
+
z-index: 10;
|
|
559
|
+
display: flex;
|
|
560
|
+
align-items: center;
|
|
561
|
+
justify-content: center;
|
|
562
|
+
width: 1.5em;
|
|
563
|
+
height: 1.5em;
|
|
564
|
+
font-size: 12px;
|
|
565
|
+
color: var(--g-tabbar-tab-color);
|
|
566
|
+
border-radius: 50%;
|
|
567
|
+
transform: translateY(-50%);
|
|
568
|
+
|
|
569
|
+
&:hover {
|
|
570
|
+
--at-apply: ring-1 ring-stone-3 dark-ring-stone-7;
|
|
571
|
+
|
|
572
|
+
background-color: var(--g-bg);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.hotkey-number {
|
|
577
|
+
--at-apply: ring-1 ring-stone-3 dark-ring-stone-7;
|
|
578
|
+
|
|
579
|
+
position: absolute;
|
|
580
|
+
top: 50%;
|
|
581
|
+
right: 0.5em;
|
|
582
|
+
z-index: 10;
|
|
583
|
+
display: flex;
|
|
584
|
+
align-items: center;
|
|
585
|
+
justify-content: center;
|
|
586
|
+
width: 1.5em;
|
|
587
|
+
height: 1.5em;
|
|
588
|
+
font-size: 12px;
|
|
589
|
+
color: var(--g-tabbar-tab-color);
|
|
590
|
+
background-color: var(--g-bg);
|
|
591
|
+
border-radius: 50%;
|
|
592
|
+
transform: translateY(-50%);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.drag-handle {
|
|
596
|
+
position: absolute;
|
|
597
|
+
inset: 0;
|
|
598
|
+
z-index: 9;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
&.tabs-fashion {
|
|
605
|
+
bottom: 0;
|
|
606
|
+
|
|
607
|
+
.tab-container {
|
|
608
|
+
&:not(.dragging) {
|
|
609
|
+
.tab:not(.actived):hover {
|
|
610
|
+
.tab-background {
|
|
611
|
+
&::before,
|
|
612
|
+
&::after {
|
|
613
|
+
box-shadow: 0 0 0 20px var(--g-tabbar-tab-hover-bg);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.tab {
|
|
620
|
+
height: calc(var(--g-tabbar-height) - 10px);
|
|
621
|
+
margin-inline: 10px -10px;
|
|
622
|
+
line-height: calc(var(--g-tabbar-height) - 12px);
|
|
623
|
+
|
|
624
|
+
&:last-child {
|
|
625
|
+
margin-inline-end: 0;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
&.tab-ontop .tab-background {
|
|
629
|
+
transform: rotate(180deg);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.tab-background {
|
|
633
|
+
border-radius: 10px 10px 0 0;
|
|
634
|
+
|
|
635
|
+
&::before,
|
|
636
|
+
&::after {
|
|
637
|
+
position: absolute;
|
|
638
|
+
bottom: 0;
|
|
639
|
+
width: 20px;
|
|
640
|
+
height: 20px;
|
|
641
|
+
content: "";
|
|
642
|
+
border-radius: 100%;
|
|
643
|
+
box-shadow: 0 0 0 20px transparent;
|
|
644
|
+
transition: box-shadow 0.3s;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
&::before {
|
|
648
|
+
left: -20px;
|
|
649
|
+
clip-path: inset(50% -10px 0 50%);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
&::after {
|
|
653
|
+
right: -20px;
|
|
654
|
+
clip-path: inset(50% 50% 0 -10px);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
&.actived {
|
|
659
|
+
.tab-background {
|
|
660
|
+
&::before,
|
|
661
|
+
&::after {
|
|
662
|
+
box-shadow: 0 0 0 20px var(--g-container-bg);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
&.tabs-card {
|
|
671
|
+
.tab-container {
|
|
672
|
+
.tab {
|
|
673
|
+
height: calc(var(--g-tabbar-height) - 10px);
|
|
674
|
+
margin: 5px 0 5px 5px;
|
|
675
|
+
|
|
676
|
+
.tab-dividers {
|
|
677
|
+
display: none;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.tab-background {
|
|
681
|
+
border-radius: 5px;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
&.tabs-square {
|
|
688
|
+
.tab-container {
|
|
689
|
+
&::after {
|
|
690
|
+
height: 2px;
|
|
691
|
+
|
|
692
|
+
--at-apply: bg-ui-primary;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
&:has(> .tab.tab-ontop) {
|
|
696
|
+
&::after {
|
|
697
|
+
top: 0;
|
|
698
|
+
bottom: unset;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.tab {
|
|
702
|
+
.tab-background {
|
|
703
|
+
top: 0;
|
|
704
|
+
bottom: unset;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.tab {
|
|
710
|
+
&:not(.actived):hover {
|
|
711
|
+
.tab-background {
|
|
712
|
+
height: 100%;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.tab-background {
|
|
717
|
+
top: unset;
|
|
718
|
+
bottom: 0;
|
|
719
|
+
height: 0;
|
|
720
|
+
background-color: var(--g-tabbar-tab-hover-bg);
|
|
721
|
+
transition: height 0.3s;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
&.actived {
|
|
725
|
+
.tab-background {
|
|
726
|
+
height: 100%;
|
|
727
|
+
background-color: var(--g-container-bg);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.more-action {
|
|
736
|
+
position: absolute;
|
|
737
|
+
top: 0;
|
|
738
|
+
right: 0;
|
|
739
|
+
z-index: 10;
|
|
740
|
+
display: flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
justify-content: center;
|
|
743
|
+
width: 50px;
|
|
744
|
+
height: 100%;
|
|
745
|
+
background-image: linear-gradient(to right, transparent, var(--g-bg));
|
|
746
|
+
|
|
747
|
+
.icon {
|
|
748
|
+
--at-apply: w-6 h-6 rounded-1 text-lg cursor-pointer shadow transition-background-color transition-shadow;
|
|
749
|
+
|
|
750
|
+
background-color: var(--g-container-bg);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// 标签栏动画
|
|
756
|
+
.tabs {
|
|
757
|
+
.tabbar-move,
|
|
758
|
+
.tabbar-enter-active,
|
|
759
|
+
.tabbar-leave-active {
|
|
760
|
+
transition: all 0.3s;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.tabbar-enter-from,
|
|
764
|
+
.tabbar-leave-to {
|
|
765
|
+
opacity: 0;
|
|
766
|
+
transform: translateY(30px);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
&.tabs-ontop {
|
|
770
|
+
.tabbar-enter-from,
|
|
771
|
+
.tabbar-leave-to {
|
|
772
|
+
opacity: 0;
|
|
773
|
+
transform: translateY(-30px);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.tabbar-leave-active {
|
|
778
|
+
position: absolute !important;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
</style>
|