smart-admin-web 10.14.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 (538) hide show
  1. package/README.md +6 -6
  2. package/dist/api/index.d.ts +41 -2
  3. package/dist/api/index.js +36 -15
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +418 -6
  6. package/dist/assets/icons/ph-subset.json.js +7 -7
  7. package/dist/assets/smart-logo.svg.js +5 -0
  8. package/dist/assets/smart-logo.svg.js.map +1 -0
  9. package/dist/components/AppIcon.vue.js +9 -9
  10. package/dist/components/AppIcon.vue.js.map +1 -1
  11. package/dist/components/AppWatermark.vue.d.ts +14 -0
  12. package/dist/components/AppWatermark.vue.js +38 -0
  13. package/dist/components/AppWatermark.vue.js.map +1 -0
  14. package/dist/components/AppWatermark2.vue.js +5 -0
  15. package/dist/components/AppWatermark2.vue.js.map +1 -0
  16. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  17. package/dist/components/Chart/echarts.js +15 -20
  18. package/dist/components/Chart/echarts.js.map +1 -1
  19. package/dist/components/CronEditor/index.vue.js +1 -1
  20. package/dist/components/CronEditor/index2.vue.js +2 -1
  21. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  22. package/dist/components/DetailPage/index.vue.js +2 -2
  23. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  24. package/dist/components/DictTag/index.vue.js.map +1 -1
  25. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  26. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  27. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  28. package/dist/components/FormContainer/index.vue.js +91 -56
  29. package/dist/components/FormContainer/index.vue.js.map +1 -1
  30. package/dist/components/ImportWizard/index.vue.js +1 -1
  31. package/dist/components/ImportWizard/index2.vue.js +44 -41
  32. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  33. package/dist/components/MenuSearch.vue.js +2 -2
  34. package/dist/components/MenuSearch2.vue.js +19 -18
  35. package/dist/components/MenuSearch2.vue.js.map +1 -1
  36. package/dist/components/PasswordStrength/index.vue.js +2 -2
  37. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  38. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  39. package/dist/components/SmartLogo.vue.d.ts +3 -0
  40. package/dist/components/SmartLogo.vue.js +1 -1
  41. package/dist/components/SmartLogo2.vue.js +22 -64
  42. package/dist/components/SmartLogo2.vue.js.map +1 -1
  43. package/dist/{views/system/config/components/GroupExtraConfig.vue.d.ts → components/TableTotal/index.vue.d.ts} +1 -4
  44. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  45. package/dist/components/TableTotal/index2.vue.js +16 -0
  46. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  47. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  48. package/dist/components/UserPicker/index.vue.js +2 -2
  49. package/dist/components/UserPicker/index2.vue.js +176 -117
  50. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  51. package/dist/composables/useBatchDelete.js.map +1 -1
  52. package/dist/composables/useLayoutMenu.js +17 -16
  53. package/dist/composables/useLayoutMenu.js.map +1 -1
  54. package/dist/composables/useLoginHero.d.ts +2 -0
  55. package/dist/composables/useLoginHero.js +22 -0
  56. package/dist/composables/useLoginHero.js.map +1 -0
  57. package/dist/composables/useModule.js +39 -29
  58. package/dist/composables/useModule.js.map +1 -1
  59. package/dist/composables/usePageTitle.js +16 -14
  60. package/dist/composables/usePageTitle.js.map +1 -1
  61. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  62. package/dist/composables/useShellBreakpoint.js +37 -0
  63. package/dist/composables/useShellBreakpoint.js.map +1 -0
  64. package/dist/composables/useSite.d.ts +20 -0
  65. package/dist/composables/useSite.js +18 -13
  66. package/dist/composables/useSite.js.map +1 -1
  67. package/dist/composables/useTabTitle.js.map +1 -1
  68. package/dist/composables/useTableTitle.d.ts +6 -0
  69. package/dist/composables/useTableTitle.js +11 -0
  70. package/dist/composables/useTableTitle.js.map +1 -0
  71. package/dist/composables/useTableZoom.d.ts +5 -0
  72. package/dist/composables/useTableZoom.js.map +1 -1
  73. package/dist/composables/useTheme.d.ts +2 -2
  74. package/dist/composables/useTheme.js +23 -20
  75. package/dist/composables/useTheme.js.map +1 -1
  76. package/dist/createSmartAdmin.d.ts +12 -2
  77. package/dist/createSmartAdmin.js +72 -60
  78. package/dist/createSmartAdmin.js.map +1 -1
  79. package/dist/index.d.ts +5 -2
  80. package/dist/index.js +223 -208
  81. package/dist/index.js.map +1 -1
  82. package/dist/layouts/AccentPicker.vue.js +8 -0
  83. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  84. package/dist/layouts/AccentPicker2.vue.js +131 -0
  85. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  86. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  87. package/dist/layouts/AppHeader.vue.js +2 -2
  88. package/dist/layouts/AppHeader2.vue.js +317 -235
  89. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  90. package/dist/layouts/NoticeBell.vue.js +2 -2
  91. package/dist/layouts/NoticeBell2.vue.js +1 -1
  92. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  93. package/dist/layouts/PersonalLayout.vue.js +2 -2
  94. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  95. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  96. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  97. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  98. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  99. package/dist/layouts/TabsBar.vue.js +2 -2
  100. package/dist/layouts/TabsBar2.vue.js +97 -69
  101. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  102. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  103. package/dist/layouts/components/SideNav.vue.js +1 -1
  104. package/dist/layouts/components/SideNav2.vue.js +54 -26
  105. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  106. package/dist/layouts/default.vue.js +1 -1
  107. package/dist/layouts/default2.vue.js +170 -140
  108. package/dist/layouts/default2.vue.js.map +1 -1
  109. package/dist/lib/favicon.d.ts +1 -0
  110. package/dist/lib/favicon.js +12 -0
  111. package/dist/lib/favicon.js.map +1 -0
  112. package/dist/lib/loginHero.d.ts +16 -0
  113. package/dist/lib/loginHero.js +33 -0
  114. package/dist/lib/loginHero.js.map +1 -0
  115. package/dist/lib/logoCrop.d.ts +25 -0
  116. package/dist/lib/logoCrop.js +22 -0
  117. package/dist/lib/logoCrop.js.map +1 -0
  118. package/dist/lib/runtime.d.ts +2 -0
  119. package/dist/lib/runtime.js +1 -1
  120. package/dist/lib/runtime.js.map +1 -1
  121. package/dist/lib/securityRules.d.ts +26 -0
  122. package/dist/lib/securityRules.js +86 -0
  123. package/dist/lib/securityRules.js.map +1 -0
  124. package/dist/lib/watermark.d.ts +110 -0
  125. package/dist/lib/watermark.js +151 -0
  126. package/dist/lib/watermark.js.map +1 -0
  127. package/dist/locales/en-US.d.ts +462 -42
  128. package/dist/locales/en-US.js +491 -78
  129. package/dist/locales/en-US.js.map +1 -1
  130. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  131. package/dist/locales/kernelMenuTitles.js +128 -0
  132. package/dist/locales/kernelMenuTitles.js.map +1 -0
  133. package/dist/locales/menuTitle.d.ts +3 -0
  134. package/dist/locales/menuTitle.js +14 -12
  135. package/dist/locales/menuTitle.js.map +1 -1
  136. package/dist/locales/zh-CN.d.ts +462 -42
  137. package/dist/locales/zh-CN.js +490 -81
  138. package/dist/locales/zh-CN.js.map +1 -1
  139. package/dist/router/index.js +41 -32
  140. package/dist/router/index.js.map +1 -1
  141. package/dist/router/namedPage.d.ts +4 -0
  142. package/dist/router/namedPage.js +7 -7
  143. package/dist/router/namedPage.js.map +1 -1
  144. package/dist/router/viewRegistry.js +12 -12
  145. package/dist/router/viewRegistry.js.map +1 -1
  146. package/dist/stores/app.d.ts +0 -12
  147. package/dist/stores/app.js +11 -12
  148. package/dist/stores/app.js.map +1 -1
  149. package/dist/stores/tabs.js.map +1 -1
  150. package/dist/stores/user.d.ts +10 -0
  151. package/dist/stores/user.js.map +1 -1
  152. package/dist/style.css +1 -1
  153. package/dist/theme/accentTokens.d.ts +27 -0
  154. package/dist/theme/accentTokens.js +54 -0
  155. package/dist/theme/accentTokens.js.map +1 -0
  156. package/dist/theme/accents.d.ts +21 -1
  157. package/dist/theme/accents.js +11 -2
  158. package/dist/theme/accents.js.map +1 -1
  159. package/dist/theme/mix.d.ts +58 -7
  160. package/dist/theme/mix.js +115 -30
  161. package/dist/theme/mix.js.map +1 -1
  162. package/dist/theme/naive-theme.d.ts +5 -2
  163. package/dist/theme/naive-theme.js +405 -75
  164. package/dist/theme/naive-theme.js.map +1 -1
  165. package/dist/utils/jwt.d.ts +8 -0
  166. package/dist/utils/jwt.js +14 -0
  167. package/dist/utils/jwt.js.map +1 -0
  168. package/dist/utils/menuIcon.d.ts +2 -0
  169. package/dist/utils/menuIcon.js +8 -0
  170. package/dist/utils/menuIcon.js.map +1 -0
  171. package/dist/utils/oauthBrand.d.ts +34 -9
  172. package/dist/utils/oauthBrand.js +70 -74
  173. package/dist/utils/oauthBrand.js.map +1 -1
  174. package/dist/utils/tableFilter.d.ts +88 -0
  175. package/dist/utils/tableFilter.js +116 -0
  176. package/dist/utils/tableFilter.js.map +1 -0
  177. package/dist/utils/tableToolbar.d.ts +18 -0
  178. package/dist/utils/tableToolbar.js +11 -0
  179. package/dist/utils/tableToolbar.js.map +1 -0
  180. package/dist/utils/treeFilter.d.ts +20 -0
  181. package/dist/utils/treeFilter.js +24 -0
  182. package/dist/utils/treeFilter.js.map +1 -0
  183. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  184. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  185. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  186. package/dist/views/dashboard/biz.vue.js +1 -1
  187. package/dist/views/dashboard/biz2.vue.js +310 -257
  188. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  189. package/dist/views/dashboard/workbench.vue.js +2 -2
  190. package/dist/views/dashboard/workbench2.vue.js +141 -155
  191. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  192. package/dist/views/embed/iframe.vue.js +2 -2
  193. package/dist/views/embed/iframe2.vue.js +22 -15
  194. package/dist/views/embed/iframe2.vue.js.map +1 -1
  195. package/dist/views/error/404.vue.js +2 -2
  196. package/dist/views/error/4042.vue.js +33 -24
  197. package/dist/views/error/4042.vue.js.map +1 -1
  198. package/dist/views/error/BootError.vue.js +1 -1
  199. package/dist/views/error/BootError2.vue.js +59 -48
  200. package/dist/views/error/BootError2.vue.js.map +1 -1
  201. package/dist/views/error/MissingRoute.vue.js +2 -2
  202. package/dist/views/error/MissingRoute2.vue.js +34 -15
  203. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  204. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  205. package/dist/views/login/LoginForm.vue.js +2 -2
  206. package/dist/views/login/LoginForm2.vue.js +580 -488
  207. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  208. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  209. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  210. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  211. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  212. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  213. package/dist/views/login/components/LoginHeroPanel.vue.d.ts +18 -0
  214. package/dist/views/login/components/LoginHeroPanel.vue.js +8 -0
  215. package/dist/views/login/components/LoginHeroPanel.vue.js.map +1 -0
  216. package/dist/views/login/components/LoginHeroPanel2.vue.js +61 -0
  217. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -0
  218. package/dist/views/login/index.vue.js +1 -1
  219. package/dist/views/login/index2.vue.js +141 -71
  220. package/dist/views/login/index2.vue.js.map +1 -1
  221. package/dist/views/login/layout.d.ts +11 -0
  222. package/dist/views/login/layout.js +27 -0
  223. package/dist/views/login/layout.js.map +1 -0
  224. package/dist/views/mfa/index.vue.js +2 -2
  225. package/dist/views/mfa/index2.vue.js +367 -321
  226. package/dist/views/mfa/index2.vue.js.map +1 -1
  227. package/dist/views/module/index.vue.js +2 -2
  228. package/dist/views/module/index2.vue.js +132 -99
  229. package/dist/views/module/index2.vue.js.map +1 -1
  230. package/dist/views/oauth/callback.vue.js +2 -2
  231. package/dist/views/oauth/callback2.vue.js +65 -51
  232. package/dist/views/oauth/callback2.vue.js.map +1 -1
  233. package/dist/views/personal/bindings.vue.js +2 -2
  234. package/dist/views/personal/bindings2.vue.js +98 -94
  235. package/dist/views/personal/bindings2.vue.js.map +1 -1
  236. package/dist/views/personal/notice2.vue.js +103 -76
  237. package/dist/views/personal/notice2.vue.js.map +1 -1
  238. package/dist/views/personal/password2.vue.js +47 -40
  239. package/dist/views/personal/password2.vue.js.map +1 -1
  240. package/dist/views/personal/profile.vue.js +3 -3
  241. package/dist/views/personal/profile2.vue.js +24 -18
  242. package/dist/views/personal/profile2.vue.js.map +1 -1
  243. package/dist/views/personal/security.vue.js +2 -2
  244. package/dist/views/personal/security2.vue.js +65 -53
  245. package/dist/views/personal/security2.vue.js.map +1 -1
  246. package/dist/views/personal/sessions.vue.js +2 -2
  247. package/dist/views/personal/sessions2.vue.js +67 -62
  248. package/dist/views/personal/sessions2.vue.js.map +1 -1
  249. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  250. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  251. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  252. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  253. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  254. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  255. package/dist/views/system/ai-model/index.vue.js +2 -2
  256. package/dist/views/system/ai-model/index2.vue.js +99 -99
  257. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  258. package/dist/views/system/ai-model/presets.d.ts +1 -1
  259. package/dist/views/system/ai-model/presets.js +18 -18
  260. package/dist/views/system/ai-model/presets.js.map +1 -1
  261. package/dist/views/system/ai-usage/index.vue.js +2 -2
  262. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  263. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  264. package/dist/views/system/api-docs/index.vue.js +5 -2
  265. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  266. package/dist/views/system/api-docs/index2.vue.js +92 -42
  267. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  268. package/dist/views/system/cache/index.vue.js +2 -2
  269. package/dist/views/system/cache/index2.vue.js +74 -80
  270. package/dist/views/system/cache/index2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/AdminMock.vue.js +8 -0
  272. package/dist/views/system/config/components/AdminMock.vue.js.map +1 -0
  273. package/dist/views/system/config/components/AdminMock2.vue.js +93 -0
  274. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -0
  275. package/dist/views/system/config/components/AdvancedSection.vue.js +8 -0
  276. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -0
  277. package/dist/views/system/config/components/AdvancedSection2.vue.js +163 -0
  278. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -0
  279. package/dist/views/system/config/components/BrandSection.vue.d.ts +7 -0
  280. package/dist/views/system/config/components/BrandSection.vue.js +8 -0
  281. package/dist/views/system/config/components/BrandSection.vue.js.map +1 -0
  282. package/dist/views/system/config/components/BrandSection2.vue.js +266 -0
  283. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -0
  284. package/dist/views/system/config/components/CfgGroup.vue.d.ts +18 -0
  285. package/dist/views/system/config/components/CfgGroup.vue.js +8 -0
  286. package/dist/views/system/config/components/CfgGroup.vue.js.map +1 -0
  287. package/dist/views/system/config/components/CfgGroup2.vue.js +22 -0
  288. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -0
  289. package/dist/views/system/config/components/CfgRow.vue.d.ts +26 -0
  290. package/dist/views/system/config/components/CfgRow.vue.js +9 -0
  291. package/dist/views/system/config/components/CfgRow.vue.js.map +1 -0
  292. package/dist/views/system/config/components/CfgRow2.vue.js +54 -0
  293. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -0
  294. package/dist/views/system/config/components/CfgSegment.vue.d.ts +28 -0
  295. package/dist/views/system/config/components/CfgSegment.vue.js +8 -0
  296. package/dist/views/system/config/components/CfgSegment.vue.js.map +1 -0
  297. package/dist/views/system/config/components/CfgSegment2.vue.js +45 -0
  298. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -0
  299. package/dist/views/system/config/components/ConfigFormModal.vue.js +4 -1
  300. package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -1
  301. package/dist/views/system/config/components/ConfigFormModal2.vue.js +72 -60
  302. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  303. package/dist/views/system/config/components/JobSection.vue.js +8 -0
  304. package/dist/views/system/config/components/JobSection.vue.js.map +1 -0
  305. package/dist/views/system/config/components/JobSection2.vue.js +140 -0
  306. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -0
  307. package/dist/views/system/config/components/LoginMock.vue.d.ts +8 -0
  308. package/dist/views/system/config/components/LoginMock.vue.js +8 -0
  309. package/dist/views/system/config/components/LoginMock.vue.js.map +1 -0
  310. package/dist/views/system/config/components/LoginMock2.vue.js +132 -0
  311. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -0
  312. package/dist/views/system/config/components/LogoCropper.vue.d.ts +10 -0
  313. package/dist/views/system/config/components/LogoCropper.vue.js +8 -0
  314. package/dist/views/system/config/components/LogoCropper.vue.js.map +1 -0
  315. package/dist/views/system/config/components/LogoCropper2.vue.js +122 -0
  316. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -0
  317. package/dist/views/system/config/components/LogoEditor.vue.js +8 -0
  318. package/dist/views/system/config/components/LogoEditor.vue.js.map +1 -0
  319. package/dist/views/system/config/components/LogoEditor2.vue.js +161 -0
  320. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -0
  321. package/dist/views/system/config/components/ProviderSheet.vue.d.ts +17 -0
  322. package/dist/views/system/config/components/ProviderSheet.vue.js +8 -0
  323. package/dist/views/system/config/components/ProviderSheet.vue.js.map +1 -0
  324. package/dist/views/system/config/components/ProviderSheet2.vue.js +343 -0
  325. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -0
  326. package/dist/{layouts/SettingRow.vue.d.ts → views/system/config/components/ScaleToFit.vue.d.ts} +2 -1
  327. package/dist/views/system/config/components/ScaleToFit.vue.js +8 -0
  328. package/dist/views/system/config/components/ScaleToFit.vue.js.map +1 -0
  329. package/dist/views/system/config/components/ScaleToFit2.vue.js +41 -0
  330. package/dist/views/system/config/components/ScaleToFit2.vue.js.map +1 -0
  331. package/dist/views/system/config/components/SectionLayout.vue.d.ts +30 -0
  332. package/dist/views/system/config/components/SectionLayout.vue.js +8 -0
  333. package/dist/views/system/config/components/SectionLayout.vue.js.map +1 -0
  334. package/dist/views/system/config/components/SectionLayout2.vue.js +69 -0
  335. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -0
  336. package/dist/views/system/config/components/SecuritySection.vue.js +8 -0
  337. package/dist/views/system/config/components/SecuritySection.vue.js.map +1 -0
  338. package/dist/views/system/config/components/SecuritySection2.vue.js +417 -0
  339. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -0
  340. package/dist/views/system/config/components/SensitiveSection.vue.js +8 -0
  341. package/dist/views/system/config/components/SensitiveSection.vue.js.map +1 -0
  342. package/dist/views/system/config/components/SensitiveSection2.vue.js +214 -0
  343. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -0
  344. package/dist/views/system/config/components/SigninSection.vue.js +8 -0
  345. package/dist/views/system/config/components/SigninSection.vue.js.map +1 -0
  346. package/dist/views/system/config/components/SigninSection2.vue.js +201 -0
  347. package/dist/views/system/config/components/SigninSection2.vue.js.map +1 -0
  348. package/dist/views/system/config/components/UploadSection.vue.js +8 -0
  349. package/dist/views/system/config/components/UploadSection.vue.js.map +1 -0
  350. package/dist/views/system/config/components/UploadSection2.vue.js +176 -0
  351. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -0
  352. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  353. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  354. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  355. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  356. package/dist/views/system/config/draft.d.ts +148 -0
  357. package/dist/views/system/config/draft.js +170 -0
  358. package/dist/views/system/config/draft.js.map +1 -0
  359. package/dist/views/system/config/flash.d.ts +2 -0
  360. package/dist/views/system/config/flash.js +9 -0
  361. package/dist/views/system/config/flash.js.map +1 -0
  362. package/dist/views/system/config/groups.d.ts +38 -7
  363. package/dist/views/system/config/groups.js +104 -14
  364. package/dist/views/system/config/groups.js.map +1 -1
  365. package/dist/views/system/config/index.vue.js +6 -2
  366. package/dist/views/system/config/index.vue.js.map +1 -1
  367. package/dist/views/system/config/index2.vue.js +201 -111
  368. package/dist/views/system/config/index2.vue.js.map +1 -1
  369. package/dist/views/system/config/layoutMode.d.ts +23 -0
  370. package/dist/views/system/config/layoutMode.js +28 -0
  371. package/dist/views/system/config/layoutMode.js.map +1 -0
  372. package/dist/views/system/config/providerForm.d.ts +33 -0
  373. package/dist/views/system/config/providerForm.js +63 -0
  374. package/dist/views/system/config/providerForm.js.map +1 -0
  375. package/dist/views/system/dict/index.vue.js +2 -2
  376. package/dist/views/system/dict/index2.vue.js +471 -366
  377. package/dist/views/system/dict/index2.vue.js.map +1 -1
  378. package/dist/views/system/file/index2.vue.js +91 -76
  379. package/dist/views/system/file/index2.vue.js.map +1 -1
  380. package/dist/views/system/job/index.vue.js +3 -3
  381. package/dist/views/system/job/index2.vue.js +897 -828
  382. package/dist/views/system/job/index2.vue.js.map +1 -1
  383. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  384. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  385. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  386. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  387. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  388. package/dist/views/system/job-log/index.vue.js +2 -2
  389. package/dist/views/system/job-log/index2.vue.js +193 -207
  390. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  391. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  392. package/dist/views/system/job-log/runStatus.js +26 -0
  393. package/dist/views/system/job-log/runStatus.js.map +1 -0
  394. package/dist/views/system/job-monitor/index.vue.js +2 -2
  395. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  396. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  397. package/dist/views/system/log/exception/index.vue.js +2 -2
  398. package/dist/views/system/log/exception/index2.vue.js +135 -96
  399. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  400. package/dist/views/system/log/login/index2.vue.js +62 -41
  401. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  402. package/dist/views/system/log/op/index.vue.js +2 -2
  403. package/dist/views/system/log/op/index2.vue.js +200 -162
  404. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  405. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  406. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  407. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  408. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  409. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  410. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  411. package/dist/views/system/menu/index.vue.js +1 -1
  412. package/dist/views/system/menu/index2.vue.js +216 -183
  413. package/dist/views/system/menu/index2.vue.js.map +1 -1
  414. package/dist/views/system/module/index.vue.js +1 -1
  415. package/dist/views/system/module/index2.vue.js +177 -144
  416. package/dist/views/system/module/index2.vue.js.map +1 -1
  417. package/dist/views/system/monitor/index.vue.js +2 -2
  418. package/dist/views/system/monitor/index2.vue.js +134 -149
  419. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  420. package/dist/views/system/notice/index.vue.js +1 -1
  421. package/dist/views/system/notice/index2.vue.js +209 -181
  422. package/dist/views/system/notice/index2.vue.js.map +1 -1
  423. package/dist/views/system/org/index.vue.js +1 -1
  424. package/dist/views/system/org/index2.vue.js +278 -248
  425. package/dist/views/system/org/index2.vue.js.map +1 -1
  426. package/dist/views/system/position/index.vue.js +5 -2
  427. package/dist/views/system/position/index.vue.js.map +1 -1
  428. package/dist/views/system/position/index2.vue.js +128 -92
  429. package/dist/views/system/position/index2.vue.js.map +1 -1
  430. package/dist/views/system/recycle/index.vue.js +2 -2
  431. package/dist/views/system/recycle/index2.vue.js +90 -67
  432. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  433. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  434. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  435. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  436. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  437. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  438. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  439. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  440. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  441. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  442. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  443. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  444. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  445. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  446. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  447. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  448. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  449. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  450. package/dist/views/system/role/index.vue.js +5 -2
  451. package/dist/views/system/role/index.vue.js.map +1 -1
  452. package/dist/views/system/role/index2.vue.js +181 -165
  453. package/dist/views/system/role/index2.vue.js.map +1 -1
  454. package/dist/views/system/session/index2.vue.js +75 -49
  455. package/dist/views/system/session/index2.vue.js.map +1 -1
  456. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  457. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  458. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  459. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  460. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  461. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  462. package/dist/views/system/user/index.vue.js +2 -2
  463. package/dist/views/system/user/index2.vue.js +362 -275
  464. package/dist/views/system/user/index2.vue.js.map +1 -1
  465. package/package.json +6 -8
  466. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  467. package/dist/components/SelectTable/index2.vue.js +0 -256
  468. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  469. package/dist/composables/useTableRowSort.d.ts +0 -20
  470. package/dist/composables/useTableRowSort.js +0 -59
  471. package/dist/composables/useTableRowSort.js.map +0 -1
  472. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  473. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  474. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  475. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  476. package/dist/layouts/SettingRow.vue.js +0 -8
  477. package/dist/layouts/SettingRow.vue.js.map +0 -1
  478. package/dist/layouts/SettingRow2.vue.js +0 -23
  479. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  480. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  481. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  482. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  483. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  484. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  485. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  486. package/dist/views/login/skins/SplitPanel2.vue.js +0 -85
  487. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  488. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  489. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  490. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  491. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  492. package/dist/views/login/skins.d.ts +0 -8
  493. package/dist/views/login/skins.js +0 -13
  494. package/dist/views/login/skins.js.map +0 -1
  495. package/dist/views/system/config/components/ExternalAuthConfig.vue.js +0 -8
  496. package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +0 -1
  497. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +0 -218
  498. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +0 -1
  499. package/dist/views/system/config/components/GroupExtraConfig.vue.js +0 -8
  500. package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +0 -1
  501. package/dist/views/system/config/components/GroupExtraConfig2.vue.js +0 -108
  502. package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +0 -1
  503. package/dist/views/system/config/components/HighSensConfig.vue.js +0 -5
  504. package/dist/views/system/config/components/HighSensConfig.vue.js.map +0 -1
  505. package/dist/views/system/config/components/HighSensConfig2.vue.js +0 -134
  506. package/dist/views/system/config/components/HighSensConfig2.vue.js.map +0 -1
  507. package/dist/views/system/config/components/JobConfig.vue.js +0 -5
  508. package/dist/views/system/config/components/JobConfig.vue.js.map +0 -1
  509. package/dist/views/system/config/components/JobConfig2.vue.js +0 -116
  510. package/dist/views/system/config/components/JobConfig2.vue.js.map +0 -1
  511. package/dist/views/system/config/components/OtherConfig.vue.js +0 -5
  512. package/dist/views/system/config/components/OtherConfig.vue.js.map +0 -1
  513. package/dist/views/system/config/components/OtherConfig2.vue.js +0 -121
  514. package/dist/views/system/config/components/OtherConfig2.vue.js.map +0 -1
  515. package/dist/views/system/config/components/SecurityConfig.vue.js +0 -8
  516. package/dist/views/system/config/components/SecurityConfig.vue.js.map +0 -1
  517. package/dist/views/system/config/components/SecurityConfig2.vue.js +0 -456
  518. package/dist/views/system/config/components/SecurityConfig2.vue.js.map +0 -1
  519. package/dist/views/system/config/components/SysBaseConfig.vue.js +0 -5
  520. package/dist/views/system/config/components/SysBaseConfig.vue.js.map +0 -1
  521. package/dist/views/system/config/components/SysBaseConfig2.vue.js +0 -107
  522. package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +0 -1
  523. package/dist/views/system/config/components/UploadConfig.vue.d.ts +0 -3
  524. package/dist/views/system/config/components/UploadConfig.vue.js +0 -5
  525. package/dist/views/system/config/components/UploadConfig.vue.js.map +0 -1
  526. package/dist/views/system/config/components/UploadConfig2.vue.js +0 -135
  527. package/dist/views/system/config/components/UploadConfig2.vue.js.map +0 -1
  528. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  529. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  530. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/AdminMock.vue.d.ts} +0 -0
  531. /package/dist/views/{login/skins/SplitPanel.vue.d.ts → system/config/components/AdvancedSection.vue.d.ts} +0 -0
  532. /package/dist/views/{login/skins/Spotlight.vue.d.ts → system/config/components/JobSection.vue.d.ts} +0 -0
  533. /package/dist/views/system/config/components/{ExternalAuthConfig.vue.d.ts → LogoEditor.vue.d.ts} +0 -0
  534. /package/dist/views/system/config/components/{HighSensConfig.vue.d.ts → SecuritySection.vue.d.ts} +0 -0
  535. /package/dist/views/system/config/components/{JobConfig.vue.d.ts → SensitiveSection.vue.d.ts} +0 -0
  536. /package/dist/views/system/config/components/{OtherConfig.vue.d.ts → SigninSection.vue.d.ts} +0 -0
  537. /package/dist/views/system/config/components/{SecurityConfig.vue.d.ts → UploadSection.vue.d.ts} +0 -0
  538. /package/dist/views/system/config/components/{SysBaseConfig.vue.d.ts → WatermarkSection.vue.d.ts} +0 -0
@@ -1,85 +1,108 @@
1
- import { defineComponent as be, ref as p, reactive as J, resolveDirective as he, openBlock as k, createElementBlock as ke, Fragment as we, createElementVNode as ge, createVNode as o, unref as e, withCtx as d, withDirectives as N, createBlock as T, createTextVNode as z, toDisplayString as P, h as m } from "vue";
2
- import { useMessage as Te, NCard as B, NButton as b, NDataTable as Ce, NSpace as F, NEmpty as Se, NForm as Q, NFormItem as v, NInput as S, NInputNumber as W, NSwitch as X, NPopconfirm as Y } from "naive-ui";
3
- import { useI18n as Ue } from "vue-i18n";
4
- import { SmartTable as Re } from "smart-naive-table";
5
- import E from "../../../components/AppIcon.vue.js";
6
- import Z from "../../../components/FormContainer/index.vue.js";
1
+ import { defineComponent as qe, ref as m, computed as ie, h as u, reactive as oe, resolveDirective as ze, openBlock as y, createElementBlock as ne, Fragment as Ae, createElementVNode as re, createVNode as n, unref as t, withCtx as o, withDirectives as R, createBlock as w, createTextVNode as I, toDisplayString as T, createCommentVNode as de, mergeProps as se } from "vue";
2
+ import { useMessage as Be, NSpace as ue, NButton as f, NPopconfirm as ce, NCard as Le, NEmpty as Fe, NDrawer as Ve, NDrawerContent as je, NForm as me, NFormItem as h, NInput as x, NInputNumber as pe, NSwitch as ve } from "naive-ui";
3
+ import { useElementSize as Ke, useMediaQuery as He } from "@vueuse/core";
4
+ import { useI18n as Me } from "vue-i18n";
5
+ import { SmartTable as j } from "smart-naive-table";
6
+ import z from "../../../components/AppIcon.vue.js";
7
+ import ye from "../../../components/FormContainer/index.vue.js";
7
8
  /* empty css */
8
- import ee from "../../../components/StatusSwitch/index.vue.js";
9
- import { useConfirm as Ie } from "../../../composables/useConfirm.js";
10
- import { useBatchDelete as te } from "../../../composables/useBatchDelete.js";
11
- import { dictAdminApi as c } from "../../../api/index.js";
12
- import { useAuthStore as xe } from "../../../stores/auth.js";
13
- import { useDictStore as De } from "../../../stores/dict.js";
14
- import { translateError as q } from "../../../utils/error.js";
15
- const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
9
+ import fe from "../../../components/StatusSwitch/index.vue.js";
10
+ import { useConfirm as We } from "../../../composables/useConfirm.js";
11
+ import { useBatchDelete as he } from "../../../composables/useBatchDelete.js";
12
+ import { dictAdminApi as p } from "../../../api/index.js";
13
+ import { useAuthStore as $e } from "../../../stores/auth.js";
14
+ import { useDictStore as Ge } from "../../../stores/dict.js";
15
+ import { translateError as A } from "../../../utils/error.js";
16
+ import { SEARCH_ACTIONS as Qe, deriveHeaderFilters as be } from "../../../utils/tableFilter.js";
17
+ import { TABLE_TOOLBAR as Ye, TABLE_MIN_ROW_HEIGHT as ke } from "../../../utils/tableToolbar.js";
18
+ import K from "../../../components/TableTotal/index.vue.js";
19
+ const Je = { class: "sheet-foot" }, Xe = {
20
+ key: 0,
21
+ class: "field-hint"
22
+ }, bt = /* @__PURE__ */ qe({
16
23
  __name: "index",
17
- setup(ze) {
18
- const { t: a } = Ue(), w = Te(), { run: A } = Ie(), U = xe(), y = De(), R = p(), r = p(null), g = p([]), _ = p(!1);
19
- async function I() {
20
- var l, u, i, f;
21
- const t = (l = r.value) == null ? void 0 : l.code;
22
- if (!t) {
24
+ setup(Ze) {
25
+ const { t: a } = Me(), C = Be(), { run: H } = We(), E = $e(), b = Ge(), U = m(), B = { ...Ye, maximize: !1 }, M = m(), { width: W } = Ke(M), P = ie(() => W.value > 0 && W.value < 600), L = m(!1), we = He("(max-width: 640px)"), $ = ie(
26
+ () => we.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
27
+ ), r = m(null), g = m([]), N = m(!1);
28
+ async function _() {
29
+ var l, s, v, i;
30
+ const e = (l = r.value) == null ? void 0 : l.code;
31
+ if (!e) {
23
32
  g.value = [];
24
33
  return;
25
34
  }
26
- _.value = !0;
35
+ N.value = !0;
27
36
  try {
28
- const O = await c.items(t);
29
- ((u = r.value) == null ? void 0 : u.code) === t && (g.value = O);
30
- } catch (O) {
31
- ((i = r.value) == null ? void 0 : i.code) === t && (w.error(q(O)), g.value = []);
37
+ const V = await p.items(e);
38
+ ((s = r.value) == null ? void 0 : s.code) === e && (g.value = V);
39
+ } catch (V) {
40
+ ((v = r.value) == null ? void 0 : v.code) === e && (C.error(A(V)), g.value = []);
32
41
  } finally {
33
- ((f = r.value) == null ? void 0 : f.code) === t && (_.value = !1);
42
+ ((i = r.value) == null ? void 0 : i.code) === e && (N.value = !1);
34
43
  }
35
44
  }
36
- async function le(t) {
37
- r.value = t, await I();
45
+ async function ge(e) {
46
+ r.value = e, await _();
38
47
  }
39
- const {
40
- checkedKeys: L,
41
- hasSelection: ae,
42
- run: ie
43
- } = te({
44
- remove: c.typeBatchRemove,
48
+ function Te(e) {
49
+ return P.value && (L.value = !0), ge(e);
50
+ }
51
+ const { checkedKeys: G, run: Ce } = he({
52
+ remove: p.typeBatchRemove,
45
53
  refresh: () => {
46
- var t;
47
- r.value = null, g.value = [], y.invalidate(), (t = R.value) == null || t.refresh();
54
+ var e;
55
+ r.value = null, g.value = [], b.invalidate(), (e = U.value) == null || e.refresh();
48
56
  },
49
57
  successMsg: a("dict.typeDeleted")
50
58
  }), {
51
- checkedKeys: V,
52
- hasSelection: oe,
53
- run: de
54
- } = te({
55
- remove: c.itemBatchRemove,
59
+ checkedKeys: D,
60
+ hasSelection: Re,
61
+ run: Q
62
+ } = he({
63
+ remove: p.itemBatchRemove,
56
64
  refresh: () => {
57
- y.invalidate(), I();
65
+ b.invalidate(), _();
58
66
  },
59
67
  successMsg: a("dict.itemDeleted")
60
- }), K = (t) => ({
61
- code: t.code,
62
- name: t.name,
63
- sort: t.sort,
64
- enabled: t.enabled,
65
- remark: t.remark ?? ""
66
- }), ne = [
68
+ }), Y = (e) => ({
69
+ code: e.code,
70
+ name: e.name,
71
+ sort: e.sort,
72
+ enabled: e.enabled,
73
+ remark: e.remark ?? ""
74
+ }), J = [
67
75
  { type: "selection" },
68
76
  { type: "index", title: () => a("common.rowNo"), width: 64, align: "center" },
69
- { key: "code", title: () => a("dict.code") },
70
- { key: "name", title: () => a("dict.name"), search: !0 },
71
- { key: "sort", title: () => a("dict.sort"), width: 70 },
77
+ {
78
+ key: "code",
79
+ title: () => a("dict.code"),
80
+ render: (e) => u("span", { class: "mono muted" }, e.code)
81
+ },
82
+ // 窄档卡片以类型名称作标题(默认取第一个数据列 = 编码,不如名称好认)
83
+ {
84
+ key: "name",
85
+ title: () => a("dict.name"),
86
+ card: "title",
87
+ search: { actions: Qe.fuzzy }
88
+ },
89
+ {
90
+ key: "sort",
91
+ title: () => a("dict.sort"),
92
+ width: 70,
93
+ render: (e) => u("span", { class: "num muted" }, e.sort)
94
+ },
72
95
  {
73
96
  key: "enabled",
74
97
  title: () => a("common.status"),
75
98
  width: 90,
76
99
  // 包一层 stopPropagation:开关点击不得冒泡到行 onClick(否则误切选中类型)
77
- render: (t) => m("div", { onClick: (l) => l.stopPropagation() }, [
78
- m(ee, {
79
- value: t.enabled,
80
- request: (l) => c.typeUpdate(t.id, { ...K(t), enabled: l }),
100
+ render: (e) => u("div", { onClick: (l) => l.stopPropagation() }, [
101
+ u(fe, {
102
+ value: e.enabled,
103
+ request: (l) => p.typeUpdate(e.id, { ...Y(e), enabled: l }),
81
104
  "onUpdate:value": (l) => {
82
- t.enabled = l, y.invalidate(t.code);
105
+ e.enabled = l, b.invalidate(e.code);
83
106
  }
84
107
  })
85
108
  ])
@@ -88,35 +111,47 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
88
111
  key: "op",
89
112
  title: () => a("common.operation"),
90
113
  width: 130,
114
+ align: "right",
91
115
  fixed: "right",
92
116
  hideInSetting: !0,
93
117
  // stopPropagation:操作按钮点击不得冒泡到行 onClick(否则误切选中类型)
94
- render: (t) => m(F, { size: 4, wrapItem: !1, onClick: (l) => l.stopPropagation() }, () => [
95
- U.hasPerm("PUT:/api/v1/sys/dict/type/{id}") ? m(
96
- b,
97
- { size: "small", quaternary: !0, type: "primary", onClick: () => ue(t) },
98
- () => a("common.edit")
99
- ) : null,
100
- U.hasPerm("DELETE:/api/v1/sys/dict/type/{id}") ? m(
101
- Y,
102
- {
103
- onPositiveClick: () => A(() => c.typeRemove(t.id), a("dict.typeDeleted")).then((l) => {
104
- var u, i;
105
- l && (y.invalidate(t.code), ((u = r.value) == null ? void 0 : u.id) === t.id && (r.value = null, g.value = []), (i = R.value) == null || i.refresh());
106
- })
107
- },
108
- {
109
- trigger: () => m(
110
- b,
111
- { size: "small", quaternary: !0, type: "error" },
112
- () => a("common.delete")
113
- ),
114
- default: () => a("dict.typeDeleteConfirm", { name: t.name })
115
- }
116
- ) : null
117
- ])
118
+ render: (e) => u(
119
+ ue,
120
+ { size: 2, justify: "end", wrapItem: !1, onClick: (l) => l.stopPropagation() },
121
+ () => [
122
+ E.hasPerm("PUT:/api/v1/sys/dict/type/{id}") ? u(
123
+ f,
124
+ {
125
+ size: "small",
126
+ quaternary: !0,
127
+ type: "primary",
128
+ onClick: () => xe(e)
129
+ },
130
+ () => a("common.edit")
131
+ ) : null,
132
+ E.hasPerm("DELETE:/api/v1/sys/dict/type/{id}") ? u(
133
+ ce,
134
+ {
135
+ onPositiveClick: () => H(() => p.typeRemove(e.id), a("dict.typeDeleted")).then((l) => {
136
+ var s, v;
137
+ l && (b.invalidate(e.code), ((s = r.value) == null ? void 0 : s.id) === e.id && (r.value = null, g.value = []), (v = U.value) == null || v.refresh());
138
+ })
139
+ },
140
+ {
141
+ trigger: () => u(
142
+ f,
143
+ { size: "small", quaternary: !0, type: "error" },
144
+ () => a("common.delete")
145
+ ),
146
+ default: () => a("dict.typeDeleteConfirm", { name: e.name })
147
+ }
148
+ ) : null
149
+ ]
150
+ )
118
151
  }
119
- ], x = p(!1), j = p(null), h = p(null), re = {
152
+ ];
153
+ be(J);
154
+ const O = m(!1), X = m(null), k = m(null), Ie = {
120
155
  code: {
121
156
  required: !0,
122
157
  whitespace: !0,
@@ -129,81 +164,90 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
129
164
  message: () => a("dict.nameRequired"),
130
165
  trigger: ["input", "blur"]
131
166
  }
132
- }, H = () => ({ code: "", name: "", sort: 0, enabled: !0, remark: "" }), n = J(H());
133
- function se() {
134
- h.value = null, Object.assign(n, H()), x.value = !0;
167
+ }, Z = () => ({ code: "", name: "", sort: 0, enabled: !0, remark: "" }), d = oe(Z());
168
+ function Se() {
169
+ k.value = null, Object.assign(d, Z()), O.value = !0;
135
170
  }
136
- function ue(t) {
137
- h.value = t.id, Object.assign(n, K(t)), x.value = !0;
171
+ function xe(e) {
172
+ k.value = e.id, Object.assign(d, Y(e)), O.value = !0;
138
173
  }
139
- async function ce() {
140
- var t, l, u;
141
- await ((t = j.value) == null ? void 0 : t.validate());
174
+ async function Ee() {
175
+ var e, l, s;
176
+ await ((e = X.value) == null ? void 0 : e.validate());
142
177
  try {
143
- h.value === null ? await c.typeAdd({ ...n }) : await c.typeUpdate(h.value, { ...n }), y.invalidate(n.code), w.success(a("dict.typeSaved")), await ((l = R.value) == null ? void 0 : l.refresh()), ((u = r.value) == null ? void 0 : u.id) === h.value && Object.assign(r.value, { name: n.name });
144
- } catch (i) {
145
- return w.error(q(i)), !1;
178
+ k.value === null ? await p.typeAdd({ ...d }) : await p.typeUpdate(k.value, { ...d }), b.invalidate(d.code), C.success(a("dict.typeSaved")), await ((l = U.value) == null ? void 0 : l.refresh()), ((s = r.value) == null ? void 0 : s.id) === k.value && Object.assign(r.value, { name: d.name });
179
+ } catch (v) {
180
+ return C.error(A(v)), !1;
146
181
  }
147
182
  }
148
- const M = (t) => ({
149
- dictTypeCode: t.dictTypeCode,
150
- label: t.label,
151
- value: t.value,
152
- sort: t.sort,
153
- enabled: t.enabled
154
- }), me = [
183
+ const ee = (e) => ({
184
+ dictTypeCode: e.dictTypeCode,
185
+ label: e.label,
186
+ value: e.value,
187
+ sort: e.sort,
188
+ enabled: e.enabled
189
+ }), Ue = (e) => (l) => p.itemUpdate(e.id, { ...ee(e), enabled: l });
190
+ function Pe(e, l) {
191
+ e.enabled = l, b.invalidate(e.dictTypeCode);
192
+ }
193
+ const Ne = (e) => H(() => p.itemRemove(e.id), a("dict.itemDeleted")).then((l) => {
194
+ l && (b.invalidate(e.dictTypeCode), _());
195
+ }), F = [
155
196
  { type: "selection" },
197
+ { type: "index", title: () => a("common.rowNo"), width: 64, align: "center" },
198
+ { title: () => a("dict.itemLabel"), key: "label", card: "title", search: {} },
199
+ {
200
+ title: () => a("dict.itemValue"),
201
+ key: "value",
202
+ search: {},
203
+ render: (e) => u("span", { class: "mono muted" }, e.value)
204
+ },
156
205
  {
157
- key: "rowNo",
158
- title: () => a("common.rowNo"),
159
- width: 64,
160
- align: "center",
161
- render: (t, l) => l + 1
206
+ title: () => a("dict.sort"),
207
+ key: "sort",
208
+ width: 70,
209
+ render: (e) => u("span", { class: "num muted" }, e.sort)
162
210
  },
163
- { title: () => a("dict.itemLabel"), key: "label" },
164
- { title: () => a("dict.itemValue"), key: "value" },
165
- { title: () => a("dict.sort"), key: "sort", width: 70 },
166
211
  {
167
212
  title: () => a("common.status"),
168
213
  key: "enabled",
169
214
  width: 90,
170
- render: (t) => m(ee, {
171
- value: t.enabled,
172
- request: (l) => c.itemUpdate(t.id, { ...M(t), enabled: l }),
173
- "onUpdate:value": (l) => {
174
- t.enabled = l, y.invalidate(t.dictTypeCode);
175
- }
215
+ render: (e) => u(fe, {
216
+ value: e.enabled,
217
+ request: Ue(e),
218
+ "onUpdate:value": (l) => Pe(e, l)
176
219
  })
177
220
  },
178
221
  {
179
222
  title: () => a("common.operation"),
180
223
  key: "op",
181
224
  width: 130,
182
- render: (t) => m(F, { size: 4, wrapItem: !1 }, () => [
183
- U.hasPerm("PUT:/api/v1/sys/dict/item/{id}") ? m(
184
- b,
185
- { size: "small", quaternary: !0, type: "primary", onClick: () => ye(t) },
225
+ align: "right",
226
+ fixed: "right",
227
+ hideInSetting: !0,
228
+ render: (e) => u(ue, { size: 2, justify: "end", wrapItem: !1 }, () => [
229
+ E.hasPerm("PUT:/api/v1/sys/dict/item/{id}") ? u(
230
+ f,
231
+ { size: "small", quaternary: !0, type: "primary", onClick: () => De(e) },
186
232
  () => a("common.edit")
187
233
  ) : null,
188
- U.hasPerm("DELETE:/api/v1/sys/dict/item/{id}") ? m(
189
- Y,
234
+ E.hasPerm("DELETE:/api/v1/sys/dict/item/{id}") ? u(
235
+ ce,
236
+ { onPositiveClick: () => Ne(e) },
190
237
  {
191
- onPositiveClick: () => A(() => c.itemRemove(t.id), a("dict.itemDeleted")).then((l) => {
192
- l && (y.invalidate(t.dictTypeCode), I());
193
- })
194
- },
195
- {
196
- trigger: () => m(
197
- b,
238
+ trigger: () => u(
239
+ f,
198
240
  { size: "small", quaternary: !0, type: "error" },
199
241
  () => a("common.delete")
200
242
  ),
201
- default: () => a("dict.itemDeleteConfirm", { label: t.label })
243
+ default: () => a("dict.itemDeleteConfirm", { label: e.label })
202
244
  }
203
245
  ) : null
204
246
  ])
205
247
  }
206
- ], D = p(!1), $ = p(null), C = p(null), pe = {
248
+ ];
249
+ be(F);
250
+ const q = m(!1), te = m(null), S = m(null), _e = {
207
251
  label: {
208
252
  required: !0,
209
253
  whitespace: !0,
@@ -216,337 +260,398 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
216
260
  message: () => a("dict.itemValueRequired"),
217
261
  trigger: ["input", "blur"]
218
262
  }
219
- }, G = () => ({
263
+ }, le = () => ({
220
264
  dictTypeCode: "",
221
265
  label: "",
222
266
  value: "",
223
267
  sort: 0,
224
268
  enabled: !0
225
- }), s = J(G());
226
- function ve() {
227
- r.value && (C.value = null, Object.assign(s, G(), { dictTypeCode: r.value.code }), D.value = !0);
269
+ }), c = oe(le());
270
+ function ae() {
271
+ r.value && (S.value = null, Object.assign(c, le(), { dictTypeCode: r.value.code }), q.value = !0);
228
272
  }
229
- function ye(t) {
230
- C.value = t.id, Object.assign(s, M(t)), D.value = !0;
273
+ function De(e) {
274
+ S.value = e.id, Object.assign(c, ee(e)), q.value = !0;
231
275
  }
232
- async function fe() {
233
- var t;
234
- await ((t = $.value) == null ? void 0 : t.validate());
276
+ async function Oe() {
277
+ var e;
278
+ await ((e = te.value) == null ? void 0 : e.validate());
235
279
  try {
236
- C.value === null ? await c.itemAdd({ ...s }) : await c.itemUpdate(C.value, { ...s }), y.invalidate(s.dictTypeCode), w.success(a("dict.itemSaved")), await I();
280
+ S.value === null ? await p.itemAdd({ ...c }) : await p.itemUpdate(S.value, { ...c }), b.invalidate(c.dictTypeCode), C.success(a("dict.itemSaved")), await _();
237
281
  } catch (l) {
238
- return w.error(q(l)), !1;
282
+ return C.error(A(l)), !1;
239
283
  }
240
284
  }
241
- return (t, l) => {
242
- const u = he("auth");
243
- return k(), ke(we, null, [
244
- ge("div", Ne, [
245
- o(e(B), {
246
- class: "dict-pane fill-card",
247
- "content-class": "fill-main",
248
- bordered: !0
285
+ return (e, l) => {
286
+ var v;
287
+ const s = ze("auth");
288
+ return y(), ne(Ae, null, [
289
+ re("div", {
290
+ ref_key: "layoutRef",
291
+ ref: M,
292
+ class: "dict-layout fill-page fill-page--soft fill-split"
293
+ }, [
294
+ n(t(j), {
295
+ toolbar: B,
296
+ ref_key: "typeTableRef",
297
+ ref: U,
298
+ columns: J,
299
+ fetcher: t(p).typePage,
300
+ "fill-height": "",
301
+ "min-row-height": t(ke),
302
+ "card-on-narrow": "",
303
+ search: { container: "table" },
304
+ "storage-key": "sys-dict-type",
305
+ "active-row-key": ((v = r.value) == null ? void 0 : v.id) ?? null,
306
+ "row-props": () => ({ style: "cursor: pointer" }),
307
+ "checked-row-keys": t(G),
308
+ onRowClick: l[0] || (l[0] = (i) => Te(i)),
309
+ "onUpdate:checkedRowKeys": l[1] || (l[1] = (i) => G.value = i),
310
+ onError: l[2] || (l[2] = (i) => t(C).error(t(A)(i)))
249
311
  }, {
250
- default: d(() => {
251
- var i;
252
- return [
253
- o(e(Re), {
254
- "default-page-size": 100,
255
- ref_key: "typeTableRef",
256
- ref: R,
257
- columns: ne,
258
- fetcher: e(c).typePage,
259
- "flex-height": "",
260
- "virtual-scroll": "",
261
- search: { layout: "inline" },
262
- "storage-key": "sys-dict-type",
263
- "active-row-key": ((i = r.value) == null ? void 0 : i.id) ?? null,
264
- "row-props": () => ({ style: "cursor: pointer" }),
265
- "checked-row-keys": e(L),
266
- onRowClick: l[0] || (l[0] = (f) => le(f)),
267
- "onUpdate:checkedRowKeys": l[1] || (l[1] = (f) => L.value = f),
268
- onError: l[2] || (l[2] = (f) => e(w).error(e(q)(f)))
269
- }, {
270
- toolbar: d(() => [
271
- N((k(), T(e(b), {
272
- type: "primary",
273
- onClick: se
274
- }, {
275
- icon: d(() => [
276
- o(E, {
277
- icon: "ph:plus",
278
- size: 16
279
- })
280
- ]),
281
- default: d(() => [
282
- z(" " + P(e(a)("common.add")), 1)
283
- ]),
284
- _: 1
285
- })), [
286
- [u, "POST:/api/v1/sys/dict/type"]
287
- ]),
288
- N((k(), T(e(b), {
289
- type: "error",
290
- disabled: !e(ae),
291
- onClick: e(ie)
292
- }, {
293
- icon: d(() => [
294
- o(E, {
295
- icon: "ph:trash",
296
- size: 16
297
- })
298
- ]),
299
- default: d(() => [
300
- z(" " + P(e(a)("common.batchDelete")), 1)
301
- ]),
302
- _: 1
303
- }, 8, ["disabled", "onClick"])), [
304
- [u, "POST:/api/v1/sys/dict/type/batch-delete"]
305
- ])
306
- ]),
307
- _: 1
308
- }, 8, ["fetcher", "active-row-key", "checked-row-keys"])
309
- ];
310
- }),
312
+ "pagination-prefix": o(({ itemCount: i }) => [
313
+ n(K, { count: i }, null, 8, ["count"])
314
+ ]),
315
+ "toolbar-right": o(() => [
316
+ R((y(), w(t(f), {
317
+ type: "primary",
318
+ onClick: Se
319
+ }, {
320
+ icon: o(() => [
321
+ n(z, {
322
+ icon: "ph:plus",
323
+ size: 16
324
+ })
325
+ ]),
326
+ default: o(() => [
327
+ I(" " + T(t(a)("common.add")), 1)
328
+ ]),
329
+ _: 1
330
+ })), [
331
+ [s, "POST:/api/v1/sys/dict/type"]
332
+ ])
333
+ ]),
334
+ batch: o(() => [
335
+ R((y(), w(t(f), {
336
+ secondary: "",
337
+ type: "error",
338
+ onClick: t(Ce)
339
+ }, {
340
+ icon: o(() => [
341
+ n(z, {
342
+ icon: "ph:trash",
343
+ size: 16
344
+ })
345
+ ]),
346
+ default: o(() => [
347
+ I(" " + T(t(a)("common.batchDelete")), 1)
348
+ ]),
349
+ _: 1
350
+ }, 8, ["onClick"])), [
351
+ [s, "POST:/api/v1/sys/dict/type/batch-delete"]
352
+ ])
353
+ ]),
311
354
  _: 1
312
- }),
313
- r.value ? (k(), T(e(B), {
355
+ }, 8, ["fetcher", "min-row-height", "active-row-key", "checked-row-keys"]),
356
+ !P.value && r.value ? (y(), w(t(j), {
314
357
  key: 0,
315
- class: "dict-pane fill-card",
316
- bordered: !0,
317
- title: e(a)("dict.itemsOf", { name: r.value.name })
358
+ columns: F,
359
+ data: g.value,
360
+ "row-key": "id",
361
+ loading: N.value,
362
+ toolbar: B,
363
+ search: { container: "table" },
364
+ "checked-row-keys": t(D),
365
+ "fill-height": "",
366
+ "min-row-height": t(ke),
367
+ "storage-key": "sys-dict-item",
368
+ "onUpdate:checkedRowKeys": l[3] || (l[3] = (i) => D.value = i)
318
369
  }, {
319
- "header-extra": d(() => [
320
- o(e(F), { size: 8 }, {
321
- default: d(() => [
322
- N((k(), T(e(b), {
323
- size: "small",
324
- type: "error",
325
- disabled: !e(oe),
326
- onClick: e(de)
327
- }, {
328
- icon: d(() => [
329
- o(E, {
330
- icon: "ph:trash",
331
- size: 15
332
- })
333
- ]),
334
- default: d(() => [
335
- z(" " + P(e(a)("common.batchDelete")), 1)
336
- ]),
337
- _: 1
338
- }, 8, ["disabled", "onClick"])), [
339
- [u, "POST:/api/v1/sys/dict/item/batch-delete"]
340
- ]),
341
- N((k(), T(e(b), {
342
- size: "small",
343
- type: "primary",
344
- onClick: ve
345
- }, {
346
- icon: d(() => [
347
- o(E, {
348
- icon: "ph:plus",
349
- size: 15
350
- })
351
- ]),
352
- default: d(() => [
353
- z(" " + P(e(a)("dict.addItem")), 1)
354
- ]),
355
- _: 1
356
- })), [
357
- [u, "POST:/api/v1/sys/dict/item"]
358
- ])
370
+ "pagination-prefix": o(({ itemCount: i }) => [
371
+ n(K, { count: i }, null, 8, ["count"])
372
+ ]),
373
+ "toolbar-right": o(() => [
374
+ R((y(), w(t(f), {
375
+ type: "primary",
376
+ onClick: ae
377
+ }, {
378
+ icon: o(() => [
379
+ n(z, {
380
+ icon: "ph:plus",
381
+ size: 16
382
+ })
383
+ ]),
384
+ default: o(() => [
385
+ I(" " + T(t(a)("dict.addItem")), 1)
359
386
  ]),
360
387
  _: 1
361
- })
388
+ })), [
389
+ [s, "POST:/api/v1/sys/dict/item"]
390
+ ])
362
391
  ]),
363
- default: d(() => [
364
- o(e(Ce), {
365
- columns: me,
366
- data: g.value,
367
- loading: _.value,
368
- "row-key": (i) => i.id,
369
- "checked-row-keys": e(V),
370
- size: "small",
371
- "flex-height": "",
372
- "virtual-scroll": "",
373
- "onUpdate:checkedRowKeys": l[3] || (l[3] = (i) => V.value = i)
374
- }, null, 8, ["data", "loading", "row-key", "checked-row-keys"])
392
+ batch: o(() => [
393
+ R((y(), w(t(f), {
394
+ secondary: "",
395
+ type: "error",
396
+ onClick: t(Q)
397
+ }, {
398
+ icon: o(() => [
399
+ n(z, {
400
+ icon: "ph:trash",
401
+ size: 16
402
+ })
403
+ ]),
404
+ default: o(() => [
405
+ I(" " + T(t(a)("common.batchDelete")), 1)
406
+ ]),
407
+ _: 1
408
+ }, 8, ["onClick"])), [
409
+ [s, "POST:/api/v1/sys/dict/item/batch-delete"]
410
+ ])
375
411
  ]),
376
412
  _: 1
377
- }, 8, ["title"])) : (k(), T(e(B), {
413
+ }, 8, ["data", "loading", "checked-row-keys", "min-row-height"])) : P.value ? de("", !0) : (y(), w(t(Le), {
378
414
  key: 1,
379
- class: "dict-pane",
415
+ class: "dict-pane fill-main",
380
416
  bordered: !0
381
417
  }, {
382
- default: d(() => [
383
- o(e(Se), {
384
- description: e(a)("dict.selectTypeHint"),
385
- style: { padding: "48px 0" }
418
+ default: o(() => [
419
+ n(t(Fe), {
420
+ description: t(a)("dict.selectTypeHint"),
421
+ style: { padding: "48px 0", margin: "auto" }
386
422
  }, null, 8, ["description"])
387
423
  ]),
388
424
  _: 1
389
425
  }))
390
- ]),
391
- o(Z, {
392
- show: x.value,
393
- "onUpdate:show": l[9] || (l[9] = (i) => x.value = i),
394
- title: h.value === null ? e(a)("dict.addTypeTitle") : e(a)("dict.editTypeTitle"),
426
+ ], 512),
427
+ n(t(Ve), {
428
+ show: L.value && P.value && !!r.value,
429
+ placement: "bottom",
430
+ height: "85vh",
431
+ style: { "border-radius": "16px 16px 0 0" },
432
+ "onUpdate:show": l[5] || (l[5] = (i) => L.value = i)
433
+ }, {
434
+ default: o(() => [
435
+ n(t(je), {
436
+ title: r.value ? t(a)("dict.itemsOf", { name: r.value.name }) : t(a)("dict.itemsSheetTitle"),
437
+ closable: ""
438
+ }, {
439
+ footer: o(() => [
440
+ re("div", Je, [
441
+ R((y(), w(t(f), {
442
+ secondary: "",
443
+ type: "error",
444
+ size: "large",
445
+ disabled: !t(Re),
446
+ onClick: t(Q)
447
+ }, {
448
+ default: o(() => [
449
+ I(T(t(a)("common.batchDelete")), 1)
450
+ ]),
451
+ _: 1
452
+ }, 8, ["disabled", "onClick"])), [
453
+ [s, "POST:/api/v1/sys/dict/item/batch-delete"]
454
+ ]),
455
+ R((y(), w(t(f), {
456
+ type: "primary",
457
+ size: "large",
458
+ onClick: ae
459
+ }, {
460
+ default: o(() => [
461
+ I(T(t(a)("dict.addItem")), 1)
462
+ ]),
463
+ _: 1
464
+ })), [
465
+ [s, "POST:/api/v1/sys/dict/item"]
466
+ ])
467
+ ])
468
+ ]),
469
+ default: o(() => [
470
+ n(t(j), {
471
+ columns: F,
472
+ data: g.value,
473
+ "row-key": "id",
474
+ loading: N.value,
475
+ toolbar: B,
476
+ search: { container: "table" },
477
+ "checked-row-keys": t(D),
478
+ "card-on-narrow": "",
479
+ "storage-key": "sys-dict-item-sheet",
480
+ "onUpdate:checkedRowKeys": l[4] || (l[4] = (i) => D.value = i)
481
+ }, {
482
+ "pagination-prefix": o(({ itemCount: i }) => [
483
+ n(K, { count: i }, null, 8, ["count"])
484
+ ]),
485
+ _: 1
486
+ }, 8, ["data", "loading", "checked-row-keys"])
487
+ ]),
488
+ _: 1
489
+ }, 8, ["title"])
490
+ ]),
491
+ _: 1
492
+ }, 8, ["show"]),
493
+ n(ye, {
494
+ show: O.value,
495
+ "onUpdate:show": l[11] || (l[11] = (i) => O.value = i),
496
+ title: k.value === null ? t(a)("dict.addTypeTitle") : t(a)("dict.editTypeTitle"),
395
497
  width: 480,
396
- "on-confirm": ce,
397
- "confirm-text": e(a)("common.save")
498
+ "on-confirm": Ee,
499
+ "confirm-text": t(a)("common.save")
398
500
  }, {
399
- default: d(() => [
400
- o(e(Q), {
501
+ default: o(() => [
502
+ n(t(me), se({
401
503
  ref_key: "typeFormRef",
402
- ref: j,
403
- model: n,
404
- rules: re,
405
- "label-placement": "left",
406
- "label-width": 80
407
- }, {
408
- default: d(() => [
409
- o(e(v), {
410
- label: e(a)("dict.code"),
504
+ ref: X,
505
+ model: d,
506
+ rules: Ie,
507
+ "require-mark-placement": "left"
508
+ }, $.value), {
509
+ default: o(() => [
510
+ n(t(h), {
511
+ label: t(a)("dict.code"),
411
512
  path: "code"
412
513
  }, {
413
- default: d(() => [
414
- o(e(S), {
415
- value: n.code,
416
- "onUpdate:value": l[4] || (l[4] = (i) => n.code = i),
417
- placeholder: e(a)("dict.code"),
418
- disabled: h.value !== null
514
+ feedback: o(() => [
515
+ k.value !== null ? (y(), ne("span", Xe, T(t(a)("dict.codeImmutable")), 1)) : de("", !0)
516
+ ]),
517
+ default: o(() => [
518
+ n(t(x), {
519
+ value: d.code,
520
+ "onUpdate:value": l[6] || (l[6] = (i) => d.code = i),
521
+ class: "mono",
522
+ placeholder: t(a)("dict.code"),
523
+ disabled: k.value !== null
419
524
  }, null, 8, ["value", "placeholder", "disabled"])
420
525
  ]),
421
526
  _: 1
422
527
  }, 8, ["label"]),
423
- o(e(v), {
424
- label: e(a)("dict.name"),
528
+ n(t(h), {
529
+ label: t(a)("dict.name"),
425
530
  path: "name"
426
531
  }, {
427
- default: d(() => [
428
- o(e(S), {
429
- value: n.name,
430
- "onUpdate:value": l[5] || (l[5] = (i) => n.name = i),
431
- placeholder: e(a)("dict.name")
532
+ default: o(() => [
533
+ n(t(x), {
534
+ value: d.name,
535
+ "onUpdate:value": l[7] || (l[7] = (i) => d.name = i),
536
+ placeholder: t(a)("dict.name")
432
537
  }, null, 8, ["value", "placeholder"])
433
538
  ]),
434
539
  _: 1
435
540
  }, 8, ["label"]),
436
- o(e(v), {
437
- label: e(a)("dict.sort")
541
+ n(t(h), {
542
+ label: t(a)("dict.sort")
438
543
  }, {
439
- default: d(() => [
440
- o(e(W), {
441
- value: n.sort,
442
- "onUpdate:value": l[6] || (l[6] = (i) => n.sort = i),
544
+ default: o(() => [
545
+ n(t(pe), {
546
+ value: d.sort,
547
+ "onUpdate:value": l[8] || (l[8] = (i) => d.sort = i),
443
548
  min: 0,
444
549
  style: { width: "160px" }
445
550
  }, null, 8, ["value"])
446
551
  ]),
447
552
  _: 1
448
553
  }, 8, ["label"]),
449
- o(e(v), {
450
- label: e(a)("dict.remark")
554
+ n(t(h), {
555
+ label: t(a)("dict.remark")
451
556
  }, {
452
- default: d(() => [
453
- o(e(S), {
454
- value: n.remark,
455
- "onUpdate:value": l[7] || (l[7] = (i) => n.remark = i),
557
+ default: o(() => [
558
+ n(t(x), {
559
+ value: d.remark,
560
+ "onUpdate:value": l[9] || (l[9] = (i) => d.remark = i),
456
561
  type: "textarea",
457
562
  autosize: { minRows: 2 }
458
563
  }, null, 8, ["value"])
459
564
  ]),
460
565
  _: 1
461
566
  }, 8, ["label"]),
462
- o(e(v), {
463
- label: e(a)("common.status")
567
+ n(t(h), {
568
+ label: t(a)("common.status")
464
569
  }, {
465
- default: d(() => [
466
- o(e(X), {
467
- value: n.enabled,
468
- "onUpdate:value": l[8] || (l[8] = (i) => n.enabled = i)
570
+ default: o(() => [
571
+ n(t(ve), {
572
+ value: d.enabled,
573
+ "onUpdate:value": l[10] || (l[10] = (i) => d.enabled = i)
469
574
  }, null, 8, ["value"])
470
575
  ]),
471
576
  _: 1
472
577
  }, 8, ["label"])
473
578
  ]),
474
579
  _: 1
475
- }, 8, ["model"])
580
+ }, 16, ["model"])
476
581
  ]),
477
582
  _: 1
478
583
  }, 8, ["show", "title", "confirm-text"]),
479
- o(Z, {
480
- show: D.value,
481
- "onUpdate:show": l[14] || (l[14] = (i) => D.value = i),
482
- title: C.value === null ? e(a)("dict.addItemTitle") : e(a)("dict.editItemTitle"),
584
+ n(ye, {
585
+ show: q.value,
586
+ "onUpdate:show": l[16] || (l[16] = (i) => q.value = i),
587
+ title: S.value === null ? t(a)("dict.addItemTitle") : t(a)("dict.editItemTitle"),
483
588
  width: 480,
484
- "on-confirm": fe,
485
- "confirm-text": e(a)("common.save")
589
+ "on-confirm": Oe,
590
+ "confirm-text": t(a)("common.save")
486
591
  }, {
487
- default: d(() => [
488
- o(e(Q), {
592
+ default: o(() => [
593
+ n(t(me), se({
489
594
  ref_key: "itemFormRef",
490
- ref: $,
491
- model: s,
492
- rules: pe,
493
- "label-placement": "left",
494
- "label-width": 80
495
- }, {
496
- default: d(() => [
497
- o(e(v), {
498
- label: e(a)("dict.itemLabel"),
595
+ ref: te,
596
+ model: c,
597
+ rules: _e,
598
+ "require-mark-placement": "left"
599
+ }, $.value), {
600
+ default: o(() => [
601
+ n(t(h), {
602
+ label: t(a)("dict.itemLabel"),
499
603
  path: "label"
500
604
  }, {
501
- default: d(() => [
502
- o(e(S), {
503
- value: s.label,
504
- "onUpdate:value": l[10] || (l[10] = (i) => s.label = i),
505
- placeholder: e(a)("dict.itemLabel")
605
+ default: o(() => [
606
+ n(t(x), {
607
+ value: c.label,
608
+ "onUpdate:value": l[12] || (l[12] = (i) => c.label = i),
609
+ placeholder: t(a)("dict.itemLabel")
506
610
  }, null, 8, ["value", "placeholder"])
507
611
  ]),
508
612
  _: 1
509
613
  }, 8, ["label"]),
510
- o(e(v), {
511
- label: e(a)("dict.itemValue"),
614
+ n(t(h), {
615
+ label: t(a)("dict.itemValue"),
512
616
  path: "value"
513
617
  }, {
514
- default: d(() => [
515
- o(e(S), {
516
- value: s.value,
517
- "onUpdate:value": l[11] || (l[11] = (i) => s.value = i),
518
- placeholder: e(a)("dict.itemValue")
618
+ default: o(() => [
619
+ n(t(x), {
620
+ value: c.value,
621
+ "onUpdate:value": l[13] || (l[13] = (i) => c.value = i),
622
+ class: "mono",
623
+ placeholder: t(a)("dict.itemValue")
519
624
  }, null, 8, ["value", "placeholder"])
520
625
  ]),
521
626
  _: 1
522
627
  }, 8, ["label"]),
523
- o(e(v), {
524
- label: e(a)("dict.sort")
628
+ n(t(h), {
629
+ label: t(a)("dict.sort")
525
630
  }, {
526
- default: d(() => [
527
- o(e(W), {
528
- value: s.sort,
529
- "onUpdate:value": l[12] || (l[12] = (i) => s.sort = i),
631
+ default: o(() => [
632
+ n(t(pe), {
633
+ value: c.sort,
634
+ "onUpdate:value": l[14] || (l[14] = (i) => c.sort = i),
530
635
  min: 0,
531
636
  style: { width: "160px" }
532
637
  }, null, 8, ["value"])
533
638
  ]),
534
639
  _: 1
535
640
  }, 8, ["label"]),
536
- o(e(v), {
537
- label: e(a)("common.status")
641
+ n(t(h), {
642
+ label: t(a)("common.status")
538
643
  }, {
539
- default: d(() => [
540
- o(e(X), {
541
- value: s.enabled,
542
- "onUpdate:value": l[13] || (l[13] = (i) => s.enabled = i)
644
+ default: o(() => [
645
+ n(t(ve), {
646
+ value: c.enabled,
647
+ "onUpdate:value": l[15] || (l[15] = (i) => c.enabled = i)
543
648
  }, null, 8, ["value"])
544
649
  ]),
545
650
  _: 1
546
651
  }, 8, ["label"])
547
652
  ]),
548
653
  _: 1
549
- }, 8, ["model"])
654
+ }, 16, ["model"])
550
655
  ]),
551
656
  _: 1
552
657
  }, 8, ["show", "title", "confirm-text"])
@@ -555,6 +660,6 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
555
660
  }
556
661
  });
557
662
  export {
558
- $e as default
663
+ bt as default
559
664
  };
560
665
  //# sourceMappingURL=index2.vue.js.map