hs-admin-ui 13.1.8 → 13.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-YAahFYfm.mjs → 401-Dlm_g6iP.mjs} +1 -1
- package/dist/{401-Boaat5M2.js → 401-DvFUMrmC.js} +1 -1
- package/dist/{404-PLk6hYv-.mjs → 404-45cJOByc.mjs} +1 -1
- package/dist/{404-PLk6hYv-.mjs.gz → 404-45cJOByc.mjs.gz} +0 -0
- package/dist/{404-BsvneE9-.js → 404-HmgcN-vW.js} +1 -1
- package/dist/404-HmgcN-vW.js.gz +0 -0
- package/dist/{account-CT1iOhAP.js → account-Be7VQ7sV.js} +1 -1
- package/dist/{account-DTwlYQR-.mjs → account-DcYtcLcB.mjs} +1 -1
- package/dist/{aside-4_p5N_Dv.mjs → aside-DXa1x1f8.mjs} +3 -3
- package/dist/{aside-C6egctns.js → aside-zvhwiuSJ.js} +1 -1
- package/dist/{auth_test-Bl-8FFRF.mjs → auth_test-CoCxLGS7.mjs} +1 -1
- package/dist/{auth_test-4FCEm2oY.js → auth_test-LztHlEi0.js} +1 -1
- package/dist/{btnIndex-DLgvKw6X.mjs → btnIndex-CpQC_Cqg.mjs} +2 -2
- package/dist/btnIndex-CpQC_Cqg.mjs.gz +0 -0
- package/dist/{btnIndex-RJs8jLrh.js → btnIndex-MiXuiAee.js} +1 -1
- package/dist/{classic-gtWBiqFO.js → classic-Dh9qO9Ml.js} +1 -1
- package/dist/{classic-D_Vm9bSL.mjs → classic-YBJXXowK.mjs} +5 -5
- package/dist/{cloneConfigDialog-sBW3QqCS.mjs → cloneConfigDialog-B0pY3M9V.mjs} +1 -1
- package/dist/cloneConfigDialog-B0pY3M9V.mjs.gz +0 -0
- package/dist/{cloneConfigDialog-BDKM48f7.js → cloneConfigDialog-CK_wDgzZ.js} +1 -1
- package/dist/cloneConfigDialog-CK_wDgzZ.js.gz +0 -0
- package/dist/{columns-C5gT8rvM.mjs → columns-CThtJpT_.mjs} +5 -5
- package/dist/{columns-CDYgRc-f.js → columns-DxZjE_aD.js} +1 -1
- package/dist/{columnsAside-Cw79v4GH.js → columnsAside-DQ7ZdGMG.js} +1 -1
- package/dist/{columnsAside-Bum1aVt2.mjs → columnsAside-zTgAUB3w.mjs} +1 -1
- package/dist/{contextmenu-Ct8RoHf7.js → contextmenu-Bmk1NpXZ.js} +1 -1
- package/dist/{contextmenu-CgPP91My.js → contextmenu-CuUI_45Q.js} +1 -1
- package/dist/{contextmenu-U9pwaXpj.mjs → contextmenu-DTUEMS0L.mjs} +1 -1
- package/dist/{contextmenu-C9vM6qyX.mjs → contextmenu-ysEAzZt3.mjs} +1 -1
- package/dist/{copyMenuConfig-C3qtwLhi.js → copyMenuConfig-CCugGHUo.js} +1 -1
- package/dist/{copyMenuConfig-Dgmaeb99.mjs → copyMenuConfig-CxQC1iQj.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-IPCvR9tG.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BCQOaY-d.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-CFEELCt7.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-C0e_y7Fj.js} +1 -1
- package/dist/{copySystem-Dw1q6T4g.mjs → copySystem-DD7XM93n.mjs} +1 -1
- package/dist/{copySystem-Tw9Yz58y.js → copySystem-DkoLCgBU.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-vicDA3Us.mjs → copySystem.vue_vue_type_script_setup_true_lang-CR02EVkA.mjs} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BGQjFPyA.js → copySystem.vue_vue_type_script_setup_true_lang-DIEyJ013.js} +1 -1
- package/dist/{defaults-De6MVrcj.mjs → defaults-CbPZtn3r.mjs} +4 -4
- package/dist/{defaults-vGYes3OH.js → defaults-TjgsvYtb.js} +1 -1
- package/dist/{dialog-P9XksgMq.mjs → dialog-BVh8PTzL.mjs} +1 -1
- package/dist/{dialog-DDlYUPnB.mjs → dialog-CTHPQkVt.mjs} +1 -1
- package/dist/{dialog-CnUNpA4X.js → dialog-DPzhPND9.js} +1 -1
- package/dist/{dialog-Bp6tC14I.mjs → dialog-DZO0LIj7.mjs} +1 -1
- package/dist/{dialog-DM6zAp6n.js → dialog-DbBJN_FA.js} +1 -1
- package/dist/{dialog-C9clW4V4.js → dialog-t1q8YNJB.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-2lHHd3Gj.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-4FBXnqIo.mjs} +2 -2
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-SMdkvUxJ.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BLkHvAeS.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bf6W0C7a.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BTs_IC-u.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BTs_IC-u.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B7qV--7r.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cz_U4EdM.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cz_U4EdM.mjs.gz +0 -0
- package/dist/{dictDialog-D7K788yG.js → dictDialog-Cjks34Ly.js} +1 -1
- package/dist/{dictDialog-Cbi35jkT.mjs → dictDialog-D7y_ebvW.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BArO5zjg.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C53bk06_.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B4Y-ZzeB.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DaSJW-7X.mjs} +2 -2
- package/dist/{dictItemDialog-CtQ-dRP-.js → dictItemDialog-CbE_-W6h.js} +1 -1
- package/dist/{dictItemDialog-DWeHHXZI.mjs → dictItemDialog-b67SzlJ3.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-B6iqqt3Z.js → dictItemDialog.vue_vue_type_script_setup_true_lang-Du7SknwD.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-B1Lq9ggW.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-oA3Jpwq0.mjs} +2 -2
- package/dist/{formConfig-CZ8INuWw.js → formConfig-207G3T4X.js} +1 -1
- package/dist/formConfig-207G3T4X.js.gz +0 -0
- package/dist/{formConfig-CGmJPubu.mjs → formConfig-DL9aEkMQ.mjs} +5 -5
- package/dist/formConfig-DL9aEkMQ.mjs.gz +0 -0
- package/dist/{header-BVoz4EFC.mjs → header-C7NfoIxf.mjs} +2 -2
- package/dist/{header-CUFtF9UC.js → header-CKPbZp7h.js} +1 -1
- package/dist/{horizontal-DdfvBa81.js → horizontal-BOpxb7-9.js} +1 -1
- package/dist/{horizontal-r064Zahw.mjs → horizontal-Boo8QKaN.mjs} +2 -2
- package/dist/{hsAttrBtn-BqD7Ckrl.js → hsAttrBtn-CDcoAfhS.js} +1 -1
- package/dist/{hsAttrBtn-DuibW2v7.mjs → hsAttrBtn-DM2NKdCz.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Dwvkzc__.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-C-VL2SRo.mjs} +3 -3
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DTzFYXA1.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Dd7-2BWa.js} +1 -1
- package/dist/{hsAttrForm-CVP1IpMD.mjs → hsAttrForm-BpLd6WfS.mjs} +1 -1
- package/dist/{hsAttrForm-D_ZZKG1u.js → hsAttrForm-CmHLZdiO.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-kXpRZJad.js → hsAttrForm.vue_vue_type_script_setup_true_lang--u5CSc6B.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-qVFsBbsk.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CF4cDwYm.mjs} +2 -2
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CF4cDwYm.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-Bttj96Mo.js → hsBtnConfigList-BASaZDW9.js} +1 -1
- package/dist/{hsBtnConfigList-BYC3jBYD.mjs → hsBtnConfigList-BFk5225q.mjs} +1 -1
- package/dist/{hsBtnItemConfig-U1BR31Tf.js → hsBtnItemConfig-C4qTalKc.js} +1 -1
- package/dist/{hsBtnItemConfig-D_AgEVmn.mjs → hsBtnItemConfig-DRttDkLk.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-EuejKm_e.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CCctInUD.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-D90lfeRR.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cr06xGig.js} +1 -1
- package/dist/{hsBtnPanel-BvXSWCBy.js → hsBtnPanel-BlWgutmY.js} +1 -1
- package/dist/{hsBtnPanel-uSHu1P1V.mjs → hsBtnPanel-CxhMcN3v.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BE3Sug-V.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DrLpAucp.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Mqe0kbhH.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-d6RGeV9A.mjs} +4 -4
- package/dist/{hsExpand-Bwlw_Uu-.js → hsExpand-BYMiTrm_.js} +1 -1
- package/dist/{hsExpand-C_Uh3pud.mjs → hsExpand-Ba3NE9Il.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-D0Q5m61s.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BT2LkTIx.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BcceuaLJ.js → hsExpand.vue_vue_type_script_setup_true_lang-vQBmPpCd.js} +1 -1
- package/dist/{hsFormConfig-Ci1mfHKx.mjs → hsFormConfig-94yRHPN-.mjs} +1 -1
- package/dist/{hsFormConfig-B5T4jkJh.js → hsFormConfig-IihRL0mx.js} +1 -1
- package/dist/{hsFormConfigList-DqWxtYGC.js → hsFormConfigList-BkvdTePV.js} +1 -1
- package/dist/{hsFormConfigList-txmSGWsU.mjs → hsFormConfigList-Da3T4EDr.mjs} +2 -2
- package/dist/hsFormConfigList-Da3T4EDr.mjs.gz +0 -0
- package/dist/{hsFormPanel-8QQYU2_k.mjs → hsFormPanel-CQhW6yK0.mjs} +5 -5
- package/dist/hsFormPanel-CQhW6yK0.mjs.gz +0 -0
- package/dist/{hsFormPanel-Dz7Tsi2s.js → hsFormPanel-k1sB51qb.js} +1 -1
- package/dist/{hsFormParse-L21y73eu.mjs → hsFormParse-8gdSmlDj.mjs} +1 -1
- package/dist/{hsFormParse-C3Kih3SD.js → hsFormParse-O6gexSqd.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CaBfXvI0.js → hsFormParse.vue_vue_type_script_setup_true_lang-CT2GwXzY.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-Drr6xsYG.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DNNUJ4h-.mjs} +1 -1
- package/dist/{hsPanelItem-D9efCqtg.mjs → hsPanelItem-BpDrkSNc.mjs} +1 -1
- package/dist/{hsPanelItem-BME6F26r.js → hsPanelItem-CmTKTMMb.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Ck4KFFby.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bn2Fl1Hj.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CbwWcrHp.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CKu2RPw1.js} +1 -1
- package/dist/{iframes-CpdKxFLh.js → iframes-DSk4ICbg.js} +1 -1
- package/dist/{iframes-D56ZcTPP.mjs → iframes-JBocEh5z.mjs} +1 -1
- package/dist/{index copy-CEsHT_0p.mjs → index copy-BnQerPk1.mjs } +1 -1
- package/dist/{index copy-CbJxULyE.js → index copy-Cg7shJQb.js } +1 -1
- package/dist/index copy-Cg7shJQb.js.gz +0 -0
- package/dist/{index copy-DJgOWxkH.mjs → index copy-DN_oCLRS.mjs } +1 -1
- package/dist/{index copy-DJgOWxkH.mjs.gz → index copy-DN_oCLRS.mjs.gz} +0 -0
- package/dist/{index copy-CgOpinAZ.js → index copy-DxA_ECgG.js } +1 -1
- package/dist/{index-CB3t-RAJ.js → index-2ijLSEgK.js} +1 -1
- package/dist/{index-_1795leh.mjs → index-3Nys6pnS.mjs} +1 -1
- package/dist/index-3Nys6pnS.mjs.gz +0 -0
- package/dist/{index-B1xiExlf.js → index-5xlvscJK.js} +1 -1
- package/dist/{index-CXtmHb7h.js → index-ABSc6FGz.js} +1 -1
- package/dist/{index-BBEqytUJ.js → index-AHnEve4A.js} +1 -1
- package/dist/{index-C5JuYzuC.mjs → index-B4vVXLSD.mjs} +2 -2
- package/dist/{index-CjNiChox.js → index-BHLuZOZo.js} +1 -1
- package/dist/{index-CPMZT5KC.mjs → index-BIwYjhsi.mjs} +2 -2
- package/dist/{index-UGOSoqQw.js → index-BL7JC2kH.js} +1 -1
- package/dist/{index-Bo_Bsns9.js → index-BPOQGAzL.js} +1 -1
- package/dist/{index-BEnxWN23.mjs → index-BSaMJb8W.mjs} +1 -1
- package/dist/{index-DMKHGkHP.js → index-BUXZn80f.js} +1 -1
- package/dist/{index-DgK9jSW3.js → index-BeWIe17f.js} +1 -1
- package/dist/{index-BrWyvRX0.mjs → index-C-Tahvch.mjs} +1 -1
- package/dist/{index-D69CTvmd.mjs → index-C0btjX4H.mjs} +2281 -1544
- package/dist/index-C0btjX4H.mjs.gz +0 -0
- package/dist/{index-DCG3k6m8.js → index-C6yFfS5G.js} +1 -1
- package/dist/{index-Dh85mzfr.js → index-C9pBvaH5.js} +1 -1
- package/dist/{index-C4lm6L6P.js → index-CAg6IKFk.js} +1 -1
- package/dist/{index-DLPVyP4c.mjs → index-CJzSCK5c.mjs} +3 -3
- package/dist/{index-BSN7z7JA.mjs → index-CL8A8pCe.mjs} +3 -3
- package/dist/{index-BS2B1htv.mjs → index-CMgzifes.mjs} +1 -1
- package/dist/{index-Ap23JaNw.js → index-CPE6wRKi.js} +1 -1
- package/dist/{index-DteaHGrF.js → index-CRl5FKkw.js} +1 -1
- package/dist/{index-DsU7ot7Y.js → index-CYOP_UWf.js} +8 -8
- package/dist/index-CYOP_UWf.js.gz +0 -0
- package/dist/{index-4sVn5dpc.mjs → index-Ca4G_wIm.mjs} +1 -1
- package/dist/{index-2Piys2gm.mjs → index-Ce9c4p16.mjs} +3 -3
- package/dist/index-Ce9c4p16.mjs.gz +0 -0
- package/dist/{index-KkfJ_TbU.js → index-CkicCMrU.js} +1 -1
- package/dist/{index-P9VYPqCU.mjs → index-ClIABLGu.mjs} +1 -1
- package/dist/index-ClIABLGu.mjs.gz +0 -0
- package/dist/{index-ChBzVwNp.mjs → index-Cq_6DT4n.mjs} +1 -1
- package/dist/{index-BDdhhOvk.mjs → index-CrYs8RQ1.mjs} +3 -3
- package/dist/{index-CuJ-YG9w.js → index-CwNYhmll.js} +1 -1
- package/dist/{index-DeiFwqqb.js → index-Cx02-oAk.js} +1 -1
- package/dist/index-Cx02-oAk.js.gz +0 -0
- package/dist/{index-CHe9Mk-8.js → index-D1xk72Ng.js} +1 -1
- package/dist/{index-BMRX3amw.js → index-D2KZj_o4.js} +1 -1
- package/dist/{index-B309XV36.mjs → index-D2bpZs4K.mjs} +1 -1
- package/dist/{index-DQ-efZmJ.mjs → index-D2c8MjHg.mjs} +1 -1
- package/dist/{index-CZIPoIvO.mjs → index-D2lnfNGM.mjs} +5 -5
- package/dist/{index-DAc9SkYl.mjs → index-D78vOb-2.mjs} +3 -3
- package/dist/{index-BOepqctt.mjs → index-D96OeEE5.mjs} +1 -1
- package/dist/{index-BDLPp9Ni.mjs → index-DCdHOqUD.mjs} +1 -1
- package/dist/{index-DM5eKrS7.js → index-DEsN_1Og.js} +1 -1
- package/dist/{index-D5p24MYV.js → index-DPFrfHMb.js} +1 -1
- package/dist/{index-Dqv1hmXF.mjs → index-DPJSHISj.mjs} +1 -1
- package/dist/{index-DFgo2Q-7.js → index-DPs_3Wdn.js} +1 -1
- package/dist/{index-DwWAkr7t.mjs → index-DRimEA62.mjs} +4 -4
- package/dist/{index-C1QOL2a4.js → index-DTEK5Bxs.js} +1 -1
- package/dist/index-DTEK5Bxs.js.gz +0 -0
- package/dist/{index-zL4hUg2l.js → index-DcLk-hOt.js} +1 -1
- package/dist/{index-Hb-KUzhB.mjs → index-Dfe4SwQ_.mjs} +1 -1
- package/dist/{index-BP9WX6jE.mjs → index-DjT_vypN.mjs} +3 -3
- package/dist/{index-B9MKrfd2.mjs → index-Dkw9XZ6h.mjs} +4 -4
- package/dist/{index-NNN-evy6.mjs → index-DlHT6dQV.mjs} +4 -4
- package/dist/index-DlHT6dQV.mjs.gz +0 -0
- package/dist/{index-CRDA5PRh.js → index-DnbWDK9q.js} +1 -1
- package/dist/{index-PALWC8Vn.js → index-DqjNfjAJ.js} +1 -1
- package/dist/{index-BRtAZlrN.js → index-Dqpd2MAP.js} +1 -1
- package/dist/index-Dsgu_XO6.js +1 -0
- package/dist/{index-Cau8-Fn3.mjs → index-DvhD6CFJ.mjs} +1 -1
- package/dist/{index-CpIZYBn6.js → index-Dvl7Juhs.js} +1 -1
- package/dist/{index-BSlKxGGY.mjs → index-H3LemiMl.mjs} +7 -5
- package/dist/{index-BvaDPAOA.js → index-HkXo17mC.js} +1 -1
- package/dist/{index-BrSIkt3O.mjs → index-N17CWSWl.mjs} +1 -1
- package/dist/{index-EyAlzLn_.mjs → index-PbeJTqmp.mjs} +2 -2
- package/dist/index-PbeJTqmp.mjs.gz +0 -0
- package/dist/index-ZjTdKSCt.mjs +4 -0
- package/dist/{index-D_H9Acz-.mjs → index-_IbVdDrb.mjs} +1 -1
- package/dist/{index-BoB3AeJr.js → index-_Sg99k_n.js} +1 -1
- package/dist/{index-D2_0JrGO.js → index-dvxDI1l8.js} +1 -1
- package/dist/{index-CqO_gZuc.js → index-eny96zWh.js} +1 -1
- package/dist/{index-3xq0t_Sq.mjs → index-fne22mLV.mjs} +3 -3
- package/dist/{index-DvKT9Uvl.js → index-jqkwblPj.js} +1 -1
- package/dist/{index-DSo9KN_S.mjs → index-kWZkIQ92.mjs} +1 -1
- package/dist/{index-dF7TNMup.mjs → index-o2og8Wox.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-D_Kp1Zu1.mjs → index.vue_vue_type_script_setup_true_lang--8HGBA-h.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-L9yUr5II.js → index.vue_vue_type_script_setup_true_lang-B48DW_DT.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B9w8-PgW.js → index.vue_vue_type_script_setup_true_lang-BBpSwnc_.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CPN94Cvf.mjs → index.vue_vue_type_script_setup_true_lang-BOyua1AO.mjs} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJae5a0z.mjs → index.vue_vue_type_script_setup_true_lang-BaFedRFd.mjs} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-BaFedRFd.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DyEV6CE4.mjs → index.vue_vue_type_script_setup_true_lang-CPg5xDYZ.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-_JqROf14.js → index.vue_vue_type_script_setup_true_lang-DEhbLkF7.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DR64AM9L.js → index.vue_vue_type_script_setup_true_lang-DfZwAnnW.js} +1 -1
- package/dist/{link-DC5S0NwA.mjs → link-BWA-mJ_q.mjs} +1 -1
- package/dist/{link-DTfQkykE.js → link-MU2i9AXJ.js} +1 -1
- package/dist/{list-uhWh_wSW.js → list-kY-mfMGt.js} +1 -1
- package/dist/{list-CetbpIXf.mjs → list-qR4gnxB1.mjs} +1 -1
- package/dist/{main-3pp2dVwX.mjs → main-Be6alWI7.mjs} +3 -3
- package/dist/{main-qNSaf0sj.js → main-wK-TDb7H.js} +1 -1
- package/dist/{mobile-2HJ_jLgP.mjs → mobile-BKwJuSIe.mjs} +1 -1
- package/dist/{mobile-BfD5W8wr.js → mobile-DIgYIreu.js} +1 -1
- package/dist/{parent-C_6r-Nx8.js → parent-B50QGAYN.js} +1 -1
- package/dist/{parent-CQ-6_1nK.mjs → parent-CiqVgt2e.mjs} +2 -2
- package/dist/{popup-CI7rY1i1.js → popup-DiSpNq4b.js} +1 -1
- package/dist/{popup-DZ7dVoop.mjs → popup-DsWsFchW.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-DD2zhNR8.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-BhyUdo0S.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CAic3_Wk.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CZU1huOk.mjs} +1 -1
- package/dist/{roleItem-Dx3ufRim.js → roleItem-B94JO6yN.js} +1 -1
- package/dist/{roleItem-6xPtNAwd.mjs → roleItem-BzwWoO2_.mjs} +1 -1
- package/dist/{saveForm-DoeHRjX8.mjs → saveForm-DryBoZLu.mjs} +2 -2
- package/dist/{saveForm-CazZ8jQu.js → saveForm-u0bAQwdn.js} +1 -1
- package/dist/{scan-qbwpphMb.js → scan-BJVQnbfM.js} +1 -1
- package/dist/scan-BJVQnbfM.js.gz +0 -0
- package/dist/{scan-C2C9WD5n.mjs → scan-VeoEql_U.mjs} +1 -1
- package/dist/scan-VeoEql_U.mjs.gz +0 -0
- package/dist/{search-B4V_RwnC.mjs → search-CWSSQqmj.mjs} +1 -1
- package/dist/{search-DkswiRX6.js → search-DbYyE5Xh.js} +1 -1
- package/dist/{selectConfig-B7V5eYRl.mjs → selectConfig-BsuaZEfK.mjs} +1 -1
- package/dist/selectConfig-BsuaZEfK.mjs.gz +0 -0
- package/dist/{selectConfig-DZI5EG51.js → selectConfig-CIpOi7Lt.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-LX6vMxM8.mjs → subItem-NPl5SqHm.mjs} +1 -1
- package/dist/{subItem-Bvqw3qfC.js → subItem-mXVMl6a3.js} +1 -1
- package/dist/{tagsView-Cwd3YDzS.mjs → tagsView-CxDZx1PT.mjs} +2 -2
- package/dist/tagsView-CxDZx1PT.mjs.gz +0 -0
- package/dist/{tagsView-DZctygay.js → tagsView-lbiUYpSa.js} +2 -2
- package/dist/tagsView-lbiUYpSa.js.gz +0 -0
- package/dist/{transverse-C8nNodAP.mjs → transverse-CpJP_It4.mjs} +3 -3
- package/dist/{transverse-DR6SEJOA.js → transverse-JKZZcC2Y.js} +1 -1
- package/dist/types/components/business/bcSystemAuth/components/fastSet/index.d.ts +1 -0
- package/dist/types/components/business/bcSystemAuth/components/fastSet/popup.vue.d.ts +17 -0
- package/dist/types/components/business/bcSystemAuth/fastStore.d.ts +512 -0
- package/dist/types/components/business/bcSystemAuth/fastUtils.d.ts +346 -0
- package/dist/types/components/business/bcSystemAuth/index.vue.d.ts +2 -0
- package/dist/types/components/business/bcSystemAuth/useAuth.d.ts +6 -0
- package/dist/types/components/business/bcSystemAuth/utils.d.ts +1 -1
- package/dist/{uploadAvatar-CHL4NEhx.js → uploadAvatar-4Oa-Ue5Z.js} +1 -1
- package/dist/uploadAvatar-4Oa-Ue5Z.js.gz +0 -0
- package/dist/{uploadAvatar-D14HXTWf.mjs → uploadAvatar-C0C2jnxE.mjs} +1 -1
- package/dist/uploadAvatar-C0C2jnxE.mjs.gz +0 -0
- package/dist/{user-DGY98dmu.js → user-DdZPf7Nd.js} +1 -1
- package/dist/{user-CWLqL1Fc.mjs → user-IgszmSam.mjs} +3 -3
- package/dist/{userNews-CunXMGVO.js → userNews-CuJ8iPEC.js} +1 -1
- package/dist/{userNews-QKFCQJbj.mjs → userNews-DSHZv1yP.mjs} +1 -1
- package/dist/{userSelect-BTh_VHsq.js → userSelect-BBec5LV9.js} +1 -1
- package/dist/{userSelect-CG_UfRxe.mjs → userSelect-DruCHBe5.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DJpxTxnT.js → userSelect.vue_vue_type_script_setup_true_lang-BEKotBAm.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-B420MfGF.mjs → userSelect.vue_vue_type_script_setup_true_lang-E3UwJdV0.mjs} +1 -1
- package/dist/{vertical-hGQ3jgjc.js → vertical-BD7mQcjX.js} +1 -1
- package/dist/{vertical-nyWKAhiV.mjs → vertical-rSFDogSm.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-BsvneE9-.js.gz +0 -0
- package/dist/btnIndex-DLgvKw6X.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BDKM48f7.js.gz +0 -0
- package/dist/cloneConfigDialog-sBW3QqCS.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B7qV--7r.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bf6W0C7a.js.gz +0 -0
- package/dist/formConfig-CGmJPubu.mjs.gz +0 -0
- package/dist/formConfig-CZ8INuWw.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-qVFsBbsk.mjs.gz +0 -0
- package/dist/hsFormConfigList-txmSGWsU.mjs.gz +0 -0
- package/dist/hsFormPanel-8QQYU2_k.mjs.gz +0 -0
- package/dist/index copy-CbJxULyE.js.gz +0 -0
- package/dist/index-2Piys2gm.mjs.gz +0 -0
- package/dist/index-C1QOL2a4.js.gz +0 -0
- package/dist/index-CY090MPn.js +0 -1
- package/dist/index-CqFbZEMG.mjs +0 -4
- package/dist/index-D69CTvmd.mjs.gz +0 -0
- package/dist/index-DeiFwqqb.js.gz +0 -0
- package/dist/index-DsU7ot7Y.js.gz +0 -0
- package/dist/index-EyAlzLn_.mjs.gz +0 -0
- package/dist/index-NNN-evy6.mjs.gz +0 -0
- package/dist/index-P9VYPqCU.mjs.gz +0 -0
- package/dist/index-_1795leh.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BJae5a0z.mjs.gz +0 -0
- package/dist/scan-C2C9WD5n.mjs.gz +0 -0
- package/dist/scan-qbwpphMb.js.gz +0 -0
- package/dist/selectConfig-B7V5eYRl.mjs.gz +0 -0
- package/dist/tagsView-Cwd3YDzS.mjs.gz +0 -0
- package/dist/tagsView-DZctygay.js.gz +0 -0
- package/dist/uploadAvatar-CHL4NEhx.js.gz +0 -0
- package/dist/uploadAvatar-D14HXTWf.mjs.gz +0 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { IAuthData } from '../../../types';
|
|
2
|
+
import { MenuParams1, MenuParams2, MenuParams3 } from './type';
|
|
3
|
+
import { TabName, ActiveName } from './fastStore';
|
|
4
|
+
|
|
5
|
+
export declare function getMenuConfig({ role_id, menu_id, dict_json, data_json }: MenuParams1 & MenuParams2): Promise<{
|
|
6
|
+
id: string;
|
|
7
|
+
tab: TabName;
|
|
8
|
+
active: ActiveName;
|
|
9
|
+
activeId: string;
|
|
10
|
+
typeId: string;
|
|
11
|
+
tableId: string;
|
|
12
|
+
menu: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
databaseName: string;
|
|
16
|
+
id: string;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
create_time: string;
|
|
19
|
+
update_time: string;
|
|
20
|
+
company_id: string;
|
|
21
|
+
path: string;
|
|
22
|
+
name: string;
|
|
23
|
+
title: string;
|
|
24
|
+
component: string;
|
|
25
|
+
sort: number;
|
|
26
|
+
project_code: string;
|
|
27
|
+
children: /*elided*/ any[];
|
|
28
|
+
dict_json?: string | undefined;
|
|
29
|
+
data_json?: string | undefined;
|
|
30
|
+
meta: {
|
|
31
|
+
isLink: boolean;
|
|
32
|
+
isIframe: boolean;
|
|
33
|
+
isKeepAlive: boolean;
|
|
34
|
+
icon: string;
|
|
35
|
+
isAffix: boolean;
|
|
36
|
+
title: string;
|
|
37
|
+
isHide: boolean;
|
|
38
|
+
};
|
|
39
|
+
}[];
|
|
40
|
+
menuFlat: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
databaseName: string;
|
|
44
|
+
id: string;
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
create_time: string;
|
|
47
|
+
update_time: string;
|
|
48
|
+
company_id: string;
|
|
49
|
+
path: string;
|
|
50
|
+
name: string;
|
|
51
|
+
title: string;
|
|
52
|
+
component: string;
|
|
53
|
+
sort: number;
|
|
54
|
+
project_code: string;
|
|
55
|
+
children: /*elided*/ any[];
|
|
56
|
+
dict_json?: string | undefined;
|
|
57
|
+
data_json?: string | undefined;
|
|
58
|
+
meta: {
|
|
59
|
+
isLink: boolean;
|
|
60
|
+
isIframe: boolean;
|
|
61
|
+
isKeepAlive: boolean;
|
|
62
|
+
icon: string;
|
|
63
|
+
isAffix: boolean;
|
|
64
|
+
title: string;
|
|
65
|
+
isHide: boolean;
|
|
66
|
+
};
|
|
67
|
+
}[];
|
|
68
|
+
company: {
|
|
69
|
+
company_id: string;
|
|
70
|
+
company_name: string;
|
|
71
|
+
}[];
|
|
72
|
+
company_id: string;
|
|
73
|
+
role: {
|
|
74
|
+
role_name: string;
|
|
75
|
+
update_time: number;
|
|
76
|
+
create_time: number;
|
|
77
|
+
company_id: string;
|
|
78
|
+
role_weight: number;
|
|
79
|
+
is_del: string;
|
|
80
|
+
id: string;
|
|
81
|
+
}[];
|
|
82
|
+
role_id: string;
|
|
83
|
+
menu_id: string;
|
|
84
|
+
table: {
|
|
85
|
+
id?: string | undefined;
|
|
86
|
+
config_name: string;
|
|
87
|
+
config_type: IAuthData.type;
|
|
88
|
+
config_unique_id: string;
|
|
89
|
+
btns: {
|
|
90
|
+
id: string;
|
|
91
|
+
fieldChange: boolean;
|
|
92
|
+
fieldName: string;
|
|
93
|
+
showName: string;
|
|
94
|
+
fieldProp: string;
|
|
95
|
+
fieldShow: boolean;
|
|
96
|
+
userFieldShow: boolean;
|
|
97
|
+
fieldRequired: boolean;
|
|
98
|
+
forceRequired: boolean;
|
|
99
|
+
sort: number;
|
|
100
|
+
fieldExport: boolean;
|
|
101
|
+
tableId?: string | undefined;
|
|
102
|
+
}[];
|
|
103
|
+
tables: {
|
|
104
|
+
id: string;
|
|
105
|
+
tableId?: string | undefined;
|
|
106
|
+
tableName: string;
|
|
107
|
+
data: {
|
|
108
|
+
option: {
|
|
109
|
+
id: string;
|
|
110
|
+
fieldChange: boolean;
|
|
111
|
+
fieldName: string;
|
|
112
|
+
showName: string;
|
|
113
|
+
fieldProp: string;
|
|
114
|
+
fieldShow: boolean;
|
|
115
|
+
userFieldShow: boolean;
|
|
116
|
+
fieldRequired: boolean;
|
|
117
|
+
forceRequired: boolean;
|
|
118
|
+
sort: number;
|
|
119
|
+
fieldExport: boolean;
|
|
120
|
+
tableId?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
id: string;
|
|
123
|
+
fieldChange: boolean;
|
|
124
|
+
fieldName: string;
|
|
125
|
+
showName: string;
|
|
126
|
+
fieldProp: string;
|
|
127
|
+
fieldShow: boolean;
|
|
128
|
+
userFieldShow: boolean;
|
|
129
|
+
fieldRequired: boolean;
|
|
130
|
+
forceRequired: boolean;
|
|
131
|
+
sort: number;
|
|
132
|
+
fieldExport: boolean;
|
|
133
|
+
tableId?: string | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
}[];
|
|
136
|
+
form: {
|
|
137
|
+
id: string;
|
|
138
|
+
fieldChange: boolean;
|
|
139
|
+
fieldName: string;
|
|
140
|
+
showName: string;
|
|
141
|
+
fieldProp: string;
|
|
142
|
+
fieldShow: boolean;
|
|
143
|
+
userFieldShow: boolean;
|
|
144
|
+
fieldRequired: boolean;
|
|
145
|
+
forceRequired: boolean;
|
|
146
|
+
sort: number;
|
|
147
|
+
fieldExport: boolean;
|
|
148
|
+
tableId?: string | undefined;
|
|
149
|
+
}[];
|
|
150
|
+
menu_id?: string | undefined;
|
|
151
|
+
page_name?: string | undefined;
|
|
152
|
+
is_auth: string;
|
|
153
|
+
dataMap: object;
|
|
154
|
+
optionMap: object;
|
|
155
|
+
}[];
|
|
156
|
+
form: {
|
|
157
|
+
id?: string | undefined;
|
|
158
|
+
config_name: string;
|
|
159
|
+
config_type: IAuthData.type;
|
|
160
|
+
config_unique_id: string;
|
|
161
|
+
btns: {
|
|
162
|
+
id: string;
|
|
163
|
+
fieldChange: boolean;
|
|
164
|
+
fieldName: string;
|
|
165
|
+
showName: string;
|
|
166
|
+
fieldProp: string;
|
|
167
|
+
fieldShow: boolean;
|
|
168
|
+
userFieldShow: boolean;
|
|
169
|
+
fieldRequired: boolean;
|
|
170
|
+
forceRequired: boolean;
|
|
171
|
+
sort: number;
|
|
172
|
+
fieldExport: boolean;
|
|
173
|
+
tableId?: string | undefined;
|
|
174
|
+
}[];
|
|
175
|
+
tables: {
|
|
176
|
+
id: string;
|
|
177
|
+
tableId?: string | undefined;
|
|
178
|
+
tableName: string;
|
|
179
|
+
data: {
|
|
180
|
+
option: {
|
|
181
|
+
id: string;
|
|
182
|
+
fieldChange: boolean;
|
|
183
|
+
fieldName: string;
|
|
184
|
+
showName: string;
|
|
185
|
+
fieldProp: string;
|
|
186
|
+
fieldShow: boolean;
|
|
187
|
+
userFieldShow: boolean;
|
|
188
|
+
fieldRequired: boolean;
|
|
189
|
+
forceRequired: boolean;
|
|
190
|
+
sort: number;
|
|
191
|
+
fieldExport: boolean;
|
|
192
|
+
tableId?: string | undefined;
|
|
193
|
+
}[];
|
|
194
|
+
id: string;
|
|
195
|
+
fieldChange: boolean;
|
|
196
|
+
fieldName: string;
|
|
197
|
+
showName: string;
|
|
198
|
+
fieldProp: string;
|
|
199
|
+
fieldShow: boolean;
|
|
200
|
+
userFieldShow: boolean;
|
|
201
|
+
fieldRequired: boolean;
|
|
202
|
+
forceRequired: boolean;
|
|
203
|
+
sort: number;
|
|
204
|
+
fieldExport: boolean;
|
|
205
|
+
tableId?: string | undefined;
|
|
206
|
+
}[];
|
|
207
|
+
}[];
|
|
208
|
+
form: {
|
|
209
|
+
id: string;
|
|
210
|
+
fieldChange: boolean;
|
|
211
|
+
fieldName: string;
|
|
212
|
+
showName: string;
|
|
213
|
+
fieldProp: string;
|
|
214
|
+
fieldShow: boolean;
|
|
215
|
+
userFieldShow: boolean;
|
|
216
|
+
fieldRequired: boolean;
|
|
217
|
+
forceRequired: boolean;
|
|
218
|
+
sort: number;
|
|
219
|
+
fieldExport: boolean;
|
|
220
|
+
tableId?: string | undefined;
|
|
221
|
+
}[];
|
|
222
|
+
menu_id?: string | undefined;
|
|
223
|
+
page_name?: string | undefined;
|
|
224
|
+
is_auth: string;
|
|
225
|
+
dataMap: object;
|
|
226
|
+
optionMap: object;
|
|
227
|
+
}[];
|
|
228
|
+
dictAuthName: {
|
|
229
|
+
[key: string]: string;
|
|
230
|
+
};
|
|
231
|
+
dictAuth: {
|
|
232
|
+
dose_ways: {
|
|
233
|
+
show: boolean;
|
|
234
|
+
show_name: string;
|
|
235
|
+
id: string;
|
|
236
|
+
sort: number;
|
|
237
|
+
is_default: string;
|
|
238
|
+
dict_child_code: string;
|
|
239
|
+
dict_child_name: string;
|
|
240
|
+
}[];
|
|
241
|
+
compound_type: {
|
|
242
|
+
show: boolean;
|
|
243
|
+
show_name: string;
|
|
244
|
+
id: string;
|
|
245
|
+
sort: number;
|
|
246
|
+
is_default: string;
|
|
247
|
+
dict_child_code: string;
|
|
248
|
+
dict_child_name: string;
|
|
249
|
+
}[];
|
|
250
|
+
unit: {
|
|
251
|
+
show: boolean;
|
|
252
|
+
show_name: string;
|
|
253
|
+
id: string;
|
|
254
|
+
sort: number;
|
|
255
|
+
is_default: string;
|
|
256
|
+
dict_child_code: string;
|
|
257
|
+
dict_child_name: string;
|
|
258
|
+
}[];
|
|
259
|
+
storage_condition: {
|
|
260
|
+
show: boolean;
|
|
261
|
+
show_name: string;
|
|
262
|
+
id: string;
|
|
263
|
+
sort: number;
|
|
264
|
+
is_default: string;
|
|
265
|
+
dict_child_code: string;
|
|
266
|
+
dict_child_name: string;
|
|
267
|
+
}[];
|
|
268
|
+
standard_category: {
|
|
269
|
+
show: boolean;
|
|
270
|
+
show_name: string;
|
|
271
|
+
id: string;
|
|
272
|
+
sort: number;
|
|
273
|
+
is_default: string;
|
|
274
|
+
dict_child_code: string;
|
|
275
|
+
dict_child_name: string;
|
|
276
|
+
}[];
|
|
277
|
+
drug_dosage: {
|
|
278
|
+
show: boolean;
|
|
279
|
+
show_name: string;
|
|
280
|
+
id: string;
|
|
281
|
+
sort: number;
|
|
282
|
+
is_default: string;
|
|
283
|
+
dict_child_code: string;
|
|
284
|
+
dict_child_name: string;
|
|
285
|
+
}[];
|
|
286
|
+
min_dose_unit: {
|
|
287
|
+
show: boolean;
|
|
288
|
+
show_name: string;
|
|
289
|
+
id: string;
|
|
290
|
+
sort: number;
|
|
291
|
+
is_default: string;
|
|
292
|
+
dict_child_code: string;
|
|
293
|
+
dict_child_name: string;
|
|
294
|
+
}[];
|
|
295
|
+
sngle_dose_unit: {
|
|
296
|
+
show: boolean;
|
|
297
|
+
show_name: string;
|
|
298
|
+
id: string;
|
|
299
|
+
sort: number;
|
|
300
|
+
is_default: string;
|
|
301
|
+
dict_child_code: string;
|
|
302
|
+
dict_child_name: string;
|
|
303
|
+
}[];
|
|
304
|
+
use_drug_frequency: {
|
|
305
|
+
show: boolean;
|
|
306
|
+
show_name: string;
|
|
307
|
+
id: string;
|
|
308
|
+
sort: number;
|
|
309
|
+
is_default: string;
|
|
310
|
+
dict_child_code: string;
|
|
311
|
+
dict_child_name: string;
|
|
312
|
+
}[];
|
|
313
|
+
presc_drug_type: {
|
|
314
|
+
show: boolean;
|
|
315
|
+
show_name: string;
|
|
316
|
+
id: string;
|
|
317
|
+
sort: number;
|
|
318
|
+
is_default: string;
|
|
319
|
+
dict_child_code: string;
|
|
320
|
+
dict_child_name: string;
|
|
321
|
+
}[];
|
|
322
|
+
};
|
|
323
|
+
dataAuthName: {
|
|
324
|
+
[key: string]: string;
|
|
325
|
+
};
|
|
326
|
+
dataAuth: {
|
|
327
|
+
company: {
|
|
328
|
+
show: boolean;
|
|
329
|
+
show_name: string;
|
|
330
|
+
dict_child_code: string;
|
|
331
|
+
dict_child_name: string;
|
|
332
|
+
}[];
|
|
333
|
+
};
|
|
334
|
+
}>;
|
|
335
|
+
/** 保存权限数据 */
|
|
336
|
+
export declare function postSavePrminssion<T>(is_effect: 0 | 1): Promise<T>;
|
|
337
|
+
/** 获取菜单数据 */
|
|
338
|
+
export declare function getMenuList(): Promise<void>;
|
|
339
|
+
/** 获取门店列表 */
|
|
340
|
+
export declare function getListAllCompany(): Promise<any>;
|
|
341
|
+
/** 获取角色列表 */
|
|
342
|
+
export declare function getListAllRole(showCompany?: boolean): Promise<any>;
|
|
343
|
+
/** 获取角色权限菜单选中id集合 */
|
|
344
|
+
export declare function getMenuListByPervalue(): Promise<string[]>;
|
|
345
|
+
/** 获取字典数据 */
|
|
346
|
+
export declare function getMapChilds({ dict_json, data_json, dict_functions, data_functions }: MenuParams2 & MenuParams3): Promise<void>;
|
|
@@ -6,6 +6,8 @@ interface Props {
|
|
|
6
6
|
roleId?: string;
|
|
7
7
|
/** 是否显示门店 */
|
|
8
8
|
showCompany?: boolean;
|
|
9
|
+
/** 是否显示快速设置跟权限同步按钮 */
|
|
10
|
+
showSync?: boolean;
|
|
9
11
|
}
|
|
10
12
|
declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
11
13
|
export default _default;
|
|
@@ -16,4 +16,10 @@ export declare function useAuth(props: IComponentAttr.Props<typeof AuthorityMana
|
|
|
16
16
|
setSelelctAll: () => void;
|
|
17
17
|
onCompanyChange: () => void;
|
|
18
18
|
onRoleChange: () => void;
|
|
19
|
+
onPermissionSync: () => void;
|
|
20
|
+
onFastSet: () => void;
|
|
21
|
+
isShowAsync: Ref<boolean, boolean>;
|
|
22
|
+
get_async_role_id: (val: string) => void;
|
|
23
|
+
async_role_id: Ref<string, string>;
|
|
24
|
+
onSaveAsync: () => Promise<void> | undefined;
|
|
19
25
|
};
|
|
@@ -333,7 +333,7 @@ export declare function getMenuConfig({ role_id, menu_id, dict_json, data_json }
|
|
|
333
333
|
};
|
|
334
334
|
}>;
|
|
335
335
|
/** 保存权限数据 */
|
|
336
|
-
export declare function postSavePrminssion<T>(is_effect: 0 | 1): Promise<T>;
|
|
336
|
+
export declare function postSavePrminssion<T>(is_effect: 0 | 1, obj?: any): Promise<T>;
|
|
337
337
|
/** 获取菜单数据 */
|
|
338
338
|
export declare function getMenuList(): Promise<void>;
|
|
339
339
|
/** 获取门店列表 */
|
|
@@ -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-DsU7ot7Y.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-CYOP_UWf.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 { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
2
|
import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-DOiOwYLl.mjs";
|
|
3
|
-
import { _ as _export_sfc, aa as systemStore, e as ElMessage, ad as useFileController } from "./index-
|
|
3
|
+
import { _ as _export_sfc, aa as systemStore, e as ElMessage, ad as useFileController } from "./index-C0btjX4H.mjs";
|
|
4
4
|
const _sfc_main$1 = {
|
|
5
5
|
data: function() {
|
|
6
6
|
return {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CYOP_UWf.js"),o=["title"],n={class:"layout-navbars-breadcrumb-user-link"},r=["src"],l=e.defineComponent({name:"layoutBreadcrumbUser"}),a=e.defineComponent({...l,setup(l){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-CuJ8iPEC.js"))))),s=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-DbYyE5Xh.js"))))),i=t.useLoginController(),c=e.ref(),u=e.ref(),d=t.useRouter(),m=t.useUserInfo(),f=t.useThemeConfig(),{userInfos:p}=t.storeToRefs(m),{themeConfig:C}=t.storeToRefs(f),v=e.ref(),g=e.reactive({isScreenfull:!1,disabledSize:"large"}),h=e.computed((()=>{let e="";const{layout:t,isClassicSplitMenu:o}=C.value;return e=["defaults","columns"].includes(t)||"classic"===t&&!o?"1":"",e})),w=()=>{if(!t.screenfull.isEnabled)return t.ElMessage.warning("暂不不支持全屏"),!1;t.screenfull.toggle(),t.screenfull.on("change",(()=>{t.screenfull.isFullscreen?g.isScreenfull=!0:g.isScreenfull=!1}))},b=()=>{var t,o;null==(o=null==(t=e.unref(c).popperRef)?void 0:t.delayHide)||o.call(t)},N=()=>{t.mittBus.emit("openSetingsDrawer")},y=e=>{"logOut"===e?t.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,t,o)=>{"confirm"===e?(t.confirmButtonLoading=!0,t.confirmButtonText="退出中",i.postAjaxLogout().then((()=>{o()})).finally((()=>{t.confirmButtonLoading=!1}))):o()}}).then((()=>{m.logout()})).catch((()=>{})):"cleanCanche"===e?t.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):d.push(e)},x=()=>{v.value.openSearch()};return e.onMounted((async()=>{await t.systemStore.get("themeConfig")&&await(async(e,o)=>{g[o]=await t.systemStore.get("themeConfig").then((o=>t._.get(o,e,"large")))})("globalComponentSize","disabledSize")})),(l,i)=>{const d=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),f=e.resolveComponent("ele-Bell"),C=e.resolveComponent("el-badge"),V=e.resolveComponent("el-popover"),_=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:h.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:x},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(d)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:N},i[0]||(i[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:u},[e.createVNode(C,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(f)])),_:1})])),_:1})])),[[e.unref(t.ClickOutside),b]]),e.createVNode(V,{ref_key:"userNewsRef",ref:c,"virtual-ref":u.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx((()=>[e.createVNode(e.unref(a))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:w},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",g.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:g.isScreenfull?"关全屏":"开全屏"},null,10,o)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx((()=>[e.createVNode(k,null,{default:e.withCtx((()=>[e.createVNode(S,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>i[1]||(i[1]=[e.createTextVNode("清除缓存")]))),_:1,__:[1]}),e.createVNode(S,{divided:"",command:"logOut"},{default:e.withCtx((()=>i[2]||(i[2]=[e.createTextVNode("退出登录")]))),_:1,__:[2]})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",n,[e.createElementVNode("img",{src:e.unref(p).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,r),e.createTextVNode(" "+e.toDisplayString(""===e.unref(p).name?"common":e.unref(p).name)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(_)])),_:1})])])),_:1}),e.createVNode(e.unref(s),{ref_key:"searchRef",ref:v},null,512)],4)}}}),s=t._export_sfc(a,[["__scopeId","data-v-e3d6c416"]]);exports.default=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, withCtx, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a as useRouter, V as useUserInfo, c as useThemeConfig, s as storeToRefs, aa as systemStore, aj as ClickOutside, ak as screenfull, e as ElMessage, m as mittBus, E as ElMessageBox, X as useLoginController, al as clearAllIndexDB, f as _, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as useRouter, V as useUserInfo, c as useThemeConfig, s as storeToRefs, aa as systemStore, aj as ClickOutside, ak as screenfull, e as ElMessage, m as mittBus, E as ElMessageBox, X as useLoginController, al as clearAllIndexDB, f as _, _ as _export_sfc } from "./index-C0btjX4H.mjs";
|
|
3
3
|
const _hoisted_1 = ["title"];
|
|
4
4
|
const _hoisted_2 = { class: "layout-navbars-breadcrumb-user-link" };
|
|
5
5
|
const _hoisted_3 = ["src"];
|
|
@@ -9,8 +9,8 @@ const __default__ = defineComponent({
|
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
...__default__,
|
|
11
11
|
setup(__props) {
|
|
12
|
-
const UserNews = defineAsyncComponent(() => import("./userNews-
|
|
13
|
-
const Search = defineAsyncComponent(() => import("./search-
|
|
12
|
+
const UserNews = defineAsyncComponent(() => import("./userNews-DSHZv1yP.mjs"));
|
|
13
|
+
const Search = defineAsyncComponent(() => import("./search-CWSSQqmj.mjs"));
|
|
14
14
|
const login = useLoginController();
|
|
15
15
|
const userNewsRef = ref();
|
|
16
16
|
const userNewsBadgeRef = ref();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CYOP_UWf.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,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-C0btjX4H.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("./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-BEKotBAm.js");exports.default=e._sfc_main;
|