hs-admin-ui 14.7.9 → 14.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/dist/{401-wAHxH81N.js → 401-B04lli16.js} +1 -1
  2. package/dist/{401-BFUKL3yj.mjs → 401-BwWGF8He.mjs} +1 -1
  3. package/dist/{404-BkOIkqJG.js → 404-KAAmi3Hz.js} +1 -1
  4. package/dist/404-KAAmi3Hz.js.gz +0 -0
  5. package/dist/{404-DBv_RGJc.mjs → 404-WBFlPYJ4.mjs} +1 -1
  6. package/dist/404-WBFlPYJ4.mjs.gz +0 -0
  7. package/dist/{account-DPca5jMd.mjs → account-BHpTRHlj.mjs} +1 -1
  8. package/dist/{account-DBLaucky.js → account-Cl94Faxz.js} +1 -1
  9. package/dist/{aside-iQ2Zxb7j.mjs → aside-DgrlOt_y.mjs} +3 -3
  10. package/dist/{aside-UW1EIm89.js → aside-anI5vpfF.js} +1 -1
  11. package/dist/{baseFormConfig-BwoARAKE.js → baseFormConfig-C4H1ljSX.js} +1 -1
  12. package/dist/{baseFormConfig-C7uQ1IfZ.mjs → baseFormConfig-DjxjtpH7.mjs} +1 -1
  13. package/dist/baseFormConfig-DjxjtpH7.mjs.gz +0 -0
  14. package/dist/{baseTableConfig-Clbq5f79.js → baseTableConfig-5Q0AkhTS.js} +1 -1
  15. package/dist/baseTableConfig-5Q0AkhTS.js.gz +0 -0
  16. package/dist/{baseTableConfig-DCIni-Ip.mjs → baseTableConfig-U-jHD1tP.mjs} +1 -1
  17. package/dist/baseTableConfig-U-jHD1tP.mjs.gz +0 -0
  18. package/dist/{bcFormConfig-BXxI7l_6.js → bcFormConfig-BRC8iOAm.js} +1 -1
  19. package/dist/{bcFormConfig-CAEHIJG6.mjs → bcFormConfig-DTYZbDqR.mjs} +1 -1
  20. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BB11oxXz.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CRn4HoE9.js} +1 -1
  21. package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Bx7wiJ-H.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-zb1CfhJO.mjs} +2 -2
  22. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-BcjTlRNA.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-DhFtndxu.js} +1 -1
  23. package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-B6CRvgAq.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-woPN5FOt.mjs} +2 -2
  24. package/dist/{btnIndex-HZMFwk-0.mjs → btnIndex-CxXnIBCH.mjs} +3 -3
  25. package/dist/btnIndex-CxXnIBCH.mjs.gz +0 -0
  26. package/dist/{btnIndex-DC86A7sx.js → btnIndex-gCJaP9EH.js} +1 -1
  27. package/dist/{classic-DA7eN455.js → classic-SYQmY6hh.js} +1 -1
  28. package/dist/{classic-DoGRnpWl.mjs → classic-pACGuIYA.mjs} +5 -5
  29. package/dist/{cloneConfigDialog-Dy16ZWIQ.mjs → cloneConfigDialog-BmGbuWPy.mjs} +3 -3
  30. package/dist/cloneConfigDialog-BmGbuWPy.mjs.gz +0 -0
  31. package/dist/{cloneConfigDialog-B4a1HxSZ.js → cloneConfigDialog-DfCHfhOE.js} +1 -1
  32. package/dist/cloneConfigDialog-DfCHfhOE.js.gz +0 -0
  33. package/dist/{columns-7B11ctNh.js → columns-CNCtft7z.js} +1 -1
  34. package/dist/{columns-lNjAq9Bh.mjs → columns-D9Fn0Itx.mjs} +5 -5
  35. package/dist/{columnsAside-Bt7fLAno.mjs → columnsAside-Btmush8u.mjs} +1 -1
  36. package/dist/{columnsAside-doQ3BNYo.js → columnsAside-eodKD0tk.js} +1 -1
  37. package/dist/{contextmenu-D4e6A2Xs.js → contextmenu-5AShlRq1.js} +1 -1
  38. package/dist/{contextmenu-BbOK7yjP.mjs → contextmenu-C4UHXO4e.mjs} +1 -1
  39. package/dist/{contextmenu-DeDk8zon.js → contextmenu-CLYfq36e.js} +1 -1
  40. package/dist/{contextmenu-CVkx0DOx.mjs → contextmenu-z960mTCx.mjs} +1 -1
  41. package/dist/{copyMenuConfig-DNzOMlel.mjs → copyMenuConfig-Bc9Rc868.mjs} +1 -1
  42. package/dist/{copyMenuConfig-B8R9_4Ql.js → copyMenuConfig-Dwmva8_y.js} +1 -1
  43. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-7yEFych8.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BTi5AB3g.js} +1 -1
  44. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-C0N9OEyQ.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-DQjvYuca.mjs} +2 -2
  45. package/dist/{copySystem-CVCij6WD.js → copySystem-BX9kcuts.js} +1 -1
  46. package/dist/{copySystem-iSXl9zI-.mjs → copySystem-gjJ53_z8.mjs} +1 -1
  47. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-B4PpcIjR.mjs → copySystem.vue_vue_type_script_setup_true_lang-DAqGGTu4.mjs} +2 -2
  48. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BqWJTJXA.js → copySystem.vue_vue_type_script_setup_true_lang-YrSHKa_1.js} +1 -1
  49. package/dist/{defaults-4oLmCsh6.js → defaults-CwczQg_h.js} +1 -1
  50. package/dist/{defaults-oPx_MLy2.mjs → defaults-DR7_P-F5.mjs} +4 -4
  51. package/dist/{dialog-pBmVaovU.mjs → dialog-CD2m1tn4.mjs} +1 -1
  52. package/dist/{dialog-DrsojCev.js → dialog-CokUu4nm.js} +1 -1
  53. package/dist/{dialog-BrtbnNd1.js → dialog-Cy89r2gp.js} +1 -1
  54. package/dist/{dialog-CMCY6aro.mjs → dialog-DPHF0xbb.mjs} +1 -1
  55. package/dist/{dialog-BSusw0iJ.mjs → dialog-DWwaKN6e.mjs} +1 -1
  56. package/dist/{dialog-0UZA8Xba.js → dialog-EJqSbEPZ.js} +1 -1
  57. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-ByMyF6PI.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-9Uio5IO1.mjs} +3 -3
  58. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dlddav3Q.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dzy4q6h9.js} +1 -1
  59. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Co59k9t0.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbCEKow.mjs} +2 -2
  60. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbCEKow.mjs.gz +0 -0
  61. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CzJUfDUt.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1L1celN.js} +1 -1
  62. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1L1celN.js.gz +0 -0
  63. package/dist/{dictDialog-ZToVWVhw.mjs → dictDialog-B1rgaoi9.mjs} +1 -1
  64. package/dist/{dictDialog-DQ2XAa6l.js → dictDialog-BOBKqQ2O.js} +1 -1
  65. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DZ0yK3mm.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B6Tw8ahV.mjs} +2 -2
  66. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cq0ZpCec.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DQksYpJy.js} +1 -1
  67. package/dist/{dictItemDialog-bAry4HVm.js → dictItemDialog-NUzmfjqN.js} +1 -1
  68. package/dist/{dictItemDialog-B83fqdoO.mjs → dictItemDialog-_bc1ygNG.mjs} +1 -1
  69. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-5NMZ_4ph.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BHphtrb3.mjs} +2 -2
  70. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-B3YFqb6p.js → dictItemDialog.vue_vue_type_script_setup_true_lang-D6qV6tFv.js} +1 -1
  71. package/dist/{formConfig-Bg34VkAM.mjs → formConfig-DlCy45VH.mjs} +6 -6
  72. package/dist/formConfig-DlCy45VH.mjs.gz +0 -0
  73. package/dist/{formConfig-CIBmO_f0.js → formConfig-z0G8cIio.js} +1 -1
  74. package/dist/formConfig-z0G8cIio.js.gz +0 -0
  75. package/dist/{header-DpZkcLF7.js → header-CKAnQQgU.js} +1 -1
  76. package/dist/{header-clhTNPs8.mjs → header-DHXt8KW4.mjs} +2 -2
  77. package/dist/{horizontal-etVv3zNy.mjs → horizontal-BECf2bFU.mjs} +2 -2
  78. package/dist/{horizontal-C4CGbiRf.js → horizontal-PVHLn6j_.js} +1 -1
  79. package/dist/{hsAttrBtn-Caw81OBP.js → hsAttrBtn-ByMaC7G6.js} +1 -1
  80. package/dist/{hsAttrBtn-C6XwJvLT.mjs → hsAttrBtn-JlfuPG_U.mjs} +1 -1
  81. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-C1nD8OAf.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BL2K6vJM.mjs} +4 -4
  82. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BowEgXnH.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CR4m7tBH.js} +1 -1
  83. package/dist/{hsAttrForm-CtDzbK6n.mjs → hsAttrForm-D5lhRza2.mjs} +1 -1
  84. package/dist/{hsAttrForm-G-TA2QcR.js → hsAttrForm-D9to8xGH.js} +1 -1
  85. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CtKp0gYJ.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-B1E5Fsn7.mjs} +4 -4
  86. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B1E5Fsn7.mjs.gz +0 -0
  87. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-D8BeAaap.js → hsAttrForm.vue_vue_type_script_setup_true_lang-B2jdp7Yy.js} +1 -1
  88. package/dist/{hsBtnConfigList-CGsqEcNy.js → hsBtnConfigList-Bf1b-ExX.js} +1 -1
  89. package/dist/{hsBtnConfigList-7gszNCRn.mjs → hsBtnConfigList-DL5KyPEB.mjs} +1 -1
  90. package/dist/{hsBtnItemConfig-Bk9lIHME.mjs → hsBtnItemConfig-CrfSw_w8.mjs} +1 -1
  91. package/dist/{hsBtnItemConfig-1iNxvnxT.js → hsBtnItemConfig-arwaoczS.js} +1 -1
  92. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Duh-qNSG.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B5GjuO4W.mjs} +3 -3
  93. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-f7-JU4LX.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CZmEnl8N.js} +1 -1
  94. package/dist/{hsBtnPanel-Dor75tXi.mjs → hsBtnPanel-BRive6Ga.mjs} +1 -1
  95. package/dist/{hsBtnPanel-BpyJy3nI.js → hsBtnPanel-DPFmi7US.js} +1 -1
  96. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DFvB50gE.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-8dvchZVP.js} +1 -1
  97. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-gsTmNPYC.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C1Lhv8PR.mjs} +4 -4
  98. package/dist/{hsExpand-ClpYn_KG.js → hsExpand-DGyT8WJZ.js} +1 -1
  99. package/dist/{hsExpand-DmBLenH5.mjs → hsExpand-gdQ8tqrE.mjs} +1 -1
  100. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-7E4wFAew.js → hsExpand.vue_vue_type_script_setup_true_lang-BxTXmLnf.js} +1 -1
  101. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DeUUXZ3h.mjs → hsExpand.vue_vue_type_script_setup_true_lang-QFn6IQ-2.mjs} +1 -1
  102. package/dist/{hsFormConfig-tADwSkke.js → hsFormConfig-BkJtuGi7.js} +1 -1
  103. package/dist/{hsFormConfig-CME_4IN7.mjs → hsFormConfig-DbCv_3si.mjs} +1 -1
  104. package/dist/{hsFormConfigList-8jssCdi2.mjs → hsFormConfigList-Bjk1NNyA.mjs} +2 -2
  105. package/dist/hsFormConfigList-Bjk1NNyA.mjs.gz +0 -0
  106. package/dist/{hsFormConfigList-D4zxdHge.js → hsFormConfigList-DI9G0slR.js} +1 -1
  107. package/dist/{hsFormPanel-z3bZ6gHo.js → hsFormPanel-BQtKgLdo.js} +1 -1
  108. package/dist/{hsFormPanel-BMptQ2Ds.mjs → hsFormPanel-DOi57aEa.mjs} +6 -6
  109. package/dist/hsFormPanel-DOi57aEa.mjs.gz +0 -0
  110. package/dist/{hsFormParse-ChxUX4xR.js → hsFormParse-DTNM0N_E.js} +1 -1
  111. package/dist/{hsFormParse-26s-iI5d.mjs → hsFormParse-DzP80k3K.mjs} +1 -1
  112. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CYwJvMZG.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-CLEjIRB6.mjs} +3 -3
  113. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DsuW2AzW.js → hsFormParse.vue_vue_type_script_setup_true_lang-CZ_g6mkv.js} +1 -1
  114. package/dist/{hsPanelItem-CQOme2vJ.js → hsPanelItem-D0reZcCL.js} +1 -1
  115. package/dist/{hsPanelItem-uRAB6La1.mjs → hsPanelItem-_xFw2_mF.mjs} +1 -1
  116. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-NoydhkqM.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CIKlg73f.mjs} +1 -1
  117. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DCMptQq0.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-NjdC83sV.js} +1 -1
  118. package/dist/{index copy-Bj3V0aRB.js → index copy-C7zPH0mD.js } +1 -1
  119. package/dist/{index copy-QUvhzwXh.mjs → index copy-Vz5UgFuH.mjs } +1 -1
  120. package/dist/{index-BUd2E0H5.mjs → index-0mao_bMa.mjs} +1 -1
  121. package/dist/{index-DeBkPMPy.mjs → index-1k63kpjE.mjs} +3 -3
  122. package/dist/{index-Dvt0hq9x.js → index-9zp2TLCx.js} +1 -1
  123. package/dist/{index-DW6Z_jQH.mjs → index-B-GfD-em.mjs} +4 -4
  124. package/dist/{index-Pwb_dB_M.mjs → index-B20ZRkHk.mjs} +1 -1
  125. package/dist/index-B20ZRkHk.mjs.gz +0 -0
  126. package/dist/{index-Cp08mzUz.js → index-BFgwSxiT.js} +1 -1
  127. package/dist/{index-YlQoaoBf.js → index-BJYQO_Wc.js} +1 -1
  128. package/dist/{index-Dom0vDih.mjs → index-BKLnju_2.mjs} +1 -1
  129. package/dist/{index-8jUG172z.js → index-BNij86At.js} +1 -1
  130. package/dist/{index-DhKwq_i6.js → index-BSTRw1Aa.js} +1 -1
  131. package/dist/{index-BbuRUlTa.mjs → index-BSrUFI6L.mjs} +1 -1
  132. package/dist/{index-Q5MugEIq.mjs → index-BTAbU_J6.mjs} +3 -3
  133. package/dist/{index-zGTJ20ZU.js → index-BXGlwdlA.js} +1 -1
  134. package/dist/{index-BgywbvWs.js → index-BYA2slpw.js} +1 -1
  135. package/dist/{index-JO-ofz1g.js → index-BYPep7qW.js} +1 -1
  136. package/dist/{index-Ci8IAv_R.mjs → index-BeNXoPOZ.mjs} +1 -1
  137. package/dist/{index-BVqfGbnH.mjs → index-BeyTqDkk.mjs} +1 -1
  138. package/dist/{index-Dx7txopR.js → index-BompHD5u.js} +1 -1
  139. package/dist/{index-LjW_osUU.mjs → index-Bp4Zh9F_.mjs} +4 -4
  140. package/dist/index-Bp4Zh9F_.mjs.gz +0 -0
  141. package/dist/{index-DwVBd1xk.mjs → index-BpsFjKeb.mjs} +1 -1
  142. package/dist/{index-BO2nKRCh.mjs → index-Br68WZwk.mjs} +3 -3
  143. package/dist/{index-CGt2OJxF.js → index-Bu_X6ySS.js} +1 -1
  144. package/dist/{index-CvZWrxGq.js → index-Bvfo-GnM.js} +1 -1
  145. package/dist/{index-D9L00oPY.js → index-Bya5DWYy.js} +1 -1
  146. package/dist/{index-BC9H80QY.js → index-C5NRgQk0.js} +1 -1
  147. package/dist/{index-CapD1RjF.js → index-C5UbKUt-.js} +1 -1
  148. package/dist/{index-DVKXlmOV.js → index-C5gWwOOK.js} +1 -1
  149. package/dist/{index-DifV_Vnb.js → index-C9cc3wPg.js} +1 -1
  150. package/dist/{index-BQxvM6mY.js → index-CKf8lK3W.js} +1 -1
  151. package/dist/{index-DjBIJae9.mjs → index-CL2neqzC.mjs} +1 -1
  152. package/dist/{index-DS8zh-mD.mjs → index-CL3Vrs7K.mjs} +1 -1
  153. package/dist/{index-Cz24a8TX.js → index-CR2sUiQk.js} +1 -1
  154. package/dist/{index-Co3l2rhL.mjs → index-CbCpMxLR.mjs} +1 -1
  155. package/dist/{index-IxrRIXlt.mjs → index-CbMxwr0Y.mjs} +1 -1
  156. package/dist/{index-BN_nuFe0.js → index-CcbjAfyY.js} +1 -1
  157. package/dist/index-CcbjAfyY.js.gz +0 -0
  158. package/dist/{index-DvkpfzgP.js → index-CctLkW6o.js} +1 -1
  159. package/dist/{index-DVYOpDqF.js → index-CkXS6XO3.js} +1 -1
  160. package/dist/{index-BuIdvbPG.js → index-CnkGjvpC.js} +1 -1
  161. package/dist/{index-Bl9p5qZ9.mjs → index-Cs4-1veE.mjs} +1 -1
  162. package/dist/{index-C_vA4pXe.mjs → index-Ct4UHUjZ.mjs} +1 -1
  163. package/dist/{index-CWA5HU3B.mjs → index-D-kZFlr3.mjs} +2 -2
  164. package/dist/{index-hu-CMUNw.mjs → index-D5yngjOy.mjs} +4 -4
  165. package/dist/{index-DCbvgJrZ.js → index-DBbasVhC.js} +1 -1
  166. package/dist/{index-zjmZotlz.js → index-DFqBtiVg.js} +1 -1
  167. package/dist/{index-DzSxHssf.js → index-DGyYf-zP.js} +1 -1
  168. package/dist/{index-ZUGv5OTH.mjs → index-DQd5kZ2Y.mjs} +3 -3
  169. package/dist/{index-D6MG1juP.mjs → index-DSv6NU75.mjs} +5 -5
  170. package/dist/{index-_vKNJXYV.js → index-DUhPfdnN.js} +1 -1
  171. package/dist/{index-DeE-tQ86.mjs → index-DXw4N3NS.mjs} +4 -4
  172. package/dist/index-DXw4N3NS.mjs.gz +0 -0
  173. package/dist/{index-D2WynQHJ.mjs → index-DjChM5fh.mjs} +1 -1
  174. package/dist/{index-CR0W7bim.mjs → index-DmqVYGj0.mjs} +4 -4
  175. package/dist/{index-Bais3oHm.js → index-Dp9xcKmM.js} +1 -1
  176. package/dist/{index-DEkXZZso.mjs → index-DpnlX4Do.mjs} +1 -1
  177. package/dist/{index-C-D6B4gE.mjs → index-Dptdqip4.mjs} +1 -1
  178. package/dist/{index-Cn7_xmUI.mjs → index-Dq9V6IqA.mjs} +1 -1
  179. package/dist/{index-Dl0PZbMy.mjs → index-Jtq8gsD0.mjs} +5 -5
  180. package/dist/{index-J1XRpxZ2.js → index-KhpCEkFD.js} +1 -1
  181. package/dist/index-KhpCEkFD.js.gz +0 -0
  182. package/dist/{index-BX5O6L3X.mjs → index-NVrzh7Mu.mjs} +1 -1
  183. package/dist/{index-0ChRSkIR.mjs → index-Rqijm6pB.mjs} +4 -4
  184. package/dist/{index-5CfG1GU4.js → index-SZnILXi7.js} +1 -1
  185. package/dist/{index-r_JuqtXk.mjs → index-TRAUcbXR.mjs} +116 -135
  186. package/dist/index-TRAUcbXR.mjs.gz +0 -0
  187. package/dist/{index-XGR9N0QC.mjs → index-XiAofzxr.mjs} +1 -1
  188. package/dist/{index-CjUKiCtF.mjs → index-YEUNy3bI.mjs} +1 -1
  189. package/dist/{index-Ck8jgvON.js → index-ajLh63rs.js} +1 -1
  190. package/dist/{index-DXsi20Kt.mjs → index-icdIo2N4.mjs} +2 -2
  191. package/dist/index-icdIo2N4.mjs.gz +0 -0
  192. package/dist/{index-DrALIavM.js → index-jG_nH-YG.js} +1 -1
  193. package/dist/{index-CLg8D-mf.js → index-jq2pSqMh.js} +9 -9
  194. package/dist/index-jq2pSqMh.js.gz +0 -0
  195. package/dist/{index-Cjm__0Ft.mjs → index-kniQzq4J.mjs} +1 -1
  196. package/dist/{index-CeVShjaP.js → index-nGzhufU1.js} +1 -1
  197. package/dist/{index-DMJjTgnD.js → index-o_kX24Vo.js} +1 -1
  198. package/dist/{index-43A02NaK.js → index-pP4s3_Wo.js} +1 -1
  199. package/dist/{index-DBOjvHno.js → index-qmdQ9bjd.js} +1 -1
  200. package/dist/{index-B8jPNj2g.mjs → index-r21sN-kn.mjs} +1 -1
  201. package/dist/{index-PIMD5gJa.js → index-uEazr79x.js} +1 -1
  202. package/dist/{index-3bgKThuZ.js → index-vjhr9EGa.js} +1 -1
  203. package/dist/index-vjhr9EGa.js.gz +0 -0
  204. package/dist/{index-HsXvtmln.mjs → index-y5OnAxfr.mjs} +10 -10
  205. package/dist/index-y5OnAxfr.mjs.gz +0 -0
  206. package/dist/index.js +1 -1
  207. package/dist/index.mjs +1 -1
  208. package/dist/{index.vue_vue_type_script_setup_true_lang-Bn94N9Go.mjs → index.vue_vue_type_script_setup_true_lang-BBBPm-pF.mjs} +1 -1
  209. package/dist/{index.vue_vue_type_script_setup_true_lang-C26luWSc.mjs → index.vue_vue_type_script_setup_true_lang-BK1g0C97.mjs} +3 -3
  210. package/dist/{index.vue_vue_type_script_setup_true_lang-Duz-wDfu.js → index.vue_vue_type_script_setup_true_lang-BgCGVY_F.js} +1 -1
  211. package/dist/{index.vue_vue_type_script_setup_true_lang-CtxwUlRC.mjs → index.vue_vue_type_script_setup_true_lang-Bp9cAj9F.mjs} +4 -4
  212. package/dist/index.vue_vue_type_script_setup_true_lang-Bp9cAj9F.mjs.gz +0 -0
  213. package/dist/{index.vue_vue_type_script_setup_true_lang-CGeNWdsq.js → index.vue_vue_type_script_setup_true_lang-Cl0U7wEA.js} +1 -1
  214. package/dist/{index.vue_vue_type_script_setup_true_lang-DE9ZdDbh.mjs → index.vue_vue_type_script_setup_true_lang-D0CdPTRu.mjs} +6 -6
  215. package/dist/{index.vue_vue_type_script_setup_true_lang-D8zU-9_Q.js → index.vue_vue_type_script_setup_true_lang-DVYVd8VX.js} +1 -1
  216. package/dist/{index.vue_vue_type_script_setup_true_lang-BXS6BVmL.js → index.vue_vue_type_script_setup_true_lang-HQYnpmxd.js} +1 -1
  217. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-bzpQffOy.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CFwFHcO9.mjs} +2 -2
  218. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CFwFHcO9.mjs.gz +0 -0
  219. package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-COwtOinp.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-Cz8Lq43a.js} +1 -1
  220. package/dist/{link-irhz94kr.js → link-Ce6NbmsG.js} +1 -1
  221. package/dist/{link-CpMwjoQ5.mjs → link-CnF4gQF-.mjs} +1 -1
  222. package/dist/{list-D145pORE.mjs → list-DNnFmbPS.mjs} +1 -1
  223. package/dist/{list-_lJsI5IN.js → list-i-eX1kE-.js} +1 -1
  224. package/dist/{main-oXkTR_VE.mjs → main-BZ-_7g9r.mjs} +3 -3
  225. package/dist/{main-CY9Q36Mf.js → main-nrjQjng4.js} +1 -1
  226. package/dist/{mobile-dqMKxwSd.mjs → mobile-BYFvhRyu.mjs} +1 -1
  227. package/dist/{mobile-JVI-EJ12.js → mobile-CjR3bgpJ.js} +1 -1
  228. package/dist/{parent-ojRwb095.js → parent-CEw3x6Z3.js} +1 -1
  229. package/dist/{parent-DOQab0WB.mjs → parent-CI1SfOKR.mjs} +1 -1
  230. package/dist/{popup-DUCJ962z.mjs → popup-BakMciDB.mjs} +1 -1
  231. package/dist/{popup-DOkw0hin.js → popup-DH5oE-kO.js} +1 -1
  232. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BjhHX4Xu.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BDkErg_Y.mjs} +1 -1
  233. package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-CebRYWvI.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DSy7_X0G.js} +1 -1
  234. package/dist/{roleItem-BQ859_Gs.js → roleItem-B3scQg1j.js} +1 -1
  235. package/dist/{roleItem-CQclunQq.mjs → roleItem-BBp4cpcZ.mjs} +1 -1
  236. package/dist/{saveForm-QInN25Ie.mjs → saveForm-CtQOkBin.mjs} +3 -3
  237. package/dist/{saveForm-BX-Rityb.js → saveForm-_KFDAjiK.js} +1 -1
  238. package/dist/{scan-BcDWM0Fl.mjs → scan-D8saaMbh.mjs} +1 -1
  239. package/dist/scan-D8saaMbh.mjs.gz +0 -0
  240. package/dist/{scan-D5-O1C88.js → scan-DPtMpamW.js} +1 -1
  241. package/dist/scan-DPtMpamW.js.gz +0 -0
  242. package/dist/{search-Ck6Xk-aD.mjs → search-DiFIqFpm.mjs} +1 -1
  243. package/dist/{search-BT_Z504H.js → search-rhj7RJZa.js} +1 -1
  244. package/dist/{selectConfig-ySDXJMUf.js → selectConfig-CkQ9vNyx.js} +1 -1
  245. package/dist/{selectConfig-DfKe-EGt.mjs → selectConfig-DZ0mg51V.mjs} +1 -1
  246. package/dist/selectConfig-DZ0mg51V.mjs.gz +0 -0
  247. package/dist/style.css +1 -1
  248. package/dist/style.css.gz +0 -0
  249. package/dist/{subItem-CnwUQJD2.mjs → subItem-BvhaM8hW.mjs} +1 -1
  250. package/dist/{subItem-BXyPgQut.js → subItem-CHd51GWc.js} +1 -1
  251. package/dist/{tagsView-CCy73h23.js → tagsView-C52b3eA_.js} +2 -2
  252. package/dist/tagsView-C52b3eA_.js.gz +0 -0
  253. package/dist/{tagsView-Dg5ppxiD.mjs → tagsView-hvpaKlX7.mjs} +2 -2
  254. package/dist/tagsView-hvpaKlX7.mjs.gz +0 -0
  255. package/dist/{transverse-BJWssINP.mjs → transverse-BO6xUJm8.mjs} +3 -3
  256. package/dist/{transverse-BDy1Pmvz.js → transverse-BVhf-a0F.js} +1 -1
  257. package/dist/{user-C9wBB106.mjs → user-B5ItQ3FM.mjs} +3 -3
  258. package/dist/{user-DGhaMA2S.js → user-D65qcmHG.js} +1 -1
  259. package/dist/{userNews-Dwr8tyQY.mjs → userNews-CQFxdGHk.mjs} +1 -1
  260. package/dist/{userNews-Dp0ePUfR.js → userNews-DkA1-M8k.js} +1 -1
  261. package/dist/{userSelect-BKPGx6Qw.mjs → userSelect-Cl0N7jBD.mjs} +1 -1
  262. package/dist/{userSelect-eF8SE8j9.js → userSelect-OXGAN9HB.js} +1 -1
  263. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-D1-cG2YF.mjs → userSelect.vue_vue_type_script_setup_true_lang-C3dR1oxq.mjs} +1 -1
  264. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-fjRkqB5N.js → userSelect.vue_vue_type_script_setup_true_lang-D6QP8Wil.js} +1 -1
  265. package/dist/{vertical-fvFYN8k1.mjs → vertical-DuVnqkep.mjs} +2 -2
  266. package/dist/{vertical-B7k7dl0s.js → vertical-DuyzgITq.js} +1 -1
  267. package/package.json +1 -1
  268. package/dist/404-BkOIkqJG.js.gz +0 -0
  269. package/dist/404-DBv_RGJc.mjs.gz +0 -0
  270. package/dist/baseFormConfig-C7uQ1IfZ.mjs.gz +0 -0
  271. package/dist/baseTableConfig-Clbq5f79.js.gz +0 -0
  272. package/dist/baseTableConfig-DCIni-Ip.mjs.gz +0 -0
  273. package/dist/btnIndex-HZMFwk-0.mjs.gz +0 -0
  274. package/dist/cloneConfigDialog-B4a1HxSZ.js.gz +0 -0
  275. package/dist/cloneConfigDialog-Dy16ZWIQ.mjs.gz +0 -0
  276. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Co59k9t0.mjs.gz +0 -0
  277. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CzJUfDUt.js.gz +0 -0
  278. package/dist/formConfig-Bg34VkAM.mjs.gz +0 -0
  279. package/dist/formConfig-CIBmO_f0.js.gz +0 -0
  280. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CtKp0gYJ.mjs.gz +0 -0
  281. package/dist/hsFormConfigList-8jssCdi2.mjs.gz +0 -0
  282. package/dist/hsFormPanel-BMptQ2Ds.mjs.gz +0 -0
  283. package/dist/index-3bgKThuZ.js.gz +0 -0
  284. package/dist/index-BN_nuFe0.js.gz +0 -0
  285. package/dist/index-CLg8D-mf.js.gz +0 -0
  286. package/dist/index-DXsi20Kt.mjs.gz +0 -0
  287. package/dist/index-DeE-tQ86.mjs.gz +0 -0
  288. package/dist/index-HsXvtmln.mjs.gz +0 -0
  289. package/dist/index-J1XRpxZ2.js.gz +0 -0
  290. package/dist/index-LjW_osUU.mjs.gz +0 -0
  291. package/dist/index-Pwb_dB_M.mjs.gz +0 -0
  292. package/dist/index-r_JuqtXk.mjs.gz +0 -0
  293. package/dist/index.vue_vue_type_script_setup_true_lang-CtxwUlRC.mjs.gz +0 -0
  294. package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-bzpQffOy.mjs.gz +0 -0
  295. package/dist/scan-BcDWM0Fl.mjs.gz +0 -0
  296. package/dist/scan-D5-O1C88.js.gz +0 -0
  297. package/dist/selectConfig-DfKe-EGt.mjs.gz +0 -0
  298. package/dist/tagsView-CCy73h23.js.gz +0 -0
  299. package/dist/tagsView-Dg5ppxiD.mjs.gz +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-CLg8D-mf.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const 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 o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,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 e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=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=h*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(),o){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*o*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*o*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*o*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*o*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*o*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*o*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=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*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 o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<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 o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=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 e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[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(m)(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(m)(-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(f)("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(f)("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(w)())},{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})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-jq2pSqMh.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const 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 o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,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 e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=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=h*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(),o){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*o*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*o*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*o*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*o*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*o*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*o*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=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*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 o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<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 o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=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 e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[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(m)(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(m)(-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(f)("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(f)("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(w)())},{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})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
Binary file
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CLg8D-mf.js"),o={},r={class:"system-menu-container layout-padding"};const n=t._export_sfc(o,[["render",function(t,o){const n=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n)])}]]);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-jq2pSqMh.js"),o={},r={class:"system-menu-container layout-padding"};const n=t._export_sfc(o,[["render",function(t,o){const n=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n)])}]]);exports.default=n;
@@ -1 +1 @@
1
- "use strict";const e=require("./index-CLg8D-mf.js"),t=(e,t)=>Object.assign(e,{title:t}),s=(s={})=>(s=t(s,"获取所有系统信息列表"),e.request({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:s})),o=(s={})=>(s=t(s,"获取系统信息列表"),e.request({url:"/scmp-web/pri/system/get_system_info_page_list",method:"get",params:s})),m=(s={})=>(s=t(s,"删除"),e.request({url:"/scmp-web/pri/system/delete_system_info",method:"post",data:s})),p=(s={})=>(s=t(s,"修改状态"),e.request({url:"/scmp-web/pri/system/update_lock_status",method:"post",data:s})),r=(s={})=>(s=t(s,"复制项目信息-菜单,配置信息"),e.request({url:"/scmp-web/pri/system/copy_system_info",method:"post",data:s})),u=(s={})=>(s=t(s,"复制菜单下的配置信息"),e.request({url:"/scmp-web/pri/system/copy_menu_info",method:"post",data:s}));exports.useSystemController=function(){return{getAllSystemInfo:s,getSystemInfoPageList:o,postDeleteSystemInfo:m,postUpdateLockStatus:p,postCopySystemInfo:r,postCopyMenuInfo:u}};
1
+ "use strict";const e=require("./index-jq2pSqMh.js"),t=(e,t)=>Object.assign(e,{title:t}),s=(s={})=>(s=t(s,"获取所有系统信息列表"),e.request({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:s})),o=(s={})=>(s=t(s,"获取系统信息列表"),e.request({url:"/scmp-web/pri/system/get_system_info_page_list",method:"get",params:s})),m=(s={})=>(s=t(s,"删除"),e.request({url:"/scmp-web/pri/system/delete_system_info",method:"post",data:s})),p=(s={})=>(s=t(s,"修改状态"),e.request({url:"/scmp-web/pri/system/update_lock_status",method:"post",data:s})),r=(s={})=>(s=t(s,"复制项目信息-菜单,配置信息"),e.request({url:"/scmp-web/pri/system/copy_system_info",method:"post",data:s})),u=(s={})=>(s=t(s,"复制菜单下的配置信息"),e.request({url:"/scmp-web/pri/system/copy_menu_info",method:"post",data:s}));exports.useSystemController=function(){return{getAllSystemInfo:s,getSystemInfoPageList:o,postDeleteSystemInfo:m,postUpdateLockStatus:p,postCopySystemInfo:r,postCopyMenuInfo:u}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CLg8D-mf.js"),a={class:"system-dept-container layout-padding"},o={class:"system-dept-search mb15"},l=e.defineComponent({name:"systemDept"}),r=e.defineComponent({...l,setup(l){const r=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./dialog-TFJ52Qpk.js"))))),d=e.ref(),i=e.reactive({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),n=()=>{i.tableData.loading=!0,i.tableData.data=[],i.tableData.data.push({deptName:"vueNextAdmin",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"顶级部门",id:Math.random(),children:[{deptName:"IT外包服务",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"总部",id:Math.random()},{deptName:"资本控股",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"分部",id:Math.random()}]}),i.tableData.total=i.tableData.data.length,setTimeout((()=>{i.tableData.loading=!1}),500)},s=e=>{d.value.openDialog(e)};return e.onMounted((()=>{n()})),(l,c)=>{const p=e.resolveComponent("el-input"),u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),h=e.resolveComponent("el-button"),w=e.resolveComponent("ele-FolderAdd"),f=e.resolveComponent("el-table-column"),x=e.resolveComponent("el-tag"),C=e.resolveComponent("el-table"),N=e.resolveComponent("el-card"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",a,[e.createVNode(N,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",o,[e.createVNode(p,{size:"default",placeholder:"请输入部门名称",style:{"max-width":"180px"}}),e.createVNode(h,{size:"default",type:"primary",class:"ml10"},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(u)])),_:1}),c[3]||(c[3]=e.createTextVNode(" 查询 "))])),_:1,__:[3]}),e.createVNode(h,{size:"default",type:"success",class:"ml10",onClick:c[0]||(c[0]=e=>s("add"))},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(w)])),_:1}),c[4]||(c[4]=e.createTextVNode(" 新增部门 "))])),_:1,__:[4]})]),e.withDirectives((e.openBlock(),e.createBlock(C,{data:i.tableData.data,style:{width:"100%"},"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:e.withCtx((()=>[e.createVNode(f,{prop:"deptName",label:"部门名称","show-overflow-tooltip":""}),e.createVNode(f,{label:"排序","show-overflow-tooltip":"",width:"80"},{default:e.withCtx((t=>[e.createTextVNode(e.toDisplayString(t.$index),1)])),_:1}),e.createVNode(f,{prop:"status",label:"部门状态","show-overflow-tooltip":""},{default:e.withCtx((t=>[t.row.status?(e.openBlock(),e.createBlock(x,{key:0,type:"success"},{default:e.withCtx((()=>c[5]||(c[5]=[e.createTextVNode("启用")]))),_:1,__:[5]})):(e.openBlock(),e.createBlock(x,{key:1,type:"info"},{default:e.withCtx((()=>c[6]||(c[6]=[e.createTextVNode("禁用")]))),_:1,__:[6]}))])),_:1}),e.createVNode(f,{prop:"describe",label:"部门描述","show-overflow-tooltip":""}),e.createVNode(f,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),e.createVNode(f,{label:"操作","show-overflow-tooltip":"",width:"140"},{default:e.withCtx((a=>[e.createVNode(h,{size:"small",text:"",type:"primary",onClick:c[1]||(c[1]=e=>s("add"))},{default:e.withCtx((()=>c[7]||(c[7]=[e.createTextVNode("新增")]))),_:1,__:[7]}),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return t="edit",o=a.row,void d.value.openDialog(t,o);var t,o}},{default:e.withCtx((()=>c[8]||(c[8]=[e.createTextVNode("修改")]))),_:2,__:[8]},1032,["onClick"]),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return o=a.row,void t.ElMessageBox.confirm(`此操作将永久删除部门:${o.deptName}, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then((()=>{n(),t.ElMessage.success("删除成功")})).catch((()=>{}));var o}},{default:e.withCtx((()=>c[9]||(c[9]=[e.createTextVNode("删除")]))),_:2,__:[9]},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[v,i.tableData.loading]])])),_:1}),e.createVNode(e.unref(r),{ref_key:"deptDialogRef",ref:d,onRefresh:c[2]||(c[2]=e=>n())},null,512)])}}});exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-jq2pSqMh.js"),a={class:"system-dept-container layout-padding"},o={class:"system-dept-search mb15"},l=e.defineComponent({name:"systemDept"}),r=e.defineComponent({...l,setup(l){const r=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./dialog-TFJ52Qpk.js"))))),d=e.ref(),i=e.reactive({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),n=()=>{i.tableData.loading=!0,i.tableData.data=[],i.tableData.data.push({deptName:"vueNextAdmin",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"顶级部门",id:Math.random(),children:[{deptName:"IT外包服务",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"总部",id:Math.random()},{deptName:"资本控股",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"分部",id:Math.random()}]}),i.tableData.total=i.tableData.data.length,setTimeout((()=>{i.tableData.loading=!1}),500)},s=e=>{d.value.openDialog(e)};return e.onMounted((()=>{n()})),(l,c)=>{const p=e.resolveComponent("el-input"),u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),h=e.resolveComponent("el-button"),w=e.resolveComponent("ele-FolderAdd"),f=e.resolveComponent("el-table-column"),x=e.resolveComponent("el-tag"),C=e.resolveComponent("el-table"),N=e.resolveComponent("el-card"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",a,[e.createVNode(N,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",o,[e.createVNode(p,{size:"default",placeholder:"请输入部门名称",style:{"max-width":"180px"}}),e.createVNode(h,{size:"default",type:"primary",class:"ml10"},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(u)])),_:1}),c[3]||(c[3]=e.createTextVNode(" 查询 "))])),_:1,__:[3]}),e.createVNode(h,{size:"default",type:"success",class:"ml10",onClick:c[0]||(c[0]=e=>s("add"))},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(w)])),_:1}),c[4]||(c[4]=e.createTextVNode(" 新增部门 "))])),_:1,__:[4]})]),e.withDirectives((e.openBlock(),e.createBlock(C,{data:i.tableData.data,style:{width:"100%"},"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:e.withCtx((()=>[e.createVNode(f,{prop:"deptName",label:"部门名称","show-overflow-tooltip":""}),e.createVNode(f,{label:"排序","show-overflow-tooltip":"",width:"80"},{default:e.withCtx((t=>[e.createTextVNode(e.toDisplayString(t.$index),1)])),_:1}),e.createVNode(f,{prop:"status",label:"部门状态","show-overflow-tooltip":""},{default:e.withCtx((t=>[t.row.status?(e.openBlock(),e.createBlock(x,{key:0,type:"success"},{default:e.withCtx((()=>c[5]||(c[5]=[e.createTextVNode("启用")]))),_:1,__:[5]})):(e.openBlock(),e.createBlock(x,{key:1,type:"info"},{default:e.withCtx((()=>c[6]||(c[6]=[e.createTextVNode("禁用")]))),_:1,__:[6]}))])),_:1}),e.createVNode(f,{prop:"describe",label:"部门描述","show-overflow-tooltip":""}),e.createVNode(f,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),e.createVNode(f,{label:"操作","show-overflow-tooltip":"",width:"140"},{default:e.withCtx((a=>[e.createVNode(h,{size:"small",text:"",type:"primary",onClick:c[1]||(c[1]=e=>s("add"))},{default:e.withCtx((()=>c[7]||(c[7]=[e.createTextVNode("新增")]))),_:1,__:[7]}),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return t="edit",o=a.row,void d.value.openDialog(t,o);var t,o}},{default:e.withCtx((()=>c[8]||(c[8]=[e.createTextVNode("修改")]))),_:2,__:[8]},1032,["onClick"]),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return o=a.row,void t.ElMessageBox.confirm(`此操作将永久删除部门:${o.deptName}, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then((()=>{n(),t.ElMessage.success("删除成功")})).catch((()=>{}));var o}},{default:e.withCtx((()=>c[9]||(c[9]=[e.createTextVNode("删除")]))),_:2,__:[9]},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[v,i.tableData.loading]])])),_:1}),e.createVNode(e.unref(r),{ref_key:"deptDialogRef",ref:d,onRefresh:c[2]||(c[2]=e=>n())},null,512)])}}});exports.default=r;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-Bn94N9Go.mjs";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-BBBPm-pF.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, defineAsyncComponent, ref, reactive, onMounted, resolveComponent, resolveDirective, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, withDirectives, createTextVNode, createBlock, toDisplayString, unref } from "vue";
2
- import { E as ElMessageBox, b as ElMessage } from "./index-r_JuqtXk.mjs";
2
+ import { E as ElMessageBox, b as ElMessage } from "./index-TRAUcbXR.mjs";
3
3
  const _hoisted_1 = { class: "system-dept-container layout-padding" };
4
4
  const _hoisted_2 = { class: "system-dept-search mb15" };
5
5
  const __default__ = defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, shallowRef, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, mergeProps, createTextVNode, toDisplayString } from "vue";
2
- import { s as showPopup$1 } from "./index-r_JuqtXk.mjs";
3
- import { _ as _sfc_main$1 } from "./popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BjhHX4Xu.mjs";
2
+ import { s as showPopup$1 } from "./index-TRAUcbXR.mjs";
3
+ import { _ as _sfc_main$1 } from "./popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BDkErg_Y.mjs";
4
4
  function showPopup(row) {
5
5
  return new Promise((resolve) => {
6
6
  showPopup$1(
@@ -1,8 +1,8 @@
1
1
  import { ref, defineComponent, resolveComponent, resolveDirective, createElementBlock, openBlock, withDirectives, createVNode, unref, withCtx, createTextVNode } from "vue";
2
- import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-r_JuqtXk.mjs";
3
- import { u as useSystemController } from "./index-C-D6B4gE.mjs";
4
- import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-Bn94N9Go.mjs";
5
- import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-B4PpcIjR.mjs";
2
+ import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-TRAUcbXR.mjs";
3
+ import { u as useSystemController } from "./index-Dptdqip4.mjs";
4
+ import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-BBBPm-pF.mjs";
5
+ import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-DAqGGTu4.mjs";
6
6
  const assign = (params, title) => {
7
7
  return Object.assign(params, { other_log_info: { title } });
8
8
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),l=require("./index-CLg8D-mf.js"),o=require("./logo-mini-DwRdfcE7.js"),n={class:"login-container flex"},a={class:"login-left"},i={class:"login-left-logo"},r=["src"],c={class:"login-left-logo-text"},s={class:"login-left-logo-text-msg"},d={class:"login-right flex"},m={class:"login-right-warp flex-margin"},g={class:"login-right-warp-mian"},u={class:"login-right-warp-main-title"},p={class:"login-right-warp-main-form"},v={key:0},f=e.defineComponent({name:"loginIndex"}),V=e.defineComponent({...f,setup(f){const V=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./account-DBLaucky.js"))))),N=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./scan-D5-O1C88.js"))))),E=l.useThemeConfig(),{themeConfig:b}=t.storeToRefs(E),h=e.reactive({tabsActiveName:"account",isScan:!1}),x=e.computed((()=>b.value));return e.onMounted((()=>{l.NextLoading.done()})),(t,l)=>{const f=e.resolveComponent("el-tab-pane"),E=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("div",i,[e.createElementVNode("img",{src:e.unref(o.logoMini)},null,8,r),e.createElementVNode("div",c,[e.createElementVNode("span",null,e.toDisplayString(x.value.globalViceTitle),1),e.createElementVNode("span",s,e.toDisplayString(x.value.globalViceTitleMsg),1)])]),l[1]||(l[1]=e.createElementVNode("div",{class:"login-left-img"},null,-1))]),e.createElementVNode("div",d,[e.createElementVNode("div",m,[l[2]||(l[2]=e.createElementVNode("span",{class:"login-right-warp-one"},null,-1)),l[3]||(l[3]=e.createElementVNode("span",{class:"login-right-warp-two"},null,-1)),e.createElementVNode("div",g,[e.createElementVNode("div",u,e.toDisplayString(x.value.globalTitle)+" 欢迎您!",1),e.createElementVNode("div",p,[h.isScan?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(E,{modelValue:h.tabsActiveName,"onUpdate:modelValue":l[0]||(l[0]=e=>h.tabsActiveName=e)},{default:e.withCtx((()=>[e.createVNode(f,{label:"账号密码登录",name:"account"},{default:e.withCtx((()=>[e.createVNode(e.unref(V))])),_:1})])),_:1},8,["modelValue"])])),h.isScan?(e.openBlock(),e.createBlock(e.unref(N),{key:1})):e.createCommentVNode("",!0)])])])])])}}}),N=l._export_sfc(V,[["__scopeId","data-v-9313bb0c"]]);exports.default=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),l=require("./index-jq2pSqMh.js"),o=require("./logo-mini-DwRdfcE7.js"),n={class:"login-container flex"},a={class:"login-left"},i={class:"login-left-logo"},r=["src"],c={class:"login-left-logo-text"},s={class:"login-left-logo-text-msg"},d={class:"login-right flex"},m={class:"login-right-warp flex-margin"},g={class:"login-right-warp-mian"},u={class:"login-right-warp-main-title"},p={class:"login-right-warp-main-form"},v={key:0},f=e.defineComponent({name:"loginIndex"}),V=e.defineComponent({...f,setup(f){const V=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./account-Cl94Faxz.js"))))),N=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./scan-DPtMpamW.js"))))),E=l.useThemeConfig(),{themeConfig:b}=t.storeToRefs(E),h=e.reactive({tabsActiveName:"account",isScan:!1}),x=e.computed((()=>b.value));return e.onMounted((()=>{l.NextLoading.done()})),(t,l)=>{const f=e.resolveComponent("el-tab-pane"),E=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("div",i,[e.createElementVNode("img",{src:e.unref(o.logoMini)},null,8,r),e.createElementVNode("div",c,[e.createElementVNode("span",null,e.toDisplayString(x.value.globalViceTitle),1),e.createElementVNode("span",s,e.toDisplayString(x.value.globalViceTitleMsg),1)])]),l[1]||(l[1]=e.createElementVNode("div",{class:"login-left-img"},null,-1))]),e.createElementVNode("div",d,[e.createElementVNode("div",m,[l[2]||(l[2]=e.createElementVNode("span",{class:"login-right-warp-one"},null,-1)),l[3]||(l[3]=e.createElementVNode("span",{class:"login-right-warp-two"},null,-1)),e.createElementVNode("div",g,[e.createElementVNode("div",u,e.toDisplayString(x.value.globalTitle)+" 欢迎您!",1),e.createElementVNode("div",p,[h.isScan?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(E,{modelValue:h.tabsActiveName,"onUpdate:modelValue":l[0]||(l[0]=e=>h.tabsActiveName=e)},{default:e.withCtx((()=>[e.createVNode(f,{label:"账号密码登录",name:"account"},{default:e.withCtx((()=>[e.createVNode(e.unref(V))])),_:1})])),_:1},8,["modelValue"])])),h.isScan?(e.openBlock(),e.createBlock(e.unref(N),{key:1})):e.createCommentVNode("",!0)])])])])])}}}),N=l._export_sfc(V,[["__scopeId","data-v-9313bb0c"]]);exports.default=N;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BB11oxXz.js"),a=require("./formConfig-CIBmO_f0.js"),n=require("./index-CLg8D-mf.js"),r=require("./index-CGt2OJxF.js"),o=require("./useConfigInfo-2zEYLSSs.js"),u=n.useMenuController(),l=r.useFieldConfigController();const c={class:"system-user-container layout-padding"},s={class:"flex-1"},i=e.defineComponent({name:"formSetting"}),d=e.defineComponent({...i,setup(n){const r=e.ref();let i=e.ref({});const{currentPage:d,onChangeSystem:f,changeNode:v,reGetFormByMenuFn:g,sysData:m}=function(t,a){const n=o.useConfigInfo();let r=e.ref("");const c=e.ref({});let s=e.ref();const i=e.ref(),d=e=>{u.getMenuList({project_code:e.project_code}).then((e=>{1==e.code&&(i.value=f(e.data||[]))})).catch((e=>{}))},f=e=>e.map((e=>(e.label=e.meta.title,e.value=e.name,e.children&&e.children.length>0&&(e.children=f(e.children||[])),e))),v=e=>{l.getFormByMenu(e).then((e=>{1==e.code&&(e.data.length>0?(c.value=e.data||[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig(e.data))):(c.value=[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig([]))))}))};return{currentPage:r,onChangeSystem:e=>{s.value=e,c.value={},r.value="",a.value={},d(e)},menuData:i,changeNode:e=>{if(a.value.id==e.id)return;r.value=e.value,a.value=e,n.$patch({form_menu:e});let t={menu_id:e.id,project_code:s.value.project_code};v(t)},currentPageData:a,reGetFormByMenuFn:()=>{let e={menu_id:a.value.id,project_code:s.value.project_code};v(e)},sysData:s}}(r,i);return(n,o)=>{const u=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(u,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createVNode(t._sfc_main,{onChangeNode:e.unref(v),onChangeSystem:e.unref(f)},null,8,["onChangeNode","onChangeSystem"]),e.withDirectives(e.createElementVNode("div",s,[e.createVNode(a.default,{ref_key:"formRef",ref:r,class:"h-full",currentPageData:e.unref(i),onRefresh:e.unref(g),sysData:e.unref(m)},null,8,["currentPageData","onRefresh","sysData"])],512),[[e.vShow,e.unref(d)]])])),_:1})])}}}),f=n._export_sfc(d,[["__scopeId","data-v-a1cd6eed"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CRn4HoE9.js"),a=require("./formConfig-z0G8cIio.js"),n=require("./index-jq2pSqMh.js"),r=require("./index-Bu_X6ySS.js"),o=require("./useConfigInfo-2zEYLSSs.js"),u=n.useMenuController(),l=r.useFieldConfigController();const c={class:"system-user-container layout-padding"},s={class:"flex-1"},i=e.defineComponent({name:"formSetting"}),d=e.defineComponent({...i,setup(n){const r=e.ref();let i=e.ref({});const{currentPage:d,onChangeSystem:f,changeNode:v,reGetFormByMenuFn:g,sysData:m}=function(t,a){const n=o.useConfigInfo();let r=e.ref("");const c=e.ref({});let s=e.ref();const i=e.ref(),d=e=>{u.getMenuList({project_code:e.project_code}).then((e=>{1==e.code&&(i.value=f(e.data||[]))})).catch((e=>{}))},f=e=>e.map((e=>(e.label=e.meta.title,e.value=e.name,e.children&&e.children.length>0&&(e.children=f(e.children||[])),e))),v=e=>{l.getFormByMenu(e).then((e=>{1==e.code&&(e.data.length>0?(c.value=e.data||[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig(e.data))):(c.value=[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig([]))))}))};return{currentPage:r,onChangeSystem:e=>{s.value=e,c.value={},r.value="",a.value={},d(e)},menuData:i,changeNode:e=>{if(a.value.id==e.id)return;r.value=e.value,a.value=e,n.$patch({form_menu:e});let t={menu_id:e.id,project_code:s.value.project_code};v(t)},currentPageData:a,reGetFormByMenuFn:()=>{let e={menu_id:a.value.id,project_code:s.value.project_code};v(e)},sysData:s}}(r,i);return(n,o)=>{const u=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(u,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createVNode(t._sfc_main,{onChangeNode:e.unref(v),onChangeSystem:e.unref(f)},null,8,["onChangeNode","onChangeSystem"]),e.withDirectives(e.createElementVNode("div",s,[e.createVNode(a.default,{ref_key:"formRef",ref:r,class:"h-full",currentPageData:e.unref(i),onRefresh:e.unref(g),sysData:e.unref(m)},null,8,["currentPageData","onRefresh","sysData"])],512),[[e.vShow,e.unref(d)]])])),_:1})])}}}),f=n._export_sfc(d,[["__scopeId","data-v-a1cd6eed"]]);exports.default=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-D8zU-9_Q.js");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-BgCGVY_F.js");exports.default=e._sfc_main;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, createElementVNode, unref, toDisplayString, createCommentVNode, createBlock, createVNode, withCtx } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
- import { a as useThemeConfig, N as NextLoading, _ as _export_sfc } from "./index-r_JuqtXk.mjs";
3
+ import { a as useThemeConfig, N as NextLoading, _ as _export_sfc } from "./index-TRAUcbXR.mjs";
4
4
  import { l as logoMini } from "./logo-mini-BQ9BrQ1U.mjs";
5
5
  const _hoisted_1 = { class: "login-container flex" };
6
6
  const _hoisted_2 = { class: "login-left" };
@@ -20,8 +20,8 @@ const __default__ = defineComponent({
20
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  ...__default__,
22
22
  setup(__props) {
23
- const Account = defineAsyncComponent(() => import("./account-DPca5jMd.mjs"));
24
- const Scan = defineAsyncComponent(() => import("./scan-BcDWM0Fl.mjs"));
23
+ const Account = defineAsyncComponent(() => import("./account-BHpTRHlj.mjs"));
24
+ const Scan = defineAsyncComponent(() => import("./scan-D8saaMbh.mjs"));
25
25
  const storesThemeConfig = useThemeConfig();
26
26
  const { themeConfig } = storeToRefs(storesThemeConfig);
27
27
  const state = reactive({
@@ -1,9 +1,9 @@
1
1
  import { reactive, defineComponent, ref, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createCommentVNode, unref, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, createTextVNode } from "vue";
2
- import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Bx7wiJ-H.mjs";
3
- import { S as Session, c as _, n as useMenuController, b as ElMessage, _ as _export_sfc } from "./index-r_JuqtXk.mjs";
4
- import { u as useDictController } from "./index-B8jPNj2g.mjs";
5
- import { u as useDataPermissionController } from "./index-D2WynQHJ.mjs";
6
- import { _ as _sfc_main$2 } from "./hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-NoydhkqM.mjs";
2
+ import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-zb1CfhJO.mjs";
3
+ import { S as Session, c as _, n as useMenuController, b as ElMessage, _ as _export_sfc } from "./index-TRAUcbXR.mjs";
4
+ import { u as useDictController } from "./index-r21sN-kn.mjs";
5
+ import { u as useDataPermissionController } from "./index-DjChM5fh.mjs";
6
+ import { _ as _sfc_main$2 } from "./hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CIKlg73f.mjs";
7
7
  const dictController = useDictController();
8
8
  const menuController = useMenuController();
9
9
  const dataPermissionController = useDataPermissionController();
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CLg8D-mf.js"),o={class:"layout-footer pb15"},r=e.defineComponent({name:"layoutFooter"}),a=e.defineComponent({...r,setup:t=>(t,r)=>(e.openBlock(),e.createElementBlock("div",o,r[0]||(r[0]=[e.createElementVNode("div",{class:"layout-footer-warp"},[e.createElementVNode("div",null,"hs-admin "),e.createElementVNode("div",{class:"mt5"},"杭州市华速科技公司版权所有")],-1)])))}),l=t._export_sfc(a,[["__scopeId","data-v-51817e7c"]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-jq2pSqMh.js"),o={class:"layout-footer pb15"},r=e.defineComponent({name:"layoutFooter"}),a=e.defineComponent({...r,setup:t=>(t,r)=>(e.openBlock(),e.createElementBlock("div",o,r[0]||(r[0]=[e.createElementVNode("div",{class:"layout-footer-warp"},[e.createElementVNode("div",null,"hs-admin "),e.createElementVNode("div",{class:"mt5"},"杭州市华速科技公司版权所有")],-1)])))}),l=t._export_sfc(a,[["__scopeId","data-v-51817e7c"]]);exports.default=l;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, reactive, onMounted, resolveComponent, resolveDirective, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, withDirectives, createBlock, createCommentVNode, createTextVNode, unref, toDisplayString } from "vue";
2
- import { _ as _sfc_main$1 } from "./bcSwitchSystems.vue_vue_type_script_setup_true_lang-B6CRvgAq.mjs";
2
+ import { _ as _sfc_main$1 } from "./bcSwitchSystems.vue_vue_type_script_setup_true_lang-woPN5FOt.mjs";
3
3
  import { storeToRefs } from "pinia";
4
- import { C as useRoutesList, q as isDev, n as useMenuController, E as ElMessageBox, b as ElMessage, K as setBackEndControlRefreshRoutes, s as showPopup, o as copyText, _ as _export_sfc } from "./index-r_JuqtXk.mjs";
5
- import { _ as _sfc_main$3 } from "./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Co59k9t0.mjs";
6
- import { _ as _sfc_main$2 } from "./copyMenuConfig.vue_vue_type_script_setup_true_lang-C0N9OEyQ.mjs";
4
+ import { C as useRoutesList, q as isDev, n as useMenuController, E as ElMessageBox, b as ElMessage, K as setBackEndControlRefreshRoutes, s as showPopup, o as copyText, _ as _export_sfc } from "./index-TRAUcbXR.mjs";
5
+ import { _ as _sfc_main$3 } from "./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbCEKow.mjs";
6
+ import { _ as _sfc_main$2 } from "./copyMenuConfig.vue_vue_type_script_setup_true_lang-DQjvYuca.mjs";
7
7
  const _hoisted_1 = { class: "system-menu-container layout-padding" };
8
8
  const _hoisted_2 = { class: "system-menu-search mb15" };
9
9
  const _hoisted_3 = { class: "flex" };
Binary file
@@ -1,4 +1,4 @@
1
- import { r as request } from "./index-r_JuqtXk.mjs";
1
+ import { r as request } from "./index-TRAUcbXR.mjs";
2
2
  const assign = (params, title) => {
3
3
  return Object.assign(params, { other_log_info: { title } });
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { ref, defineComponent, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withDirectives, unref, createElementVNode, vShow } from "vue";
2
- import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Bx7wiJ-H.mjs";
3
- import hsFormConfig from "./formConfig-Bg34VkAM.mjs";
4
- import { n as useMenuController, _ as _export_sfc } from "./index-r_JuqtXk.mjs";
5
- import { u as useFieldConfigController } from "./index-BX5O6L3X.mjs";
2
+ import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-zb1CfhJO.mjs";
3
+ import hsFormConfig from "./formConfig-DlCy45VH.mjs";
4
+ import { n as useMenuController, _ as _export_sfc } from "./index-TRAUcbXR.mjs";
5
+ import { u as useFieldConfigController } from "./index-NVrzh7Mu.mjs";
6
6
  import { u as useConfigInfo } from "./useConfigInfo-PTkkdx-l.mjs";
7
7
  const menu = useMenuController();
8
8
  const fieldConfig = useFieldConfigController();
@@ -1 +1 @@
1
- "use strict";const t=require("./index-CLg8D-mf.js"),e=(t,e)=>Object.assign(t,{other_log_info:{title:e}}),d=(d={})=>(d=e(d,"字典查询"),t.request({url:"/scmp-web/pri/get_dict_list_by_project",method:"get",params:d})),i=(d={})=>(d=e(d,"添加字典项前校验"),t.request({url:"/scmp-web/pri/add_dict_child_info_check",method:"post",data:d})),s=(d={})=>(d=e(d,"添加或更新字典项"),t.request({url:"/scmp-web/pri/add_dict_child_info",method:"post",data:d})),p=(d={})=>(d=e(d,"添加字典"),t.request({url:"/scmp-web/pri/add_dict_info",method:"post",data:d})),o=(d={})=>(d=e(d,"根据数据字典code获取对应的字典项列表"),t.request({url:"/scmp-web/pri/get_childs_by_dict_code",method:"get",params:d})),r=(d={})=>(d=e(d,"删除字典"),t.request({url:"/scmp-web/pri/del_dict_info",method:"post",data:d})),c=(d={})=>(d=e(d,"字典项查询"),t.request({url:"/scmp-web/pri/list_page_dict_child",method:"get",params:d})),a=(d={})=>(d=e(d,"删除字典项"),t.request({url:"/scmp-web/pri/del_dict_child_info",method:"post",data:d})),l=(d={})=>(d=e(d,"字典项默认值设置"),t.request({url:"/scmp-web/pri/update_default",method:"post",data:d})),_=(d={})=>(d=e(d,"字典项开关"),t.request({url:"/scmp-web/pri/update_switch",method:"post",data:d})),u=(d={})=>(d=e(d,"字典查询"),t.request({url:"/qwp-web/pri/get_dict_list_by_companyid",method:"get",params:d})),m=(d={})=>(d=e(d,"根据code字符串,获取对应的字典项列表(map)"),t.request({url:"/qwp-web/pri/get_map_childs",method:"get",params:d}));exports.useDictController=function(){return{getDictListByProject:d,postAddDictChildInfoCheck:i,postAddDictChildInfo:s,postAddDictInfo:p,getChildsByDictCode:o,postDelDictInfo:r,getListPageDictChild:c,postDelDictChildInfo:a,postUpdateDefault:l,postUpdateSwitch:_,getDictListByCompanyid:u,getMapChilds:m}};
1
+ "use strict";const t=require("./index-jq2pSqMh.js"),e=(t,e)=>Object.assign(t,{other_log_info:{title:e}}),d=(d={})=>(d=e(d,"字典查询"),t.request({url:"/scmp-web/pri/get_dict_list_by_project",method:"get",params:d})),i=(d={})=>(d=e(d,"添加字典项前校验"),t.request({url:"/scmp-web/pri/add_dict_child_info_check",method:"post",data:d})),s=(d={})=>(d=e(d,"添加或更新字典项"),t.request({url:"/scmp-web/pri/add_dict_child_info",method:"post",data:d})),p=(d={})=>(d=e(d,"添加字典"),t.request({url:"/scmp-web/pri/add_dict_info",method:"post",data:d})),o=(d={})=>(d=e(d,"根据数据字典code获取对应的字典项列表"),t.request({url:"/scmp-web/pri/get_childs_by_dict_code",method:"get",params:d})),r=(d={})=>(d=e(d,"删除字典"),t.request({url:"/scmp-web/pri/del_dict_info",method:"post",data:d})),c=(d={})=>(d=e(d,"字典项查询"),t.request({url:"/scmp-web/pri/list_page_dict_child",method:"get",params:d})),a=(d={})=>(d=e(d,"删除字典项"),t.request({url:"/scmp-web/pri/del_dict_child_info",method:"post",data:d})),l=(d={})=>(d=e(d,"字典项默认值设置"),t.request({url:"/scmp-web/pri/update_default",method:"post",data:d})),_=(d={})=>(d=e(d,"字典项开关"),t.request({url:"/scmp-web/pri/update_switch",method:"post",data:d})),u=(d={})=>(d=e(d,"字典查询"),t.request({url:"/qwp-web/pri/get_dict_list_by_companyid",method:"get",params:d})),m=(d={})=>(d=e(d,"根据code字符串,获取对应的字典项列表(map)"),t.request({url:"/qwp-web/pri/get_map_childs",method:"get",params:d}));exports.useDictController=function(){return{getDictListByProject:d,postAddDictChildInfoCheck:i,postAddDictChildInfo:s,postAddDictInfo:p,getChildsByDictCode:o,postDelDictInfo:r,getListPageDictChild:c,postDelDictChildInfo:a,postUpdateDefault:l,postUpdateSwitch:_,getDictListByCompanyid:u,getMapChilds:m}};
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-C26luWSc.mjs";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-Bp9cAj9F.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { r as request } from "./index-r_JuqtXk.mjs";
1
+ import { r as request } from "./index-TRAUcbXR.mjs";
2
2
  const assign = (params, title) => {
3
3
  return Object.assign(params, { title });
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-DE9ZdDbh.mjs";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_setup_true_lang-BK1g0C97.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, defineAsyncComponent, onBeforeMount, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
- import { a as useThemeConfig, T as systemStore, m as mittBus } from "./index-r_JuqtXk.mjs";
3
+ import { a as useThemeConfig, T as systemStore, m as mittBus } from "./index-TRAUcbXR.mjs";
4
4
  const __default__ = defineComponent({
5
5
  name: "layout"
6
6
  });
@@ -8,10 +8,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  ...__default__,
9
9
  setup(__props) {
10
10
  const layouts = {
11
- defaults: defineAsyncComponent(() => import("./defaults-oPx_MLy2.mjs")),
12
- classic: defineAsyncComponent(() => import("./classic-DoGRnpWl.mjs")),
13
- transverse: defineAsyncComponent(() => import("./transverse-BJWssINP.mjs")),
14
- columns: defineAsyncComponent(() => import("./columns-lNjAq9Bh.mjs"))
11
+ defaults: defineAsyncComponent(() => import("./defaults-DR7_P-F5.mjs")),
12
+ classic: defineAsyncComponent(() => import("./classic-pACGuIYA.mjs")),
13
+ transverse: defineAsyncComponent(() => import("./transverse-BO6xUJm8.mjs")),
14
+ columns: defineAsyncComponent(() => import("./columns-D9Fn0Itx.mjs"))
15
15
  };
16
16
  const storesThemeConfig = useThemeConfig();
17
17
  const { themeConfig } = storeToRefs(storesThemeConfig);