hs-admin-ui 2.0.10 → 2.1.2
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-B9FwE73j.js → 401-Dlq2eqlR.js} +1 -1
- package/dist/401-Dlq2eqlR.js.gz +0 -0
- package/dist/{401-DEByDTA-.mjs → 401-V7irkSS9.mjs} +1 -1
- package/dist/401-V7irkSS9.mjs.gz +0 -0
- package/dist/{404-xzceNaaK.mjs → 404-_oFTFlX3.mjs} +1 -1
- package/dist/{404-xzceNaaK.mjs.gz → 404-_oFTFlX3.mjs.gz} +0 -0
- package/dist/{404-q8HymLLv.js → 404-gL2mZmZS.js} +1 -1
- package/dist/404-gL2mZmZS.js.gz +0 -0
- package/dist/{account-D8bCm4E6.mjs → account-BUxDkMUr.mjs} +2 -2
- package/dist/account-BUxDkMUr.mjs.gz +0 -0
- package/dist/{account-BGi7spMa.js → account-co8szvAC.js} +1 -1
- package/dist/account-co8szvAC.js.gz +0 -0
- package/dist/{aside-_cKJ9SrO.js → aside-BYtTG1fI.js} +1 -1
- package/dist/aside-BYtTG1fI.js.gz +0 -0
- package/dist/{aside-TYdKfV5n.mjs → aside-C7T9nEbi.mjs} +2 -2
- package/dist/aside-C7T9nEbi.mjs.gz +0 -0
- package/dist/{btnIndex-OJgEXTPj.js → btnIndex-Az8JoY-o.js} +1 -1
- package/dist/btnIndex-Az8JoY-o.js.gz +0 -0
- package/dist/{btnIndex-DyTIG3NC.mjs → btnIndex-BpBV59DT.mjs} +2 -2
- package/dist/btnIndex-BpBV59DT.mjs.gz +0 -0
- package/dist/{classic-DBkpTYxU.mjs → classic-B4V_IEiB.mjs} +2 -2
- package/dist/classic-B4V_IEiB.mjs.gz +0 -0
- package/dist/{classic-NYGuoWRH.js → classic-TgTvJvB8.js} +1 -1
- package/dist/classic-TgTvJvB8.js.gz +0 -0
- package/dist/{columns-CG2COCLa.mjs → columns-BAk1__I8.mjs} +2 -2
- package/dist/columns-BAk1__I8.mjs.gz +0 -0
- package/dist/{columns-CtpUdDHL.js → columns-ootFgUvh.js} +1 -1
- package/dist/columns-ootFgUvh.js.gz +0 -0
- package/dist/{columnsAside-BVpEcqN9.mjs → columnsAside-DiMoToNA.mjs} +11 -11
- package/dist/columnsAside-DiMoToNA.mjs.gz +0 -0
- package/dist/{columnsAside-CO4IJ_bS.js → columnsAside-KXNereBk.js} +1 -1
- package/dist/columnsAside-KXNereBk.js.gz +0 -0
- package/dist/{contextmenu-KtE08tnr.mjs → contextmenu-7BTevi4j.mjs} +1 -1
- package/dist/contextmenu-7BTevi4j.mjs.gz +0 -0
- package/dist/{contextmenu-D3Bv2yn1.js → contextmenu-Bj6k4sHG.js} +1 -1
- package/dist/contextmenu-Bj6k4sHG.js.gz +0 -0
- package/dist/{contextmenu-BoLEM4BU.mjs → contextmenu-D9LXF2iw.mjs} +1 -1
- package/dist/contextmenu-D9LXF2iw.mjs.gz +0 -0
- package/dist/{contextmenu-BwKoIS9q.js → contextmenu-o4daNhrL.js} +1 -1
- package/dist/contextmenu-o4daNhrL.js.gz +0 -0
- package/dist/{defaults-Cf7mQr7B.mjs → defaults-B6_Zk8I2.mjs} +2 -2
- package/dist/defaults-B6_Zk8I2.mjs.gz +0 -0
- package/dist/{defaults-00OQAFan.js → defaults-BADHT2JG.js} +1 -1
- package/dist/defaults-BADHT2JG.js.gz +0 -0
- package/dist/{dialog-BNc_cFk8.mjs → dialog-B-Gx_prf.mjs} +1 -1
- package/dist/{dialog-UV2ZexKk.js → dialog-CBNRHiNm.js} +1 -1
- package/dist/{dialog-Dli6a3Nl.mjs → dialog-D7wgFaQJ.mjs} +1 -1
- package/dist/{dialog-DI7o0JnV.js → dialog-D9J6VqkC.js} +1 -1
- package/dist/{dialog-DPyrehOL.js → dialog-DVINwsQ2.js} +1 -1
- package/dist/{dialog-CjEO2yGI.mjs → dialog-DeoBScDp.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-yQS6l52X.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BghHbXI2.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BghHbXI2.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DnSQo7Lx.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CCluiMit.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CCluiMit.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BBE3RXAm.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CzuJDhTX.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CzuJDhTX.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CtP89C7v.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-R45sFsiM.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-R45sFsiM.mjs.gz +0 -0
- package/dist/{dictDialog-Dw01Xie3.js → dictDialog-BQx6-L1j.js} +1 -1
- package/dist/{dictDialog-D-ARqinN.mjs → dictDialog-CDW1y8oQ.mjs} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DMFCKPoQ.mjs +122 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DMFCKPoQ.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dn7cq-aR.js +1 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dn7cq-aR.js.gz +0 -0
- package/dist/{dictItemDialog-N9dB1Dnd.js → dictItemDialog-DLDex79j.js} +1 -1
- package/dist/{dictItemDialog-QHF5PH5a.mjs → dictItemDialog-DlaxvaK3.mjs} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CRMSQSKs.js +1 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CRMSQSKs.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-D4ZdDV6e.mjs +201 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-D4ZdDV6e.mjs.gz +0 -0
- package/dist/{formConfig-TFPDaLbL.mjs → formConfig-BXzcG1bv.mjs} +4 -4
- package/dist/formConfig-BXzcG1bv.mjs.gz +0 -0
- package/dist/{formConfig-BTsiY2DR.js → formConfig-tGA_AfSL.js} +1 -1
- package/dist/formConfig-tGA_AfSL.js.gz +0 -0
- package/dist/{header-D_4H_-FN.js → header-Cvm4fO2M.js} +1 -1
- package/dist/{header-CG2conOE.mjs → header-Dnv6tZCn.mjs} +2 -2
- package/dist/{horizontal-Q0Mj9Lia.js → horizontal-B6zTQEP9.js} +1 -1
- package/dist/horizontal-B6zTQEP9.js.gz +0 -0
- package/dist/{horizontal-Sm6F9B9D.mjs → horizontal-fFtyMUVn.mjs} +14 -14
- package/dist/horizontal-fFtyMUVn.mjs.gz +0 -0
- package/dist/{hsAttrBtn-D65IutI8.js → hsAttrBtn-Cy-1GKM2.js} +1 -1
- package/dist/{hsAttrBtn-lVFNca42.mjs → hsAttrBtn-DWs4AcpW.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-D0CtMcXJ.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-3CUXqWV_.mjs} +2 -2
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-3CUXqWV_.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-K_FiWnwJ.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CJX5UOuB.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CJX5UOuB.js.gz +0 -0
- package/dist/{hsAttrForm-CK15DAKl.js → hsAttrForm-CrSzE8h_.js} +1 -1
- package/dist/{hsAttrForm-4-y04ekr.mjs → hsAttrForm-DzceHjJa.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-gtd24ttJ.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-BJDn_i5i.mjs} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BJDn_i5i.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DJZP5HC9.js → hsAttrForm.vue_vue_type_script_setup_true_lang-By87uFiq.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-By87uFiq.js.gz +0 -0
- package/dist/{hsBtnConfigList-CC6J0GNn.mjs → hsBtnConfigList--wBEB0lE.mjs} +1 -1
- package/dist/hsBtnConfigList--wBEB0lE.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-BUv3qV77.js → hsBtnConfigList-qFGMPCFn.js} +1 -1
- package/dist/hsBtnConfigList-qFGMPCFn.js.gz +0 -0
- package/dist/{hsBtnItemConfig-BQyKwqFx.mjs → hsBtnItemConfig-CmTCp8Je.mjs} +1 -1
- package/dist/{hsBtnItemConfig-BNCYQelD.js → hsBtnItemConfig-CyX8xhaD.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-_7VVR2V5.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DjSe7k46.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DjSe7k46.mjs.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-ws-cWUlH.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-UW7wR6UX.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-UW7wR6UX.js.gz +0 -0
- package/dist/{hsBtnPanel-LMhwSXIw.js → hsBtnPanel-D3pi0H4P.js} +1 -1
- package/dist/{hsBtnPanel-BMlxDgM7.mjs → hsBtnPanel-DddWlG7R.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-5IW93ozF.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-7WBBesmJ.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-7WBBesmJ.js.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DGW377nK.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D7eZDJZv.mjs} +3 -3
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D7eZDJZv.mjs.gz +0 -0
- package/dist/{hsFormConfig-CrdG6Jxu.js → hsFormConfig-CTpsCxu7.js} +1 -1
- package/dist/hsFormConfig-CTpsCxu7.js.gz +0 -0
- package/dist/{hsFormConfig-8iMrMzOD.mjs → hsFormConfig-DlihaLjs.mjs} +1 -1
- package/dist/hsFormConfig-DlihaLjs.mjs.gz +0 -0
- package/dist/{hsFormConfigList-CyVoseVz.js → hsFormConfigList-DLJ1-jVy.js} +1 -1
- package/dist/hsFormConfigList-DLJ1-jVy.js.gz +0 -0
- package/dist/{hsFormConfigList-gxaqLoj4.mjs → hsFormConfigList-sjWavZ0i.mjs} +2 -2
- package/dist/hsFormConfigList-sjWavZ0i.mjs.gz +0 -0
- package/dist/{hsFormPanel-BnbZgdLj.js → hsFormPanel-CITppJrv.js} +1 -1
- package/dist/{hsFormPanel-BRh9cb0t.mjs → hsFormPanel-U5rPjYny.mjs} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BdIHSOXV.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B9ydT5B3.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B9ydT5B3.js.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Tl324WkM.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BlmRptHv.mjs} +4 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BlmRptHv.mjs.gz +0 -0
- package/dist/{hsFormParse-CH6RBG-g.mjs → hsFormParse-INnWpe5B.mjs} +1 -1
- package/dist/{hsFormParse-DC72A8Yf.js → hsFormParse-uonhXVPZ.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-C7_pI95I.js → hsFormParse.vue_vue_type_script_setup_true_lang-B8-Xi-k5.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-B8-Xi-k5.js.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CW9rTA-t.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-Ddn1x1-x.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-Ddn1x1-x.mjs.gz +0 -0
- package/dist/{hsPageTree-Wd2N1hSw.js → hsPageTree-BGGSi-8e.js} +1 -1
- package/dist/hsPageTree-BGGSi-8e.js.gz +0 -0
- package/dist/{hsPageTree-BTg0Ifz3.mjs → hsPageTree-CFLhhrNZ.mjs} +1 -1
- package/dist/hsPageTree-CFLhhrNZ.mjs.gz +0 -0
- package/dist/{hsPanelItem-iQhZuviM.js → hsPanelItem-BPxcoukB.js} +1 -1
- package/dist/{hsPanelItem-D3YHjuDR.mjs → hsPanelItem-DhaHQayw.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D4QAgrmd.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-0vUd89DB.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-0vUd89DB.mjs.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DnRKym1j.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DExc15GF.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DExc15GF.js.gz +0 -0
- package/dist/{iframes-C7cxjc36.mjs → iframes-BAjneNHE.mjs} +1 -1
- package/dist/iframes-BAjneNHE.mjs.gz +0 -0
- package/dist/{iframes-BuiT6LBG.js → iframes-QjXhB8C0.js} +1 -1
- package/dist/iframes-QjXhB8C0.js.gz +0 -0
- package/dist/{index-sRDCnY4N.mjs → index-6vB8UCuB.mjs} +1 -1
- package/dist/index-6vB8UCuB.mjs.gz +0 -0
- package/dist/{index-C1U-3z63.js → index-B-BoHOBz.js} +1 -1
- package/dist/index-B-BoHOBz.js.gz +0 -0
- package/dist/{index-Cl7lX_Z1.mjs → index-B1T6Zs8-.mjs} +1 -1
- package/dist/index-B1T6Zs8-.mjs.gz +0 -0
- package/dist/{index-HusdiQxa.mjs → index-B7WqoBJy.mjs} +1 -1
- package/dist/index-B7WqoBJy.mjs.gz +0 -0
- package/dist/{index-CutF6bcl.mjs → index-BDCsYyST.mjs} +1 -1
- package/dist/index-BDCsYyST.mjs.gz +0 -0
- package/dist/{index-x12n7ci1.js → index-BDVJHUXK.js} +1 -1
- package/dist/index-BDVJHUXK.js.gz +0 -0
- package/dist/{index-CGylG6-v.js → index-BFLb_9KZ.js} +1 -1
- package/dist/index-BFLb_9KZ.js.gz +0 -0
- package/dist/{index-DQMPREWR.js → index-BHXm1dFE.js} +1 -1
- package/dist/index-BHXm1dFE.js.gz +0 -0
- package/dist/{index-DU115Wgm.mjs → index-BLBTn8qa.mjs} +1 -1
- package/dist/index-BLBTn8qa.mjs.gz +0 -0
- package/dist/{index-CzeABDBN.js → index-BROc3ZN-.js} +59 -59
- package/dist/index-BROc3ZN-.js.gz +0 -0
- package/dist/{index-BVgpVAhq.mjs → index-BW5-kUgo.mjs} +1 -1
- package/dist/index-BW5-kUgo.mjs.gz +0 -0
- package/dist/{index-BI_izcPw.mjs → index-BjD-Utdr.mjs} +1 -1
- package/dist/{index-BGymxxlf.js → index-Bke6y_Sh.js} +1 -1
- package/dist/index-Bke6y_Sh.js.gz +0 -0
- package/dist/{index-Be-hNp8N.js → index-Bl0cZL3g.js} +1 -1
- package/dist/{index-DD4nEnUc.js → index-BoOxoTdi.js} +1 -1
- package/dist/index-BoOxoTdi.js.gz +0 -0
- package/dist/{index-D-pVtIhL.js → index-Bzg4PvgL.js} +1 -1
- package/dist/index-Bzg4PvgL.js.gz +0 -0
- package/dist/{index-DiuUk_kB.js → index-BztxT8YT.js} +1 -1
- package/dist/index-BztxT8YT.js.gz +0 -0
- package/dist/{index-BRspIuSv.js → index-C0flZOaH.js} +1 -1
- package/dist/{index-aa4d-4t_.js → index-C0xooEBr.js} +1 -1
- package/dist/{index-BORDMlgq.js → index-C2q1XQMn.js} +1 -1
- package/dist/index-C2q1XQMn.js.gz +0 -0
- package/dist/{index-BSGBUPdA.js → index-C3FNIBZl.js} +1 -1
- package/dist/index-C3FNIBZl.js.gz +0 -0
- package/dist/{index-BUvXVPsv.mjs → index-C8TTl-Yw.mjs} +4 -4
- package/dist/index-C8TTl-Yw.mjs.gz +0 -0
- package/dist/{index-CKvcE6sn.js → index-CE3AZ8oX.js} +1 -1
- package/dist/index-CE3AZ8oX.js.gz +0 -0
- package/dist/index-CF34DeZS.mjs +4 -0
- package/dist/{index-irLz704Y.mjs → index-CQqhFs3E.mjs} +1 -1
- package/dist/index-CQqhFs3E.mjs.gz +0 -0
- package/dist/{index-D6cWVEet.js → index-CSvyF5ak.js} +1 -1
- package/dist/{index-Dxjx8a0n.js → index-Cjwq72Bz.js} +1 -1
- package/dist/{index-jXMdPT_D.js → index-CsZ7AV_s.js} +1 -1
- package/dist/index-CsZ7AV_s.js.gz +0 -0
- package/dist/{index-mU84dtSP.mjs → index-Ct92bYYW.mjs} +6 -6
- package/dist/index-Ct92bYYW.mjs.gz +0 -0
- package/dist/index-CuMmjzeT.js +1 -0
- package/dist/index-CuMmjzeT.js.gz +0 -0
- package/dist/{index-rZ89JX7Z.mjs → index-CxsN5uPR.mjs} +1 -1
- package/dist/{index-DTI9dDLH.js → index-D17gVrBq.js} +1 -1
- package/dist/index-D17gVrBq.js.gz +0 -0
- package/dist/{index-DOwcWtz2.js → index-D6IsBysb.js} +1 -1
- package/dist/index-D6IsBysb.js.gz +0 -0
- package/dist/{index-CDl1JtxV.mjs → index-DDpL-nSR.mjs} +1 -1
- package/dist/index-DDpL-nSR.mjs.gz +0 -0
- package/dist/{index-CIERwvTm.mjs → index-DFZ5REvJ.mjs} +11672 -11646
- package/dist/index-DFZ5REvJ.mjs.gz +0 -0
- package/dist/{index-BhjciAm_.js → index-DIum18mD.js} +1 -1
- package/dist/index-DIum18mD.js.gz +0 -0
- package/dist/{index-aWMIFSbP.mjs → index-DL-4RzrF.mjs} +2 -2
- package/dist/index-DPBoDruA.mjs +22 -0
- package/dist/{index-hG7ijnsW.mjs → index-DR57L5Kr.mjs} +1 -1
- package/dist/index-D_49-Xa_.mjs +85 -0
- package/dist/index-D_49-Xa_.mjs.gz +0 -0
- package/dist/{index-C8xvClMn.js → index-DbQGRn1X.js} +1 -1
- package/dist/index-DbQGRn1X.js.gz +0 -0
- package/dist/{index-DbJ0JQGB.mjs → index-DeafGrRK.mjs} +2 -2
- package/dist/index-DeafGrRK.mjs.gz +0 -0
- package/dist/{index-CAYXvjPh.mjs → index-DhCt95w7.mjs} +1 -1
- package/dist/index-DhCt95w7.mjs.gz +0 -0
- package/dist/{index-DDK0Z4Rv.js → index-DjsrJP_8.js} +1 -1
- package/dist/index-DjsrJP_8.js.gz +0 -0
- package/dist/{index-BhoOxoF9.mjs → index-DmAqF-AS.mjs} +2 -2
- package/dist/index-DmAqF-AS.mjs.gz +0 -0
- package/dist/{index-zP_QvfT5.mjs → index-DqSTsEQh.mjs} +1 -1
- package/dist/index-DqSTsEQh.mjs.gz +0 -0
- package/dist/index-Dsn1hnQ9.js +1 -0
- package/dist/index-Dsn1hnQ9.js.gz +0 -0
- package/dist/{index-DV2G8lVV.js → index-OBmD8cTP.js} +1 -1
- package/dist/index-OBmD8cTP.js.gz +0 -0
- package/dist/index-YdvWEVtc.mjs +315 -0
- package/dist/index-YdvWEVtc.mjs.gz +0 -0
- package/dist/{index-DV5xnn-p.mjs → index-ZE8Z3jfc.mjs} +2 -2
- package/dist/index-ZE8Z3jfc.mjs.gz +0 -0
- package/dist/{index-CZd4iuOY.mjs → index-Z_0bqvsV.mjs} +3 -3
- package/dist/index-Z_0bqvsV.mjs.gz +0 -0
- package/dist/{index-B00OLTK_.mjs → index-dI_vRH9D.mjs} +3 -3
- package/dist/index-dI_vRH9D.mjs.gz +0 -0
- package/dist/index-dNlxRjs2.js +1 -0
- package/dist/{index-BF1c2Pxt.mjs → index-hzFQCmqt.mjs} +1 -1
- package/dist/{index-CnWBdFeZ.mjs → index-t4Ca5gzY.mjs} +2 -2
- package/dist/index-t4Ca5gzY.mjs.gz +0 -0
- package/dist/{index-DE9X6xJV.mjs → index-tRrovyv-.mjs} +1 -1
- package/dist/index-tRrovyv-.mjs.gz +0 -0
- package/dist/{index-DpAiN-w9.js → index-ujCuRsF-.js} +1 -1
- package/dist/{index-DwIanZFz.js → index-yCw0LD6A.js} +1 -1
- package/dist/index-yCw0LD6A.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{link-BhGujTcl.js → link-CD6BQbrE.js} +1 -1
- package/dist/link-CD6BQbrE.js.gz +0 -0
- package/dist/{link-DKMGfIHz.mjs → link-mlHsj-TB.mjs} +1 -1
- package/dist/link-mlHsj-TB.mjs.gz +0 -0
- package/dist/{list-DcTJaAS4.js → list--0HdSWZW.js} +1 -1
- package/dist/list--0HdSWZW.js.gz +0 -0
- package/dist/{list-3nR-tq1y.mjs → list-DXN3-aXO.mjs} +1 -1
- package/dist/list-DXN3-aXO.mjs.gz +0 -0
- package/dist/{main-oYfbvFnw.js → main-BCHV8biC.js} +1 -1
- package/dist/main-BCHV8biC.js.gz +0 -0
- package/dist/{main-BRNY7-7o.mjs → main-SEpS9wLG.mjs} +2 -2
- package/dist/main-SEpS9wLG.mjs.gz +0 -0
- package/dist/{mobile-B4yjX6O9.js → mobile-Bfcw2nNI.js} +1 -1
- package/dist/mobile-Bfcw2nNI.js.gz +0 -0
- package/dist/{mobile-C6ganbmz.mjs → mobile-Cu3cHSKP.mjs} +1 -1
- package/dist/mobile-Cu3cHSKP.mjs.gz +0 -0
- package/dist/{parent-CNFWoIK4.js → parent-BW1OTHv9.js} +1 -1
- package/dist/parent-BW1OTHv9.js.gz +0 -0
- package/dist/{parent-CpuFOeo9.mjs → parent-DLe4sDMG.mjs} +2 -2
- package/dist/parent-DLe4sDMG.mjs.gz +0 -0
- package/dist/{roleItem-DgUcGFQj.mjs → roleItem-Bmmrqc3x.mjs} +1 -1
- package/dist/roleItem-Bmmrqc3x.mjs.gz +0 -0
- package/dist/{roleItem-Dqp3Kmvv.js → roleItem-BnyZmUgS.js} +1 -1
- package/dist/roleItem-BnyZmUgS.js.gz +0 -0
- package/dist/{saveForm-CQS0Awx_.js → saveForm-7tvtlCnA.js} +1 -1
- package/dist/{saveForm-Bgm82i52.mjs → saveForm-mlkAevFl.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-CNedU7SZ.mjs → saveForm.vue_vue_type_script_setup_true_lang-D2iEwB5F.mjs} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-D2iEwB5F.mjs.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-BJNVxox0.js → saveForm.vue_vue_type_script_setup_true_lang-byft0GDz.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-byft0GDz.js.gz +0 -0
- package/dist/{scan-CEFlnD7b.js → scan-BsxiNbme.js} +1 -1
- package/dist/scan-BsxiNbme.js.gz +0 -0
- package/dist/{scan-DhKOTz8w.mjs → scan-W1eKFAPa.mjs} +1 -1
- package/dist/{scan-DhKOTz8w.mjs.gz → scan-W1eKFAPa.mjs.gz} +0 -0
- package/dist/{search-hRxP-aBe.mjs → search-AVg_yjKk.mjs} +1 -1
- package/dist/search-AVg_yjKk.mjs.gz +0 -0
- package/dist/{search-3J-mPT5r.js → search-CxxYGUBE.js} +1 -1
- package/dist/search-CxxYGUBE.js.gz +0 -0
- package/dist/{selectConfig-Chu4b4hV.mjs → selectConfig-BvELUGQw.mjs} +1 -1
- package/dist/selectConfig-BvELUGQw.mjs.gz +0 -0
- package/dist/{selectConfig-C5uIBJc4.js → selectConfig-DLXNSjAC.js} +1 -1
- package/dist/selectConfig-DLXNSjAC.js.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-ylUaDkUZ.js → subItem-CkGpQwE9.js} +1 -1
- package/dist/subItem-CkGpQwE9.js.gz +0 -0
- package/dist/{subItem-Cw-xd4se.mjs → subItem-D5ZqYkfT.mjs} +5 -5
- package/dist/subItem-D5ZqYkfT.mjs.gz +0 -0
- package/dist/{tagsView-Ca8wSQQ6.js → tagsView-CJsvSrx7.js} +2 -2
- package/dist/tagsView-CJsvSrx7.js.gz +0 -0
- package/dist/{tagsView-D2tJSbu2.mjs → tagsView-Cmhp3jEy.mjs} +76 -76
- package/dist/tagsView-Cmhp3jEy.mjs.gz +0 -0
- package/dist/{transverse-DTL4CDCH.js → transverse-BErh_PHK.js} +1 -1
- package/dist/transverse-BErh_PHK.js.gz +0 -0
- package/dist/{transverse-DghEmjnP.mjs → transverse-DugfC8Eq.mjs} +2 -2
- package/dist/transverse-DugfC8Eq.mjs.gz +0 -0
- package/dist/types/components/business/bcBox/utils.d.ts +29 -3
- package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +1 -0
- package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +5 -2
- package/dist/types/components/business/bcFormTable/utils/store.d.ts +1 -0
- package/dist/types/components/business/bcGroupComponent/date.vue.d.ts +1 -1
- package/dist/types/types/customData.d.ts +2 -0
- package/dist/types/types/form.d.ts +2 -0
- package/dist/types/views/config/dataDict/components/dict/dictDialog.vue.d.ts +3 -1
- package/dist/types/views/config/dataDict/components/dictItem/dictItemDialog.vue.d.ts +3 -1
- package/dist/{uploadAvatar-BoEh_xIL.js → uploadAvatar-DIiNCW01.js} +1 -1
- package/dist/uploadAvatar-DIiNCW01.js.gz +0 -0
- package/dist/{uploadAvatar-Cp8iHSjh.mjs → uploadAvatar-DprW7K70.mjs} +1 -1
- package/dist/uploadAvatar-DprW7K70.mjs.gz +0 -0
- package/dist/{user-H_FS3Vap.js → user-CvuInGsj.js} +1 -1
- package/dist/user-CvuInGsj.js.gz +0 -0
- package/dist/{user-BL5LNAIZ.mjs → user-D2lv-7Ib.mjs} +14 -14
- package/dist/user-D2lv-7Ib.mjs.gz +0 -0
- package/dist/{userNews-Bn9k2Q6Z.mjs → userNews-DaXGDfWN.mjs} +1 -1
- package/dist/userNews-DaXGDfWN.mjs.gz +0 -0
- package/dist/{userNews-xHBvMflf.js → userNews-DmbRZRW-.js} +1 -1
- package/dist/userNews-DmbRZRW-.js.gz +0 -0
- package/dist/{userSelect-BPwrDh8s.js → userSelect-BDb2MZlS.js} +1 -1
- package/dist/{userSelect-DsIbAzMP.mjs → userSelect-BcOeKSCT.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-6yZ7zRzs.js → userSelect.vue_vue_type_script_setup_true_lang-_kltpTa2.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-_kltpTa2.js.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DQmK2dmP.mjs → userSelect.vue_vue_type_script_setup_true_lang-daHt5UtV.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-daHt5UtV.mjs.gz +0 -0
- package/dist/{vertical-iTn7Nc28.mjs → vertical-C-ITM3Tf.mjs} +7 -7
- package/dist/vertical-C-ITM3Tf.mjs.gz +0 -0
- package/dist/{vertical-DvEOuFkH.js → vertical-DOr2l2nv.js} +1 -1
- package/dist/vertical-DOr2l2nv.js.gz +0 -0
- package/package.json +1 -1
- package/dist/401-B9FwE73j.js.gz +0 -0
- package/dist/401-DEByDTA-.mjs.gz +0 -0
- package/dist/404-q8HymLLv.js.gz +0 -0
- package/dist/account-BGi7spMa.js.gz +0 -0
- package/dist/account-D8bCm4E6.mjs.gz +0 -0
- package/dist/aside-TYdKfV5n.mjs.gz +0 -0
- package/dist/aside-_cKJ9SrO.js.gz +0 -0
- package/dist/btnIndex-DyTIG3NC.mjs.gz +0 -0
- package/dist/btnIndex-OJgEXTPj.js.gz +0 -0
- package/dist/classic-DBkpTYxU.mjs.gz +0 -0
- package/dist/classic-NYGuoWRH.js.gz +0 -0
- package/dist/columns-CG2COCLa.mjs.gz +0 -0
- package/dist/columns-CtpUdDHL.js.gz +0 -0
- package/dist/columnsAside-BVpEcqN9.mjs.gz +0 -0
- package/dist/columnsAside-CO4IJ_bS.js.gz +0 -0
- package/dist/contextmenu-BoLEM4BU.mjs.gz +0 -0
- package/dist/contextmenu-BwKoIS9q.js.gz +0 -0
- package/dist/contextmenu-D3Bv2yn1.js.gz +0 -0
- package/dist/contextmenu-KtE08tnr.mjs.gz +0 -0
- package/dist/defaults-00OQAFan.js.gz +0 -0
- package/dist/defaults-Cf7mQr7B.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DnSQo7Lx.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-yQS6l52X.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BBE3RXAm.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CtP89C7v.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C_jkt3pu.mjs +0 -149
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C_jkt3pu.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D31ok78a.js +0 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D31ok78a.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CNrRgDLk.mjs +0 -214
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CNrRgDLk.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-Cc8P5LvG.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-Cc8P5LvG.js.gz +0 -0
- package/dist/formConfig-BTsiY2DR.js.gz +0 -0
- package/dist/formConfig-TFPDaLbL.mjs.gz +0 -0
- package/dist/horizontal-Q0Mj9Lia.js.gz +0 -0
- package/dist/horizontal-Sm6F9B9D.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-D0CtMcXJ.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-K_FiWnwJ.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DJZP5HC9.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-gtd24ttJ.mjs.gz +0 -0
- package/dist/hsBtnConfigList-BUv3qV77.js.gz +0 -0
- package/dist/hsBtnConfigList-CC6J0GNn.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-_7VVR2V5.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-ws-cWUlH.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-5IW93ozF.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DGW377nK.mjs.gz +0 -0
- package/dist/hsFormConfig-8iMrMzOD.mjs.gz +0 -0
- package/dist/hsFormConfig-CrdG6Jxu.js.gz +0 -0
- package/dist/hsFormConfigList-CyVoseVz.js.gz +0 -0
- package/dist/hsFormConfigList-gxaqLoj4.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BdIHSOXV.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Tl324WkM.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-C7_pI95I.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CW9rTA-t.mjs.gz +0 -0
- package/dist/hsPageTree-BTg0Ifz3.mjs.gz +0 -0
- package/dist/hsPageTree-Wd2N1hSw.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D4QAgrmd.mjs.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DnRKym1j.js.gz +0 -0
- package/dist/iframes-BuiT6LBG.js.gz +0 -0
- package/dist/iframes-C7cxjc36.mjs.gz +0 -0
- package/dist/index-B00OLTK_.mjs.gz +0 -0
- package/dist/index-BGymxxlf.js.gz +0 -0
- package/dist/index-BORDMlgq.js.gz +0 -0
- package/dist/index-BSGBUPdA.js.gz +0 -0
- package/dist/index-BUvXVPsv.mjs.gz +0 -0
- package/dist/index-BVgpVAhq.mjs.gz +0 -0
- package/dist/index-BcTNL-tn.mjs +0 -4
- package/dist/index-BhjciAm_.js.gz +0 -0
- package/dist/index-BhoOxoF9.mjs.gz +0 -0
- package/dist/index-BzhxRsD1.mjs +0 -311
- package/dist/index-BzhxRsD1.mjs.gz +0 -0
- package/dist/index-C1U-3z63.js.gz +0 -0
- package/dist/index-C8xvClMn.js.gz +0 -0
- package/dist/index-CAYXvjPh.mjs.gz +0 -0
- package/dist/index-CDl1JtxV.mjs.gz +0 -0
- package/dist/index-CGylG6-v.js.gz +0 -0
- package/dist/index-CHVYClqh.mjs +0 -63
- package/dist/index-CHVYClqh.mjs.gz +0 -0
- package/dist/index-CIERwvTm.mjs.gz +0 -0
- package/dist/index-CKvcE6sn.js.gz +0 -0
- package/dist/index-CZd4iuOY.mjs.gz +0 -0
- package/dist/index-Cl7lX_Z1.mjs.gz +0 -0
- package/dist/index-CnWBdFeZ.mjs.gz +0 -0
- package/dist/index-CutF6bcl.mjs.gz +0 -0
- package/dist/index-CzeABDBN.js.gz +0 -0
- package/dist/index-D-pVtIhL.js.gz +0 -0
- package/dist/index-DD4nEnUc.js.gz +0 -0
- package/dist/index-DDK0Z4Rv.js.gz +0 -0
- package/dist/index-DE9X6xJV.mjs.gz +0 -0
- package/dist/index-DOwcWtz2.js.gz +0 -0
- package/dist/index-DQMPREWR.js.gz +0 -0
- package/dist/index-DTI9dDLH.js.gz +0 -0
- package/dist/index-DU115Wgm.mjs.gz +0 -0
- package/dist/index-DV2G8lVV.js.gz +0 -0
- package/dist/index-DV5xnn-p.mjs.gz +0 -0
- package/dist/index-DbJ0JQGB.mjs.gz +0 -0
- package/dist/index-DiuUk_kB.js.gz +0 -0
- package/dist/index-DofXxmER.mjs +0 -10
- package/dist/index-DsJs6rWt.js +0 -1
- package/dist/index-Dts759vJ.js +0 -1
- package/dist/index-Dts759vJ.js.gz +0 -0
- package/dist/index-DwIanZFz.js.gz +0 -0
- package/dist/index-HusdiQxa.mjs.gz +0 -0
- package/dist/index-_jT0d7RJ.js +0 -1
- package/dist/index-_jT0d7RJ.js.gz +0 -0
- package/dist/index-irLz704Y.mjs.gz +0 -0
- package/dist/index-jXMdPT_D.js.gz +0 -0
- package/dist/index-mU84dtSP.mjs.gz +0 -0
- package/dist/index-sRDCnY4N.mjs.gz +0 -0
- package/dist/index-x12n7ci1.js.gz +0 -0
- package/dist/index-zP_QvfT5.mjs.gz +0 -0
- package/dist/link-BhGujTcl.js.gz +0 -0
- package/dist/link-DKMGfIHz.mjs.gz +0 -0
- package/dist/list-3nR-tq1y.mjs.gz +0 -0
- package/dist/list-DcTJaAS4.js.gz +0 -0
- package/dist/main-BRNY7-7o.mjs.gz +0 -0
- package/dist/main-oYfbvFnw.js.gz +0 -0
- package/dist/mobile-B4yjX6O9.js.gz +0 -0
- package/dist/mobile-C6ganbmz.mjs.gz +0 -0
- package/dist/parent-CNFWoIK4.js.gz +0 -0
- package/dist/parent-CpuFOeo9.mjs.gz +0 -0
- package/dist/roleItem-DgUcGFQj.mjs.gz +0 -0
- package/dist/roleItem-Dqp3Kmvv.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-BJNVxox0.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-CNedU7SZ.mjs.gz +0 -0
- package/dist/scan-CEFlnD7b.js.gz +0 -0
- package/dist/search-3J-mPT5r.js.gz +0 -0
- package/dist/search-hRxP-aBe.mjs.gz +0 -0
- package/dist/selectConfig-C5uIBJc4.js.gz +0 -0
- package/dist/selectConfig-Chu4b4hV.mjs.gz +0 -0
- package/dist/subItem-Cw-xd4se.mjs.gz +0 -0
- package/dist/subItem-ylUaDkUZ.js.gz +0 -0
- package/dist/tagsView-Ca8wSQQ6.js.gz +0 -0
- package/dist/tagsView-D2tJSbu2.mjs.gz +0 -0
- package/dist/transverse-DTL4CDCH.js.gz +0 -0
- package/dist/transverse-DghEmjnP.mjs.gz +0 -0
- package/dist/uploadAvatar-BoEh_xIL.js.gz +0 -0
- package/dist/uploadAvatar-Cp8iHSjh.mjs.gz +0 -0
- package/dist/user-BL5LNAIZ.mjs.gz +0 -0
- package/dist/user-H_FS3Vap.js.gz +0 -0
- package/dist/userNews-Bn9k2Q6Z.mjs.gz +0 -0
- package/dist/userNews-xHBvMflf.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-6yZ7zRzs.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DQmK2dmP.mjs.gz +0 -0
- package/dist/vertical-DvEOuFkH.js.gz +0 -0
- package/dist/vertical-iTn7Nc28.mjs.gz +0 -0
|
@@ -30,7 +30,9 @@ declare const _default: DefineComponent<{
|
|
|
30
30
|
type: PropType<DictControllerGetListPageDictChildData>;
|
|
31
31
|
default(): {};
|
|
32
32
|
};
|
|
33
|
-
}, {
|
|
33
|
+
}, {
|
|
34
|
+
getData(): () => Promise<unknown>;
|
|
35
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
36
|
success: (...args: any[]) => void;
|
|
35
37
|
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
36
38
|
dict: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-CzeABDBN.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=I(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 E(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function I(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,E(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-BROc3ZN-.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=I(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 E(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function I(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,E(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,5 +1,5 @@
|
|
|
1
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 O, createVNode as v, withCtx as y, unref as H, createTextVNode as E } from "vue";
|
|
2
|
-
import { _ as B,
|
|
2
|
+
import { _ as B, L as q, M as G } from "./index-DFZ5REvJ.mjs";
|
|
3
3
|
const $ = {};
|
|
4
4
|
$.getData = (t) => new Promise((e, i) => {
|
|
5
5
|
let s = {};
|
|
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-BROc3ZN-.js"),I=require("./index-CSvyF5ak.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-DmbRZRW-.js"))),t=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./search-CxxYGUBE.js"))),d=I.useLoginController(),a=e.ref(),f=e.ref(),v=l.useRouter(),g=l.useUserInfo(),S=l.useThemeConfig(),{userInfos:_}=l.storeToRefs(g),{themeConfig:E}=l.storeToRefs(S),w=e.ref(),p=e.reactive({isScreenfull:!1,disabledSize:"large"}),N=e.computed(()=>{let o="";const{layout:c,isClassicSplitMenu:u}=E.value;return["defaults","columns"].includes(c)||c==="classic"&&!u?o="1":o="",o}),k=()=>{if(!h.isEnabled)return l.ElMessage.warning("暂不不支持全屏"),!1;h.toggle(),h.on("change",()=>{h.isFullscreen?p.isScreenfull=!0:p.isScreenfull=!1})},x=()=>{var o,c;(c=(o=e.unref(a).popperRef)==null?void 0:o.delayHide)==null||c.call(o)},F=()=>{l.mittBus.emit("openSetingsDrawer")},y=o=>{o==="logOut"?l.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(c,u,m)=>{c==="confirm"?(u.confirmButtonLoading=!0,u.confirmButtonText="退出中",d.postAjaxLogout().then(()=>{m()}).finally(()=>{u.confirmButtonLoading=!1})):m()}}).then(()=>{g.logout()}).catch(()=>{}):o==="wareHouse"?window.open("https://www.baidu.com"):v.push(o)},V=()=>{w.value.openSearch()},B=async(o,c)=>{p[c]=await l.systemStore.get("themeConfig").then(u=>l._.get(u,o,"large"))};return e.onMounted(async()=>{await l.systemStore.get("themeConfig")&&await B("globalComponentSize","disabledSize")}),(o,c)=>{const u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),q=e.resolveComponent("ele-Bell"),z=e.resolveComponent("el-badge"),R=e.resolveComponent("el-popover"),M=e.resolveComponent("ele-ArrowDown"),P=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:N.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:F},D),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:f},[e.createVNode(z,{"is-dot":!0},{default:e.withCtx(()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx(()=>[e.createVNode(q)]),_:1})]),_:1})])),[[e.unref(l.ClickOutside),x]]),e.createVNode(R,{ref_key:"userNewsRef",ref:a,"virtual-ref":f.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:k},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",p.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:p.isScreenfull?"关全屏":"开全屏"},null,10,U)]),e.createVNode(A,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(P,{divided:"",command:"logOut"},{default:e.withCtx(()=>[e.createTextVNode("退出登录")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",j,[e.createElementVNode("img",{src:e.unref(_).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,H),e.createTextVNode(" "+e.toDisplayString(e.unref(_).userName===""?"common":e.unref(_).userName)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(M)]),_:1})])]),_:1}),e.createVNode(e.unref(t),{ref_key:"searchRef",ref:w},null,512)],4)}}}),J=l._export_sfc(G,[["__scopeId","data-v-62d7f9a6"]]);exports.default=J;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, defineAsyncComponent as k, ref as S, reactive as Q, computed as W, onMounted as X, resolveComponent as a, openBlock as F, createElementBlock as E, normalizeStyle as Y, createElementVNode as g, createVNode as l, withCtx as u, withDirectives as Z, unref as p, normalizeClass as ee, createTextVNode as y, toDisplayString as ne, pushScopeId as te, popScopeId as oe } from "vue";
|
|
2
|
-
import { a as le, y as se, c as re, s as x,
|
|
3
|
-
import { u as de } from "./index-
|
|
2
|
+
import { a as le, y as se, c as re, s as x, L as B, R as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-DFZ5REvJ.mjs";
|
|
3
|
+
import { u as de } from "./index-BjD-Utdr.mjs";
|
|
4
4
|
const N = [
|
|
5
5
|
[
|
|
6
6
|
"requestFullscreen",
|
|
@@ -129,12 +129,12 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
129
129
|
}), Ce = /* @__PURE__ */ R({
|
|
130
130
|
...Se,
|
|
131
131
|
setup(e) {
|
|
132
|
-
const o = k(() => import("./userNews-
|
|
132
|
+
const o = k(() => import("./userNews-DaXGDfWN.mjs")), n = k(() => import("./search-AVg_yjKk.mjs")), m = de(), f = S(), d = S(), M = le(), C = se(), q = re(), { userInfos: w } = x(C), { themeConfig: P } = x(q), v = S(), h = Q({
|
|
133
133
|
isScreenfull: !1,
|
|
134
134
|
disabledSize: "large"
|
|
135
135
|
}), I = W(() => {
|
|
136
136
|
let t = "";
|
|
137
|
-
const { layout: r, isClassicSplitMenu: c } =
|
|
137
|
+
const { layout: r, isClassicSplitMenu: c } = P.value;
|
|
138
138
|
return ["defaults", "columns"].includes(r) || r === "classic" && !c ? t = "1" : t = "", t;
|
|
139
139
|
}), A = () => {
|
|
140
140
|
if (!b.isEnabled)
|
|
@@ -142,12 +142,12 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
142
142
|
b.toggle(), b.on("change", () => {
|
|
143
143
|
b.isFullscreen ? h.isScreenfull = !0 : h.isScreenfull = !1;
|
|
144
144
|
});
|
|
145
|
-
},
|
|
145
|
+
}, L = () => {
|
|
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
|
+
}, T = (t) => {
|
|
151
151
|
t === "logOut" ? ie({
|
|
152
152
|
closeOnClickModal: !1,
|
|
153
153
|
closeOnPressEscape: !1,
|
|
@@ -176,7 +176,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
176
176
|
return X(async () => {
|
|
177
177
|
await B.get("themeConfig") && await U("globalComponentSize", "disabledSize");
|
|
178
178
|
}), (t, r) => {
|
|
179
|
-
const c = a("ele-Search"), _ = a("el-icon"), V = a("ele-Bell"), H = a("el-badge"), j = a("el-popover"),
|
|
179
|
+
const c = a("ele-Search"), _ = a("el-icon"), V = a("ele-Bell"), H = a("el-badge"), j = a("el-popover"), $ = a("ele-ArrowDown"), G = a("el-dropdown-item"), J = a("el-dropdown-menu"), K = a("el-dropdown");
|
|
180
180
|
return F(), E("div", {
|
|
181
181
|
class: "layout-navbars-breadcrumb-user pr15",
|
|
182
182
|
style: Y({ flex: I.value })
|
|
@@ -194,7 +194,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
194
194
|
]),
|
|
195
195
|
g("div", {
|
|
196
196
|
class: "layout-navbars-breadcrumb-user-icon",
|
|
197
|
-
onClick:
|
|
197
|
+
onClick: O
|
|
198
198
|
}, ge),
|
|
199
199
|
Z((F(), E("div", {
|
|
200
200
|
class: "layout-navbars-breadcrumb-user-icon",
|
|
@@ -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), L]
|
|
217
217
|
]),
|
|
218
218
|
l(j, {
|
|
219
219
|
ref_key: "userNewsRef",
|
|
@@ -243,12 +243,12 @@ 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: T
|
|
247
247
|
}, {
|
|
248
248
|
dropdown: u(() => [
|
|
249
|
-
l(
|
|
249
|
+
l(J, null, {
|
|
250
250
|
default: u(() => [
|
|
251
|
-
l(
|
|
251
|
+
l(G, {
|
|
252
252
|
divided: "",
|
|
253
253
|
command: "logOut"
|
|
254
254
|
}, {
|
|
@@ -270,7 +270,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
270
270
|
y(" " + ne(p(w).userName === "" ? "common" : p(w).userName) + " ", 1),
|
|
271
271
|
l(_, { class: "el-icon--right" }, {
|
|
272
272
|
default: u(() => [
|
|
273
|
-
l(
|
|
273
|
+
l($)
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
276
276
|
})
|
|
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-DFZ5REvJ.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("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-BROc3ZN-.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 +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-_kltpTa2.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./index-BROc3ZN-.js"),h=(o,n)=>Object.assign(o,{other_log_info:{title:n}}),v=(o={})=>(o=h(o,"获取全部用户列表"),f.request({url:"/scmp-web/pri/user/list_all",method:"get",params:o}));function V(){return{getListAll:v}}const b={class:"h-full flex flex-col"},x={class:"flex justify-between items-center"},w=e.createElementVNode("span",null,"* 双击选择",-1),y={class:"flex-1"},N={class:"flex justify-center items-center py-[5px]"},C=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(o,{emit:n}){const{getListAll:u}=V(),d=n,l=e.ref([]),c=async()=>{let a={qry_like_info:s.value};const t=await u(a);console.log(t),t.code===1&&(l.value=t.data)};e.onMounted(()=>{c()});const s=e.ref("");return(a,t)=>{const _=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),m=e.resolveComponent("el-table"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",x,[e.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=i=>s.value=i),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(c,["enter"])},null,8,["modelValue"]),w]),e.createElementVNode("div",y,[e.createVNode(m,{data:l.value,style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})]),_:1},8,["data"])]),e.createElementVNode("div",N,[e.createVNode(p,{size:"default",type:"default",class:"ml10",onClick:t[1]||(t[1]=i=>d("success","close"))},{default:e.withCtx(()=>[e.createTextVNode(" 取消 ")]),_:1})])])}}});exports._sfc_main=C;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as 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-DFZ5REvJ.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,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as g, defineAsyncComponent as I, reactive 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 O } from "vue";
|
|
2
|
+
import { c as R, s as V, u as E, P as H, O as N } from "./index-DFZ5REvJ.mjs";
|
|
3
3
|
const U = g({
|
|
4
4
|
name: "navMenuVertical"
|
|
5
5
|
}), z = /* @__PURE__ */ g({
|
|
@@ -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-D5ZqYkfT.mjs")), x = y, A = R(), { themeConfig: r } = V(A), l = E(), i = P({
|
|
16
16
|
defaultActive: l.meta.isDynamic ? l.meta.isDynamicPath : l.path,
|
|
17
17
|
isCollapse: !1
|
|
18
18
|
}), b = _(() => x.menuList), S = _(() => r.value), h = (n) => {
|
|
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
|
+
N.handleOpenLink(n);
|
|
23
23
|
};
|
|
24
24
|
return T(() => {
|
|
25
25
|
i.defaultActive = h(l);
|
|
26
|
-
}),
|
|
26
|
+
}), H((n) => {
|
|
27
27
|
i.defaultActive = h(n), document.body.clientWidth < 1e3 && (r.value.isCollapse = !1);
|
|
28
28
|
}), W(
|
|
29
29
|
() => r.value.isCollapse,
|
|
@@ -64,7 +64,7 @@ const U = g({
|
|
|
64
64
|
}, 1032, ["index"])) : (s(), m(w, {
|
|
65
65
|
index: e.path,
|
|
66
66
|
key: e.path
|
|
67
|
-
},
|
|
67
|
+
}, M({
|
|
68
68
|
default: o(() => [
|
|
69
69
|
p(t, {
|
|
70
70
|
name: e.meta.icon
|
|
@@ -83,7 +83,7 @@ const U = g({
|
|
|
83
83
|
fn: o(() => [
|
|
84
84
|
d("a", {
|
|
85
85
|
class: "w100",
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: O((j) => D(e), ["prevent"])
|
|
87
87
|
}, f(e.meta.title), 9, ["onClick"])
|
|
88
88
|
]),
|
|
89
89
|
key: "1"
|
|
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-BROc3ZN-.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-CkGpQwE9.js"))),d=m,h=l.useThemeConfig(),{themeConfig:r}=l.storeToRefs(h),c=l.useRoute(),i=e.reactive({defaultActive:c.meta.isDynamic?c.meta.isDynamicPath:c.path,isCollapse:!1}),f=e.computed(()=>d.menuList),C=e.computed(()=>r.value),u=o=>{const{path:s,meta:n}=o,a=n!=null&&n.isDynamic?n.isDynamicPath.split("/"):s.split("/");return a.length>=4&&(n!=null&&n.isHide)?a.splice(0,3).join("/"):s},_=o=>{l.other.handleOpenLink(o)};return e.onMounted(()=>{i.defaultActive=u(c)}),l.onBeforeRouteUpdate(o=>{i.defaultActive=u(o),document.body.clientWidth<1e3&&(r.value.isCollapse=!1)}),e.watch(()=>r.value.isCollapse,o=>{document.body.clientWidth<=1e3?i.isCollapse=!1:i.isCollapse=o},{immediate:!0}),(o,s)=>{const n=e.resolveComponent("SvgIcon"),a=e.resolveComponent("el-sub-menu"),k=e.resolveComponent("el-menu-item"),g=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(g,{router:"","default-active":i.defaultActive,"background-color":"transparent",collapse:i.isCollapse,"unique-opened":C.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(a,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(p),{chil:t.children},null,8,["chil"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(k,{index:t.path,key:t.path},e.createSlots({default:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"])]),_:2},[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),key:"0"}:{name:"title",fn:e.withCtx(()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers(B=>_(t),["prevent"])},e.toDisplayString(t.meta.title),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=x;
|
|
Binary file
|
package/package.json
CHANGED
package/dist/401-B9FwE73j.js.gz
DELETED
|
Binary file
|
package/dist/401-DEByDTA-.mjs.gz
DELETED
|
Binary file
|
package/dist/404-q8HymLLv.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|