@fmdevui/fm-dev 1.0.34 → 1.0.36

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 (352) hide show
  1. package/es/core/api/base/index.d.ts +2 -0
  2. package/es/core/api/index.d.ts +1 -0
  3. package/es/core/index.d.ts +0 -1
  4. package/es/defaults.css +1 -0
  5. package/es/index.d.ts +1 -3
  6. package/es/index.mjs +2 -3
  7. package/es/packages/core/api/base/index.mjs +20 -0
  8. package/es/packages/core/api/index.mjs +2 -0
  9. package/es/packages/core/index.mjs +2 -1
  10. package/es/packages/core/stores/themeConfig.mjs +2 -2
  11. package/es/packages/core/stores/userInfo.mjs +1 -0
  12. package/index.css +0 -116
  13. package/index.js +44647 -59321
  14. package/index.min.css +0 -10
  15. package/index.min.js +43 -93
  16. package/index.min.mjs +43 -93
  17. package/index.mjs +44645 -59313
  18. package/lib/core/api/base/index.d.ts +2 -0
  19. package/lib/core/api/index.d.ts +1 -0
  20. package/lib/core/index.d.ts +0 -1
  21. package/lib/index.css +0 -11
  22. package/lib/index.d.ts +1 -3
  23. package/lib/index.js +56 -65
  24. package/lib/packages/core/api/base/index.js +20 -0
  25. package/lib/packages/core/api/index.js +1 -0
  26. package/lib/packages/core/index.js +1 -5
  27. package/lib/packages/core/stores/themeConfig.js +2 -2
  28. package/lib/packages/core/stores/userInfo.js +1 -0
  29. package/package.json +1 -1
  30. package/theme-chalk/index.css +1 -1
  31. package/theme-chalk/src/index.scss +1 -8
  32. package/es/component.css +0 -11
  33. package/es/core/layout/component/aside.vue.d.ts +0 -5
  34. package/es/core/layout/component/columnsAside.vue.d.ts +0 -5
  35. package/es/core/layout/component/header.vue.d.ts +0 -3
  36. package/es/core/layout/component/main.vue.d.ts +0 -7
  37. package/es/core/layout/component/style/css.d.ts +0 -1
  38. package/es/core/layout/component/style/index.d.ts +0 -1
  39. package/es/core/layout/footer/index.vue.d.ts +0 -3
  40. package/es/core/layout/footer/style/css.d.ts +0 -1
  41. package/es/core/layout/footer/style/index.d.ts +0 -1
  42. package/es/core/layout/index.d.ts +0 -14
  43. package/es/core/layout/layout.vue.d.ts +0 -3
  44. package/es/core/layout/lockScreen/index.vue.d.ts +0 -6
  45. package/es/core/layout/lockScreen/style/css.d.ts +0 -1
  46. package/es/core/layout/lockScreen/style/index.d.ts +0 -1
  47. package/es/core/layout/logo/index.vue.d.ts +0 -3
  48. package/es/core/layout/logo/style/css.d.ts +0 -1
  49. package/es/core/layout/logo/style/index.d.ts +0 -1
  50. package/es/core/layout/main/classic.vue.d.ts +0 -18
  51. package/es/core/layout/main/columns.vue.d.ts +0 -19
  52. package/es/core/layout/main/defaults.vue.d.ts +0 -19
  53. package/es/core/layout/main/transverse.vue.d.ts +0 -18
  54. package/es/core/layout/navBars/index.vue.d.ts +0 -3
  55. package/es/core/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -28
  56. package/es/core/layout/navBars/tagsView/style/css.d.ts +0 -1
  57. package/es/core/layout/navBars/tagsView/style/index.d.ts +0 -1
  58. package/es/core/layout/navBars/tagsView/tagsView.vue.d.ts +0 -45
  59. package/es/core/layout/navBars/topBar/breadcrumb.vue.d.ts +0 -3
  60. package/es/core/layout/navBars/topBar/changePassword.vue.d.ts +0 -7
  61. package/es/core/layout/navBars/topBar/closeFull.vue.d.ts +0 -3
  62. package/es/core/layout/navBars/topBar/index.vue.d.ts +0 -3
  63. package/es/core/layout/navBars/topBar/onlineuser.vue.d.ts +0 -30
  64. package/es/core/layout/navBars/topBar/search.vue.d.ts +0 -7
  65. package/es/core/layout/navBars/topBar/sendMessage.vue.d.ts +0 -11
  66. package/es/core/layout/navBars/topBar/settings.vue.d.ts +0 -8
  67. package/es/core/layout/navBars/topBar/style/css.d.ts +0 -1
  68. package/es/core/layout/navBars/topBar/style/index.d.ts +0 -1
  69. package/es/core/layout/navBars/topBar/upgradeInfo.vue.d.ts +0 -5
  70. package/es/core/layout/navBars/topBar/user.vue.d.ts +0 -81
  71. package/es/core/layout/navBars/topBar/userNews.vue.d.ts +0 -9
  72. package/es/core/layout/navMenu/horizontal.vue.d.ts +0 -42
  73. package/es/core/layout/navMenu/style/css.d.ts +0 -1
  74. package/es/core/layout/navMenu/style/index.d.ts +0 -1
  75. package/es/core/layout/navMenu/subItem.vue.d.ts +0 -42
  76. package/es/core/layout/navMenu/vertical.vue.d.ts +0 -42
  77. package/es/core/layout/routerView/iframes.vue.d.ts +0 -35
  78. package/es/core/layout/routerView/parent.vue.d.ts +0 -3
  79. package/es/core/layout/routerView/style/css.d.ts +0 -1
  80. package/es/core/layout/routerView/style/index.d.ts +0 -1
  81. package/es/core/layout/upgrade/style/css.d.ts +0 -1
  82. package/es/core/layout/upgrade/style/index.d.ts +0 -1
  83. package/es/core/utils/comm/sysInfo.d.ts +0 -2
  84. package/es/core/utils/other/index.d.ts +0 -69
  85. package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css.mjs +0 -3
  86. package/es/packages/core/layout/component/aside.vue.mjs +0 -5
  87. package/es/packages/core/layout/component/aside.vue2.mjs +0 -173
  88. package/es/packages/core/layout/component/columnsAside.vue.mjs +0 -7
  89. package/es/packages/core/layout/component/columnsAside.vue2.mjs +0 -270
  90. package/es/packages/core/layout/component/columnsAside.vue3.mjs +0 -3
  91. package/es/packages/core/layout/component/header.vue.mjs +0 -5
  92. package/es/packages/core/layout/component/header.vue2.mjs +0 -34
  93. package/es/packages/core/layout/component/main.vue.mjs +0 -5
  94. package/es/packages/core/layout/component/main.vue2.mjs +0 -84
  95. package/es/packages/core/layout/component/style/css.mjs +0 -1
  96. package/es/packages/core/layout/component/style/index.mjs +0 -1
  97. package/es/packages/core/layout/footer/index.vue.mjs +0 -5
  98. package/es/packages/core/layout/footer/index.vue2.mjs +0 -29
  99. package/es/packages/core/layout/footer/style/css.mjs +0 -1
  100. package/es/packages/core/layout/footer/style/index.mjs +0 -1
  101. package/es/packages/core/layout/index.mjs +0 -13
  102. package/es/packages/core/layout/layout.vue.mjs +0 -5
  103. package/es/packages/core/layout/layout.vue2.mjs +0 -60
  104. package/es/packages/core/layout/lockScreen/index.vue.mjs +0 -7
  105. package/es/packages/core/layout/lockScreen/index.vue2.mjs +0 -420
  106. package/es/packages/core/layout/lockScreen/index.vue3.mjs +0 -3
  107. package/es/packages/core/layout/lockScreen/style/css.mjs +0 -1
  108. package/es/packages/core/layout/lockScreen/style/index.mjs +0 -1
  109. package/es/packages/core/layout/logo/index.vue.mjs +0 -5
  110. package/es/packages/core/layout/logo/index.vue2.mjs +0 -57
  111. package/es/packages/core/layout/logo/style/css.mjs +0 -1
  112. package/es/packages/core/layout/logo/style/index.mjs +0 -1
  113. package/es/packages/core/layout/main/classic.vue.mjs +0 -5
  114. package/es/packages/core/layout/main/classic.vue2.mjs +0 -94
  115. package/es/packages/core/layout/main/columns.vue.mjs +0 -5
  116. package/es/packages/core/layout/main/columns.vue2.mjs +0 -107
  117. package/es/packages/core/layout/main/defaults.vue.mjs +0 -5
  118. package/es/packages/core/layout/main/defaults.vue2.mjs +0 -103
  119. package/es/packages/core/layout/main/transverse.vue.mjs +0 -5
  120. package/es/packages/core/layout/main/transverse.vue2.mjs +0 -74
  121. package/es/packages/core/layout/navBars/index.vue.mjs +0 -7
  122. package/es/packages/core/layout/navBars/index.vue2.mjs +0 -31
  123. package/es/packages/core/layout/navBars/index.vue3.mjs +0 -3
  124. package/es/packages/core/layout/navBars/tagsView/contextmenu.vue.mjs +0 -7
  125. package/es/packages/core/layout/navBars/tagsView/contextmenu.vue2.mjs +0 -155
  126. package/es/packages/core/layout/navBars/tagsView/contextmenu.vue3.mjs +0 -3
  127. package/es/packages/core/layout/navBars/tagsView/style/css.mjs +0 -1
  128. package/es/packages/core/layout/navBars/tagsView/style/index.mjs +0 -1
  129. package/es/packages/core/layout/navBars/tagsView/tagsView.vue.mjs +0 -5
  130. package/es/packages/core/layout/navBars/tagsView/tagsView.vue2.mjs +0 -555
  131. package/es/packages/core/layout/navBars/topBar/breadcrumb.vue.mjs +0 -7
  132. package/es/packages/core/layout/navBars/topBar/breadcrumb.vue2.mjs +0 -172
  133. package/es/packages/core/layout/navBars/topBar/breadcrumb.vue3.mjs +0 -3
  134. package/es/packages/core/layout/navBars/topBar/changePassword.vue.mjs +0 -5
  135. package/es/packages/core/layout/navBars/topBar/changePassword.vue2.mjs +0 -264
  136. package/es/packages/core/layout/navBars/topBar/closeFull.vue.mjs +0 -5
  137. package/es/packages/core/layout/navBars/topBar/closeFull.vue2.mjs +0 -34
  138. package/es/packages/core/layout/navBars/topBar/index.vue.mjs +0 -5
  139. package/es/packages/core/layout/navBars/topBar/index.vue2.mjs +0 -103
  140. package/es/packages/core/layout/navBars/topBar/onlineuser.vue.mjs +0 -7
  141. package/es/packages/core/layout/navBars/topBar/onlineuser.vue2.mjs +0 -408
  142. package/es/packages/core/layout/navBars/topBar/onlineuser.vue3.mjs +0 -3
  143. package/es/packages/core/layout/navBars/topBar/search.vue.mjs +0 -5
  144. package/es/packages/core/layout/navBars/topBar/search.vue2.mjs +0 -118
  145. package/es/packages/core/layout/navBars/topBar/sendMessage.vue.mjs +0 -5
  146. package/es/packages/core/layout/navBars/topBar/sendMessage.vue2.mjs +0 -207
  147. package/es/packages/core/layout/navBars/topBar/settings.vue.mjs +0 -7
  148. package/es/packages/core/layout/navBars/topBar/settings.vue2.mjs +0 -1901
  149. package/es/packages/core/layout/navBars/topBar/settings.vue3.mjs +0 -3
  150. package/es/packages/core/layout/navBars/topBar/style/css.mjs +0 -1
  151. package/es/packages/core/layout/navBars/topBar/style/index.mjs +0 -1
  152. package/es/packages/core/layout/navBars/topBar/upgradeInfo.vue.mjs +0 -5
  153. package/es/packages/core/layout/navBars/topBar/upgradeInfo.vue2.mjs +0 -72
  154. package/es/packages/core/layout/navBars/topBar/user.vue.mjs +0 -5
  155. package/es/packages/core/layout/navBars/topBar/user.vue2.mjs +0 -683
  156. package/es/packages/core/layout/navBars/topBar/userNews.vue.mjs +0 -7
  157. package/es/packages/core/layout/navBars/topBar/userNews.vue2.mjs +0 -233
  158. package/es/packages/core/layout/navBars/topBar/userNews.vue3.mjs +0 -3
  159. package/es/packages/core/layout/navMenu/horizontal.vue.mjs +0 -5
  160. package/es/packages/core/layout/navMenu/horizontal.vue2.mjs +0 -181
  161. package/es/packages/core/layout/navMenu/style/css.mjs +0 -1
  162. package/es/packages/core/layout/navMenu/style/index.mjs +0 -1
  163. package/es/packages/core/layout/navMenu/subItem.vue.mjs +0 -5
  164. package/es/packages/core/layout/navMenu/subItem.vue2.mjs +0 -110
  165. package/es/packages/core/layout/navMenu/vertical.vue.mjs +0 -5
  166. package/es/packages/core/layout/navMenu/vertical.vue2.mjs +0 -161
  167. package/es/packages/core/layout/routerView/iframes.vue.mjs +0 -5
  168. package/es/packages/core/layout/routerView/iframes.vue2.mjs +0 -124
  169. package/es/packages/core/layout/routerView/link.vue.mjs +0 -5
  170. package/es/packages/core/layout/routerView/link.vue2.mjs +0 -84
  171. package/es/packages/core/layout/routerView/parent.vue.mjs +0 -5
  172. package/es/packages/core/layout/routerView/parent.vue2.mjs +0 -139
  173. package/es/packages/core/layout/routerView/style/css.mjs +0 -1
  174. package/es/packages/core/layout/routerView/style/index.mjs +0 -1
  175. package/es/packages/core/layout/upgrade/index.vue.mjs +0 -5
  176. package/es/packages/core/layout/upgrade/index.vue2.mjs +0 -152
  177. package/es/packages/core/layout/upgrade/style/css.mjs +0 -1
  178. package/es/packages/core/layout/upgrade/style/index.mjs +0 -1
  179. package/es/packages/core/ui/components/editor/index.vue.mjs +0 -6
  180. package/es/packages/core/ui/components/editor/index.vue2.mjs +0 -145
  181. package/es/packages/core/ui/components/editor/index.vue3.mjs +0 -3
  182. package/es/packages/core/utils/comm/sysInfo.mjs +0 -54
  183. package/es/packages/core/utils/other/index.mjs +0 -136
  184. package/lib/core/layout/component/aside.vue.d.ts +0 -5
  185. package/lib/core/layout/component/columnsAside.vue.d.ts +0 -5
  186. package/lib/core/layout/component/header.vue.d.ts +0 -3
  187. package/lib/core/layout/component/main.vue.d.ts +0 -7
  188. package/lib/core/layout/component/style/css.d.ts +0 -1
  189. package/lib/core/layout/component/style/index.d.ts +0 -1
  190. package/lib/core/layout/footer/index.vue.d.ts +0 -3
  191. package/lib/core/layout/footer/style/css.d.ts +0 -1
  192. package/lib/core/layout/footer/style/index.d.ts +0 -1
  193. package/lib/core/layout/index.d.ts +0 -14
  194. package/lib/core/layout/layout.vue.d.ts +0 -3
  195. package/lib/core/layout/lockScreen/index.vue.d.ts +0 -6
  196. package/lib/core/layout/lockScreen/style/css.d.ts +0 -1
  197. package/lib/core/layout/lockScreen/style/index.d.ts +0 -1
  198. package/lib/core/layout/logo/index.vue.d.ts +0 -3
  199. package/lib/core/layout/logo/style/css.d.ts +0 -1
  200. package/lib/core/layout/logo/style/index.d.ts +0 -1
  201. package/lib/core/layout/main/classic.vue.d.ts +0 -18
  202. package/lib/core/layout/main/columns.vue.d.ts +0 -19
  203. package/lib/core/layout/main/defaults.vue.d.ts +0 -19
  204. package/lib/core/layout/main/transverse.vue.d.ts +0 -18
  205. package/lib/core/layout/navBars/index.vue.d.ts +0 -3
  206. package/lib/core/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -28
  207. package/lib/core/layout/navBars/tagsView/style/css.d.ts +0 -1
  208. package/lib/core/layout/navBars/tagsView/style/index.d.ts +0 -1
  209. package/lib/core/layout/navBars/tagsView/tagsView.vue.d.ts +0 -45
  210. package/lib/core/layout/navBars/topBar/breadcrumb.vue.d.ts +0 -3
  211. package/lib/core/layout/navBars/topBar/changePassword.vue.d.ts +0 -7
  212. package/lib/core/layout/navBars/topBar/closeFull.vue.d.ts +0 -3
  213. package/lib/core/layout/navBars/topBar/index.vue.d.ts +0 -3
  214. package/lib/core/layout/navBars/topBar/onlineuser.vue.d.ts +0 -30
  215. package/lib/core/layout/navBars/topBar/search.vue.d.ts +0 -7
  216. package/lib/core/layout/navBars/topBar/sendMessage.vue.d.ts +0 -11
  217. package/lib/core/layout/navBars/topBar/settings.vue.d.ts +0 -8
  218. package/lib/core/layout/navBars/topBar/style/css.d.ts +0 -1
  219. package/lib/core/layout/navBars/topBar/style/index.d.ts +0 -1
  220. package/lib/core/layout/navBars/topBar/upgradeInfo.vue.d.ts +0 -5
  221. package/lib/core/layout/navBars/topBar/user.vue.d.ts +0 -81
  222. package/lib/core/layout/navBars/topBar/userNews.vue.d.ts +0 -9
  223. package/lib/core/layout/navMenu/horizontal.vue.d.ts +0 -42
  224. package/lib/core/layout/navMenu/style/css.d.ts +0 -1
  225. package/lib/core/layout/navMenu/style/index.d.ts +0 -1
  226. package/lib/core/layout/navMenu/subItem.vue.d.ts +0 -42
  227. package/lib/core/layout/navMenu/vertical.vue.d.ts +0 -42
  228. package/lib/core/layout/routerView/iframes.vue.d.ts +0 -35
  229. package/lib/core/layout/routerView/parent.vue.d.ts +0 -3
  230. package/lib/core/layout/routerView/style/css.d.ts +0 -1
  231. package/lib/core/layout/routerView/style/index.d.ts +0 -1
  232. package/lib/core/layout/upgrade/style/css.d.ts +0 -1
  233. package/lib/core/layout/upgrade/style/index.d.ts +0 -1
  234. package/lib/core/utils/comm/sysInfo.d.ts +0 -2
  235. package/lib/core/utils/other/index.d.ts +0 -69
  236. package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css.js +0 -7
  237. package/lib/packages/core/layout/component/aside.vue.js +0 -9
  238. package/lib/packages/core/layout/component/aside.vue2.js +0 -177
  239. package/lib/packages/core/layout/component/columnsAside.vue.js +0 -11
  240. package/lib/packages/core/layout/component/columnsAside.vue2.js +0 -274
  241. package/lib/packages/core/layout/component/columnsAside.vue3.js +0 -7
  242. package/lib/packages/core/layout/component/header.vue.js +0 -9
  243. package/lib/packages/core/layout/component/header.vue2.js +0 -38
  244. package/lib/packages/core/layout/component/main.vue.js +0 -9
  245. package/lib/packages/core/layout/component/main.vue2.js +0 -88
  246. package/lib/packages/core/layout/component/style/css.js +0 -4
  247. package/lib/packages/core/layout/component/style/index.js +0 -4
  248. package/lib/packages/core/layout/footer/index.vue.js +0 -9
  249. package/lib/packages/core/layout/footer/index.vue2.js +0 -33
  250. package/lib/packages/core/layout/footer/style/css.js +0 -4
  251. package/lib/packages/core/layout/footer/style/index.js +0 -4
  252. package/lib/packages/core/layout/index.js +0 -18
  253. package/lib/packages/core/layout/layout.vue.js +0 -9
  254. package/lib/packages/core/layout/layout.vue2.js +0 -64
  255. package/lib/packages/core/layout/lockScreen/index.vue.js +0 -11
  256. package/lib/packages/core/layout/lockScreen/index.vue2.js +0 -424
  257. package/lib/packages/core/layout/lockScreen/index.vue3.js +0 -7
  258. package/lib/packages/core/layout/lockScreen/style/css.js +0 -4
  259. package/lib/packages/core/layout/lockScreen/style/index.js +0 -4
  260. package/lib/packages/core/layout/logo/index.vue.js +0 -9
  261. package/lib/packages/core/layout/logo/index.vue2.js +0 -61
  262. package/lib/packages/core/layout/logo/style/css.js +0 -4
  263. package/lib/packages/core/layout/logo/style/index.js +0 -4
  264. package/lib/packages/core/layout/main/classic.vue.js +0 -9
  265. package/lib/packages/core/layout/main/classic.vue2.js +0 -98
  266. package/lib/packages/core/layout/main/columns.vue.js +0 -9
  267. package/lib/packages/core/layout/main/columns.vue2.js +0 -111
  268. package/lib/packages/core/layout/main/defaults.vue.js +0 -9
  269. package/lib/packages/core/layout/main/defaults.vue2.js +0 -107
  270. package/lib/packages/core/layout/main/transverse.vue.js +0 -9
  271. package/lib/packages/core/layout/main/transverse.vue2.js +0 -78
  272. package/lib/packages/core/layout/navBars/index.vue.js +0 -11
  273. package/lib/packages/core/layout/navBars/index.vue2.js +0 -35
  274. package/lib/packages/core/layout/navBars/index.vue3.js +0 -7
  275. package/lib/packages/core/layout/navBars/tagsView/contextmenu.vue.js +0 -11
  276. package/lib/packages/core/layout/navBars/tagsView/contextmenu.vue2.js +0 -159
  277. package/lib/packages/core/layout/navBars/tagsView/contextmenu.vue3.js +0 -7
  278. package/lib/packages/core/layout/navBars/tagsView/style/css.js +0 -4
  279. package/lib/packages/core/layout/navBars/tagsView/style/index.js +0 -4
  280. package/lib/packages/core/layout/navBars/tagsView/tagsView.vue.js +0 -9
  281. package/lib/packages/core/layout/navBars/tagsView/tagsView.vue2.js +0 -559
  282. package/lib/packages/core/layout/navBars/topBar/breadcrumb.vue.js +0 -11
  283. package/lib/packages/core/layout/navBars/topBar/breadcrumb.vue2.js +0 -176
  284. package/lib/packages/core/layout/navBars/topBar/breadcrumb.vue3.js +0 -7
  285. package/lib/packages/core/layout/navBars/topBar/changePassword.vue.js +0 -9
  286. package/lib/packages/core/layout/navBars/topBar/changePassword.vue2.js +0 -268
  287. package/lib/packages/core/layout/navBars/topBar/closeFull.vue.js +0 -9
  288. package/lib/packages/core/layout/navBars/topBar/closeFull.vue2.js +0 -38
  289. package/lib/packages/core/layout/navBars/topBar/index.vue.js +0 -9
  290. package/lib/packages/core/layout/navBars/topBar/index.vue2.js +0 -107
  291. package/lib/packages/core/layout/navBars/topBar/onlineuser.vue.js +0 -11
  292. package/lib/packages/core/layout/navBars/topBar/onlineuser.vue2.js +0 -412
  293. package/lib/packages/core/layout/navBars/topBar/onlineuser.vue3.js +0 -7
  294. package/lib/packages/core/layout/navBars/topBar/search.vue.js +0 -9
  295. package/lib/packages/core/layout/navBars/topBar/search.vue2.js +0 -122
  296. package/lib/packages/core/layout/navBars/topBar/sendMessage.vue.js +0 -9
  297. package/lib/packages/core/layout/navBars/topBar/sendMessage.vue2.js +0 -211
  298. package/lib/packages/core/layout/navBars/topBar/settings.vue.js +0 -11
  299. package/lib/packages/core/layout/navBars/topBar/settings.vue2.js +0 -1905
  300. package/lib/packages/core/layout/navBars/topBar/settings.vue3.js +0 -7
  301. package/lib/packages/core/layout/navBars/topBar/style/css.js +0 -4
  302. package/lib/packages/core/layout/navBars/topBar/style/index.js +0 -4
  303. package/lib/packages/core/layout/navBars/topBar/upgradeInfo.vue.js +0 -9
  304. package/lib/packages/core/layout/navBars/topBar/upgradeInfo.vue2.js +0 -76
  305. package/lib/packages/core/layout/navBars/topBar/user.vue.js +0 -9
  306. package/lib/packages/core/layout/navBars/topBar/user.vue2.js +0 -687
  307. package/lib/packages/core/layout/navBars/topBar/userNews.vue.js +0 -11
  308. package/lib/packages/core/layout/navBars/topBar/userNews.vue2.js +0 -237
  309. package/lib/packages/core/layout/navBars/topBar/userNews.vue3.js +0 -7
  310. package/lib/packages/core/layout/navMenu/horizontal.vue.js +0 -9
  311. package/lib/packages/core/layout/navMenu/horizontal.vue2.js +0 -185
  312. package/lib/packages/core/layout/navMenu/style/css.js +0 -4
  313. package/lib/packages/core/layout/navMenu/style/index.js +0 -4
  314. package/lib/packages/core/layout/navMenu/subItem.vue.js +0 -9
  315. package/lib/packages/core/layout/navMenu/subItem.vue2.js +0 -114
  316. package/lib/packages/core/layout/navMenu/vertical.vue.js +0 -9
  317. package/lib/packages/core/layout/navMenu/vertical.vue2.js +0 -165
  318. package/lib/packages/core/layout/routerView/iframes.vue.js +0 -9
  319. package/lib/packages/core/layout/routerView/iframes.vue2.js +0 -128
  320. package/lib/packages/core/layout/routerView/link.vue.js +0 -9
  321. package/lib/packages/core/layout/routerView/link.vue2.js +0 -88
  322. package/lib/packages/core/layout/routerView/parent.vue.js +0 -9
  323. package/lib/packages/core/layout/routerView/parent.vue2.js +0 -143
  324. package/lib/packages/core/layout/routerView/style/css.js +0 -4
  325. package/lib/packages/core/layout/routerView/style/index.js +0 -4
  326. package/lib/packages/core/layout/upgrade/index.vue.js +0 -9
  327. package/lib/packages/core/layout/upgrade/index.vue2.js +0 -156
  328. package/lib/packages/core/layout/upgrade/style/css.js +0 -4
  329. package/lib/packages/core/layout/upgrade/style/index.js +0 -4
  330. package/lib/packages/core/ui/components/editor/index.vue.js +0 -10
  331. package/lib/packages/core/ui/components/editor/index.vue2.js +0 -149
  332. package/lib/packages/core/ui/components/editor/index.vue3.js +0 -7
  333. package/lib/packages/core/utils/comm/sysInfo.js +0 -57
  334. package/lib/packages/core/utils/other/index.js +0 -148
  335. package/theme-chalk/src/t-columsaside.scss +0 -98
  336. package/theme-chalk/src/t-layoutfooter.scss +0 -11
  337. package/theme-chalk/src/t-layoutlogo.scss +0 -44
  338. package/theme-chalk/src/t-layoutnavmenu.scss +0 -17
  339. package/theme-chalk/src/t-layoutroterview.scss +0 -45
  340. package/theme-chalk/src/t-layouttagsview.scss +0 -167
  341. package/theme-chalk/src/t-layouttpbar.scss +0 -340
  342. package/theme-chalk/src/t-layoutupgraded.scss +0 -64
  343. package/theme-chalk/src/t-lockscreen.scss +0 -152
  344. package/theme-chalk/t-t-columsaside.css +0 -1
  345. package/theme-chalk/t-t-layoutfooter.css +0 -1
  346. package/theme-chalk/t-t-layoutlogo.css +0 -1
  347. package/theme-chalk/t-t-layoutnavmenu.css +0 -1
  348. package/theme-chalk/t-t-layoutroterview.css +0 -1
  349. package/theme-chalk/t-t-layouttagsview.css +0 -1
  350. package/theme-chalk/t-t-layouttpbar.css +0 -1
  351. package/theme-chalk/t-t-layoutupgraded.css +0 -1
  352. package/theme-chalk/t-t-lockscreen.css +0 -1
@@ -1,172 +0,0 @@
1
- import { defineComponent, reactive, computed, onMounted, resolveComponent, createElementBlock, createCommentVNode, openBlock, createVNode, unref, withCtx, TransitionGroup, Fragment, renderList, createBlock, toDisplayString, withModifiers, createTextVNode } from 'vue';
2
- import { useRoute, useRouter, onBeforeRouteUpdate } from 'vue-router';
3
- import '../../../utils/index.mjs';
4
- import other from '../../../utils/other/index.mjs';
5
- import { storeToRefs } from 'pinia';
6
- import '../../../stores/index.mjs';
7
- import { useRoutesList } from '../../../stores/routesList.mjs';
8
- import { useThemeConfig } from '../../../stores/themeConfig.mjs';
9
- import { Local } from '../../../utils/storage/index.mjs';
10
-
11
- const _hoisted_1 = {
12
- key: 0,
13
- class: "layout-navbars-breadcrumb"
14
- };
15
- const _hoisted_2 = {
16
- key: 0,
17
- class: "layout-navbars-breadcrumb-span"
18
- };
19
- const _hoisted_3 = { key: 1 };
20
- const _hoisted_4 = { key: 2 };
21
- const _hoisted_5 = ["onClick"];
22
- var _sfc_main = /* @__PURE__ */ defineComponent({
23
- __name: "breadcrumb",
24
- setup(__props) {
25
- const stores = useRoutesList();
26
- const storesThemeConfig = useThemeConfig();
27
- const { themeConfig } = storeToRefs(storesThemeConfig);
28
- const { routesList } = storeToRefs(stores);
29
- const route = useRoute();
30
- const router = useRouter();
31
- const state = reactive({
32
- breadcrumbList: [],
33
- routeSplit: [],
34
- routeSplitFirst: "",
35
- routeSplitIndex: 1
36
- });
37
- const isShowBreadcrumb = computed(() => {
38
- initRouteSplit(route);
39
- const { layout, isBreadcrumb } = themeConfig.value;
40
- if (layout === "classic" || layout === "transverse") return false;
41
- else return isBreadcrumb ? true : false;
42
- });
43
- const onBreadcrumbClick = (v) => {
44
- const {
45
- redirect
46
- /*,path*/
47
- } = v;
48
- if (redirect) router.push(redirect);
49
- };
50
- const onThemeConfigChange = () => {
51
- themeConfig.value.isCollapse = !themeConfig.value.isCollapse;
52
- setLocalThemeConfig();
53
- };
54
- const setLocalThemeConfig = () => {
55
- Local.remove("themeConfig");
56
- Local.set("themeConfig", themeConfig.value);
57
- };
58
- const getBreadcrumbList = (arr) => {
59
- arr.forEach((item) => {
60
- state.routeSplit.forEach((v, k, arrs) => {
61
- if (state.routeSplitFirst === item.path) {
62
- state.routeSplitFirst += `/${arrs[state.routeSplitIndex]}`;
63
- !state.breadcrumbList.find((a) => a.path === item.path) && state.breadcrumbList.push(item);
64
- state.routeSplitIndex++;
65
- if (item.children) getBreadcrumbList(item.children);
66
- }
67
- });
68
- });
69
- };
70
- const initRouteSplit = (toRoute) => {
71
- if (!themeConfig.value.isBreadcrumb) return false;
72
- state.breadcrumbList = [];
73
- state.routeSplit = toRoute.path.split("/");
74
- state.routeSplit.shift();
75
- state.routeSplitFirst = `/${state.routeSplit[0]}`;
76
- state.routeSplitIndex = 1;
77
- getBreadcrumbList(routesList.value);
78
- if (toRoute.name === "home" || toRoute.name === "notFound" && state.breadcrumbList.length > 1) state.breadcrumbList.shift();
79
- if (state.breadcrumbList.length > 0) state.breadcrumbList[state.breadcrumbList.length - 1].meta.tagsViewName = other.setTagsViewNameI18n(route);
80
- };
81
- onMounted(() => {
82
- initRouteSplit(route);
83
- });
84
- onBeforeRouteUpdate((to) => {
85
- initRouteSplit(to);
86
- });
87
- return (_ctx, _cache) => {
88
- const _component_SvgIcon = resolveComponent("SvgIcon");
89
- const _component_el_breadcrumb_item = resolveComponent("el-breadcrumb-item");
90
- const _component_el_breadcrumb = resolveComponent("el-breadcrumb");
91
- return isShowBreadcrumb.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
92
- createVNode(_component_SvgIcon, {
93
- class: "layout-navbars-breadcrumb-icon",
94
- name: unref(themeConfig).isCollapse ? "ele-Expand" : "ele-Fold",
95
- size: 16,
96
- onClick: onThemeConfigChange
97
- }, null, 8, ["name"]),
98
- createVNode(_component_el_breadcrumb, { class: "layout-navbars-breadcrumb-hide" }, {
99
- default: withCtx(() => [
100
- createVNode(TransitionGroup, { name: "breadcrumb" }, {
101
- default: withCtx(() => [
102
- (openBlock(true), createElementBlock(
103
- Fragment,
104
- null,
105
- renderList(state.breadcrumbList, (v, k) => {
106
- return openBlock(), createBlock(
107
- _component_el_breadcrumb_item,
108
- {
109
- key: v.path
110
- },
111
- {
112
- default: withCtx(() => [
113
- k === state.breadcrumbList.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2, [
114
- unref(themeConfig).isBreadcrumbIcon ? (openBlock(), createBlock(_component_SvgIcon, {
115
- key: 0,
116
- name: v.meta.icon,
117
- class: "layout-navbars-breadcrumb-iconfont"
118
- }, null, 8, ["name"])) : createCommentVNode("v-if", true),
119
- v.meta.title ? (openBlock(), createElementBlock(
120
- "div",
121
- _hoisted_3,
122
- toDisplayString(_ctx.$t(`message.menu.${v.meta.title}`)),
123
- 1
124
- /* TEXT */
125
- )) : (openBlock(), createElementBlock(
126
- "div",
127
- _hoisted_4,
128
- toDisplayString(v.meta.tagsViewName),
129
- 1
130
- /* TEXT */
131
- ))
132
- ])) : (openBlock(), createElementBlock("a", {
133
- key: 1,
134
- onClick: withModifiers(($event) => onBreadcrumbClick(v), ["prevent"]),
135
- style: { "display": "flex" }
136
- }, [
137
- unref(themeConfig).isBreadcrumbIcon ? (openBlock(), createBlock(_component_SvgIcon, {
138
- key: 0,
139
- name: v.meta.icon,
140
- class: "layout-navbars-breadcrumb-iconfont"
141
- }, null, 8, ["name"])) : createCommentVNode("v-if", true),
142
- createTextVNode(
143
- toDisplayString(_ctx.$t(`message.menu.${v.meta.title}`)),
144
- 1
145
- /* TEXT */
146
- )
147
- ], 8, _hoisted_5))
148
- ]),
149
- _: 2
150
- /* DYNAMIC */
151
- },
152
- 1024
153
- /* DYNAMIC_SLOTS */
154
- );
155
- }),
156
- 128
157
- /* KEYED_FRAGMENT */
158
- ))
159
- ]),
160
- _: 1
161
- /* STABLE */
162
- })
163
- ]),
164
- _: 1
165
- /* STABLE */
166
- })
167
- ])) : createCommentVNode("v-if", true);
168
- };
169
- }
170
- });
171
-
172
- export { _sfc_main as default };
@@ -1,3 +0,0 @@
1
- var undefined$1 = undefined;
2
-
3
- export { undefined$1 as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './changePassword.vue2.mjs';
2
-
3
-
4
-
5
- export { _sfc_main as default };
@@ -1,264 +0,0 @@
1
- import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, toDisplayString, unref, createTextVNode } from 'vue';
2
- import { ElMessage } from 'element-plus';
3
- import { sm2 } from 'sm-crypto-v2';
4
- import '../../../api/index.mjs';
5
- import { useI18n } from 'vue-i18n';
6
- import { useSysApi } from '../../../api/sys/index.mjs';
7
- import { clearAccessTokens } from '../../../api/utils/request.mjs';
8
-
9
- const _hoisted_1 = { class: "changePassword-container" };
10
- const _hoisted_2 = { style: { "color": "#fff" } };
11
- const _hoisted_3 = { style: { "color": "red", "padding": "10px 10px", "background": "#faecd8", "margin-bottom": "30px" } };
12
- const _hoisted_4 = { class: "dialog-footer" };
13
- var _sfc_main = /* @__PURE__ */ defineComponent({
14
- __name: "changePassword",
15
- setup(__props, { expose: __expose }) {
16
- const { t } = useI18n();
17
- const ruleFormRef = ref();
18
- const state = reactive({
19
- isShowDialog: false,
20
- ruleForm: {},
21
- passwordNew2: ""
22
- });
23
- const openDialog = () => {
24
- state.isShowDialog = true;
25
- ruleFormRef.value?.resetFields();
26
- };
27
- const submit = () => {
28
- ruleFormRef.value?.validate(async (valid) => {
29
- if (!valid) return;
30
- var cpwd = { passwordOld: "", passwordNew: "" };
31
- var publicKey = window.__env__.VITE_SM_PUBLIC_KEY;
32
- if (publicKey == "") {
33
- var res = await useSysApi().getSmPublicKey();
34
- publicKey = window.__env__.VITE_SM_PUBLIC_KEY = res.data.result ?? "";
35
- }
36
- cpwd.passwordOld = sm2.doEncrypt(state.ruleForm.passwordOld, publicKey, 1);
37
- cpwd.passwordNew = sm2.doEncrypt(state.ruleForm.passwordNew, publicKey, 1);
38
- await useSysApi().changePwd(cpwd);
39
- ElMessage.success(t("message.list.passwordChangedNeedRelogin"));
40
- state.isShowDialog = false;
41
- clearAccessTokens();
42
- });
43
- };
44
- const validatePassword = (_rule, value, callback) => {
45
- if (state.passwordNew2 != state.ruleForm.passwordNew) {
46
- callback(new Error(t("message.list.passwordNotMatch")));
47
- } else {
48
- callback();
49
- }
50
- };
51
- const logout = () => {
52
- clearAccessTokens();
53
- };
54
- __expose({ openDialog });
55
- return (_ctx, _cache) => {
56
- const _component_ele_View = resolveComponent("ele-View");
57
- const _component_el_icon = resolveComponent("el-icon");
58
- const _component_ele_Bell = resolveComponent("ele-Bell");
59
- const _component_el_input = resolveComponent("el-input");
60
- const _component_el_form_item = resolveComponent("el-form-item");
61
- const _component_el_col = resolveComponent("el-col");
62
- const _component_el_row = resolveComponent("el-row");
63
- const _component_el_form = resolveComponent("el-form");
64
- const _component_el_button = resolveComponent("el-button");
65
- const _component_el_dialog = resolveComponent("el-dialog");
66
- return openBlock(), createElementBlock("div", _hoisted_1, [
67
- createVNode(_component_el_dialog, {
68
- modelValue: state.isShowDialog,
69
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.isShowDialog = $event),
70
- draggable: "",
71
- "close-on-click-modal": false,
72
- "close-on-press-escape": false,
73
- width: "700px",
74
- "show-close": false
75
- }, {
76
- header: withCtx(() => [
77
- createElementVNode("div", _hoisted_2, [
78
- createVNode(_component_el_icon, {
79
- size: "16",
80
- style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
81
- }, {
82
- default: withCtx(() => [
83
- createVNode(_component_ele_View)
84
- ]),
85
- _: 1
86
- /* STABLE */
87
- }),
88
- createElementVNode(
89
- "span",
90
- null,
91
- toDisplayString(unref(t)("message.list.changePassword")),
92
- 1
93
- /* TEXT */
94
- )
95
- ])
96
- ]),
97
- footer: withCtx(() => [
98
- createElementVNode("span", _hoisted_4, [
99
- createVNode(_component_el_button, {
100
- type: "danger",
101
- plain: "",
102
- onClick: logout
103
- }, {
104
- default: withCtx(() => [
105
- createTextVNode(
106
- toDisplayString(unref(t)("message.list.cancelButtonText")),
107
- 1
108
- /* TEXT */
109
- )
110
- ]),
111
- _: 1
112
- /* STABLE */
113
- }),
114
- createVNode(_component_el_button, {
115
- type: "primary",
116
- icon: "ele-CircleCheckFilled",
117
- onClick: submit
118
- }, {
119
- default: withCtx(() => [
120
- createTextVNode(
121
- toDisplayString(unref(t)("message.list.confirmButtonText")),
122
- 1
123
- /* TEXT */
124
- )
125
- ]),
126
- _: 1
127
- /* STABLE */
128
- })
129
- ])
130
- ]),
131
- default: withCtx(() => [
132
- createElementVNode("div", _hoisted_3, [
133
- createVNode(_component_el_icon, { style: { "transform": "translateY(2px)" } }, {
134
- default: withCtx(() => [
135
- createVNode(_component_ele_Bell)
136
- ]),
137
- _: 1
138
- /* STABLE */
139
- }),
140
- createElementVNode(
141
- "span",
142
- null,
143
- toDisplayString(unref(t)("message.list.passwordPolicy")),
144
- 1
145
- /* TEXT */
146
- )
147
- ]),
148
- createVNode(_component_el_form, {
149
- model: state.ruleForm,
150
- ref_key: "ruleFormRef",
151
- ref: ruleFormRef,
152
- "label-width": "auto"
153
- }, {
154
- default: withCtx(() => [
155
- createVNode(_component_el_row, { gutter: 10 }, {
156
- default: withCtx(() => [
157
- createVNode(_component_el_col, {
158
- xs: 24,
159
- sm: 24,
160
- md: 24,
161
- lg: 24,
162
- xl: 24,
163
- class: "mb20"
164
- }, {
165
- default: withCtx(() => [
166
- createVNode(_component_el_form_item, {
167
- label: unref(t)("message.list.currentPassword"),
168
- prop: "passwordOld",
169
- rules: [{ required: true, message: unref(t)("message.list.currentPasswordRequired"), trigger: "blur" }]
170
- }, {
171
- default: withCtx(() => [
172
- createVNode(_component_el_input, {
173
- modelValue: state.ruleForm.passwordOld,
174
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.ruleForm.passwordOld = $event),
175
- type: "password",
176
- autocomplete: "off",
177
- "show-password": ""
178
- }, null, 8, ["modelValue"])
179
- ]),
180
- _: 1
181
- /* STABLE */
182
- }, 8, ["label", "rules"])
183
- ]),
184
- _: 1
185
- /* STABLE */
186
- }),
187
- createVNode(_component_el_col, {
188
- xs: 24,
189
- sm: 24,
190
- md: 24,
191
- lg: 24,
192
- xl: 24,
193
- class: "mb20"
194
- }, {
195
- default: withCtx(() => [
196
- createVNode(_component_el_form_item, {
197
- label: unref(t)("message.list.newPassword"),
198
- prop: "passwordNew",
199
- rules: [{ required: true, message: unref(t)("message.list.newPasswordRequired"), trigger: "blur" }]
200
- }, {
201
- default: withCtx(() => [
202
- createVNode(_component_el_input, {
203
- modelValue: state.ruleForm.passwordNew,
204
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.ruleForm.passwordNew = $event),
205
- type: "password",
206
- autocomplete: "off",
207
- "show-password": ""
208
- }, null, 8, ["modelValue"])
209
- ]),
210
- _: 1
211
- /* STABLE */
212
- }, 8, ["label", "rules"])
213
- ]),
214
- _: 1
215
- /* STABLE */
216
- }),
217
- createVNode(_component_el_col, {
218
- xs: 24,
219
- sm: 24,
220
- md: 24,
221
- lg: 24,
222
- xl: 24,
223
- class: "mb20"
224
- }, {
225
- default: withCtx(() => [
226
- createVNode(_component_el_form_item, {
227
- label: unref(t)("message.list.confirmPassword"),
228
- prop: "passwordNew2",
229
- rules: [{ validator: validatePassword, required: true, trigger: "blur" }]
230
- }, {
231
- default: withCtx(() => [
232
- createVNode(_component_el_input, {
233
- modelValue: state.passwordNew2,
234
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => state.passwordNew2 = $event),
235
- type: "password",
236
- autocomplete: "off",
237
- "show-password": ""
238
- }, null, 8, ["modelValue"])
239
- ]),
240
- _: 1
241
- /* STABLE */
242
- }, 8, ["label", "rules"])
243
- ]),
244
- _: 1
245
- /* STABLE */
246
- })
247
- ]),
248
- _: 1
249
- /* STABLE */
250
- })
251
- ]),
252
- _: 1
253
- /* STABLE */
254
- }, 8, ["model"])
255
- ]),
256
- _: 1
257
- /* STABLE */
258
- }, 8, ["modelValue"])
259
- ]);
260
- };
261
- }
262
- });
263
-
264
- export { _sfc_main as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './closeFull.vue2.mjs';
2
-
3
-
4
-
5
- export { _sfc_main as default };
@@ -1,34 +0,0 @@
1
- import { defineComponent, resolveComponent, createElementBlock, createCommentVNode, unref, openBlock, createElementVNode, createVNode } from 'vue';
2
- import { storeToRefs } from 'pinia';
3
- import '../../../stores/index.mjs';
4
- import { useTagsViewRoutes } from '../../../stores/tagsViewRoutes.mjs';
5
-
6
- const _hoisted_1 = {
7
- key: 0,
8
- class: "layout-navbars-close-full"
9
- };
10
- const _hoisted_2 = { class: "layout-navbars-close-full-icon" };
11
- var _sfc_main = /* @__PURE__ */ defineComponent({
12
- __name: "closeFull",
13
- setup(__props) {
14
- const stores = useTagsViewRoutes();
15
- const { isTagsViewCurrenFull } = storeToRefs(stores);
16
- const onCloseFullscreen = () => {
17
- stores.setCurrenFullscreen(false);
18
- };
19
- return (_ctx, _cache) => {
20
- const _component_SvgIcon = resolveComponent("SvgIcon");
21
- return unref(isTagsViewCurrenFull) ? (openBlock(), createElementBlock("div", _hoisted_1, [
22
- createElementVNode("div", _hoisted_2, [
23
- createVNode(_component_SvgIcon, {
24
- name: "ele-Close",
25
- title: _ctx.$t("message.tagsView.closeFullscreen"),
26
- onClick: onCloseFullscreen
27
- }, null, 8, ["title"])
28
- ])
29
- ])) : createCommentVNode("v-if", true);
30
- };
31
- }
32
- });
33
-
34
- export { _sfc_main as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './index.vue2.mjs';
2
-
3
-
4
-
5
- export { _sfc_main as default };
@@ -1,103 +0,0 @@
1
- import { defineComponent, reactive, computed, onMounted, onUnmounted, createElementBlock, openBlock, createBlock, createCommentVNode, createVNode, unref } from 'vue';
2
- import { useRoute } from 'vue-router';
3
- import { storeToRefs } from 'pinia';
4
- import '../../../stores/index.mjs';
5
- import emitter from '../../../utils/emit/index.mjs';
6
- import breadcrumb from './breadcrumb.vue.mjs';
7
- import './user.vue.mjs';
8
- import '../../logo/index.vue.mjs';
9
- import '../../navMenu/horizontal.vue.mjs';
10
- import _sfc_main$1 from './user.vue2.mjs';
11
- import _sfc_main$2 from '../../logo/index.vue2.mjs';
12
- import _sfc_main$3 from '../../navMenu/horizontal.vue2.mjs';
13
- import { useRoutesList } from '../../../stores/routesList.mjs';
14
- import { useThemeConfig } from '../../../stores/themeConfig.mjs';
15
-
16
- const _hoisted_1 = { class: "layout-navbars-breadcrumb-index" };
17
- var _sfc_main = /* @__PURE__ */ defineComponent({
18
- __name: "index",
19
- setup(__props) {
20
- const Breadcrumb = breadcrumb;
21
- const User = _sfc_main$1;
22
- const Logo = _sfc_main$2;
23
- const Horizontal = _sfc_main$3;
24
- const stores = useRoutesList();
25
- const storesThemeConfig = useThemeConfig();
26
- const { themeConfig } = storeToRefs(storesThemeConfig);
27
- const { routesList } = storeToRefs(stores);
28
- const route = useRoute();
29
- const state = reactive({
30
- menuList: []
31
- });
32
- const setIsShowLogo = computed(() => {
33
- let { isShowLogo, layout } = themeConfig.value;
34
- return isShowLogo && layout === "classic" || isShowLogo && layout === "transverse";
35
- });
36
- const isLayoutTransverse = computed(() => {
37
- let { layout, isClassicSplitMenu } = themeConfig.value;
38
- return layout === "transverse" || isClassicSplitMenu && layout === "classic";
39
- });
40
- const setFilterRoutes = () => {
41
- let { layout, isClassicSplitMenu } = themeConfig.value;
42
- if (layout === "classic" && isClassicSplitMenu) {
43
- state.menuList = delClassicChildren(filterRoutesFun(routesList.value));
44
- const resData = setSendClassicChildren(route.path);
45
- emitter.emit("setSendClassicChildren", resData);
46
- } else {
47
- state.menuList = filterRoutesFun(routesList.value);
48
- }
49
- };
50
- const delClassicChildren = (arr) => {
51
- arr.map((v) => {
52
- if (v.children) delete v.children;
53
- });
54
- return arr;
55
- };
56
- const filterRoutesFun = (arr) => {
57
- return arr.filter((item) => !item.meta?.isHide).map((item) => {
58
- item = Object.assign({}, item);
59
- if (item.children) item.children = filterRoutesFun(item.children);
60
- return item;
61
- });
62
- };
63
- const setSendClassicChildren = (path) => {
64
- const currentPathSplit = path.split("/");
65
- const currentData = { children: [], item: void 0 };
66
- const matched = filterRoutesFun(routesList.value).find((v, k) => {
67
- if (v.path === `/${currentPathSplit[1]}`) {
68
- v.k = k;
69
- return true;
70
- }
71
- return false;
72
- });
73
- if (matched) {
74
- currentData.item = { ...matched };
75
- currentData.children = matched.children ? [...matched.children] : [{ ...matched }];
76
- }
77
- return currentData;
78
- };
79
- onMounted(() => {
80
- setFilterRoutes();
81
- emitter.on("getBreadcrumbIndexSetFilterRoutes", () => {
82
- setFilterRoutes();
83
- });
84
- });
85
- onUnmounted(() => {
86
- emitter.off("getBreadcrumbIndexSetFilterRoutes", () => {
87
- });
88
- });
89
- return (_ctx, _cache) => {
90
- return openBlock(), createElementBlock("div", _hoisted_1, [
91
- setIsShowLogo.value ? (openBlock(), createBlock(unref(Logo), { key: 0 })) : createCommentVNode("v-if", true),
92
- createVNode(unref(Breadcrumb)),
93
- isLayoutTransverse.value ? (openBlock(), createBlock(unref(Horizontal), {
94
- key: 1,
95
- menuList: state.menuList
96
- }, null, 8, ["menuList"])) : createCommentVNode("v-if", true),
97
- createVNode(unref(User))
98
- ]);
99
- };
100
- }
101
- });
102
-
103
- export { _sfc_main as default };
@@ -1,7 +0,0 @@
1
- import _sfc_main from './onlineuser.vue2.mjs';
2
- import './onlineuser.vue3.mjs';
3
- import _export_sfc from '../../../../../_virtual/_plugin-vue_export-helper.mjs';
4
-
5
- var onlineusercom = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-51e01af9"]]);
6
-
7
- export { onlineusercom as default };