hs-admin-ui 10.6.8 → 10.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/dist/{401--XQRCBFJ.mjs → 401-DMs3z1YZ.mjs} +1 -1
  2. package/dist/{401-tVymI_bG.js → 401-gmcs3YyN.js} +1 -1
  3. package/dist/{404-CfUGw74V.mjs → 404-BFDIIA7H.mjs} +1 -1
  4. package/dist/404-BFDIIA7H.mjs.gz +0 -0
  5. package/dist/{404-DD2no80-.js → 404-BcRfPPzA.js} +1 -1
  6. package/dist/{404-DD2no80-.js.gz → 404-BcRfPPzA.js.gz} +0 -0
  7. package/dist/{account-C9eyh-Bz.mjs → account-B5pqCtf_.mjs} +2 -2
  8. package/dist/{account-CgObURXh.js → account-Depi20LC.js} +1 -1
  9. package/dist/{aside-DYl-12m0.js → aside-BFAj-9yU.js} +1 -1
  10. package/dist/{aside-DFDoC28E.mjs → aside-CrC2qzhL.mjs} +3 -3
  11. package/dist/{btnIndex-Bi_hQqvo.js → btnIndex-BHba7SrO.js} +1 -1
  12. package/dist/{btnIndex-DqoEFtSU.mjs → btnIndex-CxIf_nm_.mjs} +2 -2
  13. package/dist/btnIndex-CxIf_nm_.mjs.gz +0 -0
  14. package/dist/{classic-LpvQFFRd.js → classic-BiXPx1q2.js} +1 -1
  15. package/dist/{classic-DmXXZT1k.mjs → classic-DUZe7aJo.mjs} +5 -5
  16. package/dist/{columns-CMVV-4M2.js → columns-B2SwS9hU.js} +1 -1
  17. package/dist/{columns-Cqx4aq4V.mjs → columns-BjxWJigN.mjs} +5 -5
  18. package/dist/{columnsAside-MJS5DjiS.js → columnsAside-DjOqOCoK.js} +1 -1
  19. package/dist/{columnsAside-Cz4rgkeT.mjs → columnsAside-eSnYi77b.mjs} +1 -1
  20. package/dist/{contextmenu-BwiWIYXO.mjs → contextmenu-B7A8Wad8.mjs} +1 -1
  21. package/dist/{contextmenu-CZeZlTs9.mjs → contextmenu-Bnr_oLBA.mjs} +1 -1
  22. package/dist/{contextmenu-Dfv1ZatX.js → contextmenu-CfkZRF7t.js} +1 -1
  23. package/dist/{contextmenu-BH5g7cx5.js → contextmenu-DUfYvPs9.js} +1 -1
  24. package/dist/{copyMenuConfig-B0bd2xH0.js → copyMenuConfig-BBlqQuB4.js} +1 -1
  25. package/dist/{copyMenuConfig-B-3HPGEl.mjs → copyMenuConfig-Dg5gX5li.mjs} +1 -1
  26. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DHyiah2H.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-B9cMYaYe.mjs} +1 -1
  27. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-Dq8ERsej.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-DfJSPYew.js} +1 -1
  28. package/dist/{copySystem-Bcpwfnt9.js → copySystem-6GTDEzwf.js} +1 -1
  29. package/dist/{copySystem-BRJDPk1E.mjs → copySystem-BAqg1ATv.mjs} +1 -1
  30. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-Bvx4uSx7.js → copySystem.vue_vue_type_script_setup_true_lang-Cr2jNz-5.js} +1 -1
  31. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-OQltLScE.mjs → copySystem.vue_vue_type_script_setup_true_lang-DbNg761W.mjs} +1 -1
  32. package/dist/{defaults-DVp_PNCL.mjs → defaults-C7LXVCyX.mjs} +4 -4
  33. package/dist/{defaults-Cm7-xFQr.js → defaults-xr8VHJ_N.js} +1 -1
  34. package/dist/{dialog-CAOeXpIA.js → dialog-0VgxKrml.js} +1 -1
  35. package/dist/{dialog-is6Tu_zL.mjs → dialog-C6JsSvGm.mjs} +1 -1
  36. package/dist/{dialog-Cb4NHWw8.mjs → dialog-CNzXnQJD.mjs} +1 -1
  37. package/dist/{dialog-BZxvpJ-h.js → dialog-CkkOjvqe.js} +1 -1
  38. package/dist/{dialog-DVtx8OGf.js → dialog-DVa_1zRU.js} +1 -1
  39. package/dist/{dialog-DOABuNb1.mjs → dialog-MYSBZzVn.mjs} +1 -1
  40. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B_M9QwLe.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BYaJHl2N.mjs} +2 -2
  41. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BCbIi2Rs.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CPGcFEr0.js} +1 -1
  42. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BtGb6Wzs.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9OlBAmq.js} +1 -1
  43. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9OlBAmq.js.gz +0 -0
  44. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bm7OmBgj.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DXT0M2rz.mjs} +2 -2
  45. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DXT0M2rz.mjs.gz +0 -0
  46. package/dist/{dictDialog-OBC_x1eI.mjs → dictDialog-Dh4S1_-4.mjs} +1 -1
  47. package/dist/{dictDialog-gzIJhWby.js → dictDialog-p5Ji4Tyx.js} +1 -1
  48. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BAZcfeCT.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B03OmT-X.mjs} +2 -2
  49. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-yFIW3CY2.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B5drW5O8.js} +1 -1
  50. package/dist/{dictItemDialog-BuNANGu4.js → dictItemDialog-BMFLtyGS.js} +1 -1
  51. package/dist/{dictItemDialog-CQy_S3Ci.mjs → dictItemDialog-Dz7Uswyp.mjs} +1 -1
  52. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CIFeObUt.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang--jgrItLV.mjs} +2 -2
  53. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BVZiwO1F.js → dictItemDialog.vue_vue_type_script_setup_true_lang-wUaL9eUN.js} +1 -1
  54. package/dist/{formConfig-CDemK8Oy.js → formConfig-C5MtAsij.js} +1 -1
  55. package/dist/formConfig-C5MtAsij.js.gz +0 -0
  56. package/dist/{formConfig-BVzW5fn1.mjs → formConfig-Ew57qxRk.mjs} +5 -5
  57. package/dist/formConfig-Ew57qxRk.mjs.gz +0 -0
  58. package/dist/{header-3NHD8O0z.mjs → header-B4xgjYl9.mjs} +2 -2
  59. package/dist/{header-yVeV4SGx.js → header-Dkpyksky.js} +1 -1
  60. package/dist/{horizontal-DWNBkQka.mjs → horizontal-14FDuzUi.mjs} +2 -2
  61. package/dist/{horizontal-D7l1Tiq0.js → horizontal-D8aIpRWE.js} +1 -1
  62. package/dist/{hsAttrBtn-BHDu-spH.mjs → hsAttrBtn-kUrtXwU2.mjs} +1 -1
  63. package/dist/{hsAttrBtn-CwMm46C1.js → hsAttrBtn-nfXX9684.js} +1 -1
  64. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-By00OZ6U.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-fHiOTnB7.mjs} +3 -3
  65. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BAyM0dqM.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-hYEnR-J9.js} +1 -1
  66. package/dist/{hsAttrForm-B8HkSYte.js → hsAttrForm-Bgo8j3k9.js} +1 -1
  67. package/dist/{hsAttrForm-BRtAT3N_.mjs → hsAttrForm-CWRB_X-8.mjs} +1 -1
  68. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-RDTRDZSf.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-DDMvQcLi.mjs} +2 -2
  69. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DDMvQcLi.mjs.gz +0 -0
  70. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B36qsI1i.js → hsAttrForm.vue_vue_type_script_setup_true_lang-DyqbPMBR.js} +1 -1
  71. package/dist/{hsBtnConfigList-DHBBKJuS.js → hsBtnConfigList-JrILrSPS.js} +1 -1
  72. package/dist/{hsBtnConfigList-2Zz0Cw-E.mjs → hsBtnConfigList-R38N3e53.mjs} +1 -1
  73. package/dist/{hsBtnItemConfig-BBwzV_sf.js → hsBtnItemConfig-BLtzUJCt.js} +1 -1
  74. package/dist/{hsBtnItemConfig-Dhs7d6Ep.mjs → hsBtnItemConfig-CYaTY6Sz.mjs} +1 -1
  75. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-5tCixAHE.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BEJa65xe.mjs} +1 -1
  76. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang--GNQhImp.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BKZR_-v1.js} +1 -1
  77. package/dist/{hsBtnPanel-Bpi4TwKH.mjs → hsBtnPanel-DN-Ohzri.mjs} +1 -1
  78. package/dist/{hsBtnPanel-BUs8-uuH.js → hsBtnPanel-DmJfHnct.js} +1 -1
  79. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cglpzs-G.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BUZf5Gq6.js} +1 -1
  80. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DB56W7Ku.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CFiUSBGR.mjs} +4 -4
  81. package/dist/{hsExpand-DIfhsVQW.mjs → hsExpand-BsGn-DhX.mjs} +1 -1
  82. package/dist/{hsExpand-DxtypLl6.js → hsExpand-DuJ-Ozzt.js} +1 -1
  83. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BAtNnIGp.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BOScf87w.mjs} +1 -1
  84. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DxFhWgA0.js → hsExpand.vue_vue_type_script_setup_true_lang-CZukio5L.js} +1 -1
  85. package/dist/{hsFormConfig-B1yN8u0B.js → hsFormConfig-DK1RhFbY.js} +1 -1
  86. package/dist/{hsFormConfig-Dgi8KqsX.mjs → hsFormConfig-tzZNgt7M.mjs} +1 -1
  87. package/dist/{hsFormConfigList-CuE0PFJT.js → hsFormConfigList-BYnabeBG.js} +1 -1
  88. package/dist/{hsFormConfigList-BjsFqN-P.mjs → hsFormConfigList-CaolFq58.mjs} +2 -2
  89. package/dist/hsFormConfigList-CaolFq58.mjs.gz +0 -0
  90. package/dist/{hsFormPanel-BBDJ1luD.mjs → hsFormPanel-DIHUl43U.mjs} +5 -5
  91. package/dist/hsFormPanel-DIHUl43U.mjs.gz +0 -0
  92. package/dist/{hsFormPanel-DhCTKtgp.js → hsFormPanel-qYhxJUUW.js} +1 -1
  93. package/dist/{hsFormParse-B4fzUcIi.mjs → hsFormParse-DPA5FjwW.mjs} +1 -1
  94. package/dist/{hsFormParse-Coons4ok.js → hsFormParse-Dsqkglks.js} +1 -1
  95. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-ONPgC2XG.js → hsFormParse.vue_vue_type_script_setup_true_lang-DSEJFqFw.js} +1 -1
  96. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BopFjSUc.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-ezdqG1XM.mjs} +1 -1
  97. package/dist/{hsPanelItem-7a6MgAqv.js → hsPanelItem-C6BmGvSh.js} +1 -1
  98. package/dist/{hsPanelItem-DBDSQ4GK.mjs → hsPanelItem-CyqpHSI1.mjs} +1 -1
  99. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DiOthgUd.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BbnHP0Yf.js} +1 -1
  100. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-glQOPlJ_.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-QeCPuM5h.mjs} +1 -1
  101. package/dist/{iframes-D5GGsH9z.mjs → iframes-CWvB2adf.mjs} +1 -1
  102. package/dist/{iframes-B91zJYsL.js → iframes-D6NdUbRH.js} +1 -1
  103. package/dist/{index copy-BgdIsiyY.mjs → index copy-B32xPrEM.mjs } +1 -1
  104. package/dist/index copy-B32xPrEM.mjs.gz +0 -0
  105. package/dist/{index copy-BJ13kx1D.js → index copy-BydbKAGm.js } +1 -1
  106. package/dist/index copy-BydbKAGm.js.gz +0 -0
  107. package/dist/{index-BEHYuWya.mjs → index-0IuV6Z8b.mjs} +3 -3
  108. package/dist/{index-CJkwdpsf.js → index-5BGOXDh1.js} +1 -1
  109. package/dist/index-5BGOXDh1.js.gz +0 -0
  110. package/dist/{index-BA9uqHQY.mjs → index-8w0RUXJc.mjs} +3 -3
  111. package/dist/{index-Cgn-vE7y.mjs → index-B35Cz_j0.mjs} +2 -2
  112. package/dist/{index-CM9HIWW0.js → index-B78yukMu.js} +7 -7
  113. package/dist/{index-CM9HIWW0.js.gz → index-B78yukMu.js.gz} +0 -0
  114. package/dist/{index-ZcmSVwq5.js → index-B7ZG8mH6.js} +1 -1
  115. package/dist/{index-CqajDAiy.js → index-B9sQKpwK.js} +1 -1
  116. package/dist/{index-DoPMAkAL.mjs → index-BDILqdkY.mjs} +3 -3
  117. package/dist/{index-B11_meRe.js → index-BGTuzmpp.js} +1 -1
  118. package/dist/index-BI8BPrf2.js +1 -0
  119. package/dist/{index-Da7lqRSm.js → index-BIBfM9WZ.js} +1 -1
  120. package/dist/{index-Dl7GRDwH.js → index-BO87q9aU.js} +1 -1
  121. package/dist/{index-DDr_U2NZ.mjs → index-BOvWCFhQ.mjs} +54 -34
  122. package/dist/{index-DDr_U2NZ.mjs.gz → index-BOvWCFhQ.mjs.gz} +0 -0
  123. package/dist/{index-BxY3vaw5.js → index-BSIrJWfY.js} +1 -1
  124. package/dist/{index-BSf670zE.js → index-BYoiU6qL.js} +1 -1
  125. package/dist/{index-DyF5ZKug.js → index-B_nEubSJ.js} +1 -1
  126. package/dist/{index-i5XLs9dj.js → index-BdblM_jJ.js} +1 -1
  127. package/dist/{index-p3z7NqGm.mjs → index-BulRHuiQ.mjs} +2 -2
  128. package/dist/{index-C_1eBxSK.mjs → index-BxxUIklL.mjs} +3 -3
  129. package/dist/{index-jd73gwY8.js → index-BzSRbh6_.js} +1 -1
  130. package/dist/{index-DZeHDgPc.mjs → index-C34yRVlX.mjs} +3 -3
  131. package/dist/index-C34yRVlX.mjs.gz +0 -0
  132. package/dist/{index-DhiEroSd.mjs → index-C4yr-yHA.mjs} +1 -1
  133. package/dist/{index-DrWeLUsq.mjs → index-CCA1780i.mjs} +1 -1
  134. package/dist/{index-CTvZK-_g.mjs → index-CHYZHMpk.mjs} +2 -2
  135. package/dist/index-CHYZHMpk.mjs.gz +0 -0
  136. package/dist/{index-BeNmB-ys.js → index-CHdy4pE2.js} +1 -1
  137. package/dist/{index-D6CetM-J.mjs → index-CItqppE_.mjs} +1 -1
  138. package/dist/{index-Cn6YLnCD.mjs → index-CLdmMiXk.mjs} +1 -1
  139. package/dist/{index-Cj76--fv.mjs → index-CMn-seUs.mjs} +4 -4
  140. package/dist/{index-DVvrZ836.mjs → index-CT0QyGPV.mjs} +1 -1
  141. package/dist/{index-BUNCh5Lm.mjs → index-CfkRf5qy.mjs} +5 -5
  142. package/dist/{index-C9L6hEeB.mjs → index-Clq9HVp2.mjs} +1 -1
  143. package/dist/{index-CgEN5Lq6.js → index-CtrM0M2U.js} +1 -1
  144. package/dist/{index-LhRGQRjS.js → index-CvuDktT5.js} +1 -1
  145. package/dist/index-CvuDktT5.js.gz +0 -0
  146. package/dist/{index-BGidQk4K.js → index-Cw8bNscs.js} +1 -1
  147. package/dist/{index-DDNQM28Y.mjs → index-CzKyPL9L.mjs} +1 -1
  148. package/dist/{index-DswWyjjI.mjs → index-D0Jnze5E.mjs} +1 -1
  149. package/dist/{index-DD2022JW.js → index-D2E7a6aZ.js} +1 -1
  150. package/dist/{index-CW2pbLBD.mjs → index-D3IPQ6H4.mjs} +4 -4
  151. package/dist/{index-Buo243Ce.mjs → index-D8pAmYN9.mjs} +3 -3
  152. package/dist/{index-6QDq0vCZ.mjs → index-DEO2JMrY.mjs} +1 -1
  153. package/dist/{index-FvDGxuTq.mjs → index-DFwXt8ZW.mjs} +1 -1
  154. package/dist/{index-wo7oeKXp.js → index-DGFKvHEM.js} +1 -1
  155. package/dist/index-DGFKvHEM.js.gz +0 -0
  156. package/dist/{index-BtwVczrq.js → index-DGOBUvUU.js} +1 -1
  157. package/dist/{index-WXLT8YGZ.mjs → index-DH5D42L5.mjs} +1 -1
  158. package/dist/{index-D1UIN_VQ.js → index-DIOWPsdl.js} +1 -1
  159. package/dist/index-DN5ra2rE.mjs +4 -0
  160. package/dist/{index-CorVaOC8.js → index-DNeViRiX.js} +1 -1
  161. package/dist/{index-hfrav01l.mjs → index-DRMvhQ0k.mjs} +1 -1
  162. package/dist/{index-DDYSWWYQ.js → index-DRoz6_oH.js} +1 -1
  163. package/dist/{index-BYOhDdk7.mjs → index-DV6QLxil.mjs} +4 -4
  164. package/dist/index-DV6QLxil.mjs.gz +0 -0
  165. package/dist/{index-Dmp1KeXp.js → index-DW-kk70_.js} +1 -1
  166. package/dist/{index-hd0VU25r.mjs → index-DYM0xfQr.mjs} +1 -1
  167. package/dist/{index-LuDhrLDU.js → index-D_gd0FvY.js} +1 -1
  168. package/dist/{index-Dj5qixks.mjs → index-Dcf6oeDS.mjs} +1 -1
  169. package/dist/{index-CvdmY0BR.js → index-DiXU7do4.js} +1 -1
  170. package/dist/{index-Bmv7KMmP.js → index-Dkr0n9yk.js} +1 -1
  171. package/dist/{index-Do8E_H2m.mjs → index-Dl36dx7L.mjs} +1 -1
  172. package/dist/{index-D27w_R7J.js → index-DlwPL4Ir.js} +1 -1
  173. package/dist/{index-DsxwpplG.js → index-Dm89jGir.js} +1 -1
  174. package/dist/{index-DV4Bk6C3.mjs → index-DrrUgw1V.mjs} +1 -1
  175. package/dist/{index-DNVNTkTl.js → index-Dt1gixeM.js} +1 -1
  176. package/dist/{index-BcFVBdQf.mjs → index-Dvle-Utt.mjs} +1 -1
  177. package/dist/{index-Ch_QiMW1.js → index-Dyw1ixOX.js} +1 -1
  178. package/dist/{index-BadZQibf.mjs → index-KIyMNg4n.mjs} +1 -1
  179. package/dist/{index-CfTeAtPA.mjs → index-KX781snG.mjs} +1 -1
  180. package/dist/index-KX781snG.mjs.gz +0 -0
  181. package/dist/{index-CACibvHP.js → index-SPKBWPrn.js} +1 -1
  182. package/dist/{index-DU5pKIkB.js → index-YKmcM8Ur.js} +1 -1
  183. package/dist/{index-C-hhN5h0.js → index-ZyosuXZ8.js} +1 -1
  184. package/dist/{index-CUNY0Vvw.mjs → index-btQbuZTn.mjs} +1 -1
  185. package/dist/{index-BZScxcb2.mjs → index-efkHHL5H.mjs} +15 -9
  186. package/dist/{index-CAzR4-Po.js → index-hLho_D8y.js} +1 -1
  187. package/dist/{index-DJBgT2E_.js → index-j8jJ-rW9.js} +1 -1
  188. package/dist/{index-CJVYcFX7.mjs → index-lSly5JBU.mjs} +2 -2
  189. package/dist/index-lSly5JBU.mjs.gz +0 -0
  190. package/dist/{index-YmFTXy17.js → index-sCbQ6tpL.js} +1 -1
  191. package/dist/{index-tTn7cJ6B.mjs → index-sVKSg_D9.mjs} +1 -1
  192. package/dist/{index-C2H2CFYf.js → index-y12Q9KL-.js} +1 -1
  193. package/dist/index.js +1 -1
  194. package/dist/index.mjs +1 -1
  195. package/dist/{index.vue_vue_type_script_setup_true_lang-Fs4lx5rd.mjs → index.vue_vue_type_script_setup_true_lang-B0TJR0Ru.mjs} +1 -1
  196. package/dist/{index.vue_vue_type_script_setup_true_lang-CXfHYzjw.js → index.vue_vue_type_script_setup_true_lang-BX5o6ecp.js} +1 -1
  197. package/dist/{index.vue_vue_type_script_setup_true_lang-BeyYwmRR.mjs → index.vue_vue_type_script_setup_true_lang-BplM2faF.mjs} +1 -1
  198. package/dist/{index.vue_vue_type_script_setup_true_lang-Cd3eVFA_.mjs → index.vue_vue_type_script_setup_true_lang-Bq_HdEoN.mjs} +4 -4
  199. package/dist/{index.vue_vue_type_script_setup_true_lang-Dbonjn2j.js → index.vue_vue_type_script_setup_true_lang-C6yiegTd.js} +1 -1
  200. package/dist/{index.vue_vue_type_script_setup_true_lang-DYcDN88Y.mjs → index.vue_vue_type_script_setup_true_lang-DKIoj8Co.mjs} +1 -1
  201. package/dist/index.vue_vue_type_script_setup_true_lang-DKIoj8Co.mjs.gz +0 -0
  202. package/dist/{index.vue_vue_type_script_setup_true_lang-BxTeZo-I.js → index.vue_vue_type_script_setup_true_lang-SBaDwLn1.js} +1 -1
  203. package/dist/{index.vue_vue_type_script_setup_true_lang-DhBW1uS7.js → index.vue_vue_type_script_setup_true_lang-aaAS5Gbv.js} +1 -1
  204. package/dist/{link-DCoJRf-l.mjs → link-BsvJtAY-.mjs} +1 -1
  205. package/dist/{link-C1E_zEze.js → link-DBx0vdlu.js} +1 -1
  206. package/dist/{list-CCPT3RE-.mjs → list-3bxDOhff.mjs} +1 -1
  207. package/dist/{list-CN8QMtbM.js → list-DsFN5XOy.js} +1 -1
  208. package/dist/{main-BHF2CYXE.js → main-D7Oz3EzR.js} +1 -1
  209. package/dist/{main-C7jSRkCj.mjs → main-Fn8k6j4U.mjs} +3 -3
  210. package/dist/{mobile-G1SMf_T2.mjs → mobile-Buc-MP1u.mjs} +1 -1
  211. package/dist/{mobile-DMqMc08_.js → mobile-PWmfLTkk.js} +1 -1
  212. package/dist/{parent-Bv2-xmmo.mjs → parent-DK3-zdk-.mjs} +2 -2
  213. package/dist/{parent-CMTc6NRJ.js → parent-uoVi8p1y.js} +1 -1
  214. package/dist/{popup-BupEn3bW.mjs → popup-BEjHuyco.mjs} +1 -1
  215. package/dist/{popup-ysMLbIuF.js → popup-BZcfWdxB.js} +1 -1
  216. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-B1ON7VXt.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-E8LmzFf1.mjs} +1 -1
  217. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-Ul3ejQKU.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-gNs2-xYM.js} +1 -1
  218. package/dist/{roleItem-KhTLiRvW.mjs → roleItem-D2OqARyo.mjs} +1 -1
  219. package/dist/{roleItem-DERkisZ9.js → roleItem-uOyYxex4.js} +1 -1
  220. package/dist/{saveForm-joyAEM4k.mjs → saveForm-DDeaqMkw.mjs} +2 -2
  221. package/dist/{saveForm-DBfu_zWL.js → saveForm-DgmafS1I.js} +1 -1
  222. package/dist/{scan-DcVlnKWv.js → scan-DK7HdqK3.js} +1 -1
  223. package/dist/scan-DK7HdqK3.js.gz +0 -0
  224. package/dist/{scan-iDkpTQyj.mjs → scan-eNMvSfBI.mjs} +1 -1
  225. package/dist/scan-eNMvSfBI.mjs.gz +0 -0
  226. package/dist/{search-DGZP8-K4.mjs → search-DAYsBLov.mjs} +1 -1
  227. package/dist/{search-DiwigXbT.js → search-TdDGQbGP.js} +1 -1
  228. package/dist/{selectConfig-CkxK1RG2.js → selectConfig-By1XMVe0.js} +1 -1
  229. package/dist/{selectConfig-0vIGYJDq.mjs → selectConfig-PzpAy1Z-.mjs} +1 -1
  230. package/dist/selectConfig-PzpAy1Z-.mjs.gz +0 -0
  231. package/dist/{subItem-D1kWVLdT.js → subItem-BJcPLHo5.js} +1 -1
  232. package/dist/{subItem-BW33rsWh.mjs → subItem-Dotv8Jff.mjs} +1 -1
  233. package/dist/{tagsView-BfWgrmmD.mjs → tagsView-B4gzN3u-.mjs} +2 -2
  234. package/dist/tagsView-B4gzN3u-.mjs.gz +0 -0
  235. package/dist/{tagsView-CXllqzB5.js → tagsView-Q0CGrjzb.js} +2 -2
  236. package/dist/tagsView-Q0CGrjzb.js.gz +0 -0
  237. package/dist/{transverse-34YYMj-f.js → transverse-Dq3q9WeP.js} +1 -1
  238. package/dist/{transverse-BKI9ts2k.mjs → transverse-bhq-WqQc.mjs} +3 -3
  239. package/dist/types/components/business/bcTable/utils/type.d.ts +8 -0
  240. package/dist/{uploadAvatar-CYfKrWyS.js → uploadAvatar-BLQlYtOR.js} +1 -1
  241. package/dist/uploadAvatar-BLQlYtOR.js.gz +0 -0
  242. package/dist/{uploadAvatar-DFIwf09S.mjs → uploadAvatar-i0ulzdH2.mjs} +1 -1
  243. package/dist/uploadAvatar-i0ulzdH2.mjs.gz +0 -0
  244. package/dist/{useSaveForm-BjQVJEVt.mjs → useSaveForm-DdjdRoyd.mjs} +1 -1
  245. package/dist/useSaveForm-DdjdRoyd.mjs.gz +0 -0
  246. package/dist/{useSaveForm-B8BBqxeR.js → useSaveForm-mFhE32q1.js} +1 -1
  247. package/dist/useSaveForm-mFhE32q1.js.gz +0 -0
  248. package/dist/{user-CwJi0t9W.mjs → user-BQ0gz2o4.mjs} +4 -4
  249. package/dist/{user-CcjXrdJF.js → user-DUtlQmZM.js} +1 -1
  250. package/dist/{userNews-BAe-dKzX.js → userNews-0cOApqff.js} +1 -1
  251. package/dist/{userNews-9FMkUldm.mjs → userNews-DunXuXT0.mjs} +1 -1
  252. package/dist/{userSelect-p2ljQqV1.mjs → userSelect-3gK6eopJ.mjs} +1 -1
  253. package/dist/{userSelect-zxbm7jYP.js → userSelect-CZVTbFDS.js} +1 -1
  254. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Co9y1h2q.mjs → userSelect.vue_vue_type_script_setup_true_lang-CDAAzEMB.mjs} +1 -1
  255. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BEF4DnYd.js → userSelect.vue_vue_type_script_setup_true_lang-bt3KigKO.js} +1 -1
  256. package/dist/{vertical-BEL0KAak.js → vertical-C8v19lHC.js} +1 -1
  257. package/dist/{vertical-DCwrZZKQ.mjs → vertical-hE2mItyW.mjs} +2 -2
  258. package/package.json +1 -1
  259. package/dist/404-CfUGw74V.mjs.gz +0 -0
  260. package/dist/btnIndex-DqoEFtSU.mjs.gz +0 -0
  261. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bm7OmBgj.mjs.gz +0 -0
  262. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BtGb6Wzs.js.gz +0 -0
  263. package/dist/formConfig-BVzW5fn1.mjs.gz +0 -0
  264. package/dist/formConfig-CDemK8Oy.js.gz +0 -0
  265. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-RDTRDZSf.mjs.gz +0 -0
  266. package/dist/hsFormConfigList-BjsFqN-P.mjs.gz +0 -0
  267. package/dist/hsFormPanel-BBDJ1luD.mjs.gz +0 -0
  268. package/dist/index copy-BJ13kx1D.js.gz +0 -0
  269. package/dist/index copy-BgdIsiyY.mjs.gz +0 -0
  270. package/dist/index-B2T41WmM.js +0 -1
  271. package/dist/index-BYOhDdk7.mjs.gz +0 -0
  272. package/dist/index-BspsTmxV.mjs +0 -4
  273. package/dist/index-CJVYcFX7.mjs.gz +0 -0
  274. package/dist/index-CJkwdpsf.js.gz +0 -0
  275. package/dist/index-CTvZK-_g.mjs.gz +0 -0
  276. package/dist/index-CfTeAtPA.mjs.gz +0 -0
  277. package/dist/index-DZeHDgPc.mjs.gz +0 -0
  278. package/dist/index-LhRGQRjS.js.gz +0 -0
  279. package/dist/index-wo7oeKXp.js.gz +0 -0
  280. package/dist/index.vue_vue_type_script_setup_true_lang-DYcDN88Y.mjs.gz +0 -0
  281. package/dist/scan-DcVlnKWv.js.gz +0 -0
  282. package/dist/scan-iDkpTQyj.mjs.gz +0 -0
  283. package/dist/selectConfig-0vIGYJDq.mjs.gz +0 -0
  284. package/dist/tagsView-BfWgrmmD.mjs.gz +0 -0
  285. package/dist/tagsView-CXllqzB5.js.gz +0 -0
  286. package/dist/uploadAvatar-CYfKrWyS.js.gz +0 -0
  287. package/dist/uploadAvatar-DFIwf09S.mjs.gz +0 -0
  288. package/dist/useSaveForm-B8BBqxeR.js.gz +0 -0
  289. package/dist/useSaveForm-BjQVJEVt.mjs.gz +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-CM9HIWW0.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-B78yukMu.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
Binary file
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, vShow, createCommentVNode, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
2
2
  import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-DOiOwYLl.mjs";
3
- import { _ as _export_sfc, a8 as systemStore, d as ElMessage, ab as useFileController } from "./index-DDr_U2NZ.mjs";
3
+ import { _ as _export_sfc, a8 as systemStore, d as ElMessage, ab as useFileController } from "./index-BOvWCFhQ.mjs";
4
4
  const _sfc_main$1 = {
5
5
  data: function() {
6
6
  return {
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, defineComponent, onMounted, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, unref, Fragment, renderList, createBlock, toDisplayString, createCommentVNode, createTextVNode } from "vue";
2
- import { w as v4, e as _, r as useConfigInfo, B as treeToList, d as ElMessage, h as useFieldConfigController, S as Session, C as useMenuController, i as useSystemController, _ as _export_sfc, g as showPopup, H as HsMessage, D as HsMessageBox } from "./index-DDr_U2NZ.mjs";
2
+ import { w as v4, e as _, r as useConfigInfo, B as treeToList, d as ElMessage, h as useFieldConfigController, S as Session, C as useMenuController, i as useSystemController, _ as _export_sfc, g as showPopup, H as HsMessage, D as HsMessageBox } from "./index-BOvWCFhQ.mjs";
3
3
  let formData = {
4
4
  config_name: "",
5
5
  config_unique_id: v4(),
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),n=require("./index-CM9HIWW0.js");const o={config_name:[{required:!0,message:"请输入配置名称"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},t=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"isClosedKeyStroke",label:"关闭键盘事件",el:"hs-switch",attr:{"active-value":!0,"inactive-value":!1},show:!0}],a={formData:{config_name:"",config_unique_id:n.v4(),is_auth:"1"},formRule:o,formConfig:t};const i={formData:{name:"",config_name:"",config_unique_id:"",is_auth:"1"},formRule:o,formConfig:n._.concat([{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],t)},r=n.useFieldConfigController(),l=n.useMenuController(),u=n.useSystemController();function c(o){const t=n.useConfigInfo(),a=e.reactive({systemList:[],currentSystemValue:"",currentSystem:void 0,menuList:[],currentMenuValue:[],currentMenuName:"",configList:[],currentConfig:void 0,currentConfigValue:""}),i=e.computed((()=>n.treeToList(a.menuList))),c=async(e=!0)=>{if(a.currentMenuValue.length<=0||!a.currentSystem)return a.configList=[],void(a.currentConfig=void 0);let t=a.currentMenuValue[a.currentMenuValue.length-1],i=n.Session.get("CURRENT_SYSTEM");await r.getFormByMenu({menu_id:t,project_code:a.currentSystem.project_code}).then((t=>{1==t.code&&(a.configList=n._.cloneDeep(t.data).map((e=>{let t=JSON.parse(e.field_json);return t.btns=t.btns.map((e=>(o.linkItem||(e.id=n.v4()),e))),t.BaseForm&&t.BaseForm.proxy&&t.BaseForm.proxy!=i.project_url&&(t.BaseForm.proxy=i.project_url),t.forms,t.forms&&t.forms.length>0&&(t.forms=t.forms.map((e=>(o.linkItem||(e.id=n.v4()),e.form&&e.form.formConfig&&e.form.formConfig.length>0&&(e.form.formConfig=e.form.formConfig.map((e=>(o.linkItem||(e.id=n.v4()),g(e,i),e)))),e)))),n._.assign(t,{id:"",update_time:""})})),e&&(a.currentConfigValue="",a.currentConfig=void 0))}))},s=()=>{a.currentConfigValue?a.currentConfig=a.configList.find((e=>e.config_unique_id===a.currentConfigValue)):a.currentConfig=void 0},m=()=>a.currentSystem&&a.currentSystem.project_code?l.getMenuList({project_code:a.currentSystem.project_code}).then((e=>1!=e.code?Promise.reject():(a.menuList=e.data||[],a.currentMenuValue=[],Promise.resolve()))).catch((e=>{})):Promise.reject(),f=["hs-select","hs-tree-select"],d=["hs-radio","hs-checkbox"],g=(e,n)=>(f.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.attrs&&e.data.elementItem[0].elData.attrs.proxy&&e.data.elementItem[0].elData.attrs.proxy!=n.project_url&&(e.data.elementItem[0].elData.attrs.proxy=n.project_url),d.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.groupAttrs&&e.data.elementItem[0].elData.groupAttrs.proxy&&e.data.elementItem[0].elData.groupAttrs.proxy!=n.project_url&&(e.data.elementItem[0].elData.groupAttrs.proxy=n.project_url),e);return{initData:()=>{u.getAllSystemInfo().then((e=>{var t;1==e.code&&(a.systemList=e.data||[],a.currentSystem=n.Session.get("CURRENT_SYSTEM"),a.currentSystemValue=(null==(t=a.currentSystem)?void 0:t.project_code)||"",m().then((async()=>{var e;if(o.linkItem&&(null==(e=k.value)?void 0:e.id)){let e=[];const n=o=>{const t=i.value.find((e=>e.id===o));t&&(e.push(t.id),t.pid&&n(t.pid))};n(k.value.common_menu_id),a.currentMenuValue=e.reverse(),a.currentConfigValue=k.value.common_config_unique_id,a.currentMenuName=k.value.common_page_name,await c(!1),s()}})))}))},onChangeMenu:()=>{var e;a.currentMenuName=(null==(e=i.value.find((e=>e.id===a.currentMenuValue[a.currentMenuValue.length-1])))?void 0:e.title)||"",c()},onChangeConfig:s,onChangeSystem:()=>{a.currentSystemValue?a.currentSystem=a.systemList.find((e=>e.project_code===a.currentSystemValue)):a.currentSystem=void 0,a.currentMenuValue=[],a.currentConfig=void 0,a.currentConfigValue="",m()},dialogData:a,confirm:()=>{if(a.currentConfig){let e=n._.cloneDeep(a.currentConfig);e.config_name="",e.config_unique_id=n.v4(),o.close(e)}else n.ElMessage.warning("请选择配置")},confirmLinkCommon:function(e){if(a.currentConfig){let i=n._.cloneDeep(a.currentConfig);r.postgGtConfigRelate({common_config_unique_id:i.config_unique_id,menu_id:t.form_menu.id,project_code:t.form_menu.project_code}).then((t=>{t.data?n.ElMessage.warning("该配置已存在引用关系,请勿重复添加"):o.close({type:e,config:i,dialogData:a})}))}else n.ElMessage.warning("请选择配置")}}}const s={class:"h-full flex flex-col"},m={class:"flex-1"},f={style:{height:"50px"}},d={key:0,class:"w-full",style:{height:"calc(100% - 50px)",overflow:"auto"}},g={key:0},_={class:"flex px-4 flex-wrap"},p={class:"flex px-4 flex-wrap"},C={class:"h-16 flex items-center justify-center"},v=e.defineComponent({__name:"cloneConfigDialog",props:{close:Function,linkItem:Boolean},setup(n){const o=n,{dialogData:t,initData:a,onChangeMenu:i,onChangeConfig:r,onChangeSystem:l,confirm:u,confirmLinkCommon:v}=c(o);e.onMounted((()=>{a()}));const h=e.ref({label:"title",value:"id"});return(o,a)=>{const c=e.resolveComponent("hs-option"),y=e.resolveComponent("hs-select"),k=e.resolveComponent("hs-form-item"),D=e.resolveComponent("hs-cascader"),V=e.resolveComponent("hs-form"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",m,[e.createElementVNode("div",f,[e.createVNode(V,{inline:""},{default:e.withCtx((()=>[e.createVNode(k,{label:"系统:"},{default:e.withCtx((()=>[e.createVNode(y,{disabled:n.linkItem,onChange:e.unref(l),modelValue:e.unref(t).currentSystemValue,"onUpdate:modelValue":a[0]||(a[0]=n=>e.unref(t).currentSystemValue=n),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).systemList,(n=>(e.openBlock(),e.createBlock(c,{key:n.project_code,label:n.project_name,value:n.project_code},null,8,["label","value"])))),128))])),_:1},8,["disabled","onChange","modelValue"])])),_:1}),e.createVNode(k,{label:"菜单:"},{default:e.withCtx((()=>[e.createVNode(D,{onChange:e.unref(i),modelValue:e.unref(t).currentMenuValue,"onUpdate:modelValue":a[1]||(a[1]=n=>e.unref(t).currentMenuValue=n),options:e.unref(t).menuList,props:h.value},null,8,["onChange","modelValue","options","props"])])),_:1}),e.createVNode(k,{label:"配置:"},{default:e.withCtx((()=>[e.createVNode(y,{onChange:e.unref(r),modelValue:e.unref(t).currentConfigValue,"onUpdate:modelValue":a[2]||(a[2]=n=>e.unref(t).currentConfigValue=n),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).configList,(n=>(e.openBlock(),e.createBlock(c,{key:n.config_unique_id,label:n.config_name,value:n.config_unique_id},null,8,["label","value"])))),128))])),_:1},8,["onChange","modelValue"])])),_:1})])),_:1})]),e.unref(t).currentConfig?(e.openBlock(),e.createElementBlock("div",d,[e.unref(t).currentConfig.btns.length>0?(e.openBlock(),e.createElementBlock("div",g,[a[6]||(a[6]=e.createElementVNode("div",{class:"title font-medium my-2"},"按钮",-1)),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).currentConfig.btns,(n=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:n.id},e.toDisplayString(n.data.name)+"--"+e.toDisplayString(n.data.key),1)))),128))])])):e.createCommentVNode("",!0),e.unref(t).currentConfig.forms?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(t).currentConfig.forms,((n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o},[a[7]||(a[7]=e.createElementVNode("div",{class:"title font-medium my-2"},"表单项",-1)),e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.form.formConfig,((n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:o},e.toDisplayString(n.data.elementItem[0].baseData.label)+"--"+e.toDisplayString(n.data.elementItem[0].baseData.prop),1)))),128))])])))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("footer",C,[e.createVNode(b,{size:"default",onClick:a[3]||(a[3]=e=>n.close("cancel"))},{default:e.withCtx((()=>a[8]||(a[8]=[e.createTextVNode("关闭")]))),_:1}),n.linkItem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,type:"primary",size:"default",onClick:e.unref(u)},{default:e.withCtx((()=>a[9]||(a[9]=[e.createTextVNode("确定")]))),_:1},8,["onClick"])),n.linkItem?(e.openBlock(),e.createBlock(b,{key:1,type:"primary",size:"default",onClick:a[4]||(a[4]=n=>e.unref(v)("merge"))},{default:e.withCtx((()=>a[10]||(a[10]=[e.createTextVNode("合并当前配置")]))),_:1})):e.createCommentVNode("",!0),n.linkItem?(e.openBlock(),e.createBlock(b,{key:2,type:"primary",size:"default",onClick:a[5]||(a[5]=n=>e.unref(v)("link"))},{default:e.withCtx((()=>a[11]||(a[11]=[e.createTextVNode("引用当前配置")]))),_:1})):e.createCommentVNode("",!0)])])}}}),h=n._export_sfc(v,[["__scopeId","data-v-5e8600d6"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),k=e.ref({});exports.cloneConfigDialog=y,exports.linkUniqueInfo=k,exports.useSaveForm=function(o,t,r){const l=n.useConfigInfo(),{postSaveConfigRelate:u,postDelConfigRelate:c,postgGtConfigRelate:s}=n.useFieldConfigController(),m=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8});let f=e.ref(!0),d=e.ref(n._.assign(n._.cloneDeep(i),{formData:{name:"",config_name:"",config_unique_id:n.v4()}}));const g=e=>{JSON.parse(e[0].field_json);let t=n._.cloneDeep(i);if(t.formData.name=e[0]&&e[0].config_name||"",t.formData.config_name=e[0]&&e[0].config_name||"",t.formData.is_auth=e[0]&&e[0].is_auth+""||"1",t.formData.config_unique_id=e[0]&&e[0].config_unique_id||n.v4(),t.formData.id=e[0]&&e[0].id||"",t.formData.isClosedKeyStroke=e[0]&&e[0].field_json&&JSON.parse(e[0].field_json).isClosedKeyStroke||!1,t.formData.update_time=e[0]&&e[0].update_time||"",e.length>0){let o=e.map((e=>({label:e.config_name,value:e.config_unique_id,id:e.id,update_time:e.update_time,is_auth:e.is_auth+"",isClosedKeyStroke:e.isClosedKeyStroke||!1}))),a=n._.assign(t.formConfig[0],{op:o});t.formConfig.splice(0,1,a)}d.value=t,f.value=!0;o("change",e.length?JSON.parse(e[0].field_json):{config_unique_id:"",config_name:"",is_auth:"1",isClosedKeyStroke:!1,BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})};function _(e){var n;const o=e.dialogData.currentMenuValue[e.dialogData.currentMenuValue.length-1],t={common_config_unique_id:e.config.config_unique_id,common_menu_id:o,common_config_name:e.config.config_name,common_page_name:e.dialogData.currentMenuName,config_name:d.value.formData.config_name,page_name:l.form_menu.title,config_unique_id:d.value.formData.config_unique_id,menu_id:l.form_menu.id,project_code:e.dialogData.currentSystemValue};(null==(n=k.value)?void 0:n.id)&&(t.id=k.value.id),p(t)}function p(e,o=!0){return u(e).then((t=>{if(1===t.code){if(!o)return Promise.resolve();n.HsMessage.success("关联成功"),s({config_unique_id:e.config_unique_id,menu_id:e.menu_id,project_code:e.project_code}).then((e=>{k.value=n._.get(e,"data",{})}))}}))}function C(e){o("merge",e.config)}return{parentConfig:m,formConfig:d,isEdit:f,saveConfig:async()=>{var e,a;if(!(await t.value.getSubmitData()))return;if(!(null==(e=k.value)?void 0:e.id))return void o("save",d.value.formData);const i=n._.pick(k.value,["common_config_unique_id","common_menu_id","common_config_name","common_page_name","config_name","page_name","config_unique_id","menu_id","project_code","id"]);i.config_name=d.value.formData.config_name,null==(a=p(i,!1))||a.then((()=>{o("save",d.value.formData)}))},changeConfig:(e,t)=>{if("name"==t){let t=n._.cloneDeep(r.configs).find((n=>n.config_unique_id==e));d.value.formData=n._.assign(d.value.formData,{config_name:t.config_name,config_unique_id:t.config_unique_id,isClosedKeyStroke:t.field_json&&JSON.parse(t.field_json).isClosedKeyStroke||!1,id:t.id,update_time:t.update_time,is_auth:t.is_auth+""}),f.value=!0,o("change",JSON.parse(t.field_json))}},initConfig:g,addConfig:()=>{f.value=!1,d.value=n._.cloneDeep(a),d.value.formData.config_unique_id=n.v4();o("change",{config_unique_id:"",config_name:"",is_auth:"1",BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})},cancel:()=>{g(n._.cloneDeep(r.configs)),f.value=!0},deleteConfig:()=>{o("delete",d.value.formData.id)},openCloneDialog:()=>{n.showPopup(h,null,{title:"请选择所需配置",showFooter:!1,success(e){var t;e.data&&(t=e.data,o("change",t),d.value=n._.cloneDeep(a),d.value.formData.config_unique_id=n.v4())}})},openLinkCommonDialog:function(){n.showPopup(h,{linkItem:!0},{title:"请选择所需配置",showFooter:!1,async success(e){const o={linkConfigData:_,mergeConfigData:C};n._.get(o,`${e.data.type}ConfigData`)(e.data)}})},deleteLinkCommonDialog:function(){n.HsMessageBox.alert("确定删除当前引用吗","提示",{showCancelButton:!0,confirmButtonText:"修改",cancelButtonText:"取消",callback:e=>{"confirm"===e&&c({id:k.value.id}).then((e=>{1===e.code&&(k.value={},n.HsMessage.success("删除成功"))}))}})}}};
1
+ "use strict";const e=require("vue"),n=require("./index-B78yukMu.js");const o={config_name:[{required:!0,message:"请输入配置名称"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},t=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"isClosedKeyStroke",label:"关闭键盘事件",el:"hs-switch",attr:{"active-value":!0,"inactive-value":!1},show:!0}],a={formData:{config_name:"",config_unique_id:n.v4(),is_auth:"1"},formRule:o,formConfig:t};const i={formData:{name:"",config_name:"",config_unique_id:"",is_auth:"1"},formRule:o,formConfig:n._.concat([{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],t)},r=n.useFieldConfigController(),l=n.useMenuController(),u=n.useSystemController();function c(o){const t=n.useConfigInfo(),a=e.reactive({systemList:[],currentSystemValue:"",currentSystem:void 0,menuList:[],currentMenuValue:[],currentMenuName:"",configList:[],currentConfig:void 0,currentConfigValue:""}),i=e.computed((()=>n.treeToList(a.menuList))),c=async(e=!0)=>{if(a.currentMenuValue.length<=0||!a.currentSystem)return a.configList=[],void(a.currentConfig=void 0);let t=a.currentMenuValue[a.currentMenuValue.length-1],i=n.Session.get("CURRENT_SYSTEM");await r.getFormByMenu({menu_id:t,project_code:a.currentSystem.project_code}).then((t=>{1==t.code&&(a.configList=n._.cloneDeep(t.data).map((e=>{let t=JSON.parse(e.field_json);return t.btns=t.btns.map((e=>(o.linkItem||(e.id=n.v4()),e))),t.BaseForm&&t.BaseForm.proxy&&t.BaseForm.proxy!=i.project_url&&(t.BaseForm.proxy=i.project_url),t.forms,t.forms&&t.forms.length>0&&(t.forms=t.forms.map((e=>(o.linkItem||(e.id=n.v4()),e.form&&e.form.formConfig&&e.form.formConfig.length>0&&(e.form.formConfig=e.form.formConfig.map((e=>(o.linkItem||(e.id=n.v4()),g(e,i),e)))),e)))),n._.assign(t,{id:"",update_time:""})})),e&&(a.currentConfigValue="",a.currentConfig=void 0))}))},s=()=>{a.currentConfigValue?a.currentConfig=a.configList.find((e=>e.config_unique_id===a.currentConfigValue)):a.currentConfig=void 0},m=()=>a.currentSystem&&a.currentSystem.project_code?l.getMenuList({project_code:a.currentSystem.project_code}).then((e=>1!=e.code?Promise.reject():(a.menuList=e.data||[],a.currentMenuValue=[],Promise.resolve()))).catch((e=>{})):Promise.reject(),f=["hs-select","hs-tree-select"],d=["hs-radio","hs-checkbox"],g=(e,n)=>(f.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.attrs&&e.data.elementItem[0].elData.attrs.proxy&&e.data.elementItem[0].elData.attrs.proxy!=n.project_url&&(e.data.elementItem[0].elData.attrs.proxy=n.project_url),d.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.groupAttrs&&e.data.elementItem[0].elData.groupAttrs.proxy&&e.data.elementItem[0].elData.groupAttrs.proxy!=n.project_url&&(e.data.elementItem[0].elData.groupAttrs.proxy=n.project_url),e);return{initData:()=>{u.getAllSystemInfo().then((e=>{var t;1==e.code&&(a.systemList=e.data||[],a.currentSystem=n.Session.get("CURRENT_SYSTEM"),a.currentSystemValue=(null==(t=a.currentSystem)?void 0:t.project_code)||"",m().then((async()=>{var e;if(o.linkItem&&(null==(e=k.value)?void 0:e.id)){let e=[];const n=o=>{const t=i.value.find((e=>e.id===o));t&&(e.push(t.id),t.pid&&n(t.pid))};n(k.value.common_menu_id),a.currentMenuValue=e.reverse(),a.currentConfigValue=k.value.common_config_unique_id,a.currentMenuName=k.value.common_page_name,await c(!1),s()}})))}))},onChangeMenu:()=>{var e;a.currentMenuName=(null==(e=i.value.find((e=>e.id===a.currentMenuValue[a.currentMenuValue.length-1])))?void 0:e.title)||"",c()},onChangeConfig:s,onChangeSystem:()=>{a.currentSystemValue?a.currentSystem=a.systemList.find((e=>e.project_code===a.currentSystemValue)):a.currentSystem=void 0,a.currentMenuValue=[],a.currentConfig=void 0,a.currentConfigValue="",m()},dialogData:a,confirm:()=>{if(a.currentConfig){let e=n._.cloneDeep(a.currentConfig);e.config_name="",e.config_unique_id=n.v4(),o.close(e)}else n.ElMessage.warning("请选择配置")},confirmLinkCommon:function(e){if(a.currentConfig){let i=n._.cloneDeep(a.currentConfig);r.postgGtConfigRelate({common_config_unique_id:i.config_unique_id,menu_id:t.form_menu.id,project_code:t.form_menu.project_code}).then((t=>{t.data?n.ElMessage.warning("该配置已存在引用关系,请勿重复添加"):o.close({type:e,config:i,dialogData:a})}))}else n.ElMessage.warning("请选择配置")}}}const s={class:"h-full flex flex-col"},m={class:"flex-1"},f={style:{height:"50px"}},d={key:0,class:"w-full",style:{height:"calc(100% - 50px)",overflow:"auto"}},g={key:0},_={class:"flex px-4 flex-wrap"},p={class:"flex px-4 flex-wrap"},C={class:"h-16 flex items-center justify-center"},v=e.defineComponent({__name:"cloneConfigDialog",props:{close:Function,linkItem:Boolean},setup(n){const o=n,{dialogData:t,initData:a,onChangeMenu:i,onChangeConfig:r,onChangeSystem:l,confirm:u,confirmLinkCommon:v}=c(o);e.onMounted((()=>{a()}));const h=e.ref({label:"title",value:"id"});return(o,a)=>{const c=e.resolveComponent("hs-option"),y=e.resolveComponent("hs-select"),k=e.resolveComponent("hs-form-item"),D=e.resolveComponent("hs-cascader"),V=e.resolveComponent("hs-form"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",m,[e.createElementVNode("div",f,[e.createVNode(V,{inline:""},{default:e.withCtx((()=>[e.createVNode(k,{label:"系统:"},{default:e.withCtx((()=>[e.createVNode(y,{disabled:n.linkItem,onChange:e.unref(l),modelValue:e.unref(t).currentSystemValue,"onUpdate:modelValue":a[0]||(a[0]=n=>e.unref(t).currentSystemValue=n),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).systemList,(n=>(e.openBlock(),e.createBlock(c,{key:n.project_code,label:n.project_name,value:n.project_code},null,8,["label","value"])))),128))])),_:1},8,["disabled","onChange","modelValue"])])),_:1}),e.createVNode(k,{label:"菜单:"},{default:e.withCtx((()=>[e.createVNode(D,{onChange:e.unref(i),modelValue:e.unref(t).currentMenuValue,"onUpdate:modelValue":a[1]||(a[1]=n=>e.unref(t).currentMenuValue=n),options:e.unref(t).menuList,props:h.value},null,8,["onChange","modelValue","options","props"])])),_:1}),e.createVNode(k,{label:"配置:"},{default:e.withCtx((()=>[e.createVNode(y,{onChange:e.unref(r),modelValue:e.unref(t).currentConfigValue,"onUpdate:modelValue":a[2]||(a[2]=n=>e.unref(t).currentConfigValue=n),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).configList,(n=>(e.openBlock(),e.createBlock(c,{key:n.config_unique_id,label:n.config_name,value:n.config_unique_id},null,8,["label","value"])))),128))])),_:1},8,["onChange","modelValue"])])),_:1})])),_:1})]),e.unref(t).currentConfig?(e.openBlock(),e.createElementBlock("div",d,[e.unref(t).currentConfig.btns.length>0?(e.openBlock(),e.createElementBlock("div",g,[a[6]||(a[6]=e.createElementVNode("div",{class:"title font-medium my-2"},"按钮",-1)),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).currentConfig.btns,(n=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:n.id},e.toDisplayString(n.data.name)+"--"+e.toDisplayString(n.data.key),1)))),128))])])):e.createCommentVNode("",!0),e.unref(t).currentConfig.forms?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(t).currentConfig.forms,((n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o},[a[7]||(a[7]=e.createElementVNode("div",{class:"title font-medium my-2"},"表单项",-1)),e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.form.formConfig,((n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:o},e.toDisplayString(n.data.elementItem[0].baseData.label)+"--"+e.toDisplayString(n.data.elementItem[0].baseData.prop),1)))),128))])])))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("footer",C,[e.createVNode(b,{size:"default",onClick:a[3]||(a[3]=e=>n.close("cancel"))},{default:e.withCtx((()=>a[8]||(a[8]=[e.createTextVNode("关闭")]))),_:1}),n.linkItem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,type:"primary",size:"default",onClick:e.unref(u)},{default:e.withCtx((()=>a[9]||(a[9]=[e.createTextVNode("确定")]))),_:1},8,["onClick"])),n.linkItem?(e.openBlock(),e.createBlock(b,{key:1,type:"primary",size:"default",onClick:a[4]||(a[4]=n=>e.unref(v)("merge"))},{default:e.withCtx((()=>a[10]||(a[10]=[e.createTextVNode("合并当前配置")]))),_:1})):e.createCommentVNode("",!0),n.linkItem?(e.openBlock(),e.createBlock(b,{key:2,type:"primary",size:"default",onClick:a[5]||(a[5]=n=>e.unref(v)("link"))},{default:e.withCtx((()=>a[11]||(a[11]=[e.createTextVNode("引用当前配置")]))),_:1})):e.createCommentVNode("",!0)])])}}}),h=n._export_sfc(v,[["__scopeId","data-v-5e8600d6"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),k=e.ref({});exports.cloneConfigDialog=y,exports.linkUniqueInfo=k,exports.useSaveForm=function(o,t,r){const l=n.useConfigInfo(),{postSaveConfigRelate:u,postDelConfigRelate:c,postgGtConfigRelate:s}=n.useFieldConfigController(),m=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8});let f=e.ref(!0),d=e.ref(n._.assign(n._.cloneDeep(i),{formData:{name:"",config_name:"",config_unique_id:n.v4()}}));const g=e=>{JSON.parse(e[0].field_json);let t=n._.cloneDeep(i);if(t.formData.name=e[0]&&e[0].config_name||"",t.formData.config_name=e[0]&&e[0].config_name||"",t.formData.is_auth=e[0]&&e[0].is_auth+""||"1",t.formData.config_unique_id=e[0]&&e[0].config_unique_id||n.v4(),t.formData.id=e[0]&&e[0].id||"",t.formData.isClosedKeyStroke=e[0]&&e[0].field_json&&JSON.parse(e[0].field_json).isClosedKeyStroke||!1,t.formData.update_time=e[0]&&e[0].update_time||"",e.length>0){let o=e.map((e=>({label:e.config_name,value:e.config_unique_id,id:e.id,update_time:e.update_time,is_auth:e.is_auth+"",isClosedKeyStroke:e.isClosedKeyStroke||!1}))),a=n._.assign(t.formConfig[0],{op:o});t.formConfig.splice(0,1,a)}d.value=t,f.value=!0;o("change",e.length?JSON.parse(e[0].field_json):{config_unique_id:"",config_name:"",is_auth:"1",isClosedKeyStroke:!1,BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})};function _(e){var n;const o=e.dialogData.currentMenuValue[e.dialogData.currentMenuValue.length-1],t={common_config_unique_id:e.config.config_unique_id,common_menu_id:o,common_config_name:e.config.config_name,common_page_name:e.dialogData.currentMenuName,config_name:d.value.formData.config_name,page_name:l.form_menu.title,config_unique_id:d.value.formData.config_unique_id,menu_id:l.form_menu.id,project_code:e.dialogData.currentSystemValue};(null==(n=k.value)?void 0:n.id)&&(t.id=k.value.id),p(t)}function p(e,o=!0){return u(e).then((t=>{if(1===t.code){if(!o)return Promise.resolve();n.HsMessage.success("关联成功"),s({config_unique_id:e.config_unique_id,menu_id:e.menu_id,project_code:e.project_code}).then((e=>{k.value=n._.get(e,"data",{})}))}}))}function C(e){o("merge",e.config)}return{parentConfig:m,formConfig:d,isEdit:f,saveConfig:async()=>{var e,a;if(!(await t.value.getSubmitData()))return;if(!(null==(e=k.value)?void 0:e.id))return void o("save",d.value.formData);const i=n._.pick(k.value,["common_config_unique_id","common_menu_id","common_config_name","common_page_name","config_name","page_name","config_unique_id","menu_id","project_code","id"]);i.config_name=d.value.formData.config_name,null==(a=p(i,!1))||a.then((()=>{o("save",d.value.formData)}))},changeConfig:(e,t)=>{if("name"==t){let t=n._.cloneDeep(r.configs).find((n=>n.config_unique_id==e));d.value.formData=n._.assign(d.value.formData,{config_name:t.config_name,config_unique_id:t.config_unique_id,isClosedKeyStroke:t.field_json&&JSON.parse(t.field_json).isClosedKeyStroke||!1,id:t.id,update_time:t.update_time,is_auth:t.is_auth+""}),f.value=!0,o("change",JSON.parse(t.field_json))}},initConfig:g,addConfig:()=>{f.value=!1,d.value=n._.cloneDeep(a),d.value.formData.config_unique_id=n.v4();o("change",{config_unique_id:"",config_name:"",is_auth:"1",BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})},cancel:()=>{g(n._.cloneDeep(r.configs)),f.value=!0},deleteConfig:()=>{o("delete",d.value.formData.id)},openCloneDialog:()=>{n.showPopup(h,null,{title:"请选择所需配置",showFooter:!1,success(e){var t;e.data&&(t=e.data,o("change",t),d.value=n._.cloneDeep(a),d.value.formData.config_unique_id=n.v4())}})},openLinkCommonDialog:function(){n.showPopup(h,{linkItem:!0},{title:"请选择所需配置",showFooter:!1,async success(e){const o={linkConfigData:_,mergeConfigData:C};n._.get(o,`${e.data.type}ConfigData`)(e.data)}})},deleteLinkCommonDialog:function(){n.HsMessageBox.alert("确定删除当前引用吗","提示",{showCancelButton:!0,confirmButtonText:"修改",cancelButtonText:"取消",callback:e=>{"confirm"===e&&c({id:k.value.id}).then((e=>{1===e.code&&(k.value={},n.HsMessage.success("删除成功"))}))}})}}};
Binary file
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, withCtx, withDirectives, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
2
- import { a as useRouter, U as useUserInfo, c as useThemeConfig, s as storeToRefs, a8 as systemStore, ah as ClickOutside, ai as screenfull, d as ElMessage, m as mittBus, E as ElMessageBox, aj as clearAllIndexDB, e as _, _ as _export_sfc } from "./index-DDr_U2NZ.mjs";
3
- import { u as useLoginController } from "./index-DDNQM28Y.mjs";
2
+ import { a as useRouter, U as useUserInfo, c as useThemeConfig, s as storeToRefs, a8 as systemStore, ah as ClickOutside, ai as screenfull, d as ElMessage, m as mittBus, E as ElMessageBox, aj as clearAllIndexDB, e as _, _ as _export_sfc } from "./index-BOvWCFhQ.mjs";
3
+ import { u as useLoginController } from "./index-CzKyPL9L.mjs";
4
4
  const _hoisted_1 = ["title"];
5
5
  const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
6
6
  const _hoisted_3 = ["src"];
@@ -10,8 +10,8 @@ const __default__ = defineComponent({
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  ...__default__,
12
12
  setup(__props) {
13
- const UserNews = defineAsyncComponent(() => import("./userNews-9FMkUldm.mjs"));
14
- const Search = defineAsyncComponent(() => import("./search-DGZP8-K4.mjs"));
13
+ const UserNews = defineAsyncComponent(() => import("./userNews-DunXuXT0.mjs"));
14
+ const Search = defineAsyncComponent(() => import("./search-DAYsBLov.mjs"));
15
15
  const login = useLoginController();
16
16
  const userNewsRef = ref();
17
17
  const userNewsBadgeRef = ref();
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CM9HIWW0.js"),o=require("./index-CorVaOC8.js"),n=["title"],r={class:"layout-navbars-breadcrumb-user-link"},l=["src"],a=e.defineComponent({name:"layoutBreadcrumbUser"}),s=e.defineComponent({...a,setup(a){const s=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-BAe-dKzX.js"))))),i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-DiwigXbT.js"))))),c=o.useLoginController(),u=e.ref(),d=e.ref(),m=t.useRouter(),f=t.useUserInfo(),p=t.useThemeConfig(),{userInfos:C}=t.storeToRefs(f),{themeConfig:v}=t.storeToRefs(p),g=e.ref(),h=e.reactive({isScreenfull:!1,disabledSize:"large"}),w=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=v.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),b=()=>{if(!t.screenfull.isEnabled)return t.ElMessage.warning("暂不不支持全屏"),!1;t.screenfull.toggle(),t.screenfull.on("change",(()=>{t.screenfull.isFullscreen?h.isScreenfull=!0:h.isScreenfull=!1}))},N=()=>{var t,o;null==(o=null==(t=e.unref(u).popperRef)?void 0:t.delayHide)||o.call(t)},y=()=>{t.mittBus.emit("openSetingsDrawer")},x=e=>{"logOut"===e?t.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",c.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{f.logout()})).catch((()=>{})):"cleanCanche"===e?t.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):m.push(e)},V=()=>{g.value.openSearch()};return e.onMounted((async()=>{await t.systemStore.get("themeConfig")&&await(async(e,o)=>{h[o]=await t.systemStore.get("themeConfig").then((o=>t._.get(o,e,"large")))})("globalComponentSize","disabledSize")})),(o,a)=>{const c=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),S=e.resolveComponent("ele-ArrowDown"),_=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:w.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(c)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:y},a[0]||(a[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:d},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(t.ClickOutside),N]]),e.createVNode(v,{ref_key:"userNewsRef",ref:u,"virtual-ref":d.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(s))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:b},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",h.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:h.isScreenfull?"关全屏":"开全屏"},null,10,n)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:x},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(_,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>a[1]||(a[1]=[e.createTextVNode("清除缓存")]))),_:1}),e.createVNode(_,{divided:"",command:"logOut"},{default:e.withCtx((()=>a[2]||(a[2]=[e.createTextVNode("退出登录")]))),_:1})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",r,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,l),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(S)])),_:1})])])),_:1}),e.createVNode(e.unref(i),{ref_key:"searchRef",ref:g},null,512)],4)}}}),i=t._export_sfc(s,[["__scopeId","data-v-e3d6c416"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B78yukMu.js"),o=require("./index-DNeViRiX.js"),n=["title"],r={class:"layout-navbars-breadcrumb-user-link"},l=["src"],a=e.defineComponent({name:"layoutBreadcrumbUser"}),s=e.defineComponent({...a,setup(a){const s=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-0cOApqff.js"))))),i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-TdDGQbGP.js"))))),c=o.useLoginController(),u=e.ref(),d=e.ref(),m=t.useRouter(),f=t.useUserInfo(),p=t.useThemeConfig(),{userInfos:C}=t.storeToRefs(f),{themeConfig:v}=t.storeToRefs(p),g=e.ref(),h=e.reactive({isScreenfull:!1,disabledSize:"large"}),w=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=v.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),b=()=>{if(!t.screenfull.isEnabled)return t.ElMessage.warning("暂不不支持全屏"),!1;t.screenfull.toggle(),t.screenfull.on("change",(()=>{t.screenfull.isFullscreen?h.isScreenfull=!0:h.isScreenfull=!1}))},N=()=>{var t,o;null==(o=null==(t=e.unref(u).popperRef)?void 0:t.delayHide)||o.call(t)},y=()=>{t.mittBus.emit("openSetingsDrawer")},x=e=>{"logOut"===e?t.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",c.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{f.logout()})).catch((()=>{})):"cleanCanche"===e?t.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):m.push(e)},V=()=>{g.value.openSearch()};return e.onMounted((async()=>{await t.systemStore.get("themeConfig")&&await(async(e,o)=>{h[o]=await t.systemStore.get("themeConfig").then((o=>t._.get(o,e,"large")))})("globalComponentSize","disabledSize")})),(o,a)=>{const c=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),S=e.resolveComponent("ele-ArrowDown"),_=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:w.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(c)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:y},a[0]||(a[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:d},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(t.ClickOutside),N]]),e.createVNode(v,{ref_key:"userNewsRef",ref:u,"virtual-ref":d.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(s))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:b},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",h.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:h.isScreenfull?"关全屏":"开全屏"},null,10,n)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:x},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(_,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>a[1]||(a[1]=[e.createTextVNode("清除缓存")]))),_:1}),e.createVNode(_,{divided:"",command:"logOut"},{default:e.withCtx((()=>a[2]||(a[2]=[e.createTextVNode("退出登录")]))),_:1})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",r,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,l),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(S)])),_:1})])])),_:1}),e.createVNode(e.unref(i),{ref_key:"searchRef",ref:g},null,512)],4)}}}),i=t._export_sfc(s,[["__scopeId","data-v-e3d6c416"]]);exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CM9HIWW0.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l={class:"content-box"},s={class:"content-box-msg"},c={class:"content-box-time"},a=e.defineComponent({name:"layoutBreadcrumbUserNews"}),r=e.defineComponent({...a,setup(t){const a=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),r=()=>{a.newsList=[]},i=()=>{window.open("https://www.baidu.com")};return(t,d)=>{const m=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[d[0]||(d[0]=e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:r},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[a.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",c,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(m,{key:1,description:"暂无通知"}))]),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:i},"前往通知中心")):e.createCommentVNode("",!0)])}}}),i=t._export_sfc(r,[["__scopeId","data-v-8abed4d4"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B78yukMu.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l={class:"content-box"},s={class:"content-box-msg"},c={class:"content-box-time"},a=e.defineComponent({name:"layoutBreadcrumbUserNews"}),r=e.defineComponent({...a,setup(t){const a=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),r=()=>{a.newsList=[]},i=()=>{window.open("https://www.baidu.com")};return(t,d)=>{const m=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[d[0]||(d[0]=e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:r},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[a.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",c,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(m,{key:1,description:"暂无通知"}))]),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:i},"前往通知中心")):e.createCommentVNode("",!0)])}}}),i=t._export_sfc(r,[["__scopeId","data-v-8abed4d4"]]);exports.default=i;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, reactive, resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString, createBlock } from "vue";
2
- import { _ as _export_sfc } from "./index-DDr_U2NZ.mjs";
2
+ import { _ as _export_sfc } from "./index-BOvWCFhQ.mjs";
3
3
  const _hoisted_1 = { class: "layout-navbars-breadcrumb-user-news" };
4
4
  const _hoisted_2 = { class: "head-box" };
5
5
  const _hoisted_3 = { class: "content-box" };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-Co9y1h2q.mjs";
1
+ import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-CDAAzEMB.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-BEF4DnYd.js");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-bt3KigKO.js");exports.default=e._sfc_main;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
2
- import { N as request } from "./index-DDr_U2NZ.mjs";
2
+ import { N as request } from "./index-BOvWCFhQ.mjs";
3
3
  const assign = (params, title) => {
4
4
  return Object.assign(params, { other_log_info: { title } });
5
5
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("./index-CM9HIWW0.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1})])])}}});exports._sfc_main=c;
1
+ "use strict";const e=require("vue"),t=require("./index-B78yukMu.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1})])])}}});exports._sfc_main=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CM9HIWW0.js"),n=["onClick"],l=e.defineComponent({name:"navMenuVertical"}),o=e.defineComponent({...l,props:{menuList:{type:Array,default:()=>[]}},setup(l){const o=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-D1kWVLdT.js"))))),i=l,a=t.useThemeConfig(),{themeConfig:s}=t.storeToRefs(a),c=t.useRoute(),r=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),u=e.computed((()=>i.menuList)),m=e.computed((()=>s.value)),d=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{r.defaultActive=d(c)})),t.onBeforeRouteUpdate((e=>{r.defaultActive=d(e);document.body.clientWidth<1e3&&(s.value.isCollapse=!1)})),e.watch((()=>s.value.isCollapse),(e=>{document.body.clientWidth<=1e3?r.isCollapse=!1:r.isCollapse=e}),{immediate:!0}),(l,i)=>{const a=e.resolveComponent("SvgIcon"),s=e.resolveComponent("el-sub-menu"),c=e.resolveComponent("el-menu-item"),d=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(d,{router:"","default-active":r.defaultActive,"background-color":"transparent",collapse:r.isCollapse,"unique-opened":m.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.children&&l.children.length>0?(e.openBlock(),e.createBlock(s,{index:`${l.path}?project=mdss`,key:l.path},{title:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(o),{chil:l.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(c,{index:`${l.path}?project=mdss`,key:l.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"])])),_:2},[!l.meta.isLink||l.meta.isLink&&l.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{t.other.handleOpenLink(e)})(l)),["prevent"])},e.toDisplayString(l.meta.title),9,n)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B78yukMu.js"),n=["onClick"],l=e.defineComponent({name:"navMenuVertical"}),o=e.defineComponent({...l,props:{menuList:{type:Array,default:()=>[]}},setup(l){const o=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-BJcPLHo5.js"))))),i=l,a=t.useThemeConfig(),{themeConfig:s}=t.storeToRefs(a),c=t.useRoute(),r=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),u=e.computed((()=>i.menuList)),m=e.computed((()=>s.value)),d=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{r.defaultActive=d(c)})),t.onBeforeRouteUpdate((e=>{r.defaultActive=d(e);document.body.clientWidth<1e3&&(s.value.isCollapse=!1)})),e.watch((()=>s.value.isCollapse),(e=>{document.body.clientWidth<=1e3?r.isCollapse=!1:r.isCollapse=e}),{immediate:!0}),(l,i)=>{const a=e.resolveComponent("SvgIcon"),s=e.resolveComponent("el-sub-menu"),c=e.resolveComponent("el-menu-item"),d=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(d,{router:"","default-active":r.defaultActive,"background-color":"transparent",collapse:r.isCollapse,"unique-opened":m.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.children&&l.children.length>0?(e.openBlock(),e.createBlock(s,{index:`${l.path}?project=mdss`,key:l.path},{title:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(o),{chil:l.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(c,{index:`${l.path}?project=mdss`,key:l.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"])])),_:2},[!l.meta.isLink||l.meta.isLink&&l.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{t.other.handleOpenLink(e)})(l)),["prevent"])},e.toDisplayString(l.meta.title),9,n)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=o;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, createElementVNode, toDisplayString, unref, createSlots, withModifiers } from "vue";
2
- import { c as useThemeConfig, s as storeToRefs, u as useRoute, ae as onBeforeRouteUpdate, ad as other } from "./index-DDr_U2NZ.mjs";
2
+ import { c as useThemeConfig, s as storeToRefs, u as useRoute, ae as onBeforeRouteUpdate, ad as other } from "./index-BOvWCFhQ.mjs";
3
3
  const _hoisted_1 = ["onClick"];
4
4
  const __default__ = defineComponent({
5
5
  name: "navMenuVertical"
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  }
15
15
  },
16
16
  setup(__props) {
17
- const SubItem = defineAsyncComponent(() => import("./subItem-BW33rsWh.mjs"));
17
+ const SubItem = defineAsyncComponent(() => import("./subItem-Dotv8Jff.mjs"));
18
18
  const props = __props;
19
19
  const storesThemeConfig = useThemeConfig();
20
20
  const { themeConfig } = storeToRefs(storesThemeConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "10.6.8",
3
+ "version": "10.7.0",
4
4
  "description": "vue3 + typescript5 + vite5 的框架",
5
5
  "author": "wgd",
6
6
  "private": false,
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CM9HIWW0.js"),o={class:"system-menu-container layout-padding"},a={class:"h-full"},n=e.defineComponent({name:"testtablecomponent"}),l=e.defineComponent({...n,props:{close:Function},setup(n,{expose:l}){const r=e.ref();async function c(e){r.value=e}function s(){var e,o,a;const n=null==(o=null==(e=r.value)?void 0:e.getDataInstance())?void 0:o.form,l=null==n?void 0:n.formConfig.filter((e=>e.data.baseData.isShow)).reduce(((e,o)=>(t._.set(e,o.data.baseData.prop,t._.get(n.formData,o.data.baseData.prop)),e)),{});null==(a=r.value)||a.search(r.value.getActiveTab(),l)}function d(e){}const u=e.ref(!1);return l({getData:()=>u.value?Promise.resolve("111"):(u.value=!0,Promise.reject("错误"))}),(t,n)=>{const l=e.resolveComponent("bc-button"),r=e.resolveComponent("hs-input"),u=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",a,[e.createVNode(u,{type:"1",projectCode:"mdss",id:"3ff17fe5-5616-4956-b919-cb661145e711",mid:"33d4ef3fc0c04d629b37ca81062f57f8",uid:"e8c558159c7845b9b7ba7bb6a2e17198",onReady:c,onFieldChange:d},{btn_search:e.withCtx((t=>[e.createVNode(l,e.mergeProps(t,{onClick:s}),null,16)])),edit:e.withCtx((({row:t,column:o})=>[e.createVNode(r,{modelValue:t[o.field],"onUpdate:modelValue":e=>t[o.field]=e,size:"default"},null,8,["modelValue","onUpdate:modelValue"])])),_:1})])])}}});exports.default=l;
Binary file
@@ -1,4 +0,0 @@
1
- import { M as _sfc_main } from "./index-DDr_U2NZ.mjs";
2
- export {
3
- _sfc_main as default
4
- };
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file