hs-admin-ui 14.8.6 → 14.8.8
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-D1td89l8.mjs → 401-BPZIfjVA.mjs} +1 -1
- package/dist/{401-CuX7vsn8.js → 401-Nib2dTCO.js} +1 -1
- package/dist/{404-DsBrZ_Ok.js → 404-CWYOxTDp.js} +1 -1
- package/dist/{404-DsBrZ_Ok.js.gz → 404-CWYOxTDp.js.gz} +0 -0
- package/dist/{404-BwMYgrC3.mjs → 404-bcYaYZiI.mjs} +1 -1
- package/dist/404-bcYaYZiI.mjs.gz +0 -0
- package/dist/{account-Da4sN8zb.js → account-B25hH81c.js} +1 -1
- package/dist/{account-oIh2DGge.mjs → account-BMvzyA3H.mjs} +1 -1
- package/dist/{aside-CoY0Gt7N.mjs → aside-DASSfvKO.mjs} +3 -3
- package/dist/{aside-BUU2UoVd.js → aside-xeohTJ3z.js} +1 -1
- package/dist/{baseFormConfig-DY3fUxzh.mjs → baseFormConfig-CBhENloE.mjs} +1 -1
- package/dist/baseFormConfig-CBhENloE.mjs.gz +0 -0
- package/dist/{baseFormConfig-Dov4ydeE.js → baseFormConfig-XwLGdELP.js} +1 -1
- package/dist/{baseTableConfig-g0H7tyZI.js → baseTableConfig-BjjL3Wfl.js} +1 -1
- package/dist/baseTableConfig-BjjL3Wfl.js.gz +0 -0
- package/dist/{baseTableConfig-Cdz6fhyc.mjs → baseTableConfig-DltFsJcp.mjs} +1 -1
- package/dist/baseTableConfig-DltFsJcp.mjs.gz +0 -0
- package/dist/{bcFormConfig-DD6UMjJY.js → bcFormConfig-B40LKlNI.js} +1 -1
- package/dist/{bcFormConfig-Dv_QjbCJ.mjs → bcFormConfig-DdHidE_G.mjs} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Bg24uTG9.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang--l1Gsvdj.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-fKMVcCBg.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DaHHE9g-.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-B9A5WuIE.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-C4p8NZdP.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-niWuxmlc.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-k5Uz2s0Q.js} +1 -1
- package/dist/{btnIndex-DtbYlwLV.mjs → btnIndex-5sJ-C8Ng.mjs} +3 -3
- package/dist/btnIndex-5sJ-C8Ng.mjs.gz +0 -0
- package/dist/{btnIndex-DGEa1lQh.js → btnIndex-CX51BeX5.js} +1 -1
- package/dist/{classic-LL0tJXH0.js → classic-BscBXDho.js} +1 -1
- package/dist/{classic-BRIP4Fe8.mjs → classic-DZCLIQDf.mjs} +5 -5
- package/dist/{cloneConfigDialog-KJYwOEsH.js → cloneConfigDialog-BFbU6oGu.js} +1 -1
- package/dist/cloneConfigDialog-BFbU6oGu.js.gz +0 -0
- package/dist/{cloneConfigDialog-BkyrJ5KU.mjs → cloneConfigDialog-DQeRThfG.mjs} +3 -3
- package/dist/cloneConfigDialog-DQeRThfG.mjs.gz +0 -0
- package/dist/{columns-BZLD5Vnj.js → columns-C_AP4WdT.js} +1 -1
- package/dist/{columns-Bx0peyub.mjs → columns-lBxhliRQ.mjs} +5 -5
- package/dist/{columnsAside-CVCvnp2r.js → columnsAside-CF0ogMgg.js} +1 -1
- package/dist/{columnsAside-ClX_rQ2N.mjs → columnsAside-PAt7Mf4b.mjs} +1 -1
- package/dist/{contextmenu-B6IoWMfW.mjs → contextmenu-29KvdSj8.mjs} +1 -1
- package/dist/{contextmenu-DY8gtrjj.js → contextmenu-Bc3WhDAE.js} +1 -1
- package/dist/{contextmenu-CEC-Sk5-.js → contextmenu-DwO1l8he.js} +1 -1
- package/dist/{contextmenu-BuydRYGN.mjs → contextmenu-P3VbyLv1.mjs} +1 -1
- package/dist/{copyMenuConfig-DSrcss8I.js → copyMenuConfig-DEiprTr8.js} +1 -1
- package/dist/{copyMenuConfig-DQuGA_-4.mjs → copyMenuConfig-DgUPgjGC.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BwafIoe7.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-CKjwTLqY.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DChsCyOl.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-Ccj-ARGt.js} +1 -1
- package/dist/{copySystem-Dz_Kwzsu.mjs → copySystem-7D1VpKtW.mjs} +1 -1
- package/dist/{copySystem-Bsg7wBnD.js → copySystem-BUmJy7qC.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-CMzSkKJu.js → copySystem.vue_vue_type_script_setup_true_lang-B_gk2CMu.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BdQX16d8.mjs → copySystem.vue_vue_type_script_setup_true_lang-C-ToZstd.mjs} +2 -2
- package/dist/{defaults-CqJf3UXD.mjs → defaults-BV2Dgoar.mjs} +4 -4
- package/dist/{defaults-BVg2YDes.js → defaults-DwQ1krtC.js} +1 -1
- package/dist/{dialog-BU4qC9V9.js → dialog-BzQhwdwz.js} +1 -1
- package/dist/{dialog-BcAIA_X4.js → dialog-CoKEHJSI.js} +1 -1
- package/dist/{dialog-DJqIoqkL.js → dialog-DfkX16Dh.js} +1 -1
- package/dist/{dialog-BM76pzC6.mjs → dialog-UlG9Hxep.mjs} +1 -1
- package/dist/{dialog-CHhztAHu.mjs → dialog-VJFbbbj_.mjs} +1 -1
- package/dist/{dialog-Ig1Tgea2.mjs → dialog-nhyMoKTf.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DLA8xEWP.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CWxqrY-E.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-538hBC_v.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Duy7xJ-4.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D7w7EfkB.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C7CrbLWc.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C7CrbLWc.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-NSbXuhcC.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CLfxgpWa.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CLfxgpWa.mjs.gz +0 -0
- package/dist/{dictDialog-BZulz_JN.mjs → dictDialog-7SSZW_9X.mjs} +1 -1
- package/dist/{dictDialog-CmAZF3W0.js → dictDialog-BsCP2jxz.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cg7BORKb.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BwZ58J56.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CTIyqnty.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DPC5PrW7.js} +1 -1
- package/dist/{dictItemDialog-mFIgbngb.mjs → dictItemDialog-BS1jIQW_.mjs} +1 -1
- package/dist/{dictItemDialog-CU1NGcZi.js → dictItemDialog-CIkJNipS.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CCXKBHtm.js → dictItemDialog.vue_vue_type_script_setup_true_lang-CP2timMY.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-V2CExU8q.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-CcV9XWgF.mjs} +2 -2
- package/dist/{formConfig-VjsRkpdK.js → formConfig-By3SpPOf.js} +1 -1
- package/dist/formConfig-By3SpPOf.js.gz +0 -0
- package/dist/{formConfig-CD8zgo7v.mjs → formConfig-p5vGv6XL.mjs} +6 -6
- package/dist/formConfig-p5vGv6XL.mjs.gz +0 -0
- package/dist/{header-C7GraFrk.js → header-CC646X-N.js} +1 -1
- package/dist/{header-BrUG7_z3.mjs → header-DEB9GZ1I.mjs} +2 -2
- package/dist/{horizontal-B1ty0EPh.mjs → horizontal-C4YHCS3R.mjs} +2 -2
- package/dist/{horizontal-D-jjNep6.js → horizontal-pJDib05X.js} +1 -1
- package/dist/{hsAttrBtn-d5myQDQA.js → hsAttrBtn-BOwM8Pgw.js} +1 -1
- package/dist/{hsAttrBtn-CH0_M9mH.mjs → hsAttrBtn-D1N_5F3l.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-rm6W59ZK.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-BNIWzgLv.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-B6CK_NAw.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-CeK0OmwJ.mjs} +4 -4
- package/dist/{hsAttrForm-CfSoydYm.mjs → hsAttrForm-BnvqxGa_.mjs} +1 -1
- package/dist/{hsAttrForm-DBv6Yagt.js → hsAttrForm-DSpd8puF.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-C7Z-e80G.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-B8lD-t_-.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B8lD-t_-.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DpyPByGM.js → hsAttrForm.vue_vue_type_script_setup_true_lang-DIV9D4Lm.js} +1 -1
- package/dist/{hsBtnConfigList-TkUP0j40.js → hsBtnConfigList-CmPBfRw6.js} +1 -1
- package/dist/{hsBtnConfigList-B3fUylVV.mjs → hsBtnConfigList-Cs2SxEbR.mjs} +1 -1
- package/dist/{hsBtnItemConfig-ByUoBwGL.mjs → hsBtnItemConfig-CiAXnTqg.mjs} +1 -1
- package/dist/{hsBtnItemConfig-CRppcRxG.js → hsBtnItemConfig-VoO2AaP7.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-e_ki6NNr.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-6JfAuJsn.mjs} +3 -3
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-sROJXB29.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DeVKjfdU.js} +1 -1
- package/dist/{hsBtnPanel-DA2urfMd.js → hsBtnPanel-Du5rDsLU.js} +1 -1
- package/dist/{hsBtnPanel-Cxl5syFV.mjs → hsBtnPanel-DyLyd9P7.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BQwm0r6u.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D4t7JlLe.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Chd_tbrr.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-eZ3L1shl.js} +1 -1
- package/dist/{hsExpand-G713e6Xk.js → hsExpand-BNKldkJq.js} +1 -1
- package/dist/{hsExpand-Czp0RPyV.mjs → hsExpand-D5zPIfb4.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-gjYTE04t.js → hsExpand.vue_vue_type_script_setup_true_lang-Drc3_mh7.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-D2dNGWtl.mjs → hsExpand.vue_vue_type_script_setup_true_lang-q--Mjny-.mjs} +1 -1
- package/dist/{hsFormConfig-D7yfROQG.mjs → hsFormConfig-BPHjyXrZ.mjs} +1 -1
- package/dist/{hsFormConfig-CeoJ2rXP.js → hsFormConfig-BQzDLvSQ.js} +1 -1
- package/dist/{hsFormConfigList-CN-xH-RE.mjs → hsFormConfigList-CL-6-wTp.mjs} +2 -2
- package/dist/hsFormConfigList-CL-6-wTp.mjs.gz +0 -0
- package/dist/{hsFormConfigList-gh7i005B.js → hsFormConfigList-Cbx9NKJG.js} +1 -1
- package/dist/{hsFormPanel-hEAe35vw.mjs → hsFormPanel-CUHkGR6M.mjs} +6 -6
- package/dist/hsFormPanel-CUHkGR6M.mjs.gz +0 -0
- package/dist/{hsFormPanel-DQpwnzWr.js → hsFormPanel-QDOynF9P.js} +1 -1
- package/dist/{hsFormParse-7n3ENJ2d.js → hsFormParse-7xuqC-1P.js} +1 -1
- package/dist/{hsFormParse-azymr5q-.mjs → hsFormParse-DKn3dzAD.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-B449gULz.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-Bf2sGk7x.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-Bc_xOS1n.js → hsFormParse.vue_vue_type_script_setup_true_lang-CTpNjovd.js} +1 -1
- package/dist/{hsPanelItem-RAuHIBpE.js → hsPanelItem-B_D2UWE_.js} +1 -1
- package/dist/{hsPanelItem--tWyDAsR.mjs → hsPanelItem-BgYnx-lV.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CEiGbllJ.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BALa9fCL.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-C6ZBYJke.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CdpVMf1R.js} +1 -1
- package/dist/{index copy-Btrk1a6t.mjs → index copy-BcGiFbNn.mjs } +1 -1
- package/dist/{index copy-DJrnQtsK.js → index copy-Bdu70Nu9.js } +1 -1
- package/dist/{index copy-DNyHTPoI.mjs → index copy-C7mZmQqd.mjs } +1 -1
- package/dist/{index copy-Cx44asqM.js → index copy-DDxkyR-x.js } +1 -1
- package/dist/{index-DzM5mvPJ.js → index-9FHqzx6f.js} +1 -1
- package/dist/{index-BTgazJ24.js → index-B5KSxRc5.js} +1 -1
- package/dist/{index-CNjyqhoj.mjs → index-B68wLP2n.mjs} +2 -2
- package/dist/{index-Be9CA8_G.mjs → index-B6qFI0TY.mjs} +1 -1
- package/dist/{index-XDb9znfC.mjs → index-B7inFVRy.mjs} +3 -3
- package/dist/{index-DlE1JfMZ.js → index-B8X61AQp.js} +1 -1
- package/dist/{index-Dk_2l9u2.js → index-BAf831q5.js} +1 -1
- package/dist/{index-DYksu7pr.mjs → index-BNA8_2r3.mjs} +1 -1
- package/dist/{index-11GiTZlR.js → index-BPVAxaYN.js} +1 -1
- package/dist/{index-B38ObtZm.mjs → index-BQA60Jhg.mjs} +1 -1
- package/dist/{index-RHdgpMJP.mjs → index-BQkuzzet.mjs} +1 -1
- package/dist/{index-D0pV65jC.js → index-BQoroJXT.js} +1 -1
- package/dist/{index-BVxXCr2x.mjs → index-BRAU7TdR.mjs} +1 -1
- package/dist/{index-DxW0iwEL.js → index-BRn5bi1W.js} +1 -1
- package/dist/{index-DIp_7nj9.js → index-BUpj6QxR.js} +1 -1
- package/dist/{index-CBo0-sI3.js → index-BYYxeNK2.js} +1 -1
- package/dist/{index--URTJoHp.mjs → index-BkUVvnj3.mjs} +1 -1
- package/dist/{index-Bc2ljizi.mjs → index-BkUkj5od.mjs} +4 -4
- package/dist/index-BkUkj5od.mjs.gz +0 -0
- package/dist/{index-DdVRQsf9.mjs → index-BprauoIA.mjs} +4 -4
- package/dist/{index-sSmiQjbz.mjs → index-BsbO4Lda.mjs} +2 -2
- package/dist/index-BsbO4Lda.mjs.gz +0 -0
- package/dist/{index-CNvoJUfl.js → index-BsmbYl2Q.js} +1 -1
- package/dist/{index-CTWNqGZC.js → index-BtfxfPWZ.js} +1 -1
- package/dist/{index-9B2xkaeX.mjs → index-Bv4TmBE_.mjs} +168 -139
- package/dist/index-Bv4TmBE_.mjs.gz +0 -0
- package/dist/{index-CySLU9MA.js → index-BxEPPNBL.js} +1 -1
- package/dist/{index-BvqnfjAD.mjs → index-C3EI8ejA.mjs} +4 -4
- package/dist/{index-BBIJMhY-.mjs → index-C3qoUOly.mjs} +3 -3
- package/dist/{index-DPTftdSU.mjs → index-C6T0HQvE.mjs} +1 -1
- package/dist/{index-CNruJw8v.js → index-CDAfdp7s.js} +1 -1
- package/dist/{index-CK-ucgNU.mjs → index-CFUdMS_e.mjs} +1 -1
- package/dist/{index-jsUM0gfQ.js → index-CIa7Z6Ub.js} +1 -1
- package/dist/{index-CYrkVfqP.js → index-CL7cHTog.js} +1 -1
- package/dist/{index-D3zKc-5c.mjs → index-CLF_aR4C.mjs} +1 -1
- package/dist/{index-8-9nbyQV.js → index-CLWrPEuw.js} +1 -1
- package/dist/{index-Dy2AYqqn.mjs → index-CO0Fl0lR.mjs} +4 -4
- package/dist/{index-CLtnSN7R.js → index-CRx7QFI1.js} +1 -1
- package/dist/{index-HxDQaC3-.mjs → index-CSeDcq_d.mjs} +1 -1
- package/dist/index-CSeDcq_d.mjs.gz +0 -0
- package/dist/{index-D4WhlCaY.mjs → index-CSpwqHM_.mjs} +1 -1
- package/dist/{index-my8lckPc.mjs → index-CX0x0USU.mjs} +1 -1
- package/dist/{index-CwmwRAlo.js → index-CdhAW8Rm.js} +1 -1
- package/dist/index-CdhAW8Rm.js.gz +0 -0
- package/dist/{index-DHf8E-N9.js → index-CdlzFKHw.js} +1 -1
- package/dist/{index-C-_CkiM2.mjs → index-CfFDr29b.mjs} +1 -1
- package/dist/{index-FdQgzY2d.js → index-CfQ9IZRb.js} +1 -1
- package/dist/{index-BgKVNb6f.mjs → index-CfpMQCnb.mjs} +10 -10
- package/dist/index-CfpMQCnb.mjs.gz +0 -0
- package/dist/{index--0uqAKDm.mjs → index-Cg05MzGp.mjs} +1 -1
- package/dist/{index-CBbiBxQU.js → index-CiXM0gYy.js} +1 -1
- package/dist/index-CiXM0gYy.js.gz +0 -0
- package/dist/{index-B1upPxF7.js → index-Cjh_k31A.js} +1 -1
- package/dist/{index-WSjYm9Of.js → index-CkVAAjWQ.js} +1 -1
- package/dist/{index-C5xwm916.js → index-Cn4iKFPm.js} +1 -1
- package/dist/{index-6YPHpf0-.mjs → index-Cp0IxudX.mjs} +1 -1
- package/dist/{index-C_v7Uav_.mjs → index-CuDKEdYe.mjs} +4 -4
- package/dist/{index-BbsbByhf.js → index-D2I94a3I.js} +1 -1
- package/dist/{index-DUvq-aTt.mjs → index-D3NvS5Th.mjs} +1 -1
- package/dist/{index-uxX8LQC-.js → index-D6NtuDAM.js} +1 -1
- package/dist/index-D6NtuDAM.js.gz +0 -0
- package/dist/{index-DiUrf2gB.js → index-D7N5lu5a.js} +1 -1
- package/dist/{index-DUdQXOz1.js → index-D8P1WC_W.js} +1 -1
- package/dist/{index-B8ixMIRl.js → index-DBE7zhwC.js} +1 -1
- package/dist/{index-D1V3RVua.mjs → index-DLB_2Zvl.mjs} +4 -4
- package/dist/index-DLB_2Zvl.mjs.gz +0 -0
- package/dist/{index-D9o4biF1.js → index-DPWpPQqR.js} +1 -1
- package/dist/{index-CMjRfiCh.js → index-DQvYn2Cx.js} +9 -9
- package/dist/index-DQvYn2Cx.js.gz +0 -0
- package/dist/{index-CPMl-aMj.mjs → index-DYc6k1rC.mjs} +1 -1
- package/dist/{index-D8IW48Sq.mjs → index-D_ErJmvY.mjs} +1 -1
- package/dist/{index-BF9U9FKX.js → index-Dca8hu8p.js} +1 -1
- package/dist/{index-D7WafU7d.mjs → index-DsVMGEFL.mjs} +1 -1
- package/dist/{index-WoRFc14h.mjs → index-DuLm8vFn.mjs} +3 -3
- package/dist/{index-dgEC90it.mjs → index-InDHLvjP.mjs} +3 -3
- package/dist/{index-B6P_C2gA.mjs → index-Jyg98E7T.mjs} +1 -1
- package/dist/{index-CpcKe4EW.js → index-TS0H97o7.js} +1 -1
- package/dist/{index-CynO9Mbn.js → index-ZREgrnyP.js} +1 -1
- package/dist/{index-CnxGPKLq.js → index-aMSJNil3.js} +1 -1
- package/dist/{index-et5kvpOD.mjs → index-aUvjun_U.mjs} +1 -1
- package/dist/{index-CIkqekdg.js → index-bWBwOSZJ.js} +1 -1
- package/dist/{index-AFSnwP4L.mjs → index-ejoHmweN.mjs} +5 -5
- package/dist/{index-C158wwAm.mjs → index-fer_qVU0.mjs} +1 -1
- package/dist/{index-GM2MVzf_.js → index-q1jMGuOy.js} +1 -1
- package/dist/{index-BECGiH6n.js → index-rvNvCewn.js} +1 -1
- package/dist/{index-B3m-pkjb.mjs → index-zQmTVrhw.mjs} +5 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D8cuvHO_.mjs → index.vue_vue_type_script_setup_true_lang-BMN084nX.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-B3Yaox3e.mjs → index.vue_vue_type_script_setup_true_lang-BhUq2hMG.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-CzZ-nb4j.js → index.vue_vue_type_script_setup_true_lang-BlIDrWEB.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CQnh7701.js → index.vue_vue_type_script_setup_true_lang-CP1mxpoj.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DhK1Qi07.mjs → index.vue_vue_type_script_setup_true_lang-CXNVvreA.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DrAEgB88.js → index.vue_vue_type_script_setup_true_lang-C_T_yZTe.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-FiGEQSZc.js → index.vue_vue_type_script_setup_true_lang-DCTaX1CY.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbTXzqUL.mjs → index.vue_vue_type_script_setup_true_lang-b0EC0UjE.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-b0EC0UjE.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-BYga-Cgm.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-BVhfwI7P.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-DUbZsXWB.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-C-M_fjv5.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-C-M_fjv5.mjs.gz +0 -0
- package/dist/{link-DFnhssyN.js → link-BbbwTgaW.js} +1 -1
- package/dist/{link-ch9SMLTr.mjs → link-DnMC5rE9.mjs} +1 -1
- package/dist/{list-BLoLymtI.mjs → list-BQNseDo1.mjs} +1 -1
- package/dist/{list-Vn1h1SPb.js → list-DbaZvTmh.js} +1 -1
- package/dist/{main-GcVTZ22F.mjs → main-B3Ue541c.mjs} +3 -3
- package/dist/{main-DhN8Ws2S.js → main-DzMOMN_r.js} +1 -1
- package/dist/{mobile-BZdlIK6s.mjs → mobile-C9xpZn20.mjs} +1 -1
- package/dist/{mobile-BKCMwMiN.js → mobile-CwiRspCe.js} +1 -1
- package/dist/{parent-BQdKyRbJ.js → parent-D1GjJiqg.js} +1 -1
- package/dist/{parent-CEmDAInw.mjs → parent-buE9d--t.mjs} +1 -1
- package/dist/{popup-BPxlnPXq.js → popup-COwlDnyE.js} +1 -1
- package/dist/{popup-DwDSRmhf.mjs → popup-MkLQVJEA.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-COdKUDGg.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-CYxEhhdz.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DDstz-Xb.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-dmoq-nIc.mjs} +1 -1
- package/dist/{roleItem-D199LzA1.js → roleItem-C-ZJ1901.js} +1 -1
- package/dist/{roleItem-D2fC3f4r.mjs → roleItem-IpKd1g07.mjs} +1 -1
- package/dist/{saveForm-De1fUqO8.mjs → saveForm-BzcVU6k2.mjs} +3 -3
- package/dist/{saveForm-BbdYbC73.js → saveForm-Upas4M-p.js} +1 -1
- package/dist/{scan-DqCtMrDp.js → scan-DTcyn8q6.js} +1 -1
- package/dist/scan-DTcyn8q6.js.gz +0 -0
- package/dist/{scan-BZGoYAdt.mjs → scan-RjeErkpw.mjs} +1 -1
- package/dist/scan-RjeErkpw.mjs.gz +0 -0
- package/dist/{search-C2eH8-LB.js → search-BDKLMeoo.js} +1 -1
- package/dist/{search-Bepdl4D9.mjs → search-Dc1Wt1kK.mjs} +1 -1
- package/dist/{selectConfig-Bm5jnY0V.js → selectConfig-BMinGzws.js} +1 -1
- package/dist/{selectConfig-DuCQjkKR.mjs → selectConfig-D84KZB8v.mjs} +1 -1
- package/dist/selectConfig-D84KZB8v.mjs.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-BfpBL6cY.js → subItem-BIthLGV1.js} +1 -1
- package/dist/{subItem-vlRbmrLU.mjs → subItem-CkIEAmMl.mjs} +1 -1
- package/dist/{tagsView-SUpzUhgn.js → tagsView-Bd7EIsR-.js} +2 -2
- package/dist/tagsView-Bd7EIsR-.js.gz +0 -0
- package/dist/{tagsView-C4H8tJ-A.mjs → tagsView-BlZ6e8cn.mjs} +2 -2
- package/dist/tagsView-BlZ6e8cn.mjs.gz +0 -0
- package/dist/{transverse-D3azCzLl.mjs → transverse-C0e75IQ3.mjs} +3 -3
- package/dist/{transverse-BgooHQp2.js → transverse-DeH5H4EW.js} +1 -1
- package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +4 -7
- package/dist/types/components/business/bcTable/utils/useFormTableHeight.d.ts +7 -2
- package/dist/{user-BuoJz7EU.mjs → user-9lS6jgE3.mjs} +3 -3
- package/dist/{user-BfAH8N4K.js → user-B_tyr3Fw.js} +1 -1
- package/dist/{userNews-CTc2tFDg.mjs → userNews-BU9QALu_.mjs} +1 -1
- package/dist/{userNews-DUlADTXn.js → userNews-D4EF8D54.js} +1 -1
- package/dist/{userSelect-d9OuUgPB.js → userSelect-BNLumdST.js} +1 -1
- package/dist/{userSelect-7K0atXa3.mjs → userSelect-CieLqM1a.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Bxb8KzWQ.mjs → userSelect.vue_vue_type_script_setup_true_lang-BxNlm2Cb.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CufsLgt-.js → userSelect.vue_vue_type_script_setup_true_lang-DD8qx69X.js} +1 -1
- package/dist/{vertical-B4C3oEsR.js → vertical-Di6ZOgxN.js} +1 -1
- package/dist/{vertical-V-eBGn95.mjs → vertical-NWYLoX-g.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-BwMYgrC3.mjs.gz +0 -0
- package/dist/baseFormConfig-DY3fUxzh.mjs.gz +0 -0
- package/dist/baseTableConfig-Cdz6fhyc.mjs.gz +0 -0
- package/dist/baseTableConfig-g0H7tyZI.js.gz +0 -0
- package/dist/btnIndex-DtbYlwLV.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BkyrJ5KU.mjs.gz +0 -0
- package/dist/cloneConfigDialog-KJYwOEsH.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D7w7EfkB.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-NSbXuhcC.mjs.gz +0 -0
- package/dist/formConfig-CD8zgo7v.mjs.gz +0 -0
- package/dist/formConfig-VjsRkpdK.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C7Z-e80G.mjs.gz +0 -0
- package/dist/hsFormConfigList-CN-xH-RE.mjs.gz +0 -0
- package/dist/hsFormPanel-hEAe35vw.mjs.gz +0 -0
- package/dist/index-9B2xkaeX.mjs.gz +0 -0
- package/dist/index-Bc2ljizi.mjs.gz +0 -0
- package/dist/index-BgKVNb6f.mjs.gz +0 -0
- package/dist/index-CBbiBxQU.js.gz +0 -0
- package/dist/index-CMjRfiCh.js.gz +0 -0
- package/dist/index-CwmwRAlo.js.gz +0 -0
- package/dist/index-D1V3RVua.mjs.gz +0 -0
- package/dist/index-HxDQaC3-.mjs.gz +0 -0
- package/dist/index-sSmiQjbz.mjs.gz +0 -0
- package/dist/index-uxX8LQC-.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BbTXzqUL.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DUbZsXWB.mjs.gz +0 -0
- package/dist/scan-BZGoYAdt.mjs.gz +0 -0
- package/dist/scan-DqCtMrDp.js.gz +0 -0
- package/dist/selectConfig-DuCQjkKR.mjs.gz +0 -0
- package/dist/tagsView-C4H8tJ-A.mjs.gz +0 -0
- package/dist/tagsView-SUpzUhgn.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, resolveComponent, createElementBlock, openBlock, createElementVNode, unref, toDisplayString, createCommentVNode, createBlock, createVNode, withCtx } from "vue";
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
|
-
import { a as useThemeConfig, N as NextLoading, _ as _export_sfc } from "./index-
|
|
3
|
+
import { a as useThemeConfig, N as NextLoading, _ as _export_sfc } from "./index-Bv4TmBE_.mjs";
|
|
4
4
|
import { l as logoMini } from "./logo-mini-BQ9BrQ1U.mjs";
|
|
5
5
|
const _hoisted_1 = { class: "login-container flex" };
|
|
6
6
|
const _hoisted_2 = { class: "login-left" };
|
|
@@ -20,8 +20,8 @@ const __default__ = defineComponent({
|
|
|
20
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
...__default__,
|
|
22
22
|
setup(__props) {
|
|
23
|
-
const Account = defineAsyncComponent(() => import("./account-
|
|
24
|
-
const Scan = defineAsyncComponent(() => import("./scan-
|
|
23
|
+
const Account = defineAsyncComponent(() => import("./account-BMvzyA3H.mjs"));
|
|
24
|
+
const Scan = defineAsyncComponent(() => import("./scan-RjeErkpw.mjs"));
|
|
25
25
|
const storesThemeConfig = useThemeConfig();
|
|
26
26
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
27
27
|
const state = reactive({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang--l1Gsvdj.js"),a=require("./formConfig-By3SpPOf.js"),n=require("./index-DQvYn2Cx.js"),r=require("./index-BYYxeNK2.js"),o=require("./useConfigInfo-2zEYLSSs.js"),u=n.useMenuController(),l=r.useFieldConfigController();const c={class:"system-user-container layout-padding"},s={class:"flex-1"},i=e.defineComponent({name:"formSetting"}),d=e.defineComponent({...i,setup(n){const r=e.ref();let i=e.ref({});const{currentPage:d,onChangeSystem:f,changeNode:v,reGetFormByMenuFn:g,sysData:m}=function(t,a){const n=o.useConfigInfo();let r=e.ref("");const c=e.ref({});let s=e.ref();const i=e.ref(),d=e=>{u.getMenuList({project_code:e.project_code}).then((e=>{1==e.code&&(i.value=f(e.data||[]))})).catch((e=>{}))},f=e=>e.map((e=>(e.label=e.meta.title,e.value=e.name,e.children&&e.children.length>0&&(e.children=f(e.children||[])),e))),v=e=>{l.getFormByMenu(e).then((e=>{1==e.code&&(e.data.length>0?(c.value=e.data||[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig(e.data))):(c.value=[],t.value&&(t.value.initData(c.value),t.value.saveFormRef.initConfig([]))))}))};return{currentPage:r,onChangeSystem:e=>{s.value=e,c.value={},r.value="",a.value={},d(e)},menuData:i,changeNode:e=>{if(a.value.id==e.id)return;r.value=e.value,a.value=e,n.$patch({form_menu:e});let t={menu_id:e.id,project_code:s.value.project_code};v(t)},currentPageData:a,reGetFormByMenuFn:()=>{let e={menu_id:a.value.id,project_code:s.value.project_code};v(e)},sysData:s}}(r,i);return(n,o)=>{const u=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(u,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createVNode(t._sfc_main,{onChangeNode:e.unref(v),onChangeSystem:e.unref(f)},null,8,["onChangeNode","onChangeSystem"]),e.withDirectives(e.createElementVNode("div",s,[e.createVNode(a.default,{ref_key:"formRef",ref:r,class:"h-full",currentPageData:e.unref(i),onRefresh:e.unref(g),sysData:e.unref(m)},null,8,["currentPageData","onRefresh","sysData"])],512),[[e.vShow,e.unref(d)]])])),_:1})])}}}),f=n._export_sfc(d,[["__scopeId","data-v-a1cd6eed"]]);exports.default=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-Bv4TmBE_.mjs";
|
|
3
3
|
const _hoisted_1 = { class: "layout-footer pb15" };
|
|
4
4
|
const __default__ = defineComponent({
|
|
5
5
|
name: "layoutFooter"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DQvYn2Cx.js"),i=require("./index-rvNvCewn.js"),c=require("./dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DPC5PrW7.js"),a=require("./dictItemDialog.vue_vue_type_script_setup_true_lang-CP2timMY.js"),o=i.useDictController();const d={class:"system-menu-container layout-padding"},l={class:"flex",style:{height:"5%"}},n={class:"flex",style:{height:"95%"}},r={class:"w-1/5 border-1 border-solid border-slate-300"},s={class:"overflow-y-auto",style:{height:"95%"}},u=["onClick"],f={class:"flex-1 h-full"},m={class:"flex"},h=e.defineComponent({name:"dataDict"}),_=e.defineComponent({...h,setup(i){const{addDict:h,deleteDict:_,addDictItem:p,getDictData:D,choseDict:v,editDictItem:g,deleteDictItem:V,searchDict:C,onChangeEffect:x,onChangeDefault:y,dict:w}=function(){const i=e.reactive({keyword:"",dictData:[],originDictData:[],currentDict:void 0,dictItemData:[]}),d=()=>{o.getDictListByProject({project_code:"scmp"}).then((e=>{1==e.code&&(i.originDictData=e.data,l(),i.currentDict||(i.currentDict=e.data[0]||void 0,i.currentDict&&n()))}))},l=()=>{i.dictData=t._.cloneDeep(i.originDictData).filter((e=>t._.includes(e.dict_name,i.keyword)||t._.includes(e.dict_code,i.keyword)))},n=()=>{var e,t;(null==(e=i.currentDict)?void 0:e.id)&&o.getListPageDictChild({dict_id:null==(t=i.currentDict)?void 0:t.id}).then((e=>{i.dictItemData=e.data}))},r=(e,c)=>{t.showPopup(a._sfc_main,{dict:i.currentDict,dictList:i.originDictData,type:e,dictItem:c||void 0},{title:"edit"==e?"编辑字典项":"新增字典项",confirmButtonText:"保存",mask:!0,width:500,height:500,async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),n())}})};return{addDict:()=>{t.showPopup(c._sfc_main,{},{title:"新增字典",mask:!0,width:500,height:400,confirmButtonText:"保存",async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),d())}})},deleteDict:()=>{var e;t.ElMessageBox.confirm(`确认删除字典${null==(e=i.currentDict)?void 0:e.dict_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{var e;o.postDelDictInfo({id:null==(e=i.currentDict)?void 0:e.id}).then((e=>{1==e.code&&(i.currentDict=void 0,t.ElMessage.success("删除成功"),d())}))}))},addDictItem:()=>{r("add")},getDictData:d,choseDict:e=>{i.currentDict=e,n()},editDictItem:e=>{r("edit",e)},deleteDictItem:e=>{t.ElMessageBox.confirm(`确认删除字典项“${e.dict_child_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{o.postDelDictChildInfo({id:e.id}).then((e=>{1==e.code&&(t.ElMessage.success("删除成功"),n())}))}))},searchDict:l,onChangeEffect:(e,i)=>{"1"!=e&&"0"!=e||o.postUpdateSwitch({id:i.id,is_effect:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},onChangeDefault:(e,c)=>{var a;o.postUpdateDefault({dict_id:null==(a=i.currentDict)?void 0:a.id,id:c.id,is_default:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},dict:i}}();return e.onMounted((()=>{D()})),(t,i)=>{const c=e.resolveComponent("hs-button"),a=e.resolveComponent("hs-input"),o=e.resolveComponent("vxe-column"),D=e.resolveComponent("hs-switch"),N=e.resolveComponent("vxe-table"),k=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",d,[e.createVNode(k,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",l,[e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(h)},{default:e.withCtx((()=>i[1]||(i[1]=[e.createTextVNode("新增字典")]))),_:1,__:[1]},8,["onClick"]),e.unref(w).currentDict?(e.openBlock(),e.createBlock(c,{key:0,type:"primary",size:"default",onClick:e.unref(_)},{default:e.withCtx((()=>i[2]||(i[2]=[e.createTextVNode("删除字典")]))),_:1,__:[2]},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(p)},{default:e.withCtx((()=>i[3]||(i[3]=[e.createTextVNode("新增字典项")]))),_:1,__:[3]},8,["onClick"])]),e.createElementVNode("div",n,[e.createElementVNode("div",r,[e.createVNode(a,{placeholder:"字典列表","suffix-icon":"ele-Search",modelValue:e.unref(w).keyword,"onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(w).keyword=t),onInput:e.unref(C)},null,8,["modelValue","onInput"]),e.createElementVNode("div",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w).dictData,((t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex bg-white p-4 border-0 border-b border-dashed border-slate-400 hover:bg-cyan-100",""+(e.unref(w).currentDict&&e.unref(w).currentDict.id==t.id?"active":"")]),key:c,onClick:i=>e.unref(v)(t)},[e.createElementVNode("div",null,e.toDisplayString(t.dict_name)+" ",1),i[4]||(i[4]=e.createTextVNode(" - ")),e.createElementVNode("div",null," "+e.toDisplayString(t.dict_code),1)],10,u)))),128))])]),e.createElementVNode("div",f,[e.createVNode(N,{data:e.unref(w).dictItemData,height:"auto"},{default:e.withCtx((()=>[e.createVNode(o,{type:"seq",width:"60"}),e.createVNode(o,{field:"dict_child_code",title:"字典项代码"}),e.createVNode(o,{field:"dict_child_name",title:"字典项名称"}),e.createVNode(o,{field:"show_name",title:"显示名称"}),e.createVNode(o,{field:"sort",title:"排序"}),e.createVNode(o,{field:"remark",title:"字典说明"}),e.createVNode(o,{field:"is_effect",title:"开关"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_effect,"onUpdate:modelValue":e=>t.is_effect=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(x)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{field:"is_default",title:"默认值"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_default,"onUpdate:modelValue":e=>t.is_default=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(y)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{title:"操作",fixed:"right"},{default:e.withCtx((({row:t})=>[e.createElementVNode("div",m,[e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(g)(t),type:"primary"},{default:e.withCtx((()=>i[5]||(i[5]=[e.createTextVNode("编辑")]))),_:2,__:[5]},1032,["onClick"]),e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(V)(t),type:"primary"},{default:e.withCtx((()=>i[6]||(i[6]=[e.createTextVNode("删除")]))),_:2,__:[6]},1032,["onClick"])])])),_:1})])),_:1},8,["data"])])])])),_:1})])}}}),p=t._export_sfc(_,[["__scopeId","data-v-94679299"]]);exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_name_iconSelector_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_name_iconSelector_lang-BVhfwI7P.js");exports.default=e._sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, unref, toDisplayString } from "vue";
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
|
-
import { a as useThemeConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { a as useThemeConfig, _ as _export_sfc } from "./index-Bv4TmBE_.mjs";
|
|
4
4
|
import { l as logoMini } from "./logo-mini-BQ9BrQ1U.mjs";
|
|
5
5
|
const _hoisted_1 = ["src"];
|
|
6
6
|
const _hoisted_2 = ["src"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DQvYn2Cx.js"),l={class:"wrap1"},a={class:"wrap2"},n=e.defineComponent({name:"signature"}),o=e.defineComponent({...n,props:{showFull:{type:Boolean,default:!0}},emits:["save"],setup(n,{emit:o}){const s=e.ref(null),{width:c,height:i}=t.useElementSize(s),r=n,u=e.ref(!1),v=e.ref(null),d=e.ref(null),m=e.ref(null),f=e.ref(null),h=o,p=()=>{var e,t;u.value=!u.value,null==(e=null==m?void 0:m.value)||e.clear(),null==(t=null==f?void 0:f.value)||t.clear()},E=()=>{m.value.clear()},g=()=>{f.value.clear()},w=()=>{m.value.undo()},N=()=>{f.value.undo()},V=()=>{const e=m.value;if(e.isEmpty())return void alert("isEmpty");const t=e.getJPG();h("save",t)},k=()=>{const e=f.value;if(e.isEmpty())return void alert("isEmpty");const t=e.getRotateCanvas(-90).toDataURL();h("save",t)};return e.onMounted((()=>{u.value=r.showFull,setTimeout((()=>{(()=>{const e=d.value,l={width:c.value-30,height:200,minWidth:2,maxWidth:6,openSmooth:!1,bgColor:"#ffffff"};m.value=new t.SmoothSignature(e,l)})(),(()=>{const e=v.value,l={width:c.value-120,height:i.value-60,minWidth:3,maxWidth:10,openSmooth:!1,bgColor:"#ffffff"};f.value=new t.SmoothSignature(e,l)})()}),100)})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"h-full w-full sign-finish",ref_key:"signFinish",ref:s},[e.withDirectives(e.createElementVNode("div",l,[n[0]||(n[0]=e.createElementVNode("span",{class:"sign-title"},"请在区域内签字",-1)),e.createElementVNode("canvas",{class:"canvas1",ref_key:"canvas1",ref:d},null,512),e.createElementVNode("div",{class:"actions"},[e.createElementVNode("button",{class:"danger",onClick:E},"清除"),e.createElementVNode("button",{class:"warning",onClick:w},"撤销"),e.createElementVNode("button",{class:"primary",onClick:p},"横屏"),e.createElementVNode("button",{class:"success",onClick:V},"保存")])],512),[[e.vShow,u.value]]),e.withDirectives(e.createElementVNode("div",a,[e.createElementVNode("div",{class:"actionsWrap"},[e.createElementVNode("div",{class:"actions"},[e.createElementVNode("button",{class:"danger",onClick:g},"清除"),e.createElementVNode("button",{class:"warning",onClick:N},"撤销"),e.createElementVNode("button",{class:"primary",onClick:p},"竖屏"),e.createElementVNode("button",{class:"success",onClick:k},"保存")])]),e.createElementVNode("canvas",{class:"canvas",ref_key:"canvas2",ref:v},null,512)],512),[[e.vShow,!u.value]])],512))}}),s=t._export_sfc(o,[["__scopeId","data-v-8300751a"]]);exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, defineComponent, resolveComponent, resolveDirective, createElementBlock, openBlock, withDirectives, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-
|
|
3
|
-
import { u as useSystemController } from "./index-
|
|
4
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-Bv4TmBE_.mjs";
|
|
3
|
+
import { u as useSystemController } from "./index-CX0x0USU.mjs";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-CXNVvreA.mjs";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-C-ToZstd.mjs";
|
|
6
6
|
const assign = (params, title) => {
|
|
7
7
|
return Object.assign(params, { other_log_info: { title } });
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DQvYn2Cx.js"),o={class:"system-menu-container layout-padding"},l={class:"h-full overflow-hidden flex flex-col rounded"},d={class:"grid grid-cols-6 gap-2 px-3"},a={class:"w-full flex flex-row justify-between gap-2 bg-white rounded p-4 h-full overflow-hidden"},r={class:"flex-1 flex flex-col gap-2"},n={class:"text-right"},c={class:"flex flex-col overflow-hidden",style:{width:"350px"}},s={class:"log-wrapper h-0 flex-1 shrink-0 overflow-hidden overflow-y-auto mt-1 bg-gray-300"},i=e.defineComponent({name:"rtc"}),p=e.defineComponent({...i,setup(i){const p=e.reactive({sdkAppId:"1400829659",userId:"456",roomId:888,sdkSecretKey:"b838ac1178ea1bff2ab8ea72291a2c63709a1b4e2cce2afecc918f12c4912ac3",userSig:"",logs:[],roomState:"exited"}),u=e.ref(),m=e=>{p.logs=[...e.toReversed()]},g=e=>{p.roomState=e},V=()=>{var e;u.value&&(u.value,null==(e=u.value)||e.handleEnter())},x=()=>{u.value&&(u.value,u.value.handleExit())},f=()=>{u.value&&(u.value.logs=[])},h=()=>{let e=t.genTestUserSig(p.userId);p.userSig=e.userSig},N=()=>{};return(i,v)=>{const y=e.resolveComponent("el-input"),S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",l,[e.createElementVNode("div",d,[e.createVNode(y,{class:"col-span-3",modelValue:p.sdkAppId,"onUpdate:modelValue":v[0]||(v[0]=e=>p.sdkAppId=e),readonly:"",placeholder:"sdkAppId",type:"number"},{prepend:e.withCtx((()=>v[5]||(v[5]=[e.createTextVNode("SDKAppID")]))),_:1},8,["modelValue"]),e.createVNode(y,{class:"col-span-3",modelValue:p.sdkSecretKey,"onUpdate:modelValue":v[1]||(v[1]=e=>p.sdkSecretKey=e),readonly:"",placeholder:"sdkSecretKey",type:"string"},{prepend:e.withCtx((()=>v[6]||(v[6]=[e.createTextVNode("SDKSecretKey")]))),_:1},8,["modelValue"]),e.createVNode(y,{modelValue:p.userId,"onUpdate:modelValue":v[2]||(v[2]=e=>p.userId=e),placeholder:"userID"},{prepend:e.withCtx((()=>v[7]||(v[7]=[e.createTextVNode("UserID")]))),_:1},8,["modelValue"]),e.createVNode(y,{modelValue:p.roomId,"onUpdate:modelValue":v[3]||(v[3]=e=>p.roomId=e),placeholder:"roomID",type:"number"},{prepend:e.withCtx((()=>v[8]||(v[8]=[e.createTextVNode("RoomID")]))),_:1},8,["modelValue"]),e.createVNode(y,{class:"col-span-2",modelValue:p.userSig,"onUpdate:modelValue":v[4]||(v[4]=e=>p.userSig=e),placeholder:"userSig"},{prepend:e.withCtx((()=>v[9]||(v[9]=[e.createTextVNode("UserSig")]))),append:e.withCtx((()=>[e.createVNode(S,{type:"primary",onClick:h},{default:e.withCtx((()=>v[10]||(v[10]=[e.createTextVNode("生成UserSig")]))),_:1,__:[10]})])),_:1},8,["modelValue"])]),e.createElementVNode("div",a,[e.createElementVNode("div",r,[v[14]||(v[14]=e.createElementVNode("div",{class:"flex-1 bg-gray-300 p-2 rounded text-gray text-lg"},"业务内容",-1)),e.createElementVNode("div",n,[e.createVNode(S,{size:"default",loading:"entering"===p.roomState,disabled:"entered"===p.roomState,onClick:V},{default:e.withCtx((()=>v[11]||(v[11]=[e.createTextVNode(" 进入房间 ")]))),_:1,__:[11]},8,["loading","disabled"]),e.createVNode(S,{size:"default",loading:"exiting"===p.roomState,onClick:x},{default:e.withCtx((()=>v[12]||(v[12]=[e.createTextVNode(" 离开房间 ")]))),_:1,__:[12]},8,["loading"]),e.createVNode(S,{size:"default",onClick:f},{default:e.withCtx((()=>v[13]||(v[13]=[e.createTextVNode("清空日志")]))),_:1,__:[13]})])]),e.createElementVNode("div",c,[e.createVNode(t.trtcUI,{style:{height:"500px"},ref_key:"TRTCRef",ref:u,appId:p.sdkAppId,userId:p.userId,roomId:`${p.roomId}`,userSig:p.userSig,onUpdateLog:m,onChangeRoomState:g,onUserHangingUp:N},null,8,["appId","userId","roomId","userSig"]),e.createElementVNode("div",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.logs,((t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"log"},["success"===t.type?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v[15]||(v[15]=e.createElementVNode("span",null,"🟩 ",-1)),e.createTextVNode(e.toDisplayString(t.content),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[v[16]||(v[16]=e.createElementVNode("span",null,"🟥 ",-1)),e.createTextVNode(e.toDisplayString(t.content),1)],64))])))),128))])])])])])}}});exports.default=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc, T as systemStore, b as ElMessage, U as useFileController } from "./index-
|
|
2
|
+
import { _ as _export_sfc, T as systemStore, b as ElMessage, U as useFileController } from "./index-Bv4TmBE_.mjs";
|
|
3
3
|
const Exif = {};
|
|
4
4
|
Exif.getData = (img) => new Promise((reslove, reject) => {
|
|
5
5
|
let obj = {};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-CMjRfiCh.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=h*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),o){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*o*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*o*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(m)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(m)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(f)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(f)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(w)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-DQvYn2Cx.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=h*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),o){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*o*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*o*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(m)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(m)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(f)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(f)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(w)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-DQvYn2Cx.js"),t=(t={})=>{let s=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=((e,t)=>Object.assign(e,{title:t}))(t,"后台api获取接口"),e.request({url:s?s+"/v3/api-docs":"/scmp-web/v3/api-docs",method:"get",params:t})};exports.usePostMan=function(){return{getApiDocs:t}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, createElementBlock, openBlock, withDirectives, createElementVNode, vShow } from "vue";
|
|
2
|
-
import { X as useElementSize, Y as SmoothSignature, _ as _export_sfc } from "./index-
|
|
2
|
+
import { X as useElementSize, Y as SmoothSignature, _ as _export_sfc } from "./index-Bv4TmBE_.mjs";
|
|
3
3
|
const _hoisted_1 = { class: "wrap1" };
|
|
4
4
|
const _hoisted_2 = { class: "wrap2" };
|
|
5
5
|
const __default__ = defineComponent({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DQvYn2Cx.js"),o=require("./dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CWxqrY-E.js"),n=require("./index-BYYxeNK2.js"),a=require("./index-D7N5lu5a.js"),i=n.useFieldConfigController(),r=a.useDataPermissionController();const l={class:"system-menu-container layout-padding"},s=e.defineComponent({name:"dataAuth"}),d=e.defineComponent({...s,setup(n){const a=e.ref();function s(e){a.value=e,a.value}e.onMounted((()=>{d()}));const{getPageConfig:d,openAddDialog:c,openEditDialog:u,deleteRow:p}=function(n){const a=e.ref(),l=()=>{var t;let o=e.toValue(n.value.formData);null==(t=n.value)||t.fetchTableData({...o})},s=(e,n)=>{t.showPopup(o._sfc_main,{type:e,row:n,search:l},{title:"add"==e?"新增数据权限":"修改数据权限",showFooter:!1,width:"600px",height:"380px",mask:!0})};return{getPageConfig:()=>{i.getFieldListPage({config_type:"1",config_unique_id:"1710555261080",project_code:"scmp",qry_page_name_like:"数据权限"}).then((e=>{let t=e.data&&e.data.customPageList;if(t&&t[0]&&t[0].business_json){let e=JSON.parse(t[0].business_json);a.value=e}})).catch((e=>{}))},openAddDialog:e=>{s(e)},openEditDialog:(e,t)=>{s(e,t)},deleteRow:e=>{t.ElMessageBox.confirm(`确认删除【${e.config_label}】数据权限吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{r.postDeleteDataPermissionConfig({id:e.id}).then((e=>{if(1!=e.code)return t.ElMessage.warning(e.msg);t.ElMessage.success(e.msg),l()}))})).catch((()=>{}))},tableData:a}}(a);return(t,o)=>{const n=e.resolveComponent("bc-icon"),a=e.resolveComponent("hs-button"),i=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",l,[e.createVNode(i,{id:"1710555261080",mid:"24756d565d164566bc5015118936f84a",type:"1",projectCode:"scmp",isAuth:!1,onReady:s},{btn_add:e.withCtx((()=>[e.createVNode(a,{size:"small",type:"primary",onClick:o[0]||(o[0]=t=>e.unref(c)("add"))},{default:e.withCtx((()=>[e.createVNode(n,{name:"ele-Plus"}),o[1]||(o[1]=e.createTextVNode("新增"))])),_:1,__:[1]})])),table_btn_edit:e.withCtx((({row:t,column:n})=>[e.createVNode(a,{size:"small",text:"",type:"primary",onClick:o=>e.unref(u)("edit",t)},{default:e.withCtx((()=>o[2]||(o[2]=[e.createTextVNode("编辑")]))),_:2,__:[2]},1032,["onClick"])])),table_btn_delete:e.withCtx((({row:t,column:n})=>[e.createVNode(a,{size:"small",text:"",type:"primary",onClick:o=>e.unref(p)(t)},{default:e.withCtx((()=>o[3]||(o[3]=[e.createTextVNode("删除")]))),_:2,__:[3]},1032,["onClick"])])),_:1})])}}});exports.default=d;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref, watch, defineComponent, useModel, resolveComponent, createElementBlock, openBlock, Fragment, createTextVNode, createVNode, createElementVNode, unref, isRef, withCtx, toDisplayString, computed, mergeModels, createBlock, renderList, createCommentVNode, normalizeClass, withModifiers, onMounted, withDirectives, resolveDynamicComponent, vShow, mergeProps, renderSlot, inject, reactive, onUnmounted, Transition, normalizeStyle, provide } from "vue";
|
|
2
|
-
import { S as Session, c as _, i as inputAttrConfigMap, d as v4, z as datePickerAttrConfigMap, h as selectAttrConfigMap, b as ElMessage, f as useKeyStroke, E as ElMessageBox, t as to, _ as _export_sfc, s as showPopup$1, A as lodashExports, l as treeToList, n as useMenuController, H as HsMessageBox, k as HsMessage, o as copyText } from "./index-
|
|
2
|
+
import { S as Session, c as _, i as inputAttrConfigMap, d as v4, z as datePickerAttrConfigMap, h as selectAttrConfigMap, b as ElMessage, f as useKeyStroke, E as ElMessageBox, t as to, _ as _export_sfc, s as showPopup$1, A as lodashExports, l as treeToList, n as useMenuController, H as HsMessageBox, k as HsMessage, o as copyText } from "./index-Bv4TmBE_.mjs";
|
|
3
3
|
import { u as useConfigInfo } from "./useConfigInfo-PTkkdx-l.mjs";
|
|
4
|
-
import { u as useFieldConfigController } from "./index-
|
|
5
|
-
import { _ as _sfc_main$n } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { b as bcFormConfig } from "./bcFormConfig-
|
|
7
|
-
import { f as formItemConfig, p as parentFormData, d as formItemAspectConfig, e as emptyFormItemData, a as config$1, c as compConfig, g as parentFormConfig, h as formTitleConfig } from "./baseFormConfig-
|
|
8
|
-
import { u as usePostMan } from "./index
|
|
4
|
+
import { u as useFieldConfigController } from "./index-Cp0IxudX.mjs";
|
|
5
|
+
import { _ as _sfc_main$n } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DaHHE9g-.mjs";
|
|
6
|
+
import { b as bcFormConfig } from "./bcFormConfig-DdHidE_G.mjs";
|
|
7
|
+
import { f as formItemConfig, p as parentFormData, d as formItemAspectConfig, e as emptyFormItemData, a as config$1, c as compConfig, g as parentFormConfig, h as formTitleConfig } from "./baseFormConfig-CBhENloE.mjs";
|
|
8
|
+
import { u as usePostMan } from "./index-Cg05MzGp.mjs";
|
|
9
9
|
import { s as shortcutList } from "./shortcutList-BXBGQdNn.mjs";
|
|
10
|
-
import { _ as _sfc_main$l, t as tableConfig, b as tableColumnRule, c as tableItemConfig, d as tableItemAspectData, e as baseData, g as emptyTableItemData, h as tableItemType, i as tableTitleConfig, j as baseConfig } from "./baseTableConfig-
|
|
11
|
-
import { _ as _sfc_main$m } from "./index.vue_vue_type_script_setup_true_name_iconSelector_lang-
|
|
12
|
-
import { u as useBtnConfigController } from "./index-
|
|
13
|
-
import { u as useSystemController } from "./index-
|
|
10
|
+
import { _ as _sfc_main$l, t as tableConfig, b as tableColumnRule, c as tableItemConfig, d as tableItemAspectData, e as baseData, g as emptyTableItemData, h as tableItemType, i as tableTitleConfig, j as baseConfig } from "./baseTableConfig-DltFsJcp.mjs";
|
|
11
|
+
import { _ as _sfc_main$m } from "./index.vue_vue_type_script_setup_true_name_iconSelector_lang-C-M_fjv5.mjs";
|
|
12
|
+
import { u as useBtnConfigController } from "./index-C6T0HQvE.mjs";
|
|
13
|
+
import { u as useSystemController } from "./index-CX0x0USU.mjs";
|
|
14
14
|
const fieldConfig$4 = useFieldConfigController();
|
|
15
15
|
function useHsPage(formTableRef) {
|
|
16
16
|
const configInfo = useConfigInfo();
|
|
Binary file
|