@pubinfo/core 2.0.0-beta.3 → 2.0.0-beta.31
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 → dist/AppSetting-C1dyZ-8E.js} +21 -20
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-DgycKl9e.js} +124 -120
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-BlgX0ZNE.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-FmqadL1w.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-dzMgw8cN.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BwlXsTTt.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-B5tHMS24.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-Bh0mvh66.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-D4g24uwl.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-DwTtu6As.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-cDQXtwcG.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-m8X7jEJH.js} +2 -2
- package/dist/SettingThemes-CX9ISeD_.js +145 -0
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-ByLjBezg.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-o8wBZolp.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-Ux60mKiv.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-17GrCZdo.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_-6l5FWUkL.js} +1 -1
- package/{es → dist}/api/index.d.ts +2 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-DiWJrScm.js} +1 -1
- package/dist/components/PubinfoIcon/register.d.ts +9 -0
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{lib → dist}/composables/auth.d.ts +1 -1
- package/{es → dist}/context.d.ts +1 -1
- package/{es/index-P2cA5UeU.js → dist/index-Be7jJtXg.js} +38 -36
- package/{es/index-BHkrq701.js → dist/index-BmMbAV1Y.js} +33 -29
- package/{es/index-ChOUZNbk.js → dist/index-CfasTv4x.js} +6 -6
- package/{es/index-D8eeneI_.js → dist/index-Ckgil96Y.js} +25 -25
- package/{es/index-Dav3jQVP.js → dist/index-De_ME_Ws.js} +31 -31
- package/{es/index-DvHnVMX5.js → dist/index-DgpcBgWl.js} +6189 -5995
- package/{es/index-B9I6Pru6.js → dist/index-Dzwhw1L9.js} +57 -62
- package/{es/index-BkqnOkyO.js → dist/index-Md7zV10q.js} +12 -12
- package/{es/index-BvVAS3S-.js → dist/index-bsi-FZDt.js} +21 -13
- package/{es → dist}/index.d.ts +1 -0
- package/dist/index.js +77 -0
- package/{es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js} +315 -297
- package/{lib → dist}/interface.d.ts +13 -0
- package/{lib → dist}/layout/Layout.vue.d.ts +2 -2
- package/{es → dist}/layout/composables/useContext.d.ts +1 -2
- package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
- package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
- package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
- package/{es/notification-6D5hA7Bp.js → dist/menu-CC5544p-.js} +2669 -2681
- package/{es/pick-Br-UKn7B.js → dist/pick-CJo2YiT-.js} +1 -1
- package/{es → dist}/request.js +399 -390
- package/{es → dist}/route/index.d.ts +0 -1
- package/dist/route/routes.d.ts +24 -0
- package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
- package/{es → dist}/stores/modules/iframe.d.ts +1 -0
- package/{es → dist}/stores/modules/index.d.ts +8 -1
- package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
- package/{es → dist}/stores/modules/menu.d.ts +1 -0
- package/{es → dist}/stores/modules/route.d.ts +1 -0
- package/{lib → dist}/stores/modules/settings.d.ts +1 -0
- package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
- package/dist/stores/modules/user.d.ts +36 -0
- package/dist/style.css +9 -0
- package/{lib → dist}/utils/index.d.ts +6 -0
- package/package.json +38 -44
- package/src/api/index.ts +3 -1
- package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
- package/src/assets/styles/globals.scss +6 -6
- package/src/components/PubinfoApp/index.vue +1 -1
- package/src/components/PubinfoIcon/index.vue +3 -1
- package/src/components/PubinfoIcon/register.ts +19 -0
- package/src/components/PubinfoProvider/index.ts +3 -2
- package/src/composables/auth.ts +1 -1
- package/src/context.ts +1 -2
- package/src/create.ts +7 -0
- package/src/index.ts +1 -0
- package/src/interface.ts +13 -0
- package/src/layout/Layout.vue +50 -59
- package/src/layout/components/Content/index.vue +34 -13
- package/src/layout/components/Header/TopMode/index.vue +12 -16
- package/src/layout/components/Header/index.vue +5 -5
- package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
- package/src/layout/components/SettingBar/index.vue +3 -1
- package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
- package/src/layout/components/Tools/index.vue +9 -32
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/composables/useMainPage.ts +1 -1
- package/src/layout/composables/useWatermark.ts +2 -2
- package/src/layout/provider.ts +7 -4
- package/src/layout/ui-kit/HDialog.vue +4 -1
- package/src/layout/ui-kit/HSlideover.vue +4 -1
- package/src/pages/system/change-organization/index.vue +3 -3
- package/src/pages/system/not-permission/index.vue +2 -2
- package/src/route/index.ts +0 -1
- package/src/route/routes.ts +87 -55
- package/src/stores/helper.ts +2 -2
- package/src/stores/modules/favorites.ts +1 -0
- package/src/stores/modules/iframe.ts +1 -0
- package/src/stores/modules/index.ts +8 -1
- package/src/stores/modules/keepAlive.ts +1 -0
- package/src/stores/modules/menu.ts +25 -1
- package/src/stores/modules/route.ts +14 -5
- package/src/stores/modules/settings.ts +1 -0
- package/src/stores/modules/tabbar.ts +1 -0
- package/src/stores/modules/user.ts +56 -20
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/index.ts +14 -0
- package/src/utils/watermark.ts +1 -1
- package/types/vue-router.d.ts +3 -1
- package/es/SettingThemes-D_DpEncn.js +0 -144
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/composables/auth.d.ts +0 -8
- package/es/index-DTQQt_XY.js +0 -10
- package/es/index.js +0 -76
- package/es/interface.d.ts +0 -29
- package/es/layout/Layout.vue.d.ts +0 -20
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/pages/system/not-permission/index.vue.d.ts +0 -2
- package/es/route/async.d.ts +0 -9
- package/es/route/routes.d.ts +0 -3
- package/es/stores/modules/favorites.d.ts +0 -32
- package/es/stores/modules/notification.d.ts +0 -18
- package/es/stores/modules/settings.d.ts +0 -85
- package/es/stores/modules/tabbar.d.ts +0 -59
- package/es/stores/modules/user.d.ts +0 -3
- package/es/style.css +0 -9
- package/es/utils/index.d.ts +0 -14
- package/lib/AppSetting-CCiwpjoq.cjs +0 -1
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
- package/lib/HDivider-DCfDgE8l.cjs +0 -1
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
- package/lib/HToggle-BP6YYf-s.cjs +0 -1
- package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
- package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
- package/lib/SettingHome-u52oz6i8.cjs +0 -1
- package/lib/SettingMenu-DsElOvvv.cjs +0 -1
- package/lib/SettingMode-C_kgpTxw.cjs +0 -1
- package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
- package/lib/SettingOther-6XGQq7OA.cjs +0 -1
- package/lib/SettingPage-C8yIHpLc.cjs +0 -1
- package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
- package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
- package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
- package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
- package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
- package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
- package/lib/_...all_-C4CXjAo9.cjs +0 -1
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/lib/api/enum/code.d.ts +0 -67
- package/lib/api/helper.d.ts +0 -32
- package/lib/api/index.d.ts +0 -12
- package/lib/api/interface.d.ts +0 -14
- package/lib/api/modules/auth/index.d.ts +0 -1
- package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
- package/lib/api/modules/configData/index.d.ts +0 -3
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
- package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
- package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
- package/lib/api/modules/rbac/index.d.ts +0 -11
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
- package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
- package/lib/api/request.d.ts +0 -2
- package/lib/api/system/app.d.ts +0 -17
- package/lib/api/system/user.d.ts +0 -24
- package/lib/assets/styles/index.d.ts +0 -6
- package/lib/colors-KAaBT84S.cjs +0 -1
- package/lib/components/NotAllowed/index.vue.d.ts +0 -2
- package/lib/components/PageHeader/index.vue.d.ts +0 -23
- package/lib/components/PageMain/index.vue.d.ts +0 -27
- package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
- package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
- package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
- package/lib/components/index.d.ts +0 -8
- package/lib/composables/index.d.ts +0 -4
- package/lib/composables/log.d.ts +0 -6
- package/lib/composables/theme.d.ts +0 -3
- package/lib/composables/watchDiff.d.ts +0 -2
- package/lib/config/index.d.ts +0 -1
- package/lib/config/settings.d.ts +0 -3
- package/lib/context.d.ts +0 -14
- package/lib/create.d.ts +0 -3
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/plugins/permission.d.ts +0 -6
- package/lib/index-38bsQrho.cjs +0 -1
- package/lib/index-BEqD62a0.cjs +0 -1
- package/lib/index-Bbm9CQRP.cjs +0 -1
- package/lib/index-BqHsuJkr.cjs +0 -1
- package/lib/index-JZl6Zh3L.cjs +0 -44
- package/lib/index-VGR0Mt4q.cjs +0 -240
- package/lib/index-WMo0GAa6.cjs +0 -1
- package/lib/index-_YsHduAE.cjs +0 -1
- package/lib/index-gr8kFwPx.cjs +0 -18
- package/lib/index-zvGq9tSu.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
- package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
- package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
- package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
- package/lib/layout/components/Content/index.vue.d.ts +0 -2
- package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
- package/lib/layout/components/Header/index.vue.d.ts +0 -19
- package/lib/layout/components/Logo/index.vue.d.ts +0 -26
- package/lib/layout/components/Menu/index.vue.d.ts +0 -10
- package/lib/layout/components/Menu/item.vue.d.ts +0 -11
- package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
- package/lib/layout/components/Menu/types.d.ts +0 -42
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
- package/lib/layout/components/Tools/index.vue.d.ts +0 -233
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
- package/lib/layout/composables/useContext.d.ts +0 -18
- package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
- package/lib/layout/composables/useHotkey.d.ts +0 -5
- package/lib/layout/composables/useMainPage.d.ts +0 -14
- package/lib/layout/composables/useMenu.d.ts +0 -8
- package/lib/layout/composables/useTabbar.d.ts +0 -14
- package/lib/layout/composables/useTitle.d.ts +0 -3
- package/lib/layout/composables/useViewTransition.d.ts +0 -3
- package/lib/layout/composables/useWatermark.d.ts +0 -4
- package/lib/layout/index.d.ts +0 -19
- package/lib/layout/provider.d.ts +0 -1
- package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
- package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
- package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
- package/lib/locales/index.d.ts +0 -301
- package/lib/locales/lang/en.json.d.ts +0 -99
- package/lib/locales/lang/zh-cn.json.d.ts +0 -100
- package/lib/locales/lang/zh-tw.json.d.ts +0 -100
- package/lib/locales/ui.d.ts +0 -3
- package/lib/modules.d.ts +0 -11
- package/lib/notification-IZqPm_OK.cjs +0 -199
- package/lib/pages/personal/profile/index.vue.d.ts +0 -2
- package/lib/pages/system/[...all].vue.d.ts +0 -2
- package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
- package/lib/pages/system/change-password/index.vue.d.ts +0 -31
- package/lib/pages/system/index.vue.d.ts +0 -2
- package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
- package/lib/pages/system/reload.vue.d.ts +0 -2
- package/lib/pick-y2yLda1R.cjs +0 -1
- package/lib/question-line-Cd0CU4hr.cjs +0 -1
- package/lib/reload-6L7Dzs7h.cjs +0 -1
- package/lib/request.cjs +0 -6
- package/lib/right-C5JQ_uRB.cjs +0 -1
- package/lib/route/async.d.ts +0 -9
- package/lib/route/guard/auth.d.ts +0 -3
- package/lib/route/guard/basic.d.ts +0 -3
- package/lib/route/guard/index.d.ts +0 -3
- package/lib/route/guard/setting.d.ts +0 -3
- package/lib/route/index.d.ts +0 -7
- package/lib/route/routes.d.ts +0 -3
- package/lib/stores/enum/index.d.ts +0 -20
- package/lib/stores/helper.d.ts +0 -2
- package/lib/stores/index.d.ts +0 -5
- package/lib/stores/modules/iframe.d.ts +0 -41
- package/lib/stores/modules/index.d.ts +0 -9
- package/lib/stores/modules/keepAlive.d.ts +0 -23
- package/lib/stores/modules/menu.d.ts +0 -32
- package/lib/stores/modules/notification.d.ts +0 -18
- package/lib/stores/modules/route.d.ts +0 -42
- package/lib/stores/modules/user.d.ts +0 -3
- package/lib/stores/plugin/persist.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
- package/lib/style.css +0 -9
- package/lib/utils/cleanup.d.ts +0 -8
- package/lib/utils/crypto.d.ts +0 -4
- package/lib/utils/eventBus.d.ts +0 -5
- package/lib/utils/injectionKeys.d.ts +0 -2
- package/lib/utils/storage.d.ts +0 -21
- package/lib/utils/utils.d.ts +0 -3
- package/lib/utils/watermark.d.ts +0 -51
- package/src/assets/icons/add-child.svg +0 -1
- package/src/assets/icons/authority.svg +0 -1
- package/src/assets/icons/authorize.svg +0 -1
- package/src/assets/icons/blacklist-disable.svg +0 -1
- package/src/assets/icons/blacklist-enable.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/icard.svg +0 -1
- package/src/assets/icons/icon_animation.svg +0 -1
- package/src/assets/icons/icon_breadcrumb.svg +0 -1
- package/src/assets/icons/icon_copyright.svg +0 -1
- package/src/assets/icons/icon_jt.svg +0 -1
- package/src/assets/icons/icon_layout.svg +0 -1
- package/src/assets/icons/icon_mainpage.svg +0 -1
- package/src/assets/icons/icon_menu.svg +0 -1
- package/src/assets/icons/icon_page_size.svg +0 -1
- package/src/assets/icons/icon_position_type.svg +0 -1
- package/src/assets/icons/icon_safe_manage.svg +0 -1
- package/src/assets/icons/icon_screen_scale.svg +0 -6
- package/src/assets/icons/icon_system_manage.svg +0 -1
- package/src/assets/icons/icon_tabbar.svg +0 -1
- package/src/assets/icons/icon_toolbar.svg +0 -1
- package/src/assets/icons/icon_topbar.svg +0 -1
- package/src/assets/icons/icon_watermark.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/log-center.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/not-data.svg +0 -1
- package/src/assets/icons/org-main.svg +0 -1
- package/src/assets/icons/org-unmain.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/remove.svg +0 -1
- package/src/assets/icons/resource-app.svg +0 -1
- package/src/assets/icons/resource-btn.svg +0 -1
- package/src/assets/icons/resource-index.svg +0 -1
- package/src/assets/icons/resource-menu.svg +0 -1
- package/src/assets/icons/resource-nonmenu.svg +0 -1
- package/src/assets/icons/setting-manage.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/theme-check-mark.svg +0 -1
- package/src/assets/icons/theme-title.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/view.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
- package/src/assets/icons/zddata.svg +0 -1
- package/src/assets/icons/zy_checked.svg +0 -1
- package/src/assets/icons/zy_default.svg +0 -1
- 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/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/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- package/src/pages/system/change-password/page.vue +0 -58
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
- package/src/stores/modules/notification.ts +0 -34
- package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
- package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
- package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
- package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
- package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
- package/{es → dist}/api/enum/code.d.ts +0 -0
- package/{es → dist}/api/helper.d.ts +0 -0
- package/{es → dist}/api/interface.d.ts +0 -0
- package/{es → dist}/api/modules/auth/index.d.ts +0 -0
- package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/index.d.ts +0 -0
- package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
- package/{es → dist}/api/request.d.ts +0 -0
- package/{es → dist}/api/system/app.d.ts +0 -0
- package/{es → dist}/api/system/user.d.ts +0 -0
- package/{es → dist}/assets/styles/index.d.ts +0 -0
- package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
- package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +2 -2
- package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
- package/{es → dist}/components/index.d.ts +0 -0
- package/{es → dist}/composables/index.d.ts +0 -0
- package/{es → dist}/composables/log.d.ts +0 -0
- package/{es → dist}/composables/theme.d.ts +0 -0
- package/{es → dist}/composables/watchDiff.d.ts +0 -0
- package/{es → dist}/config/index.d.ts +0 -0
- package/{es → dist}/config/settings.d.ts +0 -0
- package/{es → dist}/create.d.ts +0 -0
- package/{es → dist}/directives/index.d.ts +0 -0
- package/{es → dist}/directives/plugins/permission.d.ts +0 -0
- package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
- package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
- package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
- package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
- package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
- package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
- package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
- package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
- package/{es → dist}/layout/index.d.ts +0 -0
- package/{es → dist}/layout/provider.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +2 -2
- /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
- /package/{es → dist}/locales/index.d.ts +0 -0
- /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
- /package/{es → dist}/locales/ui.d.ts +0 -0
- /package/{es → dist}/modules.d.ts +0 -0
- /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
- /package/{es/pages/system → dist/pages/system/not-permission}/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
- /package/{es → dist}/question-line-CfkciTFq.js +0 -0
- /package/{es → dist}/reload-CUcPYtl7.js +0 -0
- /package/{es → dist}/right-Bfe2p1o0.js +0 -0
- /package/{es → dist}/route/guard/auth.d.ts +0 -0
- /package/{es → dist}/route/guard/basic.d.ts +0 -0
- /package/{es → dist}/route/guard/index.d.ts +0 -0
- /package/{es → dist}/route/guard/setting.d.ts +0 -0
- /package/{es → dist}/stores/enum/index.d.ts +0 -0
- /package/{es → dist}/stores/helper.d.ts +0 -0
- /package/{es → dist}/stores/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
- /package/{es → dist}/utils/cleanup.d.ts +0 -0
- /package/{es → dist}/utils/crypto.d.ts +0 -0
- /package/{es → dist}/utils/eventBus.d.ts +0 -0
- /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
- /package/{es → dist}/utils/storage.d.ts +0 -0
- /package/{es → dist}/utils/utils.d.ts +0 -0
- /package/{es → dist}/utils/watermark.d.ts +0 -0
|
@@ -5,6 +5,12 @@ type ConditionalExceptType<T extends Record<PropertyKey, any>, Type> = {
|
|
|
5
5
|
export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
|
|
6
6
|
export declare function normalizePrimitiveToFunction<T extends Record<PropertyKey, any>>(options: T): ConditionalExceptType<T, Primitive>;
|
|
7
7
|
export declare function objectToPaths(obj: Record<string, any>, prefix?: string): string[];
|
|
8
|
+
/**
|
|
9
|
+
* 基于 `import.meta.glob` 读取 `iconMap`
|
|
10
|
+
*/
|
|
11
|
+
export declare function loadIconsFromGlob(modules: Record<string, {
|
|
12
|
+
default: string;
|
|
13
|
+
}>): Record<string, string>;
|
|
8
14
|
export * from './cleanup';
|
|
9
15
|
export * from './crypto';
|
|
10
16
|
export { default as eventBus } from './eventBus';
|
package/package.json
CHANGED
|
@@ -1,62 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.31",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"
|
|
9
|
-
"require": "./lib/index.cjs"
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"./request": {
|
|
12
|
-
"types": "./
|
|
13
|
-
"
|
|
14
|
-
"require": "./lib/request.cjs"
|
|
11
|
+
"types": "./dist/api/index.d.ts",
|
|
12
|
+
"default": "./dist/request.js"
|
|
15
13
|
},
|
|
16
|
-
"./style.css":
|
|
17
|
-
|
|
18
|
-
"require": "./lib/style.css"
|
|
19
|
-
},
|
|
20
|
-
"./types": "./types/index.d.ts"
|
|
14
|
+
"./style.css": "./dist/style.css",
|
|
15
|
+
"./types": "./dist/index.d.ts"
|
|
21
16
|
},
|
|
22
|
-
"main": "./
|
|
23
|
-
"module": "./
|
|
24
|
-
"types": "./
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
25
20
|
"files": [
|
|
26
|
-
"
|
|
27
|
-
"lib",
|
|
21
|
+
"dist",
|
|
28
22
|
"src",
|
|
29
23
|
"types"
|
|
30
24
|
],
|
|
31
25
|
"peerDependencies": {
|
|
32
|
-
"alova": "^3.2.
|
|
33
|
-
"pinia": "^2.3.
|
|
34
|
-
"vue": "^3.5.
|
|
35
|
-
"vue-i18n": "^
|
|
36
|
-
"vue-router": "^4.5.
|
|
37
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
26
|
+
"alova": "^3.2.13",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
28
|
+
"vue": "^3.5.16",
|
|
29
|
+
"vue-i18n": "^10.0.7",
|
|
30
|
+
"vue-router": "^4.5.1",
|
|
31
|
+
"@pubinfo/config": "2.0.0-beta.31"
|
|
38
32
|
},
|
|
39
33
|
"dependencies": {
|
|
40
|
-
"@alova/adapter-axios": "^2.0.
|
|
34
|
+
"@alova/adapter-axios": "^2.0.14",
|
|
41
35
|
"@ant-design/icons-vue": "^7.0.1",
|
|
42
36
|
"@headlessui/vue": "^1.7.23",
|
|
43
|
-
"@imengyu/vue3-context-menu": "^1.
|
|
44
|
-
"@pubinfo/pro-components": "^1.
|
|
37
|
+
"@imengyu/vue3-context-menu": "^1.5.0",
|
|
38
|
+
"@pubinfo/pro-components": "^1.7.1",
|
|
45
39
|
"@unocss/reset": "^65.5.0",
|
|
46
|
-
"@vueuse/core": "^
|
|
47
|
-
"@vueuse/integrations": "^
|
|
40
|
+
"@vueuse/core": "^13.3.0",
|
|
41
|
+
"@vueuse/integrations": "^13.3.0",
|
|
48
42
|
"ant-design-vue": "^4.2.6",
|
|
49
|
-
"axios": "^1.
|
|
50
|
-
"consola": "^3.4.
|
|
43
|
+
"axios": "^1.9.0",
|
|
44
|
+
"consola": "^3.4.2",
|
|
51
45
|
"floating-vue": "5.2.2",
|
|
52
46
|
"hookable": "^5.5.3",
|
|
53
|
-
"hotkeys-js": "^3.13.
|
|
47
|
+
"hotkeys-js": "^3.13.10",
|
|
54
48
|
"jsencrypt": "^3.3.2",
|
|
55
49
|
"lodash-es": "^4.17.21",
|
|
56
50
|
"md5": "^2.3.0",
|
|
57
51
|
"mitt": "^3.0.1",
|
|
58
52
|
"nprogress": "^0.2.0",
|
|
59
|
-
"overlayscrollbars": "^2.11.
|
|
53
|
+
"overlayscrollbars": "^2.11.3",
|
|
60
54
|
"overlayscrollbars-vue": "^0.5.9",
|
|
61
55
|
"path-browserify": "^1.0.1",
|
|
62
56
|
"path-to-regexp": "^6.3.0",
|
|
@@ -66,7 +60,7 @@
|
|
|
66
60
|
"zxcvbn": "^4.4.2"
|
|
67
61
|
},
|
|
68
62
|
"devDependencies": {
|
|
69
|
-
"@iconify/json": "^2.2.
|
|
63
|
+
"@iconify/json": "^2.2.343",
|
|
70
64
|
"@iconify/vue": "^4.3.0",
|
|
71
65
|
"@pubinfo/openapi": "^0.8.4",
|
|
72
66
|
"@pubinfo/preset-openapi": "^0.8.4",
|
|
@@ -76,22 +70,22 @@
|
|
|
76
70
|
"@types/path-browserify": "^1.0.3",
|
|
77
71
|
"@types/sortablejs": "^1.15.8",
|
|
78
72
|
"@types/zxcvbn": "^4.4.5",
|
|
79
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
80
|
-
"@vitejs/plugin-vue-jsx": "^4.
|
|
81
|
-
"alova": "^3.2.
|
|
73
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
74
|
+
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
75
|
+
"alova": "^3.2.13",
|
|
82
76
|
"pinia": "^2.3.1",
|
|
83
|
-
"sass": "1.
|
|
84
|
-
"type-fest": "^4.
|
|
77
|
+
"sass": "1.83.0",
|
|
78
|
+
"type-fest": "^4.41.0",
|
|
85
79
|
"unocss": "^65.5.0",
|
|
86
80
|
"unplugin-auto-import": "^0.18.6",
|
|
87
81
|
"unplugin-icons": "^0.22.0",
|
|
88
82
|
"unplugin-vue-components": "^0.27.5",
|
|
89
|
-
"vite": "^6.
|
|
90
|
-
"vite-plugin-dts": "^4.5.
|
|
91
|
-
"vue": "^3.5.
|
|
92
|
-
"vue-i18n": "^
|
|
93
|
-
"vue-router": "^4.5.
|
|
94
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
83
|
+
"vite": "^6.3.5",
|
|
84
|
+
"vite-plugin-dts": "^4.5.4",
|
|
85
|
+
"vue": "^3.5.16",
|
|
86
|
+
"vue-i18n": "^10.0.7",
|
|
87
|
+
"vue-router": "^4.5.1",
|
|
88
|
+
"@pubinfo/config": "2.0.0-beta.31"
|
|
95
89
|
},
|
|
96
90
|
"scripts": {
|
|
97
91
|
"dev": "vite build -w -m watch",
|
package/src/api/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
ReSetTokenAndRefreshToken,
|
|
15
15
|
} from './helper';
|
|
16
16
|
|
|
17
|
+
export { RESPONSE_CODE } from './enum/code';
|
|
18
|
+
|
|
17
19
|
export function createTokenAuthentication() {
|
|
18
20
|
return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
|
|
19
21
|
/**
|
|
@@ -72,4 +74,4 @@ export function createRequest(options: RequestOptions) {
|
|
|
72
74
|
return instance;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
export
|
|
77
|
+
export * from './interface';
|
|
@@ -63,7 +63,7 @@ export function postSysconfigAddOrUpdateBackgroundImage<
|
|
|
63
63
|
if (item !== undefined && item !== null) {
|
|
64
64
|
if (typeof item === 'object' && !(item instanceof File)) {
|
|
65
65
|
if (Array.isArray(item)) {
|
|
66
|
-
item.forEach(
|
|
66
|
+
item.forEach(f => formData.append(ele, f || ''));
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
69
|
formData.append(ele, JSON.stringify(item));
|
|
@@ -110,7 +110,7 @@ export function postSysconfigAddOrUpdateBackgroundSmallImage<
|
|
|
110
110
|
if (item !== undefined && item !== null) {
|
|
111
111
|
if (typeof item === 'object' && !(item instanceof File)) {
|
|
112
112
|
if (Array.isArray(item)) {
|
|
113
|
-
item.forEach(
|
|
113
|
+
item.forEach(f => formData.append(ele, f || ''));
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
formData.append(ele, JSON.stringify(item));
|
|
@@ -152,7 +152,7 @@ export function postSysconfigAddOrUpdateLogImage<
|
|
|
152
152
|
if (item !== undefined && item !== null) {
|
|
153
153
|
if (typeof item === 'object' && !(item instanceof File)) {
|
|
154
154
|
if (Array.isArray(item)) {
|
|
155
|
-
item.forEach(
|
|
155
|
+
item.forEach(f => formData.append(ele, f || ''));
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
158
|
formData.append(ele, JSON.stringify(item));
|
|
@@ -130,12 +130,12 @@ body {
|
|
|
130
130
|
transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
@media screen and (max-width: $g-app-width) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
133
|
+
// @media screen and (max-width: $g-app-width) {
|
|
134
|
+
// [data-fixed-calc-width] {
|
|
135
|
+
// width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
|
|
136
|
+
// transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
|
|
137
|
+
// }
|
|
138
|
+
// }
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
[data-mode="mobile"] {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Icon } from '@iconify/vue';
|
|
3
3
|
import { useProvider } from '../PubinfoProvider';
|
|
4
|
+
import { iconRegistry } from './register';
|
|
4
5
|
|
|
5
6
|
defineOptions({
|
|
6
7
|
name: 'PubinfoIcon',
|
|
@@ -72,7 +73,8 @@ function _loadIcon() {
|
|
|
72
73
|
if (!loadIcon && outputType.value === 'custom') {
|
|
73
74
|
return new Error('Need pro `loadIcon`, according to [PubinfoProvider].');
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
+
|
|
77
|
+
return loadIcon?.(props.name) ?? iconRegistry.get(props.name);
|
|
76
78
|
}
|
|
77
79
|
</script>
|
|
78
80
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type IconMap = Record<string, string>;
|
|
2
|
+
|
|
3
|
+
export class IconRegistry {
|
|
4
|
+
private iconMap: IconMap = {};
|
|
5
|
+
|
|
6
|
+
register(icons: IconMap) {
|
|
7
|
+
this.iconMap = { ...this.iconMap, ...icons };
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get(name: string): string | undefined {
|
|
11
|
+
return this.iconMap[name];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
getAll(): IconMap {
|
|
15
|
+
return this.iconMap;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const iconRegistry = new IconRegistry();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
|
|
1
3
|
interface PubinfoProviderProps {
|
|
2
4
|
loadIcon?: (name?: string) => any
|
|
3
5
|
}
|
|
@@ -17,7 +19,6 @@ export default defineComponent({
|
|
|
17
19
|
props: {
|
|
18
20
|
loadIcon: {
|
|
19
21
|
type: Function as PubinfoProviderProps['loadIcon'],
|
|
20
|
-
required: true,
|
|
21
22
|
},
|
|
22
23
|
},
|
|
23
24
|
setup(props, { slots }) {
|
|
@@ -25,7 +26,7 @@ export default defineComponent({
|
|
|
25
26
|
|
|
26
27
|
createPubinfoProvider({
|
|
27
28
|
loadIcon(name) {
|
|
28
|
-
return props
|
|
29
|
+
return props?.loadIcon?.(name) ?? provider?.loadIcon?.(name);
|
|
29
30
|
},
|
|
30
31
|
});
|
|
31
32
|
|
package/src/composables/auth.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function useAuth() {
|
|
|
14
14
|
const settingsStore = useSettingsStore();
|
|
15
15
|
const userStore = useUserStore();
|
|
16
16
|
if (settingsStore.settings.app.enablePermission) {
|
|
17
|
-
return userStore.permissions.includes(permission);
|
|
17
|
+
return userStore.user.permissions.includes(permission);
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
return true;
|
package/src/context.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Context } from './interface';
|
|
2
2
|
import { createHooks } from 'hookable';
|
|
3
3
|
import { auth, basic } from 'pubinfo:project/api/request';
|
|
4
|
-
import layout from 'pubinfo:project/layouts/index.vue';
|
|
5
4
|
|
|
6
5
|
export const hooks = createHooks();
|
|
7
6
|
|
|
@@ -24,7 +23,7 @@ export function usePubinfoContext() {
|
|
|
24
23
|
*/
|
|
25
24
|
export function readProject() {
|
|
26
25
|
return {
|
|
27
|
-
layout,
|
|
26
|
+
layout: () => import('pubinfo:project/layouts/index.vue'),
|
|
28
27
|
request: { auth, basic },
|
|
29
28
|
};
|
|
30
29
|
}
|
package/src/create.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { createRouter, createWebHashHistory } from 'vue-router';
|
|
|
6
6
|
|
|
7
7
|
import { GetAPIValidateIp } from './api/system/app';
|
|
8
8
|
|
|
9
|
+
import { iconRegistry } from './components/PubinfoIcon/register';
|
|
9
10
|
import { createPubinfoContext, hooks } from './context';
|
|
10
11
|
import { setupDirectives } from './directives';
|
|
11
12
|
import { setupLayout } from './layout';
|
|
@@ -13,6 +14,7 @@ import { setupI18n } from './locales';
|
|
|
13
14
|
import { extractModules, resolveModules } from './modules';
|
|
14
15
|
import { constantRoutes, setupRouterGuard } from './route';
|
|
15
16
|
import { setupStore } from './stores';
|
|
17
|
+
import { loadIconsFromGlob } from './utils';
|
|
16
18
|
|
|
17
19
|
export function createPubinfo(
|
|
18
20
|
App: Component,
|
|
@@ -45,6 +47,7 @@ export function createPubinfo(
|
|
|
45
47
|
app,
|
|
46
48
|
store,
|
|
47
49
|
router,
|
|
50
|
+
iconRegistry,
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
app.use(store);
|
|
@@ -80,6 +83,10 @@ export function createPubinfo(
|
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
function setupBasic(context: Context) {
|
|
86
|
+
// register icons
|
|
87
|
+
const iconMap = loadIconsFromGlob(import.meta.glob('./assets/icons/*.svg', { eager: true }));
|
|
88
|
+
context.iconRegistry.register(iconMap);
|
|
89
|
+
|
|
83
90
|
setupStore(context);
|
|
84
91
|
setupRouterGuard(context);
|
|
85
92
|
setupDirectives(context);
|
package/src/index.ts
CHANGED
package/src/interface.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Pinia } from 'pinia';
|
|
2
2
|
import type { App } from 'vue';
|
|
3
3
|
import type { Router, RouterOptions as VueRouterOptions } from 'vue-router';
|
|
4
|
+
import type { IconRegistry } from './components/PubinfoIcon/register';
|
|
4
5
|
|
|
5
6
|
type PartialKeys<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
6
7
|
|
|
@@ -10,6 +11,7 @@ export interface Context {
|
|
|
10
11
|
app: App<Element>
|
|
11
12
|
store: Pinia
|
|
12
13
|
router: Router
|
|
14
|
+
iconRegistry: IconRegistry
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export interface Options {
|
|
@@ -20,9 +22,20 @@ export interface Options {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface Module {
|
|
25
|
+
/** 唯一值 */
|
|
23
26
|
name: string
|
|
27
|
+
/** 初始化内容 */
|
|
24
28
|
setup?: (ctx: Context) => void
|
|
29
|
+
/**
|
|
30
|
+
* 插件调用顺序:
|
|
31
|
+
* - `enforce: pre` 插件
|
|
32
|
+
* - 腾龙核心功能(即内置的各类路由守卫、状态管理等)
|
|
33
|
+
* - 普通插件
|
|
34
|
+
* - 项目初始化函数(即 `createPubinfo` 第三个参数)
|
|
35
|
+
* - `enforce: post` 插件
|
|
36
|
+
*/
|
|
25
37
|
enforce?: 'pre' | 'post'
|
|
38
|
+
/** 钩子函数 */
|
|
26
39
|
hooks?: Partial<Hooks>
|
|
27
40
|
}
|
|
28
41
|
|
package/src/layout/Layout.vue
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { PubinfoProvider } from '@/components';
|
|
3
2
|
import RiLogoutBoxLine from '~icons/ri/logout-box-line';
|
|
4
3
|
import BackTop from './components/BackTop/index.vue';
|
|
5
4
|
import LayoutContent from './components/Content/index.vue';
|
|
@@ -49,78 +48,70 @@ watch(() => routeInfo.path, () => {
|
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
});
|
|
52
|
-
|
|
53
|
-
function loadIcon(name: string) {
|
|
54
|
-
const modules = (import.meta as any).glob('../assets/icons/*', { eager: true });
|
|
55
|
-
const path = `../assets/icons/${name}.svg`;
|
|
56
|
-
return modules[path]?.default;
|
|
57
|
-
}
|
|
58
51
|
</script>
|
|
59
52
|
|
|
60
53
|
<template>
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
>
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<div
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<!-- <slot name="sidebar">
|
|
54
|
+
<div
|
|
55
|
+
class="layout"
|
|
56
|
+
:style="{
|
|
57
|
+
'--g-main-sidebar-actual-width': mainSidebarActualWidth,
|
|
58
|
+
'--g-sub-sidebar-actual-width': subSidebarActualWidth,
|
|
59
|
+
}"
|
|
60
|
+
>
|
|
61
|
+
<div id="app-main" :class="{ 'main-page-maximize': settingsStore.mainPageMaximizeStatus }">
|
|
62
|
+
<slot name="header">
|
|
63
|
+
<LayoutHeader />
|
|
64
|
+
</slot>
|
|
65
|
+
|
|
66
|
+
<div class="wrapper">
|
|
67
|
+
<div
|
|
68
|
+
class="sidebar-container"
|
|
69
|
+
:class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
|
|
70
|
+
>
|
|
71
|
+
<!-- TODO 这种写法会导致侧边栏模式的布局下,有样式问题 -->
|
|
72
|
+
<!-- <slot name="sidebar">
|
|
81
73
|
<Sidebar />
|
|
82
74
|
</slot> -->
|
|
83
75
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<div
|
|
89
|
-
class="sidebar-mask"
|
|
90
|
-
:class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
|
|
91
|
-
@click="settingsStore.toggleSidebarCollapse()"
|
|
92
|
-
/>
|
|
93
|
-
|
|
94
|
-
<div class="main-container" :style="{ 'padding-bottom': routeInfo.meta.paddingBottom }">
|
|
95
|
-
<slot name="topbar">
|
|
96
|
-
<Topbar />
|
|
97
|
-
</slot>
|
|
76
|
+
<MainSidebar />
|
|
77
|
+
<SubSidebar />
|
|
78
|
+
</div>
|
|
98
79
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
80
|
+
<div
|
|
81
|
+
class="sidebar-mask"
|
|
82
|
+
:class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
|
|
83
|
+
@click="settingsStore.toggleSidebarCollapse()"
|
|
84
|
+
/>
|
|
85
|
+
|
|
86
|
+
<div class="main-container" :style="{ 'padding-bottom': routeInfo.meta.paddingBottom }">
|
|
87
|
+
<slot name="topbar">
|
|
88
|
+
<Topbar />
|
|
89
|
+
</slot>
|
|
90
|
+
|
|
91
|
+
<div class="main">
|
|
92
|
+
<div
|
|
93
|
+
v-show="settingsStore.mainPageMaximizeStatus"
|
|
94
|
+
class="exit-main-page-maximize"
|
|
95
|
+
@click="settingsStore.setMainPageMaximize()"
|
|
96
|
+
>
|
|
97
|
+
<RiLogoutBoxLine />
|
|
111
98
|
</div>
|
|
112
99
|
|
|
113
|
-
<slot
|
|
114
|
-
<
|
|
100
|
+
<slot>
|
|
101
|
+
<LayoutContent />
|
|
115
102
|
</slot>
|
|
116
103
|
</div>
|
|
104
|
+
|
|
105
|
+
<slot name="footer">
|
|
106
|
+
<Copyright />
|
|
107
|
+
</slot>
|
|
117
108
|
</div>
|
|
118
109
|
</div>
|
|
119
|
-
|
|
120
|
-
<SettingBar />
|
|
121
|
-
<BackTop />
|
|
122
110
|
</div>
|
|
123
|
-
|
|
111
|
+
|
|
112
|
+
<SettingBar />
|
|
113
|
+
<BackTop />
|
|
114
|
+
</div>
|
|
124
115
|
</template>
|
|
125
116
|
|
|
126
117
|
<style lang="scss" scoped>
|
|
@@ -7,25 +7,46 @@ defineOptions({
|
|
|
7
7
|
name: 'LayoutContent',
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const _route = useRoute();
|
|
11
11
|
const { settingsStore, keepAliveStore } = useContext();
|
|
12
12
|
|
|
13
|
-
const isIframe = computed(() => !!
|
|
14
|
-
const isLink = computed(() => !!
|
|
13
|
+
const isIframe = computed(() => !!_route.meta.iframe);
|
|
14
|
+
const isLink = computed(() => !!_route.meta.link);
|
|
15
|
+
|
|
16
|
+
function EmptyWrapper(_: any, { slots }: { slots: any }) {
|
|
17
|
+
return slots?.default?.();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Provider = computed(() => {
|
|
21
|
+
const metaProvider = _route.matched?.[0]?.meta?.provider;
|
|
22
|
+
|
|
23
|
+
if (!metaProvider) {
|
|
24
|
+
return EmptyWrapper;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// 是函数,认为是 () => import(...)
|
|
28
|
+
if (typeof metaProvider === 'function') {
|
|
29
|
+
return defineAsyncComponent(metaProvider);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return metaProvider;
|
|
33
|
+
});
|
|
15
34
|
</script>
|
|
16
35
|
|
|
17
36
|
<template>
|
|
18
37
|
<RouterView v-slot="{ Component, route }">
|
|
19
|
-
<
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
<component :is="Provider">
|
|
39
|
+
<Transition :name="settingsStore.settings.mainPage.enableTransition ? settingsStore.settings.mainPage.transitionMode : ''" mode="out-in" appear>
|
|
40
|
+
<KeepAlive :include="keepAliveStore.list">
|
|
41
|
+
<component
|
|
42
|
+
:is="Component"
|
|
43
|
+
v-show="!(isIframe || isLink)"
|
|
44
|
+
:key="route.fullPath"
|
|
45
|
+
class="page-container"
|
|
46
|
+
/>
|
|
47
|
+
</KeepAlive>
|
|
48
|
+
</Transition>
|
|
49
|
+
</component>
|
|
29
50
|
</RouterView>
|
|
30
51
|
|
|
31
52
|
<IframeView v-show="isIframe && !isLink" />
|
|
@@ -31,8 +31,6 @@ const menuRef = ref<HTMLElement | null>();
|
|
|
31
31
|
const { width } = useElementSize(menuRef);
|
|
32
32
|
const menuHideIndex = ref(0);
|
|
33
33
|
|
|
34
|
-
watchMenuItem();
|
|
35
|
-
|
|
36
34
|
const moreApple = computed(() => {
|
|
37
35
|
return menuHideIndex.value === menuStore.allMenus.length - 1;
|
|
38
36
|
});
|
|
@@ -42,19 +40,6 @@ function moreApplyClick(index: number, item: Menu.recordMainRaw) {
|
|
|
42
40
|
switchTo(menuIndex, item);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
function watchMenuItem() {
|
|
46
|
-
onMounted(() => {
|
|
47
|
-
watch(
|
|
48
|
-
width,
|
|
49
|
-
() => {
|
|
50
|
-
menuHideIndex.value = fitMenus();
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
immediate: true,
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
43
|
// 计算顶部菜单宽度
|
|
59
44
|
function fitMenus() {
|
|
60
45
|
const containerRoot = menuRef.value!;
|
|
@@ -89,6 +74,17 @@ function fitMenus() {
|
|
|
89
74
|
|
|
90
75
|
return restrictedIndex;
|
|
91
76
|
}
|
|
77
|
+
|
|
78
|
+
onMounted(() => {
|
|
79
|
+
watch(
|
|
80
|
+
width,
|
|
81
|
+
() => {
|
|
82
|
+
menuHideIndex.value = fitMenus();
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
immediate: true,
|
|
86
|
+
});
|
|
87
|
+
});
|
|
92
88
|
</script>
|
|
93
89
|
|
|
94
90
|
<template>
|
|
@@ -99,7 +95,7 @@ function fitMenus() {
|
|
|
99
95
|
[`menu-active-${settingsStore.settings.menu.menuActiveStyle}`]: settingsStore.settings.menu.menuActiveStyle !== '',
|
|
100
96
|
}"
|
|
101
97
|
>
|
|
102
|
-
<template v-for="(item, index) in menuStore.allMenus" :key="index">
|
|
98
|
+
<template v-for="(item, index) in menuStore.allMenus" :key="item?.meta?.title || index">
|
|
103
99
|
<div
|
|
104
100
|
class="menu-item relative transition-all"
|
|
105
101
|
invisible
|
|
@@ -153,11 +153,11 @@ header {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
@media screen and (max-width: $g-header-width) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
156
|
+
// @media screen and (max-width: $g-header-width) {
|
|
157
|
+
// .header-container {
|
|
158
|
+
// width: 100%;
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
161
|
|
|
162
162
|
:deep(.menu-container) {
|
|
163
163
|
flex: 1;
|