hs-admin-ui 14.2.1 → 14.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-DLU0IL7R.js → 401-C0WpoiSX.js} +1 -1
- package/dist/{401-CDHEhQ2e.mjs → 401-Cz4vaco4.mjs} +1 -1
- package/dist/{404-DUHXP5ry.mjs → 404-D8tiFdmE.mjs} +1 -1
- package/dist/{404-DUHXP5ry.mjs.gz → 404-D8tiFdmE.mjs.gz} +0 -0
- package/dist/{404-DLK5a-vr.js → 404-DBep-v9S.js} +1 -1
- package/dist/404-DBep-v9S.js.gz +0 -0
- package/dist/{account-vzudq1Tj.js → account-BApZqRkc.js} +1 -1
- package/dist/{account-BgVrIlcC.mjs → account-DVIZ097G.mjs} +1 -1
- package/dist/{aside-5DEdOldK.mjs → aside-BnnEPyBr.mjs} +3 -3
- package/dist/{aside-MCIEn9t_.js → aside-BtsuzIzA.js} +1 -1
- package/dist/{auth_test-DRMB8t3X.mjs → auth_test-Ba-sCv0O.mjs} +1 -1
- package/dist/{auth_test-arvLE0Gb.js → auth_test-i2QWMfhj.js} +1 -1
- package/dist/{baseFormConfig-D2BFJw59.js → baseFormConfig-2yIKBluC.js} +1 -1
- package/dist/{baseFormConfig-C13SOxqq.mjs → baseFormConfig-CgyWBJv1.mjs} +1 -1
- package/dist/baseFormConfig-CgyWBJv1.mjs.gz +0 -0
- package/dist/{baseTableConfig-D8B453v-.mjs → baseTableConfig-BpfR_abz.mjs} +1 -1
- package/dist/baseTableConfig-BpfR_abz.mjs.gz +0 -0
- package/dist/{baseTableConfig-BJsnfkuW.js → baseTableConfig-D3ex9Mxr.js} +1 -1
- package/dist/baseTableConfig-D3ex9Mxr.js.gz +0 -0
- package/dist/{bcFormConfig-CIHqOSu_.js → bcFormConfig-CIueAN3X.js} +1 -1
- package/dist/{bcFormConfig-DRJ6y-Zq.mjs → bcFormConfig-COUAhiLE.mjs} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-yfpvxpKv.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BaQpWj66.mjs} +2 -2
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DC8ymV3s.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DkXJTsdV.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DpdCgInF.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-Q8SRrTmv.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-B0l2FObg.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-di60lN75.mjs} +2 -2
- package/dist/{btnIndex-CKDZmVyr.mjs → btnIndex-CdIYeX3a.mjs} +3 -3
- package/dist/btnIndex-CdIYeX3a.mjs.gz +0 -0
- package/dist/{btnIndex-Bk2lfNxl.js → btnIndex-k-6S_32a.js} +1 -1
- package/dist/{classic-rq8Gldv3.mjs → classic-V7yTGKXs.mjs} +5 -5
- package/dist/{classic-D-0e4sg9.js → classic-lvDFv2bi.js} +1 -1
- package/dist/{cloneConfigDialog-CKiT4slo.mjs → cloneConfigDialog-BmjF6KsQ.mjs} +3 -3
- package/dist/cloneConfigDialog-BmjF6KsQ.mjs.gz +0 -0
- package/dist/{cloneConfigDialog-D8LMMoNJ.js → cloneConfigDialog-Bx3nyUWB.js} +1 -1
- package/dist/cloneConfigDialog-Bx3nyUWB.js.gz +0 -0
- package/dist/{columns-BsrW_BlM.js → columns-DaYDUUM0.js} +1 -1
- package/dist/{columns-D6FOr-ok.mjs → columns-ZlYEUEdJ.mjs} +5 -5
- package/dist/{columnsAside-P8c_aBlz.mjs → columnsAside-CXUgC7hi.mjs} +1 -1
- package/dist/{columnsAside-COFzuiV0.js → columnsAside-Djb6JRDS.js} +1 -1
- package/dist/{contextmenu-CVcrKYK9.mjs → contextmenu-B-8856V8.mjs} +1 -1
- package/dist/{contextmenu-CABIf1vP.js → contextmenu-C5NUL-q6.js} +1 -1
- package/dist/{contextmenu-C7rrCGBC.js → contextmenu-D9ZH2ucS.js} +1 -1
- package/dist/{contextmenu-yjE2rJuw.mjs → contextmenu-DwJrpAx6.mjs} +1 -1
- package/dist/{copyMenuConfig-BjiJTJty.js → copyMenuConfig-D0xZKuRv.js} +1 -1
- package/dist/{copyMenuConfig-D8OMHWuk.mjs → copyMenuConfig-YnabpWNa.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-b_FbrngR.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-DDxOoBNs.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BT-i232M.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-jioS3s2-.mjs} +2 -2
- package/dist/{copySystem-Rm2Qe64H.js → copySystem-BLzGXSEc.js} +1 -1
- package/dist/{copySystem-CzuAHpuV.mjs → copySystem-Csr4-6Vr.mjs} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-MKcm2YZS.js → copySystem.vue_vue_type_script_setup_true_lang-dpmEJPLG.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DXeAxoqm.mjs → copySystem.vue_vue_type_script_setup_true_lang-z5gInSTq.mjs} +2 -2
- package/dist/{defaults-CNQX9fRI.mjs → defaults--DG7mjjK.mjs} +4 -4
- package/dist/{defaults-Bk0nHXBE.js → defaults-BwffXzcg.js} +1 -1
- package/dist/{dialog-Cg-cCffB.js → dialog-Bn6-VdJn.js} +1 -1
- package/dist/{dialog-Bbdo8ei8.js → dialog-Brc6HLGc.js} +1 -1
- package/dist/{dialog-DnJDoGBU.js → dialog-CJdKHyJU.js} +1 -1
- package/dist/{dialog-PinULQxw.mjs → dialog-CrrTrhAw.mjs} +1 -1
- package/dist/{dialog-t6QwmmjE.mjs → dialog-H-KDrqcc.mjs} +1 -1
- package/dist/{dialog-BBA1-Hpr.mjs → dialog-OHAw2SR5.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BEmR14CF.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CaqlCcXv.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C3ER0ERz.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-IrOagmRY.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9UunLfB.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cl6qYHOM.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cl6qYHOM.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BU8igcOM.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-cc-O3ieO.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-cc-O3ieO.js.gz +0 -0
- package/dist/{dictDialog-DfaUCLTh.js → dictDialog-CoADILgA.js} +1 -1
- package/dist/{dictDialog-Du9Ui5me.mjs → dictDialog-D8cvlRX1.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-aUgUH8TK.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CeXE24pO.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Lmz9vLT6.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DKd7R_jQ.mjs} +2 -2
- package/dist/{dictItemDialog-BGXXr0kj.mjs → dictItemDialog-BWw0CKjA.mjs} +1 -1
- package/dist/{dictItemDialog-DUCx1Gkr.js → dictItemDialog-DdUf6Iom.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CmJifNod.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-C-LWJZvU.mjs} +2 -2
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BVe7b4zY.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DbKfVw_J.js} +1 -1
- package/dist/{formConfig-3UNCY6lZ.js → formConfig-BmO3W47I.js} +1 -1
- package/dist/formConfig-BmO3W47I.js.gz +0 -0
- package/dist/{formConfig-FkIkQu2P.mjs → formConfig-CKRwvYgD.mjs} +6 -6
- package/dist/formConfig-CKRwvYgD.mjs.gz +0 -0
- package/dist/{header-CCcWaTud.js → header-CP5ir_gW.js} +1 -1
- package/dist/{header-BJ9hYQXn.mjs → header-tW_YVPIO.mjs} +2 -2
- package/dist/{horizontal-JNoXyeF_.js → horizontal-CnQ1nhHw.js} +1 -1
- package/dist/{horizontal-BxWKlshK.mjs → horizontal-bG3Mnef0.mjs} +2 -2
- package/dist/{hsAttrBtn-BQRoG_D5.mjs → hsAttrBtn-CeIEIBkM.mjs} +1 -1
- package/dist/{hsAttrBtn-DwlePekC.js → hsAttrBtn-CuriQAZg.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CuYpRBIp.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-DP1P8rBa.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Dfe57yeS.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-xec2n2k9.mjs} +4 -4
- package/dist/{hsAttrForm-DORr4cGj.js → hsAttrForm-DmdkpfKj.js} +1 -1
- package/dist/{hsAttrForm-CIaR1xiT.mjs → hsAttrForm-u6URmJCd.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-y6GupBtG.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-C7-NCqQY.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C7-NCqQY.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CrTiRvVk.js → hsAttrForm.vue_vue_type_script_setup_true_lang-CFH9EHqD.js} +1 -1
- package/dist/{hsBtnConfigList-DiTnb15S.js → hsBtnConfigList-DOb2HKf-.js} +1 -1
- package/dist/{hsBtnConfigList-gZBjoC03.mjs → hsBtnConfigList-wDibyX98.mjs} +1 -1
- package/dist/{hsBtnItemConfig-DJa8zeTI.mjs → hsBtnItemConfig-BJx1JRUn.mjs} +1 -1
- package/dist/{hsBtnItemConfig-Cx17o2Kk.js → hsBtnItemConfig-CgkC6MkS.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CYeBaRFh.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DcDWpheu.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BVn6SYOM.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-ISofn7V7.mjs} +3 -3
- package/dist/{hsBtnPanel-CkKkNoyf.js → hsBtnPanel-6sWF5AjI.js} +1 -1
- package/dist/{hsBtnPanel-UhnoDcku.mjs → hsBtnPanel-D4uYg4E9.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D3sDmGog.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BF-Sk2HT.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DZYVT7b7.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CUrwbzk3.js} +1 -1
- package/dist/{hsExpand-D-jnybzj.js → hsExpand-CNcxlyCb.js} +1 -1
- package/dist/{hsExpand-C1yuxfn4.mjs → hsExpand-Cvgw063d.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-IzUu68u1.mjs → hsExpand.vue_vue_type_script_setup_true_lang-DbLtd6me.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DCFLoElJ.js → hsExpand.vue_vue_type_script_setup_true_lang-Ds-xjFPJ.js} +1 -1
- package/dist/{hsFormConfig-Bv6a21iv.js → hsFormConfig-B-fi3-z6.js} +1 -1
- package/dist/{hsFormConfig-CbF2oTkb.mjs → hsFormConfig-D8i1Eg9_.mjs} +1 -1
- package/dist/{hsFormConfigList-BFBGDGmF.mjs → hsFormConfigList-BhJQmhs8.mjs} +2 -2
- package/dist/hsFormConfigList-BhJQmhs8.mjs.gz +0 -0
- package/dist/{hsFormConfigList-Dzd6IAKi.js → hsFormConfigList-DBTjxV3O.js} +1 -1
- package/dist/{hsFormPanel-DNWOSIvQ.mjs → hsFormPanel-Bk0JpIaQ.mjs} +6 -6
- package/dist/hsFormPanel-Bk0JpIaQ.mjs.gz +0 -0
- package/dist/{hsFormPanel-6rW6Mp53.js → hsFormPanel-DCmpEh4f.js} +1 -1
- package/dist/{hsFormParse-CXutg3n6.mjs → hsFormParse--vmILwbI.mjs} +1 -1
- package/dist/{hsFormParse-Cs73OsZs.js → hsFormParse-Dhi8D1Pj.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DtDJdlN2.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-BUHGLMyq.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CEQErfBF.js → hsFormParse.vue_vue_type_script_setup_true_lang-DdSJih1u.js} +1 -1
- package/dist/{hsPanelItem-DwpiNmn_.js → hsPanelItem-Cn2WkiYI.js} +1 -1
- package/dist/{hsPanelItem-CDrRgEhI.mjs → hsPanelItem-D19rLMPj.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-49JqOz7o.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BdaNn6UZ.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D5mxDAfb.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DOX7COhz.mjs} +1 -1
- package/dist/{index copy-Dbk-utN0.js → index copy-Bm7oJOl9.js } +1 -1
- package/dist/{index copy-0tsJqfQF.mjs → index copy-BreiQyVL.mjs } +1 -1
- package/dist/{index copy-Bt4ZePrL.js → index copy-Cc-kXRhV.js } +1 -1
- package/dist/index copy-Cc-kXRhV.js.gz +0 -0
- package/dist/{index copy-ChfyFzTh.mjs → index copy-cg-he_hB.mjs } +1 -1
- package/dist/{index copy-ChfyFzTh.mjs.gz → index copy-cg-he_hB.mjs.gz} +0 -0
- package/dist/{index-B1mBqy2y.mjs → index--SKbV2KZ.mjs} +1 -1
- package/dist/{index-Vkii9SHI.js → index-4zno896X.js} +1 -1
- package/dist/{index-fVeRZIVI.js → index-6tntaPHy.js} +1 -1
- package/dist/{index-BA-tsvFL.mjs → index-6yPXEy9x.mjs} +3 -3
- package/dist/{index-CKUaYtRQ.mjs → index-7ccw15gz.mjs} +5 -5
- package/dist/{index-CbyIVSSb.js → index-9TRclLDH.js} +1 -1
- package/dist/{index-keZslXnF.js → index-B36b6LcR.js} +1 -1
- package/dist/{index-B__xk0s6.js → index-B6iECo6q.js} +1 -1
- package/dist/{index-DZts6EFt.js → index-B8AT_bvf.js} +1 -1
- package/dist/{index-B_9UZmSc.js → index-BCChJvwz.js} +1 -1
- package/dist/{index-Bbd0YSD_.mjs → index-BFmf11BU.mjs} +1 -1
- package/dist/{index-D3WrUAg7.mjs → index-BI41Iyy2.mjs} +12113 -7001
- package/dist/index-BI41Iyy2.mjs.gz +0 -0
- package/dist/{index-Dumnkhsc.mjs → index-BLE3RqAj.mjs} +3 -3
- package/dist/{index-D7yL8qzO.js → index-BQlWt-xZ.js} +1 -1
- package/dist/{index-KwXsJH56.js → index-BR3-uMfx.js} +1 -1
- package/dist/{index-lnwCimnO.js → index-BTztlp5G.js} +1 -1
- package/dist/{index-CJLJVSuj.js → index-BVsiIfk2.js} +1 -1
- package/dist/{index-ll-rkuTK.mjs → index-BcpKo1cw.mjs} +4 -4
- package/dist/{index-BZ2VAHpu.js → index-BdQ3hU5M.js} +1 -1
- package/dist/{index-17FsMNNN.mjs → index-BgPYqN2u.mjs} +1 -1
- package/dist/{index-BblgXgEf.js → index-BkXo69XT.js} +1 -1
- package/dist/{index-p9AJbBrj.mjs → index-Bq3GQWaB.mjs} +4 -4
- package/dist/{index-B19b0msV.mjs → index-BqTZ17Kq.mjs} +4 -4
- package/dist/{index-zvg9FozP.mjs → index-BrPx9qQ0.mjs} +5 -5
- package/dist/{index-mbKkh5s-.mjs → index-ByfLK2Yw.mjs} +2 -2
- package/dist/{index-Bq0jtlC7.js → index-C50RXkwV.js} +1 -1
- package/dist/{index-vOa_qE--.js → index-C8CO_kMU.js} +1 -1
- package/dist/{index-CDLP2O_L.mjs → index-C8MOs_wf.mjs} +1 -1
- package/dist/{index-DjDg5mq2.mjs → index-CBaM1hxt.mjs} +1 -1
- package/dist/{index-CgfwwtIZ.js → index-CCkDz3iI.js} +1 -1
- package/dist/{index-BqEtOjRv.mjs → index-CFEAweBO.mjs} +1 -1
- package/dist/{index-CgiT7WRA.mjs → index-CJj-HXKv.mjs} +4 -4
- package/dist/index-CJj-HXKv.mjs.gz +0 -0
- package/dist/{index-DrDxvi-4.js → index-CK6P5P5Z.js} +1 -1
- package/dist/index-CMgdiHtp.js +1 -0
- package/dist/index-CMgdiHtp.js.gz +0 -0
- package/dist/{index-BjEMN2hm.mjs → index-CS_lj_GN.mjs} +1 -1
- package/dist/{index-QTiHb-Ku.js → index-CT3a-z_m.js} +1 -1
- package/dist/{index-7Ti2FDGL.mjs → index-CTYf5U3f.mjs} +4 -4
- package/dist/{index-Cx4IpBti.js → index-CWxbKQRk.js} +1 -1
- package/dist/{index-ow34vrly.js → index-CY4WGayY.js} +1 -1
- package/dist/{index-mQ8FKZrs.mjs → index-CgSPQB4S.mjs} +1 -1
- package/dist/index-CgctBXkE.mjs +5329 -0
- package/dist/index-CgctBXkE.mjs.gz +0 -0
- package/dist/{index-DNsKAqWP.js → index-Ch2Ly3W2.js} +1 -1
- package/dist/{index-BmZTVCNM.js → index-CibiYlhs.js} +1 -1
- package/dist/{index-QGiUOu-U.mjs → index-CmVq6M4v.mjs} +1 -1
- package/dist/{index-D-ePTP_s.js → index-Cq5Qy84q.js} +1 -1
- package/dist/{index-DE0vs9yp.mjs → index-Crgq8R-z.mjs} +1 -1
- package/dist/{index-KRf7oQF3.mjs → index-CsUiGZtR.mjs} +1 -1
- package/dist/{index-DFx6ggkC.js → index-CvNsVdLo.js} +1 -1
- package/dist/{index-z7_LDWW7.js → index-D5H6toQm.js} +1 -1
- package/dist/{index-27Hg3EA3.js → index-D5dXwM79.js} +1 -1
- package/dist/{index-c_LRI3z8.mjs → index-D9ljVS9Q.mjs} +1 -1
- package/dist/{index-CUEjc3pU.mjs → index-D9uianN1.mjs} +3 -3
- package/dist/{index-D1Rr90nn.js → index-DCO7UjA2.js} +1 -1
- package/dist/{index-4OSGsFxI.mjs → index-DHEvwcUx.mjs} +1 -1
- package/dist/index-DN_waqpS.js +110 -0
- package/dist/index-DN_waqpS.js.gz +0 -0
- package/dist/{index-CLqkwRk0.js → index-DNklWRCJ.js} +1 -1
- package/dist/{index-CPkmHdac.js → index-DQo1Ftpt.js} +1 -1
- package/dist/{index-NOidcRio.mjs → index-DVL76g8q.mjs} +1 -1
- package/dist/{index-oFW2fbks.mjs → index-D_FD92QF.mjs} +1 -1
- package/dist/{index-PtM-4TcF.mjs → index-Db4KtNDD.mjs} +4 -4
- package/dist/index-Db4KtNDD.mjs.gz +0 -0
- package/dist/{index-fzkLzw6x.mjs → index-DcpqVods.mjs} +1 -1
- package/dist/{index-BZaym9qY.mjs → index-DjufDgf6.mjs} +1 -1
- package/dist/{index-CsJJauqO.mjs → index-DmbABzF9.mjs} +2 -2
- package/dist/index-DmbABzF9.mjs.gz +0 -0
- package/dist/{index-CQQ-Y3Hz.mjs → index-Doa8qGJD.mjs} +3 -3
- package/dist/{index-dcEVIkYD.mjs → index-DubijKAf.mjs} +1 -1
- package/dist/{index-CqQMBxcs.js → index-OQZA7n4s.js} +1 -1
- package/dist/index-OQZA7n4s.js.gz +0 -0
- package/dist/{index-Bdzs3kK8.js → index-Pfriw4az.js} +1 -1
- package/dist/{index-D47fd9QX.js → index-ZLC217bZ.js} +1 -1
- package/dist/{index-DUlH696c.mjs → index-_GTUnp6q.mjs} +1 -1
- package/dist/{index-B_NpLzSH.js → index-bYAovo5E.js} +1 -1
- package/dist/{index-C_4QDtsS.mjs → index-c2sgbPJc.mjs} +1 -1
- package/dist/{index-C7T8pkWP.js → index-eX8diS_R.js} +1 -1
- package/dist/{index-Crs7DKpt.mjs → index-fJC4QwxQ.mjs} +1 -1
- package/dist/{index-BbvZJqGX.js → index-gHkM5dUh.js} +1 -1
- package/dist/{index-CHSSt2ro.js → index-nUHyaQ1I.js} +1 -1
- package/dist/{index-CsoGFrsT.mjs → index-u9hYMq9X.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +165 -165
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgknbU_q.js → index.vue_vue_type_script_setup_true_lang-46NWuCaP.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DWFVNRbP.mjs → index.vue_vue_type_script_setup_true_lang-B3z6KVRe.mjs} +3 -3
- package/dist/index.vue_vue_type_script_setup_true_lang-B3z6KVRe.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-COAW8AeL.js → index.vue_vue_type_script_setup_true_lang-B6wLkI7U.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cg4tExai.mjs → index.vue_vue_type_script_setup_true_lang-BjrKfsBA.mjs} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-B9bnKQn9.js → index.vue_vue_type_script_setup_true_lang-COwuB1qN.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BKBnnoBr.mjs → index.vue_vue_type_script_setup_true_lang-CPSABgP4.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-BrVabzX3.js → index.vue_vue_type_script_setup_true_lang-CiUxGLKs.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BoXEs0GN.mjs → index.vue_vue_type_script_setup_true_lang-DQkGc2_M.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-BTZ9iGU3.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-C6_uEfB8.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-Bo7fkl0j.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CqijtS2f.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CqijtS2f.mjs.gz +0 -0
- package/dist/{link-CiYieX_v.mjs → link-D6UVs6i8.mjs} +1 -1
- package/dist/{link-C89kNYp1.js → link-yvfpx3-D.js} +1 -1
- package/dist/{list-e4SApqt5.mjs → list-CLZfx3Dc.mjs} +1 -1
- package/dist/{list-BrxSxXJ0.js → list-CsQHIUWm.js} +1 -1
- package/dist/{main-BKDHXJKK.js → main-B0y7OOqr.js} +1 -1
- package/dist/{main-4TktHDcv.mjs → main-BC1383Tt.mjs} +3 -3
- package/dist/{mobile-BZ1Qib35.js → mobile-CCqNz96z.js} +1 -1
- package/dist/{mobile-sbNUYRDV.mjs → mobile-pR70II9m.mjs} +1 -1
- package/dist/{parent-ClkMa56I.js → parent-BwvPudZZ.js} +1 -1
- package/dist/{parent-BL84CXLJ.mjs → parent-CtcGWw2v.mjs} +1 -1
- package/dist/{popup-B1Yl8yzN.js → popup-B5kZdb_u.js} +1 -1
- package/dist/{popup-DCmH8Vpu.mjs → popup-BKqbWAhm.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-CIq0B0VZ.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-F1fyh5NW.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-ykA0fI_S.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-wliSZInX.mjs} +1 -1
- package/dist/{roleItem-yMXXoUvt.js → roleItem-BBejreT6.js} +1 -1
- package/dist/{roleItem-D7oF9WRn.mjs → roleItem-KeI1RChI.mjs} +1 -1
- package/dist/{saveForm-kxQob1NJ.js → saveForm-DSrcClMx.js} +1 -1
- package/dist/{saveForm-Xw-yYGnA.mjs → saveForm-eXVObPM1.mjs} +3 -3
- package/dist/{scan-DQ1UHvqO.mjs → scan-BgDwD4Pa.mjs} +1 -1
- package/dist/scan-BgDwD4Pa.mjs.gz +0 -0
- package/dist/{scan-DBCkRluS.js → scan-MfA-tNu3.js} +1 -1
- package/dist/scan-MfA-tNu3.js.gz +0 -0
- package/dist/{search-BkPKqDb8.mjs → search-Dtqqn3s7.mjs} +1 -1
- package/dist/{search-DXWY6vcF.js → search-YGZKrN9I.js} +1 -1
- package/dist/{selectConfig-g80d1GsE.js → selectConfig-4pWdvNwT.js} +1 -1
- package/dist/{selectConfig-DsBXXnc8.mjs → selectConfig-oK7qa9Vo.mjs} +1 -1
- package/dist/selectConfig-oK7qa9Vo.mjs.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-BYDl8zup.js → subItem-C-nXLAlU.js} +1 -1
- package/dist/{subItem-BaEaU1Jt.mjs → subItem-eUgBEYnW.mjs} +1 -1
- package/dist/{tagsView-D2u4kOUy.js → tagsView-Bb18HTPV.js} +2 -2
- package/dist/tagsView-Bb18HTPV.js.gz +0 -0
- package/dist/{tagsView-C4mDOZau.mjs → tagsView-CDxYWp9F.mjs} +2 -2
- package/dist/tagsView-CDxYWp9F.mjs.gz +0 -0
- package/dist/{transverse-YG5LN8it.js → transverse-B13jszyt.js} +1 -1
- package/dist/{transverse-CJpMZBBr.mjs → transverse-BP5bdA6F.mjs} +3 -3
- package/dist/types/utils/lodash.d.ts +2 -222
- package/dist/{uploadAvatar-mvMH-lYs.mjs → uploadAvatar-Bh3tXNA0.mjs} +1 -1
- package/dist/uploadAvatar-Bh3tXNA0.mjs.gz +0 -0
- package/dist/{uploadAvatar-BAcV0-y4.js → uploadAvatar-l48sCi-8.js} +1 -1
- package/dist/uploadAvatar-l48sCi-8.js.gz +0 -0
- package/dist/{user-qNa1171w.mjs → user-BC4sNOLw.mjs} +3 -3
- package/dist/{user-CPzL2lG9.js → user-BkJ6NICW.js} +1 -1
- package/dist/{userNews-JgC0xqs2.mjs → userNews-Ch2f4OYa.mjs} +1 -1
- package/dist/{userNews-CYzFni7-.js → userNews-CzzK_qbM.js} +1 -1
- package/dist/{userSelect--VId9kru.js → userSelect-DMbogdyQ.js} +1 -1
- package/dist/{userSelect-Bx8QIJA7.mjs → userSelect-Wfatj9FI.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BT-0trdl.mjs → userSelect.vue_vue_type_script_setup_true_lang-CmPrF9cn.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-F8j1KkRP.js → userSelect.vue_vue_type_script_setup_true_lang-itx2OGk1.js} +1 -1
- package/dist/{vertical-DzMOSsvH.js → vertical-Cc0qffVw.js} +1 -1
- package/dist/{vertical-DroE9qE4.mjs → vertical-Cdydyv_c.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-DLK5a-vr.js.gz +0 -0
- package/dist/baseFormConfig-C13SOxqq.mjs.gz +0 -0
- package/dist/baseTableConfig-BJsnfkuW.js.gz +0 -0
- package/dist/baseTableConfig-D8B453v-.mjs.gz +0 -0
- package/dist/btnIndex-CKDZmVyr.mjs.gz +0 -0
- package/dist/cloneConfigDialog-CKiT4slo.mjs.gz +0 -0
- package/dist/cloneConfigDialog-D8LMMoNJ.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BU8igcOM.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9UunLfB.mjs.gz +0 -0
- package/dist/formConfig-3UNCY6lZ.js.gz +0 -0
- package/dist/formConfig-FkIkQu2P.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-y6GupBtG.mjs.gz +0 -0
- package/dist/hsFormConfigList-BFBGDGmF.mjs.gz +0 -0
- package/dist/hsFormPanel-DNWOSIvQ.mjs.gz +0 -0
- package/dist/index copy-Bt4ZePrL.js.gz +0 -0
- package/dist/index-B4RI1hBb.js +0 -9
- package/dist/index-B4RI1hBb.js.gz +0 -0
- package/dist/index-BO7qAlvA.js +0 -102
- package/dist/index-BO7qAlvA.js.gz +0 -0
- package/dist/index-BkoDGjCb.mjs +0 -10811
- package/dist/index-BkoDGjCb.mjs.gz +0 -0
- package/dist/index-CgiT7WRA.mjs.gz +0 -0
- package/dist/index-CqQMBxcs.js.gz +0 -0
- package/dist/index-CsJJauqO.mjs.gz +0 -0
- package/dist/index-D3WrUAg7.mjs.gz +0 -0
- package/dist/index-PtM-4TcF.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DWFVNRbP.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-Bo7fkl0j.mjs.gz +0 -0
- package/dist/scan-DBCkRluS.js.gz +0 -0
- package/dist/scan-DQ1UHvqO.mjs.gz +0 -0
- package/dist/selectConfig-DsBXXnc8.mjs.gz +0 -0
- package/dist/tagsView-C4mDOZau.mjs.gz +0 -0
- package/dist/tagsView-D2u4kOUy.js.gz +0 -0
- package/dist/uploadAvatar-BAcV0-y4.js.gz +0 -0
- package/dist/uploadAvatar-mvMH-lYs.mjs.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-BO7qAlvA.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-DN_waqpS.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, withCtx, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
|
-
import { D as useUserInfo, a as useThemeConfig,
|
|
3
|
+
import { D as useUserInfo, a as useThemeConfig, W as systemStore, a3 as ClickOutside, a4 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a5 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-BI41Iyy2.mjs";
|
|
4
4
|
import { storeToRefs } from "pinia";
|
|
5
5
|
const _hoisted_1 = ["title"];
|
|
6
6
|
const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
|
|
@@ -12,10 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
...__default__,
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const UserNews = defineAsyncComponent(
|
|
15
|
-
() => import("./userNews-
|
|
15
|
+
() => import("./userNews-Ch2f4OYa.mjs")
|
|
16
16
|
);
|
|
17
17
|
const Search = defineAsyncComponent(
|
|
18
|
-
() => import("./search-
|
|
18
|
+
() => import("./search-Dtqqn3s7.mjs")
|
|
19
19
|
);
|
|
20
20
|
const login = useLoginController();
|
|
21
21
|
const userNewsRef = ref();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-DN_waqpS.js"),n=require("pinia"),r=["title"],l={class:"layout-navbars-breadcrumb-user-link"},a=["src"],s=e.defineComponent({name:"layoutBreadcrumbUser"}),i=e.defineComponent({...s,setup(s){const i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-CzzK_qbM.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-YGZKrN9I.js"))))),u=o.useLoginController(),d=e.ref(),m=e.ref(),f=t.useRouter(),p=o.useUserInfo(),v=o.useThemeConfig(),{userInfos:C}=n.storeToRefs(p),{themeConfig:g}=n.storeToRefs(v),h=e.ref(),w=e.reactive({isScreenfull:!1,disabledSize:"large"}),b=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=g.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),N=()=>{if(!o.screenfull.isEnabled)return o.ElMessage.warning("暂不不支持全屏"),!1;o.screenfull.toggle(),o.screenfull.on("change",(()=>{o.screenfull.isFullscreen?w.isScreenfull=!0:w.isScreenfull=!1}))},y=()=>{var t,o;null==(o=null==(t=e.unref(d).popperRef)?void 0:t.delayHide)||o.call(t)},x=()=>{o.mittBus.emit("openSetingsDrawer")},V=e=>{"logOut"===e?o.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",u.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{p.logout()})).catch((()=>{})):"cleanCanche"===e?o.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):f.push(e)},_=()=>{h.value.openSearch()};return e.onMounted((async()=>{await o.systemStore.get("themeConfig")&&await(async(e,t)=>{w[t]=await o.systemStore.get("themeConfig").then((t=>o._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,n)=>{const s=e.resolveComponent("ele-Search"),u=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),p=e.resolveComponent("el-badge"),v=e.resolveComponent("el-popover"),g=e.resolveComponent("ele-ArrowDown"),S=e.resolveComponent("el-dropdown-item"),k=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:b.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:_},[e.createVNode(u,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},n[0]||(n[0]=[e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)])),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:m},[e.createVNode(p,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(u,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(o.ClickOutside),y]]),e.createVNode(v,{ref_key:"userNewsRef",ref:d,"virtual-ref":m.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(i))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:N},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",w.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:w.isScreenfull?"关全屏":"开全屏"},null,10,r)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:V},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>n[1]||(n[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",l,[e.createElementVNode("img",{src:e.unref(C).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,a),e.createTextVNode(" "+e.toDisplayString(""===e.unref(C).name?"common":e.unref(C).name)+" ",1),e.createVNode(u,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])])),_:1}),e.createVNode(e.unref(c),{ref_key:"searchRef",ref:h},null,512)],4)}}}),c=o._export_sfc(i,[["__scopeId","data-v-7f4c1077"]]);exports.default=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createBlock, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-BI41Iyy2.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-DN_waqpS.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-itx2OGk1.js");exports.default=e._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { r as request } from "./index-
|
|
2
|
+
import { r as request } from "./index-BI41Iyy2.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-DN_waqpS.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s={class:"flex-1"},n={class:"flex justify-center items-center py-[5px]"},c=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:c}){const{getListAll:r}={getListAll:l},u=c,i=e.ref([]),d=async()=>{let e={qry_like_info:m.value};const t=await r(e);1===t.code&&(i.value=t.data)};e.onMounted((()=>{d()}));const m=e.ref("");return(t,l)=>{const c=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),p=e.resolveComponent("el-table"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(c,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=e=>m.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),l[2]||(l[2]=e.createElementVNode("span",null,"* 双击选择",-1))]),e.createElementVNode("div",s,[e.createVNode(p,{data:i.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",n,[e.createVNode(f,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>u("success","close"))},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode(" 取消 ")]))),_:1,__:[3]})])])}}});exports._sfc_main=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),l=require("./index-DN_waqpS.js"),i=["onClick"],o=e.defineComponent({name:"navMenuVertical"}),a=e.defineComponent({...o,props:{menuList:{type:Array,default:()=>[]}},setup(o){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-C-nXLAlU.js"))))),r=o,s=l.useThemeConfig(),{themeConfig:c}=n.storeToRefs(s),u=t.useRoute(),m=e.reactive({defaultActive:u.meta.isDynamic?u.meta.isDynamicPath:u.path,isCollapse:!1}),p=e.computed((()=>r.menuList)),d=e.computed((()=>c.value)),h=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{m.defaultActive=h(u)})),t.onBeforeRouteUpdate((e=>{m.defaultActive=h(e);document.body.clientWidth<1e3&&(c.value.isCollapse=!1)})),e.watch((()=>c.value.isCollapse),(e=>{document.body.clientWidth<=1e3?m.isCollapse=!1:m.isCollapse=e}),{immediate:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),r=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),c=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(c,{router:"","default-active":m.defaultActive,"background-color":"transparent",collapse:m.isCollapse,"unique-opened":d.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(r,{index:`${t.path}?project=his`,key:t.path},{title:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(a),{chil:t.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:`${t.path}?project=his`,key:t.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:t.meta.icon},null,8,["name"])])),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{l.other.handleOpenLink(e)})(t)),["prevent"])},e.toDisplayString(t.meta.title),9,i)])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, unref, createElementVNode, toDisplayString, createSlots, withModifiers } from "vue";
|
|
2
2
|
import { useRoute, onBeforeRouteUpdate } from "vue-router";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
|
4
|
-
import { a as useThemeConfig,
|
|
4
|
+
import { a as useThemeConfig, a0 as other } from "./index-BI41Iyy2.mjs";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
6
6
|
const __default__ = defineComponent({
|
|
7
7
|
name: "navMenuVertical"
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
|
-
const SubItem = defineAsyncComponent(() => import("./subItem-
|
|
19
|
+
const SubItem = defineAsyncComponent(() => import("./subItem-eUgBEYnW.mjs"));
|
|
20
20
|
const props = __props;
|
|
21
21
|
const storesThemeConfig = useThemeConfig();
|
|
22
22
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
package/package.json
CHANGED
package/dist/404-DLK5a-vr.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BU8igcOM.js.gz
DELETED
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C9UunLfB.mjs.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|