hs-admin-ui 9.6.0 → 9.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{401-ConltoPU.js → 401-CiSGzM5b.js} +1 -1
- package/dist/{401-B5NTihzt.mjs → 401-psAy4sod.mjs} +1 -1
- package/dist/{404-Bd1zCl5C.mjs → 404-RBlbxT04.mjs} +1 -1
- package/dist/404-RBlbxT04.mjs.gz +0 -0
- package/dist/{404-B_UU024b.js → 404-Y7naV5k5.js} +1 -1
- package/dist/404-Y7naV5k5.js.gz +0 -0
- package/dist/account-BepwtenE.js +1 -0
- package/dist/account-CI8es82v.mjs +210 -0
- package/dist/{aside-CxlLK9lm.js → aside-DeO3quLp.js} +1 -1
- package/dist/{aside-D5zEwBkv.mjs → aside-DlkaOtjb.mjs} +3 -3
- package/dist/{btnIndex-6vCbHa6C.js → btnIndex-B-iBnz_w.js} +1 -1
- package/dist/{btnIndex-BNsgK2EF.mjs → btnIndex-DZsSto74.mjs} +2 -2
- package/dist/btnIndex-DZsSto74.mjs.gz +0 -0
- package/dist/{classic-DIBJjUmc.js → classic-CJC-CRgR.js} +1 -1
- package/dist/{classic-vCch98no.mjs → classic-vfbpQhFn.mjs} +5 -5
- package/dist/{columns-CONjyhHs.mjs → columns-Bppbx-Qj.mjs} +5 -5
- package/dist/{columns-DnoJ9_WH.js → columns-Do-Iteaf.js} +1 -1
- package/dist/{columnsAside-DPOkVlM_.mjs → columnsAside-Ccdbk0WV.mjs} +1 -1
- package/dist/{columnsAside-CD-jmv5s.js → columnsAside-Du6V9M2p.js} +1 -1
- package/dist/{contextmenu-C5quQ7Q0.js → contextmenu-2ZZx692j.js} +1 -1
- package/dist/{contextmenu-DxFNtz-0.mjs → contextmenu-80MujqZ6.mjs} +1 -1
- package/dist/{contextmenu-BQ7oX5MJ.js → contextmenu-B1ysqhrO.js} +1 -1
- package/dist/{contextmenu-CO_hc4OS.mjs → contextmenu-B9hHviH7.mjs} +1 -1
- package/dist/{copyMenuConfig-BcJ1tHTm.mjs → copyMenuConfig-B4QYI-YN.mjs} +1 -1
- package/dist/{copyMenuConfig-BgB6xUFe.js → copyMenuConfig-Ddjx5V9s.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-UxdBC-LV.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BYLHA3gs.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DJ5-KoE9.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-fV4vmS33.mjs} +1 -1
- package/dist/{copySystem-Ds9KtEjt.mjs → copySystem-CJEV13gh.mjs} +1 -1
- package/dist/{copySystem-DY_ZGyRn.js → copySystem-DJn_1SDd.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-CvWOR7D4.js → copySystem.vue_vue_type_script_setup_true_lang-BOxwnqIt.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-6InxRNbn.mjs → copySystem.vue_vue_type_script_setup_true_lang-IauzEXkz.mjs} +1 -1
- package/dist/{defaults-B-EkHKO5.js → defaults-htdnbqWi.js} +1 -1
- package/dist/{defaults-lNQSmqEK.mjs → defaults-nMZ91i0J.mjs} +4 -4
- package/dist/{dialog-euln1pZT.js → dialog-0_885J_q.js} +1 -1
- package/dist/{dialog-UOXZ2OvQ.mjs → dialog-Bli3TLsZ.mjs} +1 -1
- package/dist/{dialog-DvTgyPTb.mjs → dialog-CCvbQgfc.mjs} +1 -1
- package/dist/{dialog-DGrwbhtf.js → dialog-CtLEM4N_.js} +1 -1
- package/dist/{dialog-bTgLFDnR.js → dialog-DZNdAMXe.js} +1 -1
- package/dist/{dialog-DN0saqYD.mjs → dialog-oJRUHyKV.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-jRdlBbKV.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C-MvDYfw.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DylXW0T_.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CNZCsXAX.mjs} +2 -2
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C1uuwDnz.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-3kX4c4hE.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-3kX4c4hE.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BIXxe3nr.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-6SQ2lghO.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-6SQ2lghO.mjs.gz +0 -0
- package/dist/{dictDialog-BYukYFD0.js → dictDialog-BMTvLRSJ.js} +1 -1
- package/dist/{dictDialog-Cd8YH_lC.mjs → dictDialog-CvJCtST7.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CkOH48aU.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Ch4recKz.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DImV4JAc.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DXFA7U9-.js} +1 -1
- package/dist/{dictItemDialog-Oba-b5Kd.mjs → dictItemDialog-DqAVIaEu.mjs} +1 -1
- package/dist/{dictItemDialog-DW9__8a3.js → dictItemDialog-Snp8H_or.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BglkCMXy.js → dictItemDialog.vue_vue_type_script_setup_true_lang-8ltDHB-y.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BPAuZYit.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BWSJHTh4.mjs} +2 -2
- package/dist/{editDialog-BdGxpG0-.mjs → editDialog-CwZgo7lo.mjs} +1 -1
- package/dist/{editDialog-BAkUzYZq.js → editDialog-ZxLgWAfl.js} +1 -1
- package/dist/{formConfig-CyiD4ggj.js → formConfig-BVXDL-dN.js} +1 -1
- package/dist/{formConfig-C6AwPgx7.mjs → formConfig-D0sKFSQU.mjs} +5 -5
- package/dist/formConfig-D0sKFSQU.mjs.gz +0 -0
- package/dist/{header-C-KMzFpx.js → header-Cz6eDf04.js} +1 -1
- package/dist/{header-D3aI5JBJ.mjs → header-zzqFVMrC.mjs} +2 -2
- package/dist/{horizontal-DCtxMBdt.mjs → horizontal-C8E-yGeA.mjs} +2 -2
- package/dist/{horizontal-MR0DCpHv.js → horizontal-TaSnoFWN.js} +1 -1
- package/dist/{hsAttrBtn-JaTbUlp1.js → hsAttrBtn-BKlcDm_j.js} +1 -1
- package/dist/{hsAttrBtn-rpnUIL50.mjs → hsAttrBtn-CxZ4fw8p.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Dz7kbM-D.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-BF-jwWoH.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Cg659dNr.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-CiTrMf18.mjs} +3 -3
- package/dist/{hsAttrForm-DrsQAy4W.mjs → hsAttrForm-CaFLBjr2.mjs} +1 -1
- package/dist/{hsAttrForm-C7KVQEwx.js → hsAttrForm-DG6EVd-6.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DsdOmhVP.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BHT5iPzt.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BteLSBij.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-Dx08OydM.mjs} +2 -2
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Dx08OydM.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-CAHgtPeU.js → hsBtnConfigList-DRoXsT2y.js} +1 -1
- package/dist/{hsBtnConfigList-DSt1QXVf.mjs → hsBtnConfigList-dpvuD_zW.mjs} +1 -1
- package/dist/{hsBtnItemConfig-3qwTYxls.js → hsBtnItemConfig-CfB01JSn.js} +1 -1
- package/dist/{hsBtnItemConfig-I74_Hp63.mjs → hsBtnItemConfig-DTvCjHjP.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-yCP5_ajb.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bib45XrA.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DmFsjnY6.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DjL2-U_E.js} +1 -1
- package/dist/{hsBtnPanel-CTMzJbiN.js → hsBtnPanel-B3VP-dnT.js} +1 -1
- package/dist/{hsBtnPanel-CAbTj5mD.mjs → hsBtnPanel-DJlUXZst.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BPq2KeB1.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C2XCfIwe.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DIOVipup.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cj-2l4Bd.mjs} +4 -4
- package/dist/{hsExpand-D2nU4Ipq.js → hsExpand-CUbGeQ1A.js} +1 -1
- package/dist/{hsExpand-DRUR-2rG.mjs → hsExpand-DAyLJUK0.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-qKGO-WGu.js → hsExpand.vue_vue_type_script_setup_true_lang-5P-Z82_K.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DwzNWHOA.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BHLyfybO.mjs} +1 -1
- package/dist/{hsFormConfig-CKqbpa_A.js → hsFormConfig-DMhLgFjy.js} +1 -1
- package/dist/{hsFormConfig-CpED6S6T.mjs → hsFormConfig-l2q3u0Xt.mjs} +1 -1
- package/dist/{hsFormConfigList-CosoXr_7.js → hsFormConfigList-CTSnQLRc.js} +1 -1
- package/dist/{hsFormConfigList-axV8XxdG.mjs → hsFormConfigList-Zb-82Bwg.mjs} +2 -2
- package/dist/hsFormConfigList-Zb-82Bwg.mjs.gz +0 -0
- package/dist/{hsFormPanel-ByBBEQbY.js → hsFormPanel-B8imEq4F.js} +1 -1
- package/dist/{hsFormPanel-D7Km-mmq.mjs → hsFormPanel-DaK1bEJy.mjs} +5 -5
- package/dist/hsFormPanel-DaK1bEJy.mjs.gz +0 -0
- package/dist/{hsFormParse-DKoXJFSG.js → hsFormParse-B5jw8Wkw.js} +1 -1
- package/dist/{hsFormParse-B10SR1Ec.mjs → hsFormParse-DPLmPeKM.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-D0f7kUfR.js → hsFormParse.vue_vue_type_script_setup_true_lang-Ce4NecHw.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-gXwIHB2-.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-Kzu7j5Yk.mjs} +1 -1
- package/dist/{hsPanelItem-CEzeTHMM.mjs → hsPanelItem-B-PdF3pL.mjs} +1 -1
- package/dist/{hsPanelItem-BuZKbYiz.js → hsPanelItem-v6f-ZXsL.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DBeFABM-.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-1-hPHsum.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DZP--zX4.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DS9gxFlX.mjs} +1 -1
- package/dist/{iframes-QJs9HDdD.js → iframes-CMdXrFc5.js} +1 -1
- package/dist/{iframes-ku1MY4f-.mjs → iframes-dH2xsXNf.mjs} +1 -1
- package/dist/{index copy-DxsNemGD.mjs → index copy-DN7VxNyq.mjs } +1 -1
- package/dist/index copy-DN7VxNyq.mjs.gz +0 -0
- package/dist/{index copy-DBEvcr3Z.js → index copy-DRdE5_rR.js } +1 -1
- package/dist/index copy-DRdE5_rR.js.gz +0 -0
- package/dist/{index-CbBgOUDa.mjs → index-1lTG5Bv1.mjs} +1 -1
- package/dist/index-1lTG5Bv1.mjs.gz +0 -0
- package/dist/{index-DP8gRYVH.js → index-2tAUtzt6.js} +1 -1
- package/dist/{index-CCVBrFF5.mjs → index-AWlGlNaH.mjs} +3 -3
- package/dist/{index-CpdIZ8xM.js → index-AXxrEGD7.js} +1 -1
- package/dist/{index-DBvtWcAM.mjs → index-B1En7l2M.mjs} +2 -2
- package/dist/index-B1En7l2M.mjs.gz +0 -0
- package/dist/{index-MrGUlAxx.js → index-B1jQGPRJ.js} +1 -1
- package/dist/{index-BSrU9A9K.mjs → index-B5UMYQb3.mjs} +1 -1
- package/dist/{index-DSLo9YmL.mjs → index-B8M2VGTG.mjs} +1 -1
- package/dist/{index-Gtd1CTpx.js → index-BDgYHPf7.js} +1 -1
- package/dist/{index-BH__Epc0.js → index-BISuf8J7.js} +1 -1
- package/dist/{index-C3KddMNj.js → index-BIlmWFOs.js} +1 -1
- package/dist/{index-BSK9sh45.mjs → index-BRWKCwx0.mjs} +1 -1
- package/dist/{index-3_L2Hnp5.js → index-BV62r0zI.js} +1 -1
- package/dist/{index-Dgr7sdu2.js → index-Bd1fWgX-.js} +1 -1
- package/dist/{index-CfxHk0oF.js → index-BdAu0yVj.js} +1 -1
- package/dist/{index-CmS32Kmk.mjs → index-BgL-xmir.mjs} +1 -1
- package/dist/{index-CZ0vfPg-.js → index-BnI1gmp_.js} +1 -1
- package/dist/{index-CNC_--ar.js → index-Bpll2_j-.js} +1 -1
- package/dist/index-Bpll2_j-.js.gz +0 -0
- package/dist/{index-CybSkUoJ.js → index-BrTbNNcR.js} +1 -1
- package/dist/index-C4U02DTj.mjs +4 -0
- package/dist/{index-BDjIlqgn.mjs → index-C5TSrWGR.mjs} +1 -1
- package/dist/{index-CzhTfklm.mjs → index-C6XGm2fy.mjs} +1 -1
- package/dist/{index-DFKzhPaU.mjs → index-CCJZ93PM.mjs} +4 -4
- package/dist/{index-D0YYtcJR.js → index-CGV2C3wz.js} +1 -1
- package/dist/{index-CKi53iw-.mjs → index-CGcR5Nf-.mjs} +1 -1
- package/dist/{index-DJVNa-EY.mjs → index-CJw-tWHj.mjs} +1 -1
- package/dist/{index-By1EVlHD.mjs → index-CMQWZVIP.mjs} +1 -1
- package/dist/{index-CmsztBq5.js → index-CP6bQ10w.js} +1 -1
- package/dist/{index-CqdhmdHp.mjs → index-CQU-wNhy.mjs} +3 -3
- package/dist/{index-Xgp7aGWI.js → index-CRFXxwQ5.js} +1 -1
- package/dist/{index-CtNzoNQ_.js → index-CTMHydaB.js} +1 -1
- package/dist/{index-HveoB9h3.js → index-CVgNXXAR.js} +1 -1
- package/dist/index-CVgNXXAR.js.gz +0 -0
- package/dist/{index-D6lAOCOc.mjs → index-CZ_q5Zqk.mjs} +1 -1
- package/dist/{index-B_kKJMY2.js → index-CjsIFhet.js} +4 -4
- package/dist/{index-B_kKJMY2.js.gz → index-CjsIFhet.js.gz} +0 -0
- package/dist/{index-CfgOeI-d.js → index-Cl_5rptI.js} +1 -1
- package/dist/index-Cl_5rptI.js.gz +0 -0
- package/dist/{index-DpHuvFKL.js → index-CorGxLdc.js} +1 -1
- package/dist/{index-B_TxZ1GK.mjs → index-CrEa7781.mjs} +3 -3
- package/dist/{index-BmMkqkgV.js → index-Ct69IHLt.js} +1 -1
- package/dist/{index-Dkn6W4Up.mjs → index-CzSn_cwk.mjs} +455 -100
- package/dist/{index-Dkn6W4Up.mjs.gz → index-CzSn_cwk.mjs.gz} +0 -0
- package/dist/{index-7t8jEn5C.mjs → index-D5--nQG5.mjs} +1 -1
- package/dist/{index-3qMCTAJj.mjs → index-D6XuVT0t.mjs} +1 -1
- package/dist/{index-D9XkJ1EP.js → index-DHExbwel.js} +1 -1
- package/dist/{index-BsygsaxD.js → index-DKS2Yzgu.js} +1 -1
- package/dist/{index-0wWi3qfo.js → index-DKhDztda.js} +1 -1
- package/dist/{index-C-q_hR--.mjs → index-DNqZ2OYn.mjs} +4 -4
- package/dist/{index-DxlafPha.mjs → index-DREJ2u6j.mjs} +5 -5
- package/dist/{index-qlv_rLft.mjs → index-DV0vQ8wR.mjs} +3 -3
- package/dist/{index-CPb17UdC.js → index-DYd3GP3L.js} +1 -1
- package/dist/{index-32BQ98Fr.js → index-DZty-p7l.js} +1 -1
- package/dist/{index-Cz1vpGUf.mjs → index-DeyDUcMu.mjs} +2 -2
- package/dist/{index-D30louJt.mjs → index-Dk89tnVV.mjs} +1 -1
- package/dist/{index-5YPvXcLQ.js → index-DmqkHPR7.js} +1 -1
- package/dist/{index-cUBXUoag.js → index-Du-FkYq1.js} +1 -1
- package/dist/{index-BVwPAD1E.mjs → index-FAWGUpVo.mjs} +1 -1
- package/dist/{index-CVRqYujp.js → index-JEt7MntZ.js} +1 -1
- package/dist/{index-BlO9oiYF.mjs → index-JRvQ8eYw.mjs} +1 -1
- package/dist/{index-DP45Z_cJ.js → index-MkvwRX2O.js} +1 -1
- package/dist/{index-ypYPNY58.js → index-RQb2v3pL.js} +1 -1
- package/dist/{index-C8fwhas9.mjs → index-VbCLxgYm.mjs} +4 -4
- package/dist/index-VbCLxgYm.mjs.gz +0 -0
- package/dist/{index-CMMz0frI.js → index-W-OeKUiF.js} +1 -1
- package/dist/{index-B8RKF7pp.mjs → index-WvJNx1TW.mjs} +1 -1
- package/dist/{index-DsbxNdmK.js → index-YqjWnjJU.js} +1 -1
- package/dist/{index-C3Xtcizo.mjs → index-_tQ6aENY.mjs} +3 -3
- package/dist/index-_tQ6aENY.mjs.gz +0 -0
- package/dist/{index-B4seIQyN.mjs → index-bJhbFyzN.mjs} +2 -2
- package/dist/{index-CbsP3RH4.js → index-fNvjAs-T.js} +1 -1
- package/dist/{index-ChX_GZTh.js → index-g7DNcoGa.js} +1 -1
- package/dist/{index-C9DLGYaN.mjs → index-gFhx0XPB.mjs} +1 -1
- package/dist/{index-CtGTUldQ.mjs → index-ljYDTUxX.mjs} +2 -2
- package/dist/index-ljYDTUxX.mjs.gz +0 -0
- package/dist/{index-Bju9KOx3.mjs → index-lxyVrL28.mjs} +1 -1
- package/dist/{index-BJUkHi9S.mjs → index-tFTO0WEh.mjs} +3 -3
- package/dist/{index-DxWmlmNk.js → index-u3bRob8m.js} +1 -1
- package/dist/{index-l8FiNKRl.js → index-uHmir_1q.js} +1 -1
- package/dist/{index-ByAQRnFp.mjs → index-yxNvQNx7.mjs} +2 -2
- package/dist/{index-M_GcUjR-.mjs → index-zwSTuaKJ.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +59 -59
- package/dist/{index.vue_vue_type_script_setup_true_lang-D1BaxA5V.mjs → index.vue_vue_type_script_setup_true_lang-4305ZTin.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CjFxSzId.mjs → index.vue_vue_type_script_setup_true_lang-C0Zpy63l.mjs} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-DEqim_Sv.mjs → index.vue_vue_type_script_setup_true_lang-CH2QBGAq.mjs} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CH2QBGAq.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DK6lJGCq.js → index.vue_vue_type_script_setup_true_lang-DHdPNSuo.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-TV3Aa7GV.js → index.vue_vue_type_script_setup_true_lang-DS0DsxOh.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BDmxBsuI.js → index.vue_vue_type_script_setup_true_lang-Dkjg3Zyr.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BTHvsJ2R.mjs → index.vue_vue_type_script_setup_true_lang-X1joO1-h.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Mqky1UO1.js → index.vue_vue_type_script_setup_true_lang-uKS1SzFs.js} +1 -1
- package/dist/{link-Dii5DTq5.js → link-B84jD5HX.js} +1 -1
- package/dist/{link-Dk04CXaj.mjs → link-CTIIe1C6.mjs} +1 -1
- package/dist/{list-Cz_FR_xW.mjs → list-Bxu-n4EX.mjs} +1 -1
- package/dist/{list-cpxuD9j8.js → list-MHT0JS7d.js} +1 -1
- package/dist/{main-BeXuWPaf.mjs → main-Cs9GIFBc.mjs} +3 -3
- package/dist/{main-n9oUdJ-A.js → main-Ddf2vqKV.js} +1 -1
- package/dist/{mobile-DZPwl1ux.mjs → mobile-DtyWS49o.mjs} +1 -1
- package/dist/{mobile-CORqlEV7.js → mobile-gtqpnKo_.js} +1 -1
- package/dist/{parent-R7y6dxoN.js → parent-Bl7qTJ-m.js} +1 -1
- package/dist/{parent-BnrddxaI.mjs → parent-CP42tweL.mjs} +2 -2
- package/dist/{popup-1nljLmjZ.mjs → popup-Bw-b-hRt.mjs} +1 -1
- package/dist/{popup-BrX6GeaJ.js → popup-DDLvasko.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CPfC9iap.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-BImGsVFD.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-B7W7vh3u.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-DEACgza0.js} +1 -1
- package/dist/{replaceRules-ALoUTcRV.js → replaceRules-BNndMByJ.js} +1 -1
- package/dist/{replaceRules-DtEQ1lk6.mjs → replaceRules-CBLzjU0m.mjs} +1 -1
- package/dist/{roleItem-BcT6Lzsj.mjs → roleItem-BMp9RrT4.mjs} +1 -1
- package/dist/{roleItem-Sfo4oxWz.js → roleItem-CBDAjfjb.js} +1 -1
- package/dist/{saveForm-BjZT9mC8.mjs → saveForm-C4uOEJ34.mjs} +2 -2
- package/dist/{saveForm-aBzmhkjh.js → saveForm-oTqexN4K.js} +1 -1
- package/dist/{scan-EnfIBlUr.js → scan-D9Xplezt.js} +1 -1
- package/dist/scan-D9Xplezt.js.gz +0 -0
- package/dist/{scan-B3VrROUm.mjs → scan-DU57NFRP.mjs} +1 -1
- package/dist/scan-DU57NFRP.mjs.gz +0 -0
- package/dist/{search-08h_r1Vc.mjs → search-BEFwrnRx.mjs} +1 -1
- package/dist/{search-SNgsMYGt.js → search-C0ob8iob.js} +1 -1
- package/dist/{selectConfig-Bh7Spmn0.mjs → selectConfig-4NNo4RMw.mjs} +1 -1
- package/dist/selectConfig-4NNo4RMw.mjs.gz +0 -0
- package/dist/{selectConfig-D5Ted8_R.js → selectConfig-DgwkCvNa.js} +1 -1
- package/dist/{subItem-PFUpMvj5.js → subItem-3ZkWOywM.js} +1 -1
- package/dist/{subItem-CXPNzU6f.mjs → subItem-DKotOKCm.mjs} +1 -1
- package/dist/{tagsView-qudeI7xJ.js → tagsView-8SRNf3ls.js} +2 -2
- package/dist/tagsView-8SRNf3ls.js.gz +0 -0
- package/dist/{tagsView-CjnJZc1O.mjs → tagsView-B1uA-yql.mjs} +2 -2
- package/dist/tagsView-B1uA-yql.mjs.gz +0 -0
- package/dist/{transverse-C7c9BqWA.js → transverse-D_RX9m6G.js} +1 -1
- package/dist/{transverse-De7Q7tDc.mjs → transverse-g_u_54dP.mjs} +3 -3
- package/dist/types/components/business/bcTable/utils/type.d.ts +4 -0
- package/dist/types/components/business/bcTable/utils/useTable.d.ts +1 -0
- package/dist/{uploadAvatar-7QIUHC9g.mjs → uploadAvatar-1jY32hO_.mjs} +1 -1
- package/dist/uploadAvatar-1jY32hO_.mjs.gz +0 -0
- package/dist/{uploadAvatar-DaxhMq8F.js → uploadAvatar-CIMzK05s.js} +1 -1
- package/dist/uploadAvatar-CIMzK05s.js.gz +0 -0
- package/dist/{useSaveForm-RS9NykZS.mjs → useSaveForm-C1Finj9Q.mjs} +1 -1
- package/dist/useSaveForm-C1Finj9Q.mjs.gz +0 -0
- package/dist/{useSaveForm-lYAMqv47.js → useSaveForm-DbedqaU2.js} +1 -1
- package/dist/useSaveForm-DbedqaU2.js.gz +0 -0
- package/dist/{user-DIzICp9f.mjs → user-AQfX6TCV.mjs} +4 -4
- package/dist/{user-CqZYv8XC.js → user-qAaqMwxH.js} +1 -1
- package/dist/{userNews-1lFRqdTZ.mjs → userNews-BlSxol91.mjs} +1 -1
- package/dist/{userNews-iJDZ4X88.js → userNews-Cp2k2UXb.js} +1 -1
- package/dist/{userSelect-BWcmmXds.js → userSelect-Ci65oQPJ.js} +1 -1
- package/dist/{userSelect-dXLcjDiX.mjs → userSelect-bHpf0Kqr.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CkSCvmlm.mjs → userSelect.vue_vue_type_script_setup_true_lang-BkxqQ8he.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DpvkB95A.js → userSelect.vue_vue_type_script_setup_true_lang-DxAwZbJa.js} +1 -1
- package/dist/{vertical-wBMNFrGL.js → vertical-Drm3VHkN.js} +1 -1
- package/dist/{vertical-B5nraHh_.mjs → vertical-Lne4d_KP.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-B_UU024b.js.gz +0 -0
- package/dist/404-Bd1zCl5C.mjs.gz +0 -0
- package/dist/account-D7JfWzFR.js +0 -1
- package/dist/account-D7JfWzFR.js.gz +0 -0
- package/dist/account-W6BGh7aV.mjs +0 -559
- package/dist/account-W6BGh7aV.mjs.gz +0 -0
- package/dist/btnIndex-BNsgK2EF.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BIXxe3nr.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C1uuwDnz.js.gz +0 -0
- package/dist/formConfig-C6AwPgx7.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BteLSBij.mjs.gz +0 -0
- package/dist/hsFormConfigList-axV8XxdG.mjs.gz +0 -0
- package/dist/hsFormPanel-D7Km-mmq.mjs.gz +0 -0
- package/dist/index copy-DBEvcr3Z.js.gz +0 -0
- package/dist/index copy-DxsNemGD.mjs.gz +0 -0
- package/dist/index-BYL5eE0M.mjs +0 -4
- package/dist/index-C3Xtcizo.mjs.gz +0 -0
- package/dist/index-C8fwhas9.mjs.gz +0 -0
- package/dist/index-CNC_--ar.js.gz +0 -0
- package/dist/index-CbBgOUDa.mjs.gz +0 -0
- package/dist/index-CfgOeI-d.js.gz +0 -0
- package/dist/index-CtGTUldQ.mjs.gz +0 -0
- package/dist/index-DBvtWcAM.mjs.gz +0 -0
- package/dist/index-HveoB9h3.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DEqim_Sv.mjs.gz +0 -0
- package/dist/scan-B3VrROUm.mjs.gz +0 -0
- package/dist/scan-EnfIBlUr.js.gz +0 -0
- package/dist/selectConfig-Bh7Spmn0.mjs.gz +0 -0
- package/dist/tagsView-CjnJZc1O.mjs.gz +0 -0
- package/dist/tagsView-qudeI7xJ.js.gz +0 -0
- package/dist/uploadAvatar-7QIUHC9g.mjs.gz +0 -0
- package/dist/uploadAvatar-DaxhMq8F.js.gz +0 -0
- package/dist/useSaveForm-RS9NykZS.mjs.gz +0 -0
- package/dist/useSaveForm-lYAMqv47.js.gz +0 -0
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-B_kKJMY2.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},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 i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,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=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},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)}return s}},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=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",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-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.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 m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy: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:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(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})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-CjsIFhet.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},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 i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,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=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},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)}return s}},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=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",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-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.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 m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy: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:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(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})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { reactive, computed, defineComponent, onMounted, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, unref, Fragment, renderList, createBlock, toDisplayString, createCommentVNode, createTextVNode } from "vue";
|
2
|
-
import { r as v4, e as _, A as treeToList, d as ElMessage, h as useFieldConfigController, S as Session, B as useMenuController, i as useSystemController, _ as _export_sfc, g as showPopup, H as HsMessageBox, C as HsMessage } from "./index-
|
2
|
+
import { r as v4, e as _, A as treeToList, d as ElMessage, h as useFieldConfigController, S as Session, B as useMenuController, i as useSystemController, _ as _export_sfc, g as showPopup, H as HsMessageBox, C as HsMessage } from "./index-CzSn_cwk.mjs";
|
3
3
|
let formData = {
|
4
4
|
config_name: "",
|
5
5
|
config_unique_id: v4(),
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./index-B_kKJMY2.js");const o={config_name:[{required:!0,message:"请输入配置名称"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},n=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"isClosedKeyStroke",label:"关闭键盘事件",el:"hs-switch",attr:{"active-value":!0,"inactive-value":!1},show:!0}],a={formData:{config_name:"",config_unique_id:t.v4(),is_auth:"1"},formRule:o,formConfig:n};const r={formData:{name:"",config_name:"",config_unique_id:"",is_auth:"1"},formRule:o,formConfig:t._.concat([{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],n)},i=t.useFieldConfigController(),l=t.useMenuController(),u=t.useSystemController();function c(o){const n=e.reactive({systemList:[],currentSystemValue:"",currentSystem:void 0,menuList:[],currentMenuValue:[],currentMenuName:"",configList:[],currentConfig:void 0,currentConfigValue:""}),a=e.computed((()=>t.treeToList(n.menuList))),r=async(e=!0)=>{if(n.currentMenuValue.length<=0||!n.currentSystem)return n.configList=[],void(n.currentConfig=void 0);let a=n.currentMenuValue[n.currentMenuValue.length-1],r=t.Session.get("CURRENT_SYSTEM");await i.getFormByMenu({menu_id:a,project_code:n.currentSystem.project_code}).then((a=>{1==a.code&&(n.configList=t._.cloneDeep(a.data).map((e=>{let n=JSON.parse(e.field_json);return n.btns=n.btns.map((e=>(o.linkItem||(e.id=t.v4()),e))),n.BaseForm&&n.BaseForm.proxy&&n.BaseForm.proxy!=r.project_url&&(n.BaseForm.proxy=r.project_url),n.forms,n.forms&&n.forms.length>0&&(n.forms=n.forms.map((e=>(o.linkItem||(e.id=t.v4()),e.form&&e.form.formConfig&&e.form.formConfig.length>0&&(e.form.formConfig=e.form.formConfig.map((e=>(o.linkItem||(e.id=t.v4()),f(e,r),e)))),e)))),t._.assign(n,{id:"",update_time:""})})),e&&(n.currentConfigValue="",n.currentConfig=void 0))}))},c=()=>{n.currentConfigValue?n.currentConfig=n.configList.find((e=>e.config_unique_id===n.currentConfigValue)):n.currentConfig=void 0},s=()=>n.currentSystem&&n.currentSystem.project_code?l.getMenuList({project_code:n.currentSystem.project_code}).then((e=>1!=e.code?Promise.reject():(n.menuList=e.data||[],n.currentMenuValue=[],Promise.resolve()))).catch((e=>{})):Promise.reject(),m=["hs-select","hs-tree-select"],d=["hs-radio","hs-checkbox"],f=(e,t)=>(m.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.attrs&&e.data.elementItem[0].elData.attrs.proxy&&e.data.elementItem[0].elData.attrs.proxy!=t.project_url&&(e.data.elementItem[0].elData.attrs.proxy=t.project_url),d.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.groupAttrs&&e.data.elementItem[0].elData.groupAttrs.proxy&&e.data.elementItem[0].elData.groupAttrs.proxy!=t.project_url&&(e.data.elementItem[0].elData.groupAttrs.proxy=t.project_url),e);return{initData:()=>{u.getAllSystemInfo().then((e=>{var i;1==e.code&&(n.systemList=e.data||[],n.currentSystem=t.Session.get("CURRENT_SYSTEM"),n.currentSystemValue=(null==(i=n.currentSystem)?void 0:i.project_code)||"",s().then((async()=>{var e;if(o.linkItem&&(null==(e=k.value)?void 0:e.id)){let e=[];const t=o=>{const n=a.value.find((e=>e.id===o));n&&(e.push(n.id),n.pid&&t(n.pid))};t(k.value.common_menu_id),n.currentMenuValue=e.reverse(),n.currentConfigValue=k.value.common_config_unique_id,n.currentMenuName=k.value.common_page_name,await r(!1),c()}})))}))},onChangeMenu:()=>{var e;n.currentMenuName=(null==(e=a.value.find((e=>e.id===n.currentMenuValue[n.currentMenuValue.length-1])))?void 0:e.title)||"",r()},onChangeConfig:c,onChangeSystem:()=>{n.currentSystemValue?n.currentSystem=n.systemList.find((e=>e.project_code===n.currentSystemValue)):n.currentSystem=void 0,n.currentMenuValue=[],n.currentConfig=void 0,n.currentConfigValue="",s()},dialogData:n,confirm:()=>{if(n.currentConfig){let e=t._.cloneDeep(n.currentConfig);e.config_name="",e.config_unique_id=t.v4(),o.close(e)}else t.ElMessage.warning("请选择配置")},confirmLinkCommon:function(e){if(n.currentConfig){let a=t._.cloneDeep(n.currentConfig);const r=JSON.parse(window.localStorage.getItem("_CURRENT_MENT_FORM_INFO")||"{}");i.postgGtConfigRelate({common_config_unique_id:a.config_unique_id,menu_id:r.id,project_code:r.project_code}).then((r=>{r.data?t.ElMessage.warning("该配置已存在引用关系,请勿重复添加"):o.close({type:e,config:a,dialogData:n})}))}else t.ElMessage.warning("请选择配置")}}}const s={class:"h-full flex flex-col"},m={class:"flex-1"},d={style:{height:"50px"}},f={key:0,class:"w-full",style:{height:"calc(100% - 50px)",overflow:"auto"}},g={key:0},_={class:"flex px-4 flex-wrap"},p={class:"flex px-4 flex-wrap"},C={class:"h-16 flex items-center justify-center"},h=e.defineComponent({__name:"cloneConfigDialog",props:{close:Function,linkItem:Boolean},setup(t){const o=t,{dialogData:n,initData:a,onChangeMenu:r,onChangeConfig:i,onChangeSystem:l,confirm:u,confirmLinkCommon:h}=c(o);e.onMounted((()=>{a()}));const v=e.ref({label:"title",value:"id"});return(o,a)=>{const c=e.resolveComponent("hs-option"),y=e.resolveComponent("hs-select"),k=e.resolveComponent("hs-form-item"),D=e.resolveComponent("hs-cascader"),V=e.resolveComponent("hs-form"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",m,[e.createElementVNode("div",d,[e.createVNode(V,{inline:""},{default:e.withCtx((()=>[e.createVNode(k,{label:"系统:"},{default:e.withCtx((()=>[e.createVNode(y,{disabled:t.linkItem,onChange:e.unref(l),modelValue:e.unref(n).currentSystemValue,"onUpdate:modelValue":a[0]||(a[0]=t=>e.unref(n).currentSystemValue=t),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).systemList,(t=>(e.openBlock(),e.createBlock(c,{key:t.project_code,label:t.project_name,value:t.project_code},null,8,["label","value"])))),128))])),_:1},8,["disabled","onChange","modelValue"])])),_:1}),e.createVNode(k,{label:"菜单:"},{default:e.withCtx((()=>[e.createVNode(D,{onChange:e.unref(r),modelValue:e.unref(n).currentMenuValue,"onUpdate:modelValue":a[1]||(a[1]=t=>e.unref(n).currentMenuValue=t),options:e.unref(n).menuList,props:v.value},null,8,["onChange","modelValue","options","props"])])),_:1}),e.createVNode(k,{label:"配置:"},{default:e.withCtx((()=>[e.createVNode(y,{onChange:e.unref(i),modelValue:e.unref(n).currentConfigValue,"onUpdate:modelValue":a[2]||(a[2]=t=>e.unref(n).currentConfigValue=t),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).configList,(t=>(e.openBlock(),e.createBlock(c,{key:t.config_unique_id,label:t.config_name,value:t.config_unique_id},null,8,["label","value"])))),128))])),_:1},8,["onChange","modelValue"])])),_:1})])),_:1})]),e.unref(n).currentConfig?(e.openBlock(),e.createElementBlock("div",f,[e.unref(n).currentConfig.btns.length>0?(e.openBlock(),e.createElementBlock("div",g,[a[6]||(a[6]=e.createElementVNode("div",{class:"title font-medium my-2"},"按钮",-1)),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).currentConfig.btns,(t=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:t.id},e.toDisplayString(t.data.name)+"--"+e.toDisplayString(t.data.key),1)))),128))])])):e.createCommentVNode("",!0),e.unref(n).currentConfig.forms?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(n).currentConfig.forms,((t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o},[a[7]||(a[7]=e.createElementVNode("div",{class:"title font-medium my-2"},"表单项",-1)),e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.form.formConfig,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:o},e.toDisplayString(t.data.elementItem[0].baseData.label)+"--"+e.toDisplayString(t.data.elementItem[0].baseData.prop),1)))),128))])])))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("footer",C,[e.createVNode(b,{size:"default",onClick:a[3]||(a[3]=e=>t.close("cancel"))},{default:e.withCtx((()=>a[8]||(a[8]=[e.createTextVNode("关闭")]))),_:1}),t.linkItem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,type:"primary",size:"default",onClick:e.unref(u)},{default:e.withCtx((()=>a[9]||(a[9]=[e.createTextVNode("确定")]))),_:1},8,["onClick"])),t.linkItem?(e.openBlock(),e.createBlock(b,{key:1,type:"primary",size:"default",onClick:a[4]||(a[4]=t=>e.unref(h)("merge"))},{default:e.withCtx((()=>a[10]||(a[10]=[e.createTextVNode("合并当前配置")]))),_:1})):e.createCommentVNode("",!0),t.linkItem?(e.openBlock(),e.createBlock(b,{key:2,type:"primary",size:"default",onClick:a[5]||(a[5]=t=>e.unref(h)("link"))},{default:e.withCtx((()=>a[11]||(a[11]=[e.createTextVNode("引用当前配置")]))),_:1})):e.createCommentVNode("",!0)])])}}}),v=t._export_sfc(h,[["__scopeId","data-v-5e8600d6"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),k=e.ref({});exports.cloneConfigDialog=y,exports.linkUniqueInfo=k,exports.useSaveForm=function(o,n,i){const{postSaveConfigRelate:l,postDelConfigRelate:u,postgGtConfigRelate:c}=t.useFieldConfigController(),s=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8});let m=e.ref(!0),d=e.ref(t._.assign(t._.cloneDeep(r),{formData:{name:"",config_name:"",config_unique_id:t.v4()}}));const f=e=>{let n=t._.cloneDeep(r);if(n.formData.name=e[0]&&e[0].config_name||"",n.formData.config_name=e[0]&&e[0].config_name||"",n.formData.is_auth=e[0]&&e[0].is_auth+""||"1",n.formData.config_unique_id=e[0]&&e[0].config_unique_id||t.v4(),n.formData.id=e[0]&&e[0].id||"",n.formData.isClosedKeyStroke=e[0]&&e[0].field_json&&JSON.parse(e[0].field_json).isClosedKeyStroke||!1,n.formData.update_time=e[0]&&e[0].update_time||"",e.length>0){let o=e.map((e=>({label:e.config_name,value:e.config_unique_id,id:e.id,update_time:e.update_time,is_auth:e.is_auth+"",isClosedKeyStroke:e.isClosedKeyStroke||!1}))),a=t._.assign(n.formConfig[0],{op:o});n.formConfig.splice(0,1,a)}d.value=n,m.value=!0;o("change",e.length?JSON.parse(e[0].field_json):{config_unique_id:"",config_name:"",is_auth:"1",isClosedKeyStroke:!1,BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})};function g(e){var o;const n=JSON.parse(window.localStorage.getItem("_CURRENT_MENT_FORM_INFO")||"{}"),a=e.dialogData.currentMenuValue[e.dialogData.currentMenuValue.length-1],r={common_config_unique_id:e.config.config_unique_id,common_menu_id:a,common_config_name:e.config.config_name,common_page_name:e.dialogData.currentMenuName,config_name:d.value.formData.config_name,page_name:n.title,config_unique_id:d.value.formData.config_unique_id,menu_id:n.id,project_code:e.dialogData.currentSystemValue};(null==(o=k.value)?void 0:o.id)&&(r.id=k.value.id),l(r).then((e=>{1===e.code&&(t.HsMessage.success("关联成功"),c({config_unique_id:d.value.formData.config_unique_id,menu_id:n.id,project_code:n.project_code}).then((e=>{k.value=t._.get(e,"data",{})})))}))}function _(e){o("merge",e.config)}return{parentConfig:s,formConfig:d,isEdit:m,saveConfig:async()=>{await n.value.getSubmitData()&&o("save",d.value.formData)},changeConfig:(e,n)=>{if("name"==n){let n=t._.cloneDeep(i.configs).find((t=>t.config_unique_id==e));d.value.formData=t._.assign(d.value.formData,{config_name:n.config_name,config_unique_id:n.config_unique_id,isClosedKeyStroke:n.isClosedKeyStroke,id:n.id,update_time:n.update_time,is_auth:n.is_auth+""}),m.value=!0,o("change",JSON.parse(n.field_json))}},initConfig:f,addConfig:()=>{m.value=!1,d.value=t._.cloneDeep(a),d.value.formData.config_unique_id=t.v4();o("change",{config_unique_id:"",config_name:"",is_auth:"1",BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})},cancel:()=>{f(t._.cloneDeep(i.configs)),m.value=!0},deleteConfig:()=>{o("delete",d.value.formData.id)},openCloneDialog:()=>{t.showPopup(v,null,{title:"请选择所需配置",showFooter:!1,success(e){var n;e.data&&(n=e.data,o("change",n),d.value=t._.cloneDeep(a),d.value.formData.config_unique_id=t.v4())}})},openLinkCommonDialog:function(){t.showPopup(v,{linkItem:!0},{title:"请选择所需配置",showFooter:!1,async success(e){const o={linkConfigData:g,mergeConfigData:_};t._.get(o,`${e.data.type}ConfigData`)(e.data)}})},deleteLinkCommonDialog:function(){t.HsMessageBox.alert("确定删除当前引用吗","提示",{showCancelButton:!0,confirmButtonText:"修改",cancelButtonText:"取消",callback:e=>{"confirm"===e&&u({id:k.value.id}).then((e=>{1===e.code&&(k.value={},t.HsMessage.success("删除成功"))}))}})}}};
|
1
|
+
"use strict";const e=require("vue"),t=require("./index-CjsIFhet.js");const o={config_name:[{required:!0,message:"请输入配置名称"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},n=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"isClosedKeyStroke",label:"关闭键盘事件",el:"hs-switch",attr:{"active-value":!0,"inactive-value":!1},show:!0}],a={formData:{config_name:"",config_unique_id:t.v4(),is_auth:"1"},formRule:o,formConfig:n};const r={formData:{name:"",config_name:"",config_unique_id:"",is_auth:"1"},formRule:o,formConfig:t._.concat([{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],n)},i=t.useFieldConfigController(),l=t.useMenuController(),u=t.useSystemController();function c(o){const n=e.reactive({systemList:[],currentSystemValue:"",currentSystem:void 0,menuList:[],currentMenuValue:[],currentMenuName:"",configList:[],currentConfig:void 0,currentConfigValue:""}),a=e.computed((()=>t.treeToList(n.menuList))),r=async(e=!0)=>{if(n.currentMenuValue.length<=0||!n.currentSystem)return n.configList=[],void(n.currentConfig=void 0);let a=n.currentMenuValue[n.currentMenuValue.length-1],r=t.Session.get("CURRENT_SYSTEM");await i.getFormByMenu({menu_id:a,project_code:n.currentSystem.project_code}).then((a=>{1==a.code&&(n.configList=t._.cloneDeep(a.data).map((e=>{let n=JSON.parse(e.field_json);return n.btns=n.btns.map((e=>(o.linkItem||(e.id=t.v4()),e))),n.BaseForm&&n.BaseForm.proxy&&n.BaseForm.proxy!=r.project_url&&(n.BaseForm.proxy=r.project_url),n.forms,n.forms&&n.forms.length>0&&(n.forms=n.forms.map((e=>(o.linkItem||(e.id=t.v4()),e.form&&e.form.formConfig&&e.form.formConfig.length>0&&(e.form.formConfig=e.form.formConfig.map((e=>(o.linkItem||(e.id=t.v4()),f(e,r),e)))),e)))),t._.assign(n,{id:"",update_time:""})})),e&&(n.currentConfigValue="",n.currentConfig=void 0))}))},c=()=>{n.currentConfigValue?n.currentConfig=n.configList.find((e=>e.config_unique_id===n.currentConfigValue)):n.currentConfig=void 0},s=()=>n.currentSystem&&n.currentSystem.project_code?l.getMenuList({project_code:n.currentSystem.project_code}).then((e=>1!=e.code?Promise.reject():(n.menuList=e.data||[],n.currentMenuValue=[],Promise.resolve()))).catch((e=>{})):Promise.reject(),m=["hs-select","hs-tree-select"],d=["hs-radio","hs-checkbox"],f=(e,t)=>(m.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.attrs&&e.data.elementItem[0].elData.attrs.proxy&&e.data.elementItem[0].elData.attrs.proxy!=t.project_url&&(e.data.elementItem[0].elData.attrs.proxy=t.project_url),d.includes(e.data.elementItem[0].baseData.el)&&e.data.elementItem[0].elData.groupAttrs&&e.data.elementItem[0].elData.groupAttrs.proxy&&e.data.elementItem[0].elData.groupAttrs.proxy!=t.project_url&&(e.data.elementItem[0].elData.groupAttrs.proxy=t.project_url),e);return{initData:()=>{u.getAllSystemInfo().then((e=>{var i;1==e.code&&(n.systemList=e.data||[],n.currentSystem=t.Session.get("CURRENT_SYSTEM"),n.currentSystemValue=(null==(i=n.currentSystem)?void 0:i.project_code)||"",s().then((async()=>{var e;if(o.linkItem&&(null==(e=k.value)?void 0:e.id)){let e=[];const t=o=>{const n=a.value.find((e=>e.id===o));n&&(e.push(n.id),n.pid&&t(n.pid))};t(k.value.common_menu_id),n.currentMenuValue=e.reverse(),n.currentConfigValue=k.value.common_config_unique_id,n.currentMenuName=k.value.common_page_name,await r(!1),c()}})))}))},onChangeMenu:()=>{var e;n.currentMenuName=(null==(e=a.value.find((e=>e.id===n.currentMenuValue[n.currentMenuValue.length-1])))?void 0:e.title)||"",r()},onChangeConfig:c,onChangeSystem:()=>{n.currentSystemValue?n.currentSystem=n.systemList.find((e=>e.project_code===n.currentSystemValue)):n.currentSystem=void 0,n.currentMenuValue=[],n.currentConfig=void 0,n.currentConfigValue="",s()},dialogData:n,confirm:()=>{if(n.currentConfig){let e=t._.cloneDeep(n.currentConfig);e.config_name="",e.config_unique_id=t.v4(),o.close(e)}else t.ElMessage.warning("请选择配置")},confirmLinkCommon:function(e){if(n.currentConfig){let a=t._.cloneDeep(n.currentConfig);const r=JSON.parse(window.localStorage.getItem("_CURRENT_MENT_FORM_INFO")||"{}");i.postgGtConfigRelate({common_config_unique_id:a.config_unique_id,menu_id:r.id,project_code:r.project_code}).then((r=>{r.data?t.ElMessage.warning("该配置已存在引用关系,请勿重复添加"):o.close({type:e,config:a,dialogData:n})}))}else t.ElMessage.warning("请选择配置")}}}const s={class:"h-full flex flex-col"},m={class:"flex-1"},d={style:{height:"50px"}},f={key:0,class:"w-full",style:{height:"calc(100% - 50px)",overflow:"auto"}},g={key:0},_={class:"flex px-4 flex-wrap"},p={class:"flex px-4 flex-wrap"},C={class:"h-16 flex items-center justify-center"},h=e.defineComponent({__name:"cloneConfigDialog",props:{close:Function,linkItem:Boolean},setup(t){const o=t,{dialogData:n,initData:a,onChangeMenu:r,onChangeConfig:i,onChangeSystem:l,confirm:u,confirmLinkCommon:h}=c(o);e.onMounted((()=>{a()}));const v=e.ref({label:"title",value:"id"});return(o,a)=>{const c=e.resolveComponent("hs-option"),y=e.resolveComponent("hs-select"),k=e.resolveComponent("hs-form-item"),D=e.resolveComponent("hs-cascader"),V=e.resolveComponent("hs-form"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",m,[e.createElementVNode("div",d,[e.createVNode(V,{inline:""},{default:e.withCtx((()=>[e.createVNode(k,{label:"系统:"},{default:e.withCtx((()=>[e.createVNode(y,{disabled:t.linkItem,onChange:e.unref(l),modelValue:e.unref(n).currentSystemValue,"onUpdate:modelValue":a[0]||(a[0]=t=>e.unref(n).currentSystemValue=t),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).systemList,(t=>(e.openBlock(),e.createBlock(c,{key:t.project_code,label:t.project_name,value:t.project_code},null,8,["label","value"])))),128))])),_:1},8,["disabled","onChange","modelValue"])])),_:1}),e.createVNode(k,{label:"菜单:"},{default:e.withCtx((()=>[e.createVNode(D,{onChange:e.unref(r),modelValue:e.unref(n).currentMenuValue,"onUpdate:modelValue":a[1]||(a[1]=t=>e.unref(n).currentMenuValue=t),options:e.unref(n).menuList,props:v.value},null,8,["onChange","modelValue","options","props"])])),_:1}),e.createVNode(k,{label:"配置:"},{default:e.withCtx((()=>[e.createVNode(y,{onChange:e.unref(i),modelValue:e.unref(n).currentConfigValue,"onUpdate:modelValue":a[2]||(a[2]=t=>e.unref(n).currentConfigValue=t),style:{width:"240px"}},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).configList,(t=>(e.openBlock(),e.createBlock(c,{key:t.config_unique_id,label:t.config_name,value:t.config_unique_id},null,8,["label","value"])))),128))])),_:1},8,["onChange","modelValue"])])),_:1})])),_:1})]),e.unref(n).currentConfig?(e.openBlock(),e.createElementBlock("div",f,[e.unref(n).currentConfig.btns.length>0?(e.openBlock(),e.createElementBlock("div",g,[a[6]||(a[6]=e.createElementVNode("div",{class:"title font-medium my-2"},"按钮",-1)),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).currentConfig.btns,(t=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:t.id},e.toDisplayString(t.data.name)+"--"+e.toDisplayString(t.data.key),1)))),128))])])):e.createCommentVNode("",!0),e.unref(n).currentConfig.forms?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(n).currentConfig.forms,((t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o},[a[7]||(a[7]=e.createElementVNode("div",{class:"title font-medium my-2"},"表单项",-1)),e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.form.formConfig,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"p-2 mx-2 border-dashed rounded-md border flex-nowrap mb-2",key:o},e.toDisplayString(t.data.elementItem[0].baseData.label)+"--"+e.toDisplayString(t.data.elementItem[0].baseData.prop),1)))),128))])])))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("footer",C,[e.createVNode(b,{size:"default",onClick:a[3]||(a[3]=e=>t.close("cancel"))},{default:e.withCtx((()=>a[8]||(a[8]=[e.createTextVNode("关闭")]))),_:1}),t.linkItem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,type:"primary",size:"default",onClick:e.unref(u)},{default:e.withCtx((()=>a[9]||(a[9]=[e.createTextVNode("确定")]))),_:1},8,["onClick"])),t.linkItem?(e.openBlock(),e.createBlock(b,{key:1,type:"primary",size:"default",onClick:a[4]||(a[4]=t=>e.unref(h)("merge"))},{default:e.withCtx((()=>a[10]||(a[10]=[e.createTextVNode("合并当前配置")]))),_:1})):e.createCommentVNode("",!0),t.linkItem?(e.openBlock(),e.createBlock(b,{key:2,type:"primary",size:"default",onClick:a[5]||(a[5]=t=>e.unref(h)("link"))},{default:e.withCtx((()=>a[11]||(a[11]=[e.createTextVNode("引用当前配置")]))),_:1})):e.createCommentVNode("",!0)])])}}}),v=t._export_sfc(h,[["__scopeId","data-v-5e8600d6"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),k=e.ref({});exports.cloneConfigDialog=y,exports.linkUniqueInfo=k,exports.useSaveForm=function(o,n,i){const{postSaveConfigRelate:l,postDelConfigRelate:u,postgGtConfigRelate:c}=t.useFieldConfigController(),s=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8});let m=e.ref(!0),d=e.ref(t._.assign(t._.cloneDeep(r),{formData:{name:"",config_name:"",config_unique_id:t.v4()}}));const f=e=>{let n=t._.cloneDeep(r);if(n.formData.name=e[0]&&e[0].config_name||"",n.formData.config_name=e[0]&&e[0].config_name||"",n.formData.is_auth=e[0]&&e[0].is_auth+""||"1",n.formData.config_unique_id=e[0]&&e[0].config_unique_id||t.v4(),n.formData.id=e[0]&&e[0].id||"",n.formData.isClosedKeyStroke=e[0]&&e[0].field_json&&JSON.parse(e[0].field_json).isClosedKeyStroke||!1,n.formData.update_time=e[0]&&e[0].update_time||"",e.length>0){let o=e.map((e=>({label:e.config_name,value:e.config_unique_id,id:e.id,update_time:e.update_time,is_auth:e.is_auth+"",isClosedKeyStroke:e.isClosedKeyStroke||!1}))),a=t._.assign(n.formConfig[0],{op:o});n.formConfig.splice(0,1,a)}d.value=n,m.value=!0;o("change",e.length?JSON.parse(e[0].field_json):{config_unique_id:"",config_name:"",is_auth:"1",isClosedKeyStroke:!1,BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})};function g(e){var o;const n=JSON.parse(window.localStorage.getItem("_CURRENT_MENT_FORM_INFO")||"{}"),a=e.dialogData.currentMenuValue[e.dialogData.currentMenuValue.length-1],r={common_config_unique_id:e.config.config_unique_id,common_menu_id:a,common_config_name:e.config.config_name,common_page_name:e.dialogData.currentMenuName,config_name:d.value.formData.config_name,page_name:n.title,config_unique_id:d.value.formData.config_unique_id,menu_id:n.id,project_code:e.dialogData.currentSystemValue};(null==(o=k.value)?void 0:o.id)&&(r.id=k.value.id),l(r).then((e=>{1===e.code&&(t.HsMessage.success("关联成功"),c({config_unique_id:d.value.formData.config_unique_id,menu_id:n.id,project_code:n.project_code}).then((e=>{k.value=t._.get(e,"data",{})})))}))}function _(e){o("merge",e.config)}return{parentConfig:s,formConfig:d,isEdit:m,saveConfig:async()=>{await n.value.getSubmitData()&&o("save",d.value.formData)},changeConfig:(e,n)=>{if("name"==n){let n=t._.cloneDeep(i.configs).find((t=>t.config_unique_id==e));d.value.formData=t._.assign(d.value.formData,{config_name:n.config_name,config_unique_id:n.config_unique_id,isClosedKeyStroke:n.isClosedKeyStroke,id:n.id,update_time:n.update_time,is_auth:n.is_auth+""}),m.value=!0,o("change",JSON.parse(n.field_json))}},initConfig:f,addConfig:()=>{m.value=!1,d.value=t._.cloneDeep(a),d.value.formData.config_unique_id=t.v4();o("change",{config_unique_id:"",config_name:"",is_auth:"1",BaseForm:{labelWidth:"120",labelPosition:"right",size:"default",labelSuffix:"",requireAsteriskPosition:"left",statusIcon:!1,validateOnRuleChange:!0,scrollToError:!1,method:"post"},btns:[],forms:[{id:"form_1",base:{label:"表单配置名称",fieldID:"form",grid:3,isShowLabel:!0},form:{baseData:{rowGap:15,columnGap:0},formConfig:[],formData:[]},component:{baseData:{}},slot:{baseData:{}},formItemType:"form"}]})},cancel:()=>{f(t._.cloneDeep(i.configs)),m.value=!0},deleteConfig:()=>{o("delete",d.value.formData.id)},openCloneDialog:()=>{t.showPopup(v,null,{title:"请选择所需配置",showFooter:!1,success(e){var n;e.data&&(n=e.data,o("change",n),d.value=t._.cloneDeep(a),d.value.formData.config_unique_id=t.v4())}})},openLinkCommonDialog:function(){t.showPopup(v,{linkItem:!0},{title:"请选择所需配置",showFooter:!1,async success(e){const o={linkConfigData:g,mergeConfigData:_};t._.get(o,`${e.data.type}ConfigData`)(e.data)}})},deleteLinkCommonDialog:function(){t.HsMessageBox.alert("确定删除当前引用吗","提示",{showCancelButton:!0,confirmButtonText:"修改",cancelButtonText:"取消",callback:e=>{"confirm"===e&&u({id:k.value.id}).then((e=>{1===e.code&&(k.value={},t.HsMessage.success("删除成功"))}))}})}}};
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, withCtx, withDirectives, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
2
|
-
import { a as useRouter, T as useUserInfo, c as useThemeConfig, s as storeToRefs,
|
3
|
-
import { u as useLoginController } from "./index-
|
2
|
+
import { a as useRouter, T as useUserInfo, c as useThemeConfig, s as storeToRefs, a8 as systemStore, ah as ClickOutside, ai as screenfull, d as ElMessage, m as mittBus, E as ElMessageBox, aj as clearAllIndexDB, e as _, _ as _export_sfc } from "./index-CzSn_cwk.mjs";
|
3
|
+
import { u as useLoginController } from "./index-C6XGm2fy.mjs";
|
4
4
|
const _hoisted_1 = ["title"];
|
5
5
|
const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
|
6
6
|
const _hoisted_3 = ["src"];
|
@@ -10,8 +10,8 @@ const __default__ = defineComponent({
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
...__default__,
|
12
12
|
setup(__props) {
|
13
|
-
const UserNews = defineAsyncComponent(() => import("./userNews-
|
14
|
-
const Search = defineAsyncComponent(() => import("./search-
|
13
|
+
const UserNews = defineAsyncComponent(() => import("./userNews-BlSxol91.mjs"));
|
14
|
+
const Search = defineAsyncComponent(() => import("./search-BEFwrnRx.mjs"));
|
15
15
|
const login = useLoginController();
|
16
16
|
const userNewsRef = ref();
|
17
17
|
const userNewsBadgeRef = ref();
|
@@ -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-CjsIFhet.js"),o=require("./index-YqjWnjJU.js"),n=["title"],r={class:"layout-navbars-breadcrumb-user-link"},l=["src"],a=e.defineComponent({name:"layoutBreadcrumbUser"}),s=e.defineComponent({...a,setup(a){const s=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-Cp2k2UXb.js"))))),i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-C0ob8iob.js"))))),c=o.useLoginController(),u=e.ref(),d=e.ref(),m=t.useRouter(),f=t.useUserInfo(),p=t.useThemeConfig(),{userInfos:C}=t.storeToRefs(f),{themeConfig:v}=t.storeToRefs(p),g=e.ref(),h=e.reactive({isScreenfull:!1,disabledSize:"large"}),w=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=v.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),b=()=>{if(!t.screenfull.isEnabled)return t.ElMessage.warning("暂不不支持全屏"),!1;t.screenfull.toggle(),t.screenfull.on("change",(()=>{t.screenfull.isFullscreen?h.isScreenfull=!0:h.isScreenfull=!1}))},N=()=>{var t,o;null==(o=null==(t=e.unref(u).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{t.mittBus.emit("openSetingsDrawer")},y=e=>{"logOut"===e?t.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",c.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{f.logout()})).catch((()=>{})):"cleanCanche"===e?t.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):m.push(e)},V=()=>{g.value.openSearch()};return e.onMounted((async()=>{await t.systemStore.get("themeConfig")&&await(async(e,o)=>{h[o]=await t.systemStore.get("themeConfig").then((o=>t._.get(o,e,"large")))})("globalComponentSize","disabledSize")})),(o,a)=>{const c=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),S=e.resolveComponent("ele-ArrowDown"),_=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:w.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(c)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},a[0]||(a[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:d},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(t.ClickOutside),N]]),e.createVNode(v,{ref_key:"userNewsRef",ref:u,"virtual-ref":d.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(s))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:b},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",h.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:h.isScreenfull?"关全屏":"开全屏"},null,10,n)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(_,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>a[1]||(a[1]=[e.createTextVNode("清除缓存")]))),_:1}),e.createVNode(_,{divided:"",command:"logOut"},{default:e.withCtx((()=>a[2]||(a[2]=[e.createTextVNode("退出登录")]))),_:1})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",r,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,l),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(S)])),_:1})])])),_:1}),e.createVNode(e.unref(i),{ref_key:"searchRef",ref:g},null,512)],4)}}}),i=t._export_sfc(s,[["__scopeId","data-v-e3d6c416"]]);exports.default=i;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString, createBlock } from "vue";
|
2
|
-
import { _ as _export_sfc } from "./index-
|
2
|
+
import { _ as _export_sfc } from "./index-CzSn_cwk.mjs";
|
3
3
|
const _hoisted_1 = { class: "layout-navbars-breadcrumb-user-news" };
|
4
4
|
const _hoisted_2 = { class: "head-box" };
|
5
5
|
const _hoisted_3 = { class: "content-box" };
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CjsIFhet.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l={class:"content-box"},s={class:"content-box-msg"},c={class:"content-box-time"},a=e.defineComponent({name:"layoutBreadcrumbUserNews"}),r=e.defineComponent({...a,setup(t){const a=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),r=()=>{a.newsList=[]},i=()=>{window.open("https://www.baidu.com")};return(t,d)=>{const m=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[d[0]||(d[0]=e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:r},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[a.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",c,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(m,{key:1,description:"暂无通知"}))]),a.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:i},"前往通知中心")):e.createCommentVNode("",!0)])}}}),i=t._export_sfc(r,[["__scopeId","data-v-8abed4d4"]]);exports.default=i;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-DxAwZbJa.js");exports.default=e._sfc_main;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
|
2
|
-
import { M as request } from "./index-
|
2
|
+
import { M as request } from "./index-CzSn_cwk.mjs";
|
3
3
|
const assign = (params, title) => {
|
4
4
|
return Object.assign(params, { other_log_info: { title } });
|
5
5
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./index-
|
1
|
+
"use strict";const e=require("vue"),t=require("./index-CjsIFhet.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1})])])}}});exports._sfc_main=c;
|
@@ -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-CjsIFhet.js"),n=["onClick"],l=e.defineComponent({name:"navMenuVertical"}),i=e.defineComponent({...l,props:{menuList:{type:Array,default:()=>[]}},setup(l){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-3ZkWOywM.js"))))),o=l,a=t.useThemeConfig(),{themeConfig:s}=t.storeToRefs(a),c=t.useRoute(),r=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),u=e.computed((()=>o.menuList)),m=e.computed((()=>s.value)),d=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{r.defaultActive=d(c)})),t.onBeforeRouteUpdate((e=>{r.defaultActive=d(e);document.body.clientWidth<1e3&&(s.value.isCollapse=!1)})),e.watch((()=>s.value.isCollapse),(e=>{document.body.clientWidth<=1e3?r.isCollapse=!1:r.isCollapse=e}),{immediate:!0}),(l,o)=>{const a=e.resolveComponent("SvgIcon"),s=e.resolveComponent("el-sub-menu"),c=e.resolveComponent("el-menu-item"),d=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(d,{router:"","default-active":r.defaultActive,"background-color":"transparent",collapse:r.isCollapse,"unique-opened":m.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.children&&l.children.length>0?(e.openBlock(),e.createBlock(s,{index:l.path,key:l.path},{title:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(i),{chil:l.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(c,{index:l.path,key:l.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(a,{name:l.meta.icon},null,8,["name"])])),_:2},[!l.meta.isLink||l.meta.isLink&&l.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{t.other.handleOpenLink(e)})(l)),["prevent"])},e.toDisplayString(l.meta.title),9,n)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=i;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, createElementVNode, toDisplayString, unref, createSlots, withModifiers } from "vue";
|
2
|
-
import { c as useThemeConfig, s as storeToRefs, u as useRoute,
|
2
|
+
import { c as useThemeConfig, s as storeToRefs, u as useRoute, ae as onBeforeRouteUpdate, ad as other } from "./index-CzSn_cwk.mjs";
|
3
3
|
const _hoisted_1 = ["onClick"];
|
4
4
|
const __default__ = defineComponent({
|
5
5
|
name: "navMenuVertical"
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
}
|
15
15
|
},
|
16
16
|
setup(__props) {
|
17
|
-
const SubItem = defineAsyncComponent(() => import("./subItem-
|
17
|
+
const SubItem = defineAsyncComponent(() => import("./subItem-DKotOKCm.mjs"));
|
18
18
|
const props = __props;
|
19
19
|
const storesThemeConfig = useThemeConfig();
|
20
20
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
package/package.json
CHANGED
package/dist/404-B_UU024b.js.gz
DELETED
Binary file
|
package/dist/404-Bd1zCl5C.mjs.gz
DELETED
Binary file
|
package/dist/account-D7JfWzFR.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B_kKJMY2.js"),r=require("./index-DsbxNdmK.js");class s{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(e,t=!1){return this.onePassHasher.start().appendStr(e).end(t)}static hashAsciiStr(e,t=!1){return this.onePassHasher.start().appendAsciiStr(e).end(t)}static _hex(e){const t=s.hexChars,r=s.hexOut;let a,o,n,i;for(i=0;i<4;i+=1)for(o=8*i,a=e[i],n=0;n<8;n+=2)r[o+1+n]=t.charAt(15&a),a>>>=4,r[o+0+n]=t.charAt(15&a),a>>>=4;return r.join("")}static _md5cycle(e,t){let r=e[0],s=e[1],a=e[2],o=e[3];r+=(s&a|~s&o)+t[0]-680876936|0,r=(r<<7|r>>>25)+s|0,o+=(r&s|~r&a)+t[1]-389564586|0,o=(o<<12|o>>>20)+r|0,a+=(o&r|~o&s)+t[2]+606105819|0,a=(a<<17|a>>>15)+o|0,s+=(a&o|~a&r)+t[3]-1044525330|0,s=(s<<22|s>>>10)+a|0,r+=(s&a|~s&o)+t[4]-176418897|0,r=(r<<7|r>>>25)+s|0,o+=(r&s|~r&a)+t[5]+1200080426|0,o=(o<<12|o>>>20)+r|0,a+=(o&r|~o&s)+t[6]-1473231341|0,a=(a<<17|a>>>15)+o|0,s+=(a&o|~a&r)+t[7]-45705983|0,s=(s<<22|s>>>10)+a|0,r+=(s&a|~s&o)+t[8]+1770035416|0,r=(r<<7|r>>>25)+s|0,o+=(r&s|~r&a)+t[9]-1958414417|0,o=(o<<12|o>>>20)+r|0,a+=(o&r|~o&s)+t[10]-42063|0,a=(a<<17|a>>>15)+o|0,s+=(a&o|~a&r)+t[11]-1990404162|0,s=(s<<22|s>>>10)+a|0,r+=(s&a|~s&o)+t[12]+1804603682|0,r=(r<<7|r>>>25)+s|0,o+=(r&s|~r&a)+t[13]-40341101|0,o=(o<<12|o>>>20)+r|0,a+=(o&r|~o&s)+t[14]-1502002290|0,a=(a<<17|a>>>15)+o|0,s+=(a&o|~a&r)+t[15]+1236535329|0,s=(s<<22|s>>>10)+a|0,r+=(s&o|a&~o)+t[1]-165796510|0,r=(r<<5|r>>>27)+s|0,o+=(r&a|s&~a)+t[6]-1069501632|0,o=(o<<9|o>>>23)+r|0,a+=(o&s|r&~s)+t[11]+643717713|0,a=(a<<14|a>>>18)+o|0,s+=(a&r|o&~r)+t[0]-373897302|0,s=(s<<20|s>>>12)+a|0,r+=(s&o|a&~o)+t[5]-701558691|0,r=(r<<5|r>>>27)+s|0,o+=(r&a|s&~a)+t[10]+38016083|0,o=(o<<9|o>>>23)+r|0,a+=(o&s|r&~s)+t[15]-660478335|0,a=(a<<14|a>>>18)+o|0,s+=(a&r|o&~r)+t[4]-405537848|0,s=(s<<20|s>>>12)+a|0,r+=(s&o|a&~o)+t[9]+568446438|0,r=(r<<5|r>>>27)+s|0,o+=(r&a|s&~a)+t[14]-1019803690|0,o=(o<<9|o>>>23)+r|0,a+=(o&s|r&~s)+t[3]-187363961|0,a=(a<<14|a>>>18)+o|0,s+=(a&r|o&~r)+t[8]+1163531501|0,s=(s<<20|s>>>12)+a|0,r+=(s&o|a&~o)+t[13]-1444681467|0,r=(r<<5|r>>>27)+s|0,o+=(r&a|s&~a)+t[2]-51403784|0,o=(o<<9|o>>>23)+r|0,a+=(o&s|r&~s)+t[7]+1735328473|0,a=(a<<14|a>>>18)+o|0,s+=(a&r|o&~r)+t[12]-1926607734|0,s=(s<<20|s>>>12)+a|0,r+=(s^a^o)+t[5]-378558|0,r=(r<<4|r>>>28)+s|0,o+=(r^s^a)+t[8]-2022574463|0,o=(o<<11|o>>>21)+r|0,a+=(o^r^s)+t[11]+1839030562|0,a=(a<<16|a>>>16)+o|0,s+=(a^o^r)+t[14]-35309556|0,s=(s<<23|s>>>9)+a|0,r+=(s^a^o)+t[1]-1530992060|0,r=(r<<4|r>>>28)+s|0,o+=(r^s^a)+t[4]+1272893353|0,o=(o<<11|o>>>21)+r|0,a+=(o^r^s)+t[7]-155497632|0,a=(a<<16|a>>>16)+o|0,s+=(a^o^r)+t[10]-1094730640|0,s=(s<<23|s>>>9)+a|0,r+=(s^a^o)+t[13]+681279174|0,r=(r<<4|r>>>28)+s|0,o+=(r^s^a)+t[0]-358537222|0,o=(o<<11|o>>>21)+r|0,a+=(o^r^s)+t[3]-722521979|0,a=(a<<16|a>>>16)+o|0,s+=(a^o^r)+t[6]+76029189|0,s=(s<<23|s>>>9)+a|0,r+=(s^a^o)+t[9]-640364487|0,r=(r<<4|r>>>28)+s|0,o+=(r^s^a)+t[12]-421815835|0,o=(o<<11|o>>>21)+r|0,a+=(o^r^s)+t[15]+530742520|0,a=(a<<16|a>>>16)+o|0,s+=(a^o^r)+t[2]-995338651|0,s=(s<<23|s>>>9)+a|0,r+=(a^(s|~o))+t[0]-198630844|0,r=(r<<6|r>>>26)+s|0,o+=(s^(r|~a))+t[7]+1126891415|0,o=(o<<10|o>>>22)+r|0,a+=(r^(o|~s))+t[14]-1416354905|0,a=(a<<15|a>>>17)+o|0,s+=(o^(a|~r))+t[5]-57434055|0,s=(s<<21|s>>>11)+a|0,r+=(a^(s|~o))+t[12]+1700485571|0,r=(r<<6|r>>>26)+s|0,o+=(s^(r|~a))+t[3]-1894986606|0,o=(o<<10|o>>>22)+r|0,a+=(r^(o|~s))+t[10]-1051523|0,a=(a<<15|a>>>17)+o|0,s+=(o^(a|~r))+t[1]-2054922799|0,s=(s<<21|s>>>11)+a|0,r+=(a^(s|~o))+t[8]+1873313359|0,r=(r<<6|r>>>26)+s|0,o+=(s^(r|~a))+t[15]-30611744|0,o=(o<<10|o>>>22)+r|0,a+=(r^(o|~s))+t[6]-1560198380|0,a=(a<<15|a>>>17)+o|0,s+=(o^(a|~r))+t[13]+1309151649|0,s=(s<<21|s>>>11)+a|0,r+=(a^(s|~o))+t[4]-145523070|0,r=(r<<6|r>>>26)+s|0,o+=(s^(r|~a))+t[11]-1120210379|0,o=(o<<10|o>>>22)+r|0,a+=(r^(o|~s))+t[2]+718787259|0,a=(a<<15|a>>>17)+o|0,s+=(o^(a|~r))+t[9]-343485551|0,s=(s<<21|s>>>11)+a|0,e[0]=r+e[0]|0,e[1]=s+e[1]|0,e[2]=a+e[2]|0,e[3]=o+e[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(s.stateIdentity),this}appendStr(e){const t=this._buffer8,r=this._buffer32;let a,o,n=this._bufferLength;for(o=0;o<e.length;o+=1){if(a=e.charCodeAt(o),a<128)t[n++]=a;else if(a<2048)t[n++]=192+(a>>>6),t[n++]=63&a|128;else if(a<55296||a>56319)t[n++]=224+(a>>>12),t[n++]=a>>>6&63|128,t[n++]=63&a|128;else{if(a=1024*(a-55296)+(e.charCodeAt(++o)-56320)+65536,a>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");t[n++]=240+(a>>>18),t[n++]=a>>>12&63|128,t[n++]=a>>>6&63|128,t[n++]=63&a|128}n>=64&&(this._dataLength+=64,s._md5cycle(this._state,r),n-=64,r[0]=r[16])}return this._bufferLength=n,this}appendAsciiStr(e){const t=this._buffer8,r=this._buffer32;let a,o=this._bufferLength,n=0;for(;;){for(a=Math.min(e.length-n,64-o);a--;)t[o++]=e.charCodeAt(n++);if(o<64)break;this._dataLength+=64,s._md5cycle(this._state,r),o=0}return this._bufferLength=o,this}appendByteArray(e){const t=this._buffer8,r=this._buffer32;let a,o=this._bufferLength,n=0;for(;;){for(a=Math.min(e.length-n,64-o);a--;)t[o++]=e[n++];if(o<64)break;this._dataLength+=64,s._md5cycle(this._state,r),o=0}return this._bufferLength=o,this}getState(){const e=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[e[0],e[1],e[2],e[3]]}}setState(e){const t=e.buffer,r=e.state,s=this._state;let a;for(this._dataLength=e.length,this._bufferLength=e.buflen,s[0]=r[0],s[1]=r[1],s[2]=r[2],s[3]=r[3],a=0;a<t.length;a+=1)this._buffer8[a]=t.charCodeAt(a)}end(e=!1){const t=this._bufferLength,r=this._buffer8,a=this._buffer32,o=1+(t>>2);this._dataLength+=t;const n=8*this._dataLength;if(r[t]=128,r[t+1]=r[t+2]=r[t+3]=0,a.set(s.buffer32Identity.subarray(o),o),t>55&&(s._md5cycle(this._state,a),a.set(s.buffer32Identity)),n<=4294967295)a[14]=n;else{const e=n.toString(16).match(/(.*?)(.{0,8})$/);if(null===e)return;const t=parseInt(e[2],16),r=parseInt(e[1],16)||0;a[14]=t,a[15]=r}return s._md5cycle(this._state,a),e?this._state:s._hex(this._state)}}if(s.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),s.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),s.hexChars="0123456789abcdef",s.hexOut=[],s.onePassHasher=new s,"5d41402abc4b2a76b9719d911017c592"!==s.hashStr("hello"))throw new Error("Md5 self test failed.");const a=["src"],o=e.defineComponent({name:"loginAccount"}),n=e.defineComponent({...o,setup(o){const n=t.useUserInfo(),i=r.useLoginController(),l=e.ref(""),h=()=>{l.value="/scmp-web/validateCode?date="+(new Date).getTime()};h();const c=t.useRoute(),d=t.useRouter(),u=e.reactive({isShowPassword:!1,ruleForm:{userName:"admin",password:"123456",code:""},loading:{signIn:!1}}),f=e.computed((()=>t.formatAxis(new Date))),p=e=>{var r,s,a,o;if(e)n.clear();else{let e=f.value;(null==(r=c.query)?void 0:r.redirect)?d.push({path:null==(s=c.query)?void 0:s.redirect,query:Object.keys(null==(a=c.query)?void 0:a.params).length>0?JSON.parse(null==(o=c.query)?void 0:o.params):""}):d.push({path:"/"});const n="欢迎回来!";t.ElMessage.success(`${e},${n}`),t.NextLoading.start()}},m=async()=>{u.loading.signIn=!0,i.postAjaxLogin({account:u.ruleForm.userName,pwd:s.hashStr(u.ruleForm.password),code:u.ruleForm.code}).then((async e=>{1===e.code?(await n.setUserInfo(e.data),p(!1)):(h(),p(!0)),u.loading.signIn=!1})).catch((()=>{u.loading.signIn=!1,h(),p(!0)}))};return(t,r)=>{const s=e.resolveComponent("ele-User"),o=e.resolveComponent("el-icon"),n=e.resolveComponent("el-input"),i=e.resolveComponent("el-form-item"),c=e.resolveComponent("ele-Unlock"),d=e.resolveComponent("ele-Position"),f=e.resolveComponent("el-col"),p=e.resolveComponent("el-button"),_=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(_,{size:"large",class:"login-content-form"},{default:e.withCtx((()=>[e.createVNode(i,{class:"login-animation1"},{default:e.withCtx((()=>[e.createVNode(n,{text:"",placeholder:"用户名 admin 或不输均为 common",modelValue:u.ruleForm.userName,"onUpdate:modelValue":r[0]||(r[0]=e=>u.ruleForm.userName=e),clearable:"",autocomplete:"off"},{prefix:e.withCtx((()=>[e.createVNode(o,{class:"el-input__icon"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})])),_:1},8,["modelValue"])])),_:1}),e.createVNode(i,{class:"login-animation2"},{default:e.withCtx((()=>[e.createVNode(n,{type:u.isShowPassword?"text":"password",placeholder:"密码:123456",modelValue:u.ruleForm.password,"onUpdate:modelValue":r[2]||(r[2]=e=>u.ruleForm.password=e),autocomplete:"off"},{prefix:e.withCtx((()=>[e.createVNode(o,{class:"el-input__icon"},{default:e.withCtx((()=>[e.createVNode(c)])),_:1})])),suffix:e.withCtx((()=>[e.createElementVNode("i",{class:e.normalizeClass(["iconfont el-input__icon login-content-password",u.isShowPassword?"icon-yincangmima":"icon-xianshimima"]),onClick:r[1]||(r[1]=e=>u.isShowPassword=!u.isShowPassword)},null,2)])),_:1},8,["type","modelValue"])])),_:1}),e.createVNode(i,{class:"login-animation3"},{default:e.withCtx((()=>[e.createVNode(f,{span:15},{default:e.withCtx((()=>[e.createVNode(n,{text:"",maxlength:"4",placeholder:"请输入验证码",modelValue:u.ruleForm.code,"onUpdate:modelValue":r[3]||(r[3]=e=>u.ruleForm.code=e),clearable:"",autocomplete:"off",onKeydown:e.withKeys(m,["enter"])},{prefix:e.withCtx((()=>[e.createVNode(o,{class:"el-input__icon"},{default:e.withCtx((()=>[e.createVNode(d)])),_:1})])),_:1},8,["modelValue"])])),_:1}),e.createVNode(f,{span:1}),e.createVNode(f,{span:8},{default:e.withCtx((()=>[e.createElementVNode("img",{src:l.value,id:"captcha",alt:"加载失败",style:{width:"130px",height:"30px",position:"relative",bottom:"0px"},onClick:h,class:"cursor-pointer"},null,8,a)])),_:1})])),_:1}),e.createVNode(i,{class:"login-animation4"},{default:e.withCtx((()=>[e.createVNode(p,{type:"primary",class:"login-content-submit",round:"",onClick:m,loading:u.loading.signIn},{default:e.withCtx((()=>r[4]||(r[4]=[e.createElementVNode("span",null,"登 录",-1)]))),_:1},8,["loading"])])),_:1})])),_:1})}}}),i=t._export_sfc(n,[["__scopeId","data-v-b21e05dd"]]);exports.default=i;
|
Binary file
|