@pubinfo/core 2.0.0-beta.1 → 2.0.0-beta.10

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.
Files changed (456) hide show
  1. package/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-BkkBhQs8.js} +16 -16
  2. package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-CCAu4BLQ.js} +2 -2
  3. package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-CR--f_NB.js} +46 -46
  4. package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-G3tCFpLA.js} +2 -2
  5. package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-CX0focMI.js} +1 -1
  6. package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-DOKJnR4L.js} +1 -1
  7. package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BYO222_e.js} +1 -1
  8. package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-wjOwhCSF.js} +2 -2
  9. package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-Bvavz1iE.js} +1 -1
  10. package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-BNgCCL_g.js} +1 -1
  11. package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-Bkg_d75_.js} +1 -1
  12. package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-CoxnW-C8.js} +1 -1
  13. package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-CSbAXsSc.js} +2 -2
  14. package/{es/SettingThemes-D_DpEncn.js → dist/SettingThemes-DWIUI9Jm.js} +2 -2
  15. package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-B2ieO89s.js} +1 -1
  16. package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-O8atqRyC.js} +2 -2
  17. package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-xRqJUEGW.js} +1 -1
  18. package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-B5bzupL0.js} +1 -1
  19. package/{es/_...all_-DI_QAUox.js → dist/_...all_-BhkWBVsP.js} +1 -1
  20. package/{es/colors-oRlAXMUC.js → dist/colors-D1em-qbN.js} +1 -1
  21. package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
  22. package/{es/index-D8eeneI_.js → dist/index-B82_RIAQ.js} +22 -22
  23. package/{es/index-Dav3jQVP.js → dist/index-B_G9XMp4.js} +2 -2
  24. package/{es/index-P2cA5UeU.js → dist/index-Bt_iFTZm.js} +4 -4
  25. package/{es/index-BHkrq701.js → dist/index-C9Ne6frc.js} +21 -21
  26. package/{es/index-BvVAS3S-.js → dist/index-CInEsIq9.js} +14 -8
  27. package/{es/index-DvHnVMX5.js → dist/index-D1uzRPbe.js} +2116 -2119
  28. package/{es/index-BkqnOkyO.js → dist/index-D4ZKd0qO.js} +1 -1
  29. package/{es/index-ChOUZNbk.js → dist/index-DkuKtlnz.js} +2 -2
  30. package/{es/index-B9I6Pru6.js → dist/index-LwHAdG5B.js} +12 -12
  31. package/{es → dist}/index.js +25 -26
  32. 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-Cf4EKYdE.js} +1 -1
  33. package/{es → dist}/layout/composables/useContext.d.ts +1 -2
  34. package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
  35. package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
  36. package/{es/notification-6D5hA7Bp.js → dist/menu-lns6oFYd.js} +1866 -1902
  37. package/{es/pick-Br-UKn7B.js → dist/pick-D4R-sEsr.js} +1 -1
  38. package/{es → dist}/request.js +23 -23
  39. package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
  40. package/{es → dist}/stores/modules/iframe.d.ts +1 -0
  41. package/{es → dist}/stores/modules/index.d.ts +8 -1
  42. package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
  43. package/{es → dist}/stores/modules/menu.d.ts +1 -0
  44. package/{es → dist}/stores/modules/route.d.ts +1 -0
  45. package/{lib → dist}/stores/modules/settings.d.ts +1 -0
  46. package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
  47. package/dist/stores/modules/user.d.ts +35 -0
  48. package/{es → dist}/style.css +1 -1
  49. package/package.json +18 -24
  50. package/src/components/PubinfoProvider/index.ts +2 -0
  51. package/src/layout/components/Tools/index.vue +8 -25
  52. package/src/layout/composables/useContext.ts +0 -2
  53. package/src/layout/composables/useWatermark.ts +2 -2
  54. package/src/layout/provider.ts +0 -3
  55. package/src/layout/ui-kit/HDialog.vue +4 -1
  56. package/src/layout/ui-kit/HSlideover.vue +4 -1
  57. package/src/pages/system/change-organization/index.vue +3 -3
  58. package/src/route/routes.ts +0 -9
  59. package/src/stores/helper.ts +2 -2
  60. package/src/stores/modules/favorites.ts +1 -0
  61. package/src/stores/modules/iframe.ts +1 -0
  62. package/src/stores/modules/index.ts +8 -1
  63. package/src/stores/modules/keepAlive.ts +1 -0
  64. package/src/stores/modules/menu.ts +1 -0
  65. package/src/stores/modules/route.ts +2 -1
  66. package/src/stores/modules/settings.ts +1 -0
  67. package/src/stores/modules/tabbar.ts +1 -0
  68. package/src/stores/modules/user.ts +54 -20
  69. package/es/components/PubinfoProvider/index.d.ts +0 -8
  70. package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
  71. package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
  72. package/es/stores/modules/favorites.d.ts +0 -32
  73. package/es/stores/modules/notification.d.ts +0 -18
  74. package/es/stores/modules/settings.d.ts +0 -85
  75. package/es/stores/modules/tabbar.d.ts +0 -59
  76. package/es/stores/modules/user.d.ts +0 -3
  77. package/lib/AppSetting-CCiwpjoq.cjs +0 -1
  78. package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
  79. package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
  80. package/lib/HDivider-DCfDgE8l.cjs +0 -1
  81. package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
  82. package/lib/HToggle-BP6YYf-s.cjs +0 -1
  83. package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
  84. package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
  85. package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
  86. package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
  87. package/lib/SettingHome-u52oz6i8.cjs +0 -1
  88. package/lib/SettingMenu-DsElOvvv.cjs +0 -1
  89. package/lib/SettingMode-C_kgpTxw.cjs +0 -1
  90. package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
  91. package/lib/SettingOther-6XGQq7OA.cjs +0 -1
  92. package/lib/SettingPage-C8yIHpLc.cjs +0 -1
  93. package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
  94. package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
  95. package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
  96. package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
  97. package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
  98. package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
  99. package/lib/_...all_-C4CXjAo9.cjs +0 -1
  100. package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  101. package/lib/api/enum/code.d.ts +0 -67
  102. package/lib/api/helper.d.ts +0 -32
  103. package/lib/api/index.d.ts +0 -12
  104. package/lib/api/interface.d.ts +0 -14
  105. package/lib/api/modules/auth/index.d.ts +0 -1
  106. package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
  107. package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
  108. package/lib/api/modules/configData/index.d.ts +0 -3
  109. package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
  110. package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
  111. package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
  112. package/lib/api/modules/rbac/index.d.ts +0 -11
  113. package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
  114. package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
  115. package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
  116. package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
  117. package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
  118. package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
  119. package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
  120. package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
  121. package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
  122. package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
  123. package/lib/api/request.d.ts +0 -2
  124. package/lib/api/system/app.d.ts +0 -17
  125. package/lib/api/system/user.d.ts +0 -24
  126. package/lib/assets/styles/index.d.ts +0 -6
  127. package/lib/colors-KAaBT84S.cjs +0 -1
  128. package/lib/components/NotAllowed/index.vue.d.ts +0 -2
  129. package/lib/components/PageHeader/index.vue.d.ts +0 -23
  130. package/lib/components/PageMain/index.vue.d.ts +0 -27
  131. package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
  132. package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
  133. package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
  134. package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
  135. package/lib/components/index.d.ts +0 -8
  136. package/lib/composables/auth.d.ts +0 -8
  137. package/lib/composables/index.d.ts +0 -4
  138. package/lib/composables/log.d.ts +0 -6
  139. package/lib/composables/theme.d.ts +0 -3
  140. package/lib/composables/watchDiff.d.ts +0 -2
  141. package/lib/config/index.d.ts +0 -1
  142. package/lib/config/settings.d.ts +0 -3
  143. package/lib/context.d.ts +0 -14
  144. package/lib/create.d.ts +0 -3
  145. package/lib/directives/index.d.ts +0 -4
  146. package/lib/directives/plugins/permission.d.ts +0 -6
  147. package/lib/index-38bsQrho.cjs +0 -1
  148. package/lib/index-BEqD62a0.cjs +0 -1
  149. package/lib/index-Bbm9CQRP.cjs +0 -1
  150. package/lib/index-BqHsuJkr.cjs +0 -1
  151. package/lib/index-JZl6Zh3L.cjs +0 -44
  152. package/lib/index-VGR0Mt4q.cjs +0 -240
  153. package/lib/index-WMo0GAa6.cjs +0 -1
  154. package/lib/index-_YsHduAE.cjs +0 -1
  155. package/lib/index-gr8kFwPx.cjs +0 -18
  156. package/lib/index-zvGq9tSu.cjs +0 -1
  157. package/lib/index.cjs +0 -1
  158. package/lib/index.d.ts +0 -11
  159. package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
  160. package/lib/interface.d.ts +0 -29
  161. package/lib/layout/Layout.vue.d.ts +0 -20
  162. package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
  163. package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
  164. package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
  165. package/lib/layout/components/Content/index.vue.d.ts +0 -2
  166. package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
  167. package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
  168. package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
  169. package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
  170. package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
  171. package/lib/layout/components/Header/index.vue.d.ts +0 -19
  172. package/lib/layout/components/Logo/index.vue.d.ts +0 -26
  173. package/lib/layout/components/Menu/index.vue.d.ts +0 -10
  174. package/lib/layout/components/Menu/item.vue.d.ts +0 -11
  175. package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
  176. package/lib/layout/components/Menu/types.d.ts +0 -42
  177. package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
  178. package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
  179. package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
  180. package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
  181. package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
  182. package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
  183. package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
  184. package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
  185. package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
  186. package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
  187. package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
  188. package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
  189. package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
  190. package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
  191. package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
  192. package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
  193. package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
  194. package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
  195. package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
  196. package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
  197. package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
  198. package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
  199. package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
  200. package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
  201. package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
  202. package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
  203. package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
  204. package/lib/layout/components/Tools/index.vue.d.ts +0 -233
  205. package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
  206. package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
  207. package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
  208. package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
  209. package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
  210. package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
  211. package/lib/layout/composables/useContext.d.ts +0 -18
  212. package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
  213. package/lib/layout/composables/useHotkey.d.ts +0 -5
  214. package/lib/layout/composables/useMainPage.d.ts +0 -14
  215. package/lib/layout/composables/useMenu.d.ts +0 -8
  216. package/lib/layout/composables/useTabbar.d.ts +0 -14
  217. package/lib/layout/composables/useTitle.d.ts +0 -3
  218. package/lib/layout/composables/useViewTransition.d.ts +0 -3
  219. package/lib/layout/composables/useWatermark.d.ts +0 -4
  220. package/lib/layout/index.d.ts +0 -19
  221. package/lib/layout/provider.d.ts +0 -1
  222. package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
  223. package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
  224. package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
  225. package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
  226. package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
  227. package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
  228. package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
  229. package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
  230. package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
  231. package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
  232. package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
  233. package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
  234. package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
  235. package/lib/locales/index.d.ts +0 -301
  236. package/lib/locales/lang/en.json.d.ts +0 -99
  237. package/lib/locales/lang/zh-cn.json.d.ts +0 -100
  238. package/lib/locales/lang/zh-tw.json.d.ts +0 -100
  239. package/lib/locales/ui.d.ts +0 -3
  240. package/lib/modules.d.ts +0 -11
  241. package/lib/notification-IZqPm_OK.cjs +0 -199
  242. package/lib/pages/personal/profile/index.vue.d.ts +0 -2
  243. package/lib/pages/system/[...all].vue.d.ts +0 -2
  244. package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
  245. package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
  246. package/lib/pages/system/change-password/index.vue.d.ts +0 -31
  247. package/lib/pages/system/index.vue.d.ts +0 -2
  248. package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
  249. package/lib/pages/system/reload.vue.d.ts +0 -2
  250. package/lib/pick-y2yLda1R.cjs +0 -1
  251. package/lib/question-line-Cd0CU4hr.cjs +0 -1
  252. package/lib/reload-6L7Dzs7h.cjs +0 -1
  253. package/lib/request.cjs +0 -6
  254. package/lib/right-C5JQ_uRB.cjs +0 -1
  255. package/lib/route/async.d.ts +0 -9
  256. package/lib/route/guard/auth.d.ts +0 -3
  257. package/lib/route/guard/basic.d.ts +0 -3
  258. package/lib/route/guard/index.d.ts +0 -3
  259. package/lib/route/guard/setting.d.ts +0 -3
  260. package/lib/route/index.d.ts +0 -7
  261. package/lib/route/routes.d.ts +0 -3
  262. package/lib/stores/enum/index.d.ts +0 -20
  263. package/lib/stores/helper.d.ts +0 -2
  264. package/lib/stores/index.d.ts +0 -5
  265. package/lib/stores/modules/iframe.d.ts +0 -41
  266. package/lib/stores/modules/index.d.ts +0 -9
  267. package/lib/stores/modules/keepAlive.d.ts +0 -23
  268. package/lib/stores/modules/menu.d.ts +0 -32
  269. package/lib/stores/modules/notification.d.ts +0 -18
  270. package/lib/stores/modules/route.d.ts +0 -42
  271. package/lib/stores/modules/user.d.ts +0 -3
  272. package/lib/stores/plugin/persist.d.ts +0 -5
  273. package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
  274. package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
  275. package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
  276. package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
  277. package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
  278. package/lib/style.css +0 -9
  279. package/lib/utils/cleanup.d.ts +0 -8
  280. package/lib/utils/crypto.d.ts +0 -4
  281. package/lib/utils/eventBus.d.ts +0 -5
  282. package/lib/utils/index.d.ts +0 -14
  283. package/lib/utils/injectionKeys.d.ts +0 -2
  284. package/lib/utils/storage.d.ts +0 -21
  285. package/lib/utils/utils.d.ts +0 -3
  286. package/lib/utils/watermark.d.ts +0 -51
  287. package/src/layout/components/Tools/Notification.vue +0 -152
  288. package/src/pages/personal/notification.vue +0 -58
  289. package/src/stores/modules/notification.ts +0 -34
  290. /package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
  291. /package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
  292. /package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
  293. /package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
  294. /package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
  295. /package/{es → dist}/api/enum/code.d.ts +0 -0
  296. /package/{es → dist}/api/helper.d.ts +0 -0
  297. /package/{es → dist}/api/index.d.ts +0 -0
  298. /package/{es → dist}/api/interface.d.ts +0 -0
  299. /package/{es → dist}/api/modules/auth/index.d.ts +0 -0
  300. /package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
  301. /package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
  302. /package/{es → dist}/api/modules/configData/index.d.ts +0 -0
  303. /package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
  304. /package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
  305. /package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
  306. /package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
  307. /package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
  308. /package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
  309. /package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
  310. /package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
  311. /package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
  312. /package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
  313. /package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
  314. /package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
  315. /package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
  316. /package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
  317. /package/{es → dist}/api/request.d.ts +0 -0
  318. /package/{es → dist}/api/system/app.d.ts +0 -0
  319. /package/{es → dist}/api/system/user.d.ts +0 -0
  320. /package/{es → dist}/assets/styles/index.d.ts +0 -0
  321. /package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
  322. /package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
  323. /package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
  324. /package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +0 -0
  325. /package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
  326. /package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
  327. /package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
  328. /package/{es → dist}/components/index.d.ts +0 -0
  329. /package/{es → dist}/composables/auth.d.ts +0 -0
  330. /package/{es → dist}/composables/index.d.ts +0 -0
  331. /package/{es → dist}/composables/log.d.ts +0 -0
  332. /package/{es → dist}/composables/theme.d.ts +0 -0
  333. /package/{es → dist}/composables/watchDiff.d.ts +0 -0
  334. /package/{es → dist}/config/index.d.ts +0 -0
  335. /package/{es → dist}/config/settings.d.ts +0 -0
  336. /package/{es → dist}/context.d.ts +0 -0
  337. /package/{es → dist}/create.d.ts +0 -0
  338. /package/{es → dist}/directives/index.d.ts +0 -0
  339. /package/{es → dist}/directives/plugins/permission.d.ts +0 -0
  340. /package/{es → dist}/index-DTQQt_XY.js +0 -0
  341. /package/{es → dist}/index.d.ts +0 -0
  342. /package/{es → dist}/interface.d.ts +0 -0
  343. /package/{es → dist}/layout/Layout.vue.d.ts +0 -0
  344. /package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
  345. /package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
  346. /package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
  347. /package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
  348. /package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
  349. /package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
  350. /package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
  351. /package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
  352. /package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
  353. /package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
  354. /package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
  355. /package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
  356. /package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
  357. /package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
  358. /package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
  359. /package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
  360. /package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
  361. /package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
  362. /package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
  363. /package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
  364. /package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
  365. /package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
  366. /package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
  367. /package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
  368. /package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
  369. /package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
  370. /package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
  371. /package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
  372. /package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
  373. /package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
  374. /package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
  375. /package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
  376. /package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
  377. /package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
  378. /package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
  379. /package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
  380. /package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
  381. /package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
  382. /package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
  383. /package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
  384. /package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
  385. /package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
  386. /package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
  387. /package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
  388. /package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
  389. /package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
  390. /package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
  391. /package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
  392. /package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
  393. /package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
  394. /package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
  395. /package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
  396. /package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
  397. /package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
  398. /package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
  399. /package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
  400. /package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
  401. /package/{es → dist}/layout/index.d.ts +0 -0
  402. /package/{es → dist}/layout/provider.d.ts +0 -0
  403. /package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
  404. /package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
  405. /package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +0 -0
  406. /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
  407. /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
  408. /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
  409. /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
  410. /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
  411. /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
  412. /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
  413. /package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +0 -0
  414. /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
  415. /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
  416. /package/{es → dist}/locales/index.d.ts +0 -0
  417. /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
  418. /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
  419. /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
  420. /package/{es → dist}/locales/ui.d.ts +0 -0
  421. /package/{es → dist}/modules.d.ts +0 -0
  422. /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
  423. /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
  424. /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
  425. /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
  426. /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
  427. /package/{es → dist}/pages/system/index.vue.d.ts +0 -0
  428. /package/{es → dist}/pages/system/not-permission/index.vue.d.ts +0 -0
  429. /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
  430. /package/{es → dist}/question-line-CfkciTFq.js +0 -0
  431. /package/{es → dist}/reload-CUcPYtl7.js +0 -0
  432. /package/{es → dist}/right-Bfe2p1o0.js +0 -0
  433. /package/{es → dist}/route/async.d.ts +0 -0
  434. /package/{es → dist}/route/guard/auth.d.ts +0 -0
  435. /package/{es → dist}/route/guard/basic.d.ts +0 -0
  436. /package/{es → dist}/route/guard/index.d.ts +0 -0
  437. /package/{es → dist}/route/guard/setting.d.ts +0 -0
  438. /package/{es → dist}/route/index.d.ts +0 -0
  439. /package/{es → dist}/route/routes.d.ts +0 -0
  440. /package/{es → dist}/stores/enum/index.d.ts +0 -0
  441. /package/{es → dist}/stores/helper.d.ts +0 -0
  442. /package/{es → dist}/stores/index.d.ts +0 -0
  443. /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
  444. /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
  445. /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
  446. /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
  447. /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
  448. /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
  449. /package/{es → dist}/utils/cleanup.d.ts +0 -0
  450. /package/{es → dist}/utils/crypto.d.ts +0 -0
  451. /package/{es → dist}/utils/eventBus.d.ts +0 -0
  452. /package/{es → dist}/utils/index.d.ts +0 -0
  453. /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
  454. /package/{es → dist}/utils/storage.d.ts +0 -0
  455. /package/{es → dist}/utils/utils.d.ts +0 -0
  456. /package/{es → dist}/utils/watermark.d.ts +0 -0
@@ -1,8 +0,0 @@
1
- /**
2
- * 清理所有 store 中的状态
3
- */
4
- export declare function cleanup(): void;
5
- /**
6
- * 清理 userStore 以外的所有 store 状态
7
- */
8
- export declare function cleanupWithoutUser(): void;
@@ -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>;
@@ -1,5 +0,0 @@
1
- interface MittTypes {
2
- [key: PropertyKey]: any;
3
- }
4
- declare const _default: import('mitt').Emitter<MittTypes>;
5
- export default _default;
@@ -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';
@@ -1,2 +0,0 @@
1
- import { InjectionKey } from 'vue';
2
- export declare function createInjectionKey<T = any>(key: string): InjectionKey<T>;
@@ -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;
@@ -1,3 +0,0 @@
1
- type AsyncFlatten<T extends unknown[]> = T extends (infer U)[] ? Exclude<Awaited<U>, U[]>[] : never;
2
- export declare function asyncFlatten<T extends unknown[]>(arr: T): Promise<AsyncFlatten<T>>;
3
- export {};
@@ -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,34 +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;
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