hs-admin-ui 14.5.2 → 14.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/{401-D-WY9_zJ.js → 401-BFcGc0YF.js} +1 -1
  2. package/dist/{401-Dm8DTZMy.mjs → 401-C7t-k2FL.mjs} +1 -1
  3. package/dist/{404-CgSUbynP.js → 404-D5Yf_JqR.js} +1 -1
  4. package/dist/404-D5Yf_JqR.js.gz +0 -0
  5. package/dist/{404-DzlY42Lg.mjs → 404-T8IwaO3d.mjs} +1 -1
  6. package/dist/{404-DzlY42Lg.mjs.gz → 404-T8IwaO3d.mjs.gz} +0 -0
  7. package/dist/{account-CCUtlwfH.mjs → account-BDsPxbDB.mjs} +1 -1
  8. package/dist/{account-C-ORvq3h.js → account-BRDPuuSm.js} +1 -1
  9. package/dist/{aside-Pz9OPp7-.mjs → aside-BS9l2K-r.mjs} +3 -3
  10. package/dist/{aside-DRsmW0_f.js → aside-C_A-fgVn.js} +1 -1
  11. package/dist/{auth_test-Ka0jCp9n.mjs → auth_test-B-UwG5QV.mjs} +1 -1
  12. package/dist/{auth_test-3fFVmaX6.js → auth_test-Bc8c1yyo.js} +1 -1
  13. package/dist/{baseFormConfig--OBk87BY.js → baseFormConfig-6adFcFPX.js} +1 -1
  14. package/dist/{baseFormConfig-DuK7mp8C.mjs → baseFormConfig-ql6B9hvi.mjs} +1 -1
  15. package/dist/baseFormConfig-ql6B9hvi.mjs.gz +0 -0
  16. package/dist/{baseTableConfig-DcnQlX3s.js → baseTableConfig-CMW4Xrw7.js} +1 -1
  17. package/dist/baseTableConfig-CMW4Xrw7.js.gz +0 -0
  18. package/dist/{baseTableConfig-CjBg8muu.mjs → baseTableConfig-lsu1QWMJ.mjs} +1 -1
  19. package/dist/baseTableConfig-lsu1QWMJ.mjs.gz +0 -0
  20. package/dist/{bcFormConfig-BYfD6v1f.mjs → bcFormConfig-CgPGRxTW.mjs} +1 -1
  21. package/dist/{bcFormConfig-BXkD3EYW.js → bcFormConfig-DY_soEXq.js} +1 -1
  22. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-pAzWLMJB.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DTJGRL67.js} +1 -1
  23. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-8jxjaH6H.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-qrQfBQfy.mjs} +2 -2
  24. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-shEDE0bF.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BbgaG7YN.js} +1 -1
  25. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DxhGcFSA.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-Cebhf1KG.mjs} +2 -2
  26. package/dist/{btnIndex-BKvG7-XB.js → btnIndex-BuxAzaQr.js} +1 -1
  27. package/dist/{btnIndex-Coe-EwLs.mjs → btnIndex-nVRjXcgN.mjs} +3 -3
  28. package/dist/btnIndex-nVRjXcgN.mjs.gz +0 -0
  29. package/dist/{classic-Dkp_LH9x.js → classic-Cn02QowB.js} +1 -1
  30. package/dist/{classic-BlRUvYhB.mjs → classic-CvZUpe7h.mjs} +5 -5
  31. package/dist/{cloneConfigDialog-CwsTpB9z.mjs → cloneConfigDialog-BU5PaFnP.mjs} +3 -3
  32. package/dist/cloneConfigDialog-BU5PaFnP.mjs.gz +0 -0
  33. package/dist/{cloneConfigDialog-CwwV4doB.js → cloneConfigDialog-za40YV70.js} +1 -1
  34. package/dist/cloneConfigDialog-za40YV70.js.gz +0 -0
  35. package/dist/{columns-CBIh1kua.js → columns-sito3Bj9.js} +1 -1
  36. package/dist/{columns-CaQzCBZ6.mjs → columns-uwS-f235.mjs} +5 -5
  37. package/dist/{columnsAside-Dl1OwyeJ.js → columnsAside-C-hdbhhc.js} +1 -1
  38. package/dist/{columnsAside-DKYY12oK.mjs → columnsAside-DuDMqNmU.mjs} +1 -1
  39. package/dist/{contextmenu-tvomD8lR.mjs → contextmenu-C9k0Be_d.mjs} +1 -1
  40. package/dist/{contextmenu-B9vu5f99.mjs → contextmenu-CkutaM4h.mjs} +1 -1
  41. package/dist/{contextmenu-DPs5oUjJ.js → contextmenu-DTGCgSf0.js} +1 -1
  42. package/dist/{contextmenu-DWiy1aDu.js → contextmenu-Wllx5SED.js} +1 -1
  43. package/dist/{copyMenuConfig-CH7JxwCY.mjs → copyMenuConfig-B4DlyBbi.mjs} +1 -1
  44. package/dist/{copyMenuConfig-CMZWwqm2.js → copyMenuConfig-CeOnH0pC.js} +1 -1
  45. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-3xfKiXrj.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-D0MahdTp.mjs} +2 -2
  46. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-CdDevrKF.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-w0xs4i8H.js} +1 -1
  47. package/dist/{copySystem-Di8EnIu9.mjs → copySystem-B58l6c-b.mjs} +1 -1
  48. package/dist/{copySystem-CRQe9sUN.js → copySystem-CC1r7sMz.js} +1 -1
  49. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DMXeaqM3.mjs → copySystem.vue_vue_type_script_setup_true_lang-CjXhXDVd.mjs} +2 -2
  50. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DMU4S_sm.js → copySystem.vue_vue_type_script_setup_true_lang-Db56jG6B.js} +1 -1
  51. package/dist/{defaults-D2fBiFti.mjs → defaults-BSh7GMsH.mjs} +4 -4
  52. package/dist/{defaults-CyzaStJD.js → defaults-D4cgpHt2.js} +1 -1
  53. package/dist/{dialog-BhWTLUhA.js → dialog-57XNPG2j.js} +1 -1
  54. package/dist/{dialog-DiVUtB6G.mjs → dialog-BEFqkqYX.mjs} +1 -1
  55. package/dist/{dialog-BFzeoykl.js → dialog-By8Cce2F.js} +1 -1
  56. package/dist/{dialog-BinC1p9y.mjs → dialog-CzVnoTlm.mjs} +1 -1
  57. package/dist/{dialog-aCKZcQTu.mjs → dialog-DDXkgTZX.mjs} +1 -1
  58. package/dist/{dialog-DxCPAYxE.js → dialog-DlOXnF5g.js} +1 -1
  59. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DoyJ-1MN.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BRBhzfXa.mjs} +3 -3
  60. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-TK5eq5ck.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CB0JUMzk.js} +1 -1
  61. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Jxm24D0f.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2wSbSv3.js} +1 -1
  62. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2wSbSv3.js.gz +0 -0
  63. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B1NxfRcQ.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-X9x4wgqH.mjs} +2 -2
  64. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-X9x4wgqH.mjs.gz +0 -0
  65. package/dist/{dictDialog-DFeRTYIc.mjs → dictDialog-Bne6LYal.mjs} +1 -1
  66. package/dist/{dictDialog-W2oAx-5m.js → dictDialog-CfqEi9Wj.js} +1 -1
  67. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-_AaqmOh0.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B3AO4WHA.js} +1 -1
  68. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CkyEdnTb.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CgSUOqRz.mjs} +2 -2
  69. package/dist/{dictItemDialog-D4zxFXDb.mjs → dictItemDialog-BzOqzMw5.mjs} +1 -1
  70. package/dist/{dictItemDialog-ZVFUVywa.js → dictItemDialog-DFnvomy8.js} +1 -1
  71. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BSDFP9hu.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BTwnYJwy.mjs} +2 -2
  72. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-DsSGZ9nJ.js → dictItemDialog.vue_vue_type_script_setup_true_lang-BZqGLTVj.js} +1 -1
  73. package/dist/{formConfig-Bj_zCHSu.mjs → formConfig-Blb2gOrv.mjs} +6 -6
  74. package/dist/formConfig-Blb2gOrv.mjs.gz +0 -0
  75. package/dist/{formConfig-DXKV5RWR.js → formConfig-DVVX0eVG.js} +1 -1
  76. package/dist/formConfig-DVVX0eVG.js.gz +0 -0
  77. package/dist/{header-2AbK8KQG.mjs → header-BppPx3cN.mjs} +2 -2
  78. package/dist/{header-Y1K41E_r.js → header-CIjLhTMi.js} +1 -1
  79. package/dist/{horizontal-CqRJLrMt.mjs → horizontal-DPllyLhC.mjs} +2 -2
  80. package/dist/{horizontal-Cf_EWRGj.js → horizontal-O9SWEqec.js} +1 -1
  81. package/dist/{hsAttrBtn-Dsp20zUk.js → hsAttrBtn-Ck_ajqak.js} +1 -1
  82. package/dist/{hsAttrBtn-BoN1CZ-c.mjs → hsAttrBtn-lMMul8Gn.mjs} +1 -1
  83. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DoXZh84v.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BEl8tAqN.mjs} +4 -4
  84. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DmnMCB7b.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-D5-CQ1nV.js} +1 -1
  85. package/dist/{hsAttrForm-By9NjFmy.mjs → hsAttrForm-C1e8A6Ai.mjs} +1 -1
  86. package/dist/{hsAttrForm-VlLldGLk.js → hsAttrForm-scaGZWt3.js} +1 -1
  87. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BU96zxbU.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-BJOhPzG2.mjs} +4 -4
  88. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BJOhPzG2.mjs.gz +0 -0
  89. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BBm0nQ6k.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BRpOpzdQ.js} +1 -1
  90. package/dist/{hsBtnConfigList-BZnFa-2H.mjs → hsBtnConfigList-BKtODSeE.mjs} +1 -1
  91. package/dist/{hsBtnConfigList-C2soO3nh.js → hsBtnConfigList-D0ivXxWe.js} +1 -1
  92. package/dist/{hsBtnItemConfig-DrANeeY1.mjs → hsBtnItemConfig-0WNBqAM0.mjs} +1 -1
  93. package/dist/{hsBtnItemConfig-Cv2Edtwg.js → hsBtnItemConfig-BAVb9qR3.js} +1 -1
  94. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DEgLpcwv.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BF2VOOqZ.mjs} +3 -3
  95. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-sjhGB3tQ.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-i9K7SqtW.js} +1 -1
  96. package/dist/{hsBtnPanel-DPk546UL.mjs → hsBtnPanel-Ciy6iQKh.mjs} +1 -1
  97. package/dist/{hsBtnPanel-qzL5L2r6.js → hsBtnPanel-DV_cmUel.js} +1 -1
  98. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C32QboXN.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmY1-A-y.js} +1 -1
  99. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BGy7h0vr.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-V756tjdz.mjs} +4 -4
  100. package/dist/{hsExpand-CRsU3uWa.mjs → hsExpand-CMgYGoUY.mjs} +1 -1
  101. package/dist/{hsExpand-D-JYw9aP.js → hsExpand-I6aiE98v.js} +1 -1
  102. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BvQrqGtN.js → hsExpand.vue_vue_type_script_setup_true_lang-DifEB4jO.js} +1 -1
  103. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DwUJ8qv7.mjs → hsExpand.vue_vue_type_script_setup_true_lang-eGsFL-Dn.mjs} +1 -1
  104. package/dist/{hsFormConfig-BAaN52Qe.mjs → hsFormConfig-BsnnCn6C.mjs} +1 -1
  105. package/dist/{hsFormConfig-Cve8Qmlh.js → hsFormConfig-C9xotv4F.js} +1 -1
  106. package/dist/{hsFormConfigList-C56UNWJS.js → hsFormConfigList-Bul5Jsjf.js} +1 -1
  107. package/dist/{hsFormConfigList-BfNdoMf_.mjs → hsFormConfigList-CCFbFYaz.mjs} +2 -2
  108. package/dist/hsFormConfigList-CCFbFYaz.mjs.gz +0 -0
  109. package/dist/{hsFormPanel-BhKw3eBn.js → hsFormPanel-CYIT6VFQ.js} +1 -1
  110. package/dist/{hsFormPanel-CSIm9Swz.mjs → hsFormPanel-DL3_zoR3.mjs} +6 -6
  111. package/dist/hsFormPanel-DL3_zoR3.mjs.gz +0 -0
  112. package/dist/{hsFormParse-Io2kwlh2.mjs → hsFormParse-Dg1y9WR7.mjs} +1 -1
  113. package/dist/{hsFormParse-aghbOLwS.js → hsFormParse-qDVWP_H2.js} +1 -1
  114. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DAXIdnhR.js → hsFormParse.vue_vue_type_script_setup_true_lang-CECVaw1v.js} +1 -1
  115. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DjW5zyk0.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DKjAygNp.mjs} +3 -3
  116. package/dist/{hsPanelItem-CCM8Aj3i.js → hsPanelItem-3vTVzz8I.js} +1 -1
  117. package/dist/{hsPanelItem-67Hc-k2z.mjs → hsPanelItem-BeHkIabW.mjs} +1 -1
  118. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-7CbUDtyl.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-COwkDDBe.js} +1 -1
  119. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BybMLWyn.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D110p-DA.mjs} +1 -1
  120. package/dist/{index copy-CPB0gZ69.js → index copy-7tU_uXw0.js } +1 -1
  121. package/dist/index copy-7tU_uXw0.js.gz +0 -0
  122. package/dist/{index copy-CdNppW64.mjs → index copy-BBbe6Igj.mjs } +1 -1
  123. package/dist/{index copy-xjugMN8Z.mjs → index copy-BwfQhlZK.mjs } +1 -1
  124. package/dist/index copy-BwfQhlZK.mjs.gz +0 -0
  125. package/dist/{index copy-ZByvp8Ea.js → index copy-DV9r6vrs.js } +1 -1
  126. package/dist/{index-EhZDYRjm.js → index-4rmxyNMs.js} +1 -1
  127. package/dist/{index-B79rR1dv.js → index-6JXVNLKo.js} +1 -1
  128. package/dist/{index-ByqdRs-y.mjs → index-8Tr20IHD.mjs} +2 -2
  129. package/dist/{index-9ObIPOx-.js → index-B--o8Adt.js} +1 -1
  130. package/dist/{index-Polo_x23.js → index-B39AUGzG.js} +1 -1
  131. package/dist/{index-DNem5l2F.js → index-B6tmN8gk.js} +1 -1
  132. package/dist/{index-Br1tIqPT.mjs → index-B6uIP2zX.mjs} +5 -5
  133. package/dist/{index-CSbEv3-Y.mjs → index-B7WYxdML.mjs} +1 -1
  134. package/dist/{index-i_EPkVJK.mjs → index-BA3ZMutt.mjs} +3 -3
  135. package/dist/{index-Bzytjui0.js → index-BHAQfdOE.js} +1 -1
  136. package/dist/{index-DwvwVC3m.mjs → index-BIkuKH1H.mjs} +10 -10
  137. package/dist/index-BIkuKH1H.mjs.gz +0 -0
  138. package/dist/{index-BV2mZreX.js → index-BU0ARBi6.js} +1 -1
  139. package/dist/{index-trHih1KF.js → index-BUF6hcfk.js} +1 -1
  140. package/dist/{index-V60eCGHI.js → index-BUR_Iw-U.js} +1 -1
  141. package/dist/{index-DAT677A0.js → index-BnAZsmrg.js} +1 -1
  142. package/dist/{index-Bk6Epc-I.js → index-BrWlCNP_.js} +4 -4
  143. package/dist/index-BrWlCNP_.js.gz +0 -0
  144. package/dist/{index-D5JPC5P-.mjs → index-BvhLtv-O.mjs} +1 -1
  145. package/dist/{index-ke58U1y8.mjs → index-BwfVhbeJ.mjs} +1 -1
  146. package/dist/{index-BbRsrav3.mjs → index-BxIbFN4B.mjs} +1 -1
  147. package/dist/{index-Cmg18tlb.js → index-C6UhaGKN.js} +1 -1
  148. package/dist/{index-ecLf0noV.mjs → index-C8HJMFvy.mjs} +1 -1
  149. package/dist/{index-DT18oRcm.mjs → index-CA4Oweda.mjs} +1 -1
  150. package/dist/{index-D31ii_68.mjs → index-CCXH4Mt_.mjs} +1 -1
  151. package/dist/{index-CSePGkvM.js → index-CFoeJD_C.js} +1 -1
  152. package/dist/{index-O-T6F5t1.mjs → index-CSMvDHQN.mjs} +1 -1
  153. package/dist/{index-DQDqx78E.mjs → index-CY5BEghb.mjs} +4 -4
  154. package/dist/{index-DT56Jd84.mjs → index-C_-dzrfq.mjs} +4 -4
  155. package/dist/{index-DlVwX4Rs.js → index-Cbw-cbky.js} +1 -1
  156. package/dist/{index-BJfjHvia.mjs → index-Cf3P0eAy.mjs} +1 -1
  157. package/dist/{index-CNLjfuou.js → index-CfqrBcEF.js} +1 -1
  158. package/dist/{index-B25PRkPG.js → index-ChrTrVcB.js} +1 -1
  159. package/dist/{index-DAGT_a0_.js → index-CiLG9VY4.js} +1 -1
  160. package/dist/{index-zusnwGYd.mjs → index-CqAmn1mY.mjs} +3 -3
  161. package/dist/{index-DHKtz1qy.js → index-Cqr5WPMY.js} +1 -1
  162. package/dist/{index-DcC9s7H7.js → index-CuYqrUHR.js} +1 -1
  163. package/dist/{index-CoqDATo2.mjs → index-CzDp683R.mjs} +162 -168
  164. package/dist/index-CzDp683R.mjs.gz +0 -0
  165. package/dist/{index-B3iqSeLi.mjs → index-D-VOXt-W.mjs} +1 -1
  166. package/dist/{index-Cor2aQd9.mjs → index-D2v0Cwtt.mjs} +1 -1
  167. package/dist/{index-Bats51yq.mjs → index-D6wnUirv.mjs} +3 -3
  168. package/dist/{index-BerxIXnv.mjs → index-D9UjTzTb.mjs} +1 -1
  169. package/dist/{index-BjOXCzz4.js → index-DFNHEEG5.js} +1 -1
  170. package/dist/{index-BrNwnnzC.mjs → index-DMNJM27J.mjs} +2 -2
  171. package/dist/index-DMNJM27J.mjs.gz +0 -0
  172. package/dist/{index-M_t1HT2c.js → index-DNDrTO8v.js} +1 -1
  173. package/dist/{index-B54zHKvP.js → index-DNdI-HFh.js} +1 -1
  174. package/dist/{index-DZP2yyeA.mjs → index-DNxKuScX.mjs} +1 -1
  175. package/dist/{index-Bu_2MaEu.js → index-DO91IsLo.js} +1 -1
  176. package/dist/{index-CWSHNs4D.mjs → index-DT96-X6n.mjs} +1 -1
  177. package/dist/{index-BZoonKNb.mjs → index-DUwaPTFt.mjs} +3 -3
  178. package/dist/{index-bVnJl4fa.mjs → index-DVcva34g.mjs} +5 -5
  179. package/dist/{index-BvekIgxz.mjs → index-Dd7If5Hk.mjs} +4 -4
  180. package/dist/{index-CoDOsT-T.js → index-DdRi21HC.js} +1 -1
  181. package/dist/{index-DU2AWmN4.js → index-DkzXPRnv.js} +1 -1
  182. package/dist/{index-6CV8H4kg.js → index-DnwxSA_Z.js} +1 -1
  183. package/dist/{index-1UEY5PyB.mjs → index-DtQ49gCX.mjs} +1 -1
  184. package/dist/{index-nSN4jaFA.mjs → index-DuH5Hsw3.mjs} +1 -1
  185. package/dist/{index-C2HvST2n.mjs → index-DvegZl04.mjs} +1 -1
  186. package/dist/{index-DqOMkFGD.mjs → index-Dzznaih4.mjs} +4 -4
  187. package/dist/index-Dzznaih4.mjs.gz +0 -0
  188. package/dist/{index-A8D04Akf.js → index-G5tVKtqJ.js} +1 -1
  189. package/dist/index-G5tVKtqJ.js.gz +0 -0
  190. package/dist/{index-BQP3Yjeu.js → index-NKZJ3ls0.js} +1 -1
  191. package/dist/{index-C6LXgI6-.js → index-P_97E4zg.js} +1 -1
  192. package/dist/{index-CZ9Ygxmp.mjs → index-RAcM_6Dc.mjs} +4 -4
  193. package/dist/{index-APHdmnsm.js → index-Y0W0GNm3.js} +1 -1
  194. package/dist/{index-DtEzY09Y.mjs → index-ZN1eOCHY.mjs} +4 -4
  195. package/dist/index-ZN1eOCHY.mjs.gz +0 -0
  196. package/dist/{index-ka8JR01y.mjs → index-fWOnFX9R.mjs} +1 -1
  197. package/dist/{index-oGgjhkJT.mjs → index-iH2goGRi.mjs} +1 -1
  198. package/dist/{index-DfmCmIwD.js → index-kX4uq6Us.js} +1 -1
  199. package/dist/{index-DYVqDiG7.js → index-kseS2h4p.js} +1 -1
  200. package/dist/{index-CsegsNWi.js → index-le4yZ4km.js} +1 -1
  201. package/dist/{index-Dozx_BVg.mjs → index-opaWTgkE.mjs} +1 -1
  202. package/dist/{index-C2GvYhhS.js → index-x9weKwTl.js} +1 -1
  203. package/dist/index-x9weKwTl.js.gz +0 -0
  204. package/dist/{index-DcuyO38L.js → index-y4S48M_D.js} +1 -1
  205. package/dist/{index-Dsmj35_B.js → index-yZVNVfaQ.js} +1 -1
  206. package/dist/{index-Bk0WCr8q.js → index-y_DeTfeX.js} +1 -1
  207. package/dist/{index-0aqIzrHp.mjs → index-ze1ttH53.mjs} +1 -1
  208. package/dist/index.js +1 -1
  209. package/dist/index.mjs +1 -1
  210. package/dist/{index.vue_vue_type_script_setup_true_lang-sybSJKco.mjs → index.vue_vue_type_script_setup_true_lang-7GyLJEI2.mjs} +1 -1
  211. package/dist/{index.vue_vue_type_script_setup_true_lang-uigbJNw2.mjs → index.vue_vue_type_script_setup_true_lang-BU2SlgcH.mjs} +6 -6
  212. package/dist/{index.vue_vue_type_script_setup_true_lang-BIi5AVdm.mjs → index.vue_vue_type_script_setup_true_lang-B_b21ack.mjs} +3 -3
  213. package/dist/{index.vue_vue_type_script_setup_true_lang-CJ4QfV6X.js → index.vue_vue_type_script_setup_true_lang-BrVuH2rH.js} +1 -1
  214. package/dist/{index.vue_vue_type_script_setup_true_lang-CkwufL1Q.js → index.vue_vue_type_script_setup_true_lang-ByNkT84R.js} +1 -1
  215. package/dist/{index.vue_vue_type_script_setup_true_lang-B2WKpuz2.js → index.vue_vue_type_script_setup_true_lang-CAp5_Gq1.js} +1 -1
  216. package/dist/{index.vue_vue_type_script_setup_true_lang-Bjb6AtrB.mjs → index.vue_vue_type_script_setup_true_lang-CSdSxDAq.mjs} +4 -4
  217. package/dist/index.vue_vue_type_script_setup_true_lang-CSdSxDAq.mjs.gz +0 -0
  218. package/dist/{index.vue_vue_type_script_setup_true_lang-D9VSkkz9.js → index.vue_vue_type_script_setup_true_lang-DoFyY2Sx.js} +1 -1
  219. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-ClsFQcta.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-B6FcThF3.js} +1 -1
  220. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-DSCp0TPj.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-Cc-PUPsw.mjs} +2 -2
  221. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-Cc-PUPsw.mjs.gz +0 -0
  222. package/dist/{link-DTIe2eby.mjs → link-CbJunKtM.mjs} +1 -1
  223. package/dist/{link-32uHwFom.js → link-MZfzKDJ_.js} +1 -1
  224. package/dist/{list-Dzlt9wT7.js → list-33zl5M7T.js} +1 -1
  225. package/dist/{list-DVDq-k2Y.mjs → list-zgDoyjDs.mjs} +1 -1
  226. package/dist/{main-Dcf9KmFa.js → main-BNJnxxRq.js} +1 -1
  227. package/dist/{main-C7X5XlGc.mjs → main-D3ZLqExX.mjs} +3 -3
  228. package/dist/{mobile-0sM9FtDF.mjs → mobile-CniPELT0.mjs} +1 -1
  229. package/dist/{mobile-CFosM3EM.js → mobile-mhWAMLou.js} +1 -1
  230. package/dist/{parent-Wcfy5wQo.mjs → parent-BLcyM9LK.mjs} +1 -1
  231. package/dist/{parent-B8Q1lM6U.js → parent-Up51pQ9g.js} +1 -1
  232. package/dist/{popup-DZ9JscRV.mjs → popup-DUp4pNSq.mjs} +1 -1
  233. package/dist/{popup-CB6sirvI.js → popup-DicE9pKB.js} +1 -1
  234. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BeJsnKMp.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-7r0EJ2GU.mjs} +1 -1
  235. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-CslW-UYT.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DlGq4TRm.js} +1 -1
  236. package/dist/{roleItem-BhbtwCO9.mjs → roleItem-D50dNSWP.mjs} +1 -1
  237. package/dist/{roleItem-DIDRsCGz.js → roleItem-tYcI1eBq.js} +1 -1
  238. package/dist/{saveForm-7h0GBxec.js → saveForm-99A6cBug.js} +1 -1
  239. package/dist/{saveForm-Dw0toTk4.mjs → saveForm-ByDpmYdg.mjs} +3 -3
  240. package/dist/{scan-CU3ZnvP3.mjs → scan-B1nQ8LaZ.mjs} +1 -1
  241. package/dist/scan-B1nQ8LaZ.mjs.gz +0 -0
  242. package/dist/{scan-DqWr6Bh6.js → scan-BBAEY8V6.js} +1 -1
  243. package/dist/scan-BBAEY8V6.js.gz +0 -0
  244. package/dist/{search-J8VULeoQ.mjs → search-BDVzM1lS.mjs} +1 -1
  245. package/dist/{search-DFEOl97y.js → search-C23-6TFw.js} +1 -1
  246. package/dist/{selectConfig-CZDxPvyc.mjs → selectConfig-CVidaVAz.mjs} +1 -1
  247. package/dist/selectConfig-CVidaVAz.mjs.gz +0 -0
  248. package/dist/{selectConfig-DL8fZ2uP.js → selectConfig-DmsGorqI.js} +1 -1
  249. package/dist/{subItem-D38KilgO.mjs → subItem-DHLPCTGj.mjs} +1 -1
  250. package/dist/{subItem-CxDhdPfp.js → subItem-X9W0kdD-.js} +1 -1
  251. package/dist/{tagsView-j0gPJG4Y.mjs → tagsView-BiKgvuFW.mjs} +2 -2
  252. package/dist/tagsView-BiKgvuFW.mjs.gz +0 -0
  253. package/dist/{tagsView-BYAsVe7I.js → tagsView-Ngyibgac.js} +2 -2
  254. package/dist/tagsView-Ngyibgac.js.gz +0 -0
  255. package/dist/{transverse-Cc4iiZJL.mjs → transverse-D_gn8XBb.mjs} +3 -3
  256. package/dist/{transverse-B9OVnCHP.js → transverse-MxgcrFTa.js} +1 -1
  257. package/dist/types/components/business/bcTable/utils/onTableKey.d.ts +1 -1
  258. package/dist/{uploadAvatar-DhDoB4se.js → uploadAvatar-B31s_r-W.js} +1 -1
  259. package/dist/uploadAvatar-B31s_r-W.js.gz +0 -0
  260. package/dist/{uploadAvatar-liUfPt-0.mjs → uploadAvatar-CggNhWYC.mjs} +1 -1
  261. package/dist/uploadAvatar-CggNhWYC.mjs.gz +0 -0
  262. package/dist/{user-UPpBVjMv.js → user-BLeXo26d.js} +1 -1
  263. package/dist/{user-CxbKI2zL.mjs → user-Djg9Mi35.mjs} +3 -3
  264. package/dist/{userNews-pHH9oEh3.js → userNews-CBzqnFq9.js} +1 -1
  265. package/dist/{userNews-7OtZJMRy.mjs → userNews-DExN5tlg.mjs} +1 -1
  266. package/dist/{userSelect-CwnCWCTL.js → userSelect-CN7faj0-.js} +1 -1
  267. package/dist/{userSelect-D4NlrX1X.mjs → userSelect-Dr1xpKWu.mjs} +1 -1
  268. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CuM6Z2lU.mjs → userSelect.vue_vue_type_script_setup_true_lang-BqB-g7XX.mjs} +1 -1
  269. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DPH4a5SM.js → userSelect.vue_vue_type_script_setup_true_lang-DQ9ya4yv.js} +1 -1
  270. package/dist/{vertical-B2uiACti.js → vertical-CQGfU-z4.js} +1 -1
  271. package/dist/{vertical-DuxtIC4M.mjs → vertical-xnEHtfiL.mjs} +2 -2
  272. package/package.json +1 -1
  273. package/dist/404-CgSUbynP.js.gz +0 -0
  274. package/dist/baseFormConfig-DuK7mp8C.mjs.gz +0 -0
  275. package/dist/baseTableConfig-CjBg8muu.mjs.gz +0 -0
  276. package/dist/baseTableConfig-DcnQlX3s.js.gz +0 -0
  277. package/dist/btnIndex-Coe-EwLs.mjs.gz +0 -0
  278. package/dist/cloneConfigDialog-CwsTpB9z.mjs.gz +0 -0
  279. package/dist/cloneConfigDialog-CwwV4doB.js.gz +0 -0
  280. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B1NxfRcQ.mjs.gz +0 -0
  281. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Jxm24D0f.js.gz +0 -0
  282. package/dist/formConfig-Bj_zCHSu.mjs.gz +0 -0
  283. package/dist/formConfig-DXKV5RWR.js.gz +0 -0
  284. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BU96zxbU.mjs.gz +0 -0
  285. package/dist/hsFormConfigList-BfNdoMf_.mjs.gz +0 -0
  286. package/dist/hsFormPanel-CSIm9Swz.mjs.gz +0 -0
  287. package/dist/index copy-CPB0gZ69.js.gz +0 -0
  288. package/dist/index copy-xjugMN8Z.mjs.gz +0 -0
  289. package/dist/index-A8D04Akf.js.gz +0 -0
  290. package/dist/index-Bk6Epc-I.js.gz +0 -0
  291. package/dist/index-BrNwnnzC.mjs.gz +0 -0
  292. package/dist/index-C2GvYhhS.js.gz +0 -0
  293. package/dist/index-CoqDATo2.mjs.gz +0 -0
  294. package/dist/index-DqOMkFGD.mjs.gz +0 -0
  295. package/dist/index-DtEzY09Y.mjs.gz +0 -0
  296. package/dist/index-DwvwVC3m.mjs.gz +0 -0
  297. package/dist/index.vue_vue_type_script_setup_true_lang-Bjb6AtrB.mjs.gz +0 -0
  298. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DSCp0TPj.mjs.gz +0 -0
  299. package/dist/scan-CU3ZnvP3.mjs.gz +0 -0
  300. package/dist/scan-DqWr6Bh6.js.gz +0 -0
  301. package/dist/selectConfig-CZDxPvyc.mjs.gz +0 -0
  302. package/dist/tagsView-BYAsVe7I.js.gz +0 -0
  303. package/dist/tagsView-j0gPJG4Y.mjs.gz +0 -0
  304. package/dist/uploadAvatar-DhDoB4se.js.gz +0 -0
  305. package/dist/uploadAvatar-liUfPt-0.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_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-Bk6Epc-I.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,imgIsQqualCrop:!1}},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 h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);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 h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.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 h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),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,h=t.touches[0].clientX,o=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(h-c,2)+Math.pow(o-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,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,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,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}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,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,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 h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+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=h,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,h){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=h,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,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=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-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(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-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),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=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-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<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-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>h?(this.cropH=h-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,h,o){const r=t/e;let a=h,c=o;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<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,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,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-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,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=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),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,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},h=this.trueWidth*i,o=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+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/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=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},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 h=(this.x-this.cropOffsertX)/i,o=(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(${h}px, ${o}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(${h}px, ${o}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 h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=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(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){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(h){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,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},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 h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},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 h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.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()}},h={key:0,class:"cropper-box"},o=["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",h,[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,o)],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-8e42ffcf"]]),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:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);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:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,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(h,{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(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_: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,__:[7]})])),_: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,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);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_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-BrWlCNP_.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,imgIsQqualCrop:!1}},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 h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);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 h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.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 h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),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,h=t.touches[0].clientX,o=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(h-c,2)+Math.pow(o-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,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,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,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}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,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,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 h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+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=h,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,h){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=h,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,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=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-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(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-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),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=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-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<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-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>h?(this.cropH=h-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,h,o){const r=t/e;let a=h,c=o;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<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,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,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-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,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=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),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,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},h=this.trueWidth*i,o=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+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/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=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},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 h=(this.x-this.cropOffsertX)/i,o=(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(${h}px, ${o}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(${h}px, ${o}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 h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=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(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){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(h){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,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},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 h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},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 h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.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()}},h={key:0,class:"cropper-box"},o=["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",h,[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,o)],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-8e42ffcf"]]),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:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);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:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,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(h,{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(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_: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,__:[7]})])),_: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,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
Binary file
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, 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_8e10f7e4_lang-DOiOwYLl.mjs";
3
- import { _ as _export_sfc, V as systemStore, b as ElMessage, Y as useFileController } from "./index-CoqDATo2.mjs";
3
+ import { _ as _export_sfc, V as systemStore, b as ElMessage, Y as useFileController } from "./index-CzDp683R.mjs";
4
4
  const _sfc_main$1 = {
5
5
  data: function() {
6
6
  return {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-Bk6Epc-I.js"),n=require("pinia"),r=["title"],l={class:"layout-navbars-breadcrumb-user-link"},a=["src"],s=e.defineComponent({name:"layoutBreadcrumbUser"}),i=e.defineComponent({...s,setup(s){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-pHH9oEh3.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-DFEOl97y.js"))))),u=o.useLoginController(),d=e.ref(),m=e.ref(),f=t.useRouter(),p=o.useUserInfo(),v=o.useThemeConfig(),{userInfos:C}=n.storeToRefs(p),{themeConfig:g}=n.storeToRefs(v),h=e.ref(),w=e.reactive({isScreenfull:!1,disabledSize:"large"}),b=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=g.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),N=()=>{if(!o.screenfull.isEnabled)return o.ElMessage.warning("暂不不支持全屏"),!1;o.screenfull.toggle(),o.screenfull.on("change",(()=>{o.screenfull.isFullscreen?w.isScreenfull=!0:w.isScreenfull=!1}))},y=()=>{var t,o;null==(o=null==(t=e.unref(d).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{o.mittBus.emit("openSetingsDrawer")},V=e=>{"logOut"===e?o.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",u.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{p.logout()})).catch((()=>{})):"cleanCanche"===e?o.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):f.push(e)},_=()=>{h.value.openSearch()};return e.onMounted((async()=>{await o.systemStore.get("themeConfig")&&await(async(e,t)=>{w[t]=await o.systemStore.get("themeConfig").then((t=>o._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,n)=>{const s=e.resolveComponent("ele-Search"),u=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),g=e.resolveComponent("ele-ArrowDown"),S=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:b.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:_},[e.createVNode(u,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},n[0]||(n[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:m},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(u,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(o.ClickOutside),y]]),e.createVNode(v,{ref_key:"userNewsRef",ref:d,"virtual-ref":m.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(i))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:N},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",w.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:w.isScreenfull?"关全屏":"开全屏"},null,10,r)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:V},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>n[1]||(n[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",l,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,a),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(u,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])])),_:1}),e.createVNode(e.unref(c),{ref_key:"searchRef",ref:h},null,512)],4)}}}),c=o._export_sfc(i,[["__scopeId","data-v-7f4c1077"]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-BrWlCNP_.js"),n=require("pinia"),r=["title"],l={class:"layout-navbars-breadcrumb-user-link"},a=["src"],s=e.defineComponent({name:"layoutBreadcrumbUser"}),i=e.defineComponent({...s,setup(s){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-CBzqnFq9.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-C23-6TFw.js"))))),u=o.useLoginController(),d=e.ref(),m=e.ref(),f=t.useRouter(),p=o.useUserInfo(),v=o.useThemeConfig(),{userInfos:C}=n.storeToRefs(p),{themeConfig:g}=n.storeToRefs(v),h=e.ref(),w=e.reactive({isScreenfull:!1,disabledSize:"large"}),b=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=g.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),N=()=>{if(!o.screenfull.isEnabled)return o.ElMessage.warning("暂不不支持全屏"),!1;o.screenfull.toggle(),o.screenfull.on("change",(()=>{o.screenfull.isFullscreen?w.isScreenfull=!0:w.isScreenfull=!1}))},y=()=>{var t,o;null==(o=null==(t=e.unref(d).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{o.mittBus.emit("openSetingsDrawer")},V=e=>{"logOut"===e?o.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",u.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{p.logout()})).catch((()=>{})):"cleanCanche"===e?o.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):f.push(e)},_=()=>{h.value.openSearch()};return e.onMounted((async()=>{await o.systemStore.get("themeConfig")&&await(async(e,t)=>{w[t]=await o.systemStore.get("themeConfig").then((t=>o._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,n)=>{const s=e.resolveComponent("ele-Search"),u=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),g=e.resolveComponent("ele-ArrowDown"),S=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:b.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:_},[e.createVNode(u,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},n[0]||(n[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:m},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(u,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(o.ClickOutside),y]]),e.createVNode(v,{ref_key:"userNewsRef",ref:d,"virtual-ref":m.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(i))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:N},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",w.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:w.isScreenfull?"关全屏":"开全屏"},null,10,r)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:V},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>n[1]||(n[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",l,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,a),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(u,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])])),_:1}),e.createVNode(e.unref(c),{ref_key:"searchRef",ref:h},null,512)],4)}}}),c=o._export_sfc(i,[["__scopeId","data-v-7f4c1077"]]);exports.default=c;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, withCtx, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
2
2
  import { useRouter } from "vue-router";
3
- import { D as useUserInfo, a as useThemeConfig, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-CoqDATo2.mjs";
3
+ import { D as useUserInfo, a as useThemeConfig, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-CzDp683R.mjs";
4
4
  import { storeToRefs } from "pinia";
5
5
  const _hoisted_1 = ["title"];
6
6
  const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
@@ -12,10 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  ...__default__,
13
13
  setup(__props) {
14
14
  const UserNews = defineAsyncComponent(
15
- () => import("./userNews-7OtZJMRy.mjs")
15
+ () => import("./userNews-DExN5tlg.mjs")
16
16
  );
17
17
  const Search = defineAsyncComponent(
18
- () => import("./search-J8VULeoQ.mjs")
18
+ () => import("./search-BDVzM1lS.mjs")
19
19
  );
20
20
  const login = useLoginController();
21
21
  const userNewsRef = ref();
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-Bk6Epc-I.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-BrWlCNP_.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, createElementBlock, openBlock, createElementVNode, createCommentVNode, createBlock, Fragment, renderList, toDisplayString } from "vue";
2
- import { _ as _export_sfc } from "./index-CoqDATo2.mjs";
2
+ import { _ as _export_sfc } from "./index-CzDp683R.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-DPH4a5SM.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-DQ9ya4yv.js");exports.default=e._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-CuM6Z2lU.mjs";
1
+ import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-BqB-g7XX.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
2
- import { r as request } from "./index-CoqDATo2.mjs";
2
+ import { r as request } from "./index-CzDp683R.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-Bk6Epc-I.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,__:[3]})])])}}});exports._sfc_main=c;
1
+ "use strict";const e=require("vue"),t=require("./index-BrWlCNP_.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,__:[3]})])])}}});exports._sfc_main=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-Bk6Epc-I.js"),i=["onClick"],o=e.defineComponent({name:"navMenuVertical"}),a=e.defineComponent({...o,props:{menuList:{type:Array,default:()=>[]}},setup(o){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-CxDhdPfp.js"))))),r=o,s=l.useThemeConfig(),{themeConfig:c}=n.storeToRefs(s),u=t.useRoute(),m=e.reactive({defaultActive:u.meta.isDynamic?u.meta.isDynamicPath:u.path,isCollapse:!1}),p=e.computed((()=>r.menuList)),d=e.computed((()=>c.value)),h=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((()=>{m.defaultActive=h(u)})),t.onBeforeRouteUpdate((e=>{m.defaultActive=h(e);document.body.clientWidth<1e3&&(c.value.isCollapse=!1)})),e.watch((()=>c.value.isCollapse),(e=>{document.body.clientWidth<=1e3?m.isCollapse=!1:m.isCollapse=e}),{immediate:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),r=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),c=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(c,{router:"","default-active":m.defaultActive,"background-color":"transparent",collapse:m.isCollapse,"unique-opened":d.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(r,{index:`${t.path}?project=his`,key:t.path},{title:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(a),{chil:t.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:`${t.path}?project=his`,key:t.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"])])),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{l.other.handleOpenLink(e)})(t)),["prevent"])},e.toDisplayString(t.meta.title),9,i)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-BrWlCNP_.js"),i=["onClick"],o=e.defineComponent({name:"navMenuVertical"}),a=e.defineComponent({...o,props:{menuList:{type:Array,default:()=>[]}},setup(o){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-X9W0kdD-.js"))))),r=o,s=l.useThemeConfig(),{themeConfig:c}=n.storeToRefs(s),u=t.useRoute(),m=e.reactive({defaultActive:u.meta.isDynamic?u.meta.isDynamicPath:u.path,isCollapse:!1}),p=e.computed((()=>r.menuList)),d=e.computed((()=>c.value)),h=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((()=>{m.defaultActive=h(u)})),t.onBeforeRouteUpdate((e=>{m.defaultActive=h(e);document.body.clientWidth<1e3&&(c.value.isCollapse=!1)})),e.watch((()=>c.value.isCollapse),(e=>{document.body.clientWidth<=1e3?m.isCollapse=!1:m.isCollapse=e}),{immediate:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),r=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),c=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(c,{router:"","default-active":m.defaultActive,"background-color":"transparent",collapse:m.isCollapse,"unique-opened":d.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(r,{index:`${t.path}?project=his`,key:t.path},{title:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(a),{chil:t.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:`${t.path}?project=his`,key:t.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"])])),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{l.other.handleOpenLink(e)})(t)),["prevent"])},e.toDisplayString(t.meta.title),9,i)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=a;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, unref, createElementVNode, toDisplayString, createSlots, withModifiers } from "vue";
2
2
  import { useRoute, onBeforeRouteUpdate } from "vue-router";
3
3
  import { storeToRefs } from "pinia";
4
- import { a as useThemeConfig, $ as other } from "./index-CoqDATo2.mjs";
4
+ import { a as useThemeConfig, $ as other } from "./index-CzDp683R.mjs";
5
5
  const _hoisted_1 = ["onClick"];
6
6
  const __default__ = defineComponent({
7
7
  name: "navMenuVertical"
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  }
17
17
  },
18
18
  setup(__props) {
19
- const SubItem = defineAsyncComponent(() => import("./subItem-D38KilgO.mjs"));
19
+ const SubItem = defineAsyncComponent(() => import("./subItem-DHLPCTGj.mjs"));
20
20
  const props = __props;
21
21
  const storesThemeConfig = useThemeConfig();
22
22
  const { themeConfig } = storeToRefs(storesThemeConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "14.5.2",
3
+ "version": "14.5.3",
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
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
Binary file