hs-admin-ui 13.0.8 → 13.1.0

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 (407) hide show
  1. package/dist/{401-LcYcF2zR.mjs → 401-BES93ec4.mjs} +4 -3
  2. package/dist/{401-CMVV_ycr.js → 401-CKCma4zs.js} +1 -1
  3. package/dist/404-BSgmEVf_.js +1 -0
  4. package/dist/404-BSgmEVf_.js.gz +0 -0
  5. package/dist/{404-CVRv0SBu.mjs → 404-D-dra5-p.mjs} +4 -3
  6. package/dist/404-D-dra5-p.mjs.gz +0 -0
  7. package/dist/{account-BD6FSNV6.js → account-D0cK_OkC.js} +1 -1
  8. package/dist/{account-CIVjZWs0.mjs → account-aM3g4PmP.mjs} +4 -3
  9. package/dist/{aside-B3rEb108.js → aside-BDYUKlSX.js} +1 -1
  10. package/dist/{aside-3lGrj9sT.mjs → aside-D0JI2h7N.mjs} +16 -28
  11. package/dist/auth_test-CgnTygqE.js +1 -0
  12. package/dist/{auth_test-Dk0_AcnZ.mjs → auth_test-Z5-WmAvv.mjs} +3 -3
  13. package/dist/{baseFormConfig-BM-0tcB8.mjs → baseFormConfig-BaFbaMWd.mjs} +4 -4
  14. package/dist/{baseFormConfig-BM-0tcB8.mjs.gz → baseFormConfig-BaFbaMWd.mjs.gz} +0 -0
  15. package/dist/{btnIndex-esExKKFd.mjs → btnIndex-C1Qxdm-v.mjs} +13 -11
  16. package/dist/btnIndex-C1Qxdm-v.mjs.gz +0 -0
  17. package/dist/btnIndex-D8hbBrKF.js +1 -0
  18. package/dist/{classic-Bu4lr0Jm.js → classic-CLvahqA1.js} +1 -1
  19. package/dist/{classic-CtonedoX.mjs → classic-NfwNbAXv.mjs} +7 -8
  20. package/dist/{cloneConfigDialog-u-ugA-Ed.mjs → cloneConfigDialog-D49pyGQH.mjs} +15 -16
  21. package/dist/cloneConfigDialog-D49pyGQH.mjs.gz +0 -0
  22. package/dist/{cloneConfigDialog-DrHrrzV4.js → cloneConfigDialog-S2uLp_4i.js} +1 -1
  23. package/dist/cloneConfigDialog-S2uLp_4i.js.gz +0 -0
  24. package/dist/{columns-CzNHMQ1Y.mjs → columns-CrMKVBCt.mjs} +6 -6
  25. package/dist/{columns-D3WUSDTQ.js → columns-D0LAOgS5.js} +1 -1
  26. package/dist/{columnsAside-RRVQIh8c.js → columnsAside-BqsT4_C2.js} +1 -1
  27. package/dist/{columnsAside-B1NFwkRh.mjs → columnsAside-DPWY0Zgf.mjs} +16 -30
  28. package/dist/{contextmenu-CncPENTC.mjs → contextmenu-5XuEfa3t.mjs} +4 -6
  29. package/dist/{contextmenu-DYkQYt12.js → contextmenu-ByVTvMHw.js} +1 -1
  30. package/dist/{contextmenu-BOl_T93k.mjs → contextmenu-CrTps7di.mjs} +4 -6
  31. package/dist/{contextmenu-ApIdyWkr.js → contextmenu-D-IdjDD2.js} +1 -1
  32. package/dist/{copyMenuConfig-BJKzdyzn.mjs → copyMenuConfig-825FTnac.mjs} +1 -1
  33. package/dist/{copyMenuConfig-DSIxgxgA.js → copyMenuConfig-CnPi1lrC.js} +1 -1
  34. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-QQzIElVw.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BCGgcKzE.mjs} +2 -2
  35. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-B-y0w3CL.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-Stn8pJNv.js} +1 -1
  36. package/dist/{copySystem-CVo6XCFT.mjs → copySystem-BpiHkh5P.mjs} +1 -1
  37. package/dist/{copySystem-vccMi-im.js → copySystem-CzVClGMJ.js} +1 -1
  38. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BKBSR_2A.js → copySystem.vue_vue_type_script_setup_true_lang-BdJicWYY.js} +1 -1
  39. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BK2G3D_R.mjs → copySystem.vue_vue_type_script_setup_true_lang-DpUPcVTt.mjs} +2 -2
  40. package/dist/{defaults-B65fjHN-.js → defaults-BjHnC0uR.js} +1 -1
  41. package/dist/{defaults-CH_FtRPE.mjs → defaults-_YxLF1Tx.mjs} +5 -5
  42. package/dist/{dialog-C84G2gYF.js → dialog-BO_TvilH.js} +1 -1
  43. package/dist/{dialog-BEl3p3pT.mjs → dialog-BpY5TPcI.mjs} +3 -2
  44. package/dist/dialog-BpY5TPcI.mjs.gz +0 -0
  45. package/dist/{dialog-DwvY7rYa.mjs → dialog-Ca7Kr3GW.mjs} +2 -2
  46. package/dist/{dialog-ztDq9_C_.js → dialog-CnJOwI_N.js} +1 -1
  47. package/dist/{dialog-CHlICCg6.js → dialog-D4RfZS_a.js} +1 -1
  48. package/dist/{dialog-CuCf2uk1.mjs → dialog-DQP53khI.mjs} +3 -2
  49. package/dist/dialog-DQP53khI.mjs.gz +0 -0
  50. package/dist/dialog-DxBOYlwo.js +1 -0
  51. package/dist/{dialog-BLSiC-iw.mjs → dialog-DxasNK8_.mjs} +3 -2
  52. package/dist/dialog-DxasNK8_.mjs.gz +0 -0
  53. package/dist/{dialog-DYReMqae.mjs → dialog-GdAIcvct.mjs} +1 -1
  54. package/dist/dialog-TFJ52Qpk.js +1 -0
  55. package/dist/{dialog-C-vulPBn.mjs → dialog-U9glui4k.mjs} +1 -1
  56. package/dist/dialog-aXGpnV8k.js +1 -0
  57. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BwqdHyi2.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-D9BSViYW.js} +1 -1
  58. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B8cnCCRc.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-jYymudsr.mjs} +8 -10
  59. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BVhSvOY1.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-8MP8Uxhp.js} +1 -1
  60. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-8MP8Uxhp.js.gz +0 -0
  61. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CqmR2a7x.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DNkVlSM2.mjs} +28 -23
  62. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DNkVlSM2.mjs.gz +0 -0
  63. package/dist/{dictDialog-Cml_BzZY.js → dictDialog-BVwV5PN0.js} +1 -1
  64. package/dist/{dictDialog-CSTG5PrX.mjs → dictDialog-DZYAxh6l.mjs} +1 -1
  65. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CkqC93sO.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B0rpvDI4.mjs} +8 -7
  66. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DGPVZ6Cm.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Bngg3BJY.js} +1 -1
  67. package/dist/{dictItemDialog-D6YAFQBm.js → dictItemDialog-C5GnSpWo.js} +1 -1
  68. package/dist/{dictItemDialog-DnpC2zMI.mjs → dictItemDialog-Dz3eBmVs.mjs} +1 -1
  69. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-DIQNIvzK.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-C7h5UYqe.mjs} +5 -6
  70. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-rEYqFjcZ.js +1 -0
  71. package/dist/{formConfig-CjuaAN-Y.js → formConfig-CBlrTLZj.js} +1 -1
  72. package/dist/formConfig-CBlrTLZj.js.gz +0 -0
  73. package/dist/{formConfig-DDQrgcyl.mjs → formConfig-CPWm7h9K.mjs} +15 -18
  74. package/dist/formConfig-CPWm7h9K.mjs.gz +0 -0
  75. package/dist/{header-Cb6WPizI.js → header-B_TBNKh6.js} +1 -1
  76. package/dist/{header-BWza5uU3.mjs → header-CLCzrMmr.mjs} +3 -3
  77. package/dist/{horizontal-CLE_3zbw.mjs → horizontal-CUxnnH3Z.mjs} +7 -11
  78. package/dist/{horizontal-hn3aqN58.js → horizontal-Cgrkl6OG.js} +1 -1
  79. package/dist/{hsAttrBtn-6KI9vd6o.js → hsAttrBtn-CVzSOprf.js} +1 -1
  80. package/dist/{hsAttrBtn-B6BFykaA.mjs → hsAttrBtn-Ken_LhNj.mjs} +1 -1
  81. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DvhwOMX_.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-DzGOHcyY.js} +1 -1
  82. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DE6frXHU.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-x_pPSIHe.mjs} +8 -9
  83. package/dist/{hsAttrForm-DsbbiGQq.mjs → hsAttrForm-DZZU0mTw.mjs} +1 -1
  84. package/dist/{hsAttrForm-5a8O9rNq.js → hsAttrForm-TGvOFuiF.js} +1 -1
  85. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DVvNiRu3.js → hsAttrForm.vue_vue_type_script_setup_true_lang-83YbJQ4i.js} +1 -1
  86. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-eLf9P4qL.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CQe0Acdq.mjs} +10 -12
  87. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CQe0Acdq.mjs.gz +0 -0
  88. package/dist/{hsBtnConfigList-B06UnnWB.js → hsBtnConfigList-DdLFxZz_.js} +1 -1
  89. package/dist/{hsBtnConfigList-B6mlRPHX.mjs → hsBtnConfigList-kPdtmZjK.mjs} +3 -3
  90. package/dist/{hsBtnItemConfig-BdlVEVGK.mjs → hsBtnItemConfig-CkC4sI-G.mjs} +1 -1
  91. package/dist/{hsBtnItemConfig-LIkN1FUm.js → hsBtnItemConfig-Do-98y0F.js} +1 -1
  92. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bkbh5oe0.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-7vdL6v9W.mjs} +2 -2
  93. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-ULEz_lUJ.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cju35YXK.js} +1 -1
  94. package/dist/{hsBtnPanel-BWHpZLTo.js → hsBtnPanel-DyisZSv8.js} +1 -1
  95. package/dist/{hsBtnPanel-oCEoQClh.mjs → hsBtnPanel-fxe3Oh2P.mjs} +1 -1
  96. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BzhXHC3g.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CpHZzjfC.js} +1 -1
  97. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-XITJxup_.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DZluRZdE.mjs} +5 -5
  98. package/dist/{hsCheckbox-tRIRuNcX.mjs → hsCheckbox-CalDndlZ.mjs} +1 -1
  99. package/dist/{hsCheckbox.vue_vue_type_script_setup_true_lang-Ciw4SwRU.mjs → hsCheckbox.vue_vue_type_script_setup_true_lang-XCUyHi8X.mjs} +1 -1
  100. package/dist/{hsExpand-B-KQ4PUd.js → hsExpand-BjBIoTu8.js} +1 -1
  101. package/dist/{hsExpand-Pk1pA_3W.mjs → hsExpand-Y11eQzM7.mjs} +1 -1
  102. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-B8zUewHo.mjs → hsExpand.vue_vue_type_script_setup_true_lang-CRyy1XMQ.mjs} +8 -5
  103. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-CnshQVC_.js → hsExpand.vue_vue_type_script_setup_true_lang-vSigOhEy.js} +1 -1
  104. package/dist/{hsFormConfig-xLahKAaI.mjs → hsFormConfig-Bh2BM-UG.mjs} +2 -2
  105. package/dist/{hsFormConfig-C4LAXijy.js → hsFormConfig-CsIhZhqL.js} +1 -1
  106. package/dist/{hsFormConfigList--kBAMPsG.mjs → hsFormConfigList-7kMnJQog.mjs} +8 -12
  107. package/dist/hsFormConfigList-7kMnJQog.mjs.gz +0 -0
  108. package/dist/{hsFormConfigList-CgVV4QIs.js → hsFormConfigList-BYTUT9V8.js} +1 -1
  109. package/dist/hsFormPanel-B2nFK55u.js +1 -0
  110. package/dist/{hsFormPanel-B-UsZCJG.mjs → hsFormPanel-DNcXxgoa.mjs} +13 -10
  111. package/dist/hsFormPanel-DNcXxgoa.mjs.gz +0 -0
  112. package/dist/{hsFormParse-CToHnFqv.js → hsFormParse-DZvGTzJ9.js} +1 -1
  113. package/dist/{hsFormParse-h0raKhWM.mjs → hsFormParse-h_wiBIQL.mjs} +1 -1
  114. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-Bvxz1CPb.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-3Ni75Lsh.mjs} +11 -10
  115. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BukqzetO.js → hsFormParse.vue_vue_type_script_setup_true_lang-BAYGYIb_.js} +1 -1
  116. package/dist/{hsPanelItem-CxGzHbOU.js → hsPanelItem-DiDqHDMP.js} +1 -1
  117. package/dist/{hsPanelItem-DRLPFEYz.mjs → hsPanelItem-MNvQ9RND.mjs} +1 -1
  118. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D5m_H6eQ.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BQ5Ia2aH.mjs} +2 -2
  119. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DoNAJdlQ.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D0dz5mDZ.js} +1 -1
  120. package/dist/{iframes-BQT9uXel.mjs → iframes-CF9fkXR3.mjs} +8 -14
  121. package/dist/{iframes-CfP_w_jq.js → iframes-Czj16bPC.js} +1 -1
  122. package/dist/index copy-BhscOn2w.js +6 -0
  123. package/dist/index copy-BhscOn2w.js.gz +0 -0
  124. package/dist/{index copy-B3vjFhNp.js → index copy-CGDQuRSZ.js } +1 -1
  125. package/dist/{index copy-DNMDhxAa.mjs → index copy-Cd2lJQ1E.mjs } +1636 -2859
  126. package/dist/index copy-Cd2lJQ1E.mjs.gz +0 -0
  127. package/dist/{index copy-CUapfgsF.mjs → index copy-Dl8AlP33.mjs } +2 -2
  128. package/dist/{index-B6rxoZsI.mjs → index-3n9S9Xcs.mjs} +2 -2
  129. package/dist/{index-qa9vMkWd.js → index-B-dIIc7d.js} +1 -1
  130. package/dist/index-B0Ese6Do.js +1 -0
  131. package/dist/{index-C_CkI74O.mjs → index-B0gr6VcI.mjs} +6 -6
  132. package/dist/{index-BMyqwNU1.mjs → index-B3Yk-11X.mjs} +2 -2
  133. package/dist/{index-CQjpnCzm.js → index-B3waw5fs.js} +1 -1
  134. package/dist/{index-D5XdqFCK.mjs → index-B4kzrV1t.mjs} +17 -10
  135. package/dist/{index-uZtG6m0z.js → index-BECYxo-N.js} +1 -1
  136. package/dist/{index-C0WAmbYH.mjs → index-BHLIdxIl.mjs} +3 -3
  137. package/dist/{index-rmeraleb.mjs → index-BMgiMsU7.mjs} +4 -5
  138. package/dist/index-BMgiMsU7.mjs.gz +0 -0
  139. package/dist/{index-gEgdllLg.js → index-BQf8Z1uc.js} +1 -1
  140. package/dist/{index-CZnOsO3d.mjs → index-BRZBeWSf.mjs} +3 -3
  141. package/dist/{index-lPIIN40T.js → index-BTxR07gL.js} +1 -1
  142. package/dist/index-BW96iu_j.js +1 -0
  143. package/dist/{index-CmJQe7yi.js → index-BdAJYq3p.js} +1 -1
  144. package/dist/{index-BwivEvMs.mjs → index-Bjrtcfug.mjs} +20 -20
  145. package/dist/index-Bjrtcfug.mjs.gz +0 -0
  146. package/dist/index-BmG6nCKV.mjs +4 -0
  147. package/dist/{index-BKtJZ4t8.js → index-Bq2TaU1A.js} +1 -1
  148. package/dist/{index-DQV1shN3.mjs → index-BwNp5Htm.mjs} +4 -5
  149. package/dist/{index-BWo8ePPl.mjs → index-Bypkd7-1.mjs} +13520 -13326
  150. package/dist/index-Bypkd7-1.mjs.gz +0 -0
  151. package/dist/{index-CqTSYm-M.js → index-C16TM2q5.js} +1 -1
  152. package/dist/{index-C5MqkrMJ.mjs → index-C5SrauX5.mjs} +15 -9
  153. package/dist/index-C5SrauX5.mjs.gz +0 -0
  154. package/dist/{index-OwmgKwH2.mjs → index-C6rzdv6v.mjs} +5 -4
  155. package/dist/{index-DJKI3UBM.mjs → index-C6wmfouw.mjs} +11 -9
  156. package/dist/{index-QPcqRHWg.mjs → index-CB2PX9xg.mjs} +4 -4
  157. package/dist/{index-Dw0c_0e7.mjs → index-CDmIqKSw.mjs} +1 -1
  158. package/dist/{index-C_c-j17X.js → index-CDvvdSkH.js} +1 -1
  159. package/dist/{index-CPIiqPm7.js → index-CNr0nKZe.js} +1 -1
  160. package/dist/{index-IZIxRVtP.mjs → index-CPcFjAZI.mjs} +1 -1
  161. package/dist/{index-D8oJPFz7.mjs → index-CQXJWdd3.mjs} +15 -9
  162. package/dist/{index-DpHJbpIp.mjs → index-CQjAdHXE.mjs} +1 -1
  163. package/dist/{index-CHMnHdsv.mjs → index-CUE6cOFE.mjs} +1 -1
  164. package/dist/{index-DrNgZTTC.mjs → index-Ca23jrfY.mjs} +6 -9
  165. package/dist/{index-CusZN89W.js → index-Ca3tqMBA.js} +1 -1
  166. package/dist/{index-ArvPLAmW.mjs → index-CbR2oLUo.mjs} +1 -1
  167. package/dist/{index-D1OEnjSl.mjs → index-CbTrSRoW.mjs} +1 -1
  168. package/dist/{index-iSyCJzeE.mjs → index-Ce8EB7ME.mjs} +7 -6
  169. package/dist/{index-D6UP2fhn.mjs → index-Cjse0M59.mjs} +194 -98
  170. package/dist/index-Cjse0M59.mjs.gz +0 -0
  171. package/dist/index-ClJ-5pl6.js +1 -0
  172. package/dist/{index-DNHJDY87.js → index-ClXTAdAm.js} +1 -1
  173. package/dist/index-Clbzavba.js +1 -0
  174. package/dist/{index-BDvOgeha.js → index-Cnh9cmWW.js} +1 -1
  175. package/dist/{index-BNETFGTL.mjs → index-CrTgm3C1.mjs} +11 -8
  176. package/dist/{index-B2es1uqc.mjs → index-CuLt_hTq.mjs} +8 -11
  177. package/dist/{index-CFxiD83Q.mjs → index-D13Q0cZW.mjs} +1 -1
  178. package/dist/{index-ciKpNjd5.js → index-D305IYb4.js} +1 -1
  179. package/dist/{index-DcY3CfNs.js → index-D4soWXIX.js} +1 -1
  180. package/dist/index-D5CAkhTV.js +1 -0
  181. package/dist/{index-mXez61xQ.js → index-DHV4BNmy.js} +1 -1
  182. package/dist/{index-CdhpM8vh.js → index-DHtqY0PC.js} +1 -1
  183. package/dist/{index-BA0d8SLq.js → index-DJGnm25N.js} +1 -1
  184. package/dist/index-DJGnm25N.js.gz +0 -0
  185. package/dist/{index-DozyxY8Y.mjs → index-DMdTOVdX.mjs} +12 -10
  186. package/dist/{index-CYMMGKUA.js → index-DPUZbPB4.js} +1 -1
  187. package/dist/index-DTY0BhAW.js +1 -0
  188. package/dist/{index-DiaDvD6S.js → index-DV6dW6CJ.js} +1 -1
  189. package/dist/{index-C3_AJhT8.js → index-DVFW3EFe.js} +1 -1
  190. package/dist/{index-lBFoYuj2.js → index-DVRyaAL_.js} +1 -1
  191. package/dist/index-Dcw89w8S.mjs +160 -0
  192. package/dist/{index-CV6s7X3Q.mjs → index-DhnYUtEH.mjs} +2 -2
  193. package/dist/{index-DMIXMQpw.mjs → index-Dj78maLv.mjs} +19 -13
  194. package/dist/index-Dj78maLv.mjs.gz +0 -0
  195. package/dist/index-Dsrjul_D.js +1 -0
  196. package/dist/index-Dv5fj_iA.js +1 -0
  197. package/dist/{index-QLRUYd_X.mjs → index-DxHfx8FX.mjs} +4 -4
  198. package/dist/{index-Be_A-QxA.mjs → index-DxTC_7-V.mjs} +14 -9
  199. package/dist/{index-CJvTTtNT.mjs → index-E817Pn4C.mjs} +2 -2
  200. package/dist/index-Ih9JZY_T.js +1 -0
  201. package/dist/index-IxFVqrOD.js +1 -0
  202. package/dist/index-dAPKFpIv.js +1 -0
  203. package/dist/index-dAPKFpIv.js.gz +0 -0
  204. package/dist/{index-BkwTEanQ.mjs → index-g_BDa62N.mjs} +1 -1
  205. package/dist/{index-XEvcN8p-.mjs → index-huCSIcOX.mjs} +10 -12
  206. package/dist/{index-D41VNzbg.mjs → index-iqujFDVt.mjs} +1 -1
  207. package/dist/{index-Bf5y3OzL.mjs → index-n_QQfu9Z.mjs} +3 -4
  208. package/dist/{index-DiG7mbHM.mjs → index-oupnqZgS.mjs} +1 -1
  209. package/dist/{index-DGNZLLU-.js → index-xyJRelfH.js} +1 -1
  210. package/dist/{index-Sxj7mldi.js → index-z_oqBXpO.js} +1 -1
  211. package/dist/index-ziU8QCzq.js +116 -0
  212. package/dist/index-ziU8QCzq.js.gz +0 -0
  213. package/dist/index.js +1 -1
  214. package/dist/index.mjs +3 -3
  215. package/dist/{index.vue_vue_type_script_setup_true_lang-BK7_YT88.js → index.vue_vue_type_script_setup_true_lang-B1VmhGOc.js} +1 -1
  216. package/dist/{index.vue_vue_type_script_setup_true_lang-CYQdkVUa.mjs → index.vue_vue_type_script_setup_true_lang-BQzv9rsC.mjs} +2 -2
  217. package/dist/{index.vue_vue_type_script_setup_true_lang-BECK0YGg.mjs → index.vue_vue_type_script_setup_true_lang-BYDy2SGp.mjs} +9 -11
  218. package/dist/{index.vue_vue_type_script_setup_true_lang-BlYZAbNh.mjs → index.vue_vue_type_script_setup_true_lang-CaHG4YQm.mjs} +2 -2
  219. package/dist/{index.vue_vue_type_script_setup_true_lang-BVhWoZHL.mjs → index.vue_vue_type_script_setup_true_lang-DFwnNsaJ.mjs} +2 -2
  220. package/dist/index.vue_vue_type_script_setup_true_lang-DFwnNsaJ.mjs.gz +0 -0
  221. package/dist/{index.vue_vue_type_script_setup_true_lang-CxL14QnE.js → index.vue_vue_type_script_setup_true_lang-DKZ1Q-BJ.js} +1 -1
  222. package/dist/{index.vue_vue_type_script_setup_true_lang-BfN0RCS_.js → index.vue_vue_type_script_setup_true_lang-DsvYVg5Q.js} +1 -1
  223. package/dist/{index.vue_vue_type_script_setup_true_lang-DWTPY38X.js → index.vue_vue_type_script_setup_true_lang-cX1Xh3Sv.js} +1 -1
  224. package/dist/{link-MtBAZnvD.mjs → link-BW3m4rYd.mjs} +6 -7
  225. package/dist/{link-C63eaifi.js → link-D1XoIaRh.js} +1 -1
  226. package/dist/{list-CMb_y0k9.js → list-Brn98UXq.js} +1 -1
  227. package/dist/{list-CdXh_nD3.mjs → list-DYFJaC2K.mjs} +2 -2
  228. package/dist/{main-3HKBgZut.mjs → main-Ccss2LYR.mjs} +9 -14
  229. package/dist/{main-D1zAO3sN.js → main-DAu0IH5r.js} +1 -1
  230. package/dist/{mobile-D5ciJjfd.js → mobile-CxmrGK4u.js} +1 -1
  231. package/dist/{mobile-BVAIg_lT.mjs → mobile-vxy9iaCW.mjs} +8 -5
  232. package/dist/{parent-DQb0Ryd1.js → parent-CYTezk7_.js} +1 -1
  233. package/dist/{parent-D-GSRbg3.mjs → parent-Cd5hw-ui.mjs} +3 -3
  234. package/dist/{popup-Dm-s2HDL.js → popup-0zKzbuRC.js} +1 -1
  235. package/dist/{popup-B31-o1ee.mjs → popup-Coe3tj8H.mjs} +1 -1
  236. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CNlM0boW.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CN4ptlWw.js} +1 -1
  237. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-JhK1w_6g.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CmI532vi.mjs} +2 -2
  238. package/dist/{roleItem-BXuUC7zD.mjs → roleItem-18-B9AmH.mjs} +2 -2
  239. package/dist/{roleItem-a5rJF1li.js → roleItem-NEfbdQ1I.js} +1 -1
  240. package/dist/{saveForm-B7aOTNsk.mjs → saveForm-5bar7K0j.mjs} +13 -8
  241. package/dist/saveForm-D-diCtCe.js +1 -0
  242. package/dist/{scan-RVgFonvr.js → scan-CMdRTbFZ.js} +1 -1
  243. package/dist/scan-CMdRTbFZ.js.gz +0 -0
  244. package/dist/{scan-BPKyRRnj.mjs → scan-CmCfHJ0z.mjs} +10 -18
  245. package/dist/scan-CmCfHJ0z.mjs.gz +0 -0
  246. package/dist/{search-CPl_KtUd.js → search-DG0-9s_d.js} +1 -1
  247. package/dist/{search-KlTwe8vf.mjs → search-HZ_1uZZ6.mjs} +7 -12
  248. package/dist/{selectConfig-Dw7m79Iq.mjs → selectConfig-CF6Eoz_Y.mjs} +2 -2
  249. package/dist/selectConfig-CF6Eoz_Y.mjs.gz +0 -0
  250. package/dist/{selectConfig-C9vHzvp0.js → selectConfig-Dd78Lc3j.js} +1 -1
  251. package/dist/style.css +1 -1
  252. package/dist/style.css.gz +0 -0
  253. package/dist/{subItem-DySZRDhC.mjs → subItem-BubCM1vF.mjs} +4 -4
  254. package/dist/subItem-Cwf3QLhz.js +1 -0
  255. package/dist/tagsView-DpdZH6q1.js +8 -0
  256. package/dist/tagsView-DpdZH6q1.js.gz +0 -0
  257. package/dist/{tagsView-XG9sRBvS.mjs → tagsView-deOwXnVi.mjs} +118 -189
  258. package/dist/tagsView-deOwXnVi.mjs.gz +0 -0
  259. package/dist/{transverse-D1mBExGa.js → transverse-DTenFGsL.js} +1 -1
  260. package/dist/{transverse-CurbxIRk.mjs → transverse-DqFPGR6Q.mjs} +4 -4
  261. package/dist/types/components/business/bcBox/bcBox.vue.d.ts +4 -2
  262. package/dist/types/components/business/bcBox/utils.d.ts +2 -2
  263. package/dist/types/components/business/bcForm/baseForm.vue.d.ts +78 -76
  264. package/dist/types/components/business/bcForm/bcForm.vue.d.ts +15 -13
  265. package/dist/types/components/business/bcForm/type.d.ts +3 -3
  266. package/dist/types/components/business/bcForm/useGuide.d.ts +67 -67
  267. package/dist/types/components/business/bcSystemAuth/components/selectAll/index.d.ts +1 -1
  268. package/dist/types/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +1 -1
  269. package/dist/types/components/business/bcSystemAuth/components/widget/form.vue.d.ts +1 -1
  270. package/dist/types/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +1 -1
  271. package/dist/types/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +1 -1
  272. package/dist/types/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +1 -1
  273. package/dist/types/components/business/bcSystemAuth/store.d.ts +3 -3
  274. package/dist/types/components/business/bcSystemAuth/useAuth.d.ts +5 -5
  275. package/dist/types/components/business/bcSystemAuth/utils.d.ts +4 -4
  276. package/dist/types/components/business/bcSystemField/components/selectAll/index.d.ts +1 -1
  277. package/dist/types/components/business/bcSystemField/components/widget/form.vue.d.ts +1 -1
  278. package/dist/types/components/business/bcSystemField/components/widget/tab.vue.d.ts +1 -1
  279. package/dist/types/components/business/bcSystemField/components/widget/tables.vue.d.ts +1 -1
  280. package/dist/types/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +1 -1
  281. package/dist/types/components/business/bcSystemField/store.d.ts +2 -2
  282. package/dist/types/components/business/bcSystemField/useAuth.d.ts +5 -5
  283. package/dist/types/components/business/bcSystemField/utils.d.ts +1 -1
  284. package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +71 -69
  285. package/dist/types/components/business/bcTable/bcTable.vue.d.ts +5 -3
  286. package/dist/types/components/business/bcTable/components/btn/btn.vue.d.ts +19 -17
  287. package/dist/types/components/business/bcTable/components/query/drag.vue.d.ts +31 -29
  288. package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +31 -29
  289. package/dist/types/components/business/bcTable/components/table/colgroup.vue.d.ts +4 -2
  290. package/dist/types/components/business/bcTable/components/table/column.vue.d.ts +8 -22
  291. package/dist/types/components/business/bcTable/components/table/table.vue.d.ts +22 -20
  292. package/dist/types/components/business/bcTable/components/table/useTable.d.ts +2 -2
  293. package/dist/types/components/business/bcTable/components/table/useTableHeight.d.ts +2 -2
  294. package/dist/types/components/business/bcTable/methods/index.d.ts +3 -1
  295. package/dist/types/components/business/bcTable/utils/onFormKey.d.ts +1 -1
  296. package/dist/types/components/business/bcTable/utils/onKeydownEvent.d.ts +3 -3
  297. package/dist/types/components/business/bcTable/utils/onTableKey.d.ts +2 -2
  298. package/dist/types/components/business/bcTable/utils/parseTable.d.ts +10 -10
  299. package/dist/types/components/business/bcTable/utils/type.d.ts +20 -6
  300. package/dist/types/components/business/bcTable/utils/useButon.d.ts +1 -1
  301. package/dist/types/components/business/bcTable/utils/useTable.d.ts +1917 -2044
  302. package/dist/types/components/business/bcTable/utils/useTableHeight.d.ts +1 -1
  303. package/dist/types/components/business/bcVisual/bcVisual.vue.d.ts +6 -4
  304. package/dist/types/components/business/bcVisual/components/setting/dragItem.vue.d.ts +2 -2
  305. package/dist/types/components/business/bcVisual/components/setting/useDrag.d.ts +1 -1
  306. package/dist/types/components/business/bcVisual/components/updateSql/addCondition.vue.d.ts +1 -1
  307. package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/index.d.ts +1 -1
  308. package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/index.vue.d.ts +1 -1
  309. package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/nodeTree.vue.d.ts +1 -1
  310. package/dist/types/components/business/bcVisual/useTableFormat.d.ts +1 -1
  311. package/dist/types/components/business/bcVisual/utils.d.ts +1 -1
  312. package/dist/types/plugins/index.d.ts +12 -12
  313. package/dist/types/types/customData.d.ts +6 -6
  314. package/dist/types/types/form.d.ts +1 -1
  315. package/dist/types/types/formItem/inputGroup.d.ts +1 -1
  316. package/dist/types/utils/build.d.ts +1 -2
  317. package/dist/types/utils/commonFunction.d.ts +8 -8
  318. package/dist/types/utils/other.d.ts +3 -3
  319. package/dist/types/utils/request/index.d.ts +1 -1
  320. package/dist/types/utils/request/interceptors/request/index.d.ts +1 -1
  321. package/dist/types/utils/request/interceptors/response/index.d.ts +1 -1
  322. package/dist/types/utils/request/request.d.ts +2 -2
  323. package/dist/types/utils/showMessage.d.ts +2 -2
  324. package/dist/types/utils/showMessageBox.d.ts +2 -2
  325. package/dist/types/utils/showNotification.d.ts +2 -2
  326. package/dist/types/utils/showPopup/index.d.ts +2 -2
  327. package/dist/types/utils/storage.d.ts +5 -5
  328. package/dist/types/utils/tree.d.ts +1 -1
  329. package/dist/uploadAvatar-B-WWk_qp.js +1 -0
  330. package/dist/uploadAvatar-B-WWk_qp.js.gz +0 -0
  331. package/dist/{uploadAvatar-CicCWeXu.mjs → uploadAvatar-w773mzkf.mjs} +74 -21
  332. package/dist/uploadAvatar-w773mzkf.mjs.gz +0 -0
  333. package/dist/{user-Ct53C4-5.js → user-aZO3x2rg.js} +1 -1
  334. package/dist/{user-C3zTyk5I.mjs → user-c2I4kHyB.mjs} +12 -14
  335. package/dist/{userNews-CYCwyO5M.js → userNews-BXY4xVBl.js} +1 -1
  336. package/dist/{userNews-BFYXseFZ.mjs → userNews-CSmmECwx.mjs} +2 -2
  337. package/dist/{userSelect-BOYh6N-w.mjs → userSelect-BYlRsQ5Z.mjs} +1 -1
  338. package/dist/{userSelect-BFrM4Jkg.js → userSelect-BjlN_L7r.js} +1 -1
  339. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Vj2KnGQ7.mjs → userSelect.vue_vue_type_script_setup_true_lang-DHr-1ojA.mjs} +4 -3
  340. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-B7HhyGhG.js → userSelect.vue_vue_type_script_setup_true_lang-DKHzvD_-.js} +1 -1
  341. package/dist/{vertical-BU_Yrk6O.mjs → vertical-ApeWWAa6.mjs} +8 -11
  342. package/dist/vertical-CmQ_IrGz.js +1 -0
  343. package/package.json +19 -73
  344. package/dist/404-CVRv0SBu.mjs.gz +0 -0
  345. package/dist/404-DdRP9usA.js +0 -1
  346. package/dist/404-DdRP9usA.js.gz +0 -0
  347. package/dist/auth_test-Cbai58eE.js +0 -1
  348. package/dist/btnIndex-CmqbGmGA.js +0 -1
  349. package/dist/btnIndex-esExKKFd.mjs.gz +0 -0
  350. package/dist/cloneConfigDialog-DrHrrzV4.js.gz +0 -0
  351. package/dist/cloneConfigDialog-u-ugA-Ed.mjs.gz +0 -0
  352. package/dist/dialog-BEl3p3pT.mjs.gz +0 -0
  353. package/dist/dialog-BLSiC-iw.mjs.gz +0 -0
  354. package/dist/dialog-BqFq7ikl.js +0 -1
  355. package/dist/dialog-CuCf2uk1.mjs.gz +0 -0
  356. package/dist/dialog-DBTb2B-5.js +0 -1
  357. package/dist/dialog-Do_dt7gh.js +0 -1
  358. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BVhSvOY1.js.gz +0 -0
  359. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CqmR2a7x.mjs.gz +0 -0
  360. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-Ck_9r_nf.js +0 -1
  361. package/dist/formConfig-CjuaAN-Y.js.gz +0 -0
  362. package/dist/formConfig-DDQrgcyl.mjs.gz +0 -0
  363. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-eLf9P4qL.mjs.gz +0 -0
  364. package/dist/hsFormConfigList--kBAMPsG.mjs.gz +0 -0
  365. package/dist/hsFormPanel-B-UsZCJG.mjs.gz +0 -0
  366. package/dist/hsFormPanel-C8SUkjjO.js +0 -1
  367. package/dist/index copy-BVMRXxbZ.js +0 -6
  368. package/dist/index copy-BVMRXxbZ.js.gz +0 -0
  369. package/dist/index copy-DNMDhxAa.mjs.gz +0 -0
  370. package/dist/index-2qDZNQqC.mjs +0 -250
  371. package/dist/index-2qDZNQqC.mjs.gz +0 -0
  372. package/dist/index-9Ed3dLEr.js +0 -1
  373. package/dist/index-BA0d8SLq.js.gz +0 -0
  374. package/dist/index-BKcPKJZV.js +0 -1
  375. package/dist/index-BOpCR9EK.js +0 -1
  376. package/dist/index-BWo8ePPl.mjs.gz +0 -0
  377. package/dist/index-Be4xpVsw.mjs +0 -4
  378. package/dist/index-BwivEvMs.mjs.gz +0 -0
  379. package/dist/index-C6tsfl-r.js +0 -1
  380. package/dist/index-C6tsfl-r.js.gz +0 -0
  381. package/dist/index-Cbpqgt3s.js +0 -1
  382. package/dist/index-Cmvpc1Nr.js +0 -1
  383. package/dist/index-Cvlv4hFf.js +0 -1
  384. package/dist/index-D6UP2fhn.mjs.gz +0 -0
  385. package/dist/index-DMIXMQpw.mjs.gz +0 -0
  386. package/dist/index-DV5PVi2p.js +0 -1
  387. package/dist/index-Dxc3i4HX.js +0 -1
  388. package/dist/index-J0pO8DUY.js +0 -122
  389. package/dist/index-J0pO8DUY.js.gz +0 -0
  390. package/dist/index-g_y0PhXS.js +0 -1
  391. package/dist/index-heYZFm4y.js +0 -1
  392. package/dist/index-rmeraleb.mjs.gz +0 -0
  393. package/dist/index.vue_vue_type_script_setup_true_lang-BVhWoZHL.mjs.gz +0 -0
  394. package/dist/saveForm-DEkIGq9F.js +0 -1
  395. package/dist/scan-BPKyRRnj.mjs.gz +0 -0
  396. package/dist/scan-RVgFonvr.js.gz +0 -0
  397. package/dist/selectConfig-Dw7m79Iq.mjs.gz +0 -0
  398. package/dist/subItem-CwWmsizT.js +0 -1
  399. package/dist/tagsView-NuVhBxVN.js +0 -8
  400. package/dist/tagsView-NuVhBxVN.js.gz +0 -0
  401. package/dist/tagsView-XG9sRBvS.mjs.gz +0 -0
  402. package/dist/uploadAvatar-BgZYeqvP.js +0 -1
  403. package/dist/uploadAvatar-BgZYeqvP.js.gz +0 -0
  404. package/dist/uploadAvatar-CicCWeXu.mjs.gz +0 -0
  405. package/dist/vertical-BIMIlZm6.js +0 -1
  406. /package/dist/{uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js → uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js} +0 -0
  407. /package/dist/{uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-DOiOwYLl.mjs → uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-DOiOwYLl.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { VxeTableInstance } from 'vxe-table';
2
1
  import { Ref, ShallowRef, ComputedRef } from 'vue';
2
+ import { VxeTableInstance } from 'vxe-table';
3
3
 
4
4
  export declare function useTableHeight(activeTabs: Ref<string>): {
5
5
  wrapRef: ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
@@ -1,5 +1,8 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<ExtractPropTypes<{
2
+ declare function __VLS_template(): {
3
+ empty?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
3
6
  preview: {
4
7
  type: BooleanConstructor;
5
8
  default: boolean;
@@ -44,9 +47,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<ExtractPropType
44
47
  }>> & Readonly<{}>, {
45
48
  url: string;
46
49
  preview: boolean;
47
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
48
- empty?(_: {}): any;
49
- }>;
50
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
51
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
50
52
  export default _default;
51
53
  type __VLS_WithTemplateSlots<T, S> = T & {
52
54
  new (): {
@@ -1,5 +1,5 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
1
  import { IColumns } from '../../type';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
 
4
4
  declare const _default: DefineComponent<ExtractPropTypes<{
5
5
  modelValue: PropType<IColumns[]>;
@@ -38,8 +38,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
38
38
  default: string;
39
39
  };
40
40
  }>> & Readonly<{}>, {
41
- type: string;
42
41
  title: string;
42
+ type: string;
43
43
  field: string;
44
44
  tip: string;
45
45
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
- import { MessageHandler } from 'element-plus';
2
1
  import { Ref } from 'vue';
2
+ import { MessageHandler } from 'element-plus';
3
3
  export declare function useDrag(): {
4
4
  fieldItem: Ref<string, string>;
5
5
  onDragstart: (e: DragEvent) => void;
@@ -1,5 +1,5 @@
1
- import { Tree } from './nodeTree';
2
1
  import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Tree } from './nodeTree';
3
3
 
4
4
  declare const _default: DefineComponent<ExtractPropTypes<{
5
5
  condition: {
@@ -1,5 +1,5 @@
1
- import { NODE_RELATION } from '../../../type';
2
1
  import { default as NodeTree } from './index.vue';
2
+ import { NODE_RELATION } from '../../../type';
3
3
 
4
4
  export { NodeTree };
5
5
  type BtnType = 'addCondition' | 'addNode';
@@ -1,5 +1,5 @@
1
- import { Tree } from './index';
2
1
  import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Tree } from './index';
3
3
 
4
4
  declare const _default: DefineComponent<ExtractPropTypes<{
5
5
  modelValue: {
@@ -1,5 +1,5 @@
1
- import { Tree } from './index';
2
1
  import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Tree } from './index';
3
3
 
4
4
  declare const _default: DefineComponent<ExtractPropTypes<{
5
5
  modelValue: PropType<Tree[]>;
@@ -1,5 +1,5 @@
1
- import { IColumns } from './type';
2
1
  import { ICustomData } from '../../../types';
2
+ import { IColumns } from './type';
3
3
 
4
4
  type Props = Partial<Record<'project_code' | 'url' | 'reportId' | 'sysId', string>> & {
5
5
  canche?: any;
@@ -1,5 +1,5 @@
1
- import { Ref } from 'vue';
2
1
  import { POPUP_TYPE, FIELD_TYPE, FIELD_WAY, FIELD_RATE, FIELD_GROUP, SEGMENTED, NODE_RELATION, FIELD_SORT, FIELD_SUM, FIELD_SHOW } from './type';
2
+ import { Ref } from 'vue';
3
3
 
4
4
  /** 字段类型 */
5
5
  export declare const fieldTypeMap: {
@@ -1,16 +1,16 @@
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 { showPopupCount } from '../hooks/onKeyStroke';
6
- import { getItemConfig as getConfigData, getBatchConfig, getTableSpecialType as resetColumn } from '../components/business/bcBox/utils';
7
- import { getLoadData, getFormData, configUnidId, isShowItem, TableInstance, IFormInstance, TableKeyEventParams as ITableKeyEvent, TableCurrentRow as ITableCurrentRow, tableAsyncFun } from '../components/business/bcTable/utils/parseTable';
8
- import { HsMessage, HsMessageBox, HsNotification } from '../utils';
9
- import { ElTree as HsTree, ElConfigProvider as HsConfigProvider, ElLoading as HsLoading } from 'element-plus';
10
- import { VxeUI } from 'vxe-pc-ui';
11
- import { default as zhCn } from 'element-plus/es/locale/lang/zh-cn';
12
- import { default as component } from '../components/component';
13
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, ElLoading as HsLoading } from 'element-plus';
6
+ import { HsMessage, HsMessageBox, HsNotification } from '../utils';
7
+ import { getLoadData, getFormData, configUnidId, isShowItem, TableInstance, IFormInstance, TableKeyEventParams as ITableKeyEvent, TableCurrentRow as ITableCurrentRow, tableAsyncFun } from '../components/business/bcTable/utils/parseTable';
8
+ import { getItemConfig as getConfigData, getBatchConfig, getTableSpecialType as resetColumn } from '../components/business/bcBox/utils';
9
+ import { showPopupCount } from '../hooks/onKeyStroke';
10
+ import { directive } from '../directive';
11
+ import { ICustomData as ITable, IFormData as IForm } from '../types';
12
+ import { IBreadcrumb } from '../components/business/bcBreadcrumb';
13
+ import { Router } from 'vue-router';
14
14
 
15
15
  import * as Hooxs from '../hooks';
16
16
  import * as Utils from '../utils';
@@ -1,10 +1,10 @@
1
- import { IFormData } from './form';
2
- import { ButtonAttr } from './formItem/button';
3
- import { Input, InputGroup, InputNumber, Autocomplete, Selelct, TreeSelect, Checkbox, Radio } from '.';
4
- import { FormProps, FormRules } from 'element-plus';
5
- import { components } from '../components/component';
6
- import { default as ComponentAttr } from './components';
7
1
  import { VxePagerProps, VxeTableProps, VxeColumnProps, VxeTableDefines } 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
+ import { IFormData } from './form';
8
8
 
9
9
  export declare namespace ICustomData {
10
10
  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,7 +1,7 @@
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>;
@@ -13,10 +13,10 @@ declare const IsIdNumber: (val: string) => {
13
13
  pass: boolean;
14
14
  };
15
15
  declare const _default: {
16
- percentFormat: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
17
- dateFormatYMD: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
18
- dateFormatYMDHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
19
- dateFormatHMS: (row: EmptyArrayType<any>, column: number, cellValue: string) => string;
16
+ percentFormat: (row: EmptyArrayType, column: number, cellValue: string) => string;
17
+ dateFormatYMD: (row: EmptyArrayType, column: number, cellValue: string) => string;
18
+ dateFormatYMDHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
19
+ dateFormatHMS: (row: EmptyArrayType, column: number, cellValue: string) => string;
20
20
  scaleFormat: (value?: string, scale?: number) => string;
21
21
  scale2Format: (value?: string) => string;
22
22
  copyText: (text: string) => Promise<unknown>;
@@ -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;
@@ -2,6 +2,6 @@ import { AxiosInstance, AxiosInterceptorManager, InternalAxiosRequestConfig, Axi
2
2
  declare const request: AxiosInstance;
3
3
  export default request;
4
4
  export declare const axiosInterceptors: {
5
- request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
6
- response: AxiosInterceptorManager<AxiosResponse<any, any>>;
5
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
6
+ response: AxiosInterceptorManager<AxiosResponse>;
7
7
  };
@@ -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,12 +1,12 @@
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
6
  export declare let NEXT_NAME: Ref<any, any>;
7
7
  export declare let IS_DEV: Ref<any, any>;
8
8
  /** 子项目当前路由信息 */
9
- export declare let CurrentRoute: Ref< Ref<RouteLocationNormalizedLoaded, RouteLocationNormalizedLoaded> | undefined, Ref<RouteLocationNormalizedLoaded, RouteLocationNormalizedLoaded> | undefined>;
9
+ export declare let CurrentRoute: Ref< Ref<RouteLocationNormalizedLoadedGeneric, RouteLocationNormalizedLoadedGeneric> | undefined, Ref<RouteLocationNormalizedLoadedGeneric, RouteLocationNormalizedLoadedGeneric> | undefined>;
10
10
  export declare let CurrentRouter: Ref<Router | undefined, Router | undefined>;
11
11
  /** 自定义加密/解密函数 */
12
12
  export declare const encryptionTool: {
@@ -23,7 +23,7 @@ export declare const encryptionTool: {
23
23
  export declare const Local: {
24
24
  setKey(key: string): string;
25
25
  set<T>(key: string, val: T): void;
26
- get<T_1 = any>(key: string): T_1 | null;
26
+ get<T = any>(key: string): T | null;
27
27
  remove(key: string): void;
28
28
  clear(): void;
29
29
  };
@@ -1,5 +1,5 @@
1
- import { IFormInstance } from '../components/business/bcTable/utils/parseTable';
2
1
  import { default as ICustomData } from '../types/customData';
2
+ import { IFormInstance } from '../components/business/bcTable/utils/parseTable';
3
3
 
4
4
  /** 属性结构数据展平一维数据 */
5
5
  export declare function treeToList<T extends Record<'children', T[]>>(menus: T[]): T[];
@@ -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_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-ziU8QCzq.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
- import { openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, vShow, createCommentVNode, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
2
- import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-DOiOwYLl.mjs";
3
- import { _ as _export_sfc, aa as systemStore, d as ElMessage, ad as useFileController } from "./index-BWo8ePPl.mjs";
1
+ import { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
2
+ import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-DOiOwYLl.mjs";
3
+ import { _ as _export_sfc, aa as systemStore, e as ElMessage, ad as useFileController } from "./index-Bypkd7-1.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-8e42ffcf"]]);
1719
1769
  const _hoisted_1 = { class: "h-full" };
1720
1770
  const _hoisted_2 = { class: "avatar-upload-preview" };
1721
1771
  const _hoisted_3 = ["src"];
@@ -1898,7 +1948,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1898
1948
  _cache[6] || (_cache[6] = createTextVNode(" 选择 ")),
1899
1949
  createVNode(_component_bc_icon, { name: "ele-UploadFilled" })
1900
1950
  ]),
1901
- _: 1
1951
+ _: 1,
1952
+ __: [6]
1902
1953
  })
1903
1954
  ]),
1904
1955
  _: 1
@@ -1970,7 +2021,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1970
2021
  default: withCtx(() => _cache[7] || (_cache[7] = [
1971
2022
  createTextVNode("重 置")
1972
2023
  ])),
1973
- _: 1
2024
+ _: 1,
2025
+ __: [7]
1974
2026
  })
1975
2027
  ]),
1976
2028
  _: 1
@@ -1988,7 +2040,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1988
2040
  default: withCtx(() => _cache[8] || (_cache[8] = [
1989
2041
  createTextVNode("提 交")
1990
2042
  ])),
1991
- _: 1
2043
+ _: 1,
2044
+ __: [8]
1992
2045
  })
1993
2046
  ]),
1994
2047
  _: 1
@@ -2000,7 +2053,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2000
2053
  };
2001
2054
  }
2002
2055
  });
2003
- const uploadAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-99513ec9"]]);
2056
+ const uploadAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e10f7e4"]]);
2004
2057
  export {
2005
2058
  uploadAvatar as default
2006
2059
  };