smart-admin-web 10.15.0 → 10.20.0

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 (432) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.d.ts +4 -2
  3. package/dist/api/index.js +1 -1
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +39 -5
  6. package/dist/assets/icons/ph-subset.json.js +5 -5
  7. package/dist/components/AppIcon.vue.js +9 -9
  8. package/dist/components/AppIcon.vue.js.map +1 -1
  9. package/dist/components/AppWatermark.vue.d.ts +14 -0
  10. package/dist/components/AppWatermark.vue.js +38 -0
  11. package/dist/components/AppWatermark.vue.js.map +1 -0
  12. package/dist/components/AppWatermark2.vue.js +5 -0
  13. package/dist/components/AppWatermark2.vue.js.map +1 -0
  14. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  15. package/dist/components/Chart/echarts.js +15 -20
  16. package/dist/components/Chart/echarts.js.map +1 -1
  17. package/dist/components/CronEditor/index.vue.js +1 -1
  18. package/dist/components/CronEditor/index2.vue.js +2 -1
  19. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  20. package/dist/components/DetailPage/index.vue.js +2 -2
  21. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  22. package/dist/components/DictTag/index.vue.js.map +1 -1
  23. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  24. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  25. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  26. package/dist/components/FormContainer/index.vue.js +91 -56
  27. package/dist/components/FormContainer/index.vue.js.map +1 -1
  28. package/dist/components/ImportWizard/index.vue.js +1 -1
  29. package/dist/components/ImportWizard/index2.vue.js +44 -41
  30. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  31. package/dist/components/MenuSearch.vue.js +2 -2
  32. package/dist/components/MenuSearch2.vue.js +19 -18
  33. package/dist/components/MenuSearch2.vue.js.map +1 -1
  34. package/dist/components/PasswordStrength/index.vue.js +2 -2
  35. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  36. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  37. package/dist/components/TableTotal/index.vue.d.ts +6 -0
  38. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  39. package/dist/components/TableTotal/index2.vue.js +16 -0
  40. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  41. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  42. package/dist/components/UserPicker/index.vue.js +2 -2
  43. package/dist/components/UserPicker/index2.vue.js +176 -117
  44. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  45. package/dist/composables/useBatchDelete.js.map +1 -1
  46. package/dist/composables/useLayoutMenu.js +17 -16
  47. package/dist/composables/useLayoutMenu.js.map +1 -1
  48. package/dist/composables/useModule.js +39 -29
  49. package/dist/composables/useModule.js.map +1 -1
  50. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  51. package/dist/composables/useShellBreakpoint.js +37 -0
  52. package/dist/composables/useShellBreakpoint.js.map +1 -0
  53. package/dist/composables/useSite.d.ts +15 -0
  54. package/dist/composables/useSite.js +16 -14
  55. package/dist/composables/useSite.js.map +1 -1
  56. package/dist/composables/useTabTitle.js.map +1 -1
  57. package/dist/composables/useTableTitle.d.ts +6 -0
  58. package/dist/composables/useTableTitle.js +11 -0
  59. package/dist/composables/useTableTitle.js.map +1 -0
  60. package/dist/composables/useTableZoom.d.ts +5 -0
  61. package/dist/composables/useTableZoom.js.map +1 -1
  62. package/dist/composables/useTheme.d.ts +2 -2
  63. package/dist/composables/useTheme.js +23 -20
  64. package/dist/composables/useTheme.js.map +1 -1
  65. package/dist/createSmartAdmin.d.ts +12 -2
  66. package/dist/createSmartAdmin.js +72 -60
  67. package/dist/createSmartAdmin.js.map +1 -1
  68. package/dist/index.d.ts +5 -2
  69. package/dist/index.js +219 -205
  70. package/dist/index.js.map +1 -1
  71. package/dist/layouts/AccentPicker.vue.js +8 -0
  72. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  73. package/dist/layouts/AccentPicker2.vue.js +131 -0
  74. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  75. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  76. package/dist/layouts/AppHeader.vue.js +2 -2
  77. package/dist/layouts/AppHeader2.vue.js +317 -235
  78. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  79. package/dist/layouts/NoticeBell.vue.js +2 -2
  80. package/dist/layouts/NoticeBell2.vue.js +1 -1
  81. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  82. package/dist/layouts/PersonalLayout.vue.js +2 -2
  83. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  84. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  85. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  86. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  87. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  88. package/dist/layouts/TabsBar.vue.js +2 -2
  89. package/dist/layouts/TabsBar2.vue.js +97 -69
  90. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  91. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  92. package/dist/layouts/components/SideNav.vue.js +1 -1
  93. package/dist/layouts/components/SideNav2.vue.js +54 -26
  94. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  95. package/dist/layouts/default.vue.js +1 -1
  96. package/dist/layouts/default2.vue.js +170 -140
  97. package/dist/layouts/default2.vue.js.map +1 -1
  98. package/dist/lib/loginHero.d.ts +2 -2
  99. package/dist/lib/loginHero.js.map +1 -1
  100. package/dist/lib/runtime.js +1 -1
  101. package/dist/lib/watermark.d.ts +110 -0
  102. package/dist/lib/watermark.js +151 -0
  103. package/dist/lib/watermark.js.map +1 -0
  104. package/dist/locales/en-US.d.ts +221 -15
  105. package/dist/locales/en-US.js +230 -21
  106. package/dist/locales/en-US.js.map +1 -1
  107. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  108. package/dist/locales/kernelMenuTitles.js +128 -0
  109. package/dist/locales/kernelMenuTitles.js.map +1 -0
  110. package/dist/locales/menuTitle.d.ts +3 -0
  111. package/dist/locales/menuTitle.js +14 -12
  112. package/dist/locales/menuTitle.js.map +1 -1
  113. package/dist/locales/zh-CN.d.ts +221 -15
  114. package/dist/locales/zh-CN.js +238 -28
  115. package/dist/locales/zh-CN.js.map +1 -1
  116. package/dist/router/index.js +41 -32
  117. package/dist/router/index.js.map +1 -1
  118. package/dist/router/namedPage.d.ts +4 -0
  119. package/dist/router/namedPage.js +7 -7
  120. package/dist/router/namedPage.js.map +1 -1
  121. package/dist/router/viewRegistry.js +8 -8
  122. package/dist/router/viewRegistry.js.map +1 -1
  123. package/dist/stores/app.d.ts +0 -12
  124. package/dist/stores/app.js +11 -12
  125. package/dist/stores/app.js.map +1 -1
  126. package/dist/stores/tabs.js.map +1 -1
  127. package/dist/stores/user.d.ts +10 -0
  128. package/dist/stores/user.js.map +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/theme/accentTokens.d.ts +27 -0
  131. package/dist/theme/accentTokens.js +54 -0
  132. package/dist/theme/accentTokens.js.map +1 -0
  133. package/dist/theme/accents.d.ts +21 -1
  134. package/dist/theme/accents.js +11 -2
  135. package/dist/theme/accents.js.map +1 -1
  136. package/dist/theme/mix.d.ts +58 -7
  137. package/dist/theme/mix.js +115 -30
  138. package/dist/theme/mix.js.map +1 -1
  139. package/dist/theme/naive-theme.d.ts +5 -2
  140. package/dist/theme/naive-theme.js +405 -75
  141. package/dist/theme/naive-theme.js.map +1 -1
  142. package/dist/utils/jwt.d.ts +8 -0
  143. package/dist/utils/jwt.js +14 -0
  144. package/dist/utils/jwt.js.map +1 -0
  145. package/dist/utils/menuIcon.d.ts +2 -0
  146. package/dist/utils/menuIcon.js +8 -0
  147. package/dist/utils/menuIcon.js.map +1 -0
  148. package/dist/utils/oauthBrand.js.map +1 -1
  149. package/dist/utils/tableFilter.d.ts +88 -0
  150. package/dist/utils/tableFilter.js +116 -0
  151. package/dist/utils/tableFilter.js.map +1 -0
  152. package/dist/utils/tableToolbar.d.ts +18 -0
  153. package/dist/utils/tableToolbar.js +11 -0
  154. package/dist/utils/tableToolbar.js.map +1 -0
  155. package/dist/utils/treeFilter.d.ts +20 -0
  156. package/dist/utils/treeFilter.js +24 -0
  157. package/dist/utils/treeFilter.js.map +1 -0
  158. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  159. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  160. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  161. package/dist/views/dashboard/biz.vue.js +1 -1
  162. package/dist/views/dashboard/biz2.vue.js +310 -257
  163. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  164. package/dist/views/dashboard/workbench.vue.js +2 -2
  165. package/dist/views/dashboard/workbench2.vue.js +141 -155
  166. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  167. package/dist/views/embed/iframe.vue.js +2 -2
  168. package/dist/views/embed/iframe2.vue.js +22 -15
  169. package/dist/views/embed/iframe2.vue.js.map +1 -1
  170. package/dist/views/error/404.vue.js +2 -2
  171. package/dist/views/error/4042.vue.js +33 -24
  172. package/dist/views/error/4042.vue.js.map +1 -1
  173. package/dist/views/error/BootError.vue.js +1 -1
  174. package/dist/views/error/BootError2.vue.js +59 -48
  175. package/dist/views/error/BootError2.vue.js.map +1 -1
  176. package/dist/views/error/MissingRoute.vue.js +2 -2
  177. package/dist/views/error/MissingRoute2.vue.js +34 -15
  178. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  179. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  180. package/dist/views/login/LoginForm.vue.js +2 -2
  181. package/dist/views/login/LoginForm2.vue.js +580 -488
  182. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  183. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  184. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  185. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  186. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  187. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  188. package/dist/views/login/components/LoginHeroPanel.vue.js +3 -3
  189. package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
  190. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
  191. package/dist/views/login/index.vue.js +1 -1
  192. package/dist/views/login/index2.vue.js +141 -71
  193. package/dist/views/login/index2.vue.js.map +1 -1
  194. package/dist/views/login/layout.d.ts +11 -0
  195. package/dist/views/login/layout.js +27 -0
  196. package/dist/views/login/layout.js.map +1 -0
  197. package/dist/views/mfa/index.vue.js +2 -2
  198. package/dist/views/mfa/index2.vue.js +367 -321
  199. package/dist/views/mfa/index2.vue.js.map +1 -1
  200. package/dist/views/module/index.vue.js +2 -2
  201. package/dist/views/module/index2.vue.js +132 -99
  202. package/dist/views/module/index2.vue.js.map +1 -1
  203. package/dist/views/oauth/callback.vue.js +2 -2
  204. package/dist/views/oauth/callback2.vue.js +65 -51
  205. package/dist/views/oauth/callback2.vue.js.map +1 -1
  206. package/dist/views/personal/bindings.vue.js +2 -2
  207. package/dist/views/personal/bindings2.vue.js +98 -94
  208. package/dist/views/personal/bindings2.vue.js.map +1 -1
  209. package/dist/views/personal/notice2.vue.js +103 -76
  210. package/dist/views/personal/notice2.vue.js.map +1 -1
  211. package/dist/views/personal/password2.vue.js +47 -40
  212. package/dist/views/personal/password2.vue.js.map +1 -1
  213. package/dist/views/personal/profile.vue.js +3 -3
  214. package/dist/views/personal/profile2.vue.js +24 -18
  215. package/dist/views/personal/profile2.vue.js.map +1 -1
  216. package/dist/views/personal/security.vue.js +2 -2
  217. package/dist/views/personal/security2.vue.js +65 -53
  218. package/dist/views/personal/security2.vue.js.map +1 -1
  219. package/dist/views/personal/sessions.vue.js +2 -2
  220. package/dist/views/personal/sessions2.vue.js +67 -62
  221. package/dist/views/personal/sessions2.vue.js.map +1 -1
  222. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  223. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  224. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  225. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  226. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  227. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  228. package/dist/views/system/ai-model/index.vue.js +2 -2
  229. package/dist/views/system/ai-model/index2.vue.js +99 -99
  230. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  231. package/dist/views/system/ai-model/presets.d.ts +1 -1
  232. package/dist/views/system/ai-model/presets.js +18 -18
  233. package/dist/views/system/ai-model/presets.js.map +1 -1
  234. package/dist/views/system/ai-usage/index.vue.js +2 -2
  235. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  236. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  237. package/dist/views/system/api-docs/index.vue.js +5 -2
  238. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  239. package/dist/views/system/api-docs/index2.vue.js +92 -42
  240. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  241. package/dist/views/system/cache/index.vue.js +2 -2
  242. package/dist/views/system/cache/index2.vue.js +74 -80
  243. package/dist/views/system/cache/index2.vue.js.map +1 -1
  244. package/dist/views/system/config/components/AdminMock.vue.js +2 -2
  245. package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
  246. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
  247. package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
  248. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
  249. package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
  250. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
  251. package/dist/views/system/config/components/BrandSection.vue.js +2 -2
  252. package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
  253. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
  254. package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
  255. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
  256. package/dist/views/system/config/components/CfgRow.vue.js +1 -1
  257. package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
  258. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
  259. package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
  260. package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
  261. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
  262. package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
  263. package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
  264. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  265. package/dist/views/system/config/components/JobSection.vue.js +2 -2
  266. package/dist/views/system/config/components/JobSection2.vue.js +46 -44
  267. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
  268. package/dist/views/system/config/components/LoginMock.vue.js +3 -3
  269. package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
  270. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
  272. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
  273. package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
  274. package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
  275. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
  276. package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
  277. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
  278. package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
  279. package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
  280. package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
  281. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
  282. package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
  283. package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
  284. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
  285. package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
  286. package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
  287. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
  288. package/dist/views/system/config/components/UploadSection.vue.js +2 -2
  289. package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
  290. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
  291. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  292. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  293. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  294. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  295. package/dist/views/system/config/draft.d.ts +2 -2
  296. package/dist/views/system/config/draft.js.map +1 -1
  297. package/dist/views/system/config/groups.d.ts +4 -1
  298. package/dist/views/system/config/groups.js +54 -49
  299. package/dist/views/system/config/groups.js.map +1 -1
  300. package/dist/views/system/config/index.vue.js +3 -2
  301. package/dist/views/system/config/index.vue.js.map +1 -1
  302. package/dist/views/system/config/index2.vue.js +173 -148
  303. package/dist/views/system/config/index2.vue.js.map +1 -1
  304. package/dist/views/system/config/layoutMode.d.ts +23 -0
  305. package/dist/views/system/config/layoutMode.js +28 -0
  306. package/dist/views/system/config/layoutMode.js.map +1 -0
  307. package/dist/views/system/dict/index.vue.js +2 -2
  308. package/dist/views/system/dict/index2.vue.js +471 -366
  309. package/dist/views/system/dict/index2.vue.js.map +1 -1
  310. package/dist/views/system/file/index2.vue.js +91 -76
  311. package/dist/views/system/file/index2.vue.js.map +1 -1
  312. package/dist/views/system/job/index.vue.js +3 -3
  313. package/dist/views/system/job/index2.vue.js +897 -828
  314. package/dist/views/system/job/index2.vue.js.map +1 -1
  315. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  316. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  317. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  318. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  319. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  320. package/dist/views/system/job-log/index.vue.js +2 -2
  321. package/dist/views/system/job-log/index2.vue.js +193 -207
  322. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  323. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  324. package/dist/views/system/job-log/runStatus.js +26 -0
  325. package/dist/views/system/job-log/runStatus.js.map +1 -0
  326. package/dist/views/system/job-monitor/index.vue.js +2 -2
  327. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  328. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  329. package/dist/views/system/log/exception/index.vue.js +2 -2
  330. package/dist/views/system/log/exception/index2.vue.js +135 -96
  331. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  332. package/dist/views/system/log/login/index2.vue.js +62 -41
  333. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  334. package/dist/views/system/log/op/index.vue.js +2 -2
  335. package/dist/views/system/log/op/index2.vue.js +200 -162
  336. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  337. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  338. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  339. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  340. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  341. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  342. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  343. package/dist/views/system/menu/index.vue.js +1 -1
  344. package/dist/views/system/menu/index2.vue.js +216 -183
  345. package/dist/views/system/menu/index2.vue.js.map +1 -1
  346. package/dist/views/system/module/index.vue.js +1 -1
  347. package/dist/views/system/module/index2.vue.js +177 -144
  348. package/dist/views/system/module/index2.vue.js.map +1 -1
  349. package/dist/views/system/monitor/index.vue.js +2 -2
  350. package/dist/views/system/monitor/index2.vue.js +134 -149
  351. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  352. package/dist/views/system/notice/index.vue.js +1 -1
  353. package/dist/views/system/notice/index2.vue.js +209 -181
  354. package/dist/views/system/notice/index2.vue.js.map +1 -1
  355. package/dist/views/system/org/index.vue.js +1 -1
  356. package/dist/views/system/org/index2.vue.js +278 -248
  357. package/dist/views/system/org/index2.vue.js.map +1 -1
  358. package/dist/views/system/position/index.vue.js +5 -2
  359. package/dist/views/system/position/index.vue.js.map +1 -1
  360. package/dist/views/system/position/index2.vue.js +128 -92
  361. package/dist/views/system/position/index2.vue.js.map +1 -1
  362. package/dist/views/system/recycle/index.vue.js +2 -2
  363. package/dist/views/system/recycle/index2.vue.js +90 -67
  364. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  365. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  366. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  367. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  368. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  369. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  370. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  371. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  372. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  373. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  374. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  375. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  376. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  377. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  378. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  379. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  380. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  381. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  382. package/dist/views/system/role/index.vue.js +5 -2
  383. package/dist/views/system/role/index.vue.js.map +1 -1
  384. package/dist/views/system/role/index2.vue.js +181 -165
  385. package/dist/views/system/role/index2.vue.js.map +1 -1
  386. package/dist/views/system/session/index2.vue.js +75 -49
  387. package/dist/views/system/session/index2.vue.js.map +1 -1
  388. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  389. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  390. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  391. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  392. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  393. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  394. package/dist/views/system/user/index.vue.js +2 -2
  395. package/dist/views/system/user/index2.vue.js +362 -275
  396. package/dist/views/system/user/index2.vue.js.map +1 -1
  397. package/package.json +3 -5
  398. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  399. package/dist/components/SelectTable/index2.vue.js +0 -256
  400. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  401. package/dist/composables/useTableRowSort.d.ts +0 -20
  402. package/dist/composables/useTableRowSort.js +0 -59
  403. package/dist/composables/useTableRowSort.js.map +0 -1
  404. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  405. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  406. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  407. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  408. package/dist/layouts/SettingRow.vue.d.ts +0 -16
  409. package/dist/layouts/SettingRow.vue.js +0 -8
  410. package/dist/layouts/SettingRow.vue.js.map +0 -1
  411. package/dist/layouts/SettingRow2.vue.js +0 -23
  412. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  413. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  414. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  415. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  416. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  417. package/dist/views/login/skins/SplitPanel.vue.d.ts +0 -3
  418. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  419. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  420. package/dist/views/login/skins/SplitPanel2.vue.js +0 -65
  421. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  422. package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
  423. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  424. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  425. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  426. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  427. package/dist/views/login/skins.d.ts +0 -8
  428. package/dist/views/login/skins.js +0 -13
  429. package/dist/views/login/skins.js.map +0 -1
  430. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  431. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  432. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/WatermarkSection.vue.d.ts} +0 -0
@@ -1,366 +1,392 @@
1
- import { defineComponent as Y, ref as d, reactive as Z, computed as ee, onMounted as te, resolveDirective as oe, openBlock as N, createElementBlock as le, createVNode as a, unref as t, withCtx as r, withDirectives as ie, createBlock as O, createTextVNode as v, toDisplayString as f, createCommentVNode as ne, createElementVNode as E, h as y } from "vue";
2
- import { useMessage as ae, NButton as U, NForm as re, NFormItem as m, NSelect as h, NInput as x, NDynamicInput as ce, NCheckbox as P, NText as se, NModal as ue, NTag as pe, NSpace as de, NPopconfirm as me } from "naive-ui";
3
- import { useI18n as ve } from "vue-i18n";
4
- import { SmartTable as fe } from "smart-naive-table";
5
- import ye from "../../../components/AppIcon.vue.js";
6
- import he from "../../../components/FormContainer/index.vue.js";
1
+ import { defineComponent as ie, ref as m, computed as k, h as s, reactive as ne, onMounted as ae, resolveDirective as re, openBlock as _, createElementBlock as ce, createVNode as a, unref as e, withCtx as r, withDirectives as se, createBlock as z, createTextVNode as f, toDisplayString as y, mergeProps as ue, normalizeStyle as q, createCommentVNode as pe, createElementVNode as $ } from "vue";
2
+ import { useMessage as de, NTag as me, NSpace as ve, NButton as U, NPopconfirm as fe, NForm as ye, NFormItem as v, NSelect as h, NInput as A, NDynamicInput as he, NCheckbox as B, NText as be, NModal as ge } from "naive-ui";
3
+ import { useMediaQuery as we } from "@vueuse/core";
4
+ import { useI18n as Te } from "vue-i18n";
5
+ import { SmartTable as Ne } from "smart-naive-table";
6
+ import ke from "../../../components/AppIcon.vue.js";
7
+ import _e from "../../../components/FormContainer/index.vue.js";
7
8
  /* empty css */
8
- import be from "../../../components/MarkdownEditor/index.vue.js";
9
- import ge from "../../../components/MarkdownEditor/MarkdownView.vue.js";
10
- import { useConfirm as we } from "../../../composables/useConfirm.js";
11
- import { useAuthStore as Te } from "../../../stores/auth.js";
12
- import { roleApi as ke, userApi as Ne, noticeApi as _ } from "../../../api/index.js";
13
- import { NoticeType as p, ReceiverType as s } from "../../../types/api.js";
14
- import { isSiteRelativeUrl as Ue } from "../../../lib/noticeActions.js";
15
- import { translateError as M } from "../../../utils/error.js";
16
- import { fmtDateTime as xe } from "../../../utils/format.js";
17
- const _e = { class: "fill-page" }, Ae = { class: "notice-actions-editor" }, Se = { class: "notice-action-row" }, Ie = 5, Xe = /* @__PURE__ */ Y({
9
+ import Ue from "../../../components/MarkdownEditor/index.vue.js";
10
+ import Ae from "../../../components/MarkdownEditor/MarkdownView.vue.js";
11
+ import { useConfirm as Se } from "../../../composables/useConfirm.js";
12
+ import { useAuthStore as xe } from "../../../stores/auth.js";
13
+ import { noticeApi as S, roleApi as Ie, userApi as Oe } from "../../../api/index.js";
14
+ import { NoticeType as d, ReceiverType as u } from "../../../types/api.js";
15
+ import { isSiteRelativeUrl as Re } from "../../../lib/noticeActions.js";
16
+ import { translateError as D } from "../../../utils/error.js";
17
+ import { SEARCH_ACTIONS as Ce, deriveHeaderFilters as Ee } from "../../../utils/tableFilter.js";
18
+ import { TABLE_MIN_ROW_HEIGHT as Pe, TABLE_TOOLBAR as Me } from "../../../utils/tableToolbar.js";
19
+ import ze from "../../../components/TableTotal/index.vue.js";
20
+ import { fmtDateTime as qe } from "../../../utils/format.js";
21
+ const $e = { class: "fill-page" }, Be = { class: "notice-actions-editor" }, De = { class: "notice-action-row" }, Le = 5, st = /* @__PURE__ */ ie({
18
22
  __name: "index",
19
- setup(Ce) {
20
- const { t: e } = ve(), b = ae(), { run: z } = we(), D = Te(), g = d(), $ = (l) => l === p.Announcement ? e("notice.typeAnnouncement") : l === p.Message ? e("notice.typeMessage") : e("notice.typeNotice"), V = (l) => l === p.Announcement ? "warning" : l === p.Message ? "success" : "info", q = [
21
- { type: "index", title: () => e("common.rowNo"), width: 64, align: "center" },
22
- { key: "title", title: () => e("notice.noticeTitle"), search: !0 },
23
+ setup(Ve) {
24
+ const { t } = Te(), b = de(), { run: L } = Se(), V = xe(), g = m(), H = (o) => o === d.Announcement ? t("notice.typeAnnouncement") : o === d.Message ? t("notice.typeMessage") : t("notice.typeNotice"), x = we("(max-width: 640px)"), F = k(
25
+ () => x.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
26
+ ), I = k(() => x.value ? void 0 : "width: 160px"), G = (o) => (o ?? "").replace(/```/g, "").replace(/[#>*`]/g, "").replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\s+/g, " ").trim(), J = (o) => o === d.Announcement ? "warning" : o === d.Message ? "success" : "info", O = [
27
+ { type: "index", title: () => t("common.rowNo"), width: 64, align: "center" },
28
+ {
29
+ key: "title",
30
+ title: () => t("notice.noticeTitle"),
31
+ search: { actions: Ce.fuzzy },
32
+ render: (o) => s("span", { style: "font-weight: 500" }, o.title)
33
+ },
23
34
  {
24
35
  key: "type",
25
- title: () => e("notice.type"),
36
+ title: () => t("notice.type"),
26
37
  width: 90,
27
- render: (l) => y(pe, { size: "small", type: V(l.type), bordered: !1 }, () => $(l.type))
38
+ render: (o) => s(me, { size: "small", type: J(o.type), bordered: !1 }, () => H(o.type))
39
+ },
40
+ {
41
+ key: "content",
42
+ title: () => t("notice.content"),
43
+ ellipsis: { tooltip: !0 },
44
+ render: (o) => s("span", { class: "muted" }, G(o.content))
28
45
  },
29
- { key: "content", title: () => e("notice.content"), ellipsis: { tooltip: !0 } },
30
46
  {
31
47
  key: "actionsJson",
32
- title: () => e("notice.actions"),
48
+ title: () => t("notice.actions"),
33
49
  width: 100,
34
- render: (l) => {
35
- const o = F(l.actionsJson);
36
- return o ? e("notice.actionCount", { count: o }) : "—";
50
+ render: (o) => {
51
+ const l = K(o.actionsJson);
52
+ return l ? s("span", { class: "muted" }, t("notice.actionCount", { count: l })) : s("span", { class: "faint" }, "—");
37
53
  }
38
54
  },
39
55
  {
40
56
  key: "createTime",
41
- title: () => e("notice.publishTime"),
57
+ title: () => t("notice.publishTime"),
42
58
  width: 170,
43
- render: (l) => xe(l.createTime)
59
+ render: (o) => s("span", { class: "num muted", style: "white-space: nowrap" }, qe(o.createTime))
44
60
  },
45
61
  {
46
62
  key: "op",
47
- title: () => e("common.operation"),
63
+ title: () => t("common.operation"),
48
64
  width: 140,
65
+ align: "right",
49
66
  fixed: "right",
50
67
  hideInSetting: !0,
51
- render: (l) => y(de, { size: 4, wrapItem: !1 }, () => [
52
- y(
68
+ render: (o) => s(ve, { size: 2, justify: "end", wrapItem: !1 }, () => [
69
+ s(
53
70
  U,
54
- { size: "small", quaternary: !0, type: "primary", onClick: () => Q(l) },
55
- () => e("notice.view")
71
+ { size: "small", quaternary: !0, type: "primary", onClick: () => oe(o) },
72
+ () => t("notice.view")
56
73
  ),
57
- D.hasPerm("DELETE:/api/v1/sys/notice/{id}") ? y(
58
- me,
74
+ V.hasPerm("DELETE:/api/v1/sys/notice/{id}") ? s(
75
+ fe,
59
76
  {
60
- onPositiveClick: () => z(() => _.remove(l.id), e("notice.deleted")).then((o) => {
61
- var u;
62
- o && ((u = g.value) == null || u.refresh());
77
+ onPositiveClick: () => L(() => S.remove(o.id), t("notice.deleted")).then((l) => {
78
+ var p;
79
+ l && ((p = g.value) == null || p.refresh());
63
80
  })
64
81
  },
65
82
  {
66
- trigger: () => y(
83
+ trigger: () => s(
67
84
  U,
68
85
  { size: "small", quaternary: !0, type: "error" },
69
- () => e("common.delete")
86
+ () => t("common.delete")
70
87
  ),
71
- default: () => e("notice.deleteConfirm", { title: l.title })
88
+ default: () => t("notice.deleteConfirm", { title: o.title })
72
89
  }
73
90
  ) : null
74
91
  ])
75
92
  }
76
- ], w = d(!1), A = d(null), B = {
93
+ ];
94
+ Ee(O);
95
+ const w = m(!1), R = m(null), W = {
77
96
  title: {
78
97
  required: !0,
79
98
  whitespace: !0,
80
- message: () => e("notice.titleRequired"),
99
+ message: () => t("notice.titleRequired"),
81
100
  trigger: ["input", "blur"]
82
101
  },
83
102
  receiverIds: {
84
103
  // 定向发送必须选接收对象;全体广播无需(validator 读实时 form.receiverType)
85
104
  validator: () => {
86
- var l;
87
- return n.receiverType === s.All || (((l = n.receiverIds) == null ? void 0 : l.length) ?? 0) > 0;
105
+ var o;
106
+ return n.receiverType === u.All || (((o = n.receiverIds) == null ? void 0 : o.length) ?? 0) > 0;
88
107
  },
89
- message: () => e("notice.receiverRequired"),
108
+ message: () => t("notice.receiverRequired"),
90
109
  trigger: ["change", "blur"]
91
110
  },
92
111
  actions: {
93
112
  // 与后端同一条规则:文案非空、站内路径单个 / 开头;服务端仍会再校验一遍(45004)
94
- validator: () => n.actions.every((l) => l.label.trim() && Ue(l.url.trim())),
95
- message: () => e("error.notice.actionInvalid"),
113
+ validator: () => n.actions.every((o) => o.label.trim() && Re(o.url.trim())),
114
+ message: () => t("error.notice.actionInvalid"),
96
115
  trigger: ["input", "blur"]
97
116
  }
98
- }, S = () => ({
117
+ }, C = () => ({
99
118
  title: "",
100
119
  content: "",
101
- type: p.Notice,
102
- receiverType: s.All,
120
+ type: d.Notice,
121
+ receiverType: u.All,
103
122
  receiverIds: [],
104
123
  actions: []
105
- }), n = Z(S()), G = () => ({
124
+ }), n = ne(C()), j = () => ({
106
125
  label: "",
107
126
  method: "GET",
108
127
  url: "",
109
128
  style: "default",
110
129
  confirm: !1,
111
130
  comment: !1
112
- }), J = [
131
+ }), Q = [
113
132
  { label: "GET", value: "GET" },
114
133
  { label: "POST", value: "POST" }
115
- ], L = [
116
- { label: () => e("notice.actionStyleDefault"), value: "default" },
117
- { label: () => e("notice.actionStylePrimary"), value: "primary" },
118
- { label: () => e("notice.actionStyleError"), value: "error" }
134
+ ], X = [
135
+ { label: () => t("notice.actionStyleDefault"), value: "default" },
136
+ { label: () => t("notice.actionStylePrimary"), value: "primary" },
137
+ { label: () => t("notice.actionStyleError"), value: "error" }
119
138
  ];
120
- function F(l) {
121
- if (!l) return 0;
139
+ function K(o) {
140
+ if (!o) return 0;
122
141
  try {
123
- const o = JSON.parse(l);
124
- return Array.isArray(o) ? o.length : 0;
142
+ const l = JSON.parse(o);
143
+ return Array.isArray(l) ? l.length : 0;
125
144
  } catch {
126
145
  return 0;
127
146
  }
128
147
  }
129
- const H = [
130
- { label: () => e("notice.typeNotice"), value: p.Notice },
131
- { label: () => e("notice.typeAnnouncement"), value: p.Announcement },
132
- { label: () => e("notice.typeMessage"), value: p.Message }
133
- ], X = [
134
- { label: () => e("notice.receiverAll"), value: s.All },
135
- { label: () => e("notice.receiverRole"), value: s.Role },
136
- { label: () => e("notice.receiverUser"), value: s.User }
137
- ], I = d([]), C = d([]), j = ee(
138
- () => n.receiverType === s.Role ? I.value : n.receiverType === s.User ? C.value : []
148
+ const Y = [
149
+ { label: () => t("notice.typeNotice"), value: d.Notice },
150
+ { label: () => t("notice.typeAnnouncement"), value: d.Announcement },
151
+ { label: () => t("notice.typeMessage"), value: d.Message }
152
+ ], Z = [
153
+ { label: () => t("notice.receiverAll"), value: u.All },
154
+ { label: () => t("notice.receiverRole"), value: u.Role },
155
+ { label: () => t("notice.receiverUser"), value: u.User }
156
+ ], E = m([]), P = m([]), ee = k(
157
+ () => n.receiverType === u.Role ? E.value : n.receiverType === u.User ? P.value : []
139
158
  );
140
- te(async () => {
159
+ ae(async () => {
141
160
  try {
142
- const { items: l } = await ke.page({ page: 1, pageSize: 200 });
143
- I.value = l.map((o) => ({ label: o.name, value: o.id }));
161
+ const { items: o } = await Ie.page({ page: 1, pageSize: 200 });
162
+ E.value = o.map((l) => ({ label: l.name, value: l.id }));
144
163
  } catch {
145
164
  }
146
165
  try {
147
- const { items: l } = await Ne.page({ page: 1, pageSize: 200 });
148
- C.value = l.map((o) => ({ label: `${o.name}(${o.account})`, value: o.id }));
166
+ const { items: o } = await Oe.page({ page: 1, pageSize: 200 });
167
+ P.value = o.map((l) => ({ label: `${l.name}(${l.account})`, value: l.id }));
149
168
  } catch {
150
169
  }
151
170
  });
152
- function K() {
153
- Object.assign(n, S()), w.value = !0;
171
+ function te() {
172
+ Object.assign(n, C()), w.value = !0;
154
173
  }
155
- const T = d(!1), k = d(null);
156
- function Q(l) {
157
- k.value = l, T.value = !0;
174
+ const T = m(!1), N = m(null);
175
+ function oe(o) {
176
+ N.value = o, T.value = !0;
158
177
  }
159
- async function W() {
160
- var l, o;
161
- await ((l = A.value) == null ? void 0 : l.validate());
178
+ async function le() {
179
+ var o, l;
180
+ await ((o = R.value) == null ? void 0 : o.validate());
162
181
  try {
163
- const u = n.actions.length ? n.actions : void 0;
164
- await _.publish({ ...n, actions: u }), b.success(e("notice.published")), await ((o = g.value) == null ? void 0 : o.refresh());
165
- } catch (u) {
166
- return b.error(M(u)), !1;
182
+ const p = n.actions.length ? n.actions : void 0;
183
+ await S.publish({ ...n, actions: p }), b.success(t("notice.published")), await ((l = g.value) == null ? void 0 : l.refresh());
184
+ } catch (p) {
185
+ return b.error(D(p)), !1;
167
186
  }
168
187
  }
169
- return (l, o) => {
170
- var R;
171
- const u = oe("auth");
172
- return N(), le("div", _e, [
173
- a(t(fe), {
174
- "default-page-size": 100,
188
+ return (o, l) => {
189
+ var M;
190
+ const p = re("auth");
191
+ return _(), ce("div", $e, [
192
+ a(e(Ne), {
193
+ toolbar: e(Me),
175
194
  ref_key: "tableRef",
176
195
  ref: g,
177
- columns: q,
178
- fetcher: t(_).page,
179
- "flex-height": "",
180
- "virtual-scroll": "",
196
+ columns: O,
197
+ fetcher: e(S).page,
198
+ search: { container: "table" },
199
+ "fill-height": "",
200
+ "min-row-height": e(Pe),
201
+ "card-on-narrow": "",
181
202
  "storage-key": "sys-notice",
182
- onError: o[0] || (o[0] = (i) => t(b).error(t(M)(i)))
203
+ onError: l[0] || (l[0] = (i) => e(b).error(e(D)(i)))
183
204
  }, {
184
- toolbar: r(() => [
185
- ie((N(), O(t(U), {
205
+ "pagination-prefix": r(({ itemCount: i }) => [
206
+ a(ze, { count: i }, null, 8, ["count"])
207
+ ]),
208
+ "toolbar-right": r(() => [
209
+ se((_(), z(e(U), {
186
210
  type: "primary",
187
- onClick: K
211
+ onClick: te
188
212
  }, {
189
213
  icon: r(() => [
190
- a(ye, {
214
+ a(ke, {
191
215
  icon: "ph:megaphone",
192
216
  size: 16
193
217
  })
194
218
  ]),
195
219
  default: r(() => [
196
- v(" " + f(t(e)("notice.publish")), 1)
220
+ f(" " + y(e(t)("notice.publish")), 1)
197
221
  ]),
198
222
  _: 1
199
223
  })), [
200
- [u, "POST:/api/v1/sys/notice"]
224
+ [p, "POST:/api/v1/sys/notice"]
201
225
  ])
202
226
  ]),
203
227
  _: 1
204
- }, 8, ["fetcher"]),
205
- a(he, {
228
+ }, 8, ["toolbar", "fetcher", "min-row-height"]),
229
+ a(_e, {
206
230
  show: w.value,
207
- "onUpdate:show": o[8] || (o[8] = (i) => w.value = i),
208
- title: t(e)("notice.publishTitle"),
231
+ "onUpdate:show": l[8] || (l[8] = (i) => w.value = i),
232
+ title: e(t)("notice.publishTitle"),
209
233
  width: 820,
210
- "on-confirm": W,
211
- "confirm-text": t(e)("notice.publish")
234
+ "on-confirm": le,
235
+ "confirm-text": e(t)("notice.publish")
212
236
  }, {
213
237
  default: r(() => [
214
- a(t(re), {
238
+ a(e(ye), ue({
215
239
  ref_key: "formRef",
216
- ref: A,
240
+ ref: R,
217
241
  model: n,
218
- rules: B,
219
- "label-placement": "left",
220
- "label-width": 80
221
- }, {
242
+ rules: W,
243
+ "require-mark-placement": "left"
244
+ }, F.value), {
222
245
  default: r(() => [
223
- a(t(m), {
224
- label: t(e)("notice.type")
246
+ a(e(v), {
247
+ label: e(t)("notice.type"),
248
+ required: ""
225
249
  }, {
226
250
  default: r(() => [
227
- a(t(h), {
251
+ a(e(h), {
228
252
  value: n.type,
229
- "onUpdate:value": o[1] || (o[1] = (i) => n.type = i),
230
- options: H,
231
- style: { width: "160px" }
232
- }, null, 8, ["value"])
253
+ "onUpdate:value": l[1] || (l[1] = (i) => n.type = i),
254
+ options: Y,
255
+ style: q(I.value)
256
+ }, null, 8, ["value", "style"])
233
257
  ]),
234
258
  _: 1
235
259
  }, 8, ["label"]),
236
- a(t(m), {
237
- label: t(e)("notice.receiver")
260
+ a(e(v), {
261
+ label: e(t)("notice.receiver"),
262
+ required: ""
238
263
  }, {
239
264
  default: r(() => [
240
- a(t(h), {
265
+ a(e(h), {
241
266
  value: n.receiverType,
242
267
  "onUpdate:value": [
243
- o[2] || (o[2] = (i) => n.receiverType = i),
244
- o[3] || (o[3] = (i) => n.receiverIds = [])
268
+ l[2] || (l[2] = (i) => n.receiverType = i),
269
+ l[3] || (l[3] = (i) => n.receiverIds = [])
245
270
  ],
246
- options: X,
247
- style: { width: "160px" }
248
- }, null, 8, ["value"])
271
+ options: Z,
272
+ style: q(I.value)
273
+ }, null, 8, ["value", "style"])
249
274
  ]),
250
275
  _: 1
251
276
  }, 8, ["label"]),
252
- n.receiverType !== t(s).All ? (N(), O(t(m), {
277
+ n.receiverType !== e(u).All ? (_(), z(e(v), {
253
278
  key: 0,
254
279
  path: "receiverIds",
255
- label: n.receiverType === t(s).Role ? t(e)("notice.receiverRole") : t(e)("notice.receiverUser")
280
+ required: "",
281
+ label: n.receiverType === e(u).Role ? e(t)("notice.receiverRole") : e(t)("notice.receiverUser")
256
282
  }, {
257
283
  default: r(() => [
258
- a(t(h), {
284
+ a(e(h), {
259
285
  value: n.receiverIds,
260
- "onUpdate:value": o[4] || (o[4] = (i) => n.receiverIds = i),
261
- options: j.value,
286
+ "onUpdate:value": l[4] || (l[4] = (i) => n.receiverIds = i),
287
+ options: ee.value,
262
288
  multiple: "",
263
289
  filterable: "",
264
290
  clearable: "",
265
- placeholder: t(e)("notice.receiverPlaceholder")
291
+ placeholder: e(t)("notice.receiverPlaceholder")
266
292
  }, null, 8, ["value", "options", "placeholder"])
267
293
  ]),
268
294
  _: 1
269
- }, 8, ["label"])) : ne("", !0),
270
- a(t(m), {
271
- label: t(e)("notice.noticeTitle"),
295
+ }, 8, ["label"])) : pe("", !0),
296
+ a(e(v), {
297
+ label: e(t)("notice.noticeTitle"),
272
298
  path: "title"
273
299
  }, {
274
300
  default: r(() => [
275
- a(t(x), {
301
+ a(e(A), {
276
302
  value: n.title,
277
- "onUpdate:value": o[5] || (o[5] = (i) => n.title = i),
278
- placeholder: t(e)("notice.noticeTitle")
303
+ "onUpdate:value": l[5] || (l[5] = (i) => n.title = i),
304
+ placeholder: e(t)("notice.noticeTitle")
279
305
  }, null, 8, ["value", "placeholder"])
280
306
  ]),
281
307
  _: 1
282
308
  }, 8, ["label"]),
283
- a(t(m), {
284
- label: t(e)("notice.content")
309
+ a(e(v), {
310
+ label: e(t)("notice.content")
285
311
  }, {
286
312
  default: r(() => [
287
- a(be, {
313
+ a(Ue, {
288
314
  value: n.content,
289
- "onUpdate:value": o[6] || (o[6] = (i) => n.content = i)
315
+ "onUpdate:value": l[6] || (l[6] = (i) => n.content = i)
290
316
  }, null, 8, ["value"])
291
317
  ]),
292
318
  _: 1
293
319
  }, 8, ["label"]),
294
- a(t(m), {
295
- label: t(e)("notice.actions"),
320
+ a(e(v), {
321
+ label: e(t)("notice.actions"),
296
322
  path: "actions"
297
323
  }, {
298
324
  default: r(() => [
299
- E("div", Ae, [
300
- a(t(ce), {
325
+ $("div", Be, [
326
+ a(e(he), {
301
327
  value: n.actions,
302
- "onUpdate:value": o[7] || (o[7] = (i) => n.actions = i),
303
- max: Ie,
304
- "on-create": G,
328
+ "onUpdate:value": l[7] || (l[7] = (i) => n.actions = i),
329
+ max: Le,
330
+ "on-create": j,
305
331
  "item-style": "margin-bottom: 8px"
306
332
  }, {
307
333
  default: r(({ value: i }) => [
308
- E("div", Se, [
309
- a(t(x), {
334
+ $("div", De, [
335
+ a(e(A), {
310
336
  value: i.label,
311
337
  "onUpdate:value": (c) => i.label = c,
312
- placeholder: t(e)("notice.actionLabel"),
313
- style: { width: "150px" }
338
+ placeholder: e(t)("notice.actionLabel"),
339
+ class: "act-label"
314
340
  }, null, 8, ["value", "onUpdate:value", "placeholder"]),
315
- a(t(h), {
341
+ a(e(h), {
316
342
  value: i.method,
317
343
  "onUpdate:value": (c) => i.method = c,
318
- options: J,
344
+ options: Q,
319
345
  style: { width: "96px" }
320
346
  }, null, 8, ["value", "onUpdate:value"]),
321
- a(t(x), {
347
+ a(e(A), {
322
348
  value: i.url,
323
349
  "onUpdate:value": (c) => i.url = c,
324
- placeholder: t(e)("notice.actionUrl"),
325
- style: { flex: "1", "min-width": "180px" }
350
+ placeholder: e(t)("notice.actionUrl"),
351
+ class: "act-url mono"
326
352
  }, null, 8, ["value", "onUpdate:value", "placeholder"]),
327
- a(t(h), {
353
+ a(e(h), {
328
354
  value: i.style,
329
355
  "onUpdate:value": (c) => i.style = c,
330
- options: L,
356
+ options: X,
331
357
  style: { width: "96px" }
332
358
  }, null, 8, ["value", "onUpdate:value"]),
333
- a(t(P), {
359
+ a(e(B), {
334
360
  checked: i.confirm,
335
361
  "onUpdate:checked": (c) => i.confirm = c
336
362
  }, {
337
363
  default: r(() => [
338
- v(f(t(e)("notice.actionNeedConfirm")), 1)
364
+ f(y(e(t)("notice.actionNeedConfirm")), 1)
339
365
  ]),
340
366
  _: 1
341
367
  }, 8, ["checked", "onUpdate:checked"]),
342
- a(t(P), {
368
+ a(e(B), {
343
369
  checked: i.comment,
344
370
  "onUpdate:checked": (c) => i.comment = c
345
371
  }, {
346
372
  default: r(() => [
347
- v(f(t(e)("notice.actionNeedComment")), 1)
373
+ f(y(e(t)("notice.actionNeedComment")), 1)
348
374
  ]),
349
375
  _: 1
350
376
  }, 8, ["checked", "onUpdate:checked"])
351
377
  ])
352
378
  ]),
353
379
  "create-button-default": r(() => [
354
- v(f(t(e)("notice.actionAdd")), 1)
380
+ f(y(e(t)("notice.actionAdd")), 1)
355
381
  ]),
356
382
  _: 1
357
383
  }, 8, ["value"]),
358
- a(t(se), {
384
+ a(e(be), {
359
385
  depth: "3",
360
386
  class: "notice-actions-hint"
361
387
  }, {
362
388
  default: r(() => [
363
- v(f(t(e)("notice.actionsHint")), 1)
389
+ f(y(e(t)("notice.actionsHint")), 1)
364
390
  ]),
365
391
  _: 1
366
392
  })
@@ -370,22 +396,24 @@ const _e = { class: "fill-page" }, Ae = { class: "notice-actions-editor" }, Se =
370
396
  }, 8, ["label"])
371
397
  ]),
372
398
  _: 1
373
- }, 8, ["model"])
399
+ }, 16, ["model"])
374
400
  ]),
375
401
  _: 1
376
402
  }, 8, ["show", "title", "confirm-text"]),
377
- a(t(ue), {
403
+ a(e(ge), {
378
404
  show: T.value,
379
- "onUpdate:show": o[9] || (o[9] = (i) => T.value = i),
405
+ "onUpdate:show": l[9] || (l[9] = (i) => T.value = i),
380
406
  preset: "card",
381
- title: ((R = k.value) == null ? void 0 : R.title) || t(e)("notice.detailTitle"),
407
+ title: ((M = N.value) == null ? void 0 : M.title) || e(t)("notice.detailTitle"),
408
+ bordered: !1,
409
+ segmented: { content: !0 },
382
410
  style: { width: "720px", "max-width": "92vw" }
383
411
  }, {
384
412
  default: r(() => {
385
413
  var i;
386
414
  return [
387
- a(ge, {
388
- value: (i = k.value) == null ? void 0 : i.content
415
+ a(Ae, {
416
+ value: (i = N.value) == null ? void 0 : i.content
389
417
  }, null, 8, ["value"])
390
418
  ];
391
419
  }),
@@ -396,6 +424,6 @@ const _e = { class: "fill-page" }, Ae = { class: "notice-actions-editor" }, Se =
396
424
  }
397
425
  });
398
426
  export {
399
- Xe as default
427
+ st as default
400
428
  };
401
429
  //# sourceMappingURL=index2.vue.js.map