hs-admin-ui 2.6.4 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-BoS7f19w.js → 401-CSiSzgDa.js} +1 -1
- package/dist/401-CSiSzgDa.js.gz +0 -0
- package/dist/{401-BjudAH6M.mjs → 401-yyOvqpsM.mjs} +1 -1
- package/dist/401-yyOvqpsM.mjs.gz +0 -0
- package/dist/{404-Bt9y_wsa.js → 404-C834ed0I.js} +1 -1
- package/dist/{404-Bt9y_wsa.js.gz → 404-C834ed0I.js.gz} +0 -0
- package/dist/{404-_AfNfUVM.mjs → 404-CiHV_F4c.mjs} +1 -1
- package/dist/{404-_AfNfUVM.mjs.gz → 404-CiHV_F4c.mjs.gz} +0 -0
- package/dist/{account-emdyK_Kh.js → account-BzMP-BAP.js} +1 -1
- package/dist/account-BzMP-BAP.js.gz +0 -0
- package/dist/{account-C1WpM_rY.mjs → account-CWwJJtXC.mjs} +13 -13
- package/dist/account-CWwJJtXC.mjs.gz +0 -0
- package/dist/{aside-pm97K6nA.js → aside-CLFfwDr5.js} +1 -1
- package/dist/aside-CLFfwDr5.js.gz +0 -0
- package/dist/{aside-D2xXK-6W.mjs → aside-CQUOGCU4.mjs} +7 -7
- package/dist/aside-CQUOGCU4.mjs.gz +0 -0
- package/dist/{btnIndex-BDKFsq2C.js → btnIndex-DpPb3OVe.js} +1 -1
- package/dist/btnIndex-DpPb3OVe.js.gz +0 -0
- package/dist/{btnIndex-BKLtPesa.mjs → btnIndex-ROFjOJAi.mjs} +2 -2
- package/dist/btnIndex-ROFjOJAi.mjs.gz +0 -0
- package/dist/{classic-BFouBkpT.js → classic-B2rI1RAZ.js} +1 -1
- package/dist/classic-B2rI1RAZ.js.gz +0 -0
- package/dist/{classic-DnevdDS4.mjs → classic-DAnb2yOV.mjs} +2 -2
- package/dist/classic-DAnb2yOV.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BeM2PHmk.mjs +177 -0
- package/dist/cloneConfigDialog-BeM2PHmk.mjs.gz +0 -0
- package/dist/cloneConfigDialog-DP8jXkui.js +1 -0
- package/dist/cloneConfigDialog-DP8jXkui.js.gz +0 -0
- package/dist/{columns-BRNtgMMD.js → columns-CHlSCZ-7.js} +1 -1
- package/dist/columns-CHlSCZ-7.js.gz +0 -0
- package/dist/{columns-BU5t9L0S.mjs → columns-DK4g6pc4.mjs} +2 -2
- package/dist/columns-DK4g6pc4.mjs.gz +0 -0
- package/dist/{columnsAside-DfWxSP9g.js → columnsAside-3ByH-s2v.js} +1 -1
- package/dist/columnsAside-3ByH-s2v.js.gz +0 -0
- package/dist/{columnsAside-tI-XF4Eg.mjs → columnsAside-BlD7SmsL.mjs} +15 -15
- package/dist/columnsAside-BlD7SmsL.mjs.gz +0 -0
- package/dist/{contextmenu-CEO2K9fS.mjs → contextmenu-Bd5wuyRU.mjs} +1 -1
- package/dist/contextmenu-Bd5wuyRU.mjs.gz +0 -0
- package/dist/{contextmenu-Cy8U8ws5.js → contextmenu-Bp_eSbxK.js} +1 -1
- package/dist/contextmenu-Bp_eSbxK.js.gz +0 -0
- package/dist/{contextmenu-Ck3QcXcd.mjs → contextmenu-Cfr2b9C_.mjs} +1 -1
- package/dist/contextmenu-Cfr2b9C_.mjs.gz +0 -0
- package/dist/{contextmenu-Bsbboczo.js → contextmenu-CknvS8-f.js} +1 -1
- package/dist/contextmenu-CknvS8-f.js.gz +0 -0
- package/dist/{contextmenu-Dw1AmshJ.mjs → contextmenu-DPQ4iVTK.mjs} +1 -1
- package/dist/contextmenu-DPQ4iVTK.mjs.gz +0 -0
- package/dist/{contextmenu-CFxtx2xB.js → contextmenu-o23mLqcY.js} +1 -1
- package/dist/contextmenu-o23mLqcY.js.gz +0 -0
- package/dist/{defaults-mN7b2NTb.mjs → defaults-BFhFBE_x.mjs} +2 -2
- package/dist/defaults-BFhFBE_x.mjs.gz +0 -0
- package/dist/{defaults-bLzhUzRE.js → defaults-tAFEicqu.js} +1 -1
- package/dist/defaults-tAFEicqu.js.gz +0 -0
- package/dist/{dialog-DDUzVx0i.js → dialog-B5QbUwqd.js} +1 -1
- package/dist/{dialog-D9-w4rXA.mjs → dialog-ByPtwmrm.mjs} +1 -1
- package/dist/{dialog-jsDZCkac.js → dialog-CQkRTKpN.js} +1 -1
- package/dist/{dialog-ldsZ96CI.mjs → dialog-bY-1nLTx.mjs} +1 -1
- package/dist/{dialog-BdMtDoBf.js → dialog-cs1J_cln.js} +1 -1
- package/dist/{dialog-CsN8wFeS.mjs → dialog-hgxeIOsh.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CKmNcwVD.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CM711XRh.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CM711XRh.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-wUbKhvWY.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DeyjiFDG.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DeyjiFDG.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1SVMbbZ.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DlrEKa5d.mjs} +70 -71
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DlrEKa5d.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Wgn5ndkF.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Wgn5ndkF.js.gz +0 -0
- package/dist/{dictDialog-Vn5TBM-S.mjs → dictDialog-BL_manJE.mjs} +1 -1
- package/dist/{dictDialog-C-geiXds.js → dictDialog-CjtZ3kZY.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CsFyR22t.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BEyMn0fi.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BEyMn0fi.js.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-RDOYyhKB.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-ScHqfk_X.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-ScHqfk_X.mjs.gz +0 -0
- package/dist/{dictItemDialog-C_rbaXUa.js → dictItemDialog-DlDfzX44.js} +1 -1
- package/dist/{dictItemDialog-DUn2lDcH.mjs → dictItemDialog-Dz5Mr5Ma.mjs} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-XWFCCYRJ.js +1 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-XWFCCYRJ.js.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DvwJeXVr.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-ekelbnO8.mjs} +12 -14
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-ekelbnO8.mjs.gz +0 -0
- package/dist/{formConfig-Dt8rFjzz.js → formConfig-1n6B5ew1.js} +1 -1
- package/dist/formConfig-1n6B5ew1.js.gz +0 -0
- package/dist/{formConfig-BvcB1gJm.mjs → formConfig-BJWJfurH.mjs} +4 -4
- package/dist/formConfig-BJWJfurH.mjs.gz +0 -0
- package/dist/{header-BoIddKi5.mjs → header-Cg_sN_ER.mjs} +4 -4
- package/dist/{header-DvlBfweS.js → header-DPrBf4gQ.js} +1 -1
- package/dist/{horizontal-xQ9jV-b6.mjs → horizontal-BR9ji5bG.mjs} +20 -20
- package/dist/horizontal-BR9ji5bG.mjs.gz +0 -0
- package/dist/{horizontal-DcZNsl1y.js → horizontal-Wqvu0fer.js} +1 -1
- package/dist/horizontal-Wqvu0fer.js.gz +0 -0
- package/dist/{hsAttrBtn-D5kdFbDL.js → hsAttrBtn-C7XiMkYD.js} +1 -1
- package/dist/{hsAttrBtn-LLqTQhyB.mjs → hsAttrBtn-qu_t_EUs.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Cpqt8ral.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BApvmceD.mjs} +3 -3
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BApvmceD.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DSW4Tp3_.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CEoFajUK.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CEoFajUK.js.gz +0 -0
- package/dist/{hsAttrForm-j9YSTHQh.mjs → hsAttrForm-BOWnh7DJ.mjs} +1 -1
- package/dist/{hsAttrForm-Ccs1T2tC.js → hsAttrForm-CCPrLpYU.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B4Wu0DC8.js → hsAttrForm.vue_vue_type_script_setup_true_lang-Bv-uy-fw.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Bv-uy-fw.js.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-awfTPL6Q.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-S7GseItj.mjs} +2 -2
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-S7GseItj.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-C-Ejx89P.js → hsBtnConfigList-CohTeKWt.js} +1 -1
- package/dist/hsBtnConfigList-CohTeKWt.js.gz +0 -0
- package/dist/{hsBtnConfigList-Br7XPBNO.mjs → hsBtnConfigList-bziQ6hHD.mjs} +6 -6
- package/dist/hsBtnConfigList-bziQ6hHD.mjs.gz +0 -0
- package/dist/{hsBtnItemConfig-dd6l3lez.js → hsBtnItemConfig-BngCHyu1.js} +1 -1
- package/dist/{hsBtnItemConfig-BCg9xSQY.mjs → hsBtnItemConfig-cZdRW3gj.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CVOw19LU.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BGoPWs1I.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BGoPWs1I.mjs.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C8BAetyC.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-r91hUbO5.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-r91hUbO5.js.gz +0 -0
- package/dist/{hsBtnPanel-Bhaoc6Nb.js → hsBtnPanel-B9M1R9Cy.js} +1 -1
- package/dist/{hsBtnPanel-zzBHavUu.mjs → hsBtnPanel-DAYZZ2sn.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CBGdc52j.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BZEGxN0f.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BZEGxN0f.js.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bi5V55AW.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmWlOlib.mjs} +4 -4
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmWlOlib.mjs.gz +0 -0
- package/dist/{hsExpand-HNiGUSBl.js → hsExpand-D96ANPsh.js} +1 -1
- package/dist/{hsExpand-BNq_W-j8.mjs → hsExpand-LoDajjZF.mjs} +1 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-B_AD_GZk.js +1 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-B_AD_GZk.js.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-Byi87-8R.mjs +185 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-Byi87-8R.mjs.gz +0 -0
- package/dist/{hsFormConfig-Bm2AREye.js → hsFormConfig-BCBJUoGm.js} +1 -1
- package/dist/hsFormConfig-BCBJUoGm.js.gz +0 -0
- package/dist/{hsFormConfig-CwXARfCo.mjs → hsFormConfig-D-3_JmId.mjs} +1 -1
- package/dist/hsFormConfig-D-3_JmId.mjs.gz +0 -0
- package/dist/{hsFormConfigList-DSnMNGGv.js → hsFormConfigList-Bh-fXNB8.js} +1 -1
- package/dist/hsFormConfigList-Bh-fXNB8.js.gz +0 -0
- package/dist/{hsFormConfigList-CgyGSFO0.mjs → hsFormConfigList-Br7bXCfZ.mjs} +10 -10
- package/dist/hsFormConfigList-Br7bXCfZ.mjs.gz +0 -0
- package/dist/{hsFormPanel-Boe37iHq.js → hsFormPanel-BebXsMR3.js} +1 -1
- package/dist/{hsFormPanel-DvX-BeKt.mjs → hsFormPanel-aH7JJMi-.mjs} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dh9Z7aZL.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D2uyL35w.mjs} +19 -19
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D2uyL35w.mjs.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-GEBQaT-M.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-we9vjYy4.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-we9vjYy4.js.gz +0 -0
- package/dist/{hsFormParse-DDBAEOYs.js → hsFormParse-BM_qmnSr.js} +1 -1
- package/dist/{hsFormParse-C5SWQFnk.mjs → hsFormParse-CbIdg0in.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-B8zfLYjr.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DEECH-d6.mjs} +6 -6
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DEECH-d6.mjs.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BuO4qdnK.js → hsFormParse.vue_vue_type_script_setup_true_lang-YGmw7d0d.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-YGmw7d0d.js.gz +0 -0
- package/dist/{hsPanelItem-BxMSr7iC.js → hsPanelItem-COmlixl8.js} +1 -1
- package/dist/{hsPanelItem-DQpdr4hx.mjs → hsPanelItem-DDO5WeOg.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BxarMJvC.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bn6rOIKg.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bn6rOIKg.js.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CDaI-G7l.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CoC09GlB.mjs} +11 -11
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CoC09GlB.mjs.gz +0 -0
- package/dist/{iframes-DkmnSxes.js → iframes-CaAnR97-.js} +1 -1
- package/dist/iframes-CaAnR97-.js.gz +0 -0
- package/dist/{iframes-BulNZvMr.mjs → iframes-DULiE5-l.mjs} +1 -1
- package/dist/iframes-DULiE5-l.mjs.gz +0 -0
- package/dist/{index-BUSM-3aV.mjs → index-15JNu57t.mjs} +1 -1
- package/dist/index-46Mc2Bhm.mjs +140 -0
- package/dist/index-46Mc2Bhm.mjs.gz +0 -0
- package/dist/{index-8Q-gDVEo.js → index-5PPBsmUe.js} +1 -1
- package/dist/index-5PPBsmUe.js.gz +0 -0
- package/dist/{index-BiHUHT76.js → index-5_xxTZvg.js} +1 -1
- package/dist/{index-D_v25HML.js → index-9ivOlkGE.js} +1 -1
- package/dist/index-9ivOlkGE.js.gz +0 -0
- package/dist/{index-BKCmA0xR.mjs → index-A2GNhbSV.mjs} +4 -4
- package/dist/index-A2GNhbSV.mjs.gz +0 -0
- package/dist/{index-nsxMkSve.mjs → index-AzK6YpyM.mjs} +18 -18
- package/dist/index-AzK6YpyM.mjs.gz +0 -0
- package/dist/{index-7V9gCvak.js → index-B-jQiczi.js} +1 -1
- package/dist/{index-DQwW2ABT.mjs → index-B3eRhlo4.mjs} +9 -9
- package/dist/index-B3eRhlo4.mjs.gz +0 -0
- package/dist/index-B6ShQKsB.js +1 -0
- package/dist/index-B6ShQKsB.js.gz +0 -0
- package/dist/{index-BYl5lb0Q.mjs → index-BE2JiR0A.mjs} +1 -1
- package/dist/index-BE2JiR0A.mjs.gz +0 -0
- package/dist/{index-BhS17IOj.mjs → index-BK95ZaSp.mjs} +1 -1
- package/dist/{index-Bz1FEGlN.js → index-B_xljIX4.js} +1 -1
- package/dist/index-B_xljIX4.js.gz +0 -0
- package/dist/index-Bf0oZhKm.mjs +110 -0
- package/dist/index-Bf0oZhKm.mjs.gz +0 -0
- package/dist/{index-4KNdUdAS.mjs → index-BftvDZu6.mjs} +1 -1
- package/dist/{index-CZwhMZeA.mjs → index-Bg0_dIZn.mjs} +5 -5
- package/dist/index-Bg0_dIZn.mjs.gz +0 -0
- package/dist/{index-BC3fLruk.mjs → index-BoWcgwhg.mjs} +1 -1
- package/dist/{index-DttZUSWm.js → index-Bq1eBfcG.js} +1 -1
- package/dist/index-Bq1eBfcG.js.gz +0 -0
- package/dist/index-Br44mBTl.mjs +4 -0
- package/dist/{index-BZaQsr1S.js → index-BueuBXxP.js} +1 -1
- package/dist/index-BueuBXxP.js.gz +0 -0
- package/dist/{index-JF-PAYyZ.mjs → index-Bw9uiBWE.mjs} +15754 -15615
- package/dist/index-Bw9uiBWE.mjs.gz +0 -0
- package/dist/{index-Ew9hfneQ.mjs → index-BxN_NON7.mjs} +4 -4
- package/dist/index-BxN_NON7.mjs.gz +0 -0
- package/dist/{index-DUjG3HTK.mjs → index-BzMNYySZ.mjs} +1 -1
- package/dist/{index-CzLyT-_X.mjs → index-C-EDBb-8.mjs} +1 -1
- package/dist/index-C-EDBb-8.mjs.gz +0 -0
- package/dist/{index-Dqldh1C8.js → index-C1SJ2xO1.js} +1 -1
- package/dist/{index-f5-8godq.mjs → index-C1h8lsOg.mjs} +1 -1
- package/dist/index-C1h8lsOg.mjs.gz +0 -0
- package/dist/{index-DIhOHb1J.mjs → index-C7La1cSv.mjs} +3 -3
- package/dist/index-C7La1cSv.mjs.gz +0 -0
- package/dist/{index-Dr2YVN66.js → index-CAMJ1Tv0.js} +1 -1
- package/dist/index-CAMJ1Tv0.js.gz +0 -0
- package/dist/{index-D4mxv06O.mjs → index-CKaQjmP1.mjs} +2 -2
- package/dist/index-CKaQjmP1.mjs.gz +0 -0
- package/dist/{index-Bi4s-ip1.js → index-CPzhRfl7.js} +1 -1
- package/dist/{index-KPYDmy4S.mjs → index-CRAD0xUe.mjs} +1 -1
- package/dist/index-CRAD0xUe.mjs.gz +0 -0
- package/dist/{index-Huzsq9CP.mjs → index-CU8OAWj2.mjs} +3 -3
- package/dist/index-CU8OAWj2.mjs.gz +0 -0
- package/dist/{index-DG1Dda0j.mjs → index-CWSsL4IU.mjs} +2 -2
- package/dist/index-CWSsL4IU.mjs.gz +0 -0
- package/dist/{index-Cm3mQLmY.js → index-C_BQxunb.js} +1 -1
- package/dist/index-C_BQxunb.js.gz +0 -0
- package/dist/{index-9p5QJuTO.js → index-CcmPEhNi.js} +1 -1
- package/dist/{index-De7AGvf1.js → index-CfABKmi6.js} +1 -1
- package/dist/index-CfABKmi6.js.gz +0 -0
- package/dist/{index-CRUh0CNx.js → index-CjJ_AX55.js} +1 -1
- package/dist/index-CjJ_AX55.js.gz +0 -0
- package/dist/{index-CDiZQind.js → index-ClCwSsgu.js} +1 -1
- package/dist/{index-CVZa644S.js → index-CmcFa_5P.js} +1 -1
- package/dist/{index-Bj75ysIZ.js → index-CqLjvT68.js} +1 -1
- package/dist/index-CqLjvT68.js.gz +0 -0
- package/dist/index-CqugmVM7.js +1 -0
- package/dist/index-CqugmVM7.js.gz +0 -0
- package/dist/{index-CLwzqJ3p.js → index-CvKS7S3v.js} +1 -1
- package/dist/{index-TvmsTPF6.js → index-CvUQBKgs.js} +1 -1
- package/dist/index-CvUQBKgs.js.gz +0 -0
- package/dist/{index-BNyq3bQC.mjs → index-D1fbxZ9I.mjs} +30 -30
- package/dist/index-D1fbxZ9I.mjs.gz +0 -0
- package/dist/{index-DIUZZFT_.js → index-D34o3wiI.js} +1 -1
- package/dist/index-D34o3wiI.js.gz +0 -0
- package/dist/{index-DOtUl4l7.mjs → index-D4pl4IvN.mjs} +1 -1
- package/dist/{index-B4jyLqjg.mjs → index-D7rbPXeC.mjs} +1 -1
- package/dist/index-D7rbPXeC.mjs.gz +0 -0
- package/dist/index-DBmA1l27.js +1 -0
- package/dist/index-DBmA1l27.js.gz +0 -0
- package/dist/{index-DjUsPP3j.js → index-DIas-Z1S.js} +1 -1
- package/dist/{index-ZNGiJUxC.js → index-DJWbHPSb.js} +1 -1
- package/dist/index-DJWbHPSb.js.gz +0 -0
- package/dist/{index-B_cp5xah.mjs → index-DVX8cQCU.mjs} +1 -1
- package/dist/index-DVX8cQCU.mjs.gz +0 -0
- package/dist/{index-CvmrsGxG.mjs → index-DYAsLFvG.mjs} +5 -5
- package/dist/index-DYAsLFvG.mjs.gz +0 -0
- package/dist/index-DcqMHq_a.js +209 -0
- package/dist/index-DcqMHq_a.js.gz +0 -0
- package/dist/{index-C8XLL-9J.js → index-DggTCg9r.js} +1 -1
- package/dist/index-DggTCg9r.js.gz +0 -0
- package/dist/{index-DgCOoN6v.mjs → index-Djh5M0BA.mjs} +7 -7
- package/dist/index-Djh5M0BA.mjs.gz +0 -0
- package/dist/{index-D1UPtbPW.mjs → index-Dkh-8tAW.mjs} +2 -2
- package/dist/{index-S-KkBrLN.mjs → index-DldePHhh.mjs} +1 -1
- package/dist/index-NWz4tGMn.js +1 -0
- package/dist/index-SzGuRoej.mjs +4 -0
- package/dist/{index-BSG2NBwb.js → index-Vcvmv-4s.js} +1 -1
- package/dist/index-Vcvmv-4s.js.gz +0 -0
- package/dist/{index-CNfxtsvW.js → index-bEdg3H8i.js} +1 -1
- package/dist/index-bEdg3H8i.js.gz +0 -0
- package/dist/{index-C-jwcNAz.js → index-j9JhJatK.js} +1 -1
- package/dist/index-j9JhJatK.js.gz +0 -0
- package/dist/{index-CRtH9VIV.mjs → index-qMyQLhsF.mjs} +1 -1
- package/dist/index-rxneiB4a.js +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +11 -8
- package/dist/{index.vue_vue_type_script_setup_true_lang-jL1Qh7yO.mjs → index.vue_vue_type_script_setup_true_lang-BM4tYEPU.mjs} +23 -23
- package/dist/index.vue_vue_type_script_setup_true_lang-BM4tYEPU.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BW_ARLtn.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BW_ARLtn.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C7coICBu.mjs +198 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C7coICBu.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CkgymtOO.mjs +79 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CkgymtOO.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-GOg3zn4W.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-GOg3zn4W.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-SaLX0svL.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-SaLX0svL.js.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-Yb6usMKN.mjs → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CilAgk2B.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CilAgk2B.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DCWbHtHG.js → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DOBxUiCI.js} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DOBxUiCI.js.gz +0 -0
- package/dist/{link-KLtTgF20.js → link-C0x7EHbC.js} +1 -1
- package/dist/link-C0x7EHbC.js.gz +0 -0
- package/dist/{link-BtAxPKnq.mjs → link-HqfRcOO9.mjs} +1 -1
- package/dist/link-HqfRcOO9.mjs.gz +0 -0
- package/dist/{list-DgakExX4.mjs → list-Ww8_8Rrj.mjs} +1 -1
- package/dist/list-Ww8_8Rrj.mjs.gz +0 -0
- package/dist/{list-CcQMHFVV.js → list-eGGsPgG1.js} +1 -1
- package/dist/list-eGGsPgG1.js.gz +0 -0
- package/dist/{main-D-Z0IHT5.js → main-BkfZG9bF.js} +1 -1
- package/dist/main-BkfZG9bF.js.gz +0 -0
- package/dist/{main-CDL9iqNP.mjs → main-z9w2s1Lb.mjs} +7 -7
- package/dist/main-z9w2s1Lb.mjs.gz +0 -0
- package/dist/{mobile-Dd7MddQ1.mjs → mobile-BPxNQLyR.mjs} +1 -1
- package/dist/mobile-BPxNQLyR.mjs.gz +0 -0
- package/dist/{mobile-CNB63nIu.js → mobile-BwOt1n2n.js} +1 -1
- package/dist/mobile-BwOt1n2n.js.gz +0 -0
- package/dist/{parent-CwCetF-b.mjs → parent-BTSNS7l2.mjs} +2 -2
- package/dist/parent-BTSNS7l2.mjs.gz +0 -0
- package/dist/{parent-BBFBFGYF.js → parent-CZyWges-.js} +1 -1
- package/dist/parent-CZyWges-.js.gz +0 -0
- package/dist/{roleItem-BvfrJwgq.js → roleItem-C-5QMUby.js} +1 -1
- package/dist/roleItem-C-5QMUby.js.gz +0 -0
- package/dist/{roleItem-CKi2yDvV.mjs → roleItem-DTRwQt8x.mjs} +15 -15
- package/dist/roleItem-DTRwQt8x.mjs.gz +0 -0
- package/dist/{saveForm-DFyvo4Or.mjs → saveForm-DeYMsgAl.mjs} +1 -1
- package/dist/{saveForm-ClwPC4-K.js → saveForm-EggI0i7M.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CbG_sp1m.js +1 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CbG_sp1m.js.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-dvtEPCUJ.mjs → saveForm.vue_vue_type_script_setup_true_lang-DEM8_jts.mjs} +32 -31
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DEM8_jts.mjs.gz +0 -0
- package/dist/{scan-BX7jFPJI.js → scan-DDdIXywW.js} +1 -1
- package/dist/scan-DDdIXywW.js.gz +0 -0
- package/dist/{scan-BTSL3t_p.mjs → scan-DrYoeKL9.mjs} +1 -1
- package/dist/scan-DrYoeKL9.mjs.gz +0 -0
- package/dist/{search-D03eZBxg.mjs → search-BYAqBHVW.mjs} +9 -9
- package/dist/search-BYAqBHVW.mjs.gz +0 -0
- package/dist/{search-MLS6N5uM.js → search-DyZXtePp.js} +1 -1
- package/dist/search-DyZXtePp.js.gz +0 -0
- package/dist/{selectConfig-o9YRl9BG.mjs → selectConfig-CGhTbWd8.mjs} +1 -1
- package/dist/selectConfig-CGhTbWd8.mjs.gz +0 -0
- package/dist/{selectConfig-BX4wSM5C.js → selectConfig-DzkJEOta.js} +1 -1
- package/dist/selectConfig-DzkJEOta.js.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-Di7cunis.mjs → subItem-BhMi3Xds.mjs} +1 -1
- package/dist/subItem-BhMi3Xds.mjs.gz +0 -0
- package/dist/{subItem-3A3Yqbuh.js → subItem-C8ofBtm7.js} +1 -1
- package/dist/subItem-C8ofBtm7.js.gz +0 -0
- package/dist/{tagsView-CTd2rouD.mjs → tagsView-FJN56Fd-.mjs} +34 -34
- package/dist/tagsView-FJN56Fd-.mjs.gz +0 -0
- package/dist/{tagsView-DodDstaq.js → tagsView-cSePhxN0.js} +2 -2
- package/dist/tagsView-cSePhxN0.js.gz +0 -0
- package/dist/{transverse-BhusggWY.mjs → transverse-CHjpC7Xl.mjs} +2 -2
- package/dist/transverse-CHjpC7Xl.mjs.gz +0 -0
- package/dist/{transverse-lL6a3auH.js → transverse-Dq9Whkj1.js} +1 -1
- package/dist/transverse-Dq9Whkj1.js.gz +0 -0
- package/dist/types/components/business/bcFormTable/utils/exportSelected.d.ts +11 -0
- package/dist/types/components/business/bcFormTable/utils/store.d.ts +150 -4
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useCloneConfigDialog.d.ts +450 -12
- package/dist/types/components/business/bcPageConfig/components/hsTables/useContextMenu.d.ts +75 -2
- package/dist/types/components/business/bcPageConfig/default/baseFormConfig.d.ts +150 -4
- package/dist/types/plugins/index.d.ts +2 -1
- package/dist/types/types/customData.d.ts +2 -2
- package/dist/types/types/formItem/input.d.ts +0 -2
- package/dist/types/types/formItem/inputNumber.d.ts +0 -2
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/download.d.ts +1 -1
- package/dist/types/utils/showMessage.d.ts +3 -0
- package/dist/types/utils/showMessageBox.d.ts +3 -0
- package/dist/types/utils/showNotification.d.ts +3 -0
- package/dist/types/views/config/fieldPool/components/dialog/useDialog.d.ts +1 -1
- package/dist/types/views/config/fieldPool/components/tableAttr/index.vue.d.ts +12 -2
- package/dist/types/views/config/formSetting/components/hsSaveForm/saveFormConfig.d.ts +1 -0
- package/dist/types/views/config/formSetting/components/hsSaveForm/useCloneConfigDialog.d.ts +303 -9
- package/dist/types/views/system/menu/dialog.vue.d.ts +2 -8
- package/dist/{uploadAvatar-DKcZmfA-.js → uploadAvatar-CcewRVY5.js} +2 -2
- package/dist/uploadAvatar-CcewRVY5.js.gz +0 -0
- package/dist/{uploadAvatar-Bx2mLIPF.mjs → uploadAvatar-CzeokMBM.mjs} +207 -208
- package/dist/uploadAvatar-CzeokMBM.mjs.gz +0 -0
- package/dist/{user-C7e7qbDr.js → user-CD2xu_yh.js} +1 -1
- package/dist/user-CD2xu_yh.js.gz +0 -0
- package/dist/{user-Bf6neaeX.mjs → user-x3Eif99U.mjs} +31 -31
- package/dist/user-x3Eif99U.mjs.gz +0 -0
- package/dist/{userNews-Cp1pi2-P.mjs → userNews-D5CAENDL.mjs} +1 -1
- package/dist/userNews-D5CAENDL.mjs.gz +0 -0
- package/dist/{userNews-CYEKYaNC.js → userNews-DOIjslFT.js} +1 -1
- package/dist/userNews-DOIjslFT.js.gz +0 -0
- package/dist/{userSelect-CURqgafQ.js → userSelect-Cjpho-PX.js} +1 -1
- package/dist/{userSelect-JvTnn5Bj.mjs → userSelect-d0qZ-Wer.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BWT29S8E.js → userSelect.vue_vue_type_script_setup_true_lang-CmZb4QTa.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CmZb4QTa.js.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CoiMBZcg.mjs → userSelect.vue_vue_type_script_setup_true_lang-o68ih9-O.mjs} +4 -4
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-o68ih9-O.mjs.gz +0 -0
- package/dist/{vertical-wZUwHLIe.mjs → vertical-BnLYROEO.mjs} +13 -13
- package/dist/vertical-BnLYROEO.mjs.gz +0 -0
- package/dist/{vertical-D8BGi4HU.js → vertical-CzWsUHZu.js} +1 -1
- package/dist/vertical-CzWsUHZu.js.gz +0 -0
- package/package.json +1 -1
- package/dist/401-BjudAH6M.mjs.gz +0 -0
- package/dist/401-BoS7f19w.js.gz +0 -0
- package/dist/account-C1WpM_rY.mjs.gz +0 -0
- package/dist/account-emdyK_Kh.js.gz +0 -0
- package/dist/aside-D2xXK-6W.mjs.gz +0 -0
- package/dist/aside-pm97K6nA.js.gz +0 -0
- package/dist/btnIndex-BDKFsq2C.js.gz +0 -0
- package/dist/btnIndex-BKLtPesa.mjs.gz +0 -0
- package/dist/classic-BFouBkpT.js.gz +0 -0
- package/dist/classic-DnevdDS4.mjs.gz +0 -0
- package/dist/cloneConfigDialog-B9e1UBU2.js +0 -1
- package/dist/cloneConfigDialog-B9e1UBU2.js.gz +0 -0
- package/dist/cloneConfigDialog-Ub-REuhF.mjs +0 -177
- package/dist/cloneConfigDialog-Ub-REuhF.mjs.gz +0 -0
- package/dist/columns-BRNtgMMD.js.gz +0 -0
- package/dist/columns-BU5t9L0S.mjs.gz +0 -0
- package/dist/columnsAside-DfWxSP9g.js.gz +0 -0
- package/dist/columnsAside-tI-XF4Eg.mjs.gz +0 -0
- package/dist/contextmenu-Bsbboczo.js.gz +0 -0
- package/dist/contextmenu-CEO2K9fS.mjs.gz +0 -0
- package/dist/contextmenu-CFxtx2xB.js.gz +0 -0
- package/dist/contextmenu-Ck3QcXcd.mjs.gz +0 -0
- package/dist/contextmenu-Cy8U8ws5.js.gz +0 -0
- package/dist/contextmenu-Dw1AmshJ.mjs.gz +0 -0
- package/dist/defaults-bLzhUzRE.js.gz +0 -0
- package/dist/defaults-mN7b2NTb.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CKmNcwVD.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-wUbKhvWY.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Ct2GJ_9B.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Ct2GJ_9B.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1SVMbbZ.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CsFyR22t.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-RDOYyhKB.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DvwJeXVr.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-LxZKO2GU.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-LxZKO2GU.js.gz +0 -0
- package/dist/formConfig-BvcB1gJm.mjs.gz +0 -0
- package/dist/formConfig-Dt8rFjzz.js.gz +0 -0
- package/dist/horizontal-DcZNsl1y.js.gz +0 -0
- package/dist/horizontal-xQ9jV-b6.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Cpqt8ral.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DSW4Tp3_.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B4Wu0DC8.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-awfTPL6Q.mjs.gz +0 -0
- package/dist/hsBtnConfigList-Br7XPBNO.mjs.gz +0 -0
- package/dist/hsBtnConfigList-C-Ejx89P.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C8BAetyC.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CVOw19LU.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bi5V55AW.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CBGdc52j.js.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CQN3L4gV.js +0 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CQN3L4gV.js.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DdV5S2Ym.mjs +0 -183
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DdV5S2Ym.mjs.gz +0 -0
- package/dist/hsFormConfig-Bm2AREye.js.gz +0 -0
- package/dist/hsFormConfig-CwXARfCo.mjs.gz +0 -0
- package/dist/hsFormConfigList-CgyGSFO0.mjs.gz +0 -0
- package/dist/hsFormConfigList-DSnMNGGv.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dh9Z7aZL.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-GEBQaT-M.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-B8zfLYjr.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BuO4qdnK.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BxarMJvC.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CDaI-G7l.mjs.gz +0 -0
- package/dist/iframes-BulNZvMr.mjs.gz +0 -0
- package/dist/iframes-DkmnSxes.js.gz +0 -0
- package/dist/index-8Q-gDVEo.js.gz +0 -0
- package/dist/index-B4jyLqjg.mjs.gz +0 -0
- package/dist/index-BKCmA0xR.mjs.gz +0 -0
- package/dist/index-BNyq3bQC.mjs.gz +0 -0
- package/dist/index-BSG2NBwb.js.gz +0 -0
- package/dist/index-BYl5lb0Q.mjs.gz +0 -0
- package/dist/index-BZaQsr1S.js.gz +0 -0
- package/dist/index-B_cp5xah.mjs.gz +0 -0
- package/dist/index-Bj75ysIZ.js.gz +0 -0
- package/dist/index-BpkIs56w.js +0 -209
- package/dist/index-BpkIs56w.js.gz +0 -0
- package/dist/index-Bz1FEGlN.js.gz +0 -0
- package/dist/index-C-3h-tHy.mjs +0 -132
- package/dist/index-C-3h-tHy.mjs.gz +0 -0
- package/dist/index-C-jwcNAz.js.gz +0 -0
- package/dist/index-C03Fia6p.js +0 -1
- package/dist/index-C8XLL-9J.js.gz +0 -0
- package/dist/index-CNfxtsvW.js.gz +0 -0
- package/dist/index-COpS1X8H.mjs +0 -114
- package/dist/index-COpS1X8H.mjs.gz +0 -0
- package/dist/index-CRUh0CNx.js.gz +0 -0
- package/dist/index-CZwhMZeA.mjs.gz +0 -0
- package/dist/index-Cm3mQLmY.js.gz +0 -0
- package/dist/index-CvmrsGxG.mjs.gz +0 -0
- package/dist/index-CzLyT-_X.mjs.gz +0 -0
- package/dist/index-D496Y0dQ.js +0 -1
- package/dist/index-D496Y0dQ.js.gz +0 -0
- package/dist/index-D4mxv06O.mjs.gz +0 -0
- package/dist/index-D7e4GC8F.js +0 -1
- package/dist/index-D7e4GC8F.js.gz +0 -0
- package/dist/index-DG1Dda0j.mjs.gz +0 -0
- package/dist/index-DIUZZFT_.js.gz +0 -0
- package/dist/index-DIhOHb1J.mjs.gz +0 -0
- package/dist/index-DQMpgIVY.js +0 -1
- package/dist/index-DQwW2ABT.mjs.gz +0 -0
- package/dist/index-D_v25HML.js.gz +0 -0
- package/dist/index-De7AGvf1.js.gz +0 -0
- package/dist/index-DgCOoN6v.mjs.gz +0 -0
- package/dist/index-Dr2YVN66.js.gz +0 -0
- package/dist/index-DttZUSWm.js.gz +0 -0
- package/dist/index-Ew9hfneQ.mjs.gz +0 -0
- package/dist/index-Huzsq9CP.mjs.gz +0 -0
- package/dist/index-JF-PAYyZ.mjs.gz +0 -0
- package/dist/index-KPYDmy4S.mjs.gz +0 -0
- package/dist/index-LPrk4H-2.js +0 -1
- package/dist/index-LPrk4H-2.js.gz +0 -0
- package/dist/index-TvmsTPF6.js.gz +0 -0
- package/dist/index-ZNGiJUxC.js.gz +0 -0
- package/dist/index-_DWCvaQM.mjs +0 -4
- package/dist/index-f5-8godq.mjs.gz +0 -0
- package/dist/index-nsxMkSve.mjs.gz +0 -0
- package/dist/index-r41TD2Pf.mjs +0 -10
- package/dist/index.vue_vue_type_script_setup_true_lang-BAY2e8xT.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-BAY2e8xT.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CHpXVAEi.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CHpXVAEi.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-QOKvX08s.mjs +0 -91
- package/dist/index.vue_vue_type_script_setup_true_lang-QOKvX08s.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-jL1Qh7yO.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DCWbHtHG.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-Yb6usMKN.mjs.gz +0 -0
- package/dist/link-BtAxPKnq.mjs.gz +0 -0
- package/dist/link-KLtTgF20.js.gz +0 -0
- package/dist/list-CcQMHFVV.js.gz +0 -0
- package/dist/list-DgakExX4.mjs.gz +0 -0
- package/dist/main-CDL9iqNP.mjs.gz +0 -0
- package/dist/main-D-Z0IHT5.js.gz +0 -0
- package/dist/mobile-CNB63nIu.js.gz +0 -0
- package/dist/mobile-Dd7MddQ1.mjs.gz +0 -0
- package/dist/parent-BBFBFGYF.js.gz +0 -0
- package/dist/parent-CwCetF-b.mjs.gz +0 -0
- package/dist/roleItem-BvfrJwgq.js.gz +0 -0
- package/dist/roleItem-CKi2yDvV.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CrTaQv_b.js +0 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CrTaQv_b.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-dvtEPCUJ.mjs.gz +0 -0
- package/dist/scan-BTSL3t_p.mjs.gz +0 -0
- package/dist/scan-BX7jFPJI.js.gz +0 -0
- package/dist/search-D03eZBxg.mjs.gz +0 -0
- package/dist/search-MLS6N5uM.js.gz +0 -0
- package/dist/selectConfig-BX4wSM5C.js.gz +0 -0
- package/dist/selectConfig-o9YRl9BG.mjs.gz +0 -0
- package/dist/subItem-3A3Yqbuh.js.gz +0 -0
- package/dist/subItem-Di7cunis.mjs.gz +0 -0
- package/dist/tagsView-CTd2rouD.mjs.gz +0 -0
- package/dist/tagsView-DodDstaq.js.gz +0 -0
- package/dist/transverse-BhusggWY.mjs.gz +0 -0
- package/dist/transverse-lL6a3auH.js.gz +0 -0
- package/dist/types/views/config/fieldPool/components/tableAttr/useTableAttr.d.ts +0 -1
- package/dist/uploadAvatar-Bx2mLIPF.mjs.gz +0 -0
- package/dist/uploadAvatar-DKcZmfA-.js.gz +0 -0
- package/dist/user-Bf6neaeX.mjs.gz +0 -0
- package/dist/user-C7e7qbDr.js.gz +0 -0
- package/dist/userNews-CYEKYaNC.js.gz +0 -0
- package/dist/userNews-Cp1pi2-P.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-BWT29S8E.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CoiMBZcg.mjs.gz +0 -0
- package/dist/vertical-D8BGi4HU.js.gz +0 -0
- package/dist/vertical-wZUwHLIe.mjs.gz +0 -0
|
@@ -232,7 +232,6 @@ export declare function useCloneConfig(): {
|
|
|
232
232
|
tabindex: string | number;
|
|
233
233
|
'validate-event': boolean;
|
|
234
234
|
'input-style': string | object;
|
|
235
|
-
proxy?: string | undefined;
|
|
236
235
|
};
|
|
237
236
|
rules: {
|
|
238
237
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -256,7 +255,6 @@ export declare function useCloneConfig(): {
|
|
|
256
255
|
id: string;
|
|
257
256
|
'value-on-clear': number | "max" | "min" | null;
|
|
258
257
|
'validate-event': boolean;
|
|
259
|
-
proxy?: string | undefined;
|
|
260
258
|
};
|
|
261
259
|
rules: {
|
|
262
260
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -287,6 +285,81 @@ export declare function useCloneConfig(): {
|
|
|
287
285
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
288
286
|
required: boolean;
|
|
289
287
|
};
|
|
288
|
+
} | {
|
|
289
|
+
attrs: {
|
|
290
|
+
isButtonEnabled: boolean;
|
|
291
|
+
defaultValue: string | number | boolean;
|
|
292
|
+
options: string;
|
|
293
|
+
label: string | number | boolean | object;
|
|
294
|
+
'true-label': string | number;
|
|
295
|
+
'false-label': string | number;
|
|
296
|
+
disabled: boolean;
|
|
297
|
+
border: boolean;
|
|
298
|
+
size: string;
|
|
299
|
+
name: string;
|
|
300
|
+
checked: boolean;
|
|
301
|
+
indeterminate: boolean;
|
|
302
|
+
'validate-event': boolean;
|
|
303
|
+
tabindex: string;
|
|
304
|
+
id: string;
|
|
305
|
+
controls: string;
|
|
306
|
+
};
|
|
307
|
+
groupAttrs: {
|
|
308
|
+
isGroupEnabled: boolean;
|
|
309
|
+
options: string;
|
|
310
|
+
url: string;
|
|
311
|
+
method: string;
|
|
312
|
+
params: string;
|
|
313
|
+
proxy: string;
|
|
314
|
+
permissionsDict: string;
|
|
315
|
+
value: string;
|
|
316
|
+
key: string;
|
|
317
|
+
label: string;
|
|
318
|
+
size: string;
|
|
319
|
+
disabled: boolean;
|
|
320
|
+
min: number;
|
|
321
|
+
max: number;
|
|
322
|
+
'text-color': string;
|
|
323
|
+
fill: string;
|
|
324
|
+
tag: string;
|
|
325
|
+
'validate-event': boolean;
|
|
326
|
+
};
|
|
327
|
+
rules: {
|
|
328
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
329
|
+
required: boolean;
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
attrs: {
|
|
333
|
+
isButtonEnabled: boolean;
|
|
334
|
+
defaultValue: string | number | boolean;
|
|
335
|
+
label: string | number | boolean;
|
|
336
|
+
disabled: boolean;
|
|
337
|
+
border: boolean;
|
|
338
|
+
size: string;
|
|
339
|
+
name: string;
|
|
340
|
+
};
|
|
341
|
+
groupAttrs: {
|
|
342
|
+
isGroupEnabled: boolean;
|
|
343
|
+
options: string;
|
|
344
|
+
url: string;
|
|
345
|
+
method: string;
|
|
346
|
+
params: string;
|
|
347
|
+
proxy: string;
|
|
348
|
+
permissionsDict: string;
|
|
349
|
+
value: string;
|
|
350
|
+
label: string;
|
|
351
|
+
size: string;
|
|
352
|
+
disabled: boolean;
|
|
353
|
+
'text-color': string;
|
|
354
|
+
fill: string;
|
|
355
|
+
'validate-event': boolean;
|
|
356
|
+
name: string;
|
|
357
|
+
id: string;
|
|
358
|
+
};
|
|
359
|
+
rules: {
|
|
360
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
361
|
+
required: boolean;
|
|
362
|
+
};
|
|
290
363
|
};
|
|
291
364
|
};
|
|
292
365
|
sort: number;
|
|
@@ -439,7 +512,6 @@ export declare function useCloneConfig(): {
|
|
|
439
512
|
tabindex: string | number;
|
|
440
513
|
'validate-event': boolean;
|
|
441
514
|
'input-style': string | object;
|
|
442
|
-
proxy?: string | undefined;
|
|
443
515
|
};
|
|
444
516
|
rules: {
|
|
445
517
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -463,7 +535,6 @@ export declare function useCloneConfig(): {
|
|
|
463
535
|
id: string;
|
|
464
536
|
'value-on-clear': number | "max" | "min" | null;
|
|
465
537
|
'validate-event': boolean;
|
|
466
|
-
proxy?: string | undefined;
|
|
467
538
|
};
|
|
468
539
|
rules: {
|
|
469
540
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -494,6 +565,81 @@ export declare function useCloneConfig(): {
|
|
|
494
565
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
495
566
|
required: boolean;
|
|
496
567
|
};
|
|
568
|
+
} | {
|
|
569
|
+
attrs: {
|
|
570
|
+
isButtonEnabled: boolean;
|
|
571
|
+
defaultValue: string | number | boolean;
|
|
572
|
+
options: string;
|
|
573
|
+
label: string | number | boolean | object;
|
|
574
|
+
'true-label': string | number;
|
|
575
|
+
'false-label': string | number;
|
|
576
|
+
disabled: boolean;
|
|
577
|
+
border: boolean;
|
|
578
|
+
size: string;
|
|
579
|
+
name: string;
|
|
580
|
+
checked: boolean;
|
|
581
|
+
indeterminate: boolean;
|
|
582
|
+
'validate-event': boolean;
|
|
583
|
+
tabindex: string;
|
|
584
|
+
id: string;
|
|
585
|
+
controls: string;
|
|
586
|
+
};
|
|
587
|
+
groupAttrs: {
|
|
588
|
+
isGroupEnabled: boolean;
|
|
589
|
+
options: string;
|
|
590
|
+
url: string;
|
|
591
|
+
method: string;
|
|
592
|
+
params: string;
|
|
593
|
+
proxy: string;
|
|
594
|
+
permissionsDict: string;
|
|
595
|
+
value: string;
|
|
596
|
+
key: string;
|
|
597
|
+
label: string;
|
|
598
|
+
size: string;
|
|
599
|
+
disabled: boolean;
|
|
600
|
+
min: number;
|
|
601
|
+
max: number;
|
|
602
|
+
'text-color': string;
|
|
603
|
+
fill: string;
|
|
604
|
+
tag: string;
|
|
605
|
+
'validate-event': boolean;
|
|
606
|
+
};
|
|
607
|
+
rules: {
|
|
608
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
609
|
+
required: boolean;
|
|
610
|
+
};
|
|
611
|
+
} | {
|
|
612
|
+
attrs: {
|
|
613
|
+
isButtonEnabled: boolean;
|
|
614
|
+
defaultValue: string | number | boolean;
|
|
615
|
+
label: string | number | boolean;
|
|
616
|
+
disabled: boolean;
|
|
617
|
+
border: boolean;
|
|
618
|
+
size: string;
|
|
619
|
+
name: string;
|
|
620
|
+
};
|
|
621
|
+
groupAttrs: {
|
|
622
|
+
isGroupEnabled: boolean;
|
|
623
|
+
options: string;
|
|
624
|
+
url: string;
|
|
625
|
+
method: string;
|
|
626
|
+
params: string;
|
|
627
|
+
proxy: string;
|
|
628
|
+
permissionsDict: string;
|
|
629
|
+
value: string;
|
|
630
|
+
label: string;
|
|
631
|
+
size: string;
|
|
632
|
+
disabled: boolean;
|
|
633
|
+
'text-color': string;
|
|
634
|
+
fill: string;
|
|
635
|
+
'validate-event': boolean;
|
|
636
|
+
name: string;
|
|
637
|
+
id: string;
|
|
638
|
+
};
|
|
639
|
+
rules: {
|
|
640
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
641
|
+
required: boolean;
|
|
642
|
+
};
|
|
497
643
|
};
|
|
498
644
|
};
|
|
499
645
|
sort: number;
|
|
@@ -657,7 +803,6 @@ export declare function useCloneConfig(): {
|
|
|
657
803
|
tabindex: string | number;
|
|
658
804
|
'validate-event': boolean;
|
|
659
805
|
'input-style': string | object;
|
|
660
|
-
proxy?: string | undefined;
|
|
661
806
|
};
|
|
662
807
|
rules: {
|
|
663
808
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -681,7 +826,6 @@ export declare function useCloneConfig(): {
|
|
|
681
826
|
id: string;
|
|
682
827
|
'value-on-clear': number | "max" | "min" | null;
|
|
683
828
|
'validate-event': boolean;
|
|
684
|
-
proxy?: string | undefined;
|
|
685
829
|
};
|
|
686
830
|
rules: {
|
|
687
831
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -712,6 +856,81 @@ export declare function useCloneConfig(): {
|
|
|
712
856
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
713
857
|
required: boolean;
|
|
714
858
|
};
|
|
859
|
+
} | {
|
|
860
|
+
attrs: {
|
|
861
|
+
isButtonEnabled: boolean;
|
|
862
|
+
defaultValue: string | number | boolean;
|
|
863
|
+
options: string;
|
|
864
|
+
label: string | number | boolean | object;
|
|
865
|
+
'true-label': string | number;
|
|
866
|
+
'false-label': string | number;
|
|
867
|
+
disabled: boolean;
|
|
868
|
+
border: boolean;
|
|
869
|
+
size: string;
|
|
870
|
+
name: string;
|
|
871
|
+
checked: boolean;
|
|
872
|
+
indeterminate: boolean;
|
|
873
|
+
'validate-event': boolean;
|
|
874
|
+
tabindex: string;
|
|
875
|
+
id: string;
|
|
876
|
+
controls: string;
|
|
877
|
+
};
|
|
878
|
+
groupAttrs: {
|
|
879
|
+
isGroupEnabled: boolean;
|
|
880
|
+
options: string;
|
|
881
|
+
url: string;
|
|
882
|
+
method: string;
|
|
883
|
+
params: string;
|
|
884
|
+
proxy: string;
|
|
885
|
+
permissionsDict: string;
|
|
886
|
+
value: string;
|
|
887
|
+
key: string;
|
|
888
|
+
label: string;
|
|
889
|
+
size: string;
|
|
890
|
+
disabled: boolean;
|
|
891
|
+
min: number;
|
|
892
|
+
max: number;
|
|
893
|
+
'text-color': string;
|
|
894
|
+
fill: string;
|
|
895
|
+
tag: string;
|
|
896
|
+
'validate-event': boolean;
|
|
897
|
+
};
|
|
898
|
+
rules: {
|
|
899
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
900
|
+
required: boolean;
|
|
901
|
+
};
|
|
902
|
+
} | {
|
|
903
|
+
attrs: {
|
|
904
|
+
isButtonEnabled: boolean;
|
|
905
|
+
defaultValue: string | number | boolean;
|
|
906
|
+
label: string | number | boolean;
|
|
907
|
+
disabled: boolean;
|
|
908
|
+
border: boolean;
|
|
909
|
+
size: string;
|
|
910
|
+
name: string;
|
|
911
|
+
};
|
|
912
|
+
groupAttrs: {
|
|
913
|
+
isGroupEnabled: boolean;
|
|
914
|
+
options: string;
|
|
915
|
+
url: string;
|
|
916
|
+
method: string;
|
|
917
|
+
params: string;
|
|
918
|
+
proxy: string;
|
|
919
|
+
permissionsDict: string;
|
|
920
|
+
value: string;
|
|
921
|
+
label: string;
|
|
922
|
+
size: string;
|
|
923
|
+
disabled: boolean;
|
|
924
|
+
'text-color': string;
|
|
925
|
+
fill: string;
|
|
926
|
+
'validate-event': boolean;
|
|
927
|
+
name: string;
|
|
928
|
+
id: string;
|
|
929
|
+
};
|
|
930
|
+
rules: {
|
|
931
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
932
|
+
required: boolean;
|
|
933
|
+
};
|
|
715
934
|
};
|
|
716
935
|
};
|
|
717
936
|
sort: number;
|
|
@@ -875,7 +1094,6 @@ export declare function useCloneConfig(): {
|
|
|
875
1094
|
tabindex: string | number;
|
|
876
1095
|
'validate-event': boolean;
|
|
877
1096
|
'input-style': string | object;
|
|
878
|
-
proxy?: string | undefined;
|
|
879
1097
|
};
|
|
880
1098
|
rules: {
|
|
881
1099
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -899,7 +1117,6 @@ export declare function useCloneConfig(): {
|
|
|
899
1117
|
id: string;
|
|
900
1118
|
'value-on-clear': number | "max" | "min" | null;
|
|
901
1119
|
'validate-event': boolean;
|
|
902
|
-
proxy?: string | undefined;
|
|
903
1120
|
};
|
|
904
1121
|
rules: {
|
|
905
1122
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
@@ -930,6 +1147,81 @@ export declare function useCloneConfig(): {
|
|
|
930
1147
|
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
931
1148
|
required: boolean;
|
|
932
1149
|
};
|
|
1150
|
+
} | {
|
|
1151
|
+
attrs: {
|
|
1152
|
+
isButtonEnabled: boolean;
|
|
1153
|
+
defaultValue: string | number | boolean;
|
|
1154
|
+
options: string;
|
|
1155
|
+
label: string | number | boolean | object;
|
|
1156
|
+
'true-label': string | number;
|
|
1157
|
+
'false-label': string | number;
|
|
1158
|
+
disabled: boolean;
|
|
1159
|
+
border: boolean;
|
|
1160
|
+
size: string;
|
|
1161
|
+
name: string;
|
|
1162
|
+
checked: boolean;
|
|
1163
|
+
indeterminate: boolean;
|
|
1164
|
+
'validate-event': boolean;
|
|
1165
|
+
tabindex: string;
|
|
1166
|
+
id: string;
|
|
1167
|
+
controls: string;
|
|
1168
|
+
};
|
|
1169
|
+
groupAttrs: {
|
|
1170
|
+
isGroupEnabled: boolean;
|
|
1171
|
+
options: string;
|
|
1172
|
+
url: string;
|
|
1173
|
+
method: string;
|
|
1174
|
+
params: string;
|
|
1175
|
+
proxy: string;
|
|
1176
|
+
permissionsDict: string;
|
|
1177
|
+
value: string;
|
|
1178
|
+
key: string;
|
|
1179
|
+
label: string;
|
|
1180
|
+
size: string;
|
|
1181
|
+
disabled: boolean;
|
|
1182
|
+
min: number;
|
|
1183
|
+
max: number;
|
|
1184
|
+
'text-color': string;
|
|
1185
|
+
fill: string;
|
|
1186
|
+
tag: string;
|
|
1187
|
+
'validate-event': boolean;
|
|
1188
|
+
};
|
|
1189
|
+
rules: {
|
|
1190
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
1191
|
+
required: boolean;
|
|
1192
|
+
};
|
|
1193
|
+
} | {
|
|
1194
|
+
attrs: {
|
|
1195
|
+
isButtonEnabled: boolean;
|
|
1196
|
+
defaultValue: string | number | boolean;
|
|
1197
|
+
label: string | number | boolean;
|
|
1198
|
+
disabled: boolean;
|
|
1199
|
+
border: boolean;
|
|
1200
|
+
size: string;
|
|
1201
|
+
name: string;
|
|
1202
|
+
};
|
|
1203
|
+
groupAttrs: {
|
|
1204
|
+
isGroupEnabled: boolean;
|
|
1205
|
+
options: string;
|
|
1206
|
+
url: string;
|
|
1207
|
+
method: string;
|
|
1208
|
+
params: string;
|
|
1209
|
+
proxy: string;
|
|
1210
|
+
permissionsDict: string;
|
|
1211
|
+
value: string;
|
|
1212
|
+
label: string;
|
|
1213
|
+
size: string;
|
|
1214
|
+
disabled: boolean;
|
|
1215
|
+
'text-color': string;
|
|
1216
|
+
fill: string;
|
|
1217
|
+
'validate-event': boolean;
|
|
1218
|
+
name: string;
|
|
1219
|
+
id: string;
|
|
1220
|
+
};
|
|
1221
|
+
rules: {
|
|
1222
|
+
rules: string | Partial<Record<string, Arrayable<FormItemRule>>>[];
|
|
1223
|
+
required: boolean;
|
|
1224
|
+
};
|
|
933
1225
|
};
|
|
934
1226
|
};
|
|
935
1227
|
sort: number;
|
|
@@ -956,7 +1248,9 @@ export declare function useCloneConfig(): {
|
|
|
956
1248
|
columnGap?: number | undefined;
|
|
957
1249
|
isShowLabel?: boolean | undefined;
|
|
958
1250
|
} | undefined;
|
|
959
|
-
BaseForm:
|
|
1251
|
+
BaseForm: {
|
|
1252
|
+
proxy: string;
|
|
1253
|
+
};
|
|
960
1254
|
btns: {
|
|
961
1255
|
id: string;
|
|
962
1256
|
data: {
|
|
@@ -11,10 +11,7 @@ declare const _default: DefineComponent<{
|
|
|
11
11
|
close: FunctionConstructor;
|
|
12
12
|
}, {
|
|
13
13
|
openDialog: (type: string, row?: any) => void;
|
|
14
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
-
success: (...args: any[]) => void;
|
|
16
|
-
refresh: (...args: any[]) => void;
|
|
17
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
14
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
18
15
|
type: {
|
|
19
16
|
type: StringConstructor;
|
|
20
17
|
default: string;
|
|
@@ -24,10 +21,7 @@ declare const _default: DefineComponent<{
|
|
|
24
21
|
default: () => void;
|
|
25
22
|
};
|
|
26
23
|
close: FunctionConstructor;
|
|
27
|
-
}
|
|
28
|
-
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}, {
|
|
24
|
+
}>>, {
|
|
31
25
|
type: string;
|
|
32
26
|
row: Record<string, any>;
|
|
33
27
|
}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-BpkIs56w.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),y=require("./index-DcqMHq_a.js"),O={};O.getData=e=>new Promise((t,i)=>{let s={};Y(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function Y(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=S(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},M(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function M(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function S(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function N(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,l,p,c,n,f,d;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){c=f;break}f++}if(c&&(o=c+4,r=c+10,N(t,o,4)==="Exif"&&(p=t.getUint16(r),l=p===18761,(l||p===19789)&&t.getUint16(r+2,l)===42&&(h=t.getUint32(r+4,l),h>=8&&(n=r+h)))),n){for(i=t.getUint16(n,l),d=0;d<i;d++)if(f=n+d*12+2,t.getUint16(f,l)===274){f+=8,s=t.getUint16(f,l);break}}return s}const I={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let l=h[1];l=l.split("_"),(l[0]>13||l[0]>=13&&l[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let l=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=l},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;O.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),l=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=l-h,c=1;c=c/this.trueWidth>c/this.trueHeight?c/this.trueHeight:c/this.trueWidth,c=c>.1?.1:c;var n=c*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(n):p<0&&t>Math.abs(n)&&(t-=Math.abs(n)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),l=this.trueHeight*this.scale,p=this.trueWidth*this.scale,c,n,f,d;switch(this.rotate){case 1:case-1:case 3:case-3:c=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(l-p)/2,n=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-l)/2,f=c-l+this.cropW,d=n-p+this.cropH;break;default:c=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,n=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=c-p+this.cropW,d=n-l+this.cropH;break}r.x1>=h.x1&&(s=c),r.y1>=h.y1&&(o=n),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=d)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let c=this.getImgAxis(),n=c.x2,f=c.y2;r=c.x1>0?c.x1:0,h=c.y1>0?c.y1:0,s>n&&(s=n),o>f&&(o=f)}const[l,p]=this.checkCropLimitSize();this.$nextTick(()=>{var c=t-this.cropX,n=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-c<l?(this.cropW=l,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-l):this.cropOldW-c>0?(this.cropW=s-this.cropChangeX-c<=s-r?this.cropOldW-c:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-c<=s-r?this.cropChangeX+c:r):(this.cropW=Math.abs(c)+this.cropChangeX<=s?Math.abs(c)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+c<l?this.cropW=l:this.cropOldW+c>0?(this.cropW=this.cropOldW+c+this.cropOffsertX<=s?this.cropOldW+c:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(c+this.cropOldW)<=s-r?Math.abs(c+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(c+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(c+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-n<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-h?this.cropOldH-n:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-n<=o-h?this.cropChangeY+n:h):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+n<p?this.cropH=p: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-h?Math.abs(n+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(n+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var d=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];d<l?(this.cropW=l,this.cropH=this.fixedNumber[1]*l/this.fixedNumber[0]):d+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=d}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let l=o,p=r;return l<i&&(l=i,p=Math.ceil(l/h)),p<s&&(p=s,l=Math.ceil(p*h),l<i&&(l=i,p=Math.ceil(l/h))),l<o&&(l=o,p=Math.ceil(l/h)),p<r&&(p=r,l=Math.ceil(p*h)),{width:l,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,l=s-this.cropY;if(t&&(h=this.cropOffsertX,l=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,l<=0?r=0:l+this.cropH>this.h?r=this.h-this.cropH:r=l,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,l=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let n=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let d=this.cropW*f,C=this.cropH*f,m=o*this.scale*f,v=r*this.scale*f,g=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,u=(this.y-l+this.trueHeight*(1-this.scale)/2)*f;switch(c(d,C),n.save(),this.fillColor&&(n.fillStyle=this.fillColor,n.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(c(d/this.scale,C/this.scale),n.drawImage(i,g/this.scale,u/this.scale,m/this.scale,v/this.scale)):n.drawImage(i,g,u,m,v);break;case 1:case-3:this.full?(c(d/this.scale,C/this.scale),g=g/this.scale+(m/this.scale-v/this.scale)/2,u=u/this.scale+(v/this.scale-m/this.scale)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,u,-g-v/this.scale,m/this.scale,v/this.scale)):(g=g+(m-v)/2,u=u+(v-m)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,u,-g-v,m,v));break;case 2:case-2:this.full?(c(d/this.scale,C/this.scale),n.rotate(s*90*Math.PI/180),g=g/this.scale,u=u/this.scale,n.drawImage(i,-g-m/this.scale,-u-v/this.scale,m/this.scale,v/this.scale)):(n.rotate(s*90*Math.PI/180),n.drawImage(i,-g-m,-u-v,m,v));break;case 3:case-1:this.full?(c(d/this.scale,C/this.scale),g=g/this.scale+(m/this.scale-v/this.scale)/2,u=u/this.scale+(v/this.scale-m/this.scale)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,-u-m/this.scale,g,m/this.scale,v/this.scale)):(g=g+(m-v)/2,u=u+(v-m)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,-u-m,g,m,v));break;default:this.full?(c(d/this.scale,C/this.scale),n.drawImage(i,g/this.scale,u/this.scale,m/this.scale,v/this.scale)):n.drawImage(i,g,u,m,v)}n.restore()}else{let n=o*this.scale,f=r*this.scale,d=t.getContext("2d");switch(d.save(),this.fillColor&&(d.fillStyle=this.fillColor,d.fillRect(0,0,t.width,t.height)),s){case 0:c(n,f),d.drawImage(i,0,0,n,f);break;case 1:case-3:c(f,n),d.rotate(s*90*Math.PI/180),d.drawImage(i,0,-f,n,f);break;case 2:case-2:c(n,f),d.rotate(s*90*Math.PI/180),d.drawImage(i,-n,-f,n,f);break;case 3:case-1:c(f,n),d.rotate(s*90*Math.PI/180),d.drawImage(i,-n,0,n,f);break;default:c(n,f),d.drawImage(i,0,0,n,f)}d.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function c(n,f){t.width=Math.round(n),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
2
2
|
<div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
|
|
3
3
|
<div style="width: ${e}px; height: ${t}px">
|
|
4
4
|
<img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
|
|
5
5
|
scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)">
|
|
6
6
|
</div>
|
|
7
|
-
</div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let e=new Image;e.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=e.width,this.trueHeight=e.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)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},e.src=this.imgs},checkedMode(){let e=1,t=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":t=this.w,e=t/this.trueWidth,i=i*e,i<this.h&&(i=this.h,e=i/this.trueHeight);break;default:try{let o=s[0];if(o.search("px")!==-1){o=o.replace("px",""),t=parseFloat(o);const r=t/this.trueWidth;let h=1,n=s[1];n.search("px")!==-1&&(n=n.replace("px",""),i=parseFloat(n),h=i/this.trueHeight),e=Math.min(r,h)}if(o.search("%")!==-1&&(o=o.replace("%",""),t=parseFloat(o)/100*this.w,e=t/this.trueWidth),s.length===2&&o==="auto"){let r=s[1];r.search("px")!==-1&&(r=r.replace("px",""),i=parseFloat(r),e=i/this.trueHeight),r.search("%")!==-1&&(r=r.replace("%",""),i=parseFloat(r)/100*this.h,e=i/this.trueHeight)}}catch{e=1}}return e},goAutoCrop(e,t){if(this.imgs===""||this.imgs===null)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const h=Math.abs(this.rotate)%2>0;let n=(h?this.trueHeight:this.trueWidth)*this.scale,p=(h?this.trueWidth:this.trueHeight)*this.scale;i=n<i?n:i,s=p<s?p:s}var o=e||parseFloat(this.autoCropWidth),r=t||parseFloat(this.autoCropHeight);(o===0||r===0)&&(o=i*.8,r=s*.8),o=o>i?i:o,r=r>s?s:r,this.fixed&&(r=o/this.fixedNumber[0]*this.fixedNumber[1]),r>this.h&&(r=this.h,o=r/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,r)},changeCrop(e,t){if(this.centerBox){let i=this.getImgAxis();e>i.x2-i.x1&&(e=i.x2-i.x1,t=e/this.fixedNumber[0]*this.fixedNumber[1]),t>i.y2-i.y1&&(t=i.y2-i.y1,e=t/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,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(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(e,t,i),r=this.getCropAxis();o.x1>=r.x1&&(s=!1),o.x2<=r.x2&&(s=!1),o.y1>=r.y1&&(s=!1),o.y2<=r.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";let e=this;var t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(i,s,o){for(var r=atob(this.toDataURL(s,o).split(",")[1]),h=r.length,n=new Uint8Array(h),p=0;p<h;p++)n[p]=r.charCodeAt(p);i(new Blob([n],{type:e.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()}},k={key:0,class:"cropper-box"},T=["src"],A={class:"cropper-view-box"},z=["src"],V={key:1};function B(e,t,i,s,o,r){return a.openBlock(),a.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:t[28]||(t[28]=(...h)=>r.scaleImg&&r.scaleImg(...h)),onMouseout:t[29]||(t[29]=(...h)=>r.cancelScale&&r.cancelScale(...h))},[e.imgs?(a.openBlock(),a.createElementBlock("div",k,[a.withDirectives(a.createElementVNode("div",{class:"cropper-box-canvas",style:a.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("+e.rotate*90+"deg)"})},[a.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,T)],4),[[a.vShow,!e.loading]])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:t[0]||(t[0]=(...h)=>r.startMove&&r.startMove(...h)),onTouchstart:t[1]||(t[1]=(...h)=>r.startMove&&r.startMove(...h))},null,34),a.withDirectives(a.createElementVNode("div",{class:"cropper-crop-box",style:a.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[a.createElementVNode("span",A,[a.createElementVNode("img",{style:a.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("+e.rotate*90+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,z)]),a.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:t[2]||(t[2]=(...h)=>r.cropMove&&r.cropMove(...h)),onTouchstart:t[3]||(t[3]=(...h)=>r.cropMove&&r.cropMove(...h))},null,32),i.info?(a.openBlock(),a.createElementBlock("span",{key:0,class:"crop-info",style:a.normalizeStyle({top:r.cropInfo.top})},a.toDisplayString(r.cropInfo.width)+" × "+a.toDisplayString(r.cropInfo.height),5)):a.createCommentVNode("",!0),i.fixedBox?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",V,[a.createElementVNode("span",{class:"crop-line line-w",onMousedown:t[4]||(t[4]=h=>r.changeCropSize(h,!1,!0,0,1)),onTouchstart:t[5]||(t[5]=h=>r.changeCropSize(h,!1,!0,0,1))},null,32),a.createElementVNode("span",{class:"crop-line line-a",onMousedown:t[6]||(t[6]=h=>r.changeCropSize(h,!0,!1,1,0)),onTouchstart:t[7]||(t[7]=h=>r.changeCropSize(h,!0,!1,1,0))},null,32),a.createElementVNode("span",{class:"crop-line line-s",onMousedown:t[8]||(t[8]=h=>r.changeCropSize(h,!1,!0,0,2)),onTouchstart:t[9]||(t[9]=h=>r.changeCropSize(h,!1,!0,0,2))},null,32),a.createElementVNode("span",{class:"crop-line line-d",onMousedown:t[10]||(t[10]=h=>r.changeCropSize(h,!0,!1,2,0)),onTouchstart:t[11]||(t[11]=h=>r.changeCropSize(h,!0,!1,2,0))},null,32),a.createElementVNode("span",{class:"crop-point point1",onMousedown:t[12]||(t[12]=h=>r.changeCropSize(h,!0,!0,1,1)),onTouchstart:t[13]||(t[13]=h=>r.changeCropSize(h,!0,!0,1,1))},null,32),a.createElementVNode("span",{class:"crop-point point2",onMousedown:t[14]||(t[14]=h=>r.changeCropSize(h,!1,!0,0,1)),onTouchstart:t[15]||(t[15]=h=>r.changeCropSize(h,!1,!0,0,1))},null,32),a.createElementVNode("span",{class:"crop-point point3",onMousedown:t[16]||(t[16]=h=>r.changeCropSize(h,!0,!0,2,1)),onTouchstart:t[17]||(t[17]=h=>r.changeCropSize(h,!0,!0,2,1))},null,32),a.createElementVNode("span",{class:"crop-point point4",onMousedown:t[18]||(t[18]=h=>r.changeCropSize(h,!0,!1,1,0)),onTouchstart:t[19]||(t[19]=h=>r.changeCropSize(h,!0,!1,1,0))},null,32),a.createElementVNode("span",{class:"crop-point point5",onMousedown:t[20]||(t[20]=h=>r.changeCropSize(h,!0,!1,2,0)),onTouchstart:t[21]||(t[21]=h=>r.changeCropSize(h,!0,!1,2,0))},null,32),a.createElementVNode("span",{class:"crop-point point6",onMousedown:t[22]||(t[22]=h=>r.changeCropSize(h,!0,!0,1,2)),onTouchstart:t[23]||(t[23]=h=>r.changeCropSize(h,!0,!0,1,2))},null,32),a.createElementVNode("span",{class:"crop-point point7",onMousedown:t[24]||(t[24]=h=>r.changeCropSize(h,!1,!0,0,2)),onTouchstart:t[25]||(t[25]=h=>r.changeCropSize(h,!1,!0,0,2))},null,32),a.createElementVNode("span",{class:"crop-point point8",onMousedown:t[26]||(t[26]=h=>r.changeCropSize(h,!0,!0,2,2)),onTouchstart:t[27]||(t[27]=h=>r.changeCropSize(h,!0,!0,2,2))},null,32)]))],4),[[a.vShow,e.cropping]])],544)}const $=H._export_sfc(L,[["render",B],["__scopeId","data-v-168a3964"]]),P={class:"h-full"},R={class:"avatar-upload-preview"},U=["src"],D=a.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:t,postUpdateFile:i}=H.useFileController(),s=e;let o=a.ref({});a.onMounted(async()=>{o.value=await H.systemStore.get("userInfo")});const{proxy:r}=a.getCurrentInstance();let{avatar:h}=a.toRefs(s);const n=a.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:""}),p=a.ref({}),l=a.ref({});a.ref(!1);let c=d=>{d=="left"&&l.value.rotateLeft(),d=="right"&&l.value.rotateRight()},f=d=>{const w=d||1;l.value.changeScale(w)},u=()=>{l.value.refresh()};const x=d=>{p.value=d};let g=()=>{},m=d=>{if(["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(d.type)){const C=new FileReader;C.readAsDataURL(d),C.onload=()=>{n.img=C.result,n.filename=d.name}}else return r.$message.error("图片格式有误,请重新上传"),!1},v=()=>{n.img||r.$message.warning("请先选择图片"),l.value.getCropBlob(async d=>{const w=await t({data:{file:d},proxy:s.proxyId}),C=await i({data:{id:o.value.id,attchIdArrStr:w.data.id,attachType:2},proxy:s.proxyId});s.close(C)})};return a.onMounted(()=>{setTimeout(()=>{n.img=h.value},100)}),(d,w)=>{const C=a.resolveComponent("el-col"),O=a.resolveComponent("el-row"),X=a.resolveComponent("bc-icon"),y=a.resolveComponent("el-button"),Y=a.resolveComponent("hs-upload");return a.openBlock(),a.createElementBlock("div",P,[a.createVNode(O,null,{default:a.withCtx(()=>[a.createVNode(C,{xs:24,md:13,style:{height:"350px"}},{default:a.withCtx(()=>[a.createVNode($,{ref_key:"cropperRef",ref:l,img:n.img,info:!0,infoTrue:n.infoTrue,"auto-crop":n.autoCrop,"fixed-box":n.fixedBox,fixedNumber:n.fixedNumber,fixed:n.fixed,centerBox:n.centerBox,outputType:"png",onRealTime:x},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])]),_:1}),a.createVNode(C,{xs:24,md:11,style:{height:"350px"}},{default:a.withCtx(()=>[a.createElementVNode("div",R,[a.createElementVNode("img",{src:p.value.url,style:a.normalizeStyle(p.value.img)},null,12,U)])]),_:1})]),_:1}),a.createVNode(O,{class:"ptb2 py-3"},{default:a.withCtx(()=>[a.createVNode(C,{lg:2,md:2},{default:a.withCtx(()=>[a.createVNode(Y,{action:"#","http-request":a.unref(g),"show-file-list":!1,"before-upload":a.unref(m),accept:"image/*"},{default:a.withCtx(()=>[a.createVNode(y,{size:"default"},{default:a.withCtx(()=>[a.createTextVNode(" 选择 "),a.createVNode(X,{name:"ele-UploadFilled"})]),_:1})]),_:1},8,["http-request","before-upload"])]),_:1}),a.createVNode(C,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",icon:"ele-Plus",onClick:w[0]||(w[0]=b=>a.unref(f)(1))})]),_:1}),a.createVNode(C,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",icon:"ele-Minus",onClick:w[1]||(w[1]=b=>a.unref(f)(-1))})]),_:1}),a.createVNode(C,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",icon:"ele-RefreshLeft",onClick:w[2]||(w[2]=b=>a.unref(c)("left"))})]),_:1}),a.createVNode(C,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",icon:"ele-RefreshRight",onClick:w[3]||(w[3]=b=>a.unref(c)("right"))})]),_:1}),a.createVNode(C,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",onClick:w[4]||(w[4]=b=>a.unref(u)())},{default:a.withCtx(()=>[a.createTextVNode("重 置")]),_:1})]),_:1}),a.createVNode(C,{lg:{span:1,offset:7},md:2},{default:a.withCtx(()=>[a.createVNode(y,{size:"default",type:"primary",onClick:w[5]||(w[5]=b=>a.unref(v)())},{default:a.withCtx(()=>[a.createTextVNode("提 交")]),_:1})]),_:1})]),_:1})])}}}),F=H._export_sfc(D,[["__scopeId","data-v-bb4f029a"]]);exports.default=F;
|
|
7
|
+
</div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let e=new Image;e.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=e.width,this.trueHeight=e.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)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},e.src=this.imgs},checkedMode(){let e=1,t=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":t=this.w,e=t/this.trueWidth,i=i*e,i<this.h&&(i=this.h,e=i/this.trueHeight);break;default:try{let o=s[0];if(o.search("px")!==-1){o=o.replace("px",""),t=parseFloat(o);const r=t/this.trueWidth;let h=1,l=s[1];l.search("px")!==-1&&(l=l.replace("px",""),i=parseFloat(l),h=i/this.trueHeight),e=Math.min(r,h)}if(o.search("%")!==-1&&(o=o.replace("%",""),t=parseFloat(o)/100*this.w,e=t/this.trueWidth),s.length===2&&o==="auto"){let r=s[1];r.search("px")!==-1&&(r=r.replace("px",""),i=parseFloat(r),e=i/this.trueHeight),r.search("%")!==-1&&(r=r.replace("%",""),i=parseFloat(r)/100*this.h,e=i/this.trueHeight)}}catch{e=1}}return e},goAutoCrop(e,t){if(this.imgs===""||this.imgs===null)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const h=Math.abs(this.rotate)%2>0;let l=(h?this.trueHeight:this.trueWidth)*this.scale,p=(h?this.trueWidth:this.trueHeight)*this.scale;i=l<i?l:i,s=p<s?p:s}var o=e||parseFloat(this.autoCropWidth),r=t||parseFloat(this.autoCropHeight);(o===0||r===0)&&(o=i*.8,r=s*.8),o=o>i?i:o,r=r>s?s:r,this.fixed&&(r=o/this.fixedNumber[0]*this.fixedNumber[1]),r>this.h&&(r=this.h,o=r/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,r)},changeCrop(e,t){if(this.centerBox){let i=this.getImgAxis();e>i.x2-i.x1&&(e=i.x2-i.x1,t=e/this.fixedNumber[0]*this.fixedNumber[1]),t>i.y2-i.y1&&(t=i.y2-i.y1,e=t/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,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(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(e,t,i),r=this.getCropAxis();o.x1>=r.x1&&(s=!1),o.x2<=r.x2&&(s=!1),o.y1>=r.y1&&(s=!1),o.y2<=r.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";let e=this;var t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(i,s,o){for(var r=atob(this.toDataURL(s,o).split(",")[1]),h=r.length,l=new Uint8Array(h),p=0;p<h;p++)l[p]=r.charCodeAt(p);i(new Blob([l],{type:e.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()}},L={key:0,class:"cropper-box"},k=["src"],T={class:"cropper-view-box"},A=["src"],z={key:1};function V(e,t,i,s,o,r){return a.openBlock(),a.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:t[28]||(t[28]=(...h)=>r.scaleImg&&r.scaleImg(...h)),onMouseout:t[29]||(t[29]=(...h)=>r.cancelScale&&r.cancelScale(...h))},[e.imgs?(a.openBlock(),a.createElementBlock("div",L,[a.withDirectives(a.createElementVNode("div",{class:"cropper-box-canvas",style:a.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("+e.rotate*90+"deg)"})},[a.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,k)],4),[[a.vShow,!e.loading]])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:t[0]||(t[0]=(...h)=>r.startMove&&r.startMove(...h)),onTouchstart:t[1]||(t[1]=(...h)=>r.startMove&&r.startMove(...h))},null,34),a.withDirectives(a.createElementVNode("div",{class:"cropper-crop-box",style:a.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[a.createElementVNode("span",T,[a.createElementVNode("img",{style:a.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("+e.rotate*90+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,A)]),a.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:t[2]||(t[2]=(...h)=>r.cropMove&&r.cropMove(...h)),onTouchstart:t[3]||(t[3]=(...h)=>r.cropMove&&r.cropMove(...h))},null,32),i.info?(a.openBlock(),a.createElementBlock("span",{key:0,class:"crop-info",style:a.normalizeStyle({top:r.cropInfo.top})},a.toDisplayString(r.cropInfo.width)+" × "+a.toDisplayString(r.cropInfo.height),5)):a.createCommentVNode("",!0),i.fixedBox?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",z,[a.createElementVNode("span",{class:"crop-line line-w",onMousedown:t[4]||(t[4]=h=>r.changeCropSize(h,!1,!0,0,1)),onTouchstart:t[5]||(t[5]=h=>r.changeCropSize(h,!1,!0,0,1))},null,32),a.createElementVNode("span",{class:"crop-line line-a",onMousedown:t[6]||(t[6]=h=>r.changeCropSize(h,!0,!1,1,0)),onTouchstart:t[7]||(t[7]=h=>r.changeCropSize(h,!0,!1,1,0))},null,32),a.createElementVNode("span",{class:"crop-line line-s",onMousedown:t[8]||(t[8]=h=>r.changeCropSize(h,!1,!0,0,2)),onTouchstart:t[9]||(t[9]=h=>r.changeCropSize(h,!1,!0,0,2))},null,32),a.createElementVNode("span",{class:"crop-line line-d",onMousedown:t[10]||(t[10]=h=>r.changeCropSize(h,!0,!1,2,0)),onTouchstart:t[11]||(t[11]=h=>r.changeCropSize(h,!0,!1,2,0))},null,32),a.createElementVNode("span",{class:"crop-point point1",onMousedown:t[12]||(t[12]=h=>r.changeCropSize(h,!0,!0,1,1)),onTouchstart:t[13]||(t[13]=h=>r.changeCropSize(h,!0,!0,1,1))},null,32),a.createElementVNode("span",{class:"crop-point point2",onMousedown:t[14]||(t[14]=h=>r.changeCropSize(h,!1,!0,0,1)),onTouchstart:t[15]||(t[15]=h=>r.changeCropSize(h,!1,!0,0,1))},null,32),a.createElementVNode("span",{class:"crop-point point3",onMousedown:t[16]||(t[16]=h=>r.changeCropSize(h,!0,!0,2,1)),onTouchstart:t[17]||(t[17]=h=>r.changeCropSize(h,!0,!0,2,1))},null,32),a.createElementVNode("span",{class:"crop-point point4",onMousedown:t[18]||(t[18]=h=>r.changeCropSize(h,!0,!1,1,0)),onTouchstart:t[19]||(t[19]=h=>r.changeCropSize(h,!0,!1,1,0))},null,32),a.createElementVNode("span",{class:"crop-point point5",onMousedown:t[20]||(t[20]=h=>r.changeCropSize(h,!0,!1,2,0)),onTouchstart:t[21]||(t[21]=h=>r.changeCropSize(h,!0,!1,2,0))},null,32),a.createElementVNode("span",{class:"crop-point point6",onMousedown:t[22]||(t[22]=h=>r.changeCropSize(h,!0,!0,1,2)),onTouchstart:t[23]||(t[23]=h=>r.changeCropSize(h,!0,!0,1,2))},null,32),a.createElementVNode("span",{class:"crop-point point7",onMousedown:t[24]||(t[24]=h=>r.changeCropSize(h,!1,!0,0,2)),onTouchstart:t[25]||(t[25]=h=>r.changeCropSize(h,!1,!0,0,2))},null,32),a.createElementVNode("span",{class:"crop-point point8",onMousedown:t[26]||(t[26]=h=>r.changeCropSize(h,!0,!0,2,2)),onTouchstart:t[27]||(t[27]=h=>r.changeCropSize(h,!0,!0,2,2))},null,32)]))],4),[[a.vShow,e.cropping]])],544)}const B=y._export_sfc(I,[["render",V],["__scopeId","data-v-168a3964"]]),P={class:"h-full"},$={class:"avatar-upload-preview"},R=["src"],U=a.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:t,postUpdateFile:i}=y.useFileController(),s=e;let o=a.ref({});a.onMounted(async()=>{o.value=await y.systemStore.get("userInfo")});let{avatar:r}=a.toRefs(s);const h=a.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:""}),l=a.ref({}),p=a.ref({});a.ref(!1);let c=g=>{g=="left"&&p.value.rotateLeft(),g=="right"&&p.value.rotateRight()},n=g=>{const u=g||1;p.value.changeScale(u)},f=()=>{p.value.refresh()};const d=g=>{l.value=g};let C=()=>{},m=g=>{if(["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(g.type)){const w=new FileReader;w.readAsDataURL(g),w.onload=()=>{h.img=w.result,h.filename=g.name}}else return y.ElMessage.error("图片格式有误,请重新上传"),!1},v=()=>{h.img||y.ElMessage.warning("请先选择图片"),p.value.getCropBlob(async g=>{const u=await t({data:{file:g},proxy:s.proxyId}),w=await i({data:{id:o.value.id,attchIdArrStr:u.data.id,attachType:2},proxy:s.proxyId});s.close(w)})};return a.onMounted(()=>{setTimeout(()=>{h.img=r.value},100)}),(g,u)=>{const w=a.resolveComponent("el-col"),H=a.resolveComponent("el-row"),W=a.resolveComponent("bc-icon"),x=a.resolveComponent("el-button"),X=a.resolveComponent("hs-upload");return a.openBlock(),a.createElementBlock("div",P,[a.createVNode(H,null,{default:a.withCtx(()=>[a.createVNode(w,{xs:24,md:13,style:{height:"350px"}},{default:a.withCtx(()=>[a.createVNode(B,{ref_key:"cropperRef",ref:p,img:h.img,info:!0,infoTrue:h.infoTrue,"auto-crop":h.autoCrop,"fixed-box":h.fixedBox,fixedNumber:h.fixedNumber,fixed:h.fixed,centerBox:h.centerBox,outputType:"png",onRealTime:d},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])]),_:1}),a.createVNode(w,{xs:24,md:11,style:{height:"350px"}},{default:a.withCtx(()=>[a.createElementVNode("div",$,[a.createElementVNode("img",{src:l.value.url,style:a.normalizeStyle(l.value.img)},null,12,R)])]),_:1})]),_:1}),a.createVNode(H,{class:"ptb2 py-3"},{default:a.withCtx(()=>[a.createVNode(w,{lg:2,md:2},{default:a.withCtx(()=>[a.createVNode(X,{action:"#","http-request":a.unref(C),"show-file-list":!1,"before-upload":a.unref(m),accept:"image/*"},{default:a.withCtx(()=>[a.createVNode(x,{size:"default"},{default:a.withCtx(()=>[a.createTextVNode(" 选择 "),a.createVNode(W,{name:"ele-UploadFilled"})]),_:1})]),_:1},8,["http-request","before-upload"])]),_:1}),a.createVNode(w,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",icon:"ele-Plus",onClick:u[0]||(u[0]=b=>a.unref(n)(1))})]),_:1}),a.createVNode(w,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",icon:"ele-Minus",onClick:u[1]||(u[1]=b=>a.unref(n)(-1))})]),_:1}),a.createVNode(w,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",icon:"ele-RefreshLeft",onClick:u[2]||(u[2]=b=>a.unref(c)("left"))})]),_:1}),a.createVNode(w,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",icon:"ele-RefreshRight",onClick:u[3]||(u[3]=b=>a.unref(c)("right"))})]),_:1}),a.createVNode(w,{lg:{span:1,offset:1},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",onClick:u[4]||(u[4]=b=>a.unref(f)())},{default:a.withCtx(()=>[a.createTextVNode("重 置")]),_:1})]),_:1}),a.createVNode(w,{lg:{span:1,offset:7},md:2},{default:a.withCtx(()=>[a.createVNode(x,{size:"default",type:"primary",onClick:u[5]||(u[5]=b=>a.unref(v)())},{default:a.withCtx(()=>[a.createTextVNode("提 交")]),_:1})]),_:1})]),_:1})])}}}),D=y._export_sfc(U,[["__scopeId","data-v-99513ec9"]]);exports.default=D;
|
|
Binary file
|