hs-admin-ui 7.3.6 → 7.3.8

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 (414) hide show
  1. package/dist/401-GMyQdg0Y.js +1 -0
  2. package/dist/{401-Sf0JBXQb.mjs → 401-arg6ZNm_.mjs} +12 -17
  3. package/dist/{404-D6Z6NyFz.mjs → 404-C_oig6A8.mjs} +13 -17
  4. package/dist/404-C_oig6A8.mjs.gz +0 -0
  5. package/dist/404-m7mkNB5L.js +1 -0
  6. package/dist/404-m7mkNB5L.js.gz +0 -0
  7. package/dist/{account-BL0sktL_.mjs → account-BtRSOt6A.mjs} +6 -8
  8. package/dist/account-BtRSOt6A.mjs.gz +0 -0
  9. package/dist/{account-C99mW4xX.js → account-D1BwtzQX.js} +1 -1
  10. package/dist/account-D1BwtzQX.js.gz +0 -0
  11. package/dist/{aside-BtgAeraz.js → aside-DgIpkGBW.js} +1 -1
  12. package/dist/{aside-ComL60MQ.mjs → aside-DzZ4g3Vd.mjs} +15 -27
  13. package/dist/{btnIndex-Coa1laIL.mjs → btnIndex-D1cXY90g.mjs} +10 -12
  14. package/dist/btnIndex-D1cXY90g.mjs.gz +0 -0
  15. package/dist/btnIndex-DmqQtho_.js +1 -0
  16. package/dist/{classic-DC2I1_Wi.mjs → classic-BcYiGRwL.mjs} +6 -7
  17. package/dist/{classic-FW1hA7Dm.js → classic-Ca9MvE_s.js} +1 -1
  18. package/dist/cloneConfigDialog-BV3_hOOF.js +1 -0
  19. package/dist/{cloneConfigDialog-BGmqIRYm.mjs → cloneConfigDialog-snMWJMEY.mjs} +10 -16
  20. package/dist/cloneConfigDialog-snMWJMEY.mjs.gz +0 -0
  21. package/dist/{columns-CMwTd43P.js → columns-BjnjRsKC.js} +1 -1
  22. package/dist/{columns-CLeohml8.mjs → columns-Dt9yPqu3.mjs} +5 -5
  23. package/dist/{columnsAside-WsTaa6Ut.js → columnsAside-BgFZrJmY.js} +1 -1
  24. package/dist/{columnsAside-2KrYSbdS.mjs → columnsAside-CACX7mfL.mjs} +15 -29
  25. package/dist/{contextmenu-CMc7m6uK.js → contextmenu-BIczzZ6F.js} +1 -1
  26. package/dist/{contextmenu-DCM118sO.mjs → contextmenu-CE_k9hhn.mjs} +3 -5
  27. package/dist/{contextmenu-BIu9cQs0.mjs → contextmenu-CUj2xcTr.mjs} +3 -5
  28. package/dist/{contextmenu-xR2q7NUx.js → contextmenu-DOFnE_yK.js} +1 -1
  29. package/dist/{contextmenu-C9mI_VZ2.js → contextmenu-DdvCyeC7.js} +1 -1
  30. package/dist/{contextmenu-DZhR1-dv.mjs → contextmenu-faRHsF9D.mjs} +3 -5
  31. package/dist/{defaults-DW5UZuIb.mjs → defaults-PkrR376H.mjs} +4 -4
  32. package/dist/{defaults-HRCgcajw.js → defaults-ixk3r9Ms.js} +1 -1
  33. package/dist/{dialog-B7RTd8ck.mjs → dialog-BEl3p3pT.mjs} +2 -2
  34. package/dist/dialog-BEl3p3pT.mjs.gz +0 -0
  35. package/dist/{dialog-CGX8dDa8.mjs → dialog-BLSiC-iw.mjs} +2 -2
  36. package/dist/dialog-BLSiC-iw.mjs.gz +0 -0
  37. package/dist/{dialog-DFibbRpa.js → dialog-BQYfxkpc.js} +1 -1
  38. package/dist/dialog-BqFq7ikl.js +1 -0
  39. package/dist/{dialog-BrsN8Xn3.js → dialog-BqNgyoq5.js} +1 -1
  40. package/dist/{dialog-DxwrH-Ch.mjs → dialog-CuCf2uk1.mjs} +5 -6
  41. package/dist/dialog-CuCf2uk1.mjs.gz +0 -0
  42. package/dist/dialog-DBTb2B-5.js +1 -0
  43. package/dist/{dialog-Cbpf36HR.js → dialog-DGVyV_vz.js} +1 -1
  44. package/dist/{dialog-B_EUZ_G8.mjs → dialog-Dd80PjA9.mjs} +1 -1
  45. package/dist/{dialog-CfOaJgU6.mjs → dialog-DdBdXnMu.mjs} +1 -1
  46. package/dist/dialog-Do_dt7gh.js +1 -0
  47. package/dist/{dialog-HjM_A2KN.mjs → dialog-pGHlJ-L3.mjs} +1 -1
  48. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-UfMj06T8.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B9RLlFDj.js} +1 -1
  49. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-GT0Vosk9.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Gp3uvood.mjs} +7 -10
  50. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DbF0qAv3.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CTFt-Voy.js} +1 -1
  51. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BxCqlzLo.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-gmp48Zi0.mjs} +25 -28
  52. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-gmp48Zi0.mjs.gz +0 -0
  53. package/dist/{dictDialog-D0P7CAh6.mjs → dictDialog-2rOj82qb.mjs} +1 -1
  54. package/dist/{dictDialog-BITZVPMc.js → dictDialog-DBE0fwWZ.js} +1 -1
  55. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DvS_P--I.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dpf7TWy5.js} +1 -1
  56. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cpo-oWMn.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-nfXj1UfW.mjs} +7 -8
  57. package/dist/{dictItemDialog-IqPqIvvW.mjs → dictItemDialog-B25RTD6W.mjs} +1 -1
  58. package/dist/{dictItemDialog-CEMNSPv2.js → dictItemDialog-Ci-MeC-g.js} +1 -1
  59. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-9sN9byV0.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BooaVwmd.mjs} +3 -4
  60. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CTiNFvLd.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DV8cRMv1.js} +1 -1
  61. package/dist/{editDialog-B45Xr0At.mjs → editDialog-C7Hyi1IQ.mjs} +5 -5
  62. package/dist/{editDialog-Bj3ulH-Q.js → editDialog-CppgMDop.js} +1 -1
  63. package/dist/{formConfig-CDS2jYA-.mjs → formConfig-CVhQPtgM.mjs} +6 -8
  64. package/dist/formConfig-CVhQPtgM.mjs.gz +0 -0
  65. package/dist/{formConfig-CGbcBWSR.js → formConfig-DU6OkpBY.js} +1 -1
  66. package/dist/{header-DMQ5FFXn.mjs → header-B1tUtNLt.mjs} +2 -2
  67. package/dist/{header-MEo34iCX.js → header-CmWLVsqk.js} +1 -1
  68. package/dist/{horizontal-FCQfStdU.mjs → horizontal-CpTxuCvy.mjs} +8 -11
  69. package/dist/horizontal-DS-x2IXb.js +1 -0
  70. package/dist/{hsAttrBtn-C0rzmenp.js → hsAttrBtn-7kY-bzQk.js} +1 -1
  71. package/dist/{hsAttrBtn-DdEgnNlz.mjs → hsAttrBtn-BB1Y03-S.mjs} +1 -1
  72. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-jQpNpuHb.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-BL9miAy-.js} +1 -1
  73. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BRU13sh5.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-C00ompUX.mjs} +7 -9
  74. package/dist/{hsAttrForm-D1DCIx0C.mjs → hsAttrForm-CIoGUMAv.mjs} +1 -1
  75. package/dist/{hsAttrForm-Bi3VNFss.js → hsAttrForm-DaJqJdHQ.js} +1 -1
  76. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-C_QctdA5.js → hsAttrForm.vue_vue_type_script_setup_true_lang-Cg5rti5Y.js} +1 -1
  77. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-ChIVelJU.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-md6GzaoP.mjs} +7 -10
  78. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-md6GzaoP.mjs.gz +0 -0
  79. package/dist/{hsBtnConfigList-RUZNLEch.js → hsBtnConfigList-DPQBDwvc.js} +1 -1
  80. package/dist/{hsBtnConfigList-FaH_qaMh.mjs → hsBtnConfigList-DXhjA-l4.mjs} +1 -1
  81. package/dist/{hsBtnItemConfig-qqfS9h8B.js → hsBtnItemConfig-BNr5LVvA.js} +1 -1
  82. package/dist/{hsBtnItemConfig-CmQZkGA7.mjs → hsBtnItemConfig-Bq-dWqwc.mjs} +1 -1
  83. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DISJBqRW.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BG05XcTr.js} +1 -1
  84. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-D9-CrKBg.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-gqgMprpg.mjs} +1 -1
  85. package/dist/{hsBtnPanel-B2RzSy-T.js → hsBtnPanel-BF_x9tQu.js} +1 -1
  86. package/dist/{hsBtnPanel-D6xHwEgh.mjs → hsBtnPanel-JFEkUkAq.mjs} +1 -1
  87. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-AIjNkEAr.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CV83gqf1.mjs} +4 -4
  88. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BfEVobHS.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D53gtuk_.js} +1 -1
  89. package/dist/{hsExpand-Cx5hZonB.mjs → hsExpand-C-XVTC7Q.mjs} +1 -1
  90. package/dist/{hsExpand-D7wl8vMj.js → hsExpand-DxYIWh-8.js} +1 -1
  91. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-HTIBK2Ss.mjs → hsExpand.vue_vue_type_script_setup_true_lang-6eDviZhd.mjs} +7 -7
  92. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-Blr0hn9u.js → hsExpand.vue_vue_type_script_setup_true_lang-dnN_NNrH.js} +1 -1
  93. package/dist/hsFormConfig-BLyswI-D.js +1 -0
  94. package/dist/{hsFormConfig-Cd46-X0g.mjs → hsFormConfig-DOjDQzU9.mjs} +10 -4
  95. package/dist/{hsFormConfigList-60HAgf4G.mjs → hsFormConfigList-B6rER_14.mjs} +7 -12
  96. package/dist/hsFormConfigList-B6rER_14.mjs.gz +0 -0
  97. package/dist/{hsFormConfigList-wklYn8wo.js → hsFormConfigList-D6fFCnL3.js} +1 -1
  98. package/dist/{hsFormPanel-DTAY-uM0.mjs → hsFormPanel-CicrQLsf.mjs} +1 -1
  99. package/dist/{hsFormPanel-DSxETggI.js → hsFormPanel-Cp1EuwyW.js} +1 -1
  100. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D97b2_x8.js +1 -0
  101. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CB39zMUe.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-l3w09asm.mjs} +11 -11
  102. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-l3w09asm.mjs.gz +0 -0
  103. package/dist/{hsFormParse-BiQlbYNn.js → hsFormParse-B94xSoD9.js} +1 -1
  104. package/dist/{hsFormParse-D9C6vnor.mjs → hsFormParse-ygxvXsWm.mjs} +1 -1
  105. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BNt-B2DF.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-C4Zj22mg.mjs} +3 -3
  106. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DPOOk4V_.js → hsFormParse.vue_vue_type_script_setup_true_lang-CHZRuWq6.js} +1 -1
  107. package/dist/{hsPanelItem-D57-9793.js → hsPanelItem-BHmfoHCO.js} +1 -1
  108. package/dist/{hsPanelItem-CtDfpfHh.mjs → hsPanelItem-pHy48jVU.mjs} +1 -1
  109. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Cr_fLYBM.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B7_x7y2x.mjs} +1 -1
  110. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bb-NlE6C.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DYHSxS20.js} +1 -1
  111. package/dist/{iframes-CmfS9l1O.mjs → iframes-CGmiclFI.mjs} +7 -13
  112. package/dist/{iframes-AY1-xpXn.js → iframes-CbfWqmQ2.js} +1 -1
  113. package/dist/index copy-BIMZrkpX.js +6 -0
  114. package/dist/index copy-BIMZrkpX.js.gz +0 -0
  115. package/dist/index copy-CUrY9Yvl.mjs +10626 -0
  116. package/dist/index copy-CUrY9Yvl.mjs.gz +0 -0
  117. package/dist/index-33GjC1gd.js +1 -0
  118. package/dist/{index-CgwZmbAr.mjs → index-7XETopV9.mjs} +11 -13
  119. package/dist/index-7XETopV9.mjs.gz +0 -0
  120. package/dist/{index-KCRxkFo-.js → index-AsebozAW.js} +1 -1
  121. package/dist/{index-soIeDIt0.mjs → index-B0DZ0UrY.mjs} +9 -10
  122. package/dist/{index-CBPUAeLM.js → index-B2C62KC7.js} +1 -1
  123. package/dist/index-B9o_fUWH.js +1 -0
  124. package/dist/{index-BGn0kHMz.mjs → index-BDrniPOF.mjs} +216 -243
  125. package/dist/index-BDrniPOF.mjs.gz +0 -0
  126. package/dist/{index-58v28HoQ.js → index-BMUWK0CY.js} +1 -1
  127. package/dist/index-BMbeXdcD.js +1 -0
  128. package/dist/{index-CxbPvKJ-.mjs → index-BQqXbL-M.mjs} +1 -1
  129. package/dist/{index-CJ6arPCX.js → index-BWbKCXJk.js} +1 -1
  130. package/dist/{index-CiS_nukc.mjs → index-BYx6QJ9N.mjs} +5 -5
  131. package/dist/{index-DLoUcC-3.mjs → index-Bb91A2vB.mjs} +5 -8
  132. package/dist/{index-m9T-aePl.mjs → index-BjPaKW0i.mjs} +12 -12
  133. package/dist/{index-B8WJaTb5.js → index-BjoaNsJO.js} +1 -1
  134. package/dist/{index-CZZMUQVh.js → index-BmF-yAkk.js} +1 -1
  135. package/dist/{index-DNehdb-0.js → index-BmJT91Vz.js} +1 -1
  136. package/dist/index-BnIISUZj.mjs +23 -0
  137. package/dist/{index-E4ARXvHk.js → index-BuS3ib7k.js} +1 -1
  138. package/dist/{index-DhEXCLR2.js → index-BwaHnCdD.js} +1 -1
  139. package/dist/{index-D6EntFH9.js → index-BxZ4hWrZ.js} +1 -1
  140. package/dist/{index-D9w7dp4p.js → index-BzD_sNiw.js} +1 -1
  141. package/dist/index-Bze80kQk.js +1 -0
  142. package/dist/{index-Bc6wq-wI.mjs → index-C1bY4SV1.mjs} +2 -3
  143. package/dist/index-C3drN3bw.js +1 -0
  144. package/dist/{index-DsR3Q4vE.js → index-C5G7wSCU.js} +1 -1
  145. package/dist/{index-BSSb4AYu.mjs → index-CA3jw1Ma.mjs} +11 -11
  146. package/dist/index-CA3jw1Ma.mjs.gz +0 -0
  147. package/dist/{index-CnkSoPbS.mjs → index-CGniFm_c.mjs} +3 -3
  148. package/dist/index-CIVngdA_.js +1 -0
  149. package/dist/index-CIVngdA_.js.gz +0 -0
  150. package/dist/{index-Dz_d8hu5.mjs → index-CIZB96dF.mjs} +9 -9
  151. package/dist/index-CLHpeYaS.js +1 -0
  152. package/dist/{index-Vf3z9k6_.mjs → index-CNLbSkJO.mjs} +20606 -18120
  153. package/dist/index-CNLbSkJO.mjs.gz +0 -0
  154. package/dist/{index-e9_eyEbC.mjs → index-CPqlwTi5.mjs} +1 -1
  155. package/dist/{index-lA0ZiF1v.mjs → index-CWiJIo3r.mjs} +1 -1
  156. package/dist/{index-DWd4upbC.js → index-Cf2YZD2_.js} +1 -1
  157. package/dist/index-Cfc-yJMT.js +1 -0
  158. package/dist/{index-0hRtxgF1.js → index-CiOeemNl.js} +1 -1
  159. package/dist/{index-CVYq2IP_.js → index-CjNmLGPP.js} +1 -1
  160. package/dist/{index-BONRzMm_.mjs → index-ClPxfDh5.mjs} +1 -1
  161. package/dist/{index-BpiutZPP.mjs → index-Cwf5H1fy.mjs} +29 -33
  162. package/dist/{index-jhEx9wKd.mjs → index-D3TsdOgK.mjs} +1 -1
  163. package/dist/{index-BLGrigRr.js → index-D4ExCj14.js} +1 -1
  164. package/dist/{index-BNewD-2k.js → index-D5m1COMh.js} +1 -1
  165. package/dist/index-DBb0jSMQ.js +1 -0
  166. package/dist/{index-CD_NCUTL.mjs → index-DCVVcZZH.mjs} +1 -1
  167. package/dist/index-DIgjVF2O.js +102 -0
  168. package/dist/index-DIgjVF2O.js.gz +0 -0
  169. package/dist/index-DJc5Npkv.js +1 -0
  170. package/dist/{index-QOfmRPw7.mjs → index-DMMZzcRc.mjs} +7 -10
  171. package/dist/{index--pSk2iPM.mjs → index-DMNPPbTf.mjs} +19 -23
  172. package/dist/{index-DiOER9Aj.js → index-DO93P2Gn.js} +1 -1
  173. package/dist/{index-DQ_mxkz4.mjs → index-DOQLXtWJ.mjs} +1 -1
  174. package/dist/{index-DmA8IVEJ.mjs → index-DQOkXJLr.mjs} +1 -1
  175. package/dist/{index-DSAuKxiA.mjs → index-Dt146JEk.mjs} +20 -25
  176. package/dist/index-Dt146JEk.mjs.gz +0 -0
  177. package/dist/{index-IyK75x8A.mjs → index-DuIbq0Pg.mjs} +12 -12
  178. package/dist/{index-nu40lSZ8.mjs → index-DvOPd9ca.mjs} +1 -1
  179. package/dist/{index-Cs8WSZdo.mjs → index-EYLq_Hp8.mjs} +1 -1
  180. package/dist/{index-j_z8g07o.mjs → index-Ht13VZ6Y.mjs} +6 -8
  181. package/dist/{index-DEy7HgAB.js → index-Oxqb30uk.js} +1 -1
  182. package/dist/{index-CyXrPxMR.mjs → index-THfBvQV6.mjs} +1 -1
  183. package/dist/{index-CfMIHGcX.js → index-V4y3kHFL.js} +1 -1
  184. package/dist/{index-BQr0k44A.mjs → index-Welryy7V.mjs} +9 -10
  185. package/dist/{index-BZkNep1X.js → index-WhqZ8kIA.js} +1 -1
  186. package/dist/index-ZsMVGvS0.mjs +4 -0
  187. package/dist/{index-CZcCMOa0.mjs → index-_MGqwIy_.mjs} +6 -6
  188. package/dist/{index-Ds8FhkPS.mjs → index-_dIqtSEJ.mjs} +5 -2
  189. package/dist/{index-Ramyv1GU.mjs → index-bxuSTdlN.mjs} +9 -12
  190. package/dist/{index-B5dtTJ4h.js → index-hIDx155F.js} +1 -1
  191. package/dist/{index-BeOctooL.js → index-kPhxPD70.js} +1 -1
  192. package/dist/{index-DK74EB_I.mjs → index-llWsP_Y6.mjs} +36 -19
  193. package/dist/index-p1TADDSr.js +1 -0
  194. package/dist/{index-Vxb4cUg7.mjs → index-pX0NAxab.mjs} +2 -3
  195. package/dist/index-wSN7rAZL.js +1 -0
  196. package/dist/index-wSN7rAZL.js.gz +0 -0
  197. package/dist/index-yb-Qe3FR.js +1 -0
  198. package/dist/{index-BX73iFfO.mjs → index-yziqLXtr.mjs} +14 -14
  199. package/dist/index.js +1 -1
  200. package/dist/index.mjs +1 -1
  201. package/dist/{index.vue_vue_type_script_setup_true_lang-PCG-mKMT.js → index.vue_vue_type_script_setup_true_lang-3Si18EjG.js} +1 -1
  202. package/dist/{index.vue_vue_type_script_setup_true_lang-BmtbnCgc.mjs → index.vue_vue_type_script_setup_true_lang-BHr5zkf7.mjs} +1 -1
  203. package/dist/{index.vue_vue_type_script_setup_true_lang-qJazel_L.mjs → index.vue_vue_type_script_setup_true_lang-BePl4u89.mjs} +1 -1
  204. package/dist/{index.vue_vue_type_script_setup_true_lang-BpJVUUVE.js → index.vue_vue_type_script_setup_true_lang-BxG-KilC.js} +1 -1
  205. package/dist/{index.vue_vue_type_script_setup_true_lang-Cc3gS1na.mjs → index.vue_vue_type_script_setup_true_lang-CM4wSrZ4.mjs} +4 -6
  206. package/dist/index.vue_vue_type_script_setup_true_lang-CM4wSrZ4.mjs.gz +0 -0
  207. package/dist/{index.vue_vue_type_script_setup_true_lang-DZco7L9E.mjs → index.vue_vue_type_script_setup_true_lang-CheFNli3.mjs} +12 -15
  208. package/dist/index.vue_vue_type_script_setup_true_lang-CjtMScLr.js +1 -0
  209. package/dist/{index.vue_vue_type_script_setup_true_lang-CFGSqOs3.js → index.vue_vue_type_script_setup_true_lang-_RbyI-Gq.js} +1 -1
  210. package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BJ6kimHL.js → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BZuSFlqY.js} +1 -1
  211. package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-D76izIT6.mjs → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-D2yRXakA.mjs} +1 -1
  212. package/dist/{link-BpzcKdlU.mjs → link-Cg7qpMkP.mjs} +11 -17
  213. package/dist/link-DjIxKoH8.js +1 -0
  214. package/dist/{list-B6WEqv6L.mjs → list-BFrKciaV.mjs} +1 -1
  215. package/dist/{list-4FFF_FsI.js → list-BqzUm241.js} +1 -1
  216. package/dist/{main-DJ_3B9V2.js → main-C6aptsSQ.js} +1 -1
  217. package/dist/{main-DDd_Nd17.mjs → main-CzVfIs86.mjs} +8 -13
  218. package/dist/{mobile-40dekcwn.mjs → mobile-D2w7gl3I.mjs} +11 -15
  219. package/dist/mobile-EiOc-I7l.js +1 -0
  220. package/dist/{parent-COSLong4.js → parent-BPGGcSKb.js} +1 -1
  221. package/dist/{parent-DjnxJVLX.mjs → parent-DD8aRNVP.mjs} +2 -2
  222. package/dist/{popup-Ck9apnxf.mjs → popup-CSvK3kEl.mjs} +1 -1
  223. package/dist/{popup-CuQ02Cpd.js → popup-Cnr1S-U0.js} +1 -1
  224. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-BbdutN_c.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-DM8GkV8F.mjs} +1 -1
  225. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-Dobos14d.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-vDv7uPFT.js} +1 -1
  226. package/dist/{replaceRules-CQ5cV0Xf.js → replaceRules-DrJHm6V_.js} +1 -1
  227. package/dist/{replaceRules-ByGbPiJK.mjs → replaceRules-DwUQP45Z.mjs} +7 -7
  228. package/dist/roleItem-C1hc5l_d.js +1 -0
  229. package/dist/{roleItem-BStmNkSy.mjs → roleItem-It3TIulV.mjs} +16 -18
  230. package/dist/{saveForm-B4-OZp6I.mjs → saveForm-BUl49zn-.mjs} +1 -1
  231. package/dist/{saveForm-Gs9mpOY1.js → saveForm-D1PtctKf.js} +1 -1
  232. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-BOkTdRqc.mjs → saveForm.vue_vue_type_script_setup_true_lang-BA7AD2B0.mjs} +17 -18
  233. package/dist/saveForm.vue_vue_type_script_setup_true_lang-BA7AD2B0.mjs.gz +0 -0
  234. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-LWNGvqnM.js → saveForm.vue_vue_type_script_setup_true_lang-CrB6SRpj.js} +1 -1
  235. package/dist/{scan-D8o3DYLM.js → scan-3WWTuTUB.js} +1 -1
  236. package/dist/scan-3WWTuTUB.js.gz +0 -0
  237. package/dist/{scan-DhEKNI9d.mjs → scan-DPaaMqJM.mjs} +14 -24
  238. package/dist/scan-DPaaMqJM.mjs.gz +0 -0
  239. package/dist/{search-DP5eC70d.mjs → search-3u2haJvQ.mjs} +6 -11
  240. package/dist/{search-DqYHwsNC.js → search-Ca2aQ9Kk.js} +1 -1
  241. package/dist/{selectConfig-CSjdUXqs.js → selectConfig-D5hHoc7V.js} +1 -1
  242. package/dist/{selectConfig-jEk8kocq.mjs → selectConfig-ekCtr-Mj.mjs} +1 -1
  243. package/dist/selectConfig-ekCtr-Mj.mjs.gz +0 -0
  244. package/dist/style.css +1 -1
  245. package/dist/style.css.gz +0 -0
  246. package/dist/{subItem-CtjdxsX8.mjs → subItem-BlvIa5jO.mjs} +1 -1
  247. package/dist/{subItem-DlisQYbm.js → subItem-Wy1WCTmz.js} +1 -1
  248. package/dist/tagsView-BuZ7WxKL.js +8 -0
  249. package/dist/tagsView-BuZ7WxKL.js.gz +0 -0
  250. package/dist/{tagsView-rXdIG5qb.mjs → tagsView-Cfm71IUd.mjs} +93 -179
  251. package/dist/tagsView-Cfm71IUd.mjs.gz +0 -0
  252. package/dist/{transverse-OhTrAS1P.js → transverse-9RtyVAb5.js} +1 -1
  253. package/dist/{transverse-BinC5z5u.mjs → transverse-BzbpxGfi.mjs} +3 -3
  254. package/dist/types/components/business/bcBox/bcBox.vue.d.ts +8 -6
  255. package/dist/types/components/business/bcBox/utils.d.ts +2 -2
  256. package/dist/types/components/business/bcBreadcrumb/bcBreadcrumb.vue.d.ts +2 -2
  257. package/dist/types/components/business/bcForm/baseForm.vue.d.ts +59 -76
  258. package/dist/types/components/business/bcForm/bcForm.vue.d.ts +14 -12
  259. package/dist/types/components/business/bcForm/type.d.ts +3 -3
  260. package/dist/types/components/business/bcForm/useGuide.d.ts +233 -89
  261. package/dist/types/components/business/bcSystemAuth/components/data.vue.d.ts +2 -2
  262. package/dist/types/components/business/bcSystemAuth/components/dict.vue.d.ts +2 -2
  263. package/dist/types/components/business/bcSystemAuth/components/field.vue.d.ts +2 -2
  264. package/dist/types/components/business/bcSystemAuth/components/form.vue.d.ts +4 -4
  265. package/dist/types/components/business/bcSystemAuth/components/selectAll/index.d.ts +1 -1
  266. package/dist/types/components/business/bcSystemAuth/components/selectAll/index.vue.d.ts +2 -2
  267. package/dist/types/components/business/bcSystemAuth/components/table.vue.d.ts +4 -4
  268. package/dist/types/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +4 -4
  269. package/dist/types/components/business/bcSystemAuth/components/widget/form.vue.d.ts +4 -4
  270. package/dist/types/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +5 -5
  271. package/dist/types/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +4 -4
  272. package/dist/types/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +4 -4
  273. package/dist/types/components/business/bcSystemAuth/index.vue.d.ts +2 -2
  274. package/dist/types/components/business/bcSystemAuth/store.d.ts +1 -1
  275. package/dist/types/components/business/bcSystemAuth/useAuth.d.ts +10 -10
  276. package/dist/types/components/business/bcSystemAuth/utils.d.ts +2 -2
  277. package/dist/types/components/business/bcSystemField/components/field.vue.d.ts +2 -2
  278. package/dist/types/components/business/bcSystemField/components/form.vue.d.ts +4 -4
  279. package/dist/types/components/business/bcSystemField/components/selectAll/index.d.ts +1 -1
  280. package/dist/types/components/business/bcSystemField/components/selectAll/index.vue.d.ts +2 -2
  281. package/dist/types/components/business/bcSystemField/components/table.vue.d.ts +4 -4
  282. package/dist/types/components/business/bcSystemField/components/widget/form.vue.d.ts +4 -4
  283. package/dist/types/components/business/bcSystemField/components/widget/tab.vue.d.ts +5 -5
  284. package/dist/types/components/business/bcSystemField/components/widget/tables.vue.d.ts +4 -4
  285. package/dist/types/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +4 -4
  286. package/dist/types/components/business/bcSystemField/index.vue.d.ts +2 -2
  287. package/dist/types/components/business/bcSystemField/store.d.ts +1 -1
  288. package/dist/types/components/business/bcSystemField/useAuth.d.ts +9 -9
  289. package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +44 -42
  290. package/dist/types/components/business/bcTable/bcTable.vue.d.ts +10 -8
  291. package/dist/types/components/business/bcTable/components/btn/btn.vue.d.ts +12 -10
  292. package/dist/types/components/business/bcTable/components/contextBody/contextBody.vue.d.ts +10 -8
  293. package/dist/types/components/business/bcTable/components/contextBody/useContextMenu.d.ts +11 -7
  294. package/dist/types/components/business/bcTable/components/query/components/sortForm/sortForm.vue.d.ts +2 -2
  295. package/dist/types/components/business/bcTable/components/query/drag.vue.d.ts +47 -64
  296. package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +47 -64
  297. package/dist/types/components/business/bcTable/components/table/components/sortColumn/sortColumn.vue.d.ts +2 -2
  298. package/dist/types/components/business/bcTable/components/table/table.vue.d.ts +26 -55
  299. package/dist/types/components/business/bcTable/components/table/useTable.d.ts +4 -4
  300. package/dist/types/components/business/bcTable/components/table/useTableHeight.d.ts +6 -6
  301. package/dist/types/components/business/bcTable/components/tabs/tabs.vue.d.ts +11 -9
  302. package/dist/types/components/business/bcTable/methods/index.d.ts +3 -1
  303. package/dist/types/components/business/bcTable/utils/onFormKey.d.ts +3 -3
  304. package/dist/types/components/business/bcTable/utils/onTableKey.d.ts +3 -3
  305. package/dist/types/components/business/bcTable/utils/parseTable.d.ts +14 -10
  306. package/dist/types/components/business/bcTable/utils/type.d.ts +2 -2
  307. package/dist/types/components/business/bcTable/utils/useButon.d.ts +2 -2
  308. package/dist/types/components/business/bcTable/utils/useTable.d.ts +3579 -1661
  309. package/dist/types/components/business/bcTable/utils/useTableHeight.d.ts +7 -7
  310. package/dist/types/plugins/index.d.ts +10 -10
  311. package/dist/types/types/customData.d.ts +5 -5
  312. package/dist/types/types/form.d.ts +1 -1
  313. package/dist/types/types/formItem/inputGroup.d.ts +1 -1
  314. package/dist/types/utils/build.d.ts +1 -2
  315. package/dist/types/utils/commonFunction.d.ts +8 -8
  316. package/dist/types/utils/number.d.ts +1 -1
  317. package/dist/types/utils/other.d.ts +3 -3
  318. package/dist/types/utils/request/index.d.ts +1 -1
  319. package/dist/types/utils/request/interceptors/request/index.d.ts +1 -1
  320. package/dist/types/utils/request/interceptors/response/index.d.ts +1 -1
  321. package/dist/types/utils/request/request.d.ts +2 -2
  322. package/dist/types/utils/showMessage.d.ts +2 -2
  323. package/dist/types/utils/showMessageBox.d.ts +2 -2
  324. package/dist/types/utils/showNotification.d.ts +2 -2
  325. package/dist/types/utils/showPopup/index.d.ts +2 -2
  326. package/dist/types/utils/storage.d.ts +8 -8
  327. package/dist/{uploadAvatar-CEEOc-Fb.mjs → uploadAvatar-Bz85FROm.mjs} +70 -20
  328. package/dist/uploadAvatar-Bz85FROm.mjs.gz +0 -0
  329. package/dist/uploadAvatar-DxKyExI5.js +1 -0
  330. package/dist/uploadAvatar-DxKyExI5.js.gz +0 -0
  331. package/dist/{user-Cp1FOnYN.mjs → user-CRgtUBWN.mjs} +25 -32
  332. package/dist/user-CRgtUBWN.mjs.gz +0 -0
  333. package/dist/user-vupA1N2o.js +1 -0
  334. package/dist/userNews-B4zQ3035.js +1 -0
  335. package/dist/{userNews-BHAqIRLC.mjs → userNews-Bl8nByxo.mjs} +9 -11
  336. package/dist/{userSelect-CNlOVKla.js → userSelect-BFRpAipn.js} +1 -1
  337. package/dist/{userSelect-DhntRu4s.mjs → userSelect-CWImVbou.mjs} +1 -1
  338. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-9pFObw-w.mjs → userSelect.vue_vue_type_script_setup_true_lang-CyJU84QD.mjs} +8 -9
  339. package/dist/userSelect.vue_vue_type_script_setup_true_lang-sRTxiP9y.js +1 -0
  340. package/dist/vertical-B-cJZI7c.js +1 -0
  341. package/dist/{vertical-BgTAuyc5.mjs → vertical-Bvz5SPdW.mjs} +7 -9
  342. package/package.json +1 -1
  343. package/dist/401-B4HKyg45.js +0 -1
  344. package/dist/404-CPj7jdEL.js +0 -1
  345. package/dist/404-CPj7jdEL.js.gz +0 -0
  346. package/dist/404-D6Z6NyFz.mjs.gz +0 -0
  347. package/dist/account-BL0sktL_.mjs.gz +0 -0
  348. package/dist/account-C99mW4xX.js.gz +0 -0
  349. package/dist/btnIndex-Coa1laIL.mjs.gz +0 -0
  350. package/dist/btnIndex-DYCGIMe9.js +0 -1
  351. package/dist/cloneConfigDialog-BGmqIRYm.mjs.gz +0 -0
  352. package/dist/cloneConfigDialog-DH-Li508.js +0 -1
  353. package/dist/dialog-1AI1PpCE.js +0 -1
  354. package/dist/dialog-B7RTd8ck.mjs.gz +0 -0
  355. package/dist/dialog-CGX8dDa8.mjs.gz +0 -0
  356. package/dist/dialog-D65Vcfqw.js +0 -1
  357. package/dist/dialog-DxwrH-Ch.mjs.gz +0 -0
  358. package/dist/dialog-Oq0DujLN.js +0 -1
  359. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BxCqlzLo.mjs.gz +0 -0
  360. package/dist/formConfig-CDS2jYA-.mjs.gz +0 -0
  361. package/dist/horizontal-UEc290gD.js +0 -1
  362. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-ChIVelJU.mjs.gz +0 -0
  363. package/dist/hsFormConfig-Clh2SrPD.js +0 -1
  364. package/dist/hsFormConfigList-60HAgf4G.mjs.gz +0 -0
  365. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CB39zMUe.mjs.gz +0 -0
  366. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-O3rXBoOh.js +0 -1
  367. package/dist/index copy-C6gJJAHB.js +0 -6
  368. package/dist/index copy-C6gJJAHB.js.gz +0 -0
  369. package/dist/index copy-o1is64fu.mjs +0 -11807
  370. package/dist/index copy-o1is64fu.mjs.gz +0 -0
  371. package/dist/index-BGn0kHMz.mjs.gz +0 -0
  372. package/dist/index-BSSb4AYu.mjs.gz +0 -0
  373. package/dist/index-BnPaNzdn.js +0 -1
  374. package/dist/index-BoQeoFY4.js +0 -1
  375. package/dist/index-BxQIfzmC.js +0 -1
  376. package/dist/index-BxQIfzmC.js.gz +0 -0
  377. package/dist/index-C20xSh6Y.js +0 -109
  378. package/dist/index-C20xSh6Y.js.gz +0 -0
  379. package/dist/index-CDaJvkOU.js +0 -1
  380. package/dist/index-CGyorhUj.js +0 -1
  381. package/dist/index-CgqEDLt3.js +0 -1
  382. package/dist/index-CgwZmbAr.mjs.gz +0 -0
  383. package/dist/index-DIDQg8kj.js +0 -1
  384. package/dist/index-DKs5I1QB.js +0 -1
  385. package/dist/index-DKs5I1QB.js.gz +0 -0
  386. package/dist/index-DSAuKxiA.mjs.gz +0 -0
  387. package/dist/index-D_-hjRig.js +0 -1
  388. package/dist/index-DxW6AoTp.js +0 -1
  389. package/dist/index-PjaBWIml.js +0 -1
  390. package/dist/index-Vf3z9k6_.mjs.gz +0 -0
  391. package/dist/index-Zzb2p2jU.js +0 -1
  392. package/dist/index-d4xQ3X2h.mjs +0 -26
  393. package/dist/index-iSRiR0yW.mjs +0 -4
  394. package/dist/index-x2ACN6W1.js +0 -1
  395. package/dist/index.vue_vue_type_script_setup_true_lang-Cc3gS1na.mjs.gz +0 -0
  396. package/dist/index.vue_vue_type_script_setup_true_lang-DG4nMOai.js +0 -1
  397. package/dist/link-TYWVUL-X.js +0 -1
  398. package/dist/mobile-DMoGNI9o.js +0 -1
  399. package/dist/roleItem-BFhWRHD0.js +0 -1
  400. package/dist/saveForm.vue_vue_type_script_setup_true_lang-BOkTdRqc.mjs.gz +0 -0
  401. package/dist/scan-D8o3DYLM.js.gz +0 -0
  402. package/dist/scan-DhEKNI9d.mjs.gz +0 -0
  403. package/dist/selectConfig-jEk8kocq.mjs.gz +0 -0
  404. package/dist/tagsView-nCMhaQw_.js +0 -8
  405. package/dist/tagsView-nCMhaQw_.js.gz +0 -0
  406. package/dist/tagsView-rXdIG5qb.mjs.gz +0 -0
  407. package/dist/uploadAvatar-CEEOc-Fb.mjs.gz +0 -0
  408. package/dist/uploadAvatar-ZrIRXluQ.js +0 -1
  409. package/dist/uploadAvatar-ZrIRXluQ.js.gz +0 -0
  410. package/dist/user-Cp1FOnYN.mjs.gz +0 -0
  411. package/dist/user-DzAcojjW.js +0 -1
  412. package/dist/userNews-Dk6xCyGj.js +0 -1
  413. package/dist/userSelect.vue_vue_type_script_setup_true_lang-CpHYqpoT.js +0 -1
  414. package/dist/vertical-c-ZVE4qg.js +0 -1
@@ -1,15 +1,15 @@
1
- import { Ref, ComputedRef } from 'vue';
2
1
  import { VxeTableInstance } from 'vxe-table';
2
+ import { Ref, ComputedRef } from 'vue';
3
3
 
4
4
  export declare function useTableHeight(): {
5
- wrapRef: Ref<HTMLElement | undefined>;
6
- btnRef: Ref<HTMLElement | undefined>;
7
- formRef: Ref<HTMLElement | undefined>;
8
- centerSlotRef: Ref<HTMLElement | undefined>;
9
- tableApi: Ref<Record<string, VxeTableInstance>>;
5
+ wrapRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
6
+ btnRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
7
+ formRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
8
+ centerSlotRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
9
+ tableApi: Ref<Record<string, VxeTableInstance>, Record<string, VxeTableInstance>>;
10
10
  style: ComputedRef<{
11
11
  height: string;
12
12
  }>;
13
- isOverHide: Ref<boolean>;
13
+ isOverHide: Ref<boolean, boolean>;
14
14
  onReady: (api: VxeTableInstance, id: string) => void;
15
15
  };
@@ -1,14 +1,14 @@
1
- import { Router } from 'vue-router';
2
- import { IBreadcrumb } from '../components/business/bcBreadcrumb';
3
- import { ICustomData as ITable, IFormData as IForm } from '../types';
4
- import { directive } from '../directive';
5
- import { getLoadData, getFormData, TableInstance, IFormInstance } from '../components/business/bcTable/utils/parseTable';
6
- import { HsMessage, HsMessageBox, HsNotification } from '../utils';
7
- import { ElTree as HsTree, ElConfigProvider as HsConfigProvider } from 'element-plus';
8
- import { VxeUI } from 'vxe-pc-ui';
9
- import { default as zhCn } from 'element-plus/es/locale/lang/zh-cn';
10
- import { default as component } from '../components/component';
11
1
  import { App } from 'vue';
2
+ import { default as component } from '../components/component';
3
+ import { default as zhCn } from 'element-plus/es/locale/lang/zh-cn';
4
+ import { VxeUI } from 'vxe-pc-ui';
5
+ import { ElTree as HsTree, ElConfigProvider as HsConfigProvider } from 'element-plus';
6
+ import { HsMessage, HsMessageBox, HsNotification } from '../utils';
7
+ import { getLoadData, getFormData, TableInstance, IFormInstance } from '../components/business/bcTable/utils/parseTable';
8
+ import { directive } from '../directive';
9
+ import { ICustomData as ITable, IFormData as IForm } from '../types';
10
+ import { IBreadcrumb } from '../components/business/bcBreadcrumb';
11
+ import { Router } from 'vue-router';
12
12
 
13
13
  import * as Hooxs from '../hooks';
14
14
  import * as Utils from '../utils';
@@ -1,9 +1,9 @@
1
- import { ButtonAttr } from './formItem/button';
2
- import { Input, InputGroup, InputNumber, Autocomplete, Selelct, TreeSelect, Checkbox, Radio } from '.';
3
- import { FormProps, FormRules } from 'element-plus';
4
- import { components } from '../components/component';
5
- import { default as ComponentAttr } from './components';
6
1
  import { VxePagerProps, VxeTableProps, VxeColumnProps } from 'vxe-table';
2
+ import { default as ComponentAttr } from './components';
3
+ import { components } from '../components/component';
4
+ import { FormProps, FormRules } from 'element-plus';
5
+ import { Input, InputGroup, InputNumber, Autocomplete, Selelct, TreeSelect, Checkbox, Radio } from '.';
6
+ import { ButtonAttr } from './formItem/button';
7
7
 
8
8
  export declare namespace ICustomData {
9
9
  type ANY = any;
@@ -1,5 +1,5 @@
1
- import { FormProps } from 'element-plus';
2
1
  import { default as ICustomData } from './customData';
2
+ import { FormProps } from 'element-plus';
3
3
 
4
4
  export declare namespace IFormData {
5
5
  type Data = Record<string, ICustomData.ANY>;
@@ -1,5 +1,5 @@
1
- import { InputAttr } from './input';
2
1
  import { default as IFormTable } from '../table';
2
+ import { InputAttr } from './input';
3
3
 
4
4
  /** 输入框属性配置 */
5
5
  export interface InputGroupAttr extends Omit<InputAttr, 'placeholder'> {
@@ -1,4 +1,3 @@
1
- import { Plugin } from 'vite';
2
1
  /**
3
2
  * 打包相关
4
3
  * 注意 prodUrl:使用的是 jsdelivr 还是 unpkg。它们的 path 可能不一致
@@ -7,6 +6,6 @@ import { Plugin } from 'vite';
7
6
  * @description external 打包时,过滤包导入。参考:https://rollupjs.org/configuration-options/#external
8
7
  */
9
8
  export declare const buildConfig: {
10
- cdn(): Plugin<any>[];
9
+ cdn(): Plugin[];
11
10
  external: string[];
12
11
  };
@@ -1,15 +1,15 @@
1
- declare const percentFormat: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
2
- declare const dateFormatYMD: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
3
- declare const dateFormatYMDHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
4
- declare const dateFormatHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
1
+ declare const percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
2
+ declare const dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
3
+ declare const dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
4
+ declare const dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
5
5
  declare const scaleFormat: (value?: string, scale?: number) => string;
6
6
  declare const scale2Format: (value?: string) => string;
7
7
  declare const copyText: (text: string) => Promise<unknown>;
8
8
  declare const _default: {
9
- percentFormat: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
10
- dateFormatYMD: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
11
- dateFormatYMDHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
12
- dateFormatHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
9
+ percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
10
+ dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
11
+ dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
12
+ dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
13
13
  scaleFormat: (value?: string, scale?: number) => string;
14
14
  scale2Format: (value?: string) => string;
15
15
  copyText: (text: string) => Promise<unknown>;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  /** 系统参数设置 - 小数位数 */
3
- export declare const decimalDigits: Ref<number>;
3
+ export declare const decimalDigits: Ref<number, number>;
4
4
  /**
5
5
  * @param val 对结果进行格式化,用来解决计算过程中精度缺失的问题
6
6
  * @param digits 小数位数
@@ -23,7 +23,7 @@ export declare function setTagsViewNameI18n(item: any): string;
23
23
  * @param arr 列表数据
24
24
  * @description data-xxx 属性用于存储页面或应用程序的私有自定义数据
25
25
  */
26
- export declare const lazyImg: (el: string, arr: EmptyArrayType<any>) => void;
26
+ export declare const lazyImg: (el: string, arr: EmptyArrayType) => void;
27
27
  /**
28
28
  * 全局组件大小
29
29
  * @returns 返回 `window.localStorage` 中读取的缓存值 `globalComponentSize`
@@ -66,10 +66,10 @@ export declare const other: {
66
66
  elSvg: (app: App) => void;
67
67
  useTitle: (r?: any) => void;
68
68
  setTagsViewNameI18n(route: RouteToFrom): string;
69
- lazyImg: (el: string, arr: EmptyArrayType<any>) => void;
69
+ lazyImg: (el: string, arr: EmptyArrayType) => void;
70
70
  globalComponentSize: () => string;
71
71
  deepClone: (obj: EmptyObjectType) => EmptyObjectType<any>;
72
72
  isMobile: () => boolean;
73
- handleEmpty: (list: EmptyArrayType<any>) => any[];
73
+ handleEmpty: (list: EmptyArrayType) => any[];
74
74
  handleOpenLink: (val: RouteItem) => void;
75
75
  };
@@ -1,5 +1,5 @@
1
- import { AxiosResponse, AxiosRequestConfig } from 'axios';
2
1
  import { axiosInterceptors } from './request';
2
+ import { AxiosResponse, AxiosRequestConfig } from 'axios';
3
3
 
4
4
  export declare const request: <T = any, R = AxiosResponse<T, any>, D = any>(config: AxiosRequestConfig<D>) => Promise<R>;
5
5
  export { axiosInterceptors };
@@ -1,2 +1,2 @@
1
- declare const _default: ((axiosConfig: any) => any)[][];
1
+ declare const _default: ((axiosConfig: import("../../../../types").ICustomData.ANY) => any)[][];
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: ((responseData: any) => Promise<any>)[][];
1
+ declare const _default: ((responseData: import("../../../../types").ICustomData.ANY) => Promise<any>)[][];
2
2
  export default _default;
@@ -5,6 +5,6 @@ import { AxiosInstance, AxiosInterceptorManager, InternalAxiosRequestConfig, Axi
5
5
  declare const request: AxiosInstance;
6
6
  export default request;
7
7
  export declare const axiosInterceptors: {
8
- request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
9
- response: AxiosInterceptorManager<AxiosResponse<any, any>>;
8
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
9
+ response: AxiosInterceptorManager<AxiosResponse>;
10
10
  };
@@ -1,6 +1,6 @@
1
- import { Message } from 'element-plus';
2
- import { SFCInstallWithContext } from 'element-plus/es/utils';
3
1
  import { Plugin } from 'vue';
2
+ import { SFCInstallWithContext } from 'element-plus/es/utils';
3
+ import { Message } from 'element-plus';
4
4
 
5
5
  export declare const HsMessage: SFCInstallWithContext<Message>;
6
6
  export declare const message: Plugin;
@@ -1,6 +1,6 @@
1
- import { IElMessageBox } from 'element-plus';
2
- import { SFCWithInstall } from 'element-plus/es/utils';
3
1
  import { Plugin } from 'vue';
2
+ import { SFCWithInstall } from 'element-plus/es/utils';
3
+ import { IElMessageBox } from 'element-plus';
4
4
 
5
5
  export declare const HsMessageBox: SFCWithInstall<IElMessageBox>;
6
6
  export declare const messageBox: Plugin;
@@ -1,6 +1,6 @@
1
- import { Notify } from 'element-plus';
2
- import { SFCInstallWithContext } from 'element-plus/es/utils';
3
1
  import { Plugin } from 'vue';
2
+ import { SFCInstallWithContext } from 'element-plus/es/utils';
3
+ import { Notify } from 'element-plus';
4
4
 
5
5
  export declare const HsNotification: SFCInstallWithContext<Notify>;
6
6
  export declare const notification: Plugin;
@@ -1,6 +1,6 @@
1
- import { ICustomData } from '../../types';
2
- import { VxeModalProps, VxeModalEventProps } from 'vxe-pc-ui';
3
1
  import { Component, App } from 'vue';
2
+ import { VxeModalProps, VxeModalEventProps } from 'vxe-pc-ui';
3
+ import { ICustomData } from '../../types';
4
4
 
5
5
  export interface SUCCESS_TYPE {
6
6
  type: 'cancel' | 'confirm' | ICustomData.ANY;
@@ -1,13 +1,13 @@
1
- import { Ref } from 'vue';
2
- import { ICustomData } from '../types';
3
- import { Router, RouteLocationNormalizedLoaded } from 'vue-router';
4
1
  import { default as localforage } from 'localforage';
2
+ import { Router, RouteLocationNormalizedLoadedGeneric } from 'vue-router';
3
+ import { ICustomData } from '../types';
4
+ import { Ref } from 'vue';
5
5
 
6
- export declare let NEXT_NAME: Ref<any>;
7
- export declare let IS_DEV: Ref<any>;
6
+ export declare let NEXT_NAME: Ref<any, any>;
7
+ export declare let IS_DEV: Ref<any, any>;
8
8
  /** 子项目当前路由信息 */
9
- export declare let CurrentRoute: Ref< Ref<RouteLocationNormalizedLoaded> | undefined>;
10
- export declare let CurrentRouter: Ref<Router | undefined>;
9
+ export declare let CurrentRoute: Ref< Ref<RouteLocationNormalizedLoadedGeneric, RouteLocationNormalizedLoadedGeneric> | undefined, Ref<RouteLocationNormalizedLoadedGeneric, RouteLocationNormalizedLoadedGeneric> | undefined>;
10
+ export declare let CurrentRouter: Ref<Router | undefined, Router | undefined>;
11
11
  /**
12
12
  * window.localStorage 浏览器永久缓存
13
13
  * @method set 设置永久缓存
@@ -18,7 +18,7 @@ export declare let CurrentRouter: Ref<Router | undefined>;
18
18
  export declare const Local: {
19
19
  setKey(key: string): string;
20
20
  set<T>(key: string, val: T): void;
21
- get<T_1 = any>(key: string): T_1 | null;
21
+ get<T = any>(key: string): T | null;
22
22
  remove(key: string): void;
23
23
  clear(): void;
24
24
  };
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, vShow, createCommentVNode, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
2
2
  import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-DOiOwYLl.mjs";
3
- import { _ as _export_sfc, a4 as systemStore, d as ElMessage, a5 as useFileController } from "./index-Vf3z9k6_.mjs";
3
+ import { _ as _export_sfc, a4 as systemStore, d as ElMessage, a5 as useFileController } from "./index-CNLbSkJO.mjs";
4
4
  const _sfc_main$1 = {
5
5
  data: function() {
6
6
  return {
@@ -63,7 +63,9 @@ const _sfc_main$1 = {
63
63
  scalingSet: "",
64
64
  coeStatus: "",
65
65
  // 控制emit触发频率
66
- isCanShow: true
66
+ isCanShow: true,
67
+ // 图片是否等于截图大小
68
+ imgIsQqualCrop: false
67
69
  };
68
70
  },
69
71
  props: {
@@ -1124,6 +1126,7 @@ const _sfc_main$1 = {
1124
1126
  },
1125
1127
  getCropChecked(cb) {
1126
1128
  let canvas = document.createElement("canvas");
1129
+ let ctx = canvas.getContext("2d");
1127
1130
  let img = new Image();
1128
1131
  let rotate = this.rotate;
1129
1132
  let trueWidth = this.trueWidth;
@@ -1132,7 +1135,6 @@ const _sfc_main$1 = {
1132
1135
  let cropOffsertY = this.cropOffsertY;
1133
1136
  img.onload = () => {
1134
1137
  if (this.cropW !== 0) {
1135
- let ctx = canvas.getContext("2d");
1136
1138
  let dpr = 1;
1137
1139
  if (this.high & !this.full) {
1138
1140
  dpr = window.devicePixelRatio;
@@ -1148,10 +1150,6 @@ const _sfc_main$1 = {
1148
1150
  let dy = (this.y - cropOffsertY + this.trueHeight * (1 - this.scale) / 2) * dpr;
1149
1151
  setCanvasSize(width, height);
1150
1152
  ctx.save();
1151
- if (this.fillColor) {
1152
- ctx.fillStyle = this.fillColor;
1153
- ctx.fillRect(0, 0, canvas.width, canvas.height);
1154
- }
1155
1153
  switch (rotate) {
1156
1154
  case 0:
1157
1155
  if (!this.full) {
@@ -1246,12 +1244,7 @@ const _sfc_main$1 = {
1246
1244
  } else {
1247
1245
  let width = trueWidth * this.scale;
1248
1246
  let height = trueHeight * this.scale;
1249
- let ctx = canvas.getContext("2d");
1250
1247
  ctx.save();
1251
- if (this.fillColor) {
1252
- ctx.fillStyle = this.fillColor;
1253
- ctx.fillRect(0, 0, canvas.width, canvas.height);
1254
- }
1255
1248
  switch (rotate) {
1256
1249
  case 0:
1257
1250
  setCanvasSize(width, height);
@@ -1288,9 +1281,14 @@ const _sfc_main$1 = {
1288
1281
  img.crossOrigin = "Anonymous";
1289
1282
  }
1290
1283
  img.src = this.imgs;
1284
+ const fillColor = this.fillColor;
1291
1285
  function setCanvasSize(width, height) {
1292
1286
  canvas.width = Math.round(width);
1293
1287
  canvas.height = Math.round(height);
1288
+ if (fillColor) {
1289
+ ctx.fillStyle = fillColor;
1290
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
1291
+ }
1294
1292
  }
1295
1293
  },
1296
1294
  // 获取转换成base64 的图片信息
@@ -1447,8 +1445,7 @@ const _sfc_main$1 = {
1447
1445
  },
1448
1446
  // 自动截图函数
1449
1447
  goAutoCrop(cw, ch) {
1450
- if (this.imgs === "" || this.imgs === null)
1451
- return;
1448
+ if (this.imgs === "" || this.imgs === null) return;
1452
1449
  this.clearCrop();
1453
1450
  this.cropping = true;
1454
1451
  let maxWidth = this.w;
@@ -1550,8 +1547,61 @@ const _sfc_main$1 = {
1550
1547
  if (axis.y2 <= cropAxis.y2) {
1551
1548
  canGo = false;
1552
1549
  }
1550
+ if (!canGo) {
1551
+ this.changeImgScale(axis, cropAxis, scale);
1552
+ }
1553
1553
  }
1554
1554
  return canGo;
1555
+ },
1556
+ // 缩放图片,将图片坐标适配截图框坐标
1557
+ changeImgScale(axis, cropAxis, scale) {
1558
+ let trueWidth = this.trueWidth;
1559
+ let trueHeight = this.trueHeight;
1560
+ let imgW = trueWidth * scale;
1561
+ let imgH = trueHeight * scale;
1562
+ if (imgW >= this.cropW && imgH >= this.cropH) {
1563
+ this.scale = scale;
1564
+ } else {
1565
+ const cropWScale = this.cropW / trueWidth;
1566
+ const cropHScale = this.cropH / trueHeight;
1567
+ const cropScale = this.cropH <= trueHeight * cropWScale ? cropWScale : cropHScale;
1568
+ this.scale = cropScale;
1569
+ imgW = trueWidth * cropScale;
1570
+ imgH = trueHeight * cropScale;
1571
+ }
1572
+ if (!this.imgIsQqualCrop) {
1573
+ if (axis.x1 >= cropAxis.x1) {
1574
+ if (this.isRotateRightOrLeft) {
1575
+ this.x = cropAxis.x1 - (trueWidth - imgW) / 2 - (imgW - imgH) / 2;
1576
+ } else {
1577
+ this.x = cropAxis.x1 - (trueWidth - imgW) / 2;
1578
+ }
1579
+ }
1580
+ if (axis.x2 <= cropAxis.x2) {
1581
+ if (this.isRotateRightOrLeft) {
1582
+ this.x = cropAxis.x1 - (trueWidth - imgW) / 2 - (imgW - imgH) / 2 - imgH + this.cropW;
1583
+ } else {
1584
+ this.x = cropAxis.x2 - (trueWidth - imgW) / 2 - imgW;
1585
+ }
1586
+ }
1587
+ if (axis.y1 >= cropAxis.y1) {
1588
+ if (this.isRotateRightOrLeft) {
1589
+ this.y = cropAxis.y1 - (trueHeight - imgH) / 2 - (imgH - imgW) / 2;
1590
+ } else {
1591
+ this.y = cropAxis.y1 - (trueHeight - imgH) / 2;
1592
+ }
1593
+ }
1594
+ if (axis.y2 <= cropAxis.y2) {
1595
+ if (this.isRotateRightOrLeft) {
1596
+ this.y = cropAxis.y2 - (trueHeight - imgH) / 2 - (imgH - imgW) / 2 - imgW;
1597
+ } else {
1598
+ this.y = cropAxis.y2 - (trueHeight - imgH) / 2 - imgH;
1599
+ }
1600
+ }
1601
+ }
1602
+ if (imgW < this.cropW || imgH < this.cropH) {
1603
+ this.imgIsQqualCrop = true;
1604
+ }
1555
1605
  }
1556
1606
  },
1557
1607
  mounted() {
@@ -1715,7 +1765,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1715
1765
  ])
1716
1766
  ], 544);
1717
1767
  }
1718
- const VueCropper = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-168a3964"]]);
1768
+ const VueCropper = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-2f16e7aa"]]);
1719
1769
  const _hoisted_1 = { class: "h-full" };
1720
1770
  const _hoisted_2 = { class: "avatar-upload-preview" };
1721
1771
  const _hoisted_3 = ["src"];
@@ -1895,7 +1945,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1895
1945
  default: withCtx(() => [
1896
1946
  createVNode(_component_el_button, { size: "default" }, {
1897
1947
  default: withCtx(() => [
1898
- createTextVNode(" 选择 "),
1948
+ _cache[6] || (_cache[6] = createTextVNode(" 选择 ")),
1899
1949
  createVNode(_component_bc_icon, { name: "ele-UploadFilled" })
1900
1950
  ]),
1901
1951
  _: 1
@@ -1967,9 +2017,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1967
2017
  size: "default",
1968
2018
  onClick: _cache[4] || (_cache[4] = ($event) => unref(refreshCrop)())
1969
2019
  }, {
1970
- default: withCtx(() => [
2020
+ default: withCtx(() => _cache[7] || (_cache[7] = [
1971
2021
  createTextVNode("重 置")
1972
- ]),
2022
+ ])),
1973
2023
  _: 1
1974
2024
  })
1975
2025
  ]),
@@ -1985,9 +2035,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1985
2035
  type: "primary",
1986
2036
  onClick: _cache[5] || (_cache[5] = ($event) => unref(uploadImg)())
1987
2037
  }, {
1988
- default: withCtx(() => [
2038
+ default: withCtx(() => _cache[8] || (_cache[8] = [
1989
2039
  createTextVNode("提 交")
1990
- ]),
2040
+ ])),
1991
2041
  _: 1
1992
2042
  })
1993
2043
  ]),
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-DIgjVF2O.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-2f16e7aa"]]),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})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
Binary file