@pubinfo/core 2.0.0-beta.6 → 2.0.0-beta.8
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-BQT7OI6K.js} +16 -16
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-D4u_haxr.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-MR1Db7z7.js} +46 -46
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-CgugOTgx.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-BPeCJBLi.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-BK0_EH_N.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-DGnxlXLd.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-BqAd9zbL.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-CgA3XDwW.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-WFnkcRQ3.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-CG4RI6mO.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-C1CT1Mm8.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-CQA6ZT9l.js} +2 -2
- package/{es/SettingThemes-D_DpEncn.js → dist/SettingThemes-BJu9czNK.js} +2 -2
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-DdR2940j.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-C_jYO_Ax.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-ir_28SE3.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-jHDpKsma.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_-18BnHmEa.js} +1 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-gu4NABiz.js} +1 -1
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{es/index-BkqnOkyO.js → dist/index-C1p_tY7i.js} +1 -1
- package/{es/index-DvHnVMX5.js → dist/index-CCPTQYuB.js} +2108 -2111
- package/{es/index-ChOUZNbk.js → dist/index-CNUEMTao.js} +2 -2
- package/{es/index-Dav3jQVP.js → dist/index-CWIfG62O.js} +2 -2
- package/{es/index-BvVAS3S-.js → dist/index-CjsnFBwd.js} +14 -8
- package/{es/index-B9I6Pru6.js → dist/index-CmXo8ShY.js} +12 -12
- package/{es/index-BHkrq701.js → dist/index-DL8Y7jFG.js} +9 -9
- package/{es/index-P2cA5UeU.js → dist/index-Dj8zy7hH.js} +4 -4
- package/{es/index-D8eeneI_.js → dist/index-NpS61xSA.js} +22 -22
- package/{es → dist}/index.js +25 -26
- 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-BCo6Ft-Q.js} +1 -1
- 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/notification-6D5hA7Bp.js → dist/menu-CLiZ1BO_.js} +481 -513
- package/{es/pick-Br-UKn7B.js → dist/pick-C9bU8_xv.js} +1 -1
- package/{es → dist}/request.js +23 -23
- package/{es → dist}/stores/modules/index.d.ts +0 -2
- package/{es → dist}/style.css +1 -1
- package/package.json +18 -24
- package/src/components/PubinfoProvider/index.ts +2 -0
- package/src/layout/components/Tools/index.vue +2 -19
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/provider.ts +0 -3
- package/src/layout/ui-kit/HDialog.vue +4 -1
- package/src/layout/ui-kit/HSlideover.vue +4 -1
- package/src/route/routes.ts +0 -9
- package/src/stores/modules/index.ts +0 -2
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/stores/modules/notification.d.ts +0 -19
- 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/auth.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/interface.d.ts +0 -29
- package/lib/layout/Layout.vue.d.ts +0 -20
- 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/favorites.d.ts +0 -33
- package/lib/stores/modules/iframe.d.ts +0 -42
- package/lib/stores/modules/index.d.ts +0 -18
- package/lib/stores/modules/keepAlive.d.ts +0 -24
- package/lib/stores/modules/menu.d.ts +0 -33
- package/lib/stores/modules/notification.d.ts +0 -19
- package/lib/stores/modules/route.d.ts +0 -43
- package/lib/stores/modules/settings.d.ts +0 -86
- package/lib/stores/modules/tabbar.d.ts +0 -60
- package/lib/stores/modules/user.d.ts +0 -4
- 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/index.d.ts +0 -14
- 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/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- package/src/stores/modules/notification.ts +0 -35
- /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/index.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 +0 -0
- /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/auth.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}/context.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}/index-DTQQt_XY.js +0 -0
- /package/{es → dist}/index.d.ts +0 -0
- /package/{es → dist}/interface.d.ts +0 -0
- /package/{es → dist}/layout/Layout.vue.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 +0 -0
- /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/HTabList.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 → dist}/pages/system/index.vue.d.ts +0 -0
- /package/{es → 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/async.d.ts +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}/route/index.d.ts +0 -0
- /package/{es → dist}/route/routes.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/modules/favorites.d.ts +0 -0
- /package/{es → dist}/stores/modules/iframe.d.ts +0 -0
- /package/{es → dist}/stores/modules/keepAlive.d.ts +0 -0
- /package/{es → dist}/stores/modules/menu.d.ts +0 -0
- /package/{es → dist}/stores/modules/route.d.ts +0 -0
- /package/{es → dist}/stores/modules/settings.d.ts +0 -0
- /package/{es → dist}/stores/modules/tabbar.d.ts +0 -0
- /package/{es → dist}/stores/modules/user.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/index.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
package/lib/utils/cleanup.d.ts
DELETED
package/lib/utils/crypto.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function compilePublicKey(key: string): string;
|
|
2
|
-
export declare function getPem(): Promise<string>;
|
|
3
|
-
export declare function encryptWithPublicKey(publicKey: string, data: string): Promise<string>;
|
|
4
|
-
export declare function getEncryptedData(str: string): Promise<string>;
|
package/lib/utils/eventBus.d.ts
DELETED
package/lib/utils/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Primitive } from 'type-fest';
|
|
2
|
-
type ConditionalExceptType<T extends Record<PropertyKey, any>, Type> = {
|
|
3
|
-
[P in keyof T]: Exclude<T[P], Type>;
|
|
4
|
-
};
|
|
5
|
-
export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
|
|
6
|
-
export declare function normalizePrimitiveToFunction<T extends Record<PropertyKey, any>>(options: T): ConditionalExceptType<T, Primitive>;
|
|
7
|
-
export declare function objectToPaths(obj: Record<string, any>, prefix?: string): string[];
|
|
8
|
-
export * from './cleanup';
|
|
9
|
-
export * from './crypto';
|
|
10
|
-
export { default as eventBus } from './eventBus';
|
|
11
|
-
export * from './injectionKeys';
|
|
12
|
-
export { default as storage } from './storage';
|
|
13
|
-
export * from './utils';
|
|
14
|
-
export { default as watermark } from './watermark';
|
package/lib/utils/storage.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const storage: {
|
|
2
|
-
local: {
|
|
3
|
-
has: (key: string) => boolean;
|
|
4
|
-
get: (key: string) => string | null;
|
|
5
|
-
set: (key: string, value: string) => void;
|
|
6
|
-
remove: (key: string) => void;
|
|
7
|
-
clear: () => void;
|
|
8
|
-
getItem: (key: string) => string | null;
|
|
9
|
-
setItem: (key: string, value: string) => void;
|
|
10
|
-
};
|
|
11
|
-
session: {
|
|
12
|
-
has: (key: string) => boolean;
|
|
13
|
-
get: (key: string) => string | null;
|
|
14
|
-
set: (key: string, value: string) => void;
|
|
15
|
-
remove: (key: string) => void;
|
|
16
|
-
clear: () => void;
|
|
17
|
-
getItem: (key: string) => string | null;
|
|
18
|
-
setItem: (key: string, value: string) => void;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default storage;
|
package/lib/utils/utils.d.ts
DELETED
package/lib/utils/watermark.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 根据 watermark-dom 进行修改
|
|
3
|
-
* https://github.com/saucxs/watermark-dom
|
|
4
|
-
*/
|
|
5
|
-
interface settingsType {
|
|
6
|
-
/** 水印总体的id */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** 小水印的id前缀 */
|
|
9
|
-
prefix?: string;
|
|
10
|
-
/** 水印文案 */
|
|
11
|
-
text?: string;
|
|
12
|
-
/** 水印起始位置x轴坐标 */
|
|
13
|
-
x?: number;
|
|
14
|
-
/** 水印起始位置Y轴坐标 */
|
|
15
|
-
y?: number;
|
|
16
|
-
/** 水印行数 */
|
|
17
|
-
rows?: number;
|
|
18
|
-
/** 水印列数 */
|
|
19
|
-
cols?: number;
|
|
20
|
-
/** 水印x轴间隔 */
|
|
21
|
-
x_space?: number;
|
|
22
|
-
/** 水印y轴间隔 */
|
|
23
|
-
y_space?: number;
|
|
24
|
-
/** 水印字体 */
|
|
25
|
-
font?: string;
|
|
26
|
-
/** 水印字体颜色 */
|
|
27
|
-
color?: string;
|
|
28
|
-
/** 水印字体大小 */
|
|
29
|
-
fontsize?: string;
|
|
30
|
-
/** 水印透明度,要求设置在大于等于0.005 */
|
|
31
|
-
alpha?: number;
|
|
32
|
-
/** 水印宽度 */
|
|
33
|
-
width?: number;
|
|
34
|
-
/** 水印长度 */
|
|
35
|
-
height?: number;
|
|
36
|
-
/** 水印倾斜度数 */
|
|
37
|
-
angle?: number;
|
|
38
|
-
/** 水印的总体宽度(默认值:body的scrollWidth和clientWidth的较大值) */
|
|
39
|
-
parent_width?: number;
|
|
40
|
-
/** 水印的总体高度(默认值:body的scrollHeight和clientHeight的较大值) */
|
|
41
|
-
parent_height?: number;
|
|
42
|
-
/** 水印插件挂载的父元素element,不输入则默认挂在body上 */
|
|
43
|
-
parent_node?: HTMLElement | null;
|
|
44
|
-
/** 是否监控,true: 不可删除水印; false: 可删水印 */
|
|
45
|
-
monitor?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export default function wmFn(): {
|
|
48
|
-
init: (settings: settingsType) => void;
|
|
49
|
-
remove: () => void;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
3
|
-
import FluentMail16Filled from '~icons/fluent/mail-16-filled';
|
|
4
|
-
import RiFileEditFill from '~icons/ri/file-edit-fill';
|
|
5
|
-
import RiServiceFill from '~icons/ri/service-fill';
|
|
6
|
-
import TablerMoodSmile from '~icons/tabler/mood-smile';
|
|
7
|
-
|
|
8
|
-
defineOptions({
|
|
9
|
-
name: 'Notification',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const activeName = ref('message');
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<div class="w-xs dark:bg-[var(--g-container-bg)]">
|
|
17
|
-
<template v-if="activeName === 'message'">
|
|
18
|
-
<OverlayScrollbarsComponent :options="{ scrollbars: { autoHide: 'leave', autoHideDelay: 300 } }" defer class="list max-h-300px dark:bg-[var(--g-container-bg)]">
|
|
19
|
-
<div class="item">
|
|
20
|
-
<div class="item-icon">
|
|
21
|
-
<FluentMail16Filled />
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="info">
|
|
25
|
-
<div class="title">
|
|
26
|
-
你收到了 8 份日报
|
|
27
|
-
</div>
|
|
28
|
-
<div class="date">
|
|
29
|
-
2020-10-10 10:00:00
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="item">
|
|
34
|
-
<div class="item-icon service">
|
|
35
|
-
<RiServiceFill />
|
|
36
|
-
</div>
|
|
37
|
-
<div class="info">
|
|
38
|
-
<div class="title">
|
|
39
|
-
你收到了 3 位同事的好友申请,请及时处理
|
|
40
|
-
</div>
|
|
41
|
-
<div class="date">
|
|
42
|
-
2020-10-10 10:00:00
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="item">
|
|
47
|
-
<div class="item-icon file-edit">
|
|
48
|
-
<RiFileEditFill />
|
|
49
|
-
</div>
|
|
50
|
-
<div class="info">
|
|
51
|
-
<div class="title">
|
|
52
|
-
你有 3 份合同待审批
|
|
53
|
-
</div>
|
|
54
|
-
<div class="date">
|
|
55
|
-
2020-10-10 10:00:00
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="item">
|
|
60
|
-
<div class="item-icon">
|
|
61
|
-
<FluentMail16Filled />
|
|
62
|
-
</div>
|
|
63
|
-
<div class="info">
|
|
64
|
-
<div class="title">
|
|
65
|
-
你收到了 8 份日报
|
|
66
|
-
</div>
|
|
67
|
-
<div class="date">
|
|
68
|
-
2020-10-10 10:00:00
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="item">
|
|
73
|
-
<div class="item-icon service">
|
|
74
|
-
<RiServiceFill />
|
|
75
|
-
</div>
|
|
76
|
-
<div class="info">
|
|
77
|
-
<div class="title">
|
|
78
|
-
你收到了 3 位同事的好友申请,请及时处理
|
|
79
|
-
</div>
|
|
80
|
-
<div class="date">
|
|
81
|
-
2020-10-10 10:00:00
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</OverlayScrollbarsComponent>
|
|
86
|
-
<RouterLink v-slot="{ navigate }" :to="{ name: 'Notification' }" custom>
|
|
87
|
-
<div class="cursor-pointer py-4 text-center text-sm text-stone-5" @click="navigate">
|
|
88
|
-
进入消息列表
|
|
89
|
-
</div>
|
|
90
|
-
</RouterLink>
|
|
91
|
-
</template>
|
|
92
|
-
<template v-if="activeName === 'todo'">
|
|
93
|
-
<OverlayScrollbarsComponent :options="{ scrollbars: { autoHide: 'leave', autoHideDelay: 300 } }" defer class="list max-h-300px">
|
|
94
|
-
<div class="flex flex-col items-center py-6 text-stone-5">
|
|
95
|
-
<TablerMoodSmile text="40px" />
|
|
96
|
-
<p m-2 text-base>
|
|
97
|
-
没有新待办
|
|
98
|
-
</p>
|
|
99
|
-
</div>
|
|
100
|
-
</OverlayScrollbarsComponent>
|
|
101
|
-
<RouterLink v-slot="{ navigate }" :to="{ name: 'Notification' }" custom>
|
|
102
|
-
<div class="cursor-pointer py-4 text-center text-sm text-stone-5" @click="navigate">
|
|
103
|
-
进入待办列表
|
|
104
|
-
</div>
|
|
105
|
-
</RouterLink>
|
|
106
|
-
</template>
|
|
107
|
-
</div>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<style lang="scss" scoped>
|
|
111
|
-
:deep([data-overlayscrollbars-viewport]) {
|
|
112
|
-
overscroll-behavior: contain;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.list {
|
|
116
|
-
--at-apply: border-block-width-1 border-block-solid border-block-stone-2 dark:border-block-stone-7;
|
|
117
|
-
|
|
118
|
-
.item {
|
|
119
|
-
--at-apply: flex items-start gap-3 px-3 py-4 cursor-pointer border-b-width-1 last:border-b-width-0 border-b-solid border-b-stone-2 dark:border-b-stone-7 hover:bg-stone-1 dark:hover:bg-dark/50;
|
|
120
|
-
|
|
121
|
-
.item-icon {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
|
|
126
|
-
--at-apply: w-6 h-6 text-xs rounded-full text-white bg-blue;
|
|
127
|
-
|
|
128
|
-
&.service {
|
|
129
|
-
--at-apply: bg-green;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&.file-edit {
|
|
133
|
-
--at-apply: bg-orange;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&.bug {
|
|
137
|
-
--at-apply: bg-pink;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.info {
|
|
142
|
-
.title {
|
|
143
|
-
--at-apply: text-sm line-clamp-2;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.date {
|
|
147
|
-
--at-apply: mt-1 text-xs text-stone-5;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { PageHeader, PageMain, PubinfoIcon } from '@/components';
|
|
3
|
-
import { useNotificationStore } from '@/stores';
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
name: 'PersonalNotification',
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
const notificationStore = useNotificationStore();
|
|
10
|
-
|
|
11
|
-
function messagePlus() {
|
|
12
|
-
notificationStore.$patch((state) => {
|
|
13
|
-
state.message += 1;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function messageMinus() {
|
|
17
|
-
notificationStore.$patch((state) => {
|
|
18
|
-
state.message -= state.message > 0 ? 1 : 0;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function todoPlus() {
|
|
23
|
-
notificationStore.$patch((state) => {
|
|
24
|
-
state.todo += 1;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function todoMinus() {
|
|
28
|
-
notificationStore.$patch((state) => {
|
|
29
|
-
state.todo -= state.todo > 0 ? 1 : 0;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<template>
|
|
35
|
-
<div>
|
|
36
|
-
<PageHeader title="通知中心" content="本页面仅模拟右上角通知数变化,具体业务逻辑请到 /src/store/modules/notification.ts 文件中编写" />
|
|
37
|
-
<PageMain title="消息">
|
|
38
|
-
<HButton @click="messagePlus">
|
|
39
|
-
<PubinfoIcon name="i-ep-plus" />
|
|
40
|
-
1
|
|
41
|
-
</HButton>
|
|
42
|
-
<HButton ml-2 @click="messageMinus">
|
|
43
|
-
<PubinfoIcon name="i-ep-minus" />
|
|
44
|
-
1
|
|
45
|
-
</HButton>
|
|
46
|
-
</PageMain>
|
|
47
|
-
<PageMain title="待办">
|
|
48
|
-
<HButton @click="todoPlus">
|
|
49
|
-
<PubinfoIcon name="i-ep-plus" />
|
|
50
|
-
1
|
|
51
|
-
</HButton>
|
|
52
|
-
<HButton ml-2 @click="todoMinus">
|
|
53
|
-
<PubinfoIcon name="i-ep-minus" />
|
|
54
|
-
1
|
|
55
|
-
</HButton>
|
|
56
|
-
</PageMain>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineStore } from 'pinia';
|
|
2
|
-
import { STORE_NAME } from '../enum';
|
|
3
|
-
|
|
4
|
-
const useNotificationStore = defineStore(
|
|
5
|
-
// 唯一ID
|
|
6
|
-
STORE_NAME.NOTIFICATION,
|
|
7
|
-
() => {
|
|
8
|
-
const message = ref(0);
|
|
9
|
-
const todo = ref(0);
|
|
10
|
-
const total = computed(() => message.value + todo.value);
|
|
11
|
-
|
|
12
|
-
function init() {
|
|
13
|
-
getUnreadMessage();
|
|
14
|
-
getUnreadTodo();
|
|
15
|
-
}
|
|
16
|
-
function getUnreadMessage() {
|
|
17
|
-
// 为方便演示,这里直接写死的未读数
|
|
18
|
-
message.value = 9;
|
|
19
|
-
}
|
|
20
|
-
function getUnreadTodo() {
|
|
21
|
-
// 为方便演示,这里直接写死的未读数
|
|
22
|
-
todo.value = 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
message,
|
|
27
|
-
todo,
|
|
28
|
-
total,
|
|
29
|
-
init,
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
export default useNotificationStore;
|
|
35
|
-
export type NotificationStore = ReturnType<typeof useNotificationStore>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{es → dist}/create.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{es → dist}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|