hs-admin-ui 14.4.6 → 14.4.7
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-CYti5u-6.js → 401-BlIinCzY.js} +1 -1
- package/dist/{401-D7gW_gGn.mjs → 401-Zfw4v9co.mjs} +1 -1
- package/dist/{404-DDFKAZsG.mjs → 404-DRwILpFs.mjs} +1 -1
- package/dist/404-DRwILpFs.mjs.gz +0 -0
- package/dist/{404-BCG_L4ji.js → 404-DySnzGCS.js} +1 -1
- package/dist/404-DySnzGCS.js.gz +0 -0
- package/dist/{account-BpN0y-s6.mjs → account-1ZLZCo4S.mjs} +1 -1
- package/dist/{account-BGqIINkz.js → account-QrS86H0L.js} +1 -1
- package/dist/{aside-CQ6k-e-p.mjs → aside-BGzJl0QF.mjs} +3 -3
- package/dist/{aside-DdtESdDw.js → aside-BSgkwzEU.js} +1 -1
- package/dist/{auth_test-DAnUfQ-n.js → auth_test-CySyZpaO.js} +1 -1
- package/dist/{auth_test-BbC_eqjT.mjs → auth_test-DP4jQRuC.mjs} +1 -1
- package/dist/{baseFormConfig-BbF8QVRI.js → baseFormConfig-5qDI8cWu.js} +1 -1
- package/dist/{baseFormConfig-DqQ_ET6E.mjs → baseFormConfig-DYqtmDV1.mjs} +1 -1
- package/dist/baseFormConfig-DYqtmDV1.mjs.gz +0 -0
- package/dist/{baseTableConfig-BRMETzD0.js → baseTableConfig-BSiVKJHh.js} +1 -1
- package/dist/baseTableConfig-BSiVKJHh.js.gz +0 -0
- package/dist/{baseTableConfig-uzNSJwJV.mjs → baseTableConfig-CM1dM3lh.mjs} +1 -1
- package/dist/baseTableConfig-CM1dM3lh.mjs.gz +0 -0
- package/dist/{bcFormConfig-DWbDYtPg.js → bcFormConfig-B2AsW0Bu.js} +1 -1
- package/dist/{bcFormConfig-DPPJ3NGo.mjs → bcFormConfig-BSLjQyDb.mjs} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BULUStHg.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-D-vK6juY.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BRUaii0l.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DYzJKChk.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DQ9iHlQu.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-SaBWp9eB.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-D85TOxMq.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-w4ctp-Hb.mjs} +2 -2
- package/dist/{btnIndex-B9WaJWTh.mjs → btnIndex-CFHMuHNm.mjs} +3 -3
- package/dist/btnIndex-CFHMuHNm.mjs.gz +0 -0
- package/dist/{btnIndex-DgZsx_7l.js → btnIndex-DBs1KJ4B.js} +1 -1
- package/dist/{classic-oAWWsmFI.mjs → classic-DXNV7ErD.mjs} +5 -5
- package/dist/{classic-CVMqFQuw.js → classic-t_NynIgO.js} +1 -1
- package/dist/{cloneConfigDialog-BKLR2tru.js → cloneConfigDialog-4JrPpSov.js} +1 -1
- package/dist/cloneConfigDialog-4JrPpSov.js.gz +0 -0
- package/dist/{cloneConfigDialog-BE2iLaWg.mjs → cloneConfigDialog-CNmdYtI0.mjs} +3 -3
- package/dist/cloneConfigDialog-CNmdYtI0.mjs.gz +0 -0
- package/dist/{columns-5cztk3EC.js → columns-BG3uJzUz.js} +1 -1
- package/dist/{columns-CZB3vmdW.mjs → columns-VjNc2FdQ.mjs} +5 -5
- package/dist/{columnsAside-BRMKPd2q.js → columnsAside-C1knXyfI.js} +1 -1
- package/dist/{columnsAside-GSJFKXEo.mjs → columnsAside-DIGUwQ1I.mjs} +1 -1
- package/dist/{contextmenu-2xHqY_p3.js → contextmenu-B7O-QLut.js} +1 -1
- package/dist/{contextmenu-52SRAnX6.mjs → contextmenu-DSXPQh-v.mjs} +1 -1
- package/dist/{contextmenu-B_Y-hLiq.js → contextmenu-DSvhIpgv.js} +1 -1
- package/dist/{contextmenu-CVdPYMRf.mjs → contextmenu-c_RvleX0.mjs} +1 -1
- package/dist/{copyMenuConfig-Bzuu2qSL.mjs → copyMenuConfig-o5nzj4c8.mjs} +1 -1
- package/dist/{copyMenuConfig-CWvFPTWQ.js → copyMenuConfig-sI59CC9d.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-B-h93HXx.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-JAl6-yCA.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-ByyIbkqt.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-YWUXDBoX.js} +1 -1
- package/dist/{copySystem-BkppftGm.mjs → copySystem-DQUdNobG.mjs} +1 -1
- package/dist/{copySystem-lZ-NSZDY.js → copySystem-OB9ir79Z.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BEmTpFFD.mjs → copySystem.vue_vue_type_script_setup_true_lang-BDT5tEcb.mjs} +2 -2
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-CXXZwnAd.js → copySystem.vue_vue_type_script_setup_true_lang-p1xTE6A0.js} +1 -1
- package/dist/{defaults-DBRS5-GP.mjs → defaults-BOqxx_ql.mjs} +4 -4
- package/dist/{defaults-CYETJ2pG.js → defaults-BiV2K7eT.js} +1 -1
- package/dist/{dialog-BX1IGPGT.js → dialog-B3lRw9rr.js} +1 -1
- package/dist/{dialog-B6ebMz9m.mjs → dialog-BUn9MwsV.mjs} +1 -1
- package/dist/{dialog-Dw7n7Zak.mjs → dialog-Bfw45GFk.mjs} +1 -1
- package/dist/{dialog-N9in0YdY.js → dialog-CVs9IP5M.js} +1 -1
- package/dist/{dialog-QI36wJpJ.js → dialog-Wta6_vp4.js} +1 -1
- package/dist/{dialog-EKypKbfW.mjs → dialog-u1kvDQyU.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BawtAp9i.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B38YaKlw.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Ceacqfjl.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-NQ0oo96B.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-COs-QbAK.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bx3hMO-E.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bx3hMO-E.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B20zQP3y.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-xZsyzoec.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-xZsyzoec.js.gz +0 -0
- package/dist/{dictDialog-Cxm2QUC_.mjs → dictDialog-BR_pNUNm.mjs} +1 -1
- package/dist/{dictDialog-CQykjRZw.js → dictDialog-DdKHQbfM.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-A0C5IajN.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-PoU0D__C.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BK94Y8i-.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-zkx8-bG3.mjs} +2 -2
- package/dist/{dictItemDialog-iLrk9D1f.js → dictItemDialog-DBo8EE6p.js} +1 -1
- package/dist/{dictItemDialog-C-w3Az1x.mjs → dictItemDialog-I9RfC144.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BTGq3d_-.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-CktgGBzm.mjs} +2 -2
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BHh3GY78.js → dictItemDialog.vue_vue_type_script_setup_true_lang-D28v-JaC.js} +1 -1
- package/dist/{formConfig-CuznMMzw.mjs → formConfig-DdFn1H2U.mjs} +6 -6
- package/dist/formConfig-DdFn1H2U.mjs.gz +0 -0
- package/dist/{formConfig-C3JLDZ6a.js → formConfig-FWVXqhua.js} +1 -1
- package/dist/formConfig-FWVXqhua.js.gz +0 -0
- package/dist/{header-C8R9KXRB.mjs → header-B6T1Osy0.mjs} +2 -2
- package/dist/{header--5-3Jq5N.js → header-BVJZWjg5.js} +1 -1
- package/dist/{horizontal-DxCwIFSt.mjs → horizontal-CAKxxVjP.mjs} +2 -2
- package/dist/{horizontal-DhZHDmYz.js → horizontal-fyA4-CEe.js} +1 -1
- package/dist/{hsAttrBtn-BouKt4CZ.mjs → hsAttrBtn-2IitiOCj.mjs} +1 -1
- package/dist/{hsAttrBtn-c9E7WybI.js → hsAttrBtn-DLmqlrBx.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CB1kC_NR.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-5te84iJw.mjs} +4 -4
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DojxZaPd.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-BcHztbXt.js} +1 -1
- package/dist/{hsAttrForm-DJ1QZ2S4.mjs → hsAttrForm-Dxix6kWP.mjs} +1 -1
- package/dist/{hsAttrForm-B964CpFY.js → hsAttrForm-sU2QlroI.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-D8oDHINc.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-DP2T5o_y.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DP2T5o_y.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CvE7Fqof.js → hsAttrForm.vue_vue_type_script_setup_true_lang-fRDgbGUl.js} +1 -1
- package/dist/{hsBtnConfigList-Csdpsggf.js → hsBtnConfigList-BGf8M-q-.js} +1 -1
- package/dist/{hsBtnConfigList-BHiCStxs.mjs → hsBtnConfigList-C8YdnzAt.mjs} +1 -1
- package/dist/{hsBtnItemConfig-DxE0CQ_p.js → hsBtnItemConfig-CsiU3yEX.js} +1 -1
- package/dist/{hsBtnItemConfig-Bo4dEW0H.mjs → hsBtnItemConfig-DSXisvRp.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DJ9JgfPj.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BWyumiYO.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DYGYU434.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CCLud5Fv.mjs} +3 -3
- package/dist/{hsBtnPanel-C3P0xfAK.mjs → hsBtnPanel-Cic3V5ib.mjs} +1 -1
- package/dist/{hsBtnPanel-CzF55uvM.js → hsBtnPanel-DLqE3240.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-xaQeltVv.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BXk2FCsK.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CmXk2Gp6.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CkMAoHXm.mjs} +4 -4
- package/dist/{hsExpand-dYYp6uzu.js → hsExpand-BN8mQNIC.js} +1 -1
- package/dist/{hsExpand-BiaWQtus.mjs → hsExpand-IMKzPs1A.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DZfwWjDR.mjs → hsExpand.vue_vue_type_script_setup_true_lang-C2SVF9Qi.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-Cj2p_SLU.js → hsExpand.vue_vue_type_script_setup_true_lang-DRajDpLd.js} +1 -1
- package/dist/{hsFormConfig-BnG3CtUV.js → hsFormConfig-BGjRu29D.js} +1 -1
- package/dist/{hsFormConfig-BW_yO1B2.mjs → hsFormConfig-C-w2_CdN.mjs} +1 -1
- package/dist/{hsFormConfigList-BaQSF5WK.mjs → hsFormConfigList-BblwYP-_.mjs} +2 -2
- package/dist/hsFormConfigList-BblwYP-_.mjs.gz +0 -0
- package/dist/{hsFormConfigList-2jZxcCsV.js → hsFormConfigList-D_BEaEzn.js} +1 -1
- package/dist/{hsFormPanel-BItfYJ43.js → hsFormPanel-B9rPXmK4.js} +1 -1
- package/dist/{hsFormPanel-CDy0GubL.mjs → hsFormPanel-C3WE8Ccq.mjs} +6 -6
- package/dist/hsFormPanel-C3WE8Ccq.mjs.gz +0 -0
- package/dist/{hsFormParse-rHvKbHfp.js → hsFormParse-DFUSbrjV.js} +1 -1
- package/dist/{hsFormParse-BLZaTCGf.mjs → hsFormParse-rxckNLyv.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DNlXCYjG.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-BJj-J8m_.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-D2pEQH9b.js → hsFormParse.vue_vue_type_script_setup_true_lang-BkTs5388.js} +1 -1
- package/dist/{hsPanelItem-CWGsx4Q-.mjs → hsPanelItem-NCtQKSwT.mjs} +1 -1
- package/dist/{hsPanelItem-CWgFTaBh.js → hsPanelItem-aX3DZTeY.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BS4yANRW.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-C4HE6DQA.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CUZzH5br.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CsQZLuRk.mjs} +1 -1
- package/dist/{index copy-BJiFeMz3.mjs → index copy-BvYCXcYN.mjs } +1 -1
- package/dist/{index copy-BJiFeMz3.mjs.gz → index copy-BvYCXcYN.mjs.gz} +0 -0
- package/dist/{index copy-D5FxWqH7.js → index copy-Dbfvhknv.js } +1 -1
- package/dist/index copy-Dbfvhknv.js.gz +0 -0
- package/dist/{index copy-BUOiE2Fl.mjs → index copy-DsYMmAhn.mjs } +1 -1
- package/dist/{index copy-B1fTSUNv.js → index copy-_l-8aSxE.js } +1 -1
- package/dist/{index-DirnYTFK.mjs → index--c0B3Nj1.mjs} +4 -4
- package/dist/{index-CLXVY-7S.mjs → index-0qVLprt_.mjs} +1 -1
- package/dist/{index-2yiouQuI.mjs → index-4ABomv5y.mjs} +10 -10
- package/dist/index-4ABomv5y.mjs.gz +0 -0
- package/dist/{index-D9QcSXzF.mjs → index-5kT6z2hN.mjs} +1 -1
- package/dist/{index-DDZAA1cb.mjs → index-9g6XLQoy.mjs} +1 -1
- package/dist/{index-D12av_z-.mjs → index-B6Z6G8AC.mjs} +1 -1
- package/dist/{index-XOr2TxCR.mjs → index-B9xlaelz.mjs} +1 -1
- package/dist/{index-BMcV07Vg.mjs → index-BDNJcH8i.mjs} +2 -2
- package/dist/{index-1mmghk56.js → index-BHDUcf4r.js} +1 -1
- package/dist/{index-Bc5xN7Q_.js → index-BInmYbpD.js} +1 -1
- package/dist/{index-XOkn5dmn.js → index-BJzD3T9l.js} +1 -1
- package/dist/{index-kCUjdUTc.mjs → index-BLoJFaq5.mjs} +1 -1
- package/dist/{index-CaZXJB9U.js → index-BORa5TqN.js} +1 -1
- package/dist/{index-TErY4lQI.mjs → index-BRsXTKe0.mjs} +4 -4
- package/dist/index-BRsXTKe0.mjs.gz +0 -0
- package/dist/{index-tCvWYy7O.mjs → index-BS46R7n7.mjs} +1 -1
- package/dist/{index-DokO2H6f.mjs → index-BdcD8aG6.mjs} +1 -1
- package/dist/{index-DGg9C1mM.js → index-BeDq6DjL.js} +1 -1
- package/dist/{index-Bax7xyZh.mjs → index-Bg-cS4jZ.mjs} +5 -5
- package/dist/{index-DjEoFHfX.js → index-Bkpfu_uY.js} +1 -1
- package/dist/{index-DfbRLmaf.js → index-Ble3LGQq.js} +1 -1
- package/dist/{index-BxRE-7nz.js → index-BtLeDswg.js} +1 -1
- package/dist/{index-nYMpUmgL.js → index-Bu9xclVC.js} +1 -1
- package/dist/{index-eOI4AvXr.js → index-BvnNpQg6.js} +1 -1
- package/dist/{index-CaX-gB6H.js → index-C1Eo60QA.js} +1 -1
- package/dist/{index-CDr1jrdd.mjs → index-C1Wri06a.mjs} +1 -1
- package/dist/{index-BGSvanUc.mjs → index-C20fsFwv.mjs} +1 -1
- package/dist/{index-M3GLCpi4.js → index-C3IUGina.js} +3 -3
- package/dist/{index-M3GLCpi4.js.gz → index-C3IUGina.js.gz} +0 -0
- package/dist/{index-SIAwQOZ8.js → index-C3T_9fMh.js} +1 -1
- package/dist/{index-D8Ff3cvD.mjs → index-C4adZui2.mjs} +1 -1
- package/dist/{index-4vroyzSn.mjs → index-C6i2bLUg.mjs} +12 -11
- package/dist/{index-4vroyzSn.mjs.gz → index-C6i2bLUg.mjs.gz} +0 -0
- package/dist/{index-CQH1oKse.mjs → index-CEKxv-W5.mjs} +4 -4
- package/dist/index-CEKxv-W5.mjs.gz +0 -0
- package/dist/{index-DOd7gGf0.mjs → index-CQZr0MCD.mjs} +4 -4
- package/dist/{index-_011eP9A.js → index-CR1J4J4k.js} +1 -1
- package/dist/{index-C1y3MAt0.js → index-CTc1cIRV.js} +1 -1
- package/dist/{index-CR025pSa.mjs → index-CUdqMUI0.mjs} +1 -1
- package/dist/{index-BIXbW9QI.mjs → index-Cezc4RS4.mjs} +3 -3
- package/dist/{index-DUkf8x-t.js → index-CoNHMWbU.js} +1 -1
- package/dist/{index-4xgqgUzO.mjs → index-Cqjl-nKi.mjs} +4 -4
- package/dist/{index-CeRZHA0p.js → index-CscKdmVC.js} +1 -1
- package/dist/{index-DgT98QX4.js → index-CvpNxmjB.js} +1 -1
- package/dist/{index-BTH1MpZB.mjs → index-CxH59Kgv.mjs} +1 -1
- package/dist/{index-gdo_YvSe.mjs → index-D20svgIY.mjs} +5 -5
- package/dist/{index-p7IkoeEM.js → index-D30O7e9j.js} +1 -1
- package/dist/{index-pghppbpo.js → index-D7kDVZuq.js} +1 -1
- package/dist/{index-DFOJEEoN.mjs → index-D83pIzwx.mjs} +1 -1
- package/dist/{index-_RgYsOZM.mjs → index-D96cwnfD.mjs} +1 -1
- package/dist/{index-BvF9ZEqN.mjs → index-DFxRkudI.mjs} +1 -1
- package/dist/{index-DxYePVQp.js → index-DGsDST_p.js} +1 -1
- package/dist/{index-CFZQbqIk.js → index-DJ6TiKkO.js} +1 -1
- package/dist/{index-7D2Fsse-.js → index-DLTj13id.js} +1 -1
- package/dist/{index-amzQpJgK.mjs → index-DRRDRR4E.mjs} +1 -1
- package/dist/{index-DM092PiZ.mjs → index-DUdmRKLb.mjs} +1 -1
- package/dist/{index-BZ_uVGot.mjs → index-DaJSmtAK.mjs} +4 -4
- package/dist/{index-UNz4nHw3.js → index-DcsMEhW4.js} +1 -1
- package/dist/{index-tft6uMTo.js → index-DhGkbqbe.js} +1 -1
- package/dist/{index-Dv3DKz86.js → index-DkVRauCc.js} +1 -1
- package/dist/{index-Bo5U7Zov.mjs → index-Dllt0jjv.mjs} +3 -3
- package/dist/{index-DPuMwpXf.js → index-DnmtrB1N.js} +1 -1
- package/dist/{index-rekEZQjy.mjs → index-Dw0tIggb.mjs} +1 -1
- package/dist/{index-BdE8o81R.js → index-Hz-NMUji.js} +1 -1
- package/dist/{index-BfAATiyc.mjs → index-J5fujXAl.mjs} +1 -1
- package/dist/{index-BUcUuzxV.mjs → index-JMWEQqVX.mjs} +3 -3
- package/dist/{index-C6OJJoGu.js → index-LYA7yJo4.js} +1 -1
- package/dist/{index-C7pzW_jP.js → index-O4oEsrm2.js} +1 -1
- package/dist/{index-BUZJIznB.mjs → index-ONRErtMS.mjs} +3 -3
- package/dist/{index-CRFo_UX4.mjs → index-UOG720Lp.mjs} +2 -2
- package/dist/index-UOG720Lp.mjs.gz +0 -0
- package/dist/{index-BkKAyi4g.js → index-WZsrIVFe.js} +1 -1
- package/dist/{index-Cn0hS8ZX.mjs → index-b-ydLI2e.mjs} +1 -1
- package/dist/{index-7BtCv7Ul.js → index-bSS-UXg4.js} +1 -1
- package/dist/{index-DHJj7EVx.js → index-bn8E2ltc.js} +1 -1
- package/dist/{index-BrRwj1RO.js → index-dWw8JY8u.js} +1 -1
- package/dist/index-dWw8JY8u.js.gz +0 -0
- package/dist/{index-DQS4xNCb.js → index-h5jul3ut.js} +1 -1
- package/dist/{index-Byij6xVQ.js → index-lGv-r_0q.js} +1 -1
- package/dist/index-lGv-r_0q.js.gz +0 -0
- package/dist/{index-BRou9dzE.js → index-mudB_wjm.js} +1 -1
- package/dist/{index-CeIMb6LY.js → index-vPqVRlTB.js} +1 -1
- package/dist/{index-CTp_JsDQ.mjs → index-wPY9geHc.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DNVbjHXx.mjs → index.vue_vue_type_script_setup_true_lang-B0REpYV9.mjs} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-BAtG-PNt.js → index.vue_vue_type_script_setup_true_lang-CNZ1n-79.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-R043aiys.js → index.vue_vue_type_script_setup_true_lang-CaKYyGhi.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BiSTJjCe.mjs → index.vue_vue_type_script_setup_true_lang-DZ3G_dK_.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CbNWMEnN.mjs → index.vue_vue_type_script_setup_true_lang-DosDUQEE.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-CohUhui4.js → index.vue_vue_type_script_setup_true_lang-DuLVlYZ2.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CK6bGWZ2.js → index.vue_vue_type_script_setup_true_lang-UsF6Xa69.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DFQ1B7rp.mjs → index.vue_vue_type_script_setup_true_lang-vYoyFIZy.mjs} +3 -3
- package/dist/index.vue_vue_type_script_setup_true_lang-vYoyFIZy.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-xXZi2m_4.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CzFEwZa6.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-CQUK7GeX.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-DPWQlGF1.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DPWQlGF1.mjs.gz +0 -0
- package/dist/{link-C5hojKu2.mjs → link-BY8cWVxT.mjs} +1 -1
- package/dist/{link-DxRgZeLV.js → link-Brre2P--.js} +1 -1
- package/dist/{list-Cp9tSdMW.mjs → list-C8QZ6uFv.mjs} +1 -1
- package/dist/{list-Czlx-QZC.js → list-CsCvcEVp.js} +1 -1
- package/dist/{main-DoPgdpVc.js → main-CZTZdt5w.js} +1 -1
- package/dist/{main-CA5hefrD.mjs → main-seCEScw0.mjs} +3 -3
- package/dist/{mobile-Bhb2VSR0.js → mobile-C6b7DFal.js} +1 -1
- package/dist/{mobile-Bx_Uev6w.mjs → mobile-DSgGClRG.mjs} +1 -1
- package/dist/{parent-COXZ8Har.js → parent-BBP3nXwv.js} +1 -1
- package/dist/{parent-CRQEXohG.mjs → parent-Ddlj8fTZ.mjs} +1 -1
- package/dist/{popup-D6YokJ1z.js → popup-DFBfDNLw.js} +1 -1
- package/dist/{popup-BlOpySv4.mjs → popup-Dg7FFs-c.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-Q-4qHnu9.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-Wj6xPBdI.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-IB5Jba5E.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-pt-5mg1F.js} +1 -1
- package/dist/{roleItem-Cg_Y-7ML.mjs → roleItem--X_gueB8.mjs} +1 -1
- package/dist/{roleItem-BODGFez6.js → roleItem-CbIB1-N3.js} +1 -1
- package/dist/{saveForm-BgAIQyar.js → saveForm-DJvDbJ_B.js} +1 -1
- package/dist/{saveForm-xTMKDmFx.mjs → saveForm-DsRUFroL.mjs} +3 -3
- package/dist/{scan-poeMlGHs.mjs → scan-BKmA0v1d.mjs} +1 -1
- package/dist/scan-BKmA0v1d.mjs.gz +0 -0
- package/dist/{scan-6yItlTBB.js → scan-CbzyFYl0.js} +1 -1
- package/dist/{scan-6yItlTBB.js.gz → scan-CbzyFYl0.js.gz} +0 -0
- package/dist/{search-BlyWN3aG.js → search-C2E10Y02.js} +1 -1
- package/dist/{search-CVR9kYja.mjs → search-Dmdw-Upa.mjs} +1 -1
- package/dist/{selectConfig-BhWsUMfv.mjs → selectConfig-CaNAm9nZ.mjs} +1 -1
- package/dist/selectConfig-CaNAm9nZ.mjs.gz +0 -0
- package/dist/{selectConfig-CsOZOTzT.js → selectConfig-DDjz-hS7.js} +1 -1
- package/dist/{subItem-BoC80cj9.mjs → subItem-CgjXWBrv.mjs} +1 -1
- package/dist/{subItem-DVciWLSX.js → subItem-DywEquDF.js} +1 -1
- package/dist/{tagsView-By3qFc1X.js → tagsView-Bin5b0qk.js} +2 -2
- package/dist/tagsView-Bin5b0qk.js.gz +0 -0
- package/dist/{tagsView-9RCUXZsl.mjs → tagsView-RhZ6OM9c.mjs} +2 -2
- package/dist/tagsView-RhZ6OM9c.mjs.gz +0 -0
- package/dist/{transverse-CVHL-TfG.mjs → transverse-CYzwNB9v.mjs} +3 -3
- package/dist/{transverse-BjQjTeAT.js → transverse-DE8w6hbq.js} +1 -1
- package/dist/{uploadAvatar-CoolEv6p.mjs → uploadAvatar-BAZseOjV.mjs} +1 -1
- package/dist/uploadAvatar-BAZseOjV.mjs.gz +0 -0
- package/dist/{uploadAvatar-BbuIORZa.js → uploadAvatar-BUEdDO8N.js} +1 -1
- package/dist/uploadAvatar-BUEdDO8N.js.gz +0 -0
- package/dist/{user-Bw3fIKJi.mjs → user-CIwoT-Qj.mjs} +3 -3
- package/dist/{user-7m1MXZS8.js → user-CP9oIvOk.js} +1 -1
- package/dist/{userNews-DO85ZzZT.mjs → userNews-B1TvAwsO.mjs} +1 -1
- package/dist/{userNews-mGTadoQE.js → userNews-BQSYl513.js} +1 -1
- package/dist/{userSelect-BOVWhrkB.mjs → userSelect-Cluge1__.mjs} +1 -1
- package/dist/{userSelect-CWdY26F6.js → userSelect-MHTIlRAQ.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BLiMYFfe.mjs → userSelect.vue_vue_type_script_setup_true_lang-D3iD6mxB.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BasE99aI.js → userSelect.vue_vue_type_script_setup_true_lang-ys3oyuat.js} +1 -1
- package/dist/{vertical-BrIi--Vx.js → vertical-B_Iu5yU9.js} +1 -1
- package/dist/{vertical-D20zQtTY.mjs → vertical-ByT3vbNu.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-BCG_L4ji.js.gz +0 -0
- package/dist/404-DDFKAZsG.mjs.gz +0 -0
- package/dist/baseFormConfig-DqQ_ET6E.mjs.gz +0 -0
- package/dist/baseTableConfig-BRMETzD0.js.gz +0 -0
- package/dist/baseTableConfig-uzNSJwJV.mjs.gz +0 -0
- package/dist/btnIndex-B9WaJWTh.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BE2iLaWg.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BKLR2tru.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B20zQP3y.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-COs-QbAK.mjs.gz +0 -0
- package/dist/formConfig-C3JLDZ6a.js.gz +0 -0
- package/dist/formConfig-CuznMMzw.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-D8oDHINc.mjs.gz +0 -0
- package/dist/hsFormConfigList-BaQSF5WK.mjs.gz +0 -0
- package/dist/hsFormPanel-CDy0GubL.mjs.gz +0 -0
- package/dist/index copy-D5FxWqH7.js.gz +0 -0
- package/dist/index-2yiouQuI.mjs.gz +0 -0
- package/dist/index-BrRwj1RO.js.gz +0 -0
- package/dist/index-Byij6xVQ.js.gz +0 -0
- package/dist/index-CQH1oKse.mjs.gz +0 -0
- package/dist/index-CRFo_UX4.mjs.gz +0 -0
- package/dist/index-TErY4lQI.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DFQ1B7rp.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CQUK7GeX.mjs.gz +0 -0
- package/dist/scan-poeMlGHs.mjs.gz +0 -0
- package/dist/selectConfig-BhWsUMfv.mjs.gz +0 -0
- package/dist/tagsView-9RCUXZsl.mjs.gz +0 -0
- package/dist/tagsView-By3qFc1X.js.gz +0 -0
- package/dist/uploadAvatar-BbuIORZa.js.gz +0 -0
- package/dist/uploadAvatar-CoolEv6p.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-M3GLCpi4.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-C3IUGina.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, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-
|
|
3
|
+
import { D as useUserInfo, a as useThemeConfig, V as systemStore, a2 as ClickOutside, a3 as screenfull, b as ElMessage, m as mittBus, E as ElMessageBox, G as useLoginController, a4 as clearAllIndexDB, c as _, _ as _export_sfc } from "./index-C6i2bLUg.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-B1TvAwsO.mjs")
|
|
16
16
|
);
|
|
17
17
|
const Search = defineAsyncComponent(
|
|
18
|
-
() => import("./search-
|
|
18
|
+
() => import("./search-Dmdw-Upa.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-C3IUGina.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-BQSYl513.js"))))),c=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-C2E10Y02.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-C6i2bLUg.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-C3IUGina.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-ys3oyuat.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-C6i2bLUg.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-C3IUGina.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-C3IUGina.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-DywEquDF.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, $ as other } from "./index-
|
|
4
|
+
import { a as useThemeConfig, $ as other } from "./index-C6i2bLUg.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-CgjXWBrv.mjs"));
|
|
20
20
|
const props = __props;
|
|
21
21
|
const storesThemeConfig = useThemeConfig();
|
|
22
22
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
package/package.json
CHANGED
package/dist/404-BCG_L4ji.js.gz
DELETED
|
Binary file
|
package/dist/404-DDFKAZsG.mjs.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-B20zQP3y.js.gz
DELETED
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-COs-QbAK.mjs.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|