hs-admin-ui 2.4.8 → 2.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-DbkcK6la.js → 401-BAVwK8ZD.js} +1 -1
- package/dist/401-BAVwK8ZD.js.gz +0 -0
- package/dist/{401-64lHzCMo.mjs → 401-BFCiQoyf.mjs} +1 -1
- package/dist/401-BFCiQoyf.mjs.gz +0 -0
- package/dist/{404-C8fZ8_5d.js → 404-0MPQ9NTg.js} +1 -1
- package/dist/{404-C8fZ8_5d.js.gz → 404-0MPQ9NTg.js.gz} +0 -0
- package/dist/{404-DsqxDLKX.mjs → 404-BwR7RP3i.mjs} +1 -1
- package/dist/404-BwR7RP3i.mjs.gz +0 -0
- package/dist/{account-BNsgeI4A.mjs → account-BLA71pLc.mjs} +24 -24
- package/dist/account-BLA71pLc.mjs.gz +0 -0
- package/dist/{account-DcoCi5ao.js → account-CCUhbZrr.js} +1 -1
- package/dist/account-CCUhbZrr.js.gz +0 -0
- package/dist/{aside-Bwrx0otp.js → aside-CzaTl78b.js} +1 -1
- package/dist/aside-CzaTl78b.js.gz +0 -0
- package/dist/{aside-Vo-hKk5C.mjs → aside-Dkyccm6h.mjs} +6 -6
- package/dist/aside-Dkyccm6h.mjs.gz +0 -0
- package/dist/{baseFormConfig-Cg6u_0K4.mjs → baseFormConfig-CxwD1A9i.mjs} +9 -9
- package/dist/{baseFormConfig-Cg6u_0K4.mjs.gz → baseFormConfig-CxwD1A9i.mjs.gz} +0 -0
- package/dist/{btnIndex-CATXOG-B.js → btnIndex-j-IbQipl.js} +1 -1
- package/dist/btnIndex-j-IbQipl.js.gz +0 -0
- package/dist/{btnIndex-DAs-06gk.mjs → btnIndex-ujHndEGn.mjs} +2 -2
- package/dist/btnIndex-ujHndEGn.mjs.gz +0 -0
- package/dist/{classic-8C0AISsV.js → classic-5sxwgtMa.js} +1 -1
- package/dist/classic-5sxwgtMa.js.gz +0 -0
- package/dist/{classic-wE0BAEQC.mjs → classic-DqN7tCm6.mjs} +2 -2
- package/dist/classic-DqN7tCm6.mjs.gz +0 -0
- package/dist/{columns-BoolHXCX.mjs → columns-cF0ZVXQ9.mjs} +2 -2
- package/dist/columns-cF0ZVXQ9.mjs.gz +0 -0
- package/dist/{columns-DZn6ejCR.js → columns-zz8VoI6z.js} +1 -1
- package/dist/columns-zz8VoI6z.js.gz +0 -0
- package/dist/{columnsAside-CHRSGlrv.js → columnsAside-CXluAPUf.js} +1 -1
- package/dist/columnsAside-CXluAPUf.js.gz +0 -0
- package/dist/{columnsAside-DbPq0zM0.mjs → columnsAside-aOQ1ZOWR.mjs} +8 -8
- package/dist/columnsAside-aOQ1ZOWR.mjs.gz +0 -0
- package/dist/{contextmenu-DWFxsRoK.mjs → contextmenu-BJYWvm31.mjs} +1 -1
- package/dist/contextmenu-BJYWvm31.mjs.gz +0 -0
- package/dist/{contextmenu-CAh6aMSH.js → contextmenu-Bi0QlyJR.js} +1 -1
- package/dist/contextmenu-Bi0QlyJR.js.gz +0 -0
- package/dist/{contextmenu-DEzJmsJa.mjs → contextmenu-BkflCzzV.mjs} +1 -1
- package/dist/contextmenu-BkflCzzV.mjs.gz +0 -0
- package/dist/{contextmenu-yiJLVPvn.js → contextmenu-CUi0iA1W.js} +1 -1
- package/dist/contextmenu-CUi0iA1W.js.gz +0 -0
- package/dist/{contextmenu-DR48VkmW.js → contextmenu-CquGMRVo.js} +1 -1
- package/dist/contextmenu-CquGMRVo.js.gz +0 -0
- package/dist/{contextmenu-DFZJtv50.mjs → contextmenu-DHXvo8kS.mjs} +1 -1
- package/dist/contextmenu-DHXvo8kS.mjs.gz +0 -0
- package/dist/{defaults-K9SoflSj.js → defaults-BslcBW2i.js} +1 -1
- package/dist/defaults-BslcBW2i.js.gz +0 -0
- package/dist/{defaults-Bh5W2N6D.mjs → defaults-By3dWckd.mjs} +2 -2
- package/dist/defaults-By3dWckd.mjs.gz +0 -0
- package/dist/{dialog-Dy4j83D0.mjs → dialog-B7V9LP8t.mjs} +1 -1
- package/dist/{dialog-BgF1T5jx.mjs → dialog-BVLdASoo.mjs} +1 -1
- package/dist/{dialog-Bc85d8yh.mjs → dialog-CN7SwRry.mjs} +1 -1
- package/dist/{dialog-DXM4iyJH.js → dialog-DBKHWHxu.js} +1 -1
- package/dist/{dialog-Cz251mEG.js → dialog-DCJO2RV0.js} +1 -1
- package/dist/{dialog-CxJFEMIO.js → dialog-DUd57hJb.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C9fme4ZS.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-kgayshuq.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-kgayshuq.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DKRFjDDN.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-savZmSuW.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-savZmSuW.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-5y9VbXe5.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-5y9VbXe5.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BeK-mYmp.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BE7uyaJ-.mjs} +14 -14
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BE7uyaJ-.mjs.gz +0 -0
- package/dist/{dictDialog-C03dwSc_.js → dictDialog-BI-zP7kl.js} +1 -1
- package/dist/{dictDialog-uVh7YxMV.mjs → dictDialog-BVAHH9ZA.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-GKKmojnL.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BVCBS4w2.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BVCBS4w2.js.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D7vlkhvL.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DsuKwxlr.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DsuKwxlr.mjs.gz +0 -0
- package/dist/{dictItemDialog-BhFNI3pJ.mjs → dictItemDialog-BzqFtbyS.mjs} +1 -1
- package/dist/{dictItemDialog-dVIbrqGw.js → dictItemDialog-CLGxfjku.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DqS5vwjG.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-COLgSjiK.js} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-COLgSjiK.js.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-_QAXCIsz.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-zGLFclDP.mjs} +2 -2
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-zGLFclDP.mjs.gz +0 -0
- package/dist/formConfig-BGjBbkor.js +1 -0
- package/dist/formConfig-BGjBbkor.js.gz +0 -0
- package/dist/{formConfig-DeG2Iyuk.mjs → formConfig-FedaCiJj.mjs} +88 -82
- package/dist/formConfig-FedaCiJj.mjs.gz +0 -0
- package/dist/{header-CHwiR9S6.mjs → header-DfINRz9e.mjs} +5 -5
- package/dist/{header-B8ILHPSB.js → header-YZ9vQs00.js} +1 -1
- package/dist/{horizontal-Cu_Pqejb.js → horizontal-DjMy94vS.js} +1 -1
- package/dist/horizontal-DjMy94vS.js.gz +0 -0
- package/dist/{horizontal-G8Py98cz.mjs → horizontal-t0S0Vi-X.mjs} +22 -22
- package/dist/horizontal-t0S0Vi-X.mjs.gz +0 -0
- package/dist/{hsAttrBtn-DOUY8Nkp.js → hsAttrBtn-HQVwLtDl.js} +1 -1
- package/dist/{hsAttrBtn-BtU_n9md.mjs → hsAttrBtn-eaLiRBWB.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DK7uZZwG.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BOWgDbM9.mjs} +3 -3
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BOWgDbM9.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DRQjGH-p.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-C-jCI5Xy.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-C-jCI5Xy.js.gz +0 -0
- package/dist/{hsAttrForm-wc7f57p-.mjs → hsAttrForm-BHWPFpQQ.mjs} +1 -1
- package/dist/{hsAttrForm-DNYQ7FXE.js → hsAttrForm-Dq6toVqT.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CMCnPDLI.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-B7z_CgBJ.mjs} +27 -27
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B7z_CgBJ.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-bPMSjog8.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BXATutss.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BXATutss.js.gz +0 -0
- package/dist/{hsBtnConfigList-DptyThmG.mjs → hsBtnConfigList-DITCpPws.mjs} +19 -19
- package/dist/hsBtnConfigList-DITCpPws.mjs.gz +0 -0
- package/dist/hsBtnConfigList-DzTbiJtl.js +1 -0
- package/dist/hsBtnConfigList-DzTbiJtl.js.gz +0 -0
- package/dist/{hsBtnItemConfig-Dl0ilXdI.js → hsBtnItemConfig-BnIvs55v.js} +1 -1
- package/dist/{hsBtnItemConfig-DMrFmv2V.mjs → hsBtnItemConfig-DuxB30Cm.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BMJ5Cyfv.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B0UVTR1f.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B0UVTR1f.mjs.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BiVKFN2c.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BX0l3j5b.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BX0l3j5b.js.gz +0 -0
- package/dist/{hsBtnPanel-C2nPAL-y.js → hsBtnPanel-DO669jZr.js} +1 -1
- package/dist/{hsBtnPanel-BswSNRPS.mjs → hsBtnPanel-zWbF1RO4.mjs} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C8PLE_5F.js +1 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C8PLE_5F.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D3sPTjFz.mjs +60 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D3sPTjFz.mjs.gz +0 -0
- package/dist/{hsExpand-DqXKpdTg.mjs → hsExpand-C7wm6l9g.mjs} +1 -1
- package/dist/{hsExpand-D9UegKaN.js → hsExpand-CKcGRrGP.js} +1 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BAZU89vL.mjs +179 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BAZU89vL.mjs.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BuQaF4s8.js +1 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BuQaF4s8.js.gz +0 -0
- package/dist/{hsFormConfig-DtwY_O7Y.mjs → hsFormConfig-B4VXcA-f.mjs} +1 -1
- package/dist/hsFormConfig-B4VXcA-f.mjs.gz +0 -0
- package/dist/{hsFormConfig-CtF82OQK.js → hsFormConfig-ee2CKP9x.js} +1 -1
- package/dist/hsFormConfig-ee2CKP9x.js.gz +0 -0
- package/dist/{hsFormConfigList-CxQGpCu3.mjs → hsFormConfigList-9QsLT-GB.mjs} +28 -28
- package/dist/hsFormConfigList-9QsLT-GB.mjs.gz +0 -0
- package/dist/hsFormConfigList-BrcrSKUf.js +1 -0
- package/dist/hsFormConfigList-BrcrSKUf.js.gz +0 -0
- package/dist/{hsFormPanel-D0YPFrbJ.js → hsFormPanel-Cb3OxTwa.js} +1 -1
- package/dist/{hsFormPanel-BXxdzNjc.mjs → hsFormPanel-Egwl43I0.mjs} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-0iR3rbZF.mjs +181 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-0iR3rbZF.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BOHHn1yy.js +1 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BOHHn1yy.js.gz +0 -0
- package/dist/{hsFormParse-DPze4Coo.js → hsFormParse-Cega7BRE.js} +1 -1
- package/dist/{hsFormParse-CKYHQhO6.mjs → hsFormParse-D1VBmOlw.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DUdsLd4O.mjs +99 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DUdsLd4O.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DveIWCR5.js +1 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DveIWCR5.js.gz +0 -0
- package/dist/{hsPageTree--MpsCPO9.js → hsPageTree-BStVnA_4.js} +1 -1
- package/dist/hsPageTree-BStVnA_4.js.gz +0 -0
- package/dist/{hsPageTree--203ljsh.mjs → hsPageTree-BmISBauW.mjs} +1 -1
- package/dist/hsPageTree-BmISBauW.mjs.gz +0 -0
- package/dist/{hsPanelItem-DhHVKh3r.mjs → hsPanelItem-B7Ik4nsu.mjs} +1 -1
- package/dist/{hsPanelItem-DyvNd5nF.js → hsPanelItem-CEQG5_kr.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-COb3-uQF.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CtIELfQs.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CtIELfQs.mjs.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-W3_dfrl6.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-QilRPXXr.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-QilRPXXr.js.gz +0 -0
- package/dist/{iframes-CgWL2mh_.mjs → iframes-BWp__q1C.mjs} +1 -1
- package/dist/iframes-BWp__q1C.mjs.gz +0 -0
- package/dist/{iframes-C8QIho31.js → iframes-CtXpo--p.js} +1 -1
- package/dist/iframes-CtXpo--p.js.gz +0 -0
- package/dist/index-2czTDvY4.mjs +10 -0
- package/dist/{index-BbFkd_ET.mjs → index-3eQjgLFX.mjs} +1 -1
- package/dist/index-3eQjgLFX.mjs.gz +0 -0
- package/dist/{index-ie0pu6-i.js → index-A9VaVEZn.js} +1 -1
- package/dist/index-A9VaVEZn.js.gz +0 -0
- package/dist/{index-Cn4o8_e6.js → index-B7aJdXP-.js} +1 -1
- package/dist/index-B7aJdXP-.js.gz +0 -0
- package/dist/{index-DooL4D2m.js → index-BARFxpKz.js} +1 -1
- package/dist/index-BARFxpKz.js.gz +0 -0
- package/dist/{index-BqMeORT8.js → index-BBax1_wu.js} +58 -58
- package/dist/index-BBax1_wu.js.gz +0 -0
- package/dist/{index-YWPQRNAc.mjs → index-BG4hAHpC.mjs} +3 -3
- package/dist/index-BG4hAHpC.mjs.gz +0 -0
- package/dist/{index-BtV6Ojg0.js → index-BGSQ_qg6.js} +1 -1
- package/dist/index-BKUENSKM.mjs +4 -0
- package/dist/index-BLk1XGeS.js +1 -0
- package/dist/{index-D75EHNbl.js → index-BNE8gmaR.js} +1 -1
- package/dist/index-BNE8gmaR.js.gz +0 -0
- package/dist/{index-BBsRYEJ2.mjs → index-BNg34gF7.mjs} +1 -1
- package/dist/index-BNg34gF7.mjs.gz +0 -0
- package/dist/{index-CZEk2uuD.js → index-BPhEcAE0.js} +1 -1
- package/dist/index-BPhEcAE0.js.gz +0 -0
- package/dist/{index-GrXFIiZB.js → index-BXDatOhX.js} +1 -1
- package/dist/index-BXDatOhX.js.gz +0 -0
- package/dist/{index-BKKLgeIP.mjs → index-Bg9H7ift.mjs} +2 -2
- package/dist/index-Bg9H7ift.mjs.gz +0 -0
- package/dist/{index-U59PaJSj.mjs → index-BjAodqHP.mjs} +1 -1
- package/dist/index-BjAodqHP.mjs.gz +0 -0
- package/dist/{index-B1raTmax.js → index-BjefoZMo.js} +1 -1
- package/dist/index-BjefoZMo.js.gz +0 -0
- package/dist/{index-JvrrT5pW.mjs → index-BmxNd2f-.mjs} +1 -1
- package/dist/index-BmxNd2f-.mjs.gz +0 -0
- package/dist/{index--ihpOdY4.js → index-Bq0RRMpO.js} +1 -1
- package/dist/index-Bq0RRMpO.js.gz +0 -0
- package/dist/{index-CZN0MUjL.mjs → index-BwpwDgPH.mjs} +1 -1
- package/dist/index-BwpwDgPH.mjs.gz +0 -0
- package/dist/{index-CFc1C9bJ.mjs → index-CB13GwSQ.mjs} +10 -10
- package/dist/index-CB13GwSQ.mjs.gz +0 -0
- package/dist/{index-Boirba8l.js → index-CBeQOIOv.js} +1 -1
- package/dist/index-CBeQOIOv.js.gz +0 -0
- package/dist/{index-CofTOm67.js → index-CCzIwB_6.js} +1 -1
- package/dist/index-CCzIwB_6.js.gz +0 -0
- package/dist/{index--KI4wxdx.js → index-CFFpylUq.js} +1 -1
- package/dist/index-CFFpylUq.js.gz +0 -0
- package/dist/{index-bUoy94L3.mjs → index-CGn8srWW.mjs} +1 -1
- package/dist/{index-4Cd2GzH0.js → index-CL-tHdxq.js} +1 -1
- package/dist/index-CL-tHdxq.js.gz +0 -0
- package/dist/{index-D-PopS0v.js → index-CNqWXabi.js} +1 -1
- package/dist/{index-_vU8f8LX.mjs → index-CTBJTqc5.mjs} +9 -9
- package/dist/index-CTBJTqc5.mjs.gz +0 -0
- package/dist/{index-Bf-hLkbG.mjs → index-CWY9Vlsw.mjs} +2 -2
- package/dist/{index-B--bKorS.mjs → index-CZOl8VK-.mjs} +3 -3
- package/dist/index-CZOl8VK-.mjs.gz +0 -0
- package/dist/{index-BmcfcrOr.js → index-CkBmiXbA.js} +1 -1
- package/dist/index-CkBmiXbA.js.gz +0 -0
- package/dist/{index-DYK-fKdB.mjs → index-CmoL1bqe.mjs} +8 -8
- package/dist/index-CmoL1bqe.mjs.gz +0 -0
- package/dist/index-CpTs5obR.mjs +10 -0
- package/dist/index-Cy7o9Mut.js +1 -0
- package/dist/index-Cy7o9Mut.js.gz +0 -0
- package/dist/{index-DGXvVwRf.mjs → index-D01ols6m.mjs} +1 -1
- package/dist/index-D01ols6m.mjs.gz +0 -0
- package/dist/{index-_VfgCJj_.mjs → index-D3l58K9U.mjs} +14304 -14247
- package/dist/index-D3l58K9U.mjs.gz +0 -0
- package/dist/{index-DCkKzPTt.js → index-D9TPYtNE.js} +1 -1
- package/dist/{index-2yZ4xbb2.js → index-DGGEYl1V.js} +1 -1
- package/dist/{index-BR4EEWMp.mjs → index-DIuDAOfV.mjs} +1 -1
- package/dist/index-DIuDAOfV.mjs.gz +0 -0
- package/dist/{index-CFHeeB0c.js → index-DMEAsXBt.js} +1 -1
- package/dist/index-DMEAsXBt.js.gz +0 -0
- package/dist/{index-DmfiBTcr.mjs → index-DRZ9PzmF.mjs} +1 -1
- package/dist/{index-Cl3bXnsU.js → index-DSzA3ZX9.js} +1 -1
- package/dist/index-DSzA3ZX9.js.gz +0 -0
- package/dist/{index-DHMuF48T.js → index-DVCXJQAQ.js} +1 -1
- package/dist/index-DVCXJQAQ.js.gz +0 -0
- package/dist/{index-Bi532Hym.mjs → index-DVSxJdEg.mjs} +6 -6
- package/dist/index-DVSxJdEg.mjs.gz +0 -0
- package/dist/{index-B8M-g8IC.mjs → index-DXKiJV9Y.mjs} +6 -6
- package/dist/index-DXKiJV9Y.mjs.gz +0 -0
- package/dist/{index-BNd7ke5y.js → index-DXejbHFG.js} +1 -1
- package/dist/index-DXejbHFG.js.gz +0 -0
- package/dist/{index-C3tHtNK5.mjs → index-D_3FNfry.mjs} +1 -1
- package/dist/{index-NopyyVIU.mjs → index-D_M-jOPO.mjs} +4 -4
- package/dist/index-D_M-jOPO.mjs.gz +0 -0
- package/dist/{index-B3eLF3IA.mjs → index-DaknhMZ1.mjs} +1 -1
- package/dist/{index-DciauRYY.js → index-Dfr4V9IQ.js} +1 -1
- package/dist/index-Dfr4V9IQ.js.gz +0 -0
- package/dist/{index-CWSuGxfJ.mjs → index-Dpr7V0k-.mjs} +6 -6
- package/dist/index-Dpr7V0k-.mjs.gz +0 -0
- package/dist/{index-omizXLVl.js → index-DtP5ilhq.js} +1 -1
- package/dist/index-DtP5ilhq.js.gz +0 -0
- package/dist/{index-DZLeTvHl.mjs → index-GhSeoUvD.mjs} +27 -27
- package/dist/index-GhSeoUvD.mjs.gz +0 -0
- package/dist/{index-Ck9OGptr.js → index-I6YQKZZF.js} +1 -1
- package/dist/{index-Ckd_TMtz.mjs → index-QBIR5AA3.mjs} +3 -3
- package/dist/index-QBIR5AA3.mjs.gz +0 -0
- package/dist/{index-BgCmEuDM.mjs → index-X8iowlcX.mjs} +1 -1
- package/dist/index-YnzcVE6T.js +1 -0
- package/dist/{index-CKSrFPvf.js → index-Z0WMard-.js} +1 -1
- package/dist/index-aU0zvG8d.js +1 -0
- package/dist/{index-YhTIsnU6.mjs → index-caNrfeWO.mjs} +3 -3
- package/dist/index-caNrfeWO.mjs.gz +0 -0
- package/dist/{index-Dte64AZZ.mjs → index-i9o3Msz_.mjs} +5 -5
- package/dist/index-i9o3Msz_.mjs.gz +0 -0
- package/dist/{index-C5-nTloL.js → index-jeBhzyQe.js} +1 -1
- package/dist/index-jeBhzyQe.js.gz +0 -0
- package/dist/index-q-Q5z1lx.mjs +10 -0
- package/dist/{index-BSZx1_1L.mjs → index-qKwglS7q.mjs} +4 -4
- package/dist/index-qKwglS7q.mjs.gz +0 -0
- package/dist/{index-DlnV6s5C.js → index-ryLMrFjc.js} +1 -1
- package/dist/{index-Cai_9SXL.js → index-tiKPybHo.js} +1 -1
- package/dist/index-tiKPybHo.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DEFcIrwY.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DEFcIrwY.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DwKGaDpN.mjs +104 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DwKGaDpN.mjs.gz +0 -0
- package/dist/{link-idqK1s-z.js → link-BWPaWXon.js} +1 -1
- package/dist/link-BWPaWXon.js.gz +0 -0
- package/dist/{link-DJ-f3CoE.mjs → link-CBd2cfwX.mjs} +1 -1
- package/dist/link-CBd2cfwX.mjs.gz +0 -0
- package/dist/{list-rfh0NgZM.mjs → list-Bjny64aC.mjs} +1 -1
- package/dist/list-Bjny64aC.mjs.gz +0 -0
- package/dist/{list-ChgbQP_U.js → list-CpxWuU5-.js} +1 -1
- package/dist/list-CpxWuU5-.js.gz +0 -0
- package/dist/{main-BWn3kZJk.mjs → main-CjEgQjbA.mjs} +3 -3
- package/dist/main-CjEgQjbA.mjs.gz +0 -0
- package/dist/{main-DDX-Yobj.js → main-a89ADXCr.js} +1 -1
- package/dist/main-a89ADXCr.js.gz +0 -0
- package/dist/{mobile-bWFwe5iK.mjs → mobile-BPCIcT3f.mjs} +1 -1
- package/dist/mobile-BPCIcT3f.mjs.gz +0 -0
- package/dist/{mobile-ZYaVbkRp.js → mobile-DRM8SwLq.js} +1 -1
- package/dist/mobile-DRM8SwLq.js.gz +0 -0
- package/dist/{parent-I_x9K7ip.js → parent-DgKx9ZyB.js} +1 -1
- package/dist/parent-DgKx9ZyB.js.gz +0 -0
- package/dist/{parent-DViyd_NO.mjs → parent-N0DdiIW_.mjs} +2 -2
- package/dist/parent-N0DdiIW_.mjs.gz +0 -0
- package/dist/{roleItem-PxXjsSty.mjs → roleItem-C1Z-YKL6.mjs} +11 -11
- package/dist/roleItem-C1Z-YKL6.mjs.gz +0 -0
- package/dist/{roleItem-BA94QAiM.js → roleItem-CKPoyrOi.js} +1 -1
- package/dist/roleItem-CKPoyrOi.js.gz +0 -0
- package/dist/{saveForm-DPkD8wxc.js → saveForm-C0emCKBN.js} +1 -1
- package/dist/{saveForm-BJFdWhhT.mjs → saveForm-D-C0WaCp.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-CRJ7RDXR.mjs → saveForm.vue_vue_type_script_setup_true_lang-CbQDBDA9.mjs} +88 -75
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CbQDBDA9.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Dzs22b92.js +1 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Dzs22b92.js.gz +0 -0
- package/dist/{scan-CtcJdWno.js → scan-BPNLBbkB.js} +1 -1
- package/dist/scan-BPNLBbkB.js.gz +0 -0
- package/dist/{scan-DP13u034.mjs → scan-DvLuvPce.mjs} +1 -1
- package/dist/scan-DvLuvPce.mjs.gz +0 -0
- package/dist/{search-BSrD7nni.mjs → search-9rAvvezK.mjs} +9 -9
- package/dist/search-9rAvvezK.mjs.gz +0 -0
- package/dist/{search-DN064plk.js → search-C3yMsn-o.js} +1 -1
- package/dist/search-C3yMsn-o.js.gz +0 -0
- package/dist/{selectConfig-LIszpB0k.mjs → selectConfig-CZInJFzG.mjs} +1 -1
- package/dist/selectConfig-CZInJFzG.mjs.gz +0 -0
- package/dist/{selectConfig-CmqyZpLa.js → selectConfig-Cyvji3VC.js} +1 -1
- package/dist/selectConfig-Cyvji3VC.js.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-BV0PO1k_.js → subItem-BvoaPWLh.js} +1 -1
- package/dist/subItem-BvoaPWLh.js.gz +0 -0
- package/dist/{subItem-CLMMvpUW.mjs → subItem-CgALB8PF.mjs} +1 -1
- package/dist/subItem-CgALB8PF.mjs.gz +0 -0
- package/dist/{tagsView-J9bPwMB_.js → tagsView-BY0Q6Tua.js} +2 -2
- package/dist/tagsView-BY0Q6Tua.js.gz +0 -0
- package/dist/{tagsView-Bj3WUOGU.mjs → tagsView-CFPrcLwd.mjs} +57 -57
- package/dist/tagsView-CFPrcLwd.mjs.gz +0 -0
- package/dist/{transverse-CfRl88PS.js → transverse-BKrBJkRd.js} +1 -1
- package/dist/transverse-BKrBJkRd.js.gz +0 -0
- package/dist/{transverse-Br5kTUhE.mjs → transverse-ohpFZMXm.mjs} +2 -2
- package/dist/transverse-ohpFZMXm.mjs.gz +0 -0
- package/dist/types/components/business/bcBox/utils.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +9 -9
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useCloneConfigDialog.d.ts +2 -12
- package/dist/types/utils/request/interceptors/response/index.d.ts +1 -1
- package/dist/types/views/config/fieldPool/components/dialog/index.vue.d.ts +20 -2
- package/dist/types/views/config/fieldPool/components/dialog/useDialog.d.ts +41 -0
- package/dist/types/views/config/fieldPool/components/formAttr/index.vue.d.ts +3 -0
- package/dist/types/views/config/fieldPool/components/formAttr/useFormAttr.d.ts +1 -0
- package/dist/types/views/config/fieldPool/components/searchFormAttr/index.vue.d.ts +3 -0
- package/dist/types/views/config/fieldPool/components/searchFormAttr/useSearchFormAttr.d.ts +1 -0
- package/dist/types/views/config/fieldPool/components/tableAttr/index.vue.d.ts +3 -0
- package/dist/types/views/config/fieldPool/components/tableAttr/useTableAttr.d.ts +1 -0
- package/dist/types/views/config/formSetting/components/hsExpand/src/hsExpand.vue.d.ts +6 -2
- package/dist/types/views/config/formSetting/components/hsExpand/useExpand.d.ts +1 -6
- package/dist/types/views/config/formSetting/components/hsForm/src/hsFormPanel.vue.d.ts +2 -0
- package/dist/types/views/config/formSetting/components/hsSaveForm/saveFormConfig.d.ts +13 -0
- package/dist/types/views/config/formSetting/formConfig.vue.d.ts +1 -1
- package/dist/{uploadAvatar-D_dZe5um.mjs → uploadAvatar-rkMjNisf.mjs} +16 -16
- package/dist/uploadAvatar-rkMjNisf.mjs.gz +0 -0
- package/dist/{uploadAvatar-B6QLxBWt.js → uploadAvatar-wJixhvmK.js} +1 -1
- package/dist/uploadAvatar-wJixhvmK.js.gz +0 -0
- package/dist/{user-C_EjOF8D.mjs → user-8GMwUzXG.mjs} +19 -19
- package/dist/user-8GMwUzXG.mjs.gz +0 -0
- package/dist/{user-BMYdGQPB.js → user-CWCd14Tt.js} +1 -1
- package/dist/user-CWCd14Tt.js.gz +0 -0
- package/dist/{userNews-B1vE6TKC.js → userNews-B2JYxiGm.js} +1 -1
- package/dist/userNews-B2JYxiGm.js.gz +0 -0
- package/dist/{userNews-q7ilI9ih.mjs → userNews-BW3l-g23.mjs} +1 -1
- package/dist/userNews-BW3l-g23.mjs.gz +0 -0
- package/dist/{userSelect-Dn0TdeGJ.js → userSelect-C5PtQSUU.js} +1 -1
- package/dist/{userSelect-DRSLbl5s.mjs → userSelect-CzrMnNyC.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-bgH9ntIw.mjs → userSelect.vue_vue_type_script_setup_true_lang-BvR0hl6i.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-BvR0hl6i.mjs.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CTvnnkgN.js → userSelect.vue_vue_type_script_setup_true_lang-cGk56gh7.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-cGk56gh7.js.gz +0 -0
- package/dist/{vertical-B5J_aNPu.mjs → vertical-DNlE6a1i.mjs} +8 -8
- package/dist/vertical-DNlE6a1i.mjs.gz +0 -0
- package/dist/{vertical-DK83PAeF.js → vertical-ZhNQSBSI.js} +1 -1
- package/dist/vertical-ZhNQSBSI.js.gz +0 -0
- package/package.json +2 -1
- package/dist/401-64lHzCMo.mjs.gz +0 -0
- package/dist/401-DbkcK6la.js.gz +0 -0
- package/dist/404-DsqxDLKX.mjs.gz +0 -0
- package/dist/account-BNsgeI4A.mjs.gz +0 -0
- package/dist/account-DcoCi5ao.js.gz +0 -0
- package/dist/aside-Bwrx0otp.js.gz +0 -0
- package/dist/aside-Vo-hKk5C.mjs.gz +0 -0
- package/dist/btnIndex-CATXOG-B.js.gz +0 -0
- package/dist/btnIndex-DAs-06gk.mjs.gz +0 -0
- package/dist/classic-8C0AISsV.js.gz +0 -0
- package/dist/classic-wE0BAEQC.mjs.gz +0 -0
- package/dist/columns-BoolHXCX.mjs.gz +0 -0
- package/dist/columns-DZn6ejCR.js.gz +0 -0
- package/dist/columnsAside-CHRSGlrv.js.gz +0 -0
- package/dist/columnsAside-DbPq0zM0.mjs.gz +0 -0
- package/dist/contextmenu-CAh6aMSH.js.gz +0 -0
- package/dist/contextmenu-DEzJmsJa.mjs.gz +0 -0
- package/dist/contextmenu-DFZJtv50.mjs.gz +0 -0
- package/dist/contextmenu-DR48VkmW.js.gz +0 -0
- package/dist/contextmenu-DWFxsRoK.mjs.gz +0 -0
- package/dist/contextmenu-yiJLVPvn.js.gz +0 -0
- package/dist/defaults-Bh5W2N6D.mjs.gz +0 -0
- package/dist/defaults-K9SoflSj.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C9fme4ZS.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DKRFjDDN.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BeK-mYmp.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-kCkp1qTm.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-kCkp1qTm.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D7vlkhvL.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-GKKmojnL.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DqS5vwjG.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-_QAXCIsz.mjs.gz +0 -0
- package/dist/formConfig-CDuYjS2M.js +0 -1
- package/dist/formConfig-CDuYjS2M.js.gz +0 -0
- package/dist/formConfig-DeG2Iyuk.mjs.gz +0 -0
- package/dist/horizontal-Cu_Pqejb.js.gz +0 -0
- package/dist/horizontal-G8Py98cz.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DK7uZZwG.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DRQjGH-p.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CMCnPDLI.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-bPMSjog8.js.gz +0 -0
- package/dist/hsBtnConfigList-DSkoknF0.js +0 -1
- package/dist/hsBtnConfigList-DSkoknF0.js.gz +0 -0
- package/dist/hsBtnConfigList-DptyThmG.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BMJ5Cyfv.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BiVKFN2c.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BYeWNpVH.js +0 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BYeWNpVH.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CjTK5yHR.mjs +0 -56
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CjTK5yHR.mjs.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CvMRhbHE.js +0 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CvMRhbHE.js.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DDVoOp75.mjs +0 -148
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DDVoOp75.mjs.gz +0 -0
- package/dist/hsFormConfig-CtF82OQK.js.gz +0 -0
- package/dist/hsFormConfig-DtwY_O7Y.mjs.gz +0 -0
- package/dist/hsFormConfigList-BwTgjT2d.js +0 -1
- package/dist/hsFormConfigList-BwTgjT2d.js.gz +0 -0
- package/dist/hsFormConfigList-CxQGpCu3.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DCS-dApO.mjs +0 -176
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DCS-dApO.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dcbqyv1f.js +0 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dcbqyv1f.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-D5ZKgrer.mjs +0 -99
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-D5ZKgrer.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-ID6hZVyw.js +0 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-ID6hZVyw.js.gz +0 -0
- package/dist/hsPageTree--203ljsh.mjs.gz +0 -0
- package/dist/hsPageTree--MpsCPO9.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-COb3-uQF.mjs.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-W3_dfrl6.js.gz +0 -0
- package/dist/iframes-C8QIho31.js.gz +0 -0
- package/dist/iframes-CgWL2mh_.mjs.gz +0 -0
- package/dist/index--KI4wxdx.js.gz +0 -0
- package/dist/index--ihpOdY4.js.gz +0 -0
- package/dist/index-4Cd2GzH0.js.gz +0 -0
- package/dist/index-B--bKorS.mjs.gz +0 -0
- package/dist/index-B1raTmax.js.gz +0 -0
- package/dist/index-B8M-g8IC.mjs.gz +0 -0
- package/dist/index-BBsRYEJ2.mjs.gz +0 -0
- package/dist/index-BKKLgeIP.mjs.gz +0 -0
- package/dist/index-BNd7ke5y.js.gz +0 -0
- package/dist/index-BR4EEWMp.mjs.gz +0 -0
- package/dist/index-BSZx1_1L.mjs.gz +0 -0
- package/dist/index-BbFkd_ET.mjs.gz +0 -0
- package/dist/index-Bi532Hym.mjs.gz +0 -0
- package/dist/index-BmcfcrOr.js.gz +0 -0
- package/dist/index-Boirba8l.js.gz +0 -0
- package/dist/index-BqMeORT8.js.gz +0 -0
- package/dist/index-C4SSaZKi.mjs +0 -4
- package/dist/index-C5-nTloL.js.gz +0 -0
- package/dist/index-CFHeeB0c.js.gz +0 -0
- package/dist/index-CFc1C9bJ.mjs.gz +0 -0
- package/dist/index-CNSpbFne.js +0 -1
- package/dist/index-CNSpbFne.js.gz +0 -0
- package/dist/index-CWSuGxfJ.mjs.gz +0 -0
- package/dist/index-CZEk2uuD.js.gz +0 -0
- package/dist/index-CZN0MUjL.mjs.gz +0 -0
- package/dist/index-Cai_9SXL.js.gz +0 -0
- package/dist/index-Ckd_TMtz.mjs.gz +0 -0
- package/dist/index-Cl3bXnsU.js.gz +0 -0
- package/dist/index-Cn4o8_e6.js.gz +0 -0
- package/dist/index-CofTOm67.js.gz +0 -0
- package/dist/index-D75EHNbl.js.gz +0 -0
- package/dist/index-DGXvVwRf.mjs.gz +0 -0
- package/dist/index-DHMuF48T.js.gz +0 -0
- package/dist/index-DYK-fKdB.mjs.gz +0 -0
- package/dist/index-DZLeTvHl.mjs.gz +0 -0
- package/dist/index-DciauRYY.js.gz +0 -0
- package/dist/index-DooL4D2m.js.gz +0 -0
- package/dist/index-Dte64AZZ.mjs.gz +0 -0
- package/dist/index-GrXFIiZB.js.gz +0 -0
- package/dist/index-JvrrT5pW.mjs.gz +0 -0
- package/dist/index-NopyyVIU.mjs.gz +0 -0
- package/dist/index-U59PaJSj.mjs.gz +0 -0
- package/dist/index-YWPQRNAc.mjs.gz +0 -0
- package/dist/index-YhTIsnU6.mjs.gz +0 -0
- package/dist/index-_VfgCJj_.mjs.gz +0 -0
- package/dist/index-_vU8f8LX.mjs.gz +0 -0
- package/dist/index-ie0pu6-i.js.gz +0 -0
- package/dist/index-omizXLVl.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BO-nR5tp.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CdN0U_-3.mjs +0 -30
- package/dist/link-DJ-f3CoE.mjs.gz +0 -0
- package/dist/link-idqK1s-z.js.gz +0 -0
- package/dist/list-ChgbQP_U.js.gz +0 -0
- package/dist/list-rfh0NgZM.mjs.gz +0 -0
- package/dist/main-BWn3kZJk.mjs.gz +0 -0
- package/dist/main-DDX-Yobj.js.gz +0 -0
- package/dist/mobile-ZYaVbkRp.js.gz +0 -0
- package/dist/mobile-bWFwe5iK.mjs.gz +0 -0
- package/dist/parent-DViyd_NO.mjs.gz +0 -0
- package/dist/parent-I_x9K7ip.js.gz +0 -0
- package/dist/roleItem-BA94QAiM.js.gz +0 -0
- package/dist/roleItem-PxXjsSty.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-BnFxpJGj.js +0 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-BnFxpJGj.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CRJ7RDXR.mjs.gz +0 -0
- package/dist/scan-CtcJdWno.js.gz +0 -0
- package/dist/scan-DP13u034.mjs.gz +0 -0
- package/dist/search-BSrD7nni.mjs.gz +0 -0
- package/dist/search-DN064plk.js.gz +0 -0
- package/dist/selectConfig-CmqyZpLa.js.gz +0 -0
- package/dist/selectConfig-LIszpB0k.mjs.gz +0 -0
- package/dist/subItem-BV0PO1k_.js.gz +0 -0
- package/dist/subItem-CLMMvpUW.mjs.gz +0 -0
- package/dist/tagsView-Bj3WUOGU.mjs.gz +0 -0
- package/dist/tagsView-J9bPwMB_.js.gz +0 -0
- package/dist/transverse-Br5kTUhE.mjs.gz +0 -0
- package/dist/transverse-CfRl88PS.js.gz +0 -0
- package/dist/types/utils/request/interceptors/response/file-handler.interceptor.d.ts +0 -4
- package/dist/uploadAvatar-B6QLxBWt.js.gz +0 -0
- package/dist/uploadAvatar-D_dZe5um.mjs.gz +0 -0
- package/dist/user-BMYdGQPB.js.gz +0 -0
- package/dist/user-C_EjOF8D.mjs.gz +0 -0
- package/dist/userNews-B1vE6TKC.js.gz +0 -0
- package/dist/userNews-q7ilI9ih.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CTvnnkgN.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-bgH9ntIw.mjs.gz +0 -0
- package/dist/vertical-B5J_aNPu.mjs.gz +0 -0
- package/dist/vertical-DK83PAeF.js.gz +0 -0
|
@@ -19,12 +19,24 @@ declare const newConfig: {
|
|
|
19
19
|
el: string;
|
|
20
20
|
required: boolean;
|
|
21
21
|
show?: undefined;
|
|
22
|
+
attr?: undefined;
|
|
22
23
|
} | {
|
|
23
24
|
prop: string;
|
|
24
25
|
label: string;
|
|
25
26
|
el: string;
|
|
26
27
|
show: boolean;
|
|
27
28
|
required: boolean;
|
|
29
|
+
attr?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
prop: string;
|
|
32
|
+
label: string;
|
|
33
|
+
el: string;
|
|
34
|
+
attr: {
|
|
35
|
+
'active-value': string;
|
|
36
|
+
'inactive-value': string;
|
|
37
|
+
};
|
|
38
|
+
show: boolean;
|
|
39
|
+
required: boolean;
|
|
28
40
|
})[];
|
|
29
41
|
};
|
|
30
42
|
declare const selectConfig: {
|
|
@@ -32,6 +44,7 @@ declare const selectConfig: {
|
|
|
32
44
|
name: string;
|
|
33
45
|
config_name: string;
|
|
34
46
|
config_unique_id: string;
|
|
47
|
+
is_auth: string;
|
|
35
48
|
};
|
|
36
49
|
formRule: {
|
|
37
50
|
config_name: {
|
|
@@ -7,7 +7,7 @@ declare const _default: DefineComponent<{
|
|
|
7
7
|
default: () => {};
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
|
-
initData: (configList:
|
|
10
|
+
initData: (configList: any, panelConfigVal: IFormTable.FormConfig) => void;
|
|
11
11
|
saveFormRef: Ref<any>;
|
|
12
12
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
13
|
refresh: (...args: any[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as Y, createElementBlock as M, withDirectives as k, createElementVNode as w, normalizeStyle as S, vShow as A, createCommentVNode as L, normalizeClass as U, toDisplayString as N, defineComponent as F, ref as I, onMounted as z, getCurrentInstance as D, toRefs as j, reactive as V, resolveComponent as
|
|
2
|
-
import { _ as B,
|
|
1
|
+
import { openBlock as Y, createElementBlock as M, withDirectives as k, createElementVNode as w, normalizeStyle as S, vShow as A, createCommentVNode as L, normalizeClass as U, toDisplayString as N, defineComponent as F, ref as I, onMounted as z, getCurrentInstance as D, toRefs as j, reactive as V, resolveComponent as X, createVNode as v, withCtx as y, unref as H, createTextVNode as E } from "vue";
|
|
2
|
+
import { _ as B, M as q, O as G } from "./index-D3l58K9U.mjs";
|
|
3
3
|
const $ = {};
|
|
4
4
|
$.getData = (t) => new Promise((e, i) => {
|
|
5
5
|
let s = {};
|
|
@@ -1174,7 +1174,7 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1174
1174
|
a.img = h.value;
|
|
1175
1175
|
}, 100);
|
|
1176
1176
|
}), (u, C) => {
|
|
1177
|
-
const x =
|
|
1177
|
+
const x = X("el-col"), T = X("el-row"), P = X("bc-icon"), O = X("el-button"), R = X("hs-upload");
|
|
1178
1178
|
return Y(), M("div", nt, [
|
|
1179
1179
|
v(T, null, {
|
|
1180
1180
|
default: y(() => [
|
|
@@ -1234,7 +1234,7 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1234
1234
|
accept: "image/*"
|
|
1235
1235
|
}, {
|
|
1236
1236
|
default: y(() => [
|
|
1237
|
-
v(
|
|
1237
|
+
v(O, { size: "default" }, {
|
|
1238
1238
|
default: y(() => [
|
|
1239
1239
|
E(" 选择 "),
|
|
1240
1240
|
v(P, { name: "ele-UploadFilled" })
|
|
@@ -1252,10 +1252,10 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1252
1252
|
md: 2
|
|
1253
1253
|
}, {
|
|
1254
1254
|
default: y(() => [
|
|
1255
|
-
v(
|
|
1255
|
+
v(O, {
|
|
1256
1256
|
size: "default",
|
|
1257
1257
|
icon: "ele-Plus",
|
|
1258
|
-
onClick: C[0] || (C[0] = (
|
|
1258
|
+
onClick: C[0] || (C[0] = (W) => H(p)(1))
|
|
1259
1259
|
})
|
|
1260
1260
|
]),
|
|
1261
1261
|
_: 1
|
|
@@ -1265,10 +1265,10 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1265
1265
|
md: 2
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: y(() => [
|
|
1268
|
-
v(
|
|
1268
|
+
v(O, {
|
|
1269
1269
|
size: "default",
|
|
1270
1270
|
icon: "ele-Minus",
|
|
1271
|
-
onClick: C[1] || (C[1] = (
|
|
1271
|
+
onClick: C[1] || (C[1] = (W) => H(p)(-1))
|
|
1272
1272
|
})
|
|
1273
1273
|
]),
|
|
1274
1274
|
_: 1
|
|
@@ -1278,10 +1278,10 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1278
1278
|
md: 2
|
|
1279
1279
|
}, {
|
|
1280
1280
|
default: y(() => [
|
|
1281
|
-
v(
|
|
1281
|
+
v(O, {
|
|
1282
1282
|
size: "default",
|
|
1283
1283
|
icon: "ele-RefreshLeft",
|
|
1284
|
-
onClick: C[2] || (C[2] = (
|
|
1284
|
+
onClick: C[2] || (C[2] = (W) => H(n)("left"))
|
|
1285
1285
|
})
|
|
1286
1286
|
]),
|
|
1287
1287
|
_: 1
|
|
@@ -1291,10 +1291,10 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1291
1291
|
md: 2
|
|
1292
1292
|
}, {
|
|
1293
1293
|
default: y(() => [
|
|
1294
|
-
v(
|
|
1294
|
+
v(O, {
|
|
1295
1295
|
size: "default",
|
|
1296
1296
|
icon: "ele-RefreshRight",
|
|
1297
|
-
onClick: C[3] || (C[3] = (
|
|
1297
|
+
onClick: C[3] || (C[3] = (W) => H(n)("right"))
|
|
1298
1298
|
})
|
|
1299
1299
|
]),
|
|
1300
1300
|
_: 1
|
|
@@ -1304,9 +1304,9 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1304
1304
|
md: 2
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: y(() => [
|
|
1307
|
-
v(
|
|
1307
|
+
v(O, {
|
|
1308
1308
|
size: "default",
|
|
1309
|
-
onClick: C[4] || (C[4] = (
|
|
1309
|
+
onClick: C[4] || (C[4] = (W) => H(f)())
|
|
1310
1310
|
}, {
|
|
1311
1311
|
default: y(() => [
|
|
1312
1312
|
E("重 置")
|
|
@@ -1321,10 +1321,10 @@ const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-168a3964
|
|
|
1321
1321
|
md: 2
|
|
1322
1322
|
}, {
|
|
1323
1323
|
default: y(() => [
|
|
1324
|
-
v(
|
|
1324
|
+
v(O, {
|
|
1325
1325
|
size: "default",
|
|
1326
1326
|
type: "primary",
|
|
1327
|
-
onClick: C[5] || (C[5] = (
|
|
1327
|
+
onClick: C[5] || (C[5] = (W) => H(m)())
|
|
1328
1328
|
}, {
|
|
1329
1329
|
default: y(() => [
|
|
1330
1330
|
E("提 交")
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-BqMeORT8.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-BBax1_wu.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
2
2
|
<div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
|
|
3
3
|
<div style="width: ${e}px; height: ${t}px">
|
|
4
4
|
<img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as le,
|
|
3
|
-
import { u as de } from "./index-
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as k, ref as S, reactive as Q, computed as W, onMounted as X, resolveComponent as a, openBlock as F, createElementBlock as E, normalizeStyle as Y, createElementVNode as g, createVNode as l, withCtx as u, withDirectives as Z, unref as p, normalizeClass as ee, createTextVNode as y, toDisplayString as ne, pushScopeId as te, popScopeId as oe } from "vue";
|
|
2
|
+
import { a as le, z as se, c as re, s as x, M as B, T as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-D3l58K9U.mjs";
|
|
3
|
+
import { u as de } from "./index-DaknhMZ1.mjs";
|
|
4
|
+
const z = [
|
|
5
5
|
[
|
|
6
6
|
"requestFullscreen",
|
|
7
7
|
"exitFullscreen",
|
|
@@ -47,15 +47,15 @@ const N = [
|
|
|
47
47
|
], i = (() => {
|
|
48
48
|
if (typeof document > "u")
|
|
49
49
|
return !1;
|
|
50
|
-
const e =
|
|
51
|
-
for (const n of
|
|
50
|
+
const e = z[0], o = {};
|
|
51
|
+
for (const n of z)
|
|
52
52
|
if ((n == null ? void 0 : n[1]) in document) {
|
|
53
53
|
for (const [f, d] of n.entries())
|
|
54
54
|
o[e[f]] = d;
|
|
55
55
|
return o;
|
|
56
56
|
}
|
|
57
57
|
return !1;
|
|
58
|
-
})(),
|
|
58
|
+
})(), N = {
|
|
59
59
|
change: i.fullscreenchange,
|
|
60
60
|
error: i.fullscreenerror
|
|
61
61
|
};
|
|
@@ -95,11 +95,11 @@ let s = {
|
|
|
95
95
|
s.on("error", e);
|
|
96
96
|
},
|
|
97
97
|
on(e, o) {
|
|
98
|
-
const n =
|
|
98
|
+
const n = N[e];
|
|
99
99
|
n && document.addEventListener(n, o, !1);
|
|
100
100
|
},
|
|
101
101
|
off(e, o) {
|
|
102
|
-
const n =
|
|
102
|
+
const n = N[e];
|
|
103
103
|
n && document.removeEventListener(n, o, !1);
|
|
104
104
|
},
|
|
105
105
|
raw: i
|
|
@@ -124,30 +124,30 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
124
124
|
title: "布局配置"
|
|
125
125
|
}, null, -1)), ge = [
|
|
126
126
|
pe
|
|
127
|
-
], he = ["title"], be = { class: "layout-navbars-breadcrumb-user-link" }, we = ["src"], Se =
|
|
127
|
+
], he = ["title"], be = { class: "layout-navbars-breadcrumb-user-link" }, we = ["src"], Se = M({
|
|
128
128
|
name: "layoutBreadcrumbUser"
|
|
129
|
-
}), Ce = /* @__PURE__ */
|
|
129
|
+
}), Ce = /* @__PURE__ */ M({
|
|
130
130
|
...Se,
|
|
131
131
|
setup(e) {
|
|
132
|
-
const o = k(() => import("./userNews-
|
|
132
|
+
const o = k(() => import("./userNews-BW3l-g23.mjs")), n = k(() => import("./search-9rAvvezK.mjs")), m = de(), f = S(), d = S(), R = le(), C = se(), q = re(), { userInfos: w } = x(C), { themeConfig: P } = x(q), v = S(), h = Q({
|
|
133
133
|
isScreenfull: !1,
|
|
134
134
|
disabledSize: "large"
|
|
135
135
|
}), I = W(() => {
|
|
136
136
|
let t = "";
|
|
137
137
|
const { layout: r, isClassicSplitMenu: c } = P.value;
|
|
138
138
|
return ["defaults", "columns"].includes(r) || r === "classic" && !c ? t = "1" : t = "", t;
|
|
139
|
-
}),
|
|
139
|
+
}), T = () => {
|
|
140
140
|
if (!b.isEnabled)
|
|
141
141
|
return ae.warning("暂不不支持全屏"), !1;
|
|
142
142
|
b.toggle(), b.on("change", () => {
|
|
143
143
|
b.isFullscreen ? h.isScreenfull = !0 : h.isScreenfull = !1;
|
|
144
144
|
});
|
|
145
|
-
},
|
|
145
|
+
}, A = () => {
|
|
146
146
|
var t, r;
|
|
147
147
|
(r = (t = p(f).popperRef) == null ? void 0 : t.delayHide) == null || r.call(t);
|
|
148
148
|
}, O = () => {
|
|
149
149
|
ue.emit("openSetingsDrawer");
|
|
150
|
-
},
|
|
150
|
+
}, L = (t) => {
|
|
151
151
|
t === "logOut" ? ie({
|
|
152
152
|
closeOnClickModal: !1,
|
|
153
153
|
closeOnPressEscape: !1,
|
|
@@ -167,7 +167,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
167
167
|
}).then(() => {
|
|
168
168
|
C.logout();
|
|
169
169
|
}).catch(() => {
|
|
170
|
-
}) : t === "wareHouse" ? window.open("https://www.baidu.com") :
|
|
170
|
+
}) : t === "wareHouse" ? window.open("https://www.baidu.com") : R.push(t);
|
|
171
171
|
}, D = () => {
|
|
172
172
|
v.value.openSearch();
|
|
173
173
|
}, U = async (t, r) => {
|
|
@@ -213,7 +213,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
213
213
|
_: 1
|
|
214
214
|
})
|
|
215
215
|
])), [
|
|
216
|
-
[p(ce),
|
|
216
|
+
[p(ce), A]
|
|
217
217
|
]),
|
|
218
218
|
l(j, {
|
|
219
219
|
ref_key: "userNewsRef",
|
|
@@ -233,7 +233,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
233
233
|
}, 8, ["virtual-ref"]),
|
|
234
234
|
g("div", {
|
|
235
235
|
class: "layout-navbars-breadcrumb-user-icon mr10",
|
|
236
|
-
onClick:
|
|
236
|
+
onClick: T
|
|
237
237
|
}, [
|
|
238
238
|
g("i", {
|
|
239
239
|
class: ee(["iconfont", h.isScreenfull ? "icon-tuichuquanping" : "icon-fullscreen"]),
|
|
@@ -243,7 +243,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
243
243
|
l(K, {
|
|
244
244
|
"show-timeout": 70,
|
|
245
245
|
"hide-timeout": 50,
|
|
246
|
-
onCommand:
|
|
246
|
+
onCommand: L
|
|
247
247
|
}, {
|
|
248
248
|
dropdown: u(() => [
|
|
249
249
|
l(J, null, {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BBax1_wu.js"),I=require("./index-BGSQ_qg6.js"),b=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=(()=>{if(typeof document>"u")return!1;const n=b[0],r={};for(const t of b)if((t==null?void 0:t[1])in document){for(const[a,f]of t.entries())r[n[a]]=f;return r}return!1})(),C={change:i.fullscreenchange,error:i.fullscreenerror};let s={request(n=document.documentElement,r){return new Promise((t,d)=>{const a=()=>{s.off("change",a),t()};s.on("change",a);const f=n[i.requestFullscreen](r);f instanceof Promise&&f.then(a).catch(d)})},exit(){return new Promise((n,r)=>{if(!s.isFullscreen){n();return}const t=()=>{s.off("change",t),n()};s.on("change",t);const d=document[i.exitFullscreen]();d instanceof Promise&&d.then(t).catch(r)})},toggle(n,r){return s.isFullscreen?s.exit():s.request(n,r)},onchange(n){s.on("change",n)},onerror(n){s.on("error",n)},on(n,r){const t=C[n];t&&document.addEventListener(t,r,!1)},off(n,r){const t=C[n];t&&document.removeEventListener(t,r,!1)},raw:i};Object.defineProperties(s,{isFullscreen:{get:()=>!!document[i.fullscreenElement]},element:{enumerable:!0,get:()=>document[i.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[i.fullscreenEnabled]}});i||(s={isEnabled:!1});const h=s,O=n=>(e.pushScopeId("data-v-62d7f9a6"),n=n(),e.popScopeId(),n),L=O(()=>e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)),D=[L],U=["title"],j={class:"layout-navbars-breadcrumb-user-link"},H=["src"],$=e.defineComponent({name:"layoutBreadcrumbUser"}),G=e.defineComponent({...$,setup(n){const r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./userNews-B2JYxiGm.js"))),t=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./search-C3yMsn-o.js"))),d=I.useLoginController(),a=e.ref(),f=e.ref(),v=l.useRouter(),g=l.useUserInfo(),S=l.useThemeConfig(),{userInfos:_}=l.storeToRefs(g),{themeConfig:E}=l.storeToRefs(S),w=e.ref(),p=e.reactive({isScreenfull:!1,disabledSize:"large"}),N=e.computed(()=>{let o="";const{layout:c,isClassicSplitMenu:u}=E.value;return["defaults","columns"].includes(c)||c==="classic"&&!u?o="1":o="",o}),k=()=>{if(!h.isEnabled)return l.ElMessage.warning("暂不不支持全屏"),!1;h.toggle(),h.on("change",()=>{h.isFullscreen?p.isScreenfull=!0:p.isScreenfull=!1})},x=()=>{var o,c;(c=(o=e.unref(a).popperRef)==null?void 0:o.delayHide)==null||c.call(o)},F=()=>{l.mittBus.emit("openSetingsDrawer")},y=o=>{o==="logOut"?l.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(c,u,m)=>{c==="confirm"?(u.confirmButtonLoading=!0,u.confirmButtonText="退出中",d.postAjaxLogout().then(()=>{m()}).finally(()=>{u.confirmButtonLoading=!1})):m()}}).then(()=>{g.logout()}).catch(()=>{}):o==="wareHouse"?window.open("https://www.baidu.com"):v.push(o)},V=()=>{w.value.openSearch()},B=async(o,c)=>{p[c]=await l.systemStore.get("themeConfig").then(u=>l._.get(u,o,"large"))};return e.onMounted(async()=>{await l.systemStore.get("themeConfig")&&await B("globalComponentSize","disabledSize")}),(o,c)=>{const u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),q=e.resolveComponent("ele-Bell"),z=e.resolveComponent("el-badge"),R=e.resolveComponent("el-popover"),M=e.resolveComponent("ele-ArrowDown"),P=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:N.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:F},D),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:f},[e.createVNode(z,{"is-dot":!0},{default:e.withCtx(()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx(()=>[e.createVNode(q)]),_:1})]),_:1})])),[[e.unref(l.ClickOutside),x]]),e.createVNode(R,{ref_key:"userNewsRef",ref:a,"virtual-ref":f.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:k},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",p.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:p.isScreenfull?"关全屏":"开全屏"},null,10,U)]),e.createVNode(A,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(P,{divided:"",command:"logOut"},{default:e.withCtx(()=>[e.createTextVNode("退出登录")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",j,[e.createElementVNode("img",{src:e.unref(_).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,H),e.createTextVNode(" "+e.toDisplayString(e.unref(_).userName===""?"common":e.unref(_).userName)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(M)]),_:1})])]),_:1}),e.createVNode(e.unref(t),{ref_key:"searchRef",ref:w},null,512)],4)}}}),J=l._export_sfc(G,[["__scopeId","data-v-62d7f9a6"]]);exports.default=J;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-BBax1_wu.js"),d=o=>(e.pushScopeId("data-v-8abed4d4"),o=o(),e.popScopeId(),o),r={class:"layout-navbars-breadcrumb-user-news"},m={class:"head-box"},p=d(()=>e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),_={class:"content-box"},u={class:"content-box-msg"},b={class:"content-box-time"},k=e.defineComponent({name:"layoutBreadcrumbUserNews"}),v=e.defineComponent({...k,setup(o){const t=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),c=()=>{t.newsList=[]},s=()=>{window.open("https://www.baidu.com")};return(w,y)=>{const l=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",m,[p,t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:c},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[t.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.newsList,(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:a},[e.createElementVNode("div",null,e.toDisplayString(n.label),1),e.createElementVNode("div",u,e.toDisplayString(n.value),1),e.createElementVNode("div",b,e.toDisplayString(n.time),1)]))),128)):(e.openBlock(),e.createBlock(l,{key:1,description:"暂无通知"}))]),t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:s},"前往通知中心")):e.createCommentVNode("",!0)])}}}),h=i._export_sfc(v,[["__scopeId","data-v-8abed4d4"]]);exports.default=h;
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as p, resolveComponent as u, openBlock as e, createElementBlock as s, createElementVNode as t, createCommentVNode as i, Fragment as b, renderList as h, toDisplayString as a, createBlock as v, pushScopeId as w, popScopeId as k } from "vue";
|
|
2
|
-
import { _ as x } from "./index-
|
|
2
|
+
import { _ as x } from "./index-D3l58K9U.mjs";
|
|
3
3
|
const y = (n) => (w("data-v-8abed4d4"), n = n(), k(), n), f = { class: "layout-navbars-breadcrumb-user-news" }, C = { class: "head-box" }, L = /* @__PURE__ */ y(() => /* @__PURE__ */ t("div", { class: "head-box-title" }, "通知", -1)), g = { class: "content-box" }, B = { class: "content-box-msg" }, I = { class: "content-box-time" }, N = l({
|
|
4
4
|
name: "layoutBreadcrumbUserNews"
|
|
5
5
|
}), S = /* @__PURE__ */ l({
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-cGk56gh7.js");exports.default=e._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as d, onMounted as y, resolveComponent as s, openBlock as w, createElementBlock as g, createElementVNode as l, createVNode as o, withKeys as V, withCtx as m, createTextVNode as k } from "vue";
|
|
2
|
-
import { r as C } from "./index-
|
|
2
|
+
import { r as C } from "./index-D3l58K9U.mjs";
|
|
3
3
|
const j = (t, n) => Object.assign(t, { other_log_info: { title: n } }), q = (t = {}) => (t = j(t, "获取全部用户列表"), C({
|
|
4
4
|
url: "/scmp-web/pri/user/list_all",
|
|
5
5
|
method: "get",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./index-BBax1_wu.js"),h=(o,n)=>Object.assign(o,{other_log_info:{title:n}}),v=(o={})=>(o=h(o,"获取全部用户列表"),f.request({url:"/scmp-web/pri/user/list_all",method:"get",params:o}));function V(){return{getListAll:v}}const b={class:"h-full flex flex-col"},x={class:"flex justify-between items-center"},w=e.createElementVNode("span",null,"* 双击选择",-1),y={class:"flex-1"},N={class:"flex justify-center items-center py-[5px]"},C=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(o,{emit:n}){const{getListAll:u}=V(),d=n,l=e.ref([]),c=async()=>{let a={qry_like_info:s.value};const t=await u(a);console.log(t),t.code===1&&(l.value=t.data)};e.onMounted(()=>{c()});const s=e.ref("");return(a,t)=>{const _=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),m=e.resolveComponent("el-table"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",x,[e.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=i=>s.value=i),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(c,["enter"])},null,8,["modelValue"]),w]),e.createElementVNode("div",y,[e.createVNode(m,{data:l.value,style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})]),_:1},8,["data"])]),e.createElementVNode("div",N,[e.createVNode(p,{size:"default",type:"default",class:"ml10",onClick:t[1]||(t[1]=i=>d("success","close"))},{default:e.withCtx(()=>[e.createTextVNode(" 取消 ")]),_:1})])])}}});exports._sfc_main=C;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as g, defineAsyncComponent as I, reactive as P, computed as _, onMounted as T, watch as W, resolveComponent as u, openBlock as s, createBlock as m, withCtx as o, createElementBlock as C, Fragment as k, renderList as q, createVNode as p, createElementVNode as d, toDisplayString as f, unref as v, createSlots as M, withModifiers as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineComponent as g, defineAsyncComponent as I, reactive as P, computed as _, onMounted as T, watch as W, resolveComponent as u, openBlock as s, createBlock as m, withCtx as o, createElementBlock as C, Fragment as k, renderList as q, createVNode as p, createElementVNode as d, toDisplayString as f, unref as v, createSlots as M, withModifiers as R } from "vue";
|
|
2
|
+
import { c as V, s as E, u as H, Q as N, P as O } from "./index-D3l58K9U.mjs";
|
|
3
3
|
const U = g({
|
|
4
4
|
name: "navMenuVertical"
|
|
5
|
-
}),
|
|
5
|
+
}), $ = /* @__PURE__ */ g({
|
|
6
6
|
...U,
|
|
7
7
|
props: {
|
|
8
8
|
// 菜单列表
|
|
@@ -12,18 +12,18 @@ const U = g({
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
setup(y) {
|
|
15
|
-
const L = I(() => import("./subItem-
|
|
15
|
+
const L = I(() => import("./subItem-CgALB8PF.mjs")), x = y, A = V(), { themeConfig: r } = E(A), l = H(), i = P({
|
|
16
16
|
defaultActive: l.meta.isDynamic ? l.meta.isDynamicPath : l.path,
|
|
17
17
|
isCollapse: !1
|
|
18
18
|
}), b = _(() => x.menuList), S = _(() => r.value), h = (n) => {
|
|
19
19
|
const { path: a, meta: t } = n, c = t != null && t.isDynamic ? t.isDynamicPath.split("/") : a.split("/");
|
|
20
20
|
return c.length >= 4 && (t != null && t.isHide) ? c.splice(0, 3).join("/") : a;
|
|
21
21
|
}, D = (n) => {
|
|
22
|
-
|
|
22
|
+
O.handleOpenLink(n);
|
|
23
23
|
};
|
|
24
24
|
return T(() => {
|
|
25
25
|
i.defaultActive = h(l);
|
|
26
|
-
}),
|
|
26
|
+
}), N((n) => {
|
|
27
27
|
i.defaultActive = h(n), document.body.clientWidth < 1e3 && (r.value.isCollapse = !1);
|
|
28
28
|
}), W(
|
|
29
29
|
() => r.value.isCollapse,
|
|
@@ -83,7 +83,7 @@ const U = g({
|
|
|
83
83
|
fn: o(() => [
|
|
84
84
|
d("a", {
|
|
85
85
|
class: "w100",
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: R((j) => D(e), ["prevent"])
|
|
87
87
|
}, f(e.meta.title), 9, ["onClick"])
|
|
88
88
|
]),
|
|
89
89
|
key: "1"
|
|
@@ -97,5 +97,5 @@ const U = g({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
export {
|
|
100
|
-
|
|
100
|
+
$ as default
|
|
101
101
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BBax1_wu.js"),y=e.defineComponent({name:"navMenuVertical"}),x=e.defineComponent({...y,props:{menuList:{type:Array,default:()=>[]}},setup(m){const p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./subItem-BvoaPWLh.js"))),d=m,h=l.useThemeConfig(),{themeConfig:r}=l.storeToRefs(h),c=l.useRoute(),i=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),f=e.computed(()=>d.menuList),C=e.computed(()=>r.value),u=o=>{const{path:s,meta:n}=o,a=n!=null&&n.isDynamic?n.isDynamicPath.split("/"):s.split("/");return a.length>=4&&(n!=null&&n.isHide)?a.splice(0,3).join("/"):s},_=o=>{l.other.handleOpenLink(o)};return e.onMounted(()=>{i.defaultActive=u(c)}),l.onBeforeRouteUpdate(o=>{i.defaultActive=u(o),document.body.clientWidth<1e3&&(r.value.isCollapse=!1)}),e.watch(()=>r.value.isCollapse,o=>{document.body.clientWidth<=1e3?i.isCollapse=!1:i.isCollapse=o},{immediate:!0}),(o,s)=>{const n=e.resolveComponent("SvgIcon"),a=e.resolveComponent("el-sub-menu"),k=e.resolveComponent("el-menu-item"),g=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(g,{router:"","default-active":i.defaultActive,"background-color":"transparent",collapse:i.isCollapse,"unique-opened":C.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(a,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(p),{chil:t.children},null,8,["chil"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(k,{index:t.path,key:t.path},e.createSlots({default:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"])]),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),key:"0"}:{name:"title",fn:e.withCtx(()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers(B=>_(t),["prevent"])},e.toDisplayString(t.meta.title),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=x;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hs-admin-ui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.9",
|
|
4
4
|
"description": "vue3 + typescript5 + vite5 的框架",
|
|
5
5
|
"author": "wgd",
|
|
6
6
|
"private": false,
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/node": "^20.11.30",
|
|
68
68
|
"@types/nprogress": "^0.2.3",
|
|
69
|
+
"@types/uuid": "^9.0.8",
|
|
69
70
|
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
70
71
|
"@typescript-eslint/parser": "^7.4.0",
|
|
71
72
|
"@vitejs/plugin-vue": "^5.0.4",
|
package/dist/401-64lHzCMo.mjs.gz
DELETED
|
Binary file
|
package/dist/401-DbkcK6la.js.gz
DELETED
|
Binary file
|
package/dist/404-DsqxDLKX.mjs.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|