hs-admin-ui 14.6.2 → 14.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/{401-CuwU5yBo.mjs → 401-CsEKx_WX.mjs} +1 -1
  2. package/dist/{401-DgkCrPpD.js → 401-DaQqh-uH.js} +1 -1
  3. package/dist/{404-Br2SiMtO.js → 404-BUoLpSbH.js} +1 -1
  4. package/dist/{404-Br2SiMtO.js.gz → 404-BUoLpSbH.js.gz} +0 -0
  5. package/dist/{404-DTUyUr6s.mjs → 404-BiYgdi7K.mjs} +1 -1
  6. package/dist/{404-DTUyUr6s.mjs.gz → 404-BiYgdi7K.mjs.gz} +0 -0
  7. package/dist/{account-CXnu6mKb.mjs → account-D8oUOMlE.mjs} +1 -1
  8. package/dist/{account-BmICN6sJ.js → account-DmGFSuSE.js} +1 -1
  9. package/dist/{aside-ZeDwJabp.mjs → aside-DooIbDE2.mjs} +3 -3
  10. package/dist/{aside-DuGdIdtH.js → aside-ylO5-fQY.js} +1 -1
  11. package/dist/{auth_test-DH4rtLrG.mjs → auth_test-C7gLhlPX.mjs} +1 -1
  12. package/dist/{auth_test-D3zDdVdT.js → auth_test-DEYPGr4W.js} +1 -1
  13. package/dist/baseFormConfig-CqPtzFMu.js +1 -0
  14. package/dist/{baseFormConfig-BJYEh9i_.mjs → baseFormConfig-m1siwKk0.mjs} +9 -1
  15. package/dist/baseFormConfig-m1siwKk0.mjs.gz +0 -0
  16. package/dist/{baseTableConfig-BzEze0YI.mjs → baseTableConfig-D3Fl854W.mjs} +1 -1
  17. package/dist/baseTableConfig-D3Fl854W.mjs.gz +0 -0
  18. package/dist/{baseTableConfig-opMh1NmN.js → baseTableConfig-DEMrVq0R.js} +1 -1
  19. package/dist/baseTableConfig-DEMrVq0R.js.gz +0 -0
  20. package/dist/{bcFormConfig-et4-vZ0B.mjs → bcFormConfig-CzV9X7KN.mjs} +1 -1
  21. package/dist/{bcFormConfig-C1Nb4T6k.js → bcFormConfig-D6d81ZN0.js} +1 -1
  22. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-COLTm4BK.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DkXIYE73.js} +1 -1
  23. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CwwWFvB0.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-pFv15QnI.mjs} +2 -2
  24. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DCt7M2kp.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-C5tEVPhW.js} +1 -1
  25. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-CcGYiLiX.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-Dp2tqQ_e.mjs} +2 -2
  26. package/dist/{btnIndex-DyDfQOAM.js → btnIndex-DWWUplIB.js} +1 -1
  27. package/dist/{btnIndex-BvfCzbC3.mjs → btnIndex-DuFSk9X1.mjs} +3 -3
  28. package/dist/btnIndex-DuFSk9X1.mjs.gz +0 -0
  29. package/dist/{classic-DvgZ0MFu.js → classic-Cie2ZMyR.js} +1 -1
  30. package/dist/{classic-AlQjxyhX.mjs → classic-Dr3y2B1u.mjs} +5 -5
  31. package/dist/{cloneConfigDialog-CTkSTEH0.js → cloneConfigDialog-DYL0d9O6.js} +1 -1
  32. package/dist/cloneConfigDialog-DYL0d9O6.js.gz +0 -0
  33. package/dist/{cloneConfigDialog-IYwK6au-.mjs → cloneConfigDialog-i-k6Ogeb.mjs} +3 -3
  34. package/dist/cloneConfigDialog-i-k6Ogeb.mjs.gz +0 -0
  35. package/dist/{columns-CAtBzJTV.js → columns-DSBgZTjZ.js} +1 -1
  36. package/dist/{columns-DZWM9-nG.mjs → columns-brfMIIRM.mjs} +5 -5
  37. package/dist/{columnsAside-Dq-z38Db.js → columnsAside-BP6f-rut.js} +1 -1
  38. package/dist/{columnsAside-bMOoUAr0.mjs → columnsAside-Bch_YYBs.mjs} +1 -1
  39. package/dist/{contextmenu-sGj7TlTW.js → contextmenu-3TXoLmCL.js} +1 -1
  40. package/dist/{contextmenu-BDJiV1I-.mjs → contextmenu-DLvwjZcg.mjs} +1 -1
  41. package/dist/{contextmenu-X4Qwy2f5.js → contextmenu-Dct58UCV.js} +1 -1
  42. package/dist/{contextmenu-DW_jiFZ7.mjs → contextmenu-kFW349vI.mjs} +1 -1
  43. package/dist/{copyMenuConfig--7_rzRxO.js → copyMenuConfig-BVqA-ml3.js} +1 -1
  44. package/dist/{copyMenuConfig-DmEZe5T2.mjs → copyMenuConfig-C0E5rb_D.mjs} +1 -1
  45. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-H3kXJnX-.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BYq8F-Ns.mjs} +2 -2
  46. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-Dm_Wm1VD.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-D7OL_tZ3.js} +1 -1
  47. package/dist/{copySystem-D63lw4FH.js → copySystem-B64HpPYW.js} +1 -1
  48. package/dist/{copySystem-Cl7Xvnq0.mjs → copySystem-RjiptQZg.mjs} +1 -1
  49. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DhGhX1Cq.js → copySystem.vue_vue_type_script_setup_true_lang-CVeEogav.js} +1 -1
  50. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-6bMkxl22.mjs → copySystem.vue_vue_type_script_setup_true_lang-DpvfCLmd.mjs} +2 -2
  51. package/dist/{defaults-DIZevl3i.mjs → defaults-CQP4BrBH.mjs} +4 -4
  52. package/dist/{defaults-BD4M7ZuA.js → defaults-DX5IuMrh.js} +1 -1
  53. package/dist/{dialog-CS9eZZmL.js → dialog-BWWNGp1A.js} +1 -1
  54. package/dist/{dialog-DyI_9Owb.mjs → dialog-CjgwcesB.mjs} +1 -1
  55. package/dist/{dialog-DxfbzAlM.js → dialog-CsNjqU2p.js} +1 -1
  56. package/dist/{dialog-DIePdO3p.mjs → dialog-DCMW_CDh.mjs} +1 -1
  57. package/dist/{dialog-D_NJ7CAS.js → dialog-DYziF2c4.js} +1 -1
  58. package/dist/{dialog-Bwvkhv1p.mjs → dialog-lrc-X4x3.mjs} +1 -1
  59. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-7icZOyG0.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Bc6ovmbV.js} +1 -1
  60. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Cd4bHVLm.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-GIVXOPn8.mjs} +3 -3
  61. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Tz_XNS14.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bjv6Tf3O.mjs} +2 -2
  62. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bjv6Tf3O.mjs.gz +0 -0
  63. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-RFFDpccL.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dz20aZqG.js} +1 -1
  64. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dz20aZqG.js.gz +0 -0
  65. package/dist/{dictDialog-fxvAREfD.mjs → dictDialog-BILBH0V7.mjs} +1 -1
  66. package/dist/{dictDialog-CV3w_sJ-.js → dictDialog-BqTBQfS1.js} +1 -1
  67. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DY8yO8h1.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CBut3SLB.js} +1 -1
  68. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BWHk4ocs.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CIXzAeu-.mjs} +2 -2
  69. package/dist/{dictItemDialog-5Bf3lrdv.js → dictItemDialog-B4kO9iIW.js} +1 -1
  70. package/dist/{dictItemDialog-2vcWn1NX.mjs → dictItemDialog-pYXaXGLL.mjs} +1 -1
  71. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CtIWt9dd.js → dictItemDialog.vue_vue_type_script_setup_true_lang-Be9wvnt1.js} +1 -1
  72. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-C7dwNSVg.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BjA7-QJP.mjs} +2 -2
  73. package/dist/{formConfig-g1VWkL8-.js → formConfig-DpGi-uZN.js} +1 -1
  74. package/dist/formConfig-DpGi-uZN.js.gz +0 -0
  75. package/dist/{formConfig-KqWN8BYt.mjs → formConfig-swMbbl7j.mjs} +6 -6
  76. package/dist/formConfig-swMbbl7j.mjs.gz +0 -0
  77. package/dist/{header-DfsWF1GX.mjs → header-GIQFZatH.mjs} +2 -2
  78. package/dist/{header-2146Yurg.js → header-LoXSB1wA.js} +1 -1
  79. package/dist/{horizontal-NEhSIt6J.js → horizontal-BzT_zZbz.js} +1 -1
  80. package/dist/{horizontal-CDflfWar.mjs → horizontal-D2xwOYwU.mjs} +2 -2
  81. package/dist/{hsAttrBtn-B8x8AzTu.mjs → hsAttrBtn-DzatXaip.mjs} +1 -1
  82. package/dist/{hsAttrBtn-CBQ-w2Jy.js → hsAttrBtn-I1tnHT-U.js} +1 -1
  83. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-ClZaEQnc.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-DBzkiL22.mjs} +4 -4
  84. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Dz_Z6rw2.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-DtY03jdr.js} +1 -1
  85. package/dist/{hsAttrForm-MSH4kpW5.mjs → hsAttrForm-Cn5Tx9eI.mjs} +1 -1
  86. package/dist/{hsAttrForm-B5ahgRTu.js → hsAttrForm-CvTXLIfB.js} +1 -1
  87. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-VMHy2zQP.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-BUsvv_Dz.mjs} +4 -4
  88. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BUsvv_Dz.mjs.gz +0 -0
  89. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B1-qx7iJ.js → hsAttrForm.vue_vue_type_script_setup_true_lang-DQw6tCFP.js} +1 -1
  90. package/dist/{hsBtnConfigList-DkKg5Pzt.js → hsBtnConfigList-BNu6Pc1B.js} +1 -1
  91. package/dist/{hsBtnConfigList-BZ1mHH9g.mjs → hsBtnConfigList-U1SJFZ6s.mjs} +1 -1
  92. package/dist/{hsBtnItemConfig-DYWcJzfO.mjs → hsBtnItemConfig-C5kiM2US.mjs} +1 -1
  93. package/dist/{hsBtnItemConfig-CQUwhjVN.js → hsBtnItemConfig-DyZzcuQy.js} +1 -1
  94. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Loa8Cnqm.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B6Xbsh2W.mjs} +3 -3
  95. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DsUWjI1p.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CtdKbF5u.js} +1 -1
  96. package/dist/{hsBtnPanel-CAJGG24N.js → hsBtnPanel-B68gu39L.js} +1 -1
  97. package/dist/{hsBtnPanel-Cq-Da34i.mjs → hsBtnPanel-CxOx1OqT.mjs} +1 -1
  98. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DfnAm6KN.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BMYBWDDN.mjs} +4 -4
  99. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C1iuWg7l.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BVJZimvK.js} +1 -1
  100. package/dist/{hsExpand-clbWGc8K.js → hsExpand-Ch6Hy3uY.js} +1 -1
  101. package/dist/{hsExpand-Brh_2RNn.mjs → hsExpand-guOFFGmb.mjs} +1 -1
  102. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-W5iKw_jf.js → hsExpand.vue_vue_type_script_setup_true_lang-COhZgWoF.js} +1 -1
  103. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-ejpznNjr.mjs → hsExpand.vue_vue_type_script_setup_true_lang-DrqKOb67.mjs} +1 -1
  104. package/dist/{hsFormConfig-DqZXDiKv.js → hsFormConfig-BurChvES.js} +1 -1
  105. package/dist/{hsFormConfig-BxIOJcbS.mjs → hsFormConfig-Dr_l9mQt.mjs} +1 -1
  106. package/dist/{hsFormConfigList-C3kNNMNl.js → hsFormConfigList-CKIAKBtw.js} +1 -1
  107. package/dist/{hsFormConfigList-DNwgulcq.mjs → hsFormConfigList-lC7BarFm.mjs} +2 -2
  108. package/dist/hsFormConfigList-lC7BarFm.mjs.gz +0 -0
  109. package/dist/{hsFormPanel-BHxg1LSH.mjs → hsFormPanel-B2wm0-L-.mjs} +6 -6
  110. package/dist/hsFormPanel-B2wm0-L-.mjs.gz +0 -0
  111. package/dist/{hsFormPanel-BJCWE0JR.js → hsFormPanel-Diz_dx2u.js} +1 -1
  112. package/dist/{hsFormParse-CoMGe53R.js → hsFormParse-DL0lSilW.js} +1 -1
  113. package/dist/{hsFormParse-DY7XxsFa.mjs → hsFormParse-DVM5Kq2I.mjs} +1 -1
  114. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-C2Y6TkYD.js → hsFormParse.vue_vue_type_script_setup_true_lang-BLrAOwWC.js} +1 -1
  115. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-T0rTX39f.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-CpNsihKV.mjs} +3 -3
  116. package/dist/{hsPanelItem-DtTDjhvk.mjs → hsPanelItem-BtAnxejS.mjs} +1 -1
  117. package/dist/{hsPanelItem-BQNnWWrn.js → hsPanelItem-C45hUoSS.js} +1 -1
  118. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DlgEFnZ9.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BfMKJPyH.mjs} +1 -1
  119. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BPR0UMBt.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D6QDK53h.js} +1 -1
  120. package/dist/{index copy-ZTVy9-_O.mjs → index copy-BkE3_qz5.mjs } +1 -1
  121. package/dist/{index copy-gA8cGX_t.js → index copy-Cn7j3hsP.js } +1 -1
  122. package/dist/{index copy-Udit6awd.js → index copy-CtQRhzJZ.js } +1 -1
  123. package/dist/index copy-CtQRhzJZ.js.gz +0 -0
  124. package/dist/{index copy-B2zCwCrb.mjs → index copy-U890te4G.mjs } +1 -1
  125. package/dist/index copy-U890te4G.mjs.gz +0 -0
  126. package/dist/{index-BsJj4vHH.js → index-5dL91HWY.js} +1 -1
  127. package/dist/{index-nIeudsA8.mjs → index-8rlvMJlN.mjs} +4 -4
  128. package/dist/index-8rlvMJlN.mjs.gz +0 -0
  129. package/dist/{index-BH9eJLZR.js → index-B03jKDLK.js} +1 -1
  130. package/dist/{index-Ca_HL8Dx.mjs → index-B8ViQ8XC.mjs} +1 -1
  131. package/dist/{index-B4Mah1NY.mjs → index-B8t9HPi1.mjs} +4 -4
  132. package/dist/{index-DwQxyn-u.mjs → index-BBupCMKb.mjs} +2 -2
  133. package/dist/{index-COCcyMb9.mjs → index-BBzqCPYe.mjs} +2 -2
  134. package/dist/index-BBzqCPYe.mjs.gz +0 -0
  135. package/dist/{index-BIGAQSrI.mjs → index-BF7h59gg.mjs} +1 -1
  136. package/dist/{index-FIyEVZLo.mjs → index-BGS5SfZ3.mjs} +1 -1
  137. package/dist/{index-B04zvSdx.mjs → index-BK2u81yY.mjs} +1 -1
  138. package/dist/{index-Dfy0BfnY.mjs → index-BMUfLmSn.mjs} +2 -2
  139. package/dist/{index-Bwr1R67D.js → index-BMYnfek3.js} +1 -1
  140. package/dist/{index-W2JiWWQj.js → index-BQl4oTs9.js} +1 -1
  141. package/dist/{index-jKzTu7IX.mjs → index-BRCQrGiA.mjs} +4 -4
  142. package/dist/{index-D0Zwe7hU.js → index-BWEr-k8P.js} +1 -1
  143. package/dist/{index-Db9RghiW.js → index-BWleIUMS.js} +1 -1
  144. package/dist/{index-BOZy3RpK.mjs → index-BY8KhYW5.mjs} +1 -1
  145. package/dist/{index-CRsNbi4G.mjs → index-BYmu7Fv-.mjs} +1 -1
  146. package/dist/{index-6lmDEVCA.mjs → index-BfCatN0X.mjs} +128 -151
  147. package/dist/index-BfCatN0X.mjs.gz +0 -0
  148. package/dist/{index-CyxsPQgW.js → index-BgzU7USc.js} +8 -8
  149. package/dist/index-BgzU7USc.js.gz +0 -0
  150. package/dist/{index-Dsx4YN5o.mjs → index-Bk2w_SDQ.mjs} +1 -1
  151. package/dist/{index-BtB24xrv.js → index-BlEP_WLz.js} +1 -1
  152. package/dist/{index-BrZ1h25a.mjs → index-BqB0xLIg.mjs} +1 -1
  153. package/dist/{index-Bg5IdDOL.js → index-BqYCildW.js} +1 -1
  154. package/dist/{index-_oXVVA9Q.js → index-BtK3qGoF.js} +1 -1
  155. package/dist/index-BtK3qGoF.js.gz +0 -0
  156. package/dist/{index-BNSncwwp.mjs → index-Bu3rvJGC.mjs} +5 -5
  157. package/dist/{index-BMxqdleA.js → index-BuqhKNMW.js} +1 -1
  158. package/dist/{index-bv4Iv_9O.js → index-BwXTHHLh.js} +1 -1
  159. package/dist/{index-BJK8FwZU.js → index-C-CxGjWN.js} +1 -1
  160. package/dist/{index-BC4EGTDE.js → index-C0NrVeDw.js} +1 -1
  161. package/dist/{index-DVki0fye.mjs → index-C3Dx5vWj.mjs} +1 -1
  162. package/dist/{index-BrDM7cdr.mjs → index-C5lh3-lb.mjs} +1 -1
  163. package/dist/{index-Hh8pWdFn.js → index-C7te57n6.js} +1 -1
  164. package/dist/{index-DrCmGK-8.mjs → index-CCBJzTrq.mjs} +1 -1
  165. package/dist/{index-B_rZHOGO.mjs → index-CEpDKSs6.mjs} +4 -4
  166. package/dist/index-CEpDKSs6.mjs.gz +0 -0
  167. package/dist/{index-0fNpTmaY.js → index-CHqaYvmT.js} +1 -1
  168. package/dist/{index-SAbgzuR0.mjs → index-CLYMx73Q.mjs} +1 -1
  169. package/dist/{index-bMPCAAH2.js → index-CQ3tUon8.js} +1 -1
  170. package/dist/{index-WKq86TIS.js → index-CQkrTO8m.js} +1 -1
  171. package/dist/{index-D0i8zL54.js → index-CSwknuAj.js} +1 -1
  172. package/dist/{index-BK5LAzrK.js → index-CXud2Ocv.js} +1 -1
  173. package/dist/{index-BlES1YUm.js → index-CZ_ZghbN.js} +1 -1
  174. package/dist/index-CZ_ZghbN.js.gz +0 -0
  175. package/dist/{index-D8Oh1TZS.js → index-C_WHHK2G.js} +1 -1
  176. package/dist/{index-8SOJBP0Q.js → index-C__RZxPV.js} +1 -1
  177. package/dist/{index-CkUQAgsB.js → index-Ca8OPD6L.js} +1 -1
  178. package/dist/{index-C8jeYwhc.mjs → index-CdIUWD8M.mjs} +4 -4
  179. package/dist/{index-QDDKFqjt.js → index-CgdR6nKc.js} +1 -1
  180. package/dist/{index-Bj59XKd0.mjs → index-CnBMAxOM.mjs} +3 -3
  181. package/dist/{index-BK8U4JlX.mjs → index-CuTJUa1D.mjs} +1 -1
  182. package/dist/{index-DQqQ3ox5.mjs → index-Cy1osDdh.mjs} +1 -1
  183. package/dist/{index-BytI_7oX.mjs → index-CymE8BY5.mjs} +3 -3
  184. package/dist/{index-CN7eie0E.mjs → index-D62c_ZUI.mjs} +5 -5
  185. package/dist/{index-DuWXyXkK.js → index-D9Aaz_Zv.js} +1 -1
  186. package/dist/{index-BAyQnZ7n.js → index-DBy_ZKEN.js} +1 -1
  187. package/dist/{index-ChZz6-YA.mjs → index-DLgy6XZq.mjs} +1 -1
  188. package/dist/{index-CAf7ojk9.js → index-DMSGBMD7.js} +1 -1
  189. package/dist/{index-DaFCuj8A.mjs → index-DOb7BYKX.mjs} +1 -1
  190. package/dist/{index-Cp8RwkRT.js → index-DbPGlZo9.js} +1 -1
  191. package/dist/{index-j3aq8JLI.js → index-DbrCM30f.js} +1 -1
  192. package/dist/{index-Dk46LAX4.mjs → index-Dh84VAE0.mjs} +1 -1
  193. package/dist/{index-Di1o3nOy.js → index-DlBtOPIP.js} +1 -1
  194. package/dist/{index-BTvNb7-M.js → index-DlZ71M2x.js} +1 -1
  195. package/dist/{index-Dc5hSPQE.mjs → index-DnnLp-yB.mjs} +1 -1
  196. package/dist/{index-DBO-38mR.js → index-DwmdSqmk.js} +1 -1
  197. package/dist/{index-DyZ7IQL-.mjs → index-KKu2EYo8.mjs} +3 -3
  198. package/dist/{index-DyDBo9Iu.mjs → index-VJhf5CM-.mjs} +1 -1
  199. package/dist/{index-BnGSjeSl.mjs → index-aOUnMt1i.mjs} +4 -4
  200. package/dist/{index-rgDXfAQ9.js → index-bV6K9fGr.js} +1 -1
  201. package/dist/{index-BOfPpoB5.mjs → index-dHV1aOQu.mjs} +10 -10
  202. package/dist/index-dHV1aOQu.mjs.gz +0 -0
  203. package/dist/{index-CdPyH4mr.js → index-edR7TmCa.js} +1 -1
  204. package/dist/{index-DNO4K4eR.mjs → index-gaIuitJJ.mjs} +1 -1
  205. package/dist/{index-CpF5W6o_.mjs → index-sCU67A8T.mjs} +1 -1
  206. package/dist/{index-BmpEjPJR.js → index-t-0l-HSV.js} +1 -1
  207. package/dist/{index-ChN6fiPx.mjs → index-xZxjZYxA.mjs} +3 -3
  208. package/dist/index-yqDHMaHf.js +1 -0
  209. package/dist/{index-DJlkT8hH.js → index-z5B8IOjb.js} +1 -1
  210. package/dist/index.js +1 -1
  211. package/dist/index.mjs +1 -1
  212. package/dist/{index.vue_vue_type_script_setup_true_lang-D9HvQDwL.mjs → index.vue_vue_type_script_setup_true_lang-B7korgeV.mjs} +3 -3
  213. package/dist/{index.vue_vue_type_script_setup_true_lang-kmhc2TUA.js → index.vue_vue_type_script_setup_true_lang-BKoK0pPo.js} +1 -1
  214. package/dist/{index.vue_vue_type_script_setup_true_lang-CPV67Olf.js → index.vue_vue_type_script_setup_true_lang-CFaZehUw.js} +1 -1
  215. package/dist/{index.vue_vue_type_script_setup_true_lang-DmK-yW8V.mjs → index.vue_vue_type_script_setup_true_lang-CU_FgYwF.mjs} +1 -1
  216. package/dist/{index.vue_vue_type_script_setup_true_lang-BQ5qxi_v.js → index.vue_vue_type_script_setup_true_lang-CzEMx8GF.js} +1 -1
  217. package/dist/{index.vue_vue_type_script_setup_true_lang-Dv_5hAts.mjs → index.vue_vue_type_script_setup_true_lang-D9PY5mPX.mjs} +6 -6
  218. package/dist/{index.vue_vue_type_script_setup_true_lang-D7O-FelY.js → index.vue_vue_type_script_setup_true_lang-jF7Jgycn.js} +1 -1
  219. package/dist/{index.vue_vue_type_script_setup_true_lang-CHDkp373.mjs → index.vue_vue_type_script_setup_true_lang-wFgl3rVs.mjs} +4 -4
  220. package/dist/index.vue_vue_type_script_setup_true_lang-wFgl3rVs.mjs.gz +0 -0
  221. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-DLW4HgEh.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-B_tTl7i3.js} +1 -1
  222. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-kjInCK8F.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CS0Vhpyt.mjs} +2 -2
  223. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CS0Vhpyt.mjs.gz +0 -0
  224. package/dist/{link-WdKv5VFK.mjs → link-Bv1_JXTk.mjs} +1 -1
  225. package/dist/{link-BcgmA7I5.js → link-CxgJ5I3h.js} +1 -1
  226. package/dist/{list-BeTs49ps.js → list-BbwZgX-0.js} +1 -1
  227. package/dist/{list-Cv788I_1.mjs → list-RRI8BmNG.mjs} +1 -1
  228. package/dist/{main-Dq2iH_v2.js → main-C1NJe4rt.js} +1 -1
  229. package/dist/{main-BzWoBmJA.mjs → main-CAq8MT3l.mjs} +3 -3
  230. package/dist/{mobile-qvruBN5G.js → mobile-BPxG7OOX.js} +1 -1
  231. package/dist/{mobile-C6V_Us4A.mjs → mobile-CADItp-j.mjs} +1 -1
  232. package/dist/{parent-CG6fdhU2.mjs → parent-Ba1Pli9A.mjs} +1 -1
  233. package/dist/{parent-BGQKM03O.js → parent-mIChCBQa.js} +1 -1
  234. package/dist/{popup-BNqyEUIp.mjs → popup-BmSV0_R_.mjs} +1 -1
  235. package/dist/{popup-DVcSQ4bV.js → popup-CvsJb7Zv.js} +1 -1
  236. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-B2QHTrY8.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BJQavfTT.js} +1 -1
  237. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BRD9cw-X.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DyWX-j6P.mjs} +1 -1
  238. package/dist/{roleItem-D70Cvv4w.mjs → roleItem-D4CLjprX.mjs} +1 -1
  239. package/dist/{roleItem-4IG-oNDr.js → roleItem-nsGsBRhA.js} +1 -1
  240. package/dist/{saveForm-DWV5ljG3.js → saveForm-BmDNCLlQ.js} +1 -1
  241. package/dist/{saveForm-sqKuT8Vy.mjs → saveForm-D1Q-H1lZ.mjs} +3 -3
  242. package/dist/{scan-rlEOVOhq.js → scan-BLDpIZMS.js} +1 -1
  243. package/dist/scan-BLDpIZMS.js.gz +0 -0
  244. package/dist/{scan-Bu5-ISW5.mjs → scan-Bd8YeRNo.mjs} +1 -1
  245. package/dist/scan-Bd8YeRNo.mjs.gz +0 -0
  246. package/dist/{search-CA7sUM8u.mjs → search-B2rLt_pp.mjs} +1 -1
  247. package/dist/{search-B6iVlaFr.js → search-BJ3wodLk.js} +1 -1
  248. package/dist/{selectConfig-BPqlBTwS.mjs → selectConfig-BeUnCKiR.mjs} +1 -1
  249. package/dist/selectConfig-BeUnCKiR.mjs.gz +0 -0
  250. package/dist/{selectConfig-VYDJ8hYX.js → selectConfig-OrixNkXj.js} +1 -1
  251. package/dist/style.css +1 -1
  252. package/dist/style.css.gz +0 -0
  253. package/dist/{subItem-CERHJlKY.js → subItem-BqRUzjtT.js} +1 -1
  254. package/dist/{subItem-BEG5sIr9.mjs → subItem-CWr158_s.mjs} +1 -1
  255. package/dist/{tagsView-B9HtfSa6.js → tagsView-B2sz-G50.js} +2 -2
  256. package/dist/tagsView-B2sz-G50.js.gz +0 -0
  257. package/dist/{tagsView-BG4HwFEA.mjs → tagsView-BrnRl_a8.mjs} +2 -2
  258. package/dist/tagsView-BrnRl_a8.mjs.gz +0 -0
  259. package/dist/{transverse-Chm8C0Aj.js → transverse-Bpni4lnT.js} +1 -1
  260. package/dist/{transverse-B7cD_Kov.mjs → transverse-l39ZI0Ba.mjs} +3 -3
  261. package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +8 -5
  262. package/dist/types/components/business/bcTable/utils/useTable.d.ts +4 -0
  263. package/dist/types/types/customData.d.ts +2 -0
  264. package/dist/{uploadAvatar-CpIOEJky.mjs → uploadAvatar-Bh1so_GW.mjs} +1 -1
  265. package/dist/uploadAvatar-Bh1so_GW.mjs.gz +0 -0
  266. package/dist/{uploadAvatar-BisbsUnT.js → uploadAvatar-Bs3NYoNb.js} +1 -1
  267. package/dist/{uploadAvatar-BisbsUnT.js.gz → uploadAvatar-Bs3NYoNb.js.gz} +0 -0
  268. package/dist/{user-bUwH2GdI.js → user-BQeRMQfn.js} +1 -1
  269. package/dist/{user-BBPp9uAq.mjs → user-DnEJva9z.mjs} +3 -3
  270. package/dist/{userNews-B7FIDMtL.mjs → userNews-BNsBE1DN.mjs} +1 -1
  271. package/dist/{userNews-eU5Ma4dW.js → userNews-DdnFuA0C.js} +1 -1
  272. package/dist/{userSelect-C2W6ETz-.mjs → userSelect-2P_7g0L1.mjs} +1 -1
  273. package/dist/{userSelect-CFo-rctM.js → userSelect-DCYDZXV1.js} +1 -1
  274. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-1Ss5dAt8.mjs → userSelect.vue_vue_type_script_setup_true_lang-BHTab9Ys.mjs} +1 -1
  275. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Ta2B829l.js → userSelect.vue_vue_type_script_setup_true_lang-qDzY8Dj6.js} +1 -1
  276. package/dist/{vertical-gBuP841T.mjs → vertical-B78h2x26.mjs} +2 -2
  277. package/dist/{vertical-DrcC-hzL.js → vertical-BsTqSidp.js} +1 -1
  278. package/package.json +1 -1
  279. package/dist/baseFormConfig-BJYEh9i_.mjs.gz +0 -0
  280. package/dist/baseFormConfig-CXQWneju.js +0 -1
  281. package/dist/baseTableConfig-BzEze0YI.mjs.gz +0 -0
  282. package/dist/baseTableConfig-opMh1NmN.js.gz +0 -0
  283. package/dist/btnIndex-BvfCzbC3.mjs.gz +0 -0
  284. package/dist/cloneConfigDialog-CTkSTEH0.js.gz +0 -0
  285. package/dist/cloneConfigDialog-IYwK6au-.mjs.gz +0 -0
  286. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-RFFDpccL.js.gz +0 -0
  287. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Tz_XNS14.mjs.gz +0 -0
  288. package/dist/formConfig-KqWN8BYt.mjs.gz +0 -0
  289. package/dist/formConfig-g1VWkL8-.js.gz +0 -0
  290. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-VMHy2zQP.mjs.gz +0 -0
  291. package/dist/hsFormConfigList-DNwgulcq.mjs.gz +0 -0
  292. package/dist/hsFormPanel-BHxg1LSH.mjs.gz +0 -0
  293. package/dist/index copy-B2zCwCrb.mjs.gz +0 -0
  294. package/dist/index copy-Udit6awd.js.gz +0 -0
  295. package/dist/index-6lmDEVCA.mjs.gz +0 -0
  296. package/dist/index-BOfPpoB5.mjs.gz +0 -0
  297. package/dist/index-B_rZHOGO.mjs.gz +0 -0
  298. package/dist/index-BlES1YUm.js.gz +0 -0
  299. package/dist/index-COCcyMb9.mjs.gz +0 -0
  300. package/dist/index-CyxsPQgW.js.gz +0 -0
  301. package/dist/index-DS3ZxhGv.js +0 -1
  302. package/dist/index-_oXVVA9Q.js.gz +0 -0
  303. package/dist/index-nIeudsA8.mjs.gz +0 -0
  304. package/dist/index.vue_vue_type_script_setup_true_lang-CHDkp373.mjs.gz +0 -0
  305. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-kjInCK8F.mjs.gz +0 -0
  306. package/dist/scan-Bu5-ISW5.mjs.gz +0 -0
  307. package/dist/scan-rlEOVOhq.js.gz +0 -0
  308. package/dist/selectConfig-BPqlBTwS.mjs.gz +0 -0
  309. package/dist/tagsView-B9HtfSa6.js.gz +0 -0
  310. package/dist/tagsView-BG4HwFEA.mjs.gz +0 -0
  311. package/dist/uploadAvatar-CpIOEJky.mjs.gz +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-CyxsPQgW.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-BgzU7USc.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-CyxsPQgW.js"),n=require("pinia"),r=["title"],l={class:"layout-navbars-breadcrumb-user-link"},a=["src"],s=e.defineComponent({name:"layoutBreadcrumbUser"}),i=e.defineComponent({...s,setup(s){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-eU5Ma4dW.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-B6iVlaFr.js"))))),u=o.useLoginController(),d=e.ref(),m=e.ref(),f=t.useRouter(),p=o.useUserInfo(),v=o.useThemeConfig(),{userInfos:C}=n.storeToRefs(p),{themeConfig:g}=n.storeToRefs(v),h=e.ref(),w=e.reactive({isScreenfull:!1,disabledSize:"large"}),b=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=g.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),N=()=>{if(!o.screenfull.isEnabled)return o.ElMessage.warning("暂不不支持全屏"),!1;o.screenfull.toggle(),o.screenfull.on("change",(()=>{o.screenfull.isFullscreen?w.isScreenfull=!0:w.isScreenfull=!1}))},y=()=>{var t,o;null==(o=null==(t=e.unref(d).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{o.mittBus.emit("openSetingsDrawer")},V=e=>{"logOut"===e?o.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",u.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{p.logout()})).catch((()=>{})):"cleanCanche"===e?o.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):f.push(e)},_=()=>{h.value.openSearch()};return e.onMounted((async()=>{await o.systemStore.get("themeConfig")&&await(async(e,t)=>{w[t]=await o.systemStore.get("themeConfig").then((t=>o._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,n)=>{const s=e.resolveComponent("ele-Search"),u=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),g=e.resolveComponent("ele-ArrowDown"),S=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:b.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:_},[e.createVNode(u,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},n[0]||(n[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:m},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(u,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(o.ClickOutside),y]]),e.createVNode(v,{ref_key:"userNewsRef",ref:d,"virtual-ref":m.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(i))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:N},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",w.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:w.isScreenfull?"关全屏":"开全屏"},null,10,r)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:V},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>n[1]||(n[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",l,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,a),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(u,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])])),_:1}),e.createVNode(e.unref(c),{ref_key:"searchRef",ref:h},null,512)],4)}}}),c=o._export_sfc(i,[["__scopeId","data-v-7f4c1077"]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-BgzU7USc.js"),n=require("pinia"),r=["title"],l={class:"layout-navbars-breadcrumb-user-link"},a=["src"],s=e.defineComponent({name:"layoutBreadcrumbUser"}),i=e.defineComponent({...s,setup(s){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-DdnFuA0C.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-BJ3wodLk.js"))))),u=o.useLoginController(),d=e.ref(),m=e.ref(),f=t.useRouter(),p=o.useUserInfo(),v=o.useThemeConfig(),{userInfos:C}=n.storeToRefs(p),{themeConfig:g}=n.storeToRefs(v),h=e.ref(),w=e.reactive({isScreenfull:!1,disabledSize:"large"}),b=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=g.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),N=()=>{if(!o.screenfull.isEnabled)return o.ElMessage.warning("暂不不支持全屏"),!1;o.screenfull.toggle(),o.screenfull.on("change",(()=>{o.screenfull.isFullscreen?w.isScreenfull=!0:w.isScreenfull=!1}))},y=()=>{var t,o;null==(o=null==(t=e.unref(d).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{o.mittBus.emit("openSetingsDrawer")},V=e=>{"logOut"===e?o.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",u.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{p.logout()})).catch((()=>{})):"cleanCanche"===e?o.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):f.push(e)},_=()=>{h.value.openSearch()};return e.onMounted((async()=>{await o.systemStore.get("themeConfig")&&await(async(e,t)=>{w[t]=await o.systemStore.get("themeConfig").then((t=>o._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,n)=>{const s=e.resolveComponent("ele-Search"),u=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),g=e.resolveComponent("ele-ArrowDown"),S=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:b.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:_},[e.createVNode(u,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},n[0]||(n[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:m},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(u,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(o.ClickOutside),y]]),e.createVNode(v,{ref_key:"userNewsRef",ref:d,"virtual-ref":m.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(i))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:N},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",w.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:w.isScreenfull?"关全屏":"开全屏"},null,10,r)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:V},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>n[1]||(n[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",l,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,a),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(u,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])])),_:1}),e.createVNode(e.unref(c),{ref_key:"searchRef",ref:h},null,512)],4)}}}),c=o._export_sfc(i,[["__scopeId","data-v-7f4c1077"]]);exports.default=c;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, withCtx, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
2
2
  import { useRouter } from "vue-router";
3
- import { D as useUserInfo, a as useThemeConfig, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-6lmDEVCA.mjs";
3
+ import { D as useUserInfo, a as useThemeConfig, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-BfCatN0X.mjs";
4
4
  import { storeToRefs } from "pinia";
5
5
  const _hoisted_1 = ["title"];
6
6
  const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
@@ -12,10 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  ...__default__,
13
13
  setup(__props) {
14
14
  const UserNews = defineAsyncComponent(
15
- () => import("./userNews-B7FIDMtL.mjs")
15
+ () => import("./userNews-BNsBE1DN.mjs")
16
16
  );
17
17
  const Search = defineAsyncComponent(
18
- () => import("./search-CA7sUM8u.mjs")
18
+ () => import("./search-B2rLt_pp.mjs")
19
19
  );
20
20
  const login = useLoginController();
21
21
  const userNewsRef = ref();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createBlock, Fragment, renderList, toDisplayString } from "vue";
2
- import { _ as _export_sfc } from "./index-6lmDEVCA.mjs";
2
+ import { _ as _export_sfc } from "./index-BfCatN0X.mjs";
3
3
  const _hoisted_1 = { class: "layout-navbars-breadcrumb-user-news" };
4
4
  const _hoisted_2 = { class: "head-box" };
5
5
  const _hoisted_3 = { class: "content-box" };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CyxsPQgW.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l={class:"content-box"},s={class:"content-box-msg"},c={class:"content-box-time"},a=e.defineComponent({name:"layoutBreadcrumbUserNews"}),r=e.defineComponent({...a,setup(t){const a=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),r=()=>{a.newsList=[]},i=()=>{window.open("https://www.baidu.com")};return(t,d)=>{const m=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[d[0]||(d[0]=e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:r},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[a.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",c,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(m,{key:1,description:"暂无通知"}))]),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:i},"前往通知中心")):e.createCommentVNode("",!0)])}}}),i=t._export_sfc(r,[["__scopeId","data-v-8abed4d4"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BgzU7USc.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l={class:"content-box"},s={class:"content-box-msg"},c={class:"content-box-time"},a=e.defineComponent({name:"layoutBreadcrumbUserNews"}),r=e.defineComponent({...a,setup(t){const a=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),r=()=>{a.newsList=[]},i=()=>{window.open("https://www.baidu.com")};return(t,d)=>{const m=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[d[0]||(d[0]=e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:r},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[a.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",c,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(m,{key:1,description:"暂无通知"}))]),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:i},"前往通知中心")):e.createCommentVNode("",!0)])}}}),i=t._export_sfc(r,[["__scopeId","data-v-8abed4d4"]]);exports.default=i;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-1Ss5dAt8.mjs";
1
+ import { _ as _sfc_main } from "./userSelect.vue_vue_type_script_setup_true_lang-BHTab9Ys.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-Ta2B829l.js");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-qDzY8Dj6.js");exports.default=e._sfc_main;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
2
- import { r as request } from "./index-6lmDEVCA.mjs";
2
+ import { r as request } from "./index-BfCatN0X.mjs";
3
3
  const assign = (params, title) => {
4
4
  return Object.assign(params, { other_log_info: { title } });
5
5
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("./index-CyxsPQgW.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1,__:[3]})])])}}});exports._sfc_main=c;
1
+ "use strict";const e=require("vue"),t=require("./index-BgzU7USc.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1,__:[3]})])])}}});exports._sfc_main=c;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, unref, createElementVNode, toDisplayString, createSlots, withModifiers } from "vue";
2
2
  import { useRoute, onBeforeRouteUpdate } from "vue-router";
3
3
  import { storeToRefs } from "pinia";
4
- import { a as useThemeConfig, $ as other } from "./index-6lmDEVCA.mjs";
4
+ import { a as useThemeConfig, $ as other } from "./index-BfCatN0X.mjs";
5
5
  const _hoisted_1 = ["onClick"];
6
6
  const __default__ = defineComponent({
7
7
  name: "navMenuVertical"
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  }
17
17
  },
18
18
  setup(__props) {
19
- const SubItem = defineAsyncComponent(() => import("./subItem-BEG5sIr9.mjs"));
19
+ const SubItem = defineAsyncComponent(() => import("./subItem-CWr158_s.mjs"));
20
20
  const props = __props;
21
21
  const storesThemeConfig = useThemeConfig();
22
22
  const { themeConfig } = storeToRefs(storesThemeConfig);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-CyxsPQgW.js"),i=["onClick"],o=e.defineComponent({name:"navMenuVertical"}),a=e.defineComponent({...o,props:{menuList:{type:Array,default:()=>[]}},setup(o){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-CERHJlKY.js"))))),r=o,s=l.useThemeConfig(),{themeConfig:c}=n.storeToRefs(s),u=t.useRoute(),m=e.reactive({defaultActive:u.meta.isDynamic?u.meta.isDynamicPath:u.path,isCollapse:!1}),p=e.computed((()=>r.menuList)),d=e.computed((()=>c.value)),h=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{m.defaultActive=h(u)})),t.onBeforeRouteUpdate((e=>{m.defaultActive=h(e);document.body.clientWidth<1e3&&(c.value.isCollapse=!1)})),e.watch((()=>c.value.isCollapse),(e=>{document.body.clientWidth<=1e3?m.isCollapse=!1:m.isCollapse=e}),{immediate:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),r=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),c=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(c,{router:"","default-active":m.defaultActive,"background-color":"transparent",collapse:m.isCollapse,"unique-opened":d.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(r,{index:`${t.path}?project=his`,key:t.path},{title:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(a),{chil:t.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:`${t.path}?project=his`,key:t.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"])])),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{l.other.handleOpenLink(e)})(t)),["prevent"])},e.toDisplayString(t.meta.title),9,i)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-BgzU7USc.js"),i=["onClick"],o=e.defineComponent({name:"navMenuVertical"}),a=e.defineComponent({...o,props:{menuList:{type:Array,default:()=>[]}},setup(o){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-BqRUzjtT.js"))))),r=o,s=l.useThemeConfig(),{themeConfig:c}=n.storeToRefs(s),u=t.useRoute(),m=e.reactive({defaultActive:u.meta.isDynamic?u.meta.isDynamicPath:u.path,isCollapse:!1}),p=e.computed((()=>r.menuList)),d=e.computed((()=>c.value)),h=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{m.defaultActive=h(u)})),t.onBeforeRouteUpdate((e=>{m.defaultActive=h(e);document.body.clientWidth<1e3&&(c.value.isCollapse=!1)})),e.watch((()=>c.value.isCollapse),(e=>{document.body.clientWidth<=1e3?m.isCollapse=!1:m.isCollapse=e}),{immediate:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),r=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),c=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(c,{router:"","default-active":m.defaultActive,"background-color":"transparent",collapse:m.isCollapse,"unique-opened":d.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(r,{index:`${t.path}?project=his`,key:t.path},{title:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(a),{chil:t.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:`${t.path}?project=his`,key:t.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"])])),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{l.other.handleOpenLink(e)})(t)),["prevent"])},e.toDisplayString(t.meta.title),9,i)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "14.6.2",
3
+ "version": "14.6.3",
4
4
  "description": "vue3 + typescript5 + vite5 的框架",
5
5
  "author": "wgd",
6
6
  "private": false,
Binary file
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),l=require("./index-CyxsPQgW.js");const t=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形选择(弹窗带搜索框)",value:"bc-tree-search"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"},{label:"输入框组",value:"bc-input-group"}]);let s=e.ref({id:"",sort:0,data:{baseData:{shortcut:[],label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0,isHideDictDefaultValue:!1},elData:l.inputAttrConfigMap}}),o={baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"shortcut",label:"快捷键",el:"hs-select",slotValue:"shortcut"},{prop:"label",label:"参数名称",el:"hs-input"},{prop:"prop",label:"查询参数",slotValue:"prop",el:"hs-input"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:t.value},{prop:"label-width",label:"标签宽度",el:"hs-input"},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"isHideDictDefaultValue",label:"隐藏字典默认值",tooltip:"不显示字典默认值",el:"hs-switch"},{prop:"groupMark",label:"分组标识",el:"hs-input",tooltip:"如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"},{prop:"positionInGroup",label:"组字段位置",tooltip:"字段在分组中是开始位置 还是 结束为止",el:"hs-select",cel:"hs-option",show:!0,op:[{label:"开始",value:"begin"},{label:"结束",value:"end"}]}],rules:{label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]}},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},a=e.ref({id:"",data:{baseData:{},elData:{}}}),i=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!0,subTitle:"表单配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20}});exports.compConfig={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","bc-tree-search":"hs-config-tree-search","hs-tree-select":"hs-config-tree-select","bc-input-group":"hs-input-group"},exports.config=o,exports.configElList=t,exports.emptyFormItemData=a,exports.formItemAspectConfig={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},exports.formItemConfig=s,exports.formTitleConfig=i,exports.parentFormConfig=[{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"inline",label:"行内表单模式",el:"hs-switch"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"inlineMessage",label:"是否以行内形式展示校验信息",tooltip:"是否以行内形式展示校验信息",el:"hs-switch"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"栅格间隔",prop:"gutter",type:"number",el:"hs-input-number"},{label:"盒子布局下的水平排列方式",prop:"justify",el:"hs-select",tooltip:"flex 布局下的水平排列方式",op:[{label:"从起始方向排列",value:"start"},{label:"从末尾方向排列",value:"end"},{label:"居中",value:"center"},{label:"两端对齐均匀分布",value:"space-between"},{label:"两端是中间间隔的一半均匀分布",value:"space-around"},{label:"间隔相等均匀分布",value:"space-evenly"}],cel:"hs-option"},{label:"盒子布局下的垂直排列方式",prop:"align",el:"hs-select",tooltip:"flex 布局下的垂直排列方式",op:[{label:"自上而下",value:"top"},{label:"居中",value:"middle"},{label:"自下而上",value:"bottom"}],cel:"hs-option"},{label:"自定义元素标签",prop:"tag",el:"hs-input"},{label:"提交表单的请求Url",prop:"submitUrl",el:"hs-input"},{label:"提交请求方式",prop:"submitUrlMethod",el:"hs-select",cel:"hs-option",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}]},{label:"表单提交成功的提示信息",prop:"submitSuccessMsg",el:"hs-input"},{label:"首行展示列数",prop:"columnNum",tooltip:"当未设置值时,数据解析默认4列",el:"hs-input-number"},{prop:"isVerifySearch",label:"是否校验查询参数",tooltip:"是否校验查询参数",el:"hs-switch"},{label:"是否隐藏折叠按钮",prop:"isHideCollapseBtn",el:"hs-switch"},{prop:"isQuickSearch",label:"是否启用快捷查询",tooltip:"是否启用快捷查询",el:"hs-switch"},{prop:"isClosedKeyStroke",label:"是否关闭键盘事件",el:"hs-switch"},{prop:"isShowDictValue",label:"开启字典默认值",tooltip:"是否显示字典默认值",el:"hs-switch"},{prop:"isShowQuerySearch",label:"开启显示查询",tooltip:"用于动态切换查询条件场景下,单击标签页获取显示查询条件参数,需要默认值情况下使用setQueryData方法,第二个参数设置true为永久缓存",el:"hs-switch"},{prop:"isReverseBtn",label:"颠倒查询按钮",tooltip:"将查询按钮放到查询条件之后,【首行展示列数】可配合使用",el:"hs-switch"}],exports.parentFormData={size:"default",rules:"",inline:!0,labelPosition:"left",labelWidth:"80",labelSuffix:"",hideRequiredAsterisk:!1,requireAsteriskPosition:"left",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,scrollToError:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,submitUrl:"",submitSuccessMsg:"",isVerifySearch:!1,isQuickSearch:!1,isClosedKeyStroke:!1,isShowDictValue:!1,isShowQuerySearch:!1,isHideCollapseBtn:!1,isReverseBtn:!1};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={class:"system-menu-container layout-padding"},t={class:"h-full flex flex-col"},n={class:"flex-1 overflow-hidden"},a=e.defineComponent({name:"testtablecomponent"}),c=e.defineComponent({...a,props:{close:Function},setup(a){e.shallowReactive({});const c=e.ref();async function l(e){c.value=e}async function d(){var e;null==(e=c.value)||e.search()}return(a,c)=>{const r=e.resolveComponent("hs-button"),s=e.resolveComponent("hs-input"),i=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",t,[e.createVNode(r,{onClick:d},{default:e.withCtx((()=>c[0]||(c[0]=[e.createTextVNode("搜索")]))),_:1,__:[0]}),e.createElementVNode("div",n,[e.createVNode(i,{type:"1",projectCode:"lsms",id:"4c1ad4e7-5711-47b7-a78c-c793ccc65acc",mid:"5f6bec0d44a04731a8d42a7a6dfd3d80",uid:"6d627362f1914ec28ab167ae5c2c4013",onReady:l},{btn_search:e.withCtx((o=>[e.createVNode(r,e.mergeProps(o,{onClick:e.withModifiers(d,["stop"])}),null,16)])),increase_amount:e.withCtx((({row:o})=>[e.createVNode(s,{modelValue:o.increase_amount,"onUpdate:modelValue":e=>o.increase_amount=e},null,8,["modelValue","onUpdate:modelValue"])])),_:1})])])])}}});exports.default=c;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file