hs-admin-ui 2.2.5 → 2.2.6
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-CfLM6WH7.js → 401-BQkCwiDT.js} +1 -1
- package/dist/401-BQkCwiDT.js.gz +0 -0
- package/dist/{401-Cun3MTXC.mjs → 401-EoSOPY0w.mjs} +1 -1
- package/dist/401-EoSOPY0w.mjs.gz +0 -0
- package/dist/{404-CcoeOHeS.js → 404-BalYIbY9.js} +1 -1
- package/dist/{404-CcoeOHeS.js.gz → 404-BalYIbY9.js.gz} +0 -0
- package/dist/{404-k4KphiRR.mjs → 404-CXF6KaTo.mjs} +1 -1
- package/dist/{404-k4KphiRR.mjs.gz → 404-CXF6KaTo.mjs.gz} +0 -0
- package/dist/{account-1PKxeK_7.js → account-DziMt44k.js} +1 -1
- package/dist/account-DziMt44k.js.gz +0 -0
- package/dist/{account-CzH5PDaz.mjs → account-KXjGsPya.mjs} +2 -2
- package/dist/account-KXjGsPya.mjs.gz +0 -0
- package/dist/{aside-I_lJ7rju.mjs → aside-DY6c_3kv.mjs} +2 -2
- package/dist/aside-DY6c_3kv.mjs.gz +0 -0
- package/dist/{aside-D7Vr6O0Z.js → aside-VpImXZfT.js} +1 -1
- package/dist/aside-VpImXZfT.js.gz +0 -0
- package/dist/{btnIndex-Bz8myWJK.js → btnIndex-BqiUtbGT.js} +1 -1
- package/dist/btnIndex-BqiUtbGT.js.gz +0 -0
- package/dist/{btnIndex-CkxGoXkE.mjs → btnIndex-IxW3KzLN.mjs} +2 -2
- package/dist/btnIndex-IxW3KzLN.mjs.gz +0 -0
- package/dist/{classic-CrWjP_IM.js → classic-6gEsV8Br.js} +1 -1
- package/dist/classic-6gEsV8Br.js.gz +0 -0
- package/dist/{classic-CEPuUa2H.mjs → classic-DTzpdqzP.mjs} +2 -2
- package/dist/classic-DTzpdqzP.mjs.gz +0 -0
- package/dist/{columns-DEYDMw1w.mjs → columns-D3drpNz6.mjs} +2 -2
- package/dist/columns-D3drpNz6.mjs.gz +0 -0
- package/dist/{columns-B1vdVSAM.js → columns-mkMPEawy.js} +1 -1
- package/dist/columns-mkMPEawy.js.gz +0 -0
- package/dist/{columnsAside-CjoEPwUK.mjs → columnsAside-DikhAXPL.mjs} +1 -1
- package/dist/columnsAside-DikhAXPL.mjs.gz +0 -0
- package/dist/{columnsAside-JPXV7D9u.js → columnsAside-OM9Em2_n.js} +1 -1
- package/dist/columnsAside-OM9Em2_n.js.gz +0 -0
- package/dist/{contextmenu-BXgo7Ntb.js → contextmenu-BhiA5FiJ.js} +1 -1
- package/dist/contextmenu-BhiA5FiJ.js.gz +0 -0
- package/dist/{contextmenu-BCX56_aI.mjs → contextmenu-CpBYllww.mjs} +1 -1
- package/dist/contextmenu-CpBYllww.mjs.gz +0 -0
- package/dist/{contextmenu-BAtlpgER.mjs → contextmenu-DHCYJhXg.mjs} +1 -1
- package/dist/contextmenu-DHCYJhXg.mjs.gz +0 -0
- package/dist/{contextmenu-B2n5Dtdz.js → contextmenu-DOL67P3E.js} +1 -1
- package/dist/contextmenu-DOL67P3E.js.gz +0 -0
- package/dist/{defaults-CEzunuUI.js → defaults-Ci6dpWcr.js} +1 -1
- package/dist/defaults-Ci6dpWcr.js.gz +0 -0
- package/dist/{defaults-C8laL7Ou.mjs → defaults-t3Pi8rFu.mjs} +2 -2
- package/dist/defaults-t3Pi8rFu.mjs.gz +0 -0
- package/dist/{dialog-D30oaEGV.mjs → dialog-BKwL0bnP.mjs} +1 -1
- package/dist/{dialog-C9HUqHYx.js → dialog-B_OYrVUF.js} +1 -1
- package/dist/{dialog-Bbn6o44u.mjs → dialog-BgUWWAag.mjs} +1 -1
- package/dist/{dialog-B4Bwkm8E.js → dialog-D0ZBIjkV.js} +1 -1
- package/dist/{dialog-B9SRMPgQ.mjs → dialog-DtsICLvL.mjs} +1 -1
- package/dist/{dialog-Cce1OIMj.js → dialog-fRzNnDyV.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CbiBkPfd.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DjYxBtbG.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DjYxBtbG.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-QlrMQfpU.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DkuILsXS.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DkuILsXS.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0sWHm4I.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cp3MlHm3.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cp3MlHm3.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D6N8a_LH.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-P7gr44Is.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-P7gr44Is.js.gz +0 -0
- package/dist/{dictDialog-D7pazvEQ.js → dictDialog-DaFobGru.js} +1 -1
- package/dist/{dictDialog-CgDPhdER.mjs → dictDialog-OFivklbB.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BlxkwR_A.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-3eu1eEhb.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-3eu1eEhb.js.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B89gie0N.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CFSXTL_z.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CFSXTL_z.mjs.gz +0 -0
- package/dist/{dictItemDialog-Dcx18sd_.js → dictItemDialog-DfKg4JXY.js} +1 -1
- package/dist/{dictItemDialog-Dx6anC5B.mjs → dictItemDialog-pHT-FLOW.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-1d7vIJM1.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-B76NGw5H.mjs} +2 -2
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-B76NGw5H.mjs.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CaxwkLoY.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-COyr0jFF.js} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-COyr0jFF.js.gz +0 -0
- package/dist/{formConfig-GV4uhMCL.js → formConfig-CwleJ_PR.js} +1 -1
- package/dist/formConfig-CwleJ_PR.js.gz +0 -0
- package/dist/{formConfig-DYAYQGak.mjs → formConfig-M__6tDSy.mjs} +4 -4
- package/dist/formConfig-M__6tDSy.mjs.gz +0 -0
- package/dist/{header-C1S7MySl.js → header-Bb0o5SMC.js} +1 -1
- package/dist/{header-DX7DURZX.mjs → header-BqGjBUBJ.mjs} +2 -2
- package/dist/{horizontal-C6R4ZlIa.js → horizontal-Csg7wdEe.js} +1 -1
- package/dist/horizontal-Csg7wdEe.js.gz +0 -0
- package/dist/{horizontal-v-bXaMzq.mjs → horizontal-D_E0WSjw.mjs} +2 -2
- package/dist/horizontal-D_E0WSjw.mjs.gz +0 -0
- package/dist/{hsAttrBtn-CcHqAUON.js → hsAttrBtn-CqyyWoZ3.js} +1 -1
- package/dist/{hsAttrBtn-DrVvi1sX.mjs → hsAttrBtn-DpXZDIWC.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Dwn3Hp7r.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BkrtMLL2.mjs} +2 -2
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BkrtMLL2.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CUTGBLIe.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CZMvZcVv.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CZMvZcVv.js.gz +0 -0
- package/dist/{hsAttrForm-B3fjZ9EY.js → hsAttrForm-DwDkERBp.js} +1 -1
- package/dist/{hsAttrForm-CFVMqhQQ.mjs → hsAttrForm-EQ-e4qaJ.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CFVqs0sf.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CsuJA2yY.mjs} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CsuJA2yY.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Cnsq-Cds.js → hsAttrForm.vue_vue_type_script_setup_true_lang-DQEhbskE.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DQEhbskE.js.gz +0 -0
- package/dist/{hsBtnConfigList-Bucyq_Zm.mjs → hsBtnConfigList-BHnr0X0w.mjs} +1 -1
- package/dist/hsBtnConfigList-BHnr0X0w.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-CsCYFm4N.js → hsBtnConfigList-DwvJ0IUZ.js} +1 -1
- package/dist/hsBtnConfigList-DwvJ0IUZ.js.gz +0 -0
- package/dist/{hsBtnItemConfig-Drf6oJTj.mjs → hsBtnItemConfig-ClbTBQ3y.mjs} +1 -1
- package/dist/{hsBtnItemConfig-DcIU6wwA.js → hsBtnItemConfig-Dty3qeLd.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B_hhkoY4.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B0B5HCa7.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B0B5HCa7.js.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C4_lQVed.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-g_bw3ZTi.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-g_bw3ZTi.mjs.gz +0 -0
- package/dist/{hsBtnPanel-Go96-KhU.js → hsBtnPanel-B7NjFfdx.js} +1 -1
- package/dist/{hsBtnPanel-D3wIUFwc.mjs → hsBtnPanel-G3Hya_XK.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bc-7XPLf.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Ck54rs00.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Ck54rs00.js.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CwjW8ydY.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-SMN6uhVX.mjs} +3 -3
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-SMN6uhVX.mjs.gz +0 -0
- package/dist/{hsFormConfig-MelVfyHT.js → hsFormConfig-BNg2bQah.js} +1 -1
- package/dist/hsFormConfig-BNg2bQah.js.gz +0 -0
- package/dist/{hsFormConfig-B99s9AUh.mjs → hsFormConfig-DDnwFdLv.mjs} +1 -1
- package/dist/hsFormConfig-DDnwFdLv.mjs.gz +0 -0
- package/dist/{hsFormConfigList-DUMEyT9a.js → hsFormConfigList-B2jZvLEI.js} +1 -1
- package/dist/hsFormConfigList-B2jZvLEI.js.gz +0 -0
- package/dist/{hsFormConfigList-BsZrc70G.mjs → hsFormConfigList-CasXQJw6.mjs} +2 -2
- package/dist/hsFormConfigList-CasXQJw6.mjs.gz +0 -0
- package/dist/{hsFormPanel-qrS_oa01.mjs → hsFormPanel-Cboa3FRQ.mjs} +1 -1
- package/dist/{hsFormPanel-ubBOd8Ji.js → hsFormPanel-t1a0UZWP.js} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DzihTz51.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CQurxQhy.mjs} +4 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CQurxQhy.mjs.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_zebMFQ.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-sAwPFoYx.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-sAwPFoYx.js.gz +0 -0
- package/dist/{hsFormParse-BqvuR4h_.js → hsFormParse-Bn2a82lg.js} +1 -1
- package/dist/{hsFormParse-B0CoTODY.mjs → hsFormParse-jNrJZks3.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DQUP3s9d.js → hsFormParse.vue_vue_type_script_setup_true_lang-BrdsuL4_.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BrdsuL4_.js.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BaHwwUyQ.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-bb2C8UQY.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-bb2C8UQY.mjs.gz +0 -0
- package/dist/{hsPageTree-Bd3avbkB.js → hsPageTree-CkoB_OG5.js} +1 -1
- package/dist/hsPageTree-CkoB_OG5.js.gz +0 -0
- package/dist/{hsPageTree-CukJJJXK.mjs → hsPageTree-OZebV1Bf.mjs} +1 -1
- package/dist/hsPageTree-OZebV1Bf.mjs.gz +0 -0
- package/dist/{hsPanelItem-noIY66Yx.js → hsPanelItem-CHtU79jK.js} +1 -1
- package/dist/{hsPanelItem-ugmQSOUM.mjs → hsPanelItem-h342QC9u.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BSHigBuz.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DEj4F8MC.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DEj4F8MC.js.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bs4FCVqU.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DXrq5zZ0.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DXrq5zZ0.mjs.gz +0 -0
- package/dist/{iframes-DdCTj3CZ.js → iframes-C5bGyZIY.js} +1 -1
- package/dist/iframes-C5bGyZIY.js.gz +0 -0
- package/dist/{iframes-DmBFeSjH.mjs → iframes-CF7U4EJt.mjs} +1 -1
- package/dist/iframes-CF7U4EJt.mjs.gz +0 -0
- package/dist/{index-BMQ796Bz.mjs → index-6tFnzp-4.mjs} +1 -1
- package/dist/{index-DoqS5e29.mjs → index-B2tpHsp8.mjs} +1 -1
- package/dist/index-B2tpHsp8.mjs.gz +0 -0
- package/dist/{index-BbJ8MHko.js → index-B7L9j2pn.js} +1 -1
- package/dist/{index-DyBgVeb1.mjs → index-BD5kFEis.mjs} +3 -3
- package/dist/index-BD5kFEis.mjs.gz +0 -0
- package/dist/{index-Bc-fRdhv.mjs → index-BOhqYdnc.mjs} +2 -2
- package/dist/index-BOhqYdnc.mjs.gz +0 -0
- package/dist/{index-oU_C63v3.mjs → index-BPfpDaLh.mjs} +1 -1
- package/dist/index-BPfpDaLh.mjs.gz +0 -0
- package/dist/{index-DWnPzWFZ.js → index-BalqrMrE.js} +1 -1
- package/dist/{index-B4-Ke0GZ.js → index-BddtzlFu.js} +1 -1
- package/dist/index-BddtzlFu.js.gz +0 -0
- package/dist/{index-FfI4H9wJ.mjs → index-BjyTK6qZ.mjs} +1 -1
- package/dist/index-BjyTK6qZ.mjs.gz +0 -0
- package/dist/{index-7lQEvbtn.js → index-Bn_sbGlP.js} +1 -1
- package/dist/index-Bn_sbGlP.js.gz +0 -0
- package/dist/{index-Bp_MAzQk.mjs → index-BqOkw6Sg.mjs} +1 -1
- package/dist/index-BqOkw6Sg.mjs.gz +0 -0
- package/dist/{index-Cg_cfju4.mjs → index-BrDWNKXf.mjs} +1 -1
- package/dist/index-BrDWNKXf.mjs.gz +0 -0
- package/dist/{index-abnnx8nK.mjs → index-ByQkosHm.mjs} +1 -1
- package/dist/index-ByQkosHm.mjs.gz +0 -0
- package/dist/{index-DAyFp9x7.js → index-C1V0z7Dd.js} +1 -1
- package/dist/index-C1V0z7Dd.js.gz +0 -0
- package/dist/{index-ClnvgeEO.js → index-C5dRroTo.js} +45 -45
- package/dist/index-C5dRroTo.js.gz +0 -0
- package/dist/{index-D6vmvGn-.mjs → index-C6B0mTfn.mjs} +2 -2
- package/dist/index-C6B0mTfn.mjs.gz +0 -0
- package/dist/{index-CkTMcpu6.js → index-CCAfFq7E.js} +1 -1
- package/dist/index-CCAfFq7E.js.gz +0 -0
- package/dist/{index-D8mcSnpV.mjs → index-CIzl7Ij1.mjs} +2 -2
- package/dist/{index-CB7gW8Xu.js → index-COVsgHtK.js} +1 -1
- package/dist/index-COVsgHtK.js.gz +0 -0
- package/dist/{index-tVxVSJoS.mjs → index-CSFlVT14.mjs} +1 -1
- package/dist/index-CSFlVT14.mjs.gz +0 -0
- package/dist/{index-4r5ZB9cs.js → index-CVuuN7nB.js} +1 -1
- package/dist/index-CVuuN7nB.js.gz +0 -0
- package/dist/{index-C2I1yeVt.mjs → index-Cau8HO2v.mjs} +1 -1
- package/dist/index-Cau8HO2v.mjs.gz +0 -0
- package/dist/{index-CeHiLq3D.js → index-CcxpysXR.js} +1 -1
- package/dist/index-CcxpysXR.js.gz +0 -0
- package/dist/{index-5zXl58Tz.js → index-Cq4JcjCk.js} +1 -1
- package/dist/{index-CP8sAvTX.mjs → index-D3FR54N6.mjs} +1 -1
- package/dist/index-D3FR54N6.mjs.gz +0 -0
- package/dist/{index-BeYOwFxC.mjs → index-D91O3oC0.mjs} +1 -1
- package/dist/{index-C28bdj7T.mjs → index-DFJA84gr.mjs} +1 -1
- package/dist/index-DFJA84gr.mjs.gz +0 -0
- package/dist/{index-BrchYVm1.js → index-DGLesm0l.js} +1 -1
- package/dist/index-DGLesm0l.js.gz +0 -0
- package/dist/{index-Bs3TRy7q.js → index-DGrahfen.js} +1 -1
- package/dist/index-DGrahfen.js.gz +0 -0
- package/dist/{index-BpQ_DNWJ.mjs → index-DH2kEnSB.mjs} +1 -1
- package/dist/{index-Ggm533Ka.js → index-DHOX45sC.js} +1 -1
- package/dist/index-DHOX45sC.js.gz +0 -0
- package/dist/{index-BmYVvVkl.js → index-DNPe9f37.js} +1 -1
- package/dist/index-DNPe9f37.js.gz +0 -0
- package/dist/{index-kcU_YKQu.mjs → index-DQJCEGvW.mjs} +1 -1
- package/dist/index-DQJCEGvW.mjs.gz +0 -0
- package/dist/{index-BTaKPMar.js → index-DSt3PkwQ.js} +1 -1
- package/dist/index-DSt3PkwQ.js.gz +0 -0
- package/dist/{index-B_h8ZAne.mjs → index-DYLMR9GT.mjs} +3 -3
- package/dist/index-DYLMR9GT.mjs.gz +0 -0
- package/dist/{index-Cn419mF_.js → index-DcCaKSOW.js} +1 -1
- package/dist/{index-D-6XsX6z.mjs → index-Dg7yImVu.mjs} +4 -4
- package/dist/index-Dg7yImVu.mjs.gz +0 -0
- package/dist/{index-B-Eg6l8q.js → index-DmD4cmC8.js} +1 -1
- package/dist/index-DmD4cmC8.js.gz +0 -0
- package/dist/{index-XLrW70mj.js → index-Dmx_N0rK.js} +1 -1
- package/dist/{index-BR2px8jA.js → index-Dp2gckJV.js} +1 -1
- package/dist/{index-_Gj9NSRv.js → index-DpM8DtSR.js} +1 -1
- package/dist/index-DpM8DtSR.js.gz +0 -0
- package/dist/{index-Bk_Bibrm.mjs → index-DrBLgoiD.mjs} +2 -2
- package/dist/index-DrBLgoiD.mjs.gz +0 -0
- package/dist/{index-C0bhinuI.mjs → index-DxQGJF5-.mjs} +5 -5
- package/dist/index-DxQGJF5-.mjs.gz +0 -0
- package/dist/{index-B2PwQC_6.js → index-KuTewsCP.js} +1 -1
- package/dist/index-KuTewsCP.js.gz +0 -0
- package/dist/{index-CpRNYfzm.mjs → index-OmoJeFDX.mjs} +1434 -1439
- package/dist/index-OmoJeFDX.mjs.gz +0 -0
- package/dist/{index-CaO9lSwL.js → index-SPj7AN1n.js} +1 -1
- package/dist/index-SPj7AN1n.js.gz +0 -0
- package/dist/{index-D32cpocj.js → index-SzgLSMLO.js} +1 -1
- package/dist/index-SzgLSMLO.js.gz +0 -0
- package/dist/{index-7df-WHv-.mjs → index-VMiNckXc.mjs} +1 -1
- package/dist/index-VMiNckXc.mjs.gz +0 -0
- package/dist/{index-Ca7FHcOS.js → index-_9M-RrQH.js} +1 -1
- package/dist/index-_9M-RrQH.js.gz +0 -0
- package/dist/{index-DTVpsLDR.js → index-dn6AMeOH.js} +1 -1
- package/dist/index-dn6AMeOH.js.gz +0 -0
- package/dist/{index-CqRKfMTy.js → index-g1VfDDLH.js} +1 -1
- package/dist/index-g1VfDDLH.js.gz +0 -0
- package/dist/{index-CkrArmN8.mjs → index-h2fKrYZX.mjs} +2 -2
- package/dist/index-h2fKrYZX.mjs.gz +0 -0
- package/dist/{index-f5o8xtGh.mjs → index-lK7COyOT.mjs} +2 -2
- package/dist/index-lK7COyOT.mjs.gz +0 -0
- package/dist/{index-lxJ1cNRS.mjs → index-oEWdDrOv.mjs} +1 -1
- package/dist/index-pUUDRapl.mjs +4 -0
- package/dist/{index-BfPtsfHa.js → index-qRJTaXUl.js} +1 -1
- package/dist/index-qRJTaXUl.js.gz +0 -0
- package/dist/{index-VSLUGQxl.mjs → index-rKqKMNNE.mjs} +4 -4
- package/dist/index-rKqKMNNE.mjs.gz +0 -0
- package/dist/{index-BHYn3GNI.js → index-y1ZmmjMQ.js} +1 -1
- package/dist/index-y1ZmmjMQ.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{link-Bv_x1AKN.mjs → link-CNwTOt09.mjs} +1 -1
- package/dist/link-CNwTOt09.mjs.gz +0 -0
- package/dist/{link-DzkebwLL.js → link-D2VPKFkk.js} +1 -1
- package/dist/link-D2VPKFkk.js.gz +0 -0
- package/dist/{list-D0UnSYKO.js → list-DHGoPAb2.js} +1 -1
- package/dist/list-DHGoPAb2.js.gz +0 -0
- package/dist/{list-KhVO8dzs.mjs → list-a4vw4qOx.mjs} +1 -1
- package/dist/list-a4vw4qOx.mjs.gz +0 -0
- package/dist/{main-CwaYXsxr.mjs → main-B2yf5IiD.mjs} +2 -2
- package/dist/main-B2yf5IiD.mjs.gz +0 -0
- package/dist/{main-B9VfO0jk.js → main-IrCYxt-e.js} +1 -1
- package/dist/main-IrCYxt-e.js.gz +0 -0
- package/dist/{mobile-Crei2DTB.js → mobile-PQXZk0Tk.js} +1 -1
- package/dist/mobile-PQXZk0Tk.js.gz +0 -0
- package/dist/{mobile-2aWhavNq.mjs → mobile-t5nQU7AD.mjs} +1 -1
- package/dist/mobile-t5nQU7AD.mjs.gz +0 -0
- package/dist/{parent-DH1s2n47.js → parent-BnrTHhTW.js} +1 -1
- package/dist/parent-BnrTHhTW.js.gz +0 -0
- package/dist/{parent-Cg59yp07.mjs → parent-CXuxlQ92.mjs} +2 -2
- package/dist/parent-CXuxlQ92.mjs.gz +0 -0
- package/dist/{roleItem-D-pAtSXp.mjs → roleItem-DPOPcQkg.mjs} +1 -1
- package/dist/roleItem-DPOPcQkg.mjs.gz +0 -0
- package/dist/{roleItem-BOoRFMFo.js → roleItem-JdzDCtoE.js} +1 -1
- package/dist/roleItem-JdzDCtoE.js.gz +0 -0
- package/dist/{saveForm-CKkLZn_B.js → saveForm-CIKGQEU8.js} +1 -1
- package/dist/{saveForm-CpIfLmao.mjs → saveForm-DegaIdsR.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-Bpd5xQmS.mjs → saveForm.vue_vue_type_script_setup_true_lang-CESs_kYo.mjs} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CESs_kYo.mjs.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-DZAogwze.js → saveForm.vue_vue_type_script_setup_true_lang-D_7xw_ku.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-D_7xw_ku.js.gz +0 -0
- package/dist/{scan-BJMwvPxz.js → scan-C4aNPHYY.js} +1 -1
- package/dist/{scan-BJMwvPxz.js.gz → scan-C4aNPHYY.js.gz} +0 -0
- package/dist/{scan-BVW4DEBH.mjs → scan-DtNExPhq.mjs} +1 -1
- package/dist/scan-DtNExPhq.mjs.gz +0 -0
- package/dist/{search-CQukpHG-.js → search-BjBJF4k0.js} +1 -1
- package/dist/search-BjBJF4k0.js.gz +0 -0
- package/dist/{search-BawcZysI.mjs → search-DYxioECp.mjs} +1 -1
- package/dist/search-DYxioECp.mjs.gz +0 -0
- package/dist/{selectConfig-C7LKozOt.js → selectConfig-C1LKHSiU.js} +1 -1
- package/dist/selectConfig-C1LKHSiU.js.gz +0 -0
- package/dist/{selectConfig-CpE8-QH0.mjs → selectConfig-Dns_5muY.mjs} +1 -1
- package/dist/selectConfig-Dns_5muY.mjs.gz +0 -0
- package/dist/{subItem-uYDkbaBf.mjs → subItem-BoF8qadq.mjs} +1 -1
- package/dist/subItem-BoF8qadq.mjs.gz +0 -0
- package/dist/{subItem-n2jMxXzu.js → subItem-D1jZ8mVO.js} +1 -1
- package/dist/subItem-D1jZ8mVO.js.gz +0 -0
- package/dist/{tagsView-D1d3UZjX.mjs → tagsView-89itYCcR.mjs} +2 -2
- package/dist/tagsView-89itYCcR.mjs.gz +0 -0
- package/dist/{tagsView-kJhVQGsa.js → tagsView-CIxpFo5F.js} +2 -2
- package/dist/tagsView-CIxpFo5F.js.gz +0 -0
- package/dist/{transverse-lKjZEZUy.js → transverse-Dx4ppRXA.js} +1 -1
- package/dist/transverse-Dx4ppRXA.js.gz +0 -0
- package/dist/{transverse-Jsl3WSob.mjs → transverse-e3G1QG2r.mjs} +2 -2
- package/dist/transverse-e3G1QG2r.mjs.gz +0 -0
- package/dist/{uploadAvatar-3xaNZXaL.mjs → uploadAvatar-C2rd2L6T.mjs} +1 -1
- package/dist/uploadAvatar-C2rd2L6T.mjs.gz +0 -0
- package/dist/{uploadAvatar-D_bRrQz2.js → uploadAvatar-z9KiKXFI.js} +1 -1
- package/dist/uploadAvatar-z9KiKXFI.js.gz +0 -0
- package/dist/{user-DyldvBFs.js → user-D4_7s8e9.js} +1 -1
- package/dist/user-D4_7s8e9.js.gz +0 -0
- package/dist/{user-Sld4ApT8.mjs → user-cGRYXKgv.mjs} +3 -3
- package/dist/user-cGRYXKgv.mjs.gz +0 -0
- package/dist/{userNews-DAF39QiJ.js → userNews-CTgs5qW_.js} +1 -1
- package/dist/userNews-CTgs5qW_.js.gz +0 -0
- package/dist/{userNews-6B-dS4JZ.mjs → userNews-DmolFItK.mjs} +1 -1
- package/dist/userNews-DmolFItK.mjs.gz +0 -0
- package/dist/{userSelect-1L0jumew.mjs → userSelect-B85vTRE1.mjs} +1 -1
- package/dist/{userSelect-BSwAgLBu.js → userSelect-BY2oxFIM.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-D7odMq1h.mjs → userSelect.vue_vue_type_script_setup_true_lang-BMERKpbq.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-BMERKpbq.mjs.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CEJctZOU.js → userSelect.vue_vue_type_script_setup_true_lang-CJoSXcKH.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CJoSXcKH.js.gz +0 -0
- package/dist/{vertical-V_0yOL1D.mjs → vertical-BY_N9XzH.mjs} +2 -2
- package/dist/vertical-BY_N9XzH.mjs.gz +0 -0
- package/dist/{vertical-BFgEEjC-.js → vertical-DUkQp3u8.js} +1 -1
- package/dist/vertical-DUkQp3u8.js.gz +0 -0
- package/package.json +1 -1
- package/dist/401-CfLM6WH7.js.gz +0 -0
- package/dist/401-Cun3MTXC.mjs.gz +0 -0
- package/dist/account-1PKxeK_7.js.gz +0 -0
- package/dist/account-CzH5PDaz.mjs.gz +0 -0
- package/dist/aside-D7Vr6O0Z.js.gz +0 -0
- package/dist/aside-I_lJ7rju.mjs.gz +0 -0
- package/dist/btnIndex-Bz8myWJK.js.gz +0 -0
- package/dist/btnIndex-CkxGoXkE.mjs.gz +0 -0
- package/dist/classic-CEPuUa2H.mjs.gz +0 -0
- package/dist/classic-CrWjP_IM.js.gz +0 -0
- package/dist/columns-B1vdVSAM.js.gz +0 -0
- package/dist/columns-DEYDMw1w.mjs.gz +0 -0
- package/dist/columnsAside-CjoEPwUK.mjs.gz +0 -0
- package/dist/columnsAside-JPXV7D9u.js.gz +0 -0
- package/dist/contextmenu-B2n5Dtdz.js.gz +0 -0
- package/dist/contextmenu-BAtlpgER.mjs.gz +0 -0
- package/dist/contextmenu-BCX56_aI.mjs.gz +0 -0
- package/dist/contextmenu-BXgo7Ntb.js.gz +0 -0
- package/dist/defaults-C8laL7Ou.mjs.gz +0 -0
- package/dist/defaults-CEzunuUI.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CbiBkPfd.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-QlrMQfpU.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0sWHm4I.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D6N8a_LH.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B89gie0N.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BlxkwR_A.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-1d7vIJM1.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CaxwkLoY.js.gz +0 -0
- package/dist/formConfig-DYAYQGak.mjs.gz +0 -0
- package/dist/formConfig-GV4uhMCL.js.gz +0 -0
- package/dist/horizontal-C6R4ZlIa.js.gz +0 -0
- package/dist/horizontal-v-bXaMzq.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CUTGBLIe.js.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Dwn3Hp7r.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CFVqs0sf.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Cnsq-Cds.js.gz +0 -0
- package/dist/hsBtnConfigList-Bucyq_Zm.mjs.gz +0 -0
- package/dist/hsBtnConfigList-CsCYFm4N.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B_hhkoY4.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C4_lQVed.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bc-7XPLf.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CwjW8ydY.mjs.gz +0 -0
- package/dist/hsFormConfig-B99s9AUh.mjs.gz +0 -0
- package/dist/hsFormConfig-MelVfyHT.js.gz +0 -0
- package/dist/hsFormConfigList-BsZrc70G.mjs.gz +0 -0
- package/dist/hsFormConfigList-DUMEyT9a.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_zebMFQ.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DzihTz51.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BaHwwUyQ.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DQUP3s9d.js.gz +0 -0
- package/dist/hsPageTree-Bd3avbkB.js.gz +0 -0
- package/dist/hsPageTree-CukJJJXK.mjs.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BSHigBuz.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bs4FCVqU.mjs.gz +0 -0
- package/dist/iframes-DdCTj3CZ.js.gz +0 -0
- package/dist/iframes-DmBFeSjH.mjs.gz +0 -0
- package/dist/index-4r5ZB9cs.js.gz +0 -0
- package/dist/index-7df-WHv-.mjs.gz +0 -0
- package/dist/index-7lQEvbtn.js.gz +0 -0
- package/dist/index-B-Eg6l8q.js.gz +0 -0
- package/dist/index-B2PwQC_6.js.gz +0 -0
- package/dist/index-B4-Ke0GZ.js.gz +0 -0
- package/dist/index-BHYn3GNI.js.gz +0 -0
- package/dist/index-BTCXQAP3.mjs +0 -4
- package/dist/index-BTaKPMar.js.gz +0 -0
- package/dist/index-B_h8ZAne.mjs.gz +0 -0
- package/dist/index-Bc-fRdhv.mjs.gz +0 -0
- package/dist/index-BfPtsfHa.js.gz +0 -0
- package/dist/index-Bk_Bibrm.mjs.gz +0 -0
- package/dist/index-BmYVvVkl.js.gz +0 -0
- package/dist/index-Bp_MAzQk.mjs.gz +0 -0
- package/dist/index-BrchYVm1.js.gz +0 -0
- package/dist/index-Bs3TRy7q.js.gz +0 -0
- package/dist/index-C0bhinuI.mjs.gz +0 -0
- package/dist/index-C28bdj7T.mjs.gz +0 -0
- package/dist/index-C2I1yeVt.mjs.gz +0 -0
- package/dist/index-CB7gW8Xu.js.gz +0 -0
- package/dist/index-CP8sAvTX.mjs.gz +0 -0
- package/dist/index-Ca7FHcOS.js.gz +0 -0
- package/dist/index-CaO9lSwL.js.gz +0 -0
- package/dist/index-CeHiLq3D.js.gz +0 -0
- package/dist/index-Cg_cfju4.mjs.gz +0 -0
- package/dist/index-CkTMcpu6.js.gz +0 -0
- package/dist/index-CkrArmN8.mjs.gz +0 -0
- package/dist/index-ClnvgeEO.js.gz +0 -0
- package/dist/index-CpRNYfzm.mjs.gz +0 -0
- package/dist/index-CqRKfMTy.js.gz +0 -0
- package/dist/index-D-6XsX6z.mjs.gz +0 -0
- package/dist/index-D32cpocj.js.gz +0 -0
- package/dist/index-D6vmvGn-.mjs.gz +0 -0
- package/dist/index-DAyFp9x7.js.gz +0 -0
- package/dist/index-DTVpsLDR.js.gz +0 -0
- package/dist/index-DoqS5e29.mjs.gz +0 -0
- package/dist/index-DyBgVeb1.mjs.gz +0 -0
- package/dist/index-FfI4H9wJ.mjs.gz +0 -0
- package/dist/index-Ggm533Ka.js.gz +0 -0
- package/dist/index-VSLUGQxl.mjs.gz +0 -0
- package/dist/index-_Gj9NSRv.js.gz +0 -0
- package/dist/index-abnnx8nK.mjs.gz +0 -0
- package/dist/index-f5o8xtGh.mjs.gz +0 -0
- package/dist/index-kcU_YKQu.mjs.gz +0 -0
- package/dist/index-oU_C63v3.mjs.gz +0 -0
- package/dist/index-tVxVSJoS.mjs.gz +0 -0
- package/dist/link-Bv_x1AKN.mjs.gz +0 -0
- package/dist/link-DzkebwLL.js.gz +0 -0
- package/dist/list-D0UnSYKO.js.gz +0 -0
- package/dist/list-KhVO8dzs.mjs.gz +0 -0
- package/dist/main-B9VfO0jk.js.gz +0 -0
- package/dist/main-CwaYXsxr.mjs.gz +0 -0
- package/dist/mobile-2aWhavNq.mjs.gz +0 -0
- package/dist/mobile-Crei2DTB.js.gz +0 -0
- package/dist/parent-Cg59yp07.mjs.gz +0 -0
- package/dist/parent-DH1s2n47.js.gz +0 -0
- package/dist/roleItem-BOoRFMFo.js.gz +0 -0
- package/dist/roleItem-D-pAtSXp.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Bpd5xQmS.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DZAogwze.js.gz +0 -0
- package/dist/scan-BVW4DEBH.mjs.gz +0 -0
- package/dist/search-BawcZysI.mjs.gz +0 -0
- package/dist/search-CQukpHG-.js.gz +0 -0
- package/dist/selectConfig-C7LKozOt.js.gz +0 -0
- package/dist/selectConfig-CpE8-QH0.mjs.gz +0 -0
- package/dist/subItem-n2jMxXzu.js.gz +0 -0
- package/dist/subItem-uYDkbaBf.mjs.gz +0 -0
- package/dist/tagsView-D1d3UZjX.mjs.gz +0 -0
- package/dist/tagsView-kJhVQGsa.js.gz +0 -0
- package/dist/transverse-Jsl3WSob.mjs.gz +0 -0
- package/dist/transverse-lKjZEZUy.js.gz +0 -0
- package/dist/uploadAvatar-3xaNZXaL.mjs.gz +0 -0
- package/dist/uploadAvatar-D_bRrQz2.js.gz +0 -0
- package/dist/user-DyldvBFs.js.gz +0 -0
- package/dist/user-Sld4ApT8.mjs.gz +0 -0
- package/dist/userNews-6B-dS4JZ.mjs.gz +0 -0
- package/dist/userNews-DAF39QiJ.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CEJctZOU.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-D7odMq1h.mjs.gz +0 -0
- package/dist/vertical-BFgEEjC-.js.gz +0 -0
- package/dist/vertical-V_0yOL1D.mjs.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-ClnvgeEO.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.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=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){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(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.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(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};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(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){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(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-C5dRroTo.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.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=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){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(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.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(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};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(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){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(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
2
2
|
<div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
|
|
3
3
|
<div style="width: ${e}px; height: ${t}px">
|
|
4
4
|
<img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-C5dRroTo.js"),I=require("./index-DcCaKSOW.js"),b=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=(()=>{if(typeof document>"u")return!1;const n=b[0],r={};for(const t of b)if((t==null?void 0:t[1])in document){for(const[a,f]of t.entries())r[n[a]]=f;return r}return!1})(),C={change:i.fullscreenchange,error:i.fullscreenerror};let s={request(n=document.documentElement,r){return new Promise((t,d)=>{const a=()=>{s.off("change",a),t()};s.on("change",a);const f=n[i.requestFullscreen](r);f instanceof Promise&&f.then(a).catch(d)})},exit(){return new Promise((n,r)=>{if(!s.isFullscreen){n();return}const t=()=>{s.off("change",t),n()};s.on("change",t);const d=document[i.exitFullscreen]();d instanceof Promise&&d.then(t).catch(r)})},toggle(n,r){return s.isFullscreen?s.exit():s.request(n,r)},onchange(n){s.on("change",n)},onerror(n){s.on("error",n)},on(n,r){const t=C[n];t&&document.addEventListener(t,r,!1)},off(n,r){const t=C[n];t&&document.removeEventListener(t,r,!1)},raw:i};Object.defineProperties(s,{isFullscreen:{get:()=>!!document[i.fullscreenElement]},element:{enumerable:!0,get:()=>document[i.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[i.fullscreenEnabled]}});i||(s={isEnabled:!1});const h=s,O=n=>(e.pushScopeId("data-v-62d7f9a6"),n=n(),e.popScopeId(),n),L=O(()=>e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)),D=[L],U=["title"],j={class:"layout-navbars-breadcrumb-user-link"},H=["src"],$=e.defineComponent({name:"layoutBreadcrumbUser"}),G=e.defineComponent({...$,setup(n){const r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./userNews-CTgs5qW_.js"))),t=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./search-BjBJF4k0.js"))),d=I.useLoginController(),a=e.ref(),f=e.ref(),v=l.useRouter(),g=l.useUserInfo(),S=l.useThemeConfig(),{userInfos:_}=l.storeToRefs(g),{themeConfig:E}=l.storeToRefs(S),w=e.ref(),p=e.reactive({isScreenfull:!1,disabledSize:"large"}),N=e.computed(()=>{let o="";const{layout:c,isClassicSplitMenu:u}=E.value;return["defaults","columns"].includes(c)||c==="classic"&&!u?o="1":o="",o}),k=()=>{if(!h.isEnabled)return l.ElMessage.warning("暂不不支持全屏"),!1;h.toggle(),h.on("change",()=>{h.isFullscreen?p.isScreenfull=!0:p.isScreenfull=!1})},x=()=>{var o,c;(c=(o=e.unref(a).popperRef)==null?void 0:o.delayHide)==null||c.call(o)},F=()=>{l.mittBus.emit("openSetingsDrawer")},y=o=>{o==="logOut"?l.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(c,u,m)=>{c==="confirm"?(u.confirmButtonLoading=!0,u.confirmButtonText="退出中",d.postAjaxLogout().then(()=>{m()}).finally(()=>{u.confirmButtonLoading=!1})):m()}}).then(()=>{g.logout()}).catch(()=>{}):o==="wareHouse"?window.open("https://www.baidu.com"):v.push(o)},V=()=>{w.value.openSearch()},B=async(o,c)=>{p[c]=await l.systemStore.get("themeConfig").then(u=>l._.get(u,o,"large"))};return e.onMounted(async()=>{await l.systemStore.get("themeConfig")&&await B("globalComponentSize","disabledSize")}),(o,c)=>{const u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),q=e.resolveComponent("ele-Bell"),z=e.resolveComponent("el-badge"),R=e.resolveComponent("el-popover"),M=e.resolveComponent("ele-ArrowDown"),P=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:N.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:F},D),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:f},[e.createVNode(z,{"is-dot":!0},{default:e.withCtx(()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx(()=>[e.createVNode(q)]),_:1})]),_:1})])),[[e.unref(l.ClickOutside),x]]),e.createVNode(R,{ref_key:"userNewsRef",ref:a,"virtual-ref":f.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:k},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",p.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:p.isScreenfull?"关全屏":"开全屏"},null,10,U)]),e.createVNode(A,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(P,{divided:"",command:"logOut"},{default:e.withCtx(()=>[e.createTextVNode("退出登录")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",j,[e.createElementVNode("img",{src:e.unref(_).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,H),e.createTextVNode(" "+e.toDisplayString(e.unref(_).userName===""?"common":e.unref(_).userName)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(M)]),_:1})])]),_:1}),e.createVNode(e.unref(t),{ref_key:"searchRef",ref:w},null,512)],4)}}}),J=l._export_sfc(G,[["__scopeId","data-v-62d7f9a6"]]);exports.default=J;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, defineAsyncComponent as k, ref as S, reactive as Q, computed as W, onMounted as X, resolveComponent as a, openBlock as F, createElementBlock as E, normalizeStyle as Y, createElementVNode as g, createVNode as l, withCtx as u, withDirectives as Z, unref as p, normalizeClass as ee, createTextVNode as y, toDisplayString as ne, pushScopeId as te, popScopeId as oe } from "vue";
|
|
2
|
-
import { a as le, y as se, c as re, s as x, L as B, R as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-
|
|
3
|
-
import { u as de } from "./index-
|
|
2
|
+
import { a as le, y as se, c as re, s as x, L as B, R as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-OmoJeFDX.mjs";
|
|
3
|
+
import { u as de } from "./index-DH2kEnSB.mjs";
|
|
4
4
|
const N = [
|
|
5
5
|
[
|
|
6
6
|
"requestFullscreen",
|
|
@@ -129,7 +129,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
129
129
|
}), Ce = /* @__PURE__ */ R({
|
|
130
130
|
...Se,
|
|
131
131
|
setup(e) {
|
|
132
|
-
const o = k(() => import("./userNews-
|
|
132
|
+
const o = k(() => import("./userNews-DmolFItK.mjs")), n = k(() => import("./search-DYxioECp.mjs")), m = de(), f = S(), d = S(), M = le(), C = se(), q = re(), { userInfos: w } = x(C), { themeConfig: P } = x(q), v = S(), h = Q({
|
|
133
133
|
isScreenfull: !1,
|
|
134
134
|
disabledSize: "large"
|
|
135
135
|
}), I = W(() => {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-C5dRroTo.js"),d=o=>(e.pushScopeId("data-v-8abed4d4"),o=o(),e.popScopeId(),o),r={class:"layout-navbars-breadcrumb-user-news"},m={class:"head-box"},p=d(()=>e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),_={class:"content-box"},u={class:"content-box-msg"},b={class:"content-box-time"},k=e.defineComponent({name:"layoutBreadcrumbUserNews"}),v=e.defineComponent({...k,setup(o){const t=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),c=()=>{t.newsList=[]},s=()=>{window.open("https://www.baidu.com")};return(w,y)=>{const l=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",m,[p,t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:c},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[t.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.newsList,(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:a},[e.createElementVNode("div",null,e.toDisplayString(n.label),1),e.createElementVNode("div",u,e.toDisplayString(n.value),1),e.createElementVNode("div",b,e.toDisplayString(n.time),1)]))),128)):(e.openBlock(),e.createBlock(l,{key:1,description:"暂无通知"}))]),t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:s},"前往通知中心")):e.createCommentVNode("",!0)])}}}),h=i._export_sfc(v,[["__scopeId","data-v-8abed4d4"]]);exports.default=h;
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as p, resolveComponent as u, openBlock as e, createElementBlock as s, createElementVNode as t, createCommentVNode as i, Fragment as b, renderList as h, toDisplayString as a, createBlock as v, pushScopeId as w, popScopeId as k } from "vue";
|
|
2
|
-
import { _ as x } from "./index-
|
|
2
|
+
import { _ as x } from "./index-OmoJeFDX.mjs";
|
|
3
3
|
const y = (n) => (w("data-v-8abed4d4"), n = n(), k(), n), f = { class: "layout-navbars-breadcrumb-user-news" }, C = { class: "head-box" }, L = /* @__PURE__ */ y(() => /* @__PURE__ */ t("div", { class: "head-box-title" }, "通知", -1)), g = { class: "content-box" }, B = { class: "content-box-msg" }, I = { class: "content-box-time" }, N = l({
|
|
4
4
|
name: "layoutBreadcrumbUserNews"
|
|
5
5
|
}), S = /* @__PURE__ */ l({
|
|
Binary file
|
|
@@ -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-CJoSXcKH.js");exports.default=e._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as d, onMounted as y, resolveComponent as s, openBlock as w, createElementBlock as g, createElementVNode as l, createVNode as o, withKeys as V, withCtx as m, createTextVNode as k } from "vue";
|
|
2
|
-
import { r as C } from "./index-
|
|
2
|
+
import { r as C } from "./index-OmoJeFDX.mjs";
|
|
3
3
|
const j = (t, n) => Object.assign(t, { other_log_info: { title: n } }), q = (t = {}) => (t = j(t, "获取全部用户列表"), C({
|
|
4
4
|
url: "/scmp-web/pri/user/list_all",
|
|
5
5
|
method: "get",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./index-C5dRroTo.js"),h=(o,n)=>Object.assign(o,{other_log_info:{title:n}}),v=(o={})=>(o=h(o,"获取全部用户列表"),f.request({url:"/scmp-web/pri/user/list_all",method:"get",params:o}));function V(){return{getListAll:v}}const b={class:"h-full flex flex-col"},x={class:"flex justify-between items-center"},w=e.createElementVNode("span",null,"* 双击选择",-1),y={class:"flex-1"},N={class:"flex justify-center items-center py-[5px]"},C=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(o,{emit:n}){const{getListAll:u}=V(),d=n,l=e.ref([]),c=async()=>{let a={qry_like_info:s.value};const t=await u(a);console.log(t),t.code===1&&(l.value=t.data)};e.onMounted(()=>{c()});const s=e.ref("");return(a,t)=>{const _=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),m=e.resolveComponent("el-table"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",x,[e.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=i=>s.value=i),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(c,["enter"])},null,8,["modelValue"]),w]),e.createElementVNode("div",y,[e.createVNode(m,{data:l.value,style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})]),_:1},8,["data"])]),e.createElementVNode("div",N,[e.createVNode(p,{size:"default",type:"default",class:"ml10",onClick:t[1]||(t[1]=i=>d("success","close"))},{default:e.withCtx(()=>[e.createTextVNode(" 取消 ")]),_:1})])])}}});exports._sfc_main=C;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, defineAsyncComponent as I, reactive as P, computed as _, onMounted as T, watch as W, resolveComponent as u, openBlock as s, createBlock as m, withCtx as o, createElementBlock as C, Fragment as k, renderList as q, createVNode as p, createElementVNode as d, toDisplayString as f, unref as v, createSlots as M, withModifiers as O } from "vue";
|
|
2
|
-
import { c as R, s as V, u as E, P as H, O as N } from "./index-
|
|
2
|
+
import { c as R, s as V, u as E, P as H, O as N } from "./index-OmoJeFDX.mjs";
|
|
3
3
|
const U = g({
|
|
4
4
|
name: "navMenuVertical"
|
|
5
5
|
}), z = /* @__PURE__ */ g({
|
|
@@ -12,7 +12,7 @@ const U = g({
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
setup(y) {
|
|
15
|
-
const L = I(() => import("./subItem-
|
|
15
|
+
const L = I(() => import("./subItem-BoF8qadq.mjs")), x = y, A = R(), { themeConfig: r } = V(A), l = E(), i = P({
|
|
16
16
|
defaultActive: l.meta.isDynamic ? l.meta.isDynamicPath : l.path,
|
|
17
17
|
isCollapse: !1
|
|
18
18
|
}), b = _(() => x.menuList), S = _(() => r.value), h = (n) => {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-C5dRroTo.js"),y=e.defineComponent({name:"navMenuVertical"}),x=e.defineComponent({...y,props:{menuList:{type:Array,default:()=>[]}},setup(m){const p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./subItem-D1jZ8mVO.js"))),d=m,h=l.useThemeConfig(),{themeConfig:r}=l.storeToRefs(h),c=l.useRoute(),i=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),f=e.computed(()=>d.menuList),C=e.computed(()=>r.value),u=o=>{const{path:s,meta:n}=o,a=n!=null&&n.isDynamic?n.isDynamicPath.split("/"):s.split("/");return a.length>=4&&(n!=null&&n.isHide)?a.splice(0,3).join("/"):s},_=o=>{l.other.handleOpenLink(o)};return e.onMounted(()=>{i.defaultActive=u(c)}),l.onBeforeRouteUpdate(o=>{i.defaultActive=u(o),document.body.clientWidth<1e3&&(r.value.isCollapse=!1)}),e.watch(()=>r.value.isCollapse,o=>{document.body.clientWidth<=1e3?i.isCollapse=!1:i.isCollapse=o},{immediate:!0}),(o,s)=>{const n=e.resolveComponent("SvgIcon"),a=e.resolveComponent("el-sub-menu"),k=e.resolveComponent("el-menu-item"),g=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(g,{router:"","default-active":i.defaultActive,"background-color":"transparent",collapse:i.isCollapse,"unique-opened":C.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(a,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(p),{chil:t.children},null,8,["chil"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(k,{index:t.path,key:t.path},e.createSlots({default:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"])]),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),key:"0"}:{name:"title",fn:e.withCtx(()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers(B=>_(t),["prevent"])},e.toDisplayString(t.meta.title),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=x;
|
|
Binary file
|
package/package.json
CHANGED
package/dist/401-CfLM6WH7.js.gz
DELETED
|
Binary file
|
package/dist/401-Cun3MTXC.mjs.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0sWHm4I.mjs.gz
DELETED
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D6N8a_LH.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-1d7vIJM1.mjs.gz
DELETED
|
Binary file
|
package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CaxwkLoY.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index-BTCXQAP3.mjs
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/link-DzkebwLL.js.gz
DELETED
|
Binary file
|
package/dist/list-D0UnSYKO.js.gz
DELETED
|
Binary file
|