@pubinfo/module-rbac 2.0.0-rc.2 → 2.0.0-rc.4

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 (267) hide show
  1. package/dist/{ComponentSelect-Dyqb3Uh3.js → ComponentSelect-B1ZyenXP.js} +897 -945
  2. package/dist/ComponentSelect-DlVJI5an.js +2 -0
  3. package/dist/DynamicRoutesForm-Cu3WhRpA.js +4 -0
  4. package/dist/{DynamicRoutesForm-D3nGj7oA.js → DynamicRoutesForm-qjbrykW4.js} +95 -95
  5. package/dist/HCheckList-Cze_TkQp.js +2 -0
  6. package/dist/HoverCard-B79q5sly.js +43 -0
  7. package/dist/HoverCard-U5WTpvFy.js +2 -0
  8. package/dist/{ImportExport-Yt6dABIv.js → ImportExport-Clbc8xaw.js} +65 -65
  9. package/dist/ImportExport-CtEZTU87.js +4 -0
  10. package/dist/MetaForm-BWy4Lpr8.js +5 -0
  11. package/dist/MetaForm-DpH9an5A.js +300 -0
  12. package/dist/MetaForm.css +1 -0
  13. package/dist/OrgAndPosition-3lCm4Fyb.js +2 -0
  14. package/dist/ResourceEdit-0_cYB0iu.js +338 -0
  15. package/dist/ResourceEdit-CYPzEbqn.js +10 -0
  16. package/dist/{ResourceRelation-BihfkBCe.js → ResourceRelation-CZ8hGgOm.js} +6 -6
  17. package/dist/ResourceRelation-DMWa09ae.js +3 -0
  18. package/dist/{ResourceRelation-CBPrqf2V.js → ResourceRelation-DkKdZ3TD.js} +2 -2
  19. package/dist/ResourceRelation.css +1 -1
  20. package/dist/ResourceRelation2.css +1 -1
  21. package/dist/{ResourceSelector-CxZ1ae30.js → ResourceSelector-ConJ30Jd.js} +48 -48
  22. package/dist/ResourceSelector.css +1 -1
  23. package/dist/{RoleRelation-BlWDNAM1.js → RoleRelation-B1D1NM_L.js} +1 -1
  24. package/dist/RoleRelation-DySyilcs.js +2 -0
  25. package/dist/RoleSelector-DOt30OLy.js +279 -0
  26. package/dist/TenantEdit-D8-Pt7sf.js +6 -0
  27. package/dist/{TenantEdit-Bt31IV9W.js → TenantEdit-DNJzo8SS.js} +19 -19
  28. package/dist/{UserAuthorization-Dhp0ZamX.js → UserAuthorization-DPHUk69M.js} +6 -6
  29. package/dist/UserAuthorization-DuioGghR.js +4 -0
  30. package/dist/UserAuthorization.css +1 -1
  31. package/dist/UserEdit-6HYbgtOh.js +4 -0
  32. package/dist/{UserEdit-CqH6hxTZ.js → UserEdit-C6eNXSCu.js} +24 -24
  33. package/dist/animation_item-C3pkH-cB.js +2 -0
  34. package/dist/api/modules/assist/gonggaofuwu.d.ts +6 -6
  35. package/dist/api/modules/assist/qunzujiekou.d.ts +6 -6
  36. package/dist/api/modules/assist/quyujiekou.d.ts +5 -5
  37. package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
  38. package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
  39. package/dist/api/modules/configData/zidifuwu.d.ts +10 -10
  40. package/dist/api/modules/log/caozuorizhifuwu.d.ts +2 -2
  41. package/dist/api/modules/log/denglurizhifuwu.d.ts +2 -2
  42. package/dist/api/modules/rbac/gangweijiekou.d.ts +6 -6
  43. package/dist/api/modules/rbac/jiaosejiekou.d.ts +7 -7
  44. package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
  45. package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
  46. package/dist/api/modules/rbac/yonghujiekou.d.ts +15 -15
  47. package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
  48. package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
  49. package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +6 -6
  50. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
  51. package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
  52. package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
  53. package/dist/api/modules/rbac/zuzhijiekou.d.ts +9 -9
  54. package/dist/{blackWhiteList-B7tUj2Rx.js → blackWhiteList-DQALdBZf.js} +10 -10
  55. package/dist/blackWhiteList.css +1 -1
  56. package/dist/{breadcrumb_setting-CIm-6QHw.js → breadcrumb_setting-D3UjJYhA.js} +32 -32
  57. package/dist/breadcrumb_setting.css +1 -1
  58. package/dist/browserType-BGl2j5RW.js +2 -0
  59. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  60. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  61. package/dist/components/ResourceSelector/index.vue.d.ts +1 -1
  62. package/dist/composables/useWebSocketManager.d.ts +8 -0
  63. package/dist/createAndEditDataPermission-CAaxueTy.js +8 -0
  64. package/dist/{createAndEditDataPermission-Bd3tlIEE.js → createAndEditDataPermission-DnAcKvaE.js} +55 -55
  65. package/dist/createAndEditDataPermission.css +1 -1
  66. package/dist/{data-permission-Db1Lu9KO.js → data-permission-CLnnLoPt.js} +8 -8
  67. package/dist/data-permission.css +1 -1
  68. package/dist/{dictionary-XMJprxvM.js → dictionary-BFM0Mx0P.js} +3 -3
  69. package/dist/{drawerBlackWhiteList-D-Sq4mul.js → drawerBlackWhiteList-BYACpO3D.js} +9 -9
  70. package/dist/drawerBlackWhiteList-C3xS7Kxx.js +3 -0
  71. package/dist/{drawerDictionary-Bw3w5PTm.js → drawerDictionary-BUBLrbTi.js} +13 -13
  72. package/dist/drawerDictionary-Bk0BgL7i.js +4 -0
  73. package/dist/{drawerDictionaryItem-4WIgL3No.js → drawerDictionaryItem-CfOPleN6.js} +14 -14
  74. package/dist/drawerDictionaryItem-Dy2T56AH.js +4 -0
  75. package/dist/{drawerGroup-932n7Ywc.js → drawerGroup-Bly3CWfM.js} +10 -10
  76. package/dist/drawerGroup-ZyzAWXOl.js +3 -0
  77. package/dist/{drawerOrganization-IwZZkHWM.js → drawerOrganization-BhO5-PP5.js} +27 -27
  78. package/dist/drawerOrganization-HSVB8JzO.js +3 -0
  79. package/dist/{drawerPosition-BiO92_At.js → drawerPosition-CM0NBfoR.js} +15 -15
  80. package/dist/drawerPosition-vsuG4JYe.js +3 -0
  81. package/dist/drawerRegion-BXZ751ge.js +3 -0
  82. package/dist/{drawerRegion-CNOK55im.js → drawerRegion-CGySAL6D.js} +17 -17
  83. package/dist/{drawerRole-IIsKhycU.js → drawerRole-BE0utb7R.js} +9 -9
  84. package/dist/drawerRole-BVeaz3Yb.js +5 -0
  85. package/dist/drawerRole-BdoMYLYW.js +215 -0
  86. package/dist/drawerRole-BeUNs7cF.js +6 -0
  87. package/dist/drawerRole-DNsK5a6O.js +3 -0
  88. package/dist/{drawerRole-PnDochPg.js → drawerRole-DS7fbx1h.js} +10 -10
  89. package/dist/{group-BzuuCGyR.js → group-B1gGoTD5.js} +10 -10
  90. package/dist/group.css +1 -1
  91. package/dist/index.css +1 -1
  92. package/dist/index.d.ts +3 -0
  93. package/dist/index.js +2065 -1875
  94. package/dist/{itemlist-KOYuEUk4.js → itemlist-uCHnA_We.js} +3 -3
  95. package/dist/{layout_setting-DQgWzV7M.js → layout_setting-DMvxwL31.js} +20 -20
  96. package/dist/layout_setting.css +1 -1
  97. package/dist/{loginHistoryDetail-DgHx6n66.js → loginHistoryDetail-BAYuSqvw.js} +2 -2
  98. package/dist/loginHistoryDetail-DiuNa6Sv.js +4 -0
  99. package/dist/{login_history-Co6JLGsd.js → login_history-BexfCN-1.js} +7 -7
  100. package/dist/login_history.css +1 -1
  101. package/dist/{menu_setting-B0QIQ1um.js → menu_setting-BXR3EAXD.js} +43 -43
  102. package/dist/menu_setting.css +1 -1
  103. package/dist/not-data-OpiacaSk.js +2 -0
  104. package/dist/{operateHistoryDetail-BrdNmYD0.js → operateHistoryDetail-DiuqMTkN.js} +2 -2
  105. package/dist/operateHistoryDetail-r30ZBNqw.js +4 -0
  106. package/dist/{operate_history-CVeIorOr.js → operate_history-hXxS3atI.js} +7 -7
  107. package/dist/operate_history.css +1 -1
  108. package/dist/{organization-CXMk4mRo.js → organization-cvYm9P9w.js} +2647 -2647
  109. package/dist/organization.css +1 -1
  110. package/dist/{other_setting-DK9MHysY.js → other_setting-DjVQevBW.js} +69 -69
  111. package/dist/other_setting.css +1 -1
  112. package/dist/{page_animation_setting-tSYfjx-m.js → page_animation_setting-DgHHmFEc.js} +52 -52
  113. package/dist/page_animation_setting.css +1 -1
  114. package/dist/{page_w_setting-BDI5KsA-.js → page_w_setting-B_im6vBo.js} +20 -20
  115. package/dist/page_w_setting.css +1 -1
  116. package/dist/{position-BjUZQQUz.js → position-BkpbHXYP.js} +2 -2
  117. package/dist/{region-BsX0gK_y.js → region-DVkbjI9t.js} +6 -6
  118. package/dist/{resource-DKhlH74I.js → resource-CrhX7VRK.js} +13 -11
  119. package/dist/{role-ffXddsAo.js → role-PjmrOdFd.js} +6 -6
  120. package/dist/{role_group-BBH28A40.js → role_group-Dlx-6BZF.js} +2 -2
  121. package/dist/routeSystem-Dg0b6mAl.js +2 -0
  122. package/dist/{safe_setting-Dis73Gsw.js → safe_setting-DpWUCv2p.js} +1 -1
  123. package/dist/setItem-9ZBl0BlF.js +5 -0
  124. package/dist/setItem-BenNySNl.js +77 -0
  125. package/dist/setItem.css +1 -1
  126. package/dist/stores/view.d.ts +56 -0
  127. package/dist/{tabbar_setting-DGwk_Oec.js → tabbar_setting-9UKDc1Ev.js} +38 -38
  128. package/dist/tabbar_setting.css +1 -1
  129. package/dist/{tenant-BhA6R8aJ.js → tenant-BGtOP_wo.js} +5 -5
  130. package/dist/{theme_setting-Ca1YGTdZ.js → theme_setting-BBLaZ4NS.js} +8 -8
  131. package/dist/theme_setting.css +1 -1
  132. package/dist/{toolbar_setting-Cmrpyxgs.js → toolbar_setting-OemNp6pO.js} +37 -37
  133. package/dist/toolbar_setting.css +1 -1
  134. package/dist/{useAppAndResource-BgnrL15l.js → useAppAndResource-CeMCjg2v.js} +1 -1
  135. package/dist/{user-Bnb1cvVD.js → user-JCiGXodF.js} +11 -11
  136. package/dist/user.css +1 -1
  137. package/dist/utils/routeSystem.d.ts +55 -0
  138. package/dist/views/blackWhiteList/index.vue.d.ts +2 -2
  139. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -5
  140. package/dist/views/data-permission/index.vue.d.ts +7 -7
  141. package/dist/views/dictionary/index.vue.d.ts +2 -2
  142. package/dist/views/dictionary/itemlist.vue.d.ts +2 -2
  143. package/dist/views/group/index.vue.d.ts +2 -2
  144. package/dist/views/log_center/login_history.vue.d.ts +2 -2
  145. package/dist/views/log_center/operate_history.vue.d.ts +2 -2
  146. package/dist/views/position/index.vue.d.ts +2 -2
  147. package/dist/views/region/index.vue.d.ts +2 -2
  148. package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
  149. package/dist/views/resource/index.vue.d.ts +2 -2
  150. package/dist/views/resource/model.d.ts +3 -1
  151. package/dist/views/role/components/ResourceRelation.vue.d.ts +2 -2
  152. package/dist/views/role/components/drawerRole.vue.d.ts +2 -2
  153. package/dist/views/role/index.vue.d.ts +6 -6
  154. package/dist/views/role_group/index.vue.d.ts +2 -2
  155. package/dist/views/tenant/components/TenantEdit.vue.d.ts +2 -2
  156. package/dist/views/tenant/index.vue.d.ts +4 -4
  157. package/dist/views/user/index.vue.d.ts +2 -2
  158. package/dist/{watermark_setting-BnBt5gdM.js → watermark_setting-C1VFRfbW.js} +111 -111
  159. package/dist/watermark_setting.css +1 -1
  160. package/package.json +7 -7
  161. package/src/composables/useWebSocketManager.ts +104 -0
  162. package/src/index.ts +22 -0
  163. package/src/stores/view.ts +292 -0
  164. package/src/utils/routeSystem.ts +53 -0
  165. package/src/views/region/index.vue +1 -1
  166. package/src/views/resource/components/ComponentSelect.vue +12 -119
  167. package/src/views/resource/components/HoverCard.vue +62 -0
  168. package/src/views/resource/components/MetaForm.vue +129 -67
  169. package/src/views/resource/components/ResourceEdit.vue +33 -4
  170. package/src/views/resource/hooks/useMetaForm.ts +23 -0
  171. package/src/views/resource/model.ts +5 -1
  172. package/src/views/watermark_setting/index.vue +2 -2
  173. package/dist/ComponentSelect-Din5Vses.js +0 -2
  174. package/dist/DynamicRoutesForm-CkmCaHum.js +0 -4
  175. package/dist/HCheckList-Dd2Tx0jW.js +0 -2
  176. package/dist/ImportExport-BbZkZEW_.js +0 -4
  177. package/dist/MetaForm-CI-T2qEE.js +0 -284
  178. package/dist/MetaForm-CrsQmdOg.js +0 -4
  179. package/dist/OrgAndPosition-CDCim7yM.js +0 -2
  180. package/dist/ResourceEdit-BFXA953U.js +0 -309
  181. package/dist/ResourceEdit-V6gt22gW.js +0 -8
  182. package/dist/ResourceRelation-BnLQZey7.js +0 -3
  183. package/dist/RoleRelation-CAMzPMFz.js +0 -2
  184. package/dist/RoleSelector-DTnDRRTQ.js +0 -279
  185. package/dist/TenantEdit-DYHJehf0.js +0 -6
  186. package/dist/UserAuthorization-BdHxAQlK.js +0 -4
  187. package/dist/UserEdit-CqrRx717.js +0 -4
  188. package/dist/animation_item-COb6VI4T.js +0 -2
  189. package/dist/browserType-D2cPQa0k.js +0 -2
  190. package/dist/createAndEditDataPermission-6pvYsJo9.js +0 -8
  191. package/dist/drawerBlackWhiteList-DK4g_CpC.js +0 -3
  192. package/dist/drawerDictionary-DHIcxPrY.js +0 -4
  193. package/dist/drawerDictionaryItem-dg1sIDYE.js +0 -4
  194. package/dist/drawerGroup-CrF2c8UJ.js +0 -3
  195. package/dist/drawerOrganization-b39q3V33.js +0 -3
  196. package/dist/drawerPosition-BjoDy0cQ.js +0 -3
  197. package/dist/drawerRegion-omVT_dpq.js +0 -3
  198. package/dist/drawerRole-BaQBb2-J.js +0 -215
  199. package/dist/drawerRole-BqMh5l11.js +0 -5
  200. package/dist/drawerRole-D7VJRLmp.js +0 -6
  201. package/dist/drawerRole-dJ3m0_K2.js +0 -3
  202. package/dist/loginHistoryDetail-BNGtarOv.js +0 -4
  203. package/dist/not-data-uXybSS43.js +0 -2
  204. package/dist/operateHistoryDetail-DsM4L8Nz.js +0 -4
  205. package/dist/setItem-CjNn98dC.js +0 -77
  206. package/dist/setItem-H6NRNSt7.js +0 -5
  207. /package/dist/{HCheckList-3zLNVNr0.js → HCheckList-CmS0Zgjk.js} +0 -0
  208. /package/dist/{OrgAndPosition-BK5MTlOO.js → OrgAndPosition-DYxNkasL.js} +0 -0
  209. /package/dist/{_plugin-vue_export-helper-Bvl99pNT.js → _plugin-vue_export-helper-DziIhCOI.js} +0 -0
  210. /package/dist/{add-child-sIXCU5sL.js → add-child-BqjLtFNF.js} +0 -0
  211. /package/dist/{animation_item-D78koyTo.js → animation_item-Cg-CB3zX.js} +0 -0
  212. /package/dist/{authority-DQ4-SayE.js → authority-BCFCPQkb.js} +0 -0
  213. /package/dist/{authorize-CR54jxEa.js → authorize-BykMzt1r.js} +0 -0
  214. /package/dist/{blacklist-disable-ypFSVSX1.js → blacklist-disable-COoLZMSA.js} +0 -0
  215. /package/dist/{blacklist-enable-DlkD_15-.js → blacklist-enable-LZep1trj.js} +0 -0
  216. /package/dist/{browser-chrome-DNH4U6iO.js → browser-chrome-D0rex7Ir.js} +0 -0
  217. /package/dist/{browser-edge-4sSjlzO1.js → browser-edge-KCb_AIL5.js} +0 -0
  218. /package/dist/{browser-ie-yTwVV0GC.js → browser-ie-C1znjJM-.js} +0 -0
  219. /package/dist/{browser-other-Jax-vzDs.js → browser-other-C4er8PkV.js} +0 -0
  220. /package/dist/{browser-safari-B7PIezpj.js → browser-safari-BPRC1TV-.js} +0 -0
  221. /package/dist/{browserType-DZrDbVVY.js → browserType-E4RCiZfN.js} +0 -0
  222. /package/dist/{configData-CONUFxaH.js → configData-DQOHeFW2.js} +0 -0
  223. /package/dist/{dayjs.min-KffHrkDe.js → dayjs.min-DcxwBe2I.js} +0 -0
  224. /package/dist/{edit-CCL7qbDV.js → edit-C9HH0bNg.js} +0 -0
  225. /package/dist/{enum-DUjQrWbG.js → enum-B1DCzyaW.js} +0 -0
  226. /package/dist/{enum-CUMv4gQ2.js → enum-BWzxzuim.js} +0 -0
  227. /package/dist/{enum-B-lkiBy0.js → enum-CYW8g64p.js} +0 -0
  228. /package/dist/{enum-BMY6bmPA.js → enum-D0U38jb6.js} +0 -0
  229. /package/dist/{enum-Bg70i-vM.js → enum-VH4_jOj5.js} +0 -0
  230. /package/dist/{icard-BUuV9yW4.js → icard-FW0Ro50-.js} +0 -0
  231. /package/dist/{icon_animation-rPC0qi0K.js → icon_animation-DuNUKCIP.js} +0 -0
  232. /package/dist/{icon_breadcrumb-BOiEdwRY.js → icon_breadcrumb-DrPNYW5B.js} +0 -0
  233. /package/dist/{icon_copyright-zk1pF8Jj.js → icon_copyright-Di3Yr0PZ.js} +0 -0
  234. /package/dist/{icon_jt-BMoQoZvf.js → icon_jt-C4rQLl9Y.js} +0 -0
  235. /package/dist/{icon_layout-KBHA8xU_.js → icon_layout-5L9E7uN2.js} +0 -0
  236. /package/dist/{icon_mainpage-BTdCCyi2.js → icon_mainpage-DMKqRgmE.js} +0 -0
  237. /package/dist/{icon_menu-5k8XiWt5.js → icon_menu-Cp7-Zght.js} +0 -0
  238. /package/dist/{icon_page_size-DUMZ6xhJ.js → icon_page_size-Dc0zqT2W.js} +0 -0
  239. /package/dist/{icon_position_type-Cnkn2IzO.js → icon_position_type-DH2qxQQE.js} +0 -0
  240. /package/dist/{icon_safe_manage-B0PtL90p.js → icon_safe_manage-DXYWl1y-.js} +0 -0
  241. /package/dist/{icon_screen_scale-CwVhfflc.js → icon_screen_scale-DwC6qqx2.js} +0 -0
  242. /package/dist/{icon_system_manage-vM71UmjM.js → icon_system_manage-BYTldLly.js} +0 -0
  243. /package/dist/{icon_tabbar-CuMnIey0.js → icon_tabbar-CxffARwI.js} +0 -0
  244. /package/dist/{icon_toolbar-BoCbAU3P.js → icon_toolbar-CsxnTrNJ.js} +0 -0
  245. /package/dist/{icon_topbar-DGIDBcE6.js → icon_topbar-DS-oEZFA.js} +0 -0
  246. /package/dist/{icon_watermark-BBU-lOdN.js → icon_watermark-DDXsHlfQ.js} +0 -0
  247. /package/dist/{log-center-Z3WDfhg1.js → log-center-BFjZ4IE1.js} +0 -0
  248. /package/dist/{log-BgIwPjNu.js → log-hgUXTuhy.js} +0 -0
  249. /package/dist/{not-data-DejN9beo.js → not-data-Bw8FlpyB.js} +0 -0
  250. /package/dist/{org-main-C2g7AMMY.js → org-main-D5Isevbc.js} +0 -0
  251. /package/dist/{org-unmain-CjGtvuIa.js → org-unmain-BHBqSuCz.js} +0 -0
  252. /package/dist/{remove-BroXCqy9.js → remove-DKMMsJNq.js} +0 -0
  253. /package/dist/{resource-app-DV2RZiRk.js → resource-app-DZwdNG6F.js} +0 -0
  254. /package/dist/{resource-btn-Dw9-L0P5.js → resource-btn-DPX0oM2L.js} +0 -0
  255. /package/dist/{resource-dynamic-Cmk2ihZb.js → resource-dynamic-Cb_vjMjt.js} +0 -0
  256. /package/dist/{resource-index-D9J-wVCc.js → resource-index-ah4NpEob.js} +0 -0
  257. /package/dist/{resource-menu-XnlgciPe.js → resource-menu-CzWI03EU.js} +0 -0
  258. /package/dist/{resource-micro-DzYCcl5c.js → resource-micro-Ca0NS7j_.js} +0 -0
  259. /package/dist/{resource-nonmenu-8bXZBBWf.js → resource-nonmenu-Deitjo_5.js} +0 -0
  260. /package/dist/{setting-manage-BPwzU94V.js → setting-manage-B3vaM0w1.js} +0 -0
  261. /package/dist/{stores-Di6SQ3pp.js → stores-D6JJmBEU.js} +0 -0
  262. /package/dist/{theme-check-mark-Dz4lGIXE.js → theme-check-mark-BK7E8lqd.js} +0 -0
  263. /package/dist/{theme-title-CPXdAbpI.js → theme-title-aqbHq846.js} +0 -0
  264. /package/dist/{view-D4SR4EYn.js → view-C6Eo1zRL.js} +0 -0
  265. /package/dist/{zddata-Cdy8vScr.js → zddata-fjEtQ3lZ.js} +0 -0
  266. /package/dist/{zy_checked-xjGWlIXf.js → zy_checked-DTsDCC94.js} +0 -0
  267. /package/dist/{zy_default-kwFuicHB.js → zy_default-BaIuMKw-.js} +0 -0
@@ -1,279 +0,0 @@
1
- import { $ as e, U as t, V as n, am as r } from "./index.js";
2
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, isRef as m, mergeModels as h, mergeProps as g, normalizeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, resolveComponent as w, toDisplayString as T, unref as E, useModel as D, vShow as O, withCtx as k, withDirectives as A } from "vue";
3
- import { CloseOutlined as j, SearchOutlined as M } from "@ant-design/icons-vue";
4
- import { Card as N, Checkbox as P, CheckboxGroup as F, Modal as I, Spin as L, Tooltip as R, theme as z } from "ant-design-vue";
5
- import { Input as B, Select as V, SelectOption as H, Tooltip as U } from "ant-design-vue/es";
6
- const W = { key: 1 };
7
- var G = /* @__PURE__ */ f({
8
- name: "RoleSearch",
9
- __name: "RoleSearch",
10
- props: /* @__PURE__ */ h({ group: {
11
- type: Boolean,
12
- default: !1
13
- } }, {
14
- modelValue: {},
15
- modelModifiers: {},
16
- groupId: {},
17
- groupIdModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ h(["select"], ["update:modelValue", "update:groupId"]),
20
- setup(e, { emit: n }) {
21
- let r = e, a = n, s = D(e, "modelValue"), l = D(e, "groupId"), f = S([]);
22
- async function p() {
23
- let e = await t({ name: "" });
24
- e.success && (f.value = e.data ?? []);
25
- }
26
- return y(() => {
27
- r.group && p();
28
- }), (e, t) => {
29
- let n = H, r = U, p = V, m = B;
30
- return b(), o(m, {
31
- value: s.value,
32
- "onUpdate:value": t[2] ||= (e) => s.value = e,
33
- placeholder: "请输入",
34
- "allow-clear": ""
35
- }, {
36
- addonBefore: k(() => [e.group ? (b(), o(p, {
37
- key: 0,
38
- value: l.value,
39
- "onUpdate:value": t[0] ||= (e) => l.value = e,
40
- style: { width: "90px" },
41
- onChange: t[1] ||= (e) => a("select", e)
42
- }, {
43
- default: k(() => [d(n, { value: "" }, {
44
- default: k(() => t[3] ||= [u(" 全部 ")]),
45
- _: 1,
46
- __: [3]
47
- }), (b(!0), c(i, null, C(E(f), (e) => (b(), o(n, {
48
- key: e.id,
49
- value: e.id
50
- }, {
51
- default: k(() => [d(r, { title: e.name }, {
52
- default: k(() => [u(T(e.name), 1)]),
53
- _: 2
54
- }, 1032, ["title"])]),
55
- _: 2
56
- }, 1032, ["value"]))), 128))]),
57
- _: 1
58
- }, 8, ["value"])) : (b(), c("div", W, " 全部 "))]),
59
- suffix: k(() => [d(E(M))]),
60
- _: 1
61
- }, 8, ["value"]);
62
- };
63
- }
64
- }), K = G, q = /* @__PURE__ */ f({
65
- name: "TooltipLabel",
66
- inheritAttrs: !1,
67
- __name: "TooltipLabel",
68
- props: {
69
- name: {},
70
- size: { default: 21 }
71
- },
72
- setup(e) {
73
- return (e, t) => (e.name || "").length > e.size ? (b(), o(E(R), {
74
- key: 0,
75
- title: e.name
76
- }, {
77
- default: k(() => [l("span", _(p(e.$attrs)), T(`${e.name?.slice(0, e.size)}...`), 17)]),
78
- _: 1
79
- }, 8, ["title"])) : (b(), c("span", _(g({ key: 1 }, e.$attrs)), T(e.name), 17));
80
- }
81
- }), J = q;
82
- function Y() {
83
- let [t, n] = r(!1), i = S([]);
84
- async function a() {
85
- try {
86
- n(!0);
87
- let t = await e();
88
- t.success && (i.value = t.data ?? []);
89
- } finally {
90
- n(!1);
91
- }
92
- }
93
- return {
94
- loading: t,
95
- setLoading: n,
96
- roles: i,
97
- getData: a
98
- };
99
- }
100
- function X() {
101
- let [e, t] = r(!1), i = S([]);
102
- async function a(e) {
103
- try {
104
- t(!0);
105
- let r = await n({ id: e });
106
- r.success && (i.value = r.data?.roles ?? []);
107
- } finally {
108
- t(!1);
109
- }
110
- }
111
- return {
112
- loading: e,
113
- setLoading: t,
114
- roles: i,
115
- getData: a
116
- };
117
- }
118
- const Z = { class: "h-full flex" }, Q = { class: "p-2 flex flex-col h-full gap-2" }, $ = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, ee = {
119
- key: 0,
120
- class: "flex items-center justify-center size-full"
121
- }, te = { class: "gap-1 p-2 h-full overflow-y-auto" };
122
- var ne = /* @__PURE__ */ f({
123
- name: "RoleSelector",
124
- __name: "RoleSelector",
125
- props: /* @__PURE__ */ h({ group: {
126
- type: Boolean,
127
- default: !1
128
- } }, {
129
- open: { type: Boolean },
130
- openModifiers: {}
131
- }),
132
- emits: /* @__PURE__ */ h(["select"], ["update:open"]),
133
- setup(e, { expose: t, emit: n }) {
134
- let u = n, { token: f } = z.useToken(), p = D(e, "open"), h = r(p), g = S([]), _ = x(Y()), y = x(X()), w = S(""), T = S("");
135
- async function M(e) {
136
- await y.getData(e);
137
- }
138
- async function R(e = []) {
139
- g.value = e, w.value = "", T.value = "", await _.getData(), h(!0);
140
- }
141
- let B = a(() => T.value === "" ? _.roles : y.roles);
142
- function V(e) {
143
- return B.value.findIndex((t) => t.id === e.id) > -1 && e.name?.includes(w.value);
144
- }
145
- function H(e, t) {
146
- e.target.checked ? g.value.push({
147
- value: t.id,
148
- label: t.name
149
- }) : g.value = g.value.filter((e) => e.value !== t.id);
150
- }
151
- function U(e) {
152
- g.value = g.value.filter((t) => t.value !== e);
153
- }
154
- function W() {
155
- u("select", g.value), h(!1);
156
- }
157
- function G() {
158
- let e = g.value.filter((e) => !_.roles.some((t) => t.id === e.value));
159
- g.value = e;
160
- }
161
- return t({ open: R }), (e, t) => (b(), o(E(I), {
162
- open: p.value,
163
- "onUpdate:open": t[3] ||= (e) => p.value = e,
164
- title: "角色选择",
165
- "mask-closable": !1,
166
- width: 750,
167
- "z-index": 1001,
168
- "ok-text": "确认",
169
- "cancel-text": "取消",
170
- "destroy-on-close": "",
171
- onOk: t[4] ||= (e) => W()
172
- }, {
173
- default: k(() => [l("div", {
174
- class: "border border-solid h-[400px]",
175
- style: v({ borderColor: E(f).colorBorder })
176
- }, [l("div", Z, [
177
- d(E(N), {
178
- bordered: !1,
179
- size: "small",
180
- "head-style": {
181
- backgroundColor: E(f).colorBgLayout,
182
- borderRadius: 0,
183
- borderWidth: 0,
184
- borderBottomWidth: "1px",
185
- padding: 0
186
- },
187
- "body-style": {
188
- flex: 1,
189
- padding: 0,
190
- height: "calc(100% - 38px)"
191
- },
192
- style: v({
193
- boxShadow: "none",
194
- borderRadius: 0,
195
- borderColor: E(f).colorBorder
196
- }),
197
- class: "flex h-full flex-col w-1/2"
198
- }, {
199
- default: k(() => [l("div", Q, [d(K, {
200
- modelValue: E(w),
201
- "onUpdate:modelValue": t[0] ||= (e) => m(w) ? w.value = e : null,
202
- "group-id": E(T),
203
- "onUpdate:groupId": t[1] ||= (e) => m(T) ? T.value = e : null,
204
- group: e.group,
205
- onSelect: M
206
- }, null, 8, [
207
- "modelValue",
208
- "group-id",
209
- "group"
210
- ]), l("div", $, [E(_).loading || E(y).loading ? (b(), c("div", ee, [d(E(L))])) : (b(), o(E(F), {
211
- key: 1,
212
- value: E(g).map((e) => e.value),
213
- class: "w-full overflow-x-hidden"
214
- }, {
215
- default: k(() => [(b(!0), c(i, null, C(E(B), (e) => A((b(), c("div", {
216
- key: e.id,
217
- class: "w-full py-2 border-0 border-b border-solid truncate",
218
- style: v({ borderColor: E(f).colorBorder })
219
- }, [d(E(P), {
220
- value: e.id,
221
- onChange: (t) => H(t, e)
222
- }, {
223
- default: k(() => [d(J, { name: e.name }, null, 8, ["name"])]),
224
- _: 2
225
- }, 1032, ["value", "onChange"])], 4)), [[O, V(e)]])), 128))]),
226
- _: 1
227
- }, 8, ["value"]))])])]),
228
- _: 1
229
- }, 8, ["head-style", "style"]),
230
- l("div", {
231
- style: v({ borderColor: E(f).colorBorder }),
232
- class: "h-full border-0 border-r border-solid"
233
- }, null, 4),
234
- d(E(N), {
235
- bordered: !1,
236
- size: "small",
237
- "head-style": {
238
- backgroundColor: E(f).colorBgLayout,
239
- borderRadius: 0,
240
- borderWidth: 0,
241
- borderBottomWidth: "1px"
242
- },
243
- "body-style": {
244
- flex: 1,
245
- padding: 0,
246
- overflow: "hidden"
247
- },
248
- style: {
249
- boxShadow: "none",
250
- borderRadius: 0
251
- },
252
- class: "flex h-full flex-col flex-1"
253
- }, {
254
- title: k(() => t[5] ||= [l("span", { class: "font-normal" }, " 已选角色 ", -1)]),
255
- extra: k(() => [l("a", {
256
- style: v({ color: E(f).colorPrimary }),
257
- onClick: t[2] ||= (e) => G()
258
- }, " 清空 ", 4)]),
259
- default: k(() => [l("div", te, [(b(!0), c(i, null, C(E(g), (e) => (b(), c("div", {
260
- key: e.value,
261
- class: "inline-block mb-1 py-1 px-2 mx-0.5 max-w-full rounded",
262
- style: v({ backgroundColor: E(f).colorPrimaryBg })
263
- }, [d(J, {
264
- name: e.label,
265
- size: 20
266
- }, null, 8, ["name"]), E(_).roles.some((t) => t.id === e.value) ? (b(), o(E(j), {
267
- key: 0,
268
- class: "ml-1 cursor-pointer text-xs",
269
- style: v({ color: E(f).colorPrimary }),
270
- onClick: (t) => U(e.value)
271
- }, null, 8, ["style", "onClick"])) : s("v-if", !0)], 4))), 128))])]),
272
- _: 1
273
- }, 8, ["head-style"])
274
- ])], 4)]),
275
- _: 1
276
- }, 8, ["open"]));
277
- }
278
- }), re = ne;
279
- export { re as b };
@@ -1,6 +0,0 @@
1
- import "./cloneDeep-BnvyNhik.js";
2
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
3
- import "./enum-DUjQrWbG.js";
4
- import "./ResourceSelector-CxZ1ae30.js";
5
- import { b as e } from "./TenantEdit-Bt31IV9W.js";
6
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import "./RoleSelector-DTnDRRTQ.js";
3
- import { b as e } from "./UserAuthorization-Dhp0ZamX.js";
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./cloneDeep-BnvyNhik.js";
2
- import { b as e } from "./UserEdit-CqH6hxTZ.js";
3
- import "./OrgAndPosition-BK5MTlOO.js";
4
- export { e as default };
@@ -1,2 +0,0 @@
1
- import { b as e } from "./animation_item-D78koyTo.js";
2
- export { e as default };
@@ -1,2 +0,0 @@
1
- import { b as e } from "./browserType-DZrDbVVY.js";
2
- export { e as default };
@@ -1,8 +0,0 @@
1
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import "./enum-CUMv4gQ2.js";
3
- import { b as e } from "./createAndEditDataPermission-Bd3tlIEE.js";
4
- import "./enum-DUjQrWbG.js";
5
- import "./useAppAndResource-BgnrL15l.js";
6
- import "./ResourceSelector-CxZ1ae30.js";
7
- import "./enum-B-lkiBy0.js";
8
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import { b as e } from "./drawerBlackWhiteList-D-Sq4mul.js";
3
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import "./enum-Bg70i-vM.js";
3
- import { b as e } from "./drawerDictionary-Bw3w5PTm.js";
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import "./enum-Bg70i-vM.js";
3
- import { b as e } from "./drawerDictionaryItem-4WIgL3No.js";
4
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./enum-CUMv4gQ2.js";
2
- import { b as e } from "./drawerGroup-932n7Ywc.js";
3
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import { b as e } from "./drawerOrganization-IwZZkHWM.js";
3
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import { b as e } from "./drawerPosition-BiO92_At.js";
3
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./configData-CONUFxaH.js";
2
- import { b as e } from "./drawerRegion-CNOK55im.js";
3
- export { e as default };
@@ -1,215 +0,0 @@
1
- import { Z as e, a1 as t, a3 as n, am as r } from "./index.js";
2
- import { b as i } from "./useAppAndResource-BgnrL15l.js";
3
- import { b as ee } from "./ResourceSelector-CxZ1ae30.js";
4
- import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as te, openBlock as f, reactive as p, ref as m, renderList as ne, resolveComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
5
- import { message as y } from "ant-design-vue";
6
- import { Button as b, Drawer as x, Form as S, FormItem as C, Input as w, Select as T, Space as E, Switch as D, Textarea as O, Tooltip as k } from "ant-design-vue/es";
7
- let A = /* @__PURE__ */ function(e) {
8
- return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
9
- }({}), j = /* @__PURE__ */ function(e) {
10
- return e.OWNER = "1", e.ALL = "2", e;
11
- }({}), M = /* @__PURE__ */ function(e) {
12
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
13
- }({});
14
- const N = [{
15
- label: "仅自己",
16
- value: j.OWNER
17
- }, {
18
- label: "全部可见",
19
- value: j.ALL
20
- }];
21
- M.ON, M.OFF;
22
- const P = { class: "pt-10px" }, F = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, I = {
23
- key: 1,
24
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
25
- };
26
- var L = /* @__PURE__ */ d({
27
- name: "DrawerRole",
28
- __name: "drawerRole",
29
- emits: ["submit"],
30
- setup(d, { expose: h, emit: j }) {
31
- let M = j, { resourceModelRef: L, selectedResources: R, updateTreeDataAndResourceMap: z, setSelectedResources: B, updateSelectedResources: V, clearSelectedResources: H, openResourceModel: U } = i(), W = {
32
- name: [{
33
- required: !0,
34
- message: "请输入名称",
35
- trigger: "change"
36
- }, {
37
- min: 2,
38
- max: 32,
39
- message: "角色名称长度不能少于2位,不能超过32位",
40
- trigger: "change"
41
- }],
42
- code: [{
43
- required: !0,
44
- message: "请输入编号",
45
- trigger: "change"
46
- }, {
47
- min: 2,
48
- max: 32,
49
- message: "角色编码长度不能少于2位,不能超过32位",
50
- trigger: "change"
51
- }],
52
- viewScope: [{
53
- required: !0,
54
- message: "请选择可见范围",
55
- trigger: "change"
56
- }],
57
- resourceIds: [{
58
- required: !0,
59
- validator: G,
60
- trigger: ["blur", "change"]
61
- }]
62
- };
63
- function G(e, t) {
64
- return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择所属资源"));
65
- }
66
- let K = p({
67
- title: "",
68
- type: ""
69
- }), [q, J] = r(!1), Y = m(), X = m({ enable: !0 });
70
- async function Z(t, n) {
71
- if (K.title = t, t === A.EDIT) {
72
- let t = await e({ id: n?.id });
73
- t.success && (X.value = t.data ?? {}, await z(""), X.value.resourceIds && V(X.value.resourceIds));
74
- } else X.value = { enable: !0 }, H(), await z("");
75
- J(!0);
76
- }
77
- let [re, Q] = r(!1);
78
- function ie() {
79
- let e = K.title === A.EDIT ? n : t;
80
- Y.value?.validate().then(() => {
81
- Q(!0);
82
- let t = { ...X.value };
83
- e(t).then((e) => {
84
- e.success && (y.success(`${K.title}成功!`), J(!1), M("submit"));
85
- }).finally(() => Q(!1));
86
- });
87
- }
88
- function $() {
89
- X.value = { enable: !0 }, J(!1);
90
- }
91
- function ae() {
92
- X.value.resourceIds ? U(X.value.resourceIds) : U([]);
93
- }
94
- function oe(e) {
95
- X.value.resourceIds = e.map((e) => e.id), B(e);
96
- }
97
- return h({ open: Z }), (e, t) => {
98
- let n = w, r = C, i = T, d = D, p = O, m = b, h = k, y = S, j = E, M = x;
99
- return f(), o(M, {
100
- open: _(q),
101
- "onUpdate:open": t[6] ||= (e) => te(q) ? q.value = e : null,
102
- title: `${_(K).title}角色`,
103
- placement: "right",
104
- width: 600,
105
- "destroy-on-close": "",
106
- "footer-style": { textAlign: "right" },
107
- onClose: $
108
- }, {
109
- footer: v(() => [u(j, null, {
110
- default: v(() => [u(m, { onClick: $ }, {
111
- default: v(() => t[8] ||= [l(" 取消 ")]),
112
- _: 1,
113
- __: [8]
114
- }), u(m, {
115
- type: "primary",
116
- loading: _(re),
117
- onClick: t[5] ||= (e) => ie()
118
- }, {
119
- default: v(() => t[9] ||= [l(" 提交 ")]),
120
- _: 1,
121
- __: [9]
122
- }, 8, ["loading"])]),
123
- _: 1
124
- })]),
125
- default: v(() => [u(y, {
126
- ref_key: "formRef",
127
- ref: Y,
128
- model: _(X),
129
- rules: W,
130
- "label-col": { span: 4 }
131
- }, {
132
- default: v(() => [
133
- u(r, {
134
- label: "角色名称",
135
- name: "name"
136
- }, {
137
- default: v(() => [u(n, {
138
- value: _(X).name,
139
- "onUpdate:value": t[0] ||= (e) => _(X).name = e,
140
- maxlength: 32
141
- }, null, 8, ["value"])]),
142
- _: 1
143
- }),
144
- u(r, {
145
- label: "角色编号",
146
- name: "code"
147
- }, {
148
- default: v(() => [u(n, {
149
- value: _(X).code,
150
- "onUpdate:value": t[1] ||= (e) => _(X).code = e,
151
- disabled: _(K).title === _(A).EDIT,
152
- maxlength: 32
153
- }, null, 8, ["value", "disabled"])]),
154
- _: 1
155
- }),
156
- u(r, {
157
- label: "可见范围",
158
- name: "viewScope"
159
- }, {
160
- default: v(() => [u(i, {
161
- value: _(X).viewScope,
162
- "onUpdate:value": t[2] ||= (e) => _(X).viewScope = e,
163
- options: _(N)
164
- }, null, 8, ["value", "options"])]),
165
- _: 1
166
- }),
167
- u(r, { label: "是否启用" }, {
168
- default: v(() => [u(d, {
169
- checked: _(X).enable,
170
- "onUpdate:checked": t[3] ||= (e) => _(X).enable = e
171
- }, null, 8, ["checked"])]),
172
- _: 1
173
- }),
174
- u(r, { label: "角色描述" }, {
175
- default: v(() => [u(p, {
176
- value: _(X).description,
177
- "onUpdate:value": t[4] ||= (e) => _(X).description = e,
178
- maxlength: 250,
179
- "show-count": ""
180
- }, null, 8, ["value"])]),
181
- _: 1
182
- }),
183
- u(r, {
184
- label: "所属资源",
185
- name: "resourceIds"
186
- }, {
187
- default: v(() => [u(m, {
188
- type: "primary",
189
- onClick: ae
190
- }, {
191
- default: v(() => t[7] ||= [l(" 编辑资源 ")]),
192
- _: 1,
193
- __: [7]
194
- }), c("div", P, [(f(!0), s(a, null, ne(_(R), (e) => (f(), s(a, { key: e }, [e.name.length > 20 ? (f(), o(h, {
195
- key: 0,
196
- title: e.name
197
- }, {
198
- default: v(() => [c("span", F, g(`${e.name.slice(0, 20)}...`), 1)]),
199
- _: 2
200
- }, 1032, ["title"])) : (f(), s("span", I, g(e.name), 1))], 64))), 128))])]),
201
- _: 1
202
- })
203
- ]),
204
- _: 1
205
- }, 8, ["model"]), u(ee, {
206
- ref_key: "resourceModelRef",
207
- ref: L,
208
- onSelect: oe
209
- }, null, 512)]),
210
- _: 1
211
- }, 8, ["open", "title"]);
212
- };
213
- }
214
- }), R = L;
215
- export { R as b, A as c, N as d };
@@ -1,5 +0,0 @@
1
- import "./enum-DUjQrWbG.js";
2
- import "./useAppAndResource-BgnrL15l.js";
3
- import "./RoleSelector-DTnDRRTQ.js";
4
- import { b as e } from "./drawerRole-IIsKhycU.js";
5
- export { e as default };
@@ -1,6 +0,0 @@
1
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import "./enum-DUjQrWbG.js";
3
- import "./useAppAndResource-BgnrL15l.js";
4
- import "./ResourceSelector-CxZ1ae30.js";
5
- import { b as e } from "./drawerRole-BaQBb2-J.js";
6
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./RoleSelector-DTnDRRTQ.js";
2
- import { b as e } from "./drawerRole-PnDochPg.js";
3
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import "./browserType-DZrDbVVY.js";
3
- import { b as e } from "./loginHistoryDetail-DgHx6n66.js";
4
- export { e as default };
@@ -1,2 +0,0 @@
1
- import { b as e } from "./not-data-DejN9beo.js";
2
- export { e as default };
@@ -1,4 +0,0 @@
1
- import "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import "./browserType-DZrDbVVY.js";
3
- import { b as e } from "./operateHistoryDetail-BrdNmYD0.js";
4
- export { e as default };
@@ -1,77 +0,0 @@
1
- import { b as e } from "./_plugin-vue_export-helper-Bvl99pNT.js";
2
- import { b as t } from "./animation_item-D78koyTo.js";
3
- import { b as n } from "./HCheckList-3zLNVNr0.js";
4
- import { PubinfoIcon as r } from "pubinfo";
5
- import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, isRef as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, watch as g, withCtx as _ } from "vue";
6
- import { Switch as v, Tooltip as y } from "ant-design-vue/es";
7
- import './setItem.css';const b = { class: "flex flex-col" }, x = { class: "flex flex-row items-center justify-between h-24px" }, S = { class: "flex flex-row items-center" }, C = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, w = { class: "h-full w-[75%] rounded-[8px] jb flex justify-center" };
8
- var T = /* @__PURE__ */ l({
9
- name: "SetItem",
10
- __name: "setItem",
11
- props: {
12
- name: { default: "" },
13
- descripe: { default: "" },
14
- type: { default: "" },
15
- open: {
16
- type: Boolean,
17
- default: !1
18
- },
19
- activeStyle: { default: "" },
20
- styleOptions: { default: () => [] },
21
- lightAnimationData: { default: "" },
22
- darkAnimationData: { default: "" }
23
- },
24
- emits: ["change"],
25
- setup(e, { emit: l }) {
26
- let p = e, T = l, E = f(p.open), D = f(p.activeStyle), O = f();
27
- function k() {
28
- O.value && O.value?.play();
29
- }
30
- function A() {
31
- O.value && O.value?.stop();
32
- }
33
- return g(() => E.value, () => {
34
- T("change", E.value);
35
- }), g(() => D.value, () => {
36
- T("change", D.value);
37
- }), (e, l) => {
38
- let f = r, g = y, T = v;
39
- return d(), o("div", b, [s("div", x, [
40
- s("div", S, [s("span", C, m(p.name), 1), p.descripe ? (d(), i(g, {
41
- key: 0,
42
- title: p.descripe
43
- }, {
44
- default: _(() => [c(f, {
45
- name: "i-ri-question-line",
46
- class: "text-[#4E5969] dark:text-[#C9CDD4]"
47
- })]),
48
- _: 1
49
- }, 8, ["title"])) : a("v-if", !0)]),
50
- p.type === "switch" ? (d(), i(T, {
51
- key: 0,
52
- checked: h(E),
53
- "onUpdate:checked": l[0] ||= (e) => u(E) ? E.value = e : null,
54
- "checked-children": "开启",
55
- "un-checked-children": "关闭"
56
- }, null, 8, ["checked"])) : a("v-if", !0),
57
- p.type === "check" ? (d(), i(n, {
58
- key: 1,
59
- modelValue: h(D),
60
- "onUpdate:modelValue": l[1] ||= (e) => u(D) ? D.value = e : null,
61
- class: "custom_style h-24px",
62
- options: e.styleOptions
63
- }, null, 8, ["modelValue", "options"])) : a("v-if", !0)
64
- ]), s("div", {
65
- class: "mt-[16px] item_ani flex-1 dark:bg-[#3a3e43]! dark:border-transparent!",
66
- onMouseenter: l[2] ||= (e) => k(),
67
- onMouseleave: l[3] ||= (e) => A()
68
- }, [s("div", w, [c(t, {
69
- ref_key: "animateItem",
70
- ref: O,
71
- "light-animation-data": p.lightAnimationData,
72
- "dark-animation-data": p.darkAnimationData
73
- }, null, 8, ["light-animation-data", "dark-animation-data"])])], 32)]);
74
- };
75
- }
76
- }), E = /* @__PURE__ */ e(T, [["__scopeId", "data-v-b486c805"]]);
77
- export { E as b };