@pubinfo-pr/module-rbac 0.203.3 → 0.203.5

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 (306) hide show
  1. package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
  2. package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
  3. package/dist/HCheckList-CAhQwX7m.js +39 -0
  4. package/dist/HoverCard-B-uU48hF.js +46 -0
  5. package/dist/IconSelect-CvxGRN_O.js +719 -0
  6. package/dist/ImportExport-CzZssb7_.js +345 -0
  7. package/dist/ImportExport-b1SnWRLj.js +6 -0
  8. package/dist/LayoutForm-Bpdyi_2o.js +129 -0
  9. package/dist/MetaForm-ZLzLz68d.js +39037 -0
  10. package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
  11. package/dist/OrgSelector-C2rPIonI.js +4877 -0
  12. package/dist/OrgSelector.css +1 -0
  13. package/dist/ResourceEdit-9fvxbd0K.js +383 -0
  14. package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
  15. package/dist/ResourceRelation-BrluMHdX.js +81 -0
  16. package/dist/ResourceRelation-IJvXnlpo.js +95 -0
  17. package/dist/RoleRelation-DuRuQG08.js +82 -0
  18. package/dist/RoleSelector-BTNYbcC6.js +282 -0
  19. package/dist/TenantEdit-Df3gZKLA.js +249 -0
  20. package/dist/UserAuthorization-DX7jNDDe.js +237 -0
  21. package/dist/UserEdit-BLb0n7WM.js +322 -0
  22. package/dist/_baseClone-C7vkGgsW.js +138 -0
  23. package/dist/_initCloneObject-r-eWKqzl.js +531 -0
  24. package/dist/add-child-DPb_m2by.js +4 -0
  25. package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
  26. package/dist/assist-BRMYD-oT.js +89 -0
  27. package/dist/authority-B9wtmsQd.js +4 -0
  28. package/dist/authorize-DxrutyIG.js +4 -0
  29. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  30. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  31. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  32. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  33. package/dist/browser-chrome-CM60RcrG.js +4 -0
  34. package/dist/browser-edge-4LBRzooM.js +4 -0
  35. package/dist/browser-ie-BF-wqbf6.js +4 -0
  36. package/dist/browser-other-iXJH-9iL.js +4 -0
  37. package/dist/browser-safari-CIpt0yPc.js +4 -0
  38. package/dist/browserType-Bik20-72.js +28 -0
  39. package/dist/chunk-WQLz0Won.js +20 -0
  40. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  41. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  42. package/dist/data-permission-2pzeFLxP.js +159 -0
  43. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  44. package/dist/dictionary-DGqlAhRk.js +182 -0
  45. package/dist/dist-DxAYQq3U.js +21 -0
  46. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  47. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  48. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  49. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  50. package/dist/drawerOrganization-DWhTc1fB.js +253 -0
  51. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  52. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  53. package/dist/drawerRole-B348x40k.js +214 -0
  54. package/dist/drawerRole-CgAPM-0g.js +172 -0
  55. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  56. package/dist/edit-Drp8yjRe.js +4 -0
  57. package/dist/enum-CG0P82pn.js +6 -0
  58. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  59. package/dist/enum-CYCebJeC.js +62 -0
  60. package/dist/enum-DS4SGhiF.js +6 -0
  61. package/dist/enum-zdKA3Jy-.js +23 -0
  62. package/dist/group-C6Rj3K5I.js +178 -0
  63. package/dist/icard-BULUUV5m.js +4 -0
  64. package/dist/icon_animation-DuEY1FMm.js +4 -0
  65. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  66. package/dist/icon_copyright-C1BER6kq.js +4 -0
  67. package/dist/icon_jt-ICOdrIF6.js +4 -0
  68. package/dist/icon_layout-D_wV9rX3.js +4 -0
  69. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  70. package/dist/icon_menu-y7SblUoR.js +4 -0
  71. package/dist/icon_page_size-BjwT656E.js +4 -0
  72. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  73. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  74. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  75. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  76. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  77. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  78. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  79. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  80. package/dist/index.css +1 -1
  81. package/dist/index.js +588 -6776
  82. package/dist/isEmpty-2rx9iUQv.js +14 -0
  83. package/dist/isEqual-CNeQLaCM.js +474 -0
  84. package/dist/itemlist-BGe-z1IR.js +159 -0
  85. package/dist/json-asset-03f0a035.json +1 -0
  86. package/dist/json-asset-0ee63e7f.json +1 -0
  87. package/dist/json-asset-10eef4fe.json +1 -0
  88. package/dist/json-asset-13f452f1.json +1 -0
  89. package/dist/json-asset-14b7b290.json +1 -0
  90. package/dist/json-asset-15b8cef1.json +1 -0
  91. package/dist/json-asset-15f77960.json +1 -0
  92. package/dist/json-asset-1ae9b726.json +1 -0
  93. package/dist/json-asset-1b02359f.json +1 -0
  94. package/dist/json-asset-1ef286cd.json +1 -0
  95. package/dist/json-asset-23cfd18c.json +1 -0
  96. package/dist/json-asset-265a0a5d.json +1 -0
  97. package/dist/json-asset-28d57c49.json +1 -0
  98. package/dist/json-asset-2b54ed10.json +1 -0
  99. package/dist/json-asset-2bb6f642.json +1 -0
  100. package/dist/json-asset-2cdc07bd.json +1 -0
  101. package/dist/json-asset-31c58607.json +1 -0
  102. package/dist/json-asset-32884f23.json +1 -0
  103. package/dist/json-asset-32fca43a.json +1 -0
  104. package/dist/json-asset-3a75445b.json +1 -0
  105. package/dist/json-asset-3f27d67c.json +1 -0
  106. package/dist/json-asset-4189453f.json +1 -0
  107. package/dist/json-asset-4702b37c.json +1 -0
  108. package/dist/json-asset-520a5c68.json +1 -0
  109. package/dist/json-asset-56bea508.json +1 -0
  110. package/dist/json-asset-57c732a3.json +1 -0
  111. package/dist/json-asset-5be4a28f.json +1 -0
  112. package/dist/json-asset-5e6d7cfa.json +1 -0
  113. package/dist/json-asset-64e176c9.json +1 -0
  114. package/dist/json-asset-6583dca6.json +1 -0
  115. package/dist/json-asset-66c640c6.json +1 -0
  116. package/dist/json-asset-68393156.json +1 -0
  117. package/dist/json-asset-688465aa.json +1 -0
  118. package/dist/json-asset-6bf334f4.json +1 -0
  119. package/dist/json-asset-7b4f72ce.json +1 -0
  120. package/dist/json-asset-837ec087.json +1 -0
  121. package/dist/json-asset-838ac1ba.json +1 -0
  122. package/dist/json-asset-8465c2cf.json +1 -0
  123. package/dist/json-asset-9e9f04a4.json +1 -0
  124. package/dist/json-asset-a13964cb.json +1 -0
  125. package/dist/json-asset-ab93a057.json +1 -0
  126. package/dist/json-asset-abe308fc.json +1 -0
  127. package/dist/json-asset-b24f2cd3.json +1 -0
  128. package/dist/json-asset-bf00eaed.json +1 -0
  129. package/dist/json-asset-cb22efd7.json +1 -0
  130. package/dist/json-asset-cb953f20.json +1 -0
  131. package/dist/json-asset-cc209e34.json +1 -0
  132. package/dist/json-asset-cfdffceb.json +1 -0
  133. package/dist/json-asset-d33c0299.json +1 -0
  134. package/dist/json-asset-d430c8ca.json +1 -0
  135. package/dist/json-asset-d8cfa560.json +1 -0
  136. package/dist/json-asset-da91beb6.json +1 -0
  137. package/dist/json-asset-e2bdf85c.json +1 -0
  138. package/dist/json-asset-e34ad826.json +1 -0
  139. package/dist/json-asset-e80720aa.json +1 -0
  140. package/dist/json-asset-e894bc92.json +1 -0
  141. package/dist/json-asset-f28020f2.json +1 -0
  142. package/dist/json-asset-f71ebbf4.json +1 -0
  143. package/dist/json-asset-fb1f4917.json +1 -0
  144. package/dist/json-asset-ff2e97c4.json +1 -0
  145. package/dist/layout_setting-Cds3TCHc.js +71 -0
  146. package/dist/log-DOMU9MyH.js +18 -0
  147. package/dist/log-center-BrGlNhMd.js +4 -0
  148. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  149. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  150. package/dist/menu_setting-Br5dOEUk.js +158 -0
  151. package/dist/not-data-C-MacYF3.js +5 -0
  152. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  153. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  154. package/dist/org-main-BRMBumDm.js +4 -0
  155. package/dist/org-unmain-0BHnrNdD.js +4 -0
  156. package/dist/organization-BbFERZ1l.js +15411 -0
  157. package/dist/other_setting-D92SlFvl.js +216 -0
  158. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  159. package/dist/page_w_setting-DryWrqcx.js +66 -0
  160. package/dist/position-B1bqGly6.js +169 -0
  161. package/dist/rbac-B59CVHDt.js +460 -0
  162. package/dist/region-B_n1KXMG.js +182 -0
  163. package/dist/remove-BTME2Fhs.js +4 -0
  164. package/dist/request-7X2hpUru.js +5 -0
  165. package/dist/resource-CPNNd1l0.js +275 -0
  166. package/dist/resource-app-D8to3Lkn.js +4 -0
  167. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  168. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  169. package/dist/resource-index-D2roT002.js +4 -0
  170. package/dist/resource-menu-BRER68rK.js +4 -0
  171. package/dist/resource-micro-Hyucl9de.js +4 -0
  172. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  173. package/dist/role-CMd7WDRC.js +195 -0
  174. package/dist/role_group-DHh2s911.js +174 -0
  175. package/dist/safe_setting-CuTBmUve.js +225 -0
  176. package/dist/setItem-BwXZ5Uqx.js +4 -0
  177. package/dist/setItem-DlhIkIgh.js +78 -0
  178. package/dist/setting-manage-UHelpLrr.js +4 -0
  179. package/dist/stores-C-zbXsms.js +2 -0
  180. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  181. package/dist/tenant-B_vgufMG.js +180 -0
  182. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  183. package/dist/theme-title-BRvQ_qPg.js +4 -0
  184. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  185. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  186. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  187. package/dist/user-BhytPqnx.js +348 -0
  188. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  189. package/dist/view-Cridj7u2.js +4 -0
  190. package/dist/view-lBxqXfPW.js +114 -0
  191. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  192. package/dist/zddata-CnvPWtIW.js +4 -0
  193. package/dist/zy_checked-C25HQlnr.js +4 -0
  194. package/dist/zy_default-B7RKtyqy.js +4 -0
  195. package/package.json +3 -3
  196. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  197. package/dist/HCheckList-ODQHidN8.js +0 -37
  198. package/dist/HoverCard-CmJCoa2b.js +0 -44
  199. package/dist/IconSelect-DouEg3xY.js +0 -717
  200. package/dist/ImportExport-DisdLoY8.js +0 -342
  201. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  202. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  203. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  204. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  205. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  206. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  207. package/dist/RoleRelation-BQQFaum0.js +0 -79
  208. package/dist/RoleSelector-gkar_UGG.js +0 -275
  209. package/dist/TenantEdit-BsahDUlf.js +0 -246
  210. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  211. package/dist/UserEdit-CX3Qau8T.js +0 -320
  212. package/dist/add-child-CFHHkjfg.js +0 -2
  213. package/dist/authority-L7SfiMdP.js +0 -2
  214. package/dist/authorize-qMpV_BXT.js +0 -2
  215. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  216. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  217. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  218. package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
  219. package/dist/browser-chrome-DuAegVCe.js +0 -2
  220. package/dist/browser-edge-DzkWdXRd.js +0 -2
  221. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  222. package/dist/browser-other-BmkifoYq.js +0 -2
  223. package/dist/browser-safari-CXrCuF2a.js +0 -2
  224. package/dist/browserType-B8A1Osvk.js +0 -26
  225. package/dist/chunk-DiMWNkAf.js +0 -18
  226. package/dist/cloneDeep-CSOSavu3.js +0 -6
  227. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  228. package/dist/data-permission-LpuDLDm0.js +0 -152
  229. package/dist/dictionary-CEaxjqZe.js +0 -179
  230. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  231. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  232. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  233. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  234. package/dist/drawerOrganization-CwtSFUj0.js +0 -247
  235. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  236. package/dist/drawerRegion-DAwY_29K.js +0 -183
  237. package/dist/drawerRole-B7uCfHk-.js +0 -154
  238. package/dist/drawerRole-DK6DrinO.js +0 -209
  239. package/dist/drawerRole-DrzMHL0O.js +0 -167
  240. package/dist/edit-fZ7h_z_Z.js +0 -2
  241. package/dist/enum-3mYayxff.js +0 -61
  242. package/dist/enum-Cr7uWnB2.js +0 -23
  243. package/dist/enum-D2UEJsrC.js +0 -4
  244. package/dist/group-CaOhkh72.js +0 -172
  245. package/dist/icard-H-d9Pip-.js +0 -2
  246. package/dist/icon_animation-BCdRKkE5.js +0 -2
  247. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  248. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  249. package/dist/icon_jt-DOMTq9De.js +0 -2
  250. package/dist/icon_layout-DKqAThpM.js +0 -2
  251. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  252. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  253. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  254. package/dist/icon_position_type-JDFdklRh.js +0 -2
  255. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  256. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  257. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  258. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  259. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  260. package/dist/icon_topbar-Bc379eaS.js +0 -2
  261. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  262. package/dist/isEmpty-BjEzPyCa.js +0 -12
  263. package/dist/itemlist-CFwRUV2Y.js +0 -156
  264. package/dist/layout_setting-79srmFgJ.js +0 -68
  265. package/dist/log-BYris9iT.js +0 -14
  266. package/dist/log-center-CGT-BGAN.js +0 -2
  267. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  268. package/dist/menu_setting-ChueWHs4.js +0 -155
  269. package/dist/not-data-Bml86wdH.js +0 -3
  270. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  271. package/dist/org-main-DnftBa38.js +0 -2
  272. package/dist/org-unmain-ByMarqFw.js +0 -2
  273. package/dist/organization-Dv3FbKke.js +0 -15316
  274. package/dist/other_setting-BEV_UK0g.js +0 -213
  275. package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
  276. package/dist/page_w_setting-Q--ct16C.js +0 -63
  277. package/dist/position-CCZ2MSMP.js +0 -166
  278. package/dist/region-D3mjqB8H.js +0 -179
  279. package/dist/remove-DfZZBE2T.js +0 -2
  280. package/dist/resource-DaQ7CvM_.js +0 -271
  281. package/dist/resource-app-QSLZ7Hts.js +0 -2
  282. package/dist/resource-btn-BcB4xMgR.js +0 -2
  283. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  284. package/dist/resource-index-BIHr3PZY.js +0 -2
  285. package/dist/resource-menu-0JSNn7S7.js +0 -2
  286. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  287. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  288. package/dist/role-4UgEw3nH.js +0 -192
  289. package/dist/role_group-hkRlCnyl.js +0 -171
  290. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  291. package/dist/setItem-Vkcwkj-O.js +0 -77
  292. package/dist/setting-manage-C9whamLP.js +0 -2
  293. package/dist/stores-DPQF8JRt.js +0 -2
  294. package/dist/tabbar_setting-kbuTvrLB.js +0 -139
  295. package/dist/tenant-lWfGw2u1.js +0 -177
  296. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  297. package/dist/theme-title-BCYnl2jK.js +0 -2
  298. package/dist/theme_setting-CEb7UYQO.js +0 -111
  299. package/dist/toolbar_setting-BG-k2UFc.js +0 -140
  300. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  301. package/dist/user-BkUpcQC8.js +0 -339
  302. package/dist/view-Bnu34EJT.js +0 -2
  303. package/dist/watermark_setting-Cl2EtPAa.js +0 -191
  304. package/dist/zddata-Ceyga3_2.js +0 -2
  305. package/dist/zy_checked-DvD7k9F8.js +0 -2
  306. package/dist/zy_default-DJ2tB3Fo.js +0 -2
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/view.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2016%2017'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3crect%20width='3.773'%20height='1.5'%20x='13.66'%20y='14.82'%20fill='%23165DFF'%20rx='.75'%20transform='rotate(-135%2013.66%2014.82)'/%3e%3crect%20width='10.102'%20height='10.102'%20x='2.178'%20y='2.353'%20stroke='%23165DFF'%20rx='5.051'/%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,114 @@
1
+ import { getAllRouteModules as e, readProjectModules as t } from "pubinfo-pr";
2
+ import { defineStore as n } from "pinia";
3
+ import { readonly as r, ref as i } from "vue";
4
+ //#region src/stores/view.ts
5
+ var a = n("view", () => {
6
+ let n = i({}), a = i(/* @__PURE__ */ new Map()), o = i([]), s = i(0), c = i(!1);
7
+ function l() {
8
+ let r = t()?.pages || {};
9
+ n.value = Object.keys(r).reduce((e, t) => (e[t] = t, e), {});
10
+ let i = e(), o = /* @__PURE__ */ new Map();
11
+ for (let [e, t] of i) {
12
+ let n = Object.keys(t).reduce((e, t) => (e[t] = t, e), {});
13
+ o.set(e, n);
14
+ }
15
+ a.value = o, u();
16
+ }
17
+ function u() {
18
+ let e = [];
19
+ if (Object.keys(n.value).length > 0) {
20
+ let t = Object.keys(n.value);
21
+ e.push(d("本地", "local", t));
22
+ }
23
+ for (let [t, n] of a.value) Object.keys(n).length > 0 && e.push(d(t, `module:${t}`, Object.keys(n), t));
24
+ o.value = e;
25
+ }
26
+ function d(e, t, n, r) {
27
+ let i = {
28
+ title: e,
29
+ key: t,
30
+ root: !0,
31
+ module: t !== "local",
32
+ children: []
33
+ }, a = (e, t, n) => {
34
+ e.children ||= [];
35
+ let r = e.children.find((e) => e.title === t && !e.isLeaf);
36
+ return r || (r = {
37
+ title: t,
38
+ key: n,
39
+ children: []
40
+ }, e.children.push(r)), r;
41
+ };
42
+ for (let e of n) {
43
+ let n = e.split("/").filter(Boolean), o = i, s = t;
44
+ for (let t = 0; t < n.length; t++) {
45
+ let i = n[t];
46
+ s = s ? `${s}/${i}` : i, t === n.length - 1 ? (o.children = o.children || [], o.children.push({
47
+ title: i,
48
+ key: s,
49
+ isLeaf: !0,
50
+ value: e,
51
+ scope: r
52
+ })) : o = a(o, i, s);
53
+ }
54
+ }
55
+ return i;
56
+ }
57
+ function f(e) {
58
+ let { action: t, file: n, timestamp: r } = e.data;
59
+ s.value = r, t === "add" ? p(n) : t === "unlink" && m(n), u();
60
+ }
61
+ function p(e) {
62
+ let t = e.replace(/^.*\/src\//, "src/");
63
+ t.startsWith("src/views/") && t.endsWith(".vue") && (n.value = {
64
+ ...n.value,
65
+ [t]: t
66
+ });
67
+ }
68
+ function m(e) {
69
+ let t = e.replace(/^.*\/src\//, "src/");
70
+ if (t.startsWith("src/views/") && t.endsWith(".vue")) {
71
+ let e = { ...n.value };
72
+ delete e[t], n.value = e;
73
+ }
74
+ }
75
+ function h(e) {
76
+ c.value = e;
77
+ }
78
+ function g() {
79
+ return o.value;
80
+ }
81
+ function _() {
82
+ l();
83
+ }
84
+ function v(e) {
85
+ if (!e.trim()) return o.value;
86
+ let t = e.trim().toLowerCase(), n = (e) => {
87
+ let r = [];
88
+ for (let i of e) {
89
+ let e = i.title.toLowerCase(), a = (i.value || "").toLowerCase(), o = i.key.toLowerCase(), s = e.includes(t) || a.includes(t) || o.includes(t), c;
90
+ if (i.children && i.children.length > 0 && (c = n(i.children)), s || c && c.length > 0) {
91
+ let e = { ...i };
92
+ c && (e.children = c), r.push(e);
93
+ }
94
+ }
95
+ return r;
96
+ };
97
+ return n(o.value);
98
+ }
99
+ return {
100
+ projectPages: r(n),
101
+ modulePages: r(a),
102
+ routeTree: r(o),
103
+ lastUpdateTime: r(s),
104
+ wsConnected: r(c),
105
+ initializeRouteData: l,
106
+ handleFileChange: f,
107
+ setWebSocketConnected: h,
108
+ getRouteTreeData: g,
109
+ refreshRouteTree: _,
110
+ filterRouteTree: v
111
+ };
112
+ });
113
+ //#endregion
114
+ export { a as t };
@@ -0,0 +1,194 @@
1
+ import "./request-7X2hpUru.js";
2
+ import { h as e, l as t } from "./index.js";
3
+ import { t as n } from "./stores-C-zbXsms.js";
4
+ import { t as r } from "./animation_item-Coe-B0jQ.js";
5
+ import { PubinfoIcon as i, updateWatermark as a } from "pubinfo-pr";
6
+ import { createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, openBlock as f, reactive as p, ref as m, unref as h, withCtx as g } from "vue";
7
+ import { PlusOutlined as _ } from "@ant-design/icons-vue";
8
+ import { message as v } from "ant-design-vue";
9
+ import { Button as y, Divider as b, Input as x, InputNumber as S, Select as C, Space as w, Switch as T } from "ant-design-vue/es";
10
+ import './watermark_setting.css';//#region src/assets/lottie/watermark/dark/enableWatermark.json?url
11
+ var E = new URL("json-asset-688465aa.json", import.meta.url).href, D = new URL("json-asset-cb22efd7.json", import.meta.url).href, O = { class: "w-full h-full p-10px" }, k = { class: "w-full h-full bg-white overflow-y-auto p-10px box-border dark:bg-[#141414]" }, A = { class: "h-[38px] pl-[16px] flex flex-row items-center bar-header" }, j = { class: "px-30px py-20px max-w-1300px flex flex-wrap" }, M = { class: "h-full w-[75%] rounded-[8px] jb flex justify-center" }, N = { class: "pt-0px" }, P = { class: "flex items-center mb-20px w-560px" }, F = { class: "flex items-center mb-20px w-560px" }, I = { class: "flex items-center mb-20px w-560px" }, ee = { class: "flex-1" }, L = { class: "flex items-center mb-20px w-560px" }, R = { class: "flex items-center mb-20px w-560px" }, z = { class: "flex items-center mb-20px w-560px" }, B = { class: "flex items-center mb-20px w-560px" }, V = { class: "flex items-center flex-row-reverse w-560px" }, H = /* @__PURE__ */ e(/* @__PURE__ */ u({
12
+ name: "WatermarkSetting",
13
+ __name: "index",
14
+ setup(e) {
15
+ let H = u({
16
+ props: { vnodes: {
17
+ type: Object,
18
+ required: !0
19
+ } },
20
+ setup(e) {
21
+ return () => e.vnodes;
22
+ }
23
+ }), U = n(), W = m();
24
+ function G() {
25
+ W.value && W.value?.play();
26
+ }
27
+ function K() {
28
+ W.value && W.value?.stop();
29
+ }
30
+ let q = m({
31
+ text: U.globalSettings.watermark.text,
32
+ x: U.globalSettings.watermark.x,
33
+ y: U.globalSettings.watermark.y,
34
+ x_space: U.globalSettings.watermark.x_space,
35
+ y_space: U.globalSettings.watermark.y_space,
36
+ alpha: U.globalSettings.watermark.alpha,
37
+ width: U.globalSettings.watermark.width,
38
+ enable: U.globalSettings.watermark.enable
39
+ }), J = p([
40
+ {
41
+ label: "组织名称",
42
+ value: "O"
43
+ },
44
+ {
45
+ label: "用户名称",
46
+ value: "U"
47
+ },
48
+ {
49
+ label: "组织名称 用户名称",
50
+ value: "OU"
51
+ }
52
+ ]), Y = m("");
53
+ function X(e) {
54
+ e.preventDefault(), Y.value &&= (J.push({
55
+ label: Y.value,
56
+ value: Y.value
57
+ }), "");
58
+ }
59
+ function Z(e) {
60
+ t({ content: e }).then((e) => {
61
+ e.success && (v.success("设置成功"), a());
62
+ });
63
+ }
64
+ function Q() {
65
+ q.value = {
66
+ text: U.globalSettings.watermark.text,
67
+ x: U.globalSettings.watermark.x,
68
+ y: U.globalSettings.watermark.y,
69
+ x_space: U.globalSettings.watermark.x_space,
70
+ y_space: U.globalSettings.watermark.y_space,
71
+ alpha: U.globalSettings.watermark.alpha,
72
+ width: U.globalSettings.watermark.width,
73
+ enable: U.globalSettings.watermark.enable
74
+ };
75
+ }
76
+ function $() {
77
+ U.globalSettings.watermark.text = q.value.text, U.globalSettings.watermark.width = q.value.width, U.globalSettings.watermark.x = q.value.x, U.globalSettings.watermark.y = q.value.y, U.globalSettings.watermark.x_space = q.value.x_space, U.globalSettings.watermark.y_space = q.value.y_space, U.globalSettings.watermark.alpha = q.value.alpha, U.globalSettings.watermark.enable = q.value.enable, Z(JSON.stringify({ watermark: {
78
+ text: q.value.text,
79
+ width: q.value.width,
80
+ x: q.value.x,
81
+ y: q.value.y,
82
+ x_space: q.value.x_space,
83
+ y_space: q.value.y_space,
84
+ alpha: q.value.alpha,
85
+ enable: q.value.enable
86
+ } }));
87
+ }
88
+ return (e, t) => {
89
+ let n = i, a = b, u = x, p = _, m = y, v = w, U = C, Z = S, te = T;
90
+ return f(), o("div", O, [s("div", k, [s("div", A, [l(n, {
91
+ name: "icon_watermark",
92
+ class: "text-base mr-[6px]",
93
+ size: 22
94
+ }), t[11] ||= s("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页面水印", -1)]), s("div", j, [s("div", {
95
+ class: "w-400px h-270px mr-60px mb-20px item_ani dark:bg-[#3a3e43]! dark:border-transparent!",
96
+ onMouseenter: t[0] ||= (e) => G(),
97
+ onMouseleave: t[1] ||= (e) => K()
98
+ }, [s("div", M, [l(r, {
99
+ ref_key: "animateItem",
100
+ ref: W,
101
+ "light-animation-data": h(D),
102
+ "dark-animation-data": h(E)
103
+ }, null, 8, ["light-animation-data", "dark-animation-data"])])], 32), s("div", N, [
104
+ s("div", P, [t[13] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印文案", -1), l(U, {
105
+ value: h(q).text,
106
+ "onUpdate:value": t[3] ||= (e) => h(q).text = e,
107
+ class: "flex-1",
108
+ options: h(J).map((e) => ({ ...e }))
109
+ }, {
110
+ dropdownRender: g(({ menuNode: e }) => [
111
+ l(h(H), { vnodes: e }, null, 8, ["vnodes"]),
112
+ l(a, { style: { margin: "4px 0" } }),
113
+ l(v, { style: { padding: "4px 8px" } }, {
114
+ default: g(() => [l(u, {
115
+ value: h(Y),
116
+ "onUpdate:value": t[2] ||= (e) => d(Y) ? Y.value = e : null,
117
+ placeholder: "输入你需要的内容"
118
+ }, null, 8, ["value"]), l(m, {
119
+ type: "text",
120
+ onClick: X
121
+ }, {
122
+ icon: g(() => [l(p)]),
123
+ default: g(() => [t[12] ||= c(" 增加选项 ", -1)]),
124
+ _: 1
125
+ })]),
126
+ _: 1
127
+ })
128
+ ]),
129
+ _: 1
130
+ }, 8, ["value", "options"])]),
131
+ s("div", F, [t[14] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印宽度", -1), l(Z, {
132
+ value: h(q).width,
133
+ "onUpdate:value": t[4] ||= (e) => h(q).width = e,
134
+ class: "flex-1",
135
+ min: 1
136
+ }, null, 8, ["value"])]),
137
+ s("div", I, [t[15] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印起始位置", -1), s("div", ee, [l(v, null, {
138
+ default: g(() => [l(Z, {
139
+ value: h(q).x,
140
+ "onUpdate:value": t[5] ||= (e) => h(q).x = e,
141
+ "addon-before": "x轴坐标",
142
+ min: 1
143
+ }, null, 8, ["value"]), l(Z, {
144
+ value: h(q).y,
145
+ "onUpdate:value": t[6] ||= (e) => h(q).y = e,
146
+ "addon-before": "y轴坐标",
147
+ min: 1
148
+ }, null, 8, ["value"])]),
149
+ _: 1
150
+ })])]),
151
+ s("div", L, [t[16] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印x轴间距", -1), l(Z, {
152
+ value: h(q).x_space,
153
+ "onUpdate:value": t[7] ||= (e) => h(q).x_space = e,
154
+ class: "flex-1",
155
+ min: 1
156
+ }, null, 8, ["value"])]),
157
+ s("div", R, [t[17] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印y轴间距", -1), l(Z, {
158
+ value: h(q).y_space,
159
+ "onUpdate:value": t[8] ||= (e) => h(q).y_space = e,
160
+ class: "flex-1",
161
+ min: 1
162
+ }, null, 8, ["value"])]),
163
+ s("div", z, [t[18] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印透明度", -1), l(Z, {
164
+ value: h(q).alpha,
165
+ "onUpdate:value": t[9] ||= (e) => h(q).alpha = e,
166
+ class: "flex-1",
167
+ min: 0,
168
+ step: .01
169
+ }, null, 8, ["value"])]),
170
+ s("div", B, [t[19] ||= s("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印开启", -1), l(te, {
171
+ checked: h(q).enable,
172
+ "onUpdate:checked": t[10] ||= (e) => h(q).enable = e,
173
+ "checked-children": "开启",
174
+ "un-checked-children": "关闭"
175
+ }, null, 8, ["checked"])]),
176
+ s("div", V, [l(m, {
177
+ style: { "margin-left": "10px" },
178
+ onClick: Q
179
+ }, {
180
+ default: g(() => [...t[20] ||= [c(" 重置 ", -1)]]),
181
+ _: 1
182
+ }), l(m, {
183
+ type: "primary",
184
+ onClick: $
185
+ }, {
186
+ default: g(() => [...t[21] ||= [c(" 确定 ", -1)]]),
187
+ _: 1
188
+ })])
189
+ ])])])]);
190
+ };
191
+ }
192
+ }), [["__scopeId", "data-v-0ecfa3a5"]]);
193
+ //#endregion
194
+ export { H as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/zddata.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2016%2016'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20stroke='%23165DFF'%20d='M2.839%203H13.16v3H2.84zm0%205H13.16v3H2.84z'/%3e%3cpath%20stroke='%23165DFF'%20stroke-width='.5'%20d='M2.589%2012.75H13.41v.5H2.59z'/%3e%3cpath%20stroke='%23165DFF'%20d='M2.839%203h3v3h-3zm0%205h3v3h-3z'/%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/zy_checked.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2025%2024'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%23165DFF'%20d='M12.66%202a10%2010%200%201%200%200%2020%2010%2010%200%201%200%200-20'/%3e%3cpath%20fill='url(%23a)'%20d='M17.398%208a.527.527%200%200%201%20.061%201.049l-.061.004v5.79a1.053%201.053%200%200%201-1.053%201.052h-2.413l1.206%201.207a.527.527%200%200%201-.694.788l-.05-.044-1.733-1.733-1.733%201.733a.53.53%200%200%201-.695.044l-.05-.044a.526.526%200%200%201-.043-.695l.044-.05%201.206-1.206H8.977a1.05%201.05%200%200%201-.676-.246l-.068-.063a1.05%201.05%200%200%201-.309-.744v-5.79a.526.526%200%200%201-.061-1.048L7.924%208zm-1.053%201.053H8.976v5.79h7.37zm-.68%201.206a.53.53%200%200%201%20.043.695l-.043.05-2.105%202.105a.53.53%200%200%201-.695.044l-.05-.044-1.207-1.207-1.206%201.207a.53.53%200%200%201-.695.044l-.05-.044a.526.526%200%200%201-.043-.695l.043-.05%201.58-1.578a.53.53%200%200%201%20.694-.044l.05.044%201.206%201.206%201.734-1.733a.526.526%200%200%201%20.744%200'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='12.661'%20x2='12.661'%20y1='8'%20y2='18'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.75'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/zy_default.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2025%2024'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%2386909C'%20d='M12.66%202a10%2010%200%201%200%200%2020%2010%2010%200%201%200%200-20'/%3e%3cpath%20fill='url(%23a)'%20d='M17.398%208a.527.527%200%200%201%20.061%201.049l-.061.004v5.79a1.053%201.053%200%200%201-1.053%201.052h-2.413l1.206%201.207a.527.527%200%200%201-.694.788l-.05-.044-1.733-1.733-1.733%201.733a.53.53%200%200%201-.695.044l-.05-.044a.526.526%200%200%201-.043-.695l.044-.05%201.206-1.206H8.977a1.05%201.05%200%200%201-.676-.246l-.068-.063a1.05%201.05%200%200%201-.309-.744v-5.79a.526.526%200%200%201-.061-1.048L7.924%208zm-1.053%201.053H8.976v5.79h7.37zm-.68%201.206a.53.53%200%200%201%20.043.695l-.043.05-2.105%202.105a.53.53%200%200%201-.695.044l-.05-.044-1.207-1.207-1.206%201.207a.53.53%200%200%201-.695.044l-.05-.044a.526.526%200%200%201-.043-.695l.043-.05%201.58-1.578a.53.53%200%200%201%20.694-.044l.05.044%201.206%201.206%201.734-1.733a.526.526%200%200%201%20.744%200'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='12.661'%20x2='12.661'%20y1='8'%20y2='18'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.75'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-rbac",
3
3
  "type": "module",
4
- "version": "0.203.3",
4
+ "version": "0.203.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "alova": "^3.5.0",
26
26
  "ant-design-vue": "^4.2.6",
27
27
  "pinia": "^3.0.4",
28
- "pubinfo-pr": "0.203.3"
28
+ "pubinfo-pr": "0.203.5"
29
29
  },
30
30
  "dependencies": {
31
31
  "@destyler/color-picker": "^0.2.6",
@@ -50,7 +50,7 @@
50
50
  "alova": "^3.5.0",
51
51
  "ant-design-vue": "^4.2.6",
52
52
  "pinia": "^3.0.4",
53
- "pubinfo-pr": "0.203.3",
53
+ "pubinfo-pr": "0.203.5",
54
54
  "type-fest": "^5.4.4"
55
55
  },
56
56
  "scripts": {
@@ -1,169 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { t as ComponentSelect_default } from "./ComponentSelect-A7uGTuHW.js";
3
- import { r as RESOURCE_TYPE } from "./enum-3E_sUqRF.js";
4
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, openBlock, resolveComponent, unref, useModel, withCtx } from "vue";
5
- import { Col, FormItem, Input } from "ant-design-vue/es";
6
- var DynamicRoutesForm_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
- name: "DynamicRoutesForm",
8
- __name: "DynamicRoutesForm",
9
- props: /* @__PURE__ */ mergeModels({ parent: {} }, {
10
- modelValue: { default: { meta: {
11
- url: "",
12
- component: ""
13
- } } },
14
- modelModifiers: {}
15
- }),
16
- emits: ["update:modelValue"],
17
- setup(e) {
18
- let r = useModel(e, "modelValue"), i = computed(() => {
19
- let e = r.value.type;
20
- return {
21
- path: [
22
- RESOURCE_TYPE.INDEX,
23
- RESOURCE_TYPE.MENU,
24
- RESOURCE_TYPE.NON_MENU,
25
- RESOURCE_TYPE.IFRAME,
26
- RESOURCE_TYPE.LINK
27
- ].includes(e),
28
- component: [RESOURCE_TYPE.MENU, RESOURCE_TYPE.NON_MENU].includes(e),
29
- iframe: [RESOURCE_TYPE.IFRAME].includes(e),
30
- link: [RESOURCE_TYPE.LINK].includes(e),
31
- routeName: [
32
- RESOURCE_TYPE.MENU,
33
- RESOURCE_TYPE.NON_MENU,
34
- RESOURCE_TYPE.IFRAME,
35
- RESOURCE_TYPE.LINK
36
- ].includes(e),
37
- activeMenu: [
38
- RESOURCE_TYPE.MENU,
39
- RESOURCE_TYPE.NON_MENU,
40
- RESOURCE_TYPE.IFRAME,
41
- RESOURCE_TYPE.LINK
42
- ].includes(e)
43
- };
44
- }), a = computed(() => !0);
45
- return (e, t) => {
46
- let n = Input, o = FormItem, s = Col;
47
- return unref(a) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
48
- unref(i).path ? (openBlock(), createBlock(s, {
49
- key: 0,
50
- span: 12
51
- }, {
52
- default: withCtx(() => [createVNode(o, {
53
- label: "资源路径",
54
- name: ["meta", "url"],
55
- rules: [{
56
- required: !0,
57
- message: "请输入资源路径"
58
- }]
59
- }, {
60
- default: withCtx(() => [createVNode(n, {
61
- value: r.value.meta.url,
62
- "onUpdate:value": t[0] ||= (e) => r.value.meta.url = e,
63
- placeholder: "请输入资源路径",
64
- maxlength: 256
65
- }, null, 8, ["value"])]),
66
- _: 1
67
- })]),
68
- _: 1
69
- })) : createCommentVNode("", !0),
70
- unref(i).component ? (openBlock(), createBlock(s, {
71
- key: 1,
72
- span: 24
73
- }, {
74
- default: withCtx(() => [createVNode(o, {
75
- label: "组件路径",
76
- name: ["meta", "component"],
77
- rules: [{
78
- required: !0,
79
- message: "请输入组件路径"
80
- }]
81
- }, {
82
- default: withCtx(() => [createVNode(ComponentSelect_default, {
83
- modelValue: r.value.meta.component,
84
- "onUpdate:modelValue": t[1] ||= (e) => r.value.meta.component = e,
85
- scope: r.value.meta.scope,
86
- "onUpdate:scope": t[2] ||= (e) => r.value.meta.scope = e
87
- }, null, 8, ["modelValue", "scope"])]),
88
- _: 1
89
- })]),
90
- _: 1
91
- })) : createCommentVNode("", !0),
92
- unref(i).link ? (openBlock(), createBlock(s, {
93
- key: 2,
94
- span: 24
95
- }, {
96
- default: withCtx(() => [createVNode(o, {
97
- label: "外链地址",
98
- name: ["meta", "link"]
99
- }, {
100
- default: withCtx(() => [createVNode(n, {
101
- value: r.value.meta.link,
102
- "onUpdate:value": t[3] ||= (e) => r.value.meta.link = e,
103
- placeholder: "请输入外链地址",
104
- maxlength: 256
105
- }, null, 8, ["value"])]),
106
- _: 1
107
- })]),
108
- _: 1
109
- })) : createCommentVNode("", !0),
110
- unref(i).iframe ? (openBlock(), createBlock(s, {
111
- key: 3,
112
- span: 24
113
- }, {
114
- default: withCtx(() => [createVNode(o, {
115
- label: "内嵌地址",
116
- name: ["meta", "iframe"]
117
- }, {
118
- default: withCtx(() => [createVNode(n, {
119
- value: r.value.meta.iframe,
120
- "onUpdate:value": t[4] ||= (e) => r.value.meta.iframe = e,
121
- placeholder: "请输入内嵌地址",
122
- maxlength: 256
123
- }, null, 8, ["value"])]),
124
- _: 1
125
- })]),
126
- _: 1
127
- })) : createCommentVNode("", !0),
128
- unref(i).routeName ? (openBlock(), createBlock(s, {
129
- key: 4,
130
- span: 12
131
- }, {
132
- default: withCtx(() => [createVNode(o, {
133
- label: "路由名称",
134
- name: ["meta", "routeName"]
135
- }, {
136
- default: withCtx(() => [createVNode(n, {
137
- value: r.value.meta.routeName,
138
- "onUpdate:value": t[5] ||= (e) => r.value.meta.routeName = e,
139
- placeholder: "请输入路由名称(name)",
140
- maxlength: 256
141
- }, null, 8, ["value"])]),
142
- _: 1
143
- })]),
144
- _: 1
145
- })) : createCommentVNode("", !0),
146
- unref(i).activeMenu ? (openBlock(), createBlock(s, {
147
- key: 5,
148
- span: 12
149
- }, {
150
- default: withCtx(() => [createVNode(o, {
151
- label: "激活路径",
152
- name: ["meta", "activeMenu"],
153
- tooltip: "跳转到当前路由时,需要激活的菜单路径。 当不在导航菜单中显示时,需要指定激活路径"
154
- }, {
155
- default: withCtx(() => [createVNode(n, {
156
- value: r.value.meta.activeMenu,
157
- "onUpdate:value": t[6] ||= (e) => r.value.meta.activeMenu = e,
158
- placeholder: "请输入激活路径",
159
- maxlength: 256
160
- }, null, 8, ["value"])]),
161
- _: 1
162
- })]),
163
- _: 1
164
- })) : createCommentVNode("", !0)
165
- ], 64)) : createCommentVNode("", !0);
166
- };
167
- }
168
- }), DynamicRoutesForm_exports = /* @__PURE__ */ __exportAll({ default: () => DynamicRoutesForm_default }), DynamicRoutesForm_default = DynamicRoutesForm_vue_vue_type_script_setup_true_lang_default;
169
- export { DynamicRoutesForm_exports as n, DynamicRoutesForm_default as t };
@@ -1,37 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { PubinfoIcon } from "pubinfo-pr";
3
- import { Fragment, createBlock, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, resolveComponent, toDisplayString, watch } from "vue";
4
- var _hoisted_1 = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, _hoisted_2 = ["disabled", "onClick"], HCheckList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
5
- __name: "HCheckList",
6
- props: {
7
- modelValue: {},
8
- options: {},
9
- disabled: {
10
- type: Boolean,
11
- default: !1
12
- }
13
- },
14
- emits: ["update:modelValue", "change"],
15
- setup(e, { emit: n }) {
16
- let r = e, a = n;
17
- watch(() => r.modelValue, (e) => {
18
- a("change", e);
19
- });
20
- function o(e) {
21
- a("update:modelValue", e);
22
- }
23
- return (n, r) => {
24
- let i = PubinfoIcon;
25
- return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.options, (t) => (openBlock(), createElementBlock("button", {
26
- key: t.value,
27
- disabled: e.disabled || t.disabled,
28
- class: normalizeClass(["flex cursor-pointer items-center truncate border-size-0 bg-inherit px-2 py-1.5 text-sm disabled:cursor-not-allowed disabled:opacity-50 hover:not-disabled:(bg-ui-primary text-ui-text)", { "text-ui-text bg-ui-primary": e.modelValue === t.value }]),
29
- onClick: (e) => o(t.value)
30
- }, [t.icon ? (openBlock(), createBlock(i, {
31
- key: 0,
32
- name: t.icon
33
- }, null, 8, ["name"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(t.label), 1)], 64))], 10, _hoisted_2))), 128))]);
34
- };
35
- }
36
- }), HCheckList_exports = /* @__PURE__ */ __exportAll({ default: () => HCheckList_default }), HCheckList_default = HCheckList_vue_vue_type_script_setup_true_lang_default;
37
- export { HCheckList_exports as n, HCheckList_default as t };
@@ -1,44 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle } from "./index.js";
3
- import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
4
- import { DoubleRightOutlined } from "@ant-design/icons-vue";
5
- import { theme } from "ant-design-vue";
6
- var HoverCard_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
- name: "HoverCard",
8
- __name: "HoverCard",
9
- props: { more: { type: Boolean } },
10
- setup(e) {
11
- let { token: n } = theme.useToken(), [i, a] = useToggle(), [o, s] = useToggle();
12
- return (t, r) => (openBlock(), createElementBlock("div", {
13
- class: normalizeClass(["relative rounded-t-lg h-[72px] px-5 border border-solid", [unref(o) && e.more ? "rounded-b-none" : "rounded-b-lg"]]),
14
- style: normalizeStyle({
15
- borderColor: unref(i) ? unref(n).colorPrimary : unref(n).colorBorder,
16
- boxShadow: unref(i) ? unref(n).boxShadow : "none"
17
- }),
18
- onMouseenter: r[2] ||= (e) => unref(a)(!0),
19
- onMouseleave: r[3] ||= (e) => unref(a)(!1)
20
- }, [renderSlot(t.$slots, "default"), e.more ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(o) ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", {
21
- key: 0,
22
- class: "absolute bottom-1 left-0 w-full text-center text-xs space-x-1 cursor-pointer",
23
- onClick: r[0] ||= (e) => unref(s)(!0)
24
- }, [r[4] ||= createElementVNode("span", null, "更多", -1), createVNode(unref(DoubleRightOutlined), {
25
- rotate: 90,
26
- class: "animate-bounce"
27
- })])), unref(o) ? (openBlock(), createElementBlock("div", {
28
- key: 1,
29
- class: "absolute top-[70px] -left-px z-50 w-[calc(100%+2px)] pt-5 px-5 border border-solid rounded-b-lg",
30
- style: normalizeStyle({
31
- borderColor: unref(i) ? unref(n).colorPrimary : unref(n).colorBorder,
32
- backgroundColor: unref(n).colorBgElevated,
33
- boxShadow: unref(n).boxShadow
34
- })
35
- }, [renderSlot(t.$slots, "more"), createElementVNode("div", {
36
- class: "mt-5 pb-1 w-full text-center text-xs space-x-1 cursor-pointer",
37
- onClick: r[1] ||= (e) => unref(s)(!1)
38
- }, [r[5] ||= createElementVNode("span", null, "收起", -1), createVNode(unref(DoubleRightOutlined), {
39
- rotate: 270,
40
- class: "animate-bounce"
41
- })])], 4)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)], 38));
42
- }
43
- }), HoverCard_exports = /* @__PURE__ */ __exportAll({ default: () => HoverCard_default }), HoverCard_default = HoverCard_vue_vue_type_script_setup_true_lang_default;
44
- export { HoverCard_exports as n, HoverCard_default as t };