hs-admin-ui 14.9.7 → 14.9.9
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.
- package/dist/{401-B2664EM7.mjs → 401-BFDt7lbE.mjs} +1 -1
- package/dist/{401-DcJmGAUX.js → 401-Czamd6sE.js} +1 -1
- package/dist/{404-fv0iPCdQ.mjs → 404-CuztUn1A.mjs} +1 -1
- package/dist/{404-fv0iPCdQ.mjs.gz → 404-CuztUn1A.mjs.gz} +0 -0
- package/dist/{404-D6F1tMj8.js → 404-DlqlKYYy.js} +1 -1
- package/dist/404-DlqlKYYy.js.gz +0 -0
- package/dist/{account-D7MVKm4X.js → account-BRcIgRbX.js} +1 -1
- package/dist/{account-Thw3yPkj.mjs → account-W2Uh-hIZ.mjs} +1 -1
- package/dist/{aside-BH9fIjPy.mjs → aside-Bf3ucXOO.mjs} +3 -3
- package/dist/{aside-D_UDniEx.js → aside-BfRfaFcn.js} +1 -1
- package/dist/{baseFormConfig-BslNz_i3.mjs → baseFormConfig-DXu2oDjB.mjs} +1 -1
- package/dist/baseFormConfig-DXu2oDjB.mjs.gz +0 -0
- package/dist/{baseFormConfig-C7yz63b9.js → baseFormConfig-DwzqQ9xc.js} +1 -1
- package/dist/{baseTableConfig-65s4Lyje.mjs → baseTableConfig-BO_fBhJe.mjs} +1 -1
- package/dist/baseTableConfig-BO_fBhJe.mjs.gz +0 -0
- package/dist/{baseTableConfig-CiOf6jJ9.js → baseTableConfig-BrZzesk9.js} +1 -1
- package/dist/baseTableConfig-BrZzesk9.js.gz +0 -0
- package/dist/{bcFormConfig-CpXvornu.js → bcFormConfig-B5tOzELF.js} +1 -1
- package/dist/{bcFormConfig-Co5YM0e8.mjs → bcFormConfig-wXgWMhwg.mjs} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DSU--KCn.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BQrvOF3H.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Bd6NUQpP.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BeT8HMK-.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-tcuPDn2Z.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-B-EjjIgm.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DuniOxRF.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-GkR1krgc.mjs} +2 -2
- package/dist/{btnIndex-W0XtLRYo.mjs → btnIndex-BQTFImUQ.mjs} +3 -3
- package/dist/btnIndex-BQTFImUQ.mjs.gz +0 -0
- package/dist/{btnIndex-C-8iJMRm.js → btnIndex-C1f9ET_P.js} +1 -1
- package/dist/{classic-C2yHUfSv.mjs → classic-C9AnBNpK.mjs} +5 -5
- package/dist/{classic-Cy8kq8UQ.js → classic-peLkaaGI.js} +1 -1
- package/dist/{cloneConfigDialog-d1kHpgVD.js → cloneConfigDialog-B2GpCMKR.js} +1 -1
- package/dist/cloneConfigDialog-B2GpCMKR.js.gz +0 -0
- package/dist/{cloneConfigDialog-DYQoBsA6.mjs → cloneConfigDialog-B5WqZFBJ.mjs} +3 -3
- package/dist/cloneConfigDialog-B5WqZFBJ.mjs.gz +0 -0
- package/dist/{columns-DwzV_CWD.mjs → columns-4L1NtbiL.mjs} +5 -5
- package/dist/{columns-BFAGYa3f.js → columns-BpFMatXA.js} +1 -1
- package/dist/{columnsAside-BGTxjLt1.js → columnsAside-CfE0QLjX.js} +1 -1
- package/dist/{columnsAside-y-_AOcUl.mjs → columnsAside-Cwncb9_b.mjs} +1 -1
- package/dist/{contextmenu-B5SuknDj.mjs → contextmenu-BlGW9d-N.mjs} +1 -1
- package/dist/{contextmenu-wDdKF6iS.mjs → contextmenu-BzAJWsQG.mjs} +1 -1
- package/dist/{contextmenu-KKP67r6R.js → contextmenu-C4jaEFU4.js} +1 -1
- package/dist/{contextmenu-D41p_V6p.js → contextmenu-DvBXyN-G.js} +1 -1
- package/dist/{copyMenuConfig-B9EHNb71.mjs → copyMenuConfig-C2CboeHl.mjs} +1 -1
- package/dist/{copyMenuConfig-BA1PEORk.js → copyMenuConfig-DNITN9bC.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BpolgrfZ.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BbzmKGdZ.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-tVIj88H1.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-CQlvyvt0.js} +1 -1
- package/dist/{copySystem-BI7xqVVQ.mjs → copySystem-DRKRZXdK.mjs} +1 -1
- package/dist/{copySystem-BKb9fUif.js → copySystem-HomPf5IE.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DroHZXCN.mjs → copySystem.vue_vue_type_script_setup_true_lang-BBQVP_yw.mjs} +2 -2
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-8K8b00DA.js → copySystem.vue_vue_type_script_setup_true_lang-BNxAeH7B.js} +1 -1
- package/dist/{defaults-DICiWlRZ.mjs → defaults-CqdB_wIG.mjs} +4 -4
- package/dist/{defaults-D7uejh-D.js → defaults-DXwL1IXF.js} +1 -1
- package/dist/{dialog-BWDXaHql.js → dialog-B1bOwqgx.js} +1 -1
- package/dist/{dialog-CLVzoVm6.js → dialog-BMvlWCal.js} +1 -1
- package/dist/{dialog-CNY-7jnF.js → dialog-CRPjfCcH.js} +1 -1
- package/dist/{dialog-BG1smfnN.mjs → dialog-CspCBbnm.mjs} +1 -1
- package/dist/{dialog-BwdpfYVi.mjs → dialog-DhPI1NWn.mjs} +1 -1
- package/dist/{dialog-B1VF9KVV.mjs → dialog-y_hciTBs.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B5ElqMA-.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C4ziQ2V8.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-bGQojSVq.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CpJ0doG9.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BZC5Xcb4.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BHvqFgsG.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BHvqFgsG.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbRLTZE.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9qDAA2j.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9qDAA2j.mjs.gz +0 -0
- package/dist/{dictDialog-y0t3eSmG.mjs → dictDialog-DYx2bZ1-.mjs} +1 -1
- package/dist/{dictDialog-CI4tDOy1.js → dictDialog-QMFbDwMR.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BVBglCrm.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BS1AhJrS.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DLhWGlkG.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DqDs13a1.mjs} +2 -2
- package/dist/{dictItemDialog-DCLf6jZn.mjs → dictItemDialog---UZ95FQ.mjs} +1 -1
- package/dist/{dictItemDialog-BeYKb7m9.js → dictItemDialog-DdOJsvzI.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CB3k_aH8.js → dictItemDialog.vue_vue_type_script_setup_true_lang-B3UEd7Rs.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-B772j_v0.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-Bedq3xd9.mjs} +2 -2
- package/dist/{formConfig-KRC_nj20.mjs → formConfig-C_pjR9ca.mjs} +6 -6
- package/dist/formConfig-C_pjR9ca.mjs.gz +0 -0
- package/dist/{formConfig-CbiRVzVf.js → formConfig-Cy4_fRfl.js} +1 -1
- package/dist/formConfig-Cy4_fRfl.js.gz +0 -0
- package/dist/{header-DCeFqILr.mjs → header-CzPBCShb.mjs} +2 -2
- package/dist/{header-ClulKcuy.js → header-OdL_6Hv2.js} +1 -1
- package/dist/{horizontal-BdeSs5ln.js → horizontal-BMEfIQxO.js} +1 -1
- package/dist/{horizontal-CeA4cl4U.mjs → horizontal-BofaFNiL.mjs} +2 -2
- package/dist/{hsAttrBtn-CoLNhKDv.js → hsAttrBtn-kHZCZjsy.js} +1 -1
- package/dist/{hsAttrBtn-C0dJCfYN.mjs → hsAttrBtn-paP18oqa.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-D7QkIHr0.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-B-hsHQTz.mjs} +4 -4
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-NSL1jSGG.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CsuGwJ76.js} +1 -1
- package/dist/{hsAttrForm-DmAqYicB.mjs → hsAttrForm-D45c5kA-.mjs} +1 -1
- package/dist/{hsAttrForm-BuqTbDht.js → hsAttrForm-Yuo-eynS.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BlQc26FD.js → hsAttrForm.vue_vue_type_script_setup_true_lang-B23G7M0h.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-D7CbFRFj.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CTV2_vm5.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CTV2_vm5.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-C4fn09KA.mjs → hsBtnConfigList-Bd_XIYNd.mjs} +1 -1
- package/dist/{hsBtnConfigList-D4tYB_np.js → hsBtnConfigList-D-ltkwf8.js} +1 -1
- package/dist/{hsBtnItemConfig-fmn_jd3W.mjs → hsBtnItemConfig-COF-EIDs.mjs} +1 -1
- package/dist/{hsBtnItemConfig-7nCqlImW.js → hsBtnItemConfig-CqZoo2GA.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-_WvbMdOx.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B60wqkCL.mjs} +3 -3
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BWfcu6O1.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-yHpC9yLo.js} +1 -1
- package/dist/{hsBtnPanel-Z-TLC5qd.mjs → hsBtnPanel-CXy-ISKU.mjs} +1 -1
- package/dist/{hsBtnPanel-9gLZJK5r.js → hsBtnPanel-D9LV-aVE.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BfAK0gQD.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BSaBgAAJ.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CNMFTaGA.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C4Bg_B0u.js} +1 -1
- package/dist/{hsExpand-BPtHosRA.mjs → hsExpand-D0Mq8xEy.mjs} +1 -1
- package/dist/{hsExpand-CVVQSo1k.js → hsExpand-iWTUTRoJ.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang--E5GkTqR.js → hsExpand.vue_vue_type_script_setup_true_lang-BQYBJ3aJ.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DR5pqzhI.mjs → hsExpand.vue_vue_type_script_setup_true_lang-CXPJEr8g.mjs} +1 -1
- package/dist/{hsFormConfig-CNw-f5YC.js → hsFormConfig-BLbARikJ.js} +1 -1
- package/dist/{hsFormConfig-MBcSgXcU.mjs → hsFormConfig-E6w8bDVS.mjs} +1 -1
- package/dist/{hsFormConfigList-KS8Uw150.js → hsFormConfigList-6MZFwOnb.js} +1 -1
- package/dist/{hsFormConfigList-LHqUnWqx.mjs → hsFormConfigList-DVeOgPMS.mjs} +2 -2
- package/dist/hsFormConfigList-DVeOgPMS.mjs.gz +0 -0
- package/dist/{hsFormPanel-BBLbsPc-.js → hsFormPanel-B7TyEy3J.js} +1 -1
- package/dist/{hsFormPanel-Djd3OhIT.mjs → hsFormPanel-DOdZBMdY.mjs} +6 -6
- package/dist/hsFormPanel-DOdZBMdY.mjs.gz +0 -0
- package/dist/{hsFormParse-sZJOWDdZ.mjs → hsFormParse-BNQ4QQ6H.mjs} +1 -1
- package/dist/{hsFormParse-1GY_3EyN.js → hsFormParse-CGgGtpgI.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-SZQwL1nF.js → hsFormParse.vue_vue_type_script_setup_true_lang-CsEORpVn.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-COx_bW0p.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DBcnwsbC.mjs} +3 -3
- package/dist/{hsPanelItem-BKaxatVR.mjs → hsPanelItem-C3Nej2vC.mjs} +1 -1
- package/dist/{hsPanelItem-DumHNB5j.js → hsPanelItem-DrMdDpjt.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D23ckkJp.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BkStooca.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BSNTjxGT.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DMUqUKYw.js} +1 -1
- package/dist/{index copy-BelU_FzJ.js → index copy-Bx-VM2lW.js } +1 -1
- package/dist/{index copy-DNxt4Tqc.mjs → index copy-DGieJEdQ.mjs } +1 -1
- package/dist/{index copy-CV8FLBnM.js → index copy-Reaw-vY3.js } +1 -1
- package/dist/{index copy-D8n9k5SV.mjs → index copy-m4kS1IEq.mjs } +1 -1
- package/dist/{index-CfoUTawK.js → index--X3Jj2xX.js} +1 -1
- package/dist/index--X3Jj2xX.js.gz +0 -0
- package/dist/{index-mOvinDul.js → index-B4khoCAY.js} +1 -1
- package/dist/{index-BiwL31Iz.js → index-B80TwP0C.js} +1 -1
- package/dist/{index-OREystlE.js → index-BAOQZdqa.js} +1 -1
- package/dist/{index--VxfpiVc.mjs → index-BAbFkW1x.mjs} +1 -1
- package/dist/{index-F2QAn1DL.js → index-BJPZBObT.js} +3 -3
- package/dist/{index-F2QAn1DL.js.gz → index-BJPZBObT.js.gz} +0 -0
- package/dist/{index-B5a8PaC6.js → index-BLP1EL15.js} +1 -1
- package/dist/{index-Bj8NBUo4.js → index-BM02CrEG.js} +1 -1
- package/dist/index-BM02CrEG.js.gz +0 -0
- package/dist/{index-GBj5TQvF.mjs → index-BMy_NVGw.mjs} +1 -1
- package/dist/{index-DHKsvgZM.js → index-BOL_cjMV.js} +1 -1
- package/dist/{index-C9h0XGfO.mjs → index-BVQS7MSj.mjs} +1 -1
- package/dist/{index-DKZ8itF6.js → index-BWinv754.js} +1 -1
- package/dist/{index-B3zlpncc.mjs → index-BWvefrmj.mjs} +1 -1
- package/dist/{index-AN_9XxWA.mjs → index-BY3qhHRB.mjs} +4 -4
- package/dist/{index-BMBRg5jZ.js → index-BZU2rehY.js} +1 -1
- package/dist/{index-Bb3Mbl7T.mjs → index-BdFn4Iqr.mjs} +10 -10
- package/dist/index-BdFn4Iqr.mjs.gz +0 -0
- package/dist/{index-CB1W-lOM.js → index-Bgc9Fm5I.js} +1 -1
- package/dist/{index-DhJnFBAx.mjs → index-Bjp1jL5d.mjs} +1 -1
- package/dist/{index-DNqnyx7r.mjs → index-Bo9bpCbR.mjs} +1 -1
- package/dist/{index-C1ex22AK.js → index-BrtXS3K6.js} +1 -1
- package/dist/{index-BqZ47BOE.js → index-BuF0cVuL.js} +1 -1
- package/dist/{index-cWO58maV.mjs → index-BuTEbOMZ.mjs} +4 -4
- package/dist/{index-CnybuC2O.js → index-BvSanFvP.js} +1 -1
- package/dist/{index-7oEEyuK6.mjs → index-C0CUtURF.mjs} +1 -1
- package/dist/{index-UzQhX3pE.js → index-C1BnnZ8e.js} +1 -1
- package/dist/{index-BBi_R3gB.mjs → index-C1Hfhtvy.mjs} +1 -1
- package/dist/{index-C5Dpwwi9.mjs → index-C9nODl1i.mjs} +1 -1
- package/dist/{index-3QE4Z8Pk.js → index-C9q4e1N-.js} +1 -1
- package/dist/{index-4OwetxGB.js → index-CBO0jBkH.js} +1 -1
- package/dist/{index-DiAYUifO.js → index-CCq78SXN.js} +1 -1
- package/dist/{index-CE7T_LXk.mjs → index-CWwUr67Z.mjs} +1 -1
- package/dist/{index-CCKwPpB7.mjs → index-CaEo1Rd3.mjs} +1 -1
- package/dist/{index-B6Ef3bLT.mjs → index-Cdk8Iz-A.mjs} +3 -3
- package/dist/{index-BzAzpBmo.js → index-CgryS4Rp.js} +1 -1
- package/dist/{index-CBi7eFBL.js → index-ChLCx9Lp.js} +1 -1
- package/dist/{index-BBFTYMcM.mjs → index-CjGzbdc0.mjs} +5 -5
- package/dist/{index-CFoF-xf6.js → index-ClVlWObU.js} +1 -1
- package/dist/{index-9eA1YpM-.js → index-Cp62QpIB.js} +1 -1
- package/dist/{index-Bn6czLup.js → index-CqKP-OfZ.js} +1 -1
- package/dist/{index-lFnDQT8o.js → index-D-uUQ-24.js} +1 -1
- package/dist/{index-CXg-Ol66.mjs → index-DBOCFahb.mjs} +4 -4
- package/dist/index-DBOCFahb.mjs.gz +0 -0
- package/dist/{index-BU6kgiKr.js → index-DCJuEVP4.js} +1 -1
- package/dist/{index-DYh0BLsO.mjs → index-DE6ENfky.mjs} +1 -1
- package/dist/{index-DpbtL5tr.mjs → index-DGpKeOLK.mjs} +1 -1
- package/dist/index-DGpKeOLK.mjs.gz +0 -0
- package/dist/{index-CGBnIC8R.js → index-DNhM3KUw.js} +1 -1
- package/dist/{index-C6nV-RV0.js → index-DP0Gm0GO.js} +1 -1
- package/dist/{index-XGQNQUzP.js → index-DRBDvU5_.js} +1 -1
- package/dist/{index-Dgz09TV8.js → index-DS-28kV7.js} +1 -1
- package/dist/index-DS-28kV7.js.gz +0 -0
- package/dist/{index-BBsxZkRW.js → index-DSxMsMUw.js} +1 -1
- package/dist/{index-DQ0vNJAh.js → index-DUIlr_JY.js} +1 -1
- package/dist/{index-BKyxs3yt.js → index-DfpD5pYX.js} +1 -1
- package/dist/{index-DnlYglyZ.js → index-Dnjfv0CI.js} +1 -1
- package/dist/{index-COM5BDLf.mjs → index-DooJUJD2.mjs} +5 -5
- package/dist/{index-CBu326gz.mjs → index-DrK6n7jJ.mjs} +1 -1
- package/dist/{index-afdnfpHp.mjs → index-DsIBREq9.mjs} +20 -20
- package/dist/{index-afdnfpHp.mjs.gz → index-DsIBREq9.mjs.gz} +0 -0
- package/dist/{index-t7kj6F3P.mjs → index-DtQX6dKg.mjs} +2 -2
- package/dist/index-DtQX6dKg.mjs.gz +0 -0
- package/dist/{index-2LxUBiQV.mjs → index-DxE2wiJv.mjs} +3 -3
- package/dist/{index-1MRpEDwJ.mjs → index-Dy4zb_qG.mjs} +4 -4
- package/dist/index-Dy4zb_qG.mjs.gz +0 -0
- package/dist/{index-mtJ8y6G8.mjs → index-DyYKK2ax.mjs} +3 -3
- package/dist/{index-DoSG2vzt.mjs → index-F390p7dy.mjs} +1 -1
- package/dist/{index-ChUAzCC5.js → index-Jy3aiUJx.js} +1 -1
- package/dist/{index-COaRfCcj.mjs → index-NaU9YeEE.mjs} +2 -2
- package/dist/{index-Dcu5p3ud.js → index-SRyjKTub.js} +1 -1
- package/dist/{index-B9cisChj.mjs → index-UGxwrKay.mjs} +1 -1
- package/dist/{index-BzuzrLm6.mjs → index-Vs2G0g6P.mjs} +1 -1
- package/dist/{index-iDbKnZfu.js → index-WKkddTAO.js} +1 -1
- package/dist/{index-Dctl0sIp.mjs → index-aksmpac4.mjs} +1 -1
- package/dist/{index-wyV1orRO.js → index-fUMHgmhP.js} +1 -1
- package/dist/{index-Dx6jkKMY.mjs → index-iJSPteOY.mjs} +1 -1
- package/dist/{index-B5vrGltw.mjs → index-j01GNu9x.mjs} +1 -1
- package/dist/{index-56MaRHU9.mjs → index-jdtMDteJ.mjs} +3 -3
- package/dist/{index-DdIydFyH.mjs → index-mZJ4sIMm.mjs} +4 -4
- package/dist/{index-DqwirnAC.mjs → index-qFmIfueq.mjs} +1 -1
- package/dist/{index-DWYMcZRP.js → index-v3ZwNKs3.js} +1 -1
- package/dist/{index-DB_lZjhe.mjs → index-vxrpY2pW.mjs} +1 -1
- package/dist/{index-DXYCo6oX.mjs → index-wK_Ji9RZ.mjs} +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CokJmMuO.mjs → index.vue_vue_type_script_setup_true_lang-BHpEoaoE.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-akmnAvEE.mjs → index.vue_vue_type_script_setup_true_lang-CbUn-wfU.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-CbUn-wfU.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-RnTBYyN-.js → index.vue_vue_type_script_setup_true_lang-D4q1Xstd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BMINVyXv.mjs → index.vue_vue_type_script_setup_true_lang-DoZ_Ugix.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-DzGSZsRm.js → index.vue_vue_type_script_setup_true_lang-Dzsxgj8d.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B53djhvf.mjs → index.vue_vue_type_script_setup_true_lang-G69vgOFU.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-ilWP2PxW.js → index.vue_vue_type_script_setup_true_lang-kB0BK9hN.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BlY0Fj_L.js → index.vue_vue_type_script_setup_true_lang-kdNdDveR.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-DE1y6a6k.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-BTgNPLOW.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BTgNPLOW.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-DdcgtTAL.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-H_WKDqzQ.js} +1 -1
- package/dist/{link-lIJtoD8W.js → link-BBbqNFuZ.js} +1 -1
- package/dist/{link-_Myyeoec.mjs → link-D8AXmDg_.mjs} +1 -1
- package/dist/{list-BGUYCHgr.mjs → list-BqmTANdZ.mjs} +1 -1
- package/dist/{list-DvT2LpQm.js → list-DqTKJEpS.js} +1 -1
- package/dist/{main-Ce31YCye.js → main-B-JDsGG1.js} +1 -1
- package/dist/{main-R3zOca-l.mjs → main-DKPBLKRr.mjs} +3 -3
- package/dist/{mobile-cVlaWlok.js → mobile-BHqMhGAp.js} +1 -1
- package/dist/{mobile-BkU_OMX4.mjs → mobile-DGYeoYEx.mjs} +1 -1
- package/dist/{parent-CE9dewcb.js → parent-_7ywue2c.js} +1 -1
- package/dist/{parent-bK4S-Drp.mjs → parent-k1UiE-gS.mjs} +1 -1
- package/dist/{popup-DyyHiN56.mjs → popup-BsAqLf33.mjs} +1 -1
- package/dist/{popup-CJYQ2EYA.js → popup-CmInffA9.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-C59eDo1h.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-B1cprXaH.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-i1lH9H9V.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-LoQgcj8w.mjs} +1 -1
- package/dist/{roleItem-Bwy5HO54.js → roleItem-DhGgEGmi.js} +1 -1
- package/dist/{roleItem-BRNVyPMc.mjs → roleItem-YHoEGdTW.mjs} +1 -1
- package/dist/{saveForm-ceWz8fky.js → saveForm-DNcBVZAj.js} +1 -1
- package/dist/{saveForm-Vof_agxd.mjs → saveForm-UBWrc4dh.mjs} +3 -3
- package/dist/{scan-CmbxRBvr.js → scan-CGRKiwmk.js} +1 -1
- package/dist/scan-CGRKiwmk.js.gz +0 -0
- package/dist/{scan-D4asE2_p.mjs → scan-OXLAXr7o.mjs} +1 -1
- package/dist/scan-OXLAXr7o.mjs.gz +0 -0
- package/dist/{search-rHb-EFlA.js → search-CC-6wR2Y.js} +1 -1
- package/dist/{search-DoQQ_Rvq.mjs → search-CWoIyOOL.mjs} +1 -1
- package/dist/{selectConfig-CVNVkzCw.js → selectConfig-C_FcTid-.js} +1 -1
- package/dist/{selectConfig-DTQDlfWq.mjs → selectConfig-D0RawOFP.mjs} +1 -1
- package/dist/selectConfig-D0RawOFP.mjs.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-rQY5Tus8.mjs → subItem-D9D_kEHI.mjs} +1 -1
- package/dist/{subItem-Cb9Y0yNN.js → subItem-DpmdEtcl.js} +1 -1
- package/dist/{tagsView-D2zGNp_v.mjs → tagsView-CI6_PhIM.mjs} +2 -2
- package/dist/tagsView-CI6_PhIM.mjs.gz +0 -0
- package/dist/{tagsView-4nmnpk1Y.js → tagsView-Dr07Wod2.js} +2 -2
- package/dist/tagsView-Dr07Wod2.js.gz +0 -0
- package/dist/{transverse-DsAYgoub.mjs → transverse-CB12msaK.mjs} +3 -3
- package/dist/{transverse-CmY-MeOP.js → transverse-DLsRyhpo.js} +1 -1
- package/dist/{user-HOjXbsoj.js → user-B1XQ9lJ1.js} +1 -1
- package/dist/{user-DiL06NCr.mjs → user-D21i9x8P.mjs} +3 -3
- package/dist/{userNews-Q3s1alXf.js → userNews-CtpniZUz.js} +1 -1
- package/dist/{userNews-CjZn8F1l.mjs → userNews-kuenHKQi.mjs} +1 -1
- package/dist/{userSelect--EyNgXCV.mjs → userSelect-BS41eYXs.mjs} +1 -1
- package/dist/{userSelect-CnZQRTEK.js → userSelect-DIshYmSs.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BGK62NbX.mjs → userSelect.vue_vue_type_script_setup_true_lang-CMP5VfTG.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Czs83HPI.js → userSelect.vue_vue_type_script_setup_true_lang-d73edKdI.js} +1 -1
- package/dist/{vertical-CKLkj-9B.mjs → vertical-0SJSkBxu.mjs} +2 -2
- package/dist/{vertical-fxWfnb-7.js → vertical-BqANrpTj.js} +1 -1
- package/package.json +1 -1
- package/dist/404-D6F1tMj8.js.gz +0 -0
- package/dist/baseFormConfig-BslNz_i3.mjs.gz +0 -0
- package/dist/baseTableConfig-65s4Lyje.mjs.gz +0 -0
- package/dist/baseTableConfig-CiOf6jJ9.js.gz +0 -0
- package/dist/btnIndex-W0XtLRYo.mjs.gz +0 -0
- package/dist/cloneConfigDialog-DYQoBsA6.mjs.gz +0 -0
- package/dist/cloneConfigDialog-d1kHpgVD.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BZC5Xcb4.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbRLTZE.mjs.gz +0 -0
- package/dist/formConfig-CbiRVzVf.js.gz +0 -0
- package/dist/formConfig-KRC_nj20.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-D7CbFRFj.mjs.gz +0 -0
- package/dist/hsFormConfigList-LHqUnWqx.mjs.gz +0 -0
- package/dist/hsFormPanel-Djd3OhIT.mjs.gz +0 -0
- package/dist/index-1MRpEDwJ.mjs.gz +0 -0
- package/dist/index-Bb3Mbl7T.mjs.gz +0 -0
- package/dist/index-Bj8NBUo4.js.gz +0 -0
- package/dist/index-CXg-Ol66.mjs.gz +0 -0
- package/dist/index-CfoUTawK.js.gz +0 -0
- package/dist/index-Dgz09TV8.js.gz +0 -0
- package/dist/index-DpbtL5tr.mjs.gz +0 -0
- package/dist/index-t7kj6F3P.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-akmnAvEE.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DE1y6a6k.mjs.gz +0 -0
- package/dist/scan-CmbxRBvr.js.gz +0 -0
- package/dist/scan-D4asE2_p.mjs.gz +0 -0
- package/dist/selectConfig-DTQDlfWq.mjs.gz +0 -0
- package/dist/tagsView-4nmnpk1Y.js.gz +0 -0
- package/dist/tagsView-D2zGNp_v.mjs.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, defineComponent, mergeModels, useModel, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, withCtx, renderList, unref, createTextVNode } from "vue";
|
|
2
|
-
import { c as _ } from "./index-
|
|
2
|
+
import { c as _ } from "./index-DsIBREq9.mjs";
|
|
3
3
|
function usePanelItem(props) {
|
|
4
4
|
const list = ref([]);
|
|
5
5
|
watch(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./index-BJPZBObT.js");const l={class:"py-2 font-medium text-lg"},a={class:"w-52"},n=e.defineComponent({name:"panelItem"}),o=e.defineComponent({...n,props:e.mergeModels({itemData:{type:Object,value:()=>({})},label:{type:String,default:"label"},value:{type:String,default:"value"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=n,r=e.useModel(n,"modelValue"),{list:u}=function(l){const a=e.ref([]);return e.watch((()=>{var e;return null==(e=l.itemData)?void 0:e.list}),(e=>{a.value=t._.cloneDeep(e||[])}),{deep:!0,immediate:!0}),{list:a}}(o);return(t,n)=>{const i=e.resolveComponent("hs-checkbox"),m=e.resolveComponent("hs-checkbox-group");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",l,e.toDisplayString(o.itemData.name)+"==="+e.toDisplayString(o.itemData.select),1),e.createElementVNode("div",null,[e.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),class:"flex flex-wrap w-full"},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),((t,l)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(i,{value:t[o.value],name:t[o.value]},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t[o.label]),1)])),_:2},1032,["value","name"])])))),256))])),_:1},8,["modelValue"])])],64)}}});exports._sfc_main=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BJPZBObT.js"),n={class:"system-menu-container layout-padding"},o={class:"h-full flex flex-col"},a={class:"flex-1 overflow-hidden"},c=e.defineComponent({name:"testtablecomponent"}),l=e.defineComponent({...c,props:{close:Function},setup(c){const l=e.shallowReactive({}),r=e.ref();async function s(e){r.value=e}async function d(){}async function i(){var e;null==(e=r.value)||e.search()}return t.getBatchConfig([{type:"1",id:"89a388c3-2938-4a8f-a1fd-c2521954b1b0"}],{mid:"65c8c0b75323411496a7905d8810b13d",uid:"6d627362f1914ec28ab167ae5c2c4013",projectCode:"lsms",preParsing:!0}).then((e=>{l["89a388c3-2938-4a8f-a1fd-c2521954b1b0"]=e.table["89a388c3-2938-4a8f-a1fd-c2521954b1b0"]})),(t,c)=>{const r=e.resolveComponent("bc-button"),u=e.resolveComponent("hs-input"),f=e.resolveComponent("bc-table");return e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",o,[e.createElementVNode("div",a,[e.createVNode(f,{data:e.unref(l)["89a388c3-2938-4a8f-a1fd-c2521954b1b0"],onReady:s,onResetAttr:d},{btn_search:e.withCtx((t=>[e.createVNode(r,e.mergeProps(t,{onClick:e.withModifiers(i,["stop"])}),null,16)])),increase_amount:e.withCtx((({row:t})=>[e.createVNode(u,{modelValue:t.increase_amount,"onUpdate:modelValue":e=>t.increase_amount=e},null,8,["modelValue","onUpdate:modelValue"])])),_:1},8,["data"])])])])}}});exports.default=l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, shallowReactive, ref, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, unref, withCtx, mergeProps, withModifiers } from "vue";
|
|
2
|
-
import { Z as getBatchConfig } from "./index-
|
|
2
|
+
import { Z as getBatchConfig } from "./index-DsIBREq9.mjs";
|
|
3
3
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
4
4
|
const _hoisted_2 = { class: "h-full flex flex-col" };
|
|
5
5
|
const _hoisted_3 = { class: "flex-1 overflow-hidden" };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BJPZBObT.js"),o=(e,t)=>Object.assign(e,{other_log_info:{title:t}}),r=(e={})=>(e=o(e,"根据分组id,查询分组下所有报表信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_info",method:"get",params:e})),s=(e={})=>(e=o(e,"根据系统id,查询系统下的所有报表分组信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_group",method:"get",params:e})),p=(e={})=>(e=o(e,"数据报表配置查询接口,用于报表设计时,查询配置的字段数据信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_config",method:"get",params:e}));const l={class:"system-menu-container layout-padding"},n={class:"h-full flex flex-col"},i={class:"flex-1 flex overflow-hidden"},a={class:"flex-1 flex items-center justify-center"},d=e.defineComponent({name:"reportStatistics"}),c=e.defineComponent({...d,setup(o){const{getListReportGroup:d,getListReportInfo:c}={getListReportInfo:r,getListReportGroup:s,getListReportConfig:p},u=e.reactive({group:[],groupActive:"",report:[],reportActive:"",reportInfo:{}});function m({value:e}){u.reportInfo={},c({report_group_id:e}).then((e=>{1===e.code&&(u.report=t._.get(e,"data")||[],u.reportActive=t._.get(e,"data.0.id",""),u.reportInfo=t._.get(e,"data.0"))}))}function g({index:e}){u.reportInfo={},setTimeout((()=>{u.reportInfo=u.report[e]}))}return d().then((e=>{1===e.code&&(u.group=t._.get(e,"data")||[],u.groupActive=t._.get(e,"data.0.id",""),m({value:u.groupActive}))})),(t,o)=>{var r,s;const p=e.resolveComponent("bc-tabs"),d=e.resolveComponent("hs-empty"),c=e.resolveComponent("bc-visual");return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",n,[e.createVNode(p,{class:"report-group",showALLTabs:"",type:"line",modelValue:u.groupActive,"onUpdate:modelValue":o[0]||(o[0]=e=>u.groupActive=e),showContent:!1,tabs:u.group,label:"group_name",onTabClick:m},null,8,["modelValue","tabs"]),e.createVNode(p,{class:"report-wrap !mt-3",showALLTabs:"",modelValue:u.reportActive,"onUpdate:modelValue":o[1]||(o[1]=e=>u.reportActive=e),showContent:!1,tabs:u.report,label:"report_name",onTabClick:g},null,8,["modelValue","tabs"]),e.createElementVNode("div",i,[e.createVNode(c,{preview:"",project_code:"lsms","report-id":null==(r=u.reportInfo)?void 0:r.id,"sys-id":null==(s=u.reportInfo)?void 0:s.sys_id},{empty:e.withCtx((()=>[e.createElementVNode("div",a,[e.createVNode(d)])])),_:1},8,["report-id","sys-id"])])])])}}}),u=t._export_sfc(c,[["__scopeId","data-v-19491d61"]]);exports.default=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withCtx } from "vue";
|
|
2
|
-
import { r as request, c as _, _ as _export_sfc } from "./index-
|
|
2
|
+
import { r as request, c as _, _ as _export_sfc } from "./index-DsIBREq9.mjs";
|
|
3
3
|
const assign = (params, title) => {
|
|
4
4
|
return Object.assign(params, { other_log_info: { title } });
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-F2QAn1DL.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-BJPZBObT.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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BJPZBObT.js"),o=require("./popup.vue_vue_type_script_setup_true_name_replaceRules_lang-B1cprXaH.js");const n={class:"system-user-container layout-padding"},r=e.defineComponent({name:"systemUser"}),s=e.defineComponent({...r,setup(r){const s=e.shallowRef();async function i(e){s.value=e}function l(e){var t,o;return(null==(o=null==(t=null==e?void 0:e.roleList)?void 0:t.map((e=>e.role_name)))?void 0:o.join(","))||""}function u(e){(function(e){return new Promise((n=>{t.showPopup(o._sfc_main,{row:e},{title:e?"修改":"新增",width:"600px",height:"500px",success:({data:e})=>n(e),showFooter:!1})}))})(e).then((e=>{var t;"refresh"==e&&(null==(t=s.value)||t.search())}))}return(t,o)=>{const r=e.resolveComponent("bc-button"),s=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(s,{type:"1",id:"9ebece96-e96a-4f0f-9af5-95860e550088",isAuth:!1,onReady:i},{roleList:e.withCtx((({row:t})=>[e.createTextVNode(e.toDisplayString(l(t)),1)])),btn_add:e.withCtx((t=>[e.createVNode(r,e.mergeProps(t,{onClick:o[0]||(o[0]=e=>u())}),null,16)])),table_btn_edit:e.withCtx((({row:t,btnData:o})=>[e.createVNode(r,e.mergeProps(o,{onClick:e=>u(t)}),null,16,["onClick"])])),_:1})])}}});exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BJPZBObT.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BJPZBObT.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;
|