hs-admin-ui 8.4.6 → 8.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-BIKm5avP.mjs → 401-CwbWRcpV.mjs} +1 -1
- package/dist/{401-B-omw9EM.js → 401-iFoaq1wB.js} +1 -1
- package/dist/{404-DLjSAyVT.mjs → 404-CAW1qmLL.mjs} +1 -1
- package/dist/{404-DLjSAyVT.mjs.gz → 404-CAW1qmLL.mjs.gz} +0 -0
- package/dist/{404-DDer5fS6.js → 404-DXLFl4vG.js} +1 -1
- package/dist/{404-DDer5fS6.js.gz → 404-DXLFl4vG.js.gz} +0 -0
- package/dist/{account-DuXVO06i.js → account-DPb8mHSF.js} +1 -1
- package/dist/account-DPb8mHSF.js.gz +0 -0
- package/dist/{account-CjIlI0P-.mjs → account-DvrMlejZ.mjs} +2 -2
- package/dist/account-DvrMlejZ.mjs.gz +0 -0
- package/dist/{aside-TT5Do6bL.mjs → aside-BKkvxJuL.mjs} +3 -3
- package/dist/{aside-DD3LzFBZ.js → aside-BcgaJ13y.js} +1 -1
- package/dist/{baseBtnConfig-BKv407ZT.mjs → baseBtnConfig-DpvhQxOF.mjs} +8 -0
- package/dist/baseBtnConfig-bGDW8Mxk.js +1 -0
- package/dist/baseFormConfig-B5TgfXai.js +1 -0
- package/dist/{baseFormConfig-Dl6Dnw2K.mjs → baseFormConfig-CZujJ9pa.mjs} +14 -6
- package/dist/baseFormConfig-CZujJ9pa.mjs.gz +0 -0
- package/dist/{btnIndex-dU-8DeWW.mjs → btnIndex-3A0j9ceH.mjs} +2 -2
- package/dist/btnIndex-3A0j9ceH.mjs.gz +0 -0
- package/dist/{btnIndex-BUycJ8DC.js → btnIndex-Dw-8u2aI.js} +1 -1
- package/dist/{classic-BsDepqjU.js → classic-CgU7hS6w.js} +1 -1
- package/dist/{classic-CMgD3KG9.mjs → classic-D17Tube8.mjs} +5 -5
- package/dist/{cloneConfigDialog-D_aM1mad.js → cloneConfigDialog-CmnelXxU.js} +1 -1
- package/dist/{cloneConfigDialog-B2A8nw0j.mjs → cloneConfigDialog-D1SpZks3.mjs} +1 -1
- package/dist/cloneConfigDialog-D1SpZks3.mjs.gz +0 -0
- package/dist/{columns-DzhjBZ8K.js → columns-BI507Dim.js} +1 -1
- package/dist/{columns-B_16eoQP.mjs → columns-CyreJhGa.mjs} +5 -5
- package/dist/{columnsAside-DKzsknKi.mjs → columnsAside-BONFDZaP.mjs} +1 -1
- package/dist/{columnsAside-DwgeUUZl.js → columnsAside-zKyeUUtb.js} +1 -1
- package/dist/{contextmenu-BfmoLowf.mjs → contextmenu-CDNLD6dX.mjs} +1 -1
- package/dist/{contextmenu-CZuucjO7.js → contextmenu-CwvPHioQ.js} +1 -1
- package/dist/{contextmenu-DROiyFs5.js → contextmenu-DGFjqc3R.js} +1 -1
- package/dist/{contextmenu-DXZq09eA.mjs → contextmenu-kvGaLuhR.mjs} +1 -1
- package/dist/{copyMenuConfig-BUXqi2z3.js → copyMenuConfig-C1MKjiUs.js} +1 -1
- package/dist/{copyMenuConfig-BDpOVgWp.mjs → copyMenuConfig-D6y7NIVL.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DGf5-74b.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BsglZdP7.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-Ng1pjacA.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-DIT8_dkA.mjs} +1 -1
- package/dist/{copySystem-Doj0A-zI.mjs → copySystem-BlMNxm52.mjs} +1 -1
- package/dist/{copySystem-D4fl2CH_.js → copySystem-BnHWJ6Ht.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DYx7pDQl.js → copySystem.vue_vue_type_script_setup_true_lang-BBtQZhEH.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DRizTx6s.mjs → copySystem.vue_vue_type_script_setup_true_lang-Bu3ooBc5.mjs} +1 -1
- package/dist/{defaults-BAj9ba2l.js → defaults-BL45_i0_.js} +1 -1
- package/dist/{defaults-CO0JBUo0.mjs → defaults-C5Pz-lkJ.mjs} +4 -4
- package/dist/{dialog-ZmLXIWUm.mjs → dialog-0PcmTbtJ.mjs} +1 -1
- package/dist/{dialog-BTA2MoPf.js → dialog-BYacaKzX.js} +1 -1
- package/dist/{dialog-CDKSyejw.js → dialog-Bja409Lb.js} +1 -1
- package/dist/{dialog-SCV91xpj.mjs → dialog-C7KZQUrd.mjs} +1 -1
- package/dist/{dialog-B2cPvUq_.js → dialog-DtQddZ_s.js} +1 -1
- package/dist/{dialog-OpV4Z-U6.mjs → dialog-q45wcHXb.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BSYmzJWI.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Bm37kFtn.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dh8IQMDU.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DWfWa2PB.mjs} +2 -2
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BgsbWo7j.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-0wFtgTjw.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-0wFtgTjw.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DcvkVOjP.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C-ET9Rch.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C-ET9Rch.js.gz +0 -0
- package/dist/{dictDialog-Dux-aTyj.js → dictDialog-BE7BwkpO.js} +1 -1
- package/dist/{dictDialog-w96gGiVu.mjs → dictDialog-pwHZpDTG.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BLIhO8Wj.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BKplS3Q3.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C5hODs3k.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-nxS4Htqe.js} +1 -1
- package/dist/{dictItemDialog-B1EXuMav.js → dictItemDialog-CzFOcL13.js} +1 -1
- package/dist/{dictItemDialog-BltA-6PE.mjs → dictItemDialog-DTrU59MD.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-Dys-3iP1.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DlbBkF8k.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang--7taa8as.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-aQSjQACk.mjs} +2 -2
- package/dist/{editDialog-BrXWQGbQ.js → editDialog-Bi2NFVol.js} +1 -1
- package/dist/{editDialog-CdJa8YMu.mjs → editDialog-jTC9wH2e.mjs} +1 -1
- package/dist/{formConfig-Ca7c2NsO.mjs → formConfig-DzeQKZgM.mjs} +5 -6
- package/dist/formConfig-DzeQKZgM.mjs.gz +0 -0
- package/dist/{formConfig-CBD8cdYr.js → formConfig-_-kMGrxh.js} +1 -1
- package/dist/{header-7_UH05ZE.mjs → header-DF3Qyjqj.mjs} +2 -2
- package/dist/{header-B15POEqn.js → header-iZQlpotq.js} +1 -1
- package/dist/{horizontal-D4WeerSG.js → horizontal-B2gRIU3h.js} +1 -1
- package/dist/{horizontal-CQIBO_Ka.mjs → horizontal-MplBlRbr.mjs} +2 -2
- package/dist/{hsAttrBtn-3baMQb2-.mjs → hsAttrBtn-BiYYZQHN.mjs} +1 -1
- package/dist/{hsAttrBtn-Br7XWq3Q.js → hsAttrBtn-DQsPQQpR.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DOluYFs9.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-DarSWb--.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-rzYLCVsq.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-wPfMLCLL.mjs} +6 -5
- package/dist/{hsAttrForm-BlMVkWQm.mjs → hsAttrForm-CwWOz-Eg.mjs} +1 -1
- package/dist/{hsAttrForm-DKMRDlGz.js → hsAttrForm-DGXQAlnz.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BrM52GSO.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-D7D5uSln.mjs} +77 -5
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-D7D5uSln.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DXKFdGEl.js +1 -0
- package/dist/{hsBtnConfigList-B40LNkBk.mjs → hsBtnConfigList-BIprDQ6I.mjs} +2 -2
- package/dist/{hsBtnConfigList-ydNlmXom.js → hsBtnConfigList-BODtIGan.js} +1 -1
- package/dist/{hsBtnItemConfig-DRzKO7FV.mjs → hsBtnItemConfig-BNCeEDV1.mjs} +1 -1
- package/dist/{hsBtnItemConfig-BEpLkOfo.js → hsBtnItemConfig-Cp2DtHAc.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CONeRA5r.js +1 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BWfEaFk9.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Dhz_5jL7.mjs} +51 -4
- package/dist/{hsBtnPanel-C55u7hhC.mjs → hsBtnPanel-C7lNH1ri.mjs} +1 -1
- package/dist/{hsBtnPanel-HGi9QeL2.js → hsBtnPanel-C8-HtqhW.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D0MaPtp3.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CMd1zUup.mjs} +5 -5
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CU3ycl3P.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-rsWDO_I2.js} +1 -1
- package/dist/{hsExpand-D3tmQovv.js → hsExpand-CQAsUWBs.js} +1 -1
- package/dist/{hsExpand-G1AAVlms.mjs → hsExpand-CSnyK0kn.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-C23HWG6c.js → hsExpand.vue_vue_type_script_setup_true_lang-C8UwIcRH.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-m3aiwgP3.mjs → hsExpand.vue_vue_type_script_setup_true_lang-DNf2Z-5w.mjs} +1 -1
- package/dist/{hsFormConfig-CP922_5f.mjs → hsFormConfig-DeCm8J-J.mjs} +1 -1
- package/dist/{hsFormConfig-Bqn5pkUI.js → hsFormConfig-e5ttkqrw.js} +1 -1
- package/dist/{hsFormConfigList-DdFrwgny.mjs → hsFormConfigList-BeXq2O76.mjs} +43 -19
- package/dist/hsFormConfigList-BeXq2O76.mjs.gz +0 -0
- package/dist/hsFormConfigList-VuNnPpgd.js +1 -0
- package/dist/hsFormPanel-CFNPflLW.js +1 -0
- package/dist/{hsFormPanel-QaMjQTd4.mjs → hsFormPanel-CdXomdJM.mjs} +11 -10
- package/dist/hsFormPanel-CdXomdJM.mjs.gz +0 -0
- package/dist/{hsFormParse-PvJ0W4QQ.js → hsFormParse-BgAQMMIh.js} +1 -1
- package/dist/{hsFormParse-D7nZT9lp.mjs → hsFormParse-LJyG-F3n.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BPVmDX_W.js → hsFormParse.vue_vue_type_script_setup_true_lang-23ZV3F2-.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-D6i1X5NX.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-Cuy1sNNZ.mjs} +2 -2
- package/dist/{hsPanelItem-CXYTijEk.mjs → hsPanelItem-BpvDE_rf.mjs} +1 -1
- package/dist/{hsPanelItem-CGWFmMp7.js → hsPanelItem-DODaNZSB.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CIhPBEEI.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CmrkPaN2.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DxUEYecZ.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DDmGsU3B.mjs} +1 -1
- package/dist/{iframes-CVaRH4YT.js → iframes-DtaHDh3n.js} +1 -1
- package/dist/{iframes-BliXtjJr.mjs → iframes-ZRgcqD4n.mjs} +1 -1
- package/dist/{index copy-2msqaDdX.mjs → index copy-BceLoyYk.mjs } +1 -1
- package/dist/{index copy-2msqaDdX.mjs.gz → index copy-BceLoyYk.mjs.gz} +0 -0
- package/dist/{index copy-7yqIR4CJ.js → index copy-CDpLq19b.js } +1 -1
- package/dist/index copy-CDpLq19b.js.gz +0 -0
- package/dist/{index-T6UbhAIx.mjs → index-57YKx-uf.mjs} +1 -1
- package/dist/{index-CaYnL0Ps.mjs → index-5M5x0C4o.mjs} +1 -1
- package/dist/{index-DXaNxZNG.mjs → index-7mdcLPTc.mjs} +1 -1
- package/dist/{index-e1x7ZUMX.mjs → index-82d8OPSn.mjs} +1 -1
- package/dist/{index-CJKyoxhE.mjs → index-9x1sMuQS.mjs} +5 -5
- package/dist/{index-RcTBVBDa.js → index-B-x1YtQg.js} +1 -1
- package/dist/index-B-x1YtQg.js.gz +0 -0
- package/dist/{index-Bkg8ad6i.mjs → index-B0kTEwsp.mjs} +1 -1
- package/dist/{index-e6itt5yf.js → index-B2dVlUn3.js} +1 -1
- package/dist/{index-Byv4PSpt.mjs → index-BA_E8K69.mjs} +2 -2
- package/dist/index-BA_E8K69.mjs.gz +0 -0
- package/dist/{index-BaRxl_tP.js → index-BLXDEpuj.js} +1 -1
- package/dist/{index-d55yQ3LG.mjs → index-BNXT1sr1.mjs} +1 -1
- package/dist/{index-C-apeohu.mjs → index-BOSr8UDf.mjs} +1 -1
- package/dist/{index-_go4Wh5O.js → index-BPPSAaRp.js} +1 -1
- package/dist/{index-DcPYO4EX.mjs → index-BRLv-lrg.mjs} +3 -3
- package/dist/{index-Bd1Jytit.mjs → index-BT0wWsFH.mjs} +4 -4
- package/dist/{index-Cx4lLVJl.js → index-BTNLl592.js} +1 -1
- package/dist/{index-JsL8HoQF.mjs → index-BTTLNpdZ.mjs} +2 -2
- package/dist/{index-BSwIBHKP.mjs → index-Bbj3K5qz.mjs} +353 -146
- package/dist/index-Bbj3K5qz.mjs.gz +0 -0
- package/dist/{index--hxFI6M7.mjs → index-BcCxrgHP.mjs} +2 -2
- package/dist/{index-CMF41cfB.js → index-BptnO4ex.js} +1 -1
- package/dist/{index-Cy4wqdw0.mjs → index-Bqri4OCh.mjs} +3 -3
- package/dist/{index-oRCNVspQ.js → index-BtD4G15z.js} +1 -1
- package/dist/{index-DK0daxHB.mjs → index-BtND5WGA.mjs} +4 -4
- package/dist/{index-BOndzRFJ.js → index-BwsBKDaR.js} +1 -1
- package/dist/{index-BXJUsfY1.mjs → index-BzBHApnn.mjs} +3 -3
- package/dist/index-BzBHApnn.mjs.gz +0 -0
- package/dist/{index-DD90tsg7.mjs → index-C3Tgsdlo.mjs} +1 -1
- package/dist/{index-B5J0pKhJ.mjs → index-C4EirXnK.mjs} +1 -1
- package/dist/{index-D6I8OSZU.js → index-C5hXzenf.js} +1 -1
- package/dist/{index-Dge6g42B.mjs → index-CD9CDPKi.mjs} +4 -4
- package/dist/index-CD9CDPKi.mjs.gz +0 -0
- package/dist/{index-DJa8XQss.mjs → index-CDPcHhOe.mjs} +1 -1
- package/dist/{index-DThqmDTg.js → index-CDyCFaSA.js} +1 -1
- package/dist/{index-CBsqy27c.mjs → index-CILS9MM5.mjs} +3 -3
- package/dist/index-CQ_1tGyc.mjs +4 -0
- package/dist/{index-CBzKaz92.js → index-CZk2dBTL.js} +1 -1
- package/dist/{index-Dq93j1bC.js → index-Ca6ya3ew.js} +1 -1
- package/dist/{index-DMtMAkh6.js → index-ChN-0T06.js} +1 -1
- package/dist/{index-tUD6Zc1n.mjs → index-Ck9mcgmp.mjs} +1 -1
- package/dist/index-CpM8hjT1.js +1 -0
- package/dist/{index-Bf6YZqD5.js → index-Cpbc0IhL.js} +1 -1
- package/dist/{index-y7qHlIFi.js → index-CqmccTmd.js} +1 -1
- package/dist/{index-BPRE-zfi.js → index-Cr-6MYwR.js} +1 -1
- package/dist/{index-DByosftg.mjs → index-Cro4fTc5.mjs} +3 -3
- package/dist/{index-mV7T7M6Y.mjs → index-Cwes7-xm.mjs} +24 -1
- package/dist/{index-DpvKm8T1.js → index-Cy2oEvzz.js} +1 -1
- package/dist/{index-DncyYms5.js → index-CzRYGnwB.js} +1 -1
- package/dist/{index-B3EWDai-.js → index-D0pH3Ddn.js} +1 -1
- package/dist/{index-CW1klFy8.js → index-D2AbmAQB.js} +1 -1
- package/dist/index-D2AbmAQB.js.gz +0 -0
- package/dist/{index-D8cAM_FG.js → index-D719SdTM.js} +1 -1
- package/dist/{index-rUDtfMEe.js → index-D8s-GgCQ.js} +1 -1
- package/dist/index-DFHDVMWI.mjs +4 -0
- package/dist/{index-MeP7Dn_1.js → index-DGIenmIh.js} +1 -1
- package/dist/{index-CiADMOHG.mjs → index-DMOp6GkC.mjs} +3 -3
- package/dist/{index-fmhKO761.mjs → index-DNDg6AtY.mjs} +1 -1
- package/dist/{index-CgltI-cf.js → index-DOpxywiY.js} +1 -1
- package/dist/{index-VF70NoE6.js → index-DStiZrbn.js} +7 -7
- package/dist/index-DStiZrbn.js.gz +0 -0
- package/dist/{index-DKDaIGMY.js → index-DTNt2-Yi.js} +1 -1
- package/dist/{index-D2-ObVji.mjs → index-Dia11L_a.mjs} +1 -1
- package/dist/index-Dma8KNoA.js +1 -0
- package/dist/{index-Bavml4ha.js → index-DohqhFa0.js} +1 -1
- package/dist/{index-B8kIXvhN.js → index-F3f8YwJT.js} +1 -1
- package/dist/{index-7mXWPdHQ.js → index-FIZ8Ld2w.js} +1 -1
- package/dist/{index-k-hQXEBk.js → index-KO7UhqDL.js} +1 -1
- package/dist/{index-DRwTZV_u.js → index-Kc7pGRNw.js} +1 -1
- package/dist/{index-DTSOhsH4.mjs → index-U6wovVhf.mjs} +1 -1
- package/dist/{index-5nXE0_r9.mjs → index-az7N25pt.mjs} +1 -1
- package/dist/{index-10fPzd7s.js → index-cJ8s36f8.js} +1 -1
- package/dist/{index-DAXXRZku.mjs → index-dOhr2vZX.mjs} +1 -1
- package/dist/index-dOhr2vZX.mjs.gz +0 -0
- package/dist/{index-BGPBWtrZ.mjs → index-diygcHq2.mjs} +1 -1
- package/dist/{index-BiPpna0t.mjs → index-etlWtd2P.mjs} +1 -1
- package/dist/{index-DCYuOP-5.mjs → index-n_n6temS.mjs} +1 -1
- package/dist/{index-C-PwFWp1.mjs → index-qUFcEv5f.mjs} +1 -1
- package/dist/{index-D-qqjNAF.js → index-qhYoeMu-.js} +1 -1
- package/dist/{index-3qzg3aSg.js → index-rdhJyJqh.js} +1 -1
- package/dist/{index-CF6FUokN.js → index-w5mL0ZpX.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +58 -58
- package/dist/{index.vue_vue_type_script_setup_true_lang-5Rx1VJCY.mjs → index.vue_vue_type_script_setup_true_lang-B0M_sGbl.mjs} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cuo_nUPk.js → index.vue_vue_type_script_setup_true_lang-BSiGERFO.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CNevRR0c.js → index.vue_vue_type_script_setup_true_lang-BXtuYnhz.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D4YEWfFu.mjs → index.vue_vue_type_script_setup_true_lang-BlmL5xwX.mjs} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-BlmL5xwX.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C13RvviD.mjs → index.vue_vue_type_script_setup_true_lang-C8kY9D_q.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-z00ErQAy.js → index.vue_vue_type_script_setup_true_lang-CaXs_kIA.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CMiXckfQ.mjs → index.vue_vue_type_script_setup_true_lang-DR7Qyphx.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DA68Xq4n.js → index.vue_vue_type_script_setup_true_lang-PI2c5_FH.js} +1 -1
- package/dist/{index-BM2yaegy.mjs → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CHVTusyA.mjs} +27 -11
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DBqZJKh4.js +1 -0
- package/dist/{link-DgsYflYI.mjs → link-CGsB5dRF.mjs} +1 -1
- package/dist/{link-DPtps99Y.js → link-Gn5Cvr7m.js} +1 -1
- package/dist/{list-DYpjt8A5.mjs → list-BP7oD83U.mjs} +1 -1
- package/dist/{list-DDhxe7jY.js → list-Dld39bU_.js} +1 -1
- package/dist/{main-CxzkoO-C.mjs → main-CBoD182O.mjs} +3 -3
- package/dist/{main-IJZBMRDu.js → main-C_OjUxqG.js} +1 -1
- package/dist/{mobile-DOMHq3tg.js → mobile-BRlhRuf4.js} +1 -1
- package/dist/{mobile-BTZJD6ll.mjs → mobile-fq1GlVVl.mjs} +1 -1
- package/dist/{parent-C-lmzY-0.mjs → parent-CFyynqci.mjs} +2 -2
- package/dist/{parent-D19VEHja.js → parent-CQflpUuM.js} +1 -1
- package/dist/{popup-RJ2YeUvK.js → popup-BlaRpkP6.js} +1 -1
- package/dist/{popup-DWuOXjiH.mjs → popup-aHXlPXr6.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-BzuupteU.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-C8olkcQt.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-C-6WUcjE.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CdZh_pY1.mjs} +1 -1
- package/dist/{replaceRules-FXly_hOy.mjs → replaceRules-Bo6YY6Lh.mjs} +1 -1
- package/dist/{replaceRules-BgSa4mzJ.js → replaceRules-DcyvXQ0l.js} +1 -1
- package/dist/{roleItem-DIxqS0pk.mjs → roleItem-9wfTJhDo.mjs} +1 -1
- package/dist/{roleItem-kvz2Tndf.js → roleItem-DSxCTPbF.js} +1 -1
- package/dist/{saveForm-bKrHBqds.mjs → saveForm-BVyyhlVg.mjs} +2 -2
- package/dist/saveForm-BVyyhlVg.mjs.gz +0 -0
- package/dist/{saveForm-CnFdWWV7.js → saveForm-BnkMtwFk.js} +1 -1
- package/dist/{scan-DWh9hOB-.mjs → scan-BXLWo6pS.mjs} +1 -1
- package/dist/scan-BXLWo6pS.mjs.gz +0 -0
- package/dist/{scan-B_eQ88jv.js → scan-o4HIGBk5.js} +1 -1
- package/dist/{scan-B_eQ88jv.js.gz → scan-o4HIGBk5.js.gz} +0 -0
- package/dist/{search-zUGHOnAs.js → search-Cyp69_-k.js} +1 -1
- package/dist/{search-eNA4ZGCe.mjs → search-Dn32dtfD.mjs} +1 -1
- package/dist/{selectConfig-B1O4dPlL.js → selectConfig-CKFJagvX.js} +1 -1
- package/dist/{selectConfig-EYPPvH57.mjs → selectConfig-HG1fWjVw.mjs} +1 -1
- package/dist/selectConfig-HG1fWjVw.mjs.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-CRWFn3mZ.js → subItem-jru9DLtU.js} +1 -1
- package/dist/{subItem-CWLwSQnl.mjs → subItem-q8dShjMP.mjs} +1 -1
- package/dist/{tagsView-C1hbLCxr.js → tagsView-BhV0E0at.js} +2 -2
- package/dist/tagsView-BhV0E0at.js.gz +0 -0
- package/dist/{tagsView-BVz297e5.mjs → tagsView-D30XqpvR.mjs} +2 -2
- package/dist/tagsView-D30XqpvR.mjs.gz +0 -0
- package/dist/{transverse-BsbhnlWa.js → transverse-1gB5rL_i.js} +1 -1
- package/dist/{transverse-iwtvacDm.mjs → transverse-BH6INCk1.mjs} +3 -3
- package/dist/types/components/business/bcForm/baseForm.vue.d.ts +1 -0
- package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +1 -0
- package/dist/types/components/business/bcTable/components/btn/btn.vue.d.ts +1 -0
- package/dist/types/components/business/bcTable/utils/useTable.d.ts +8 -0
- package/dist/types/types/customData.d.ts +4 -0
- package/dist/types/utils/shortcutList.d.ts +4 -0
- package/dist/{uploadAvatar-CCMQqrQH.js → uploadAvatar-74FZohyY.js} +1 -1
- package/dist/uploadAvatar-74FZohyY.js.gz +0 -0
- package/dist/{uploadAvatar-gyYQxFhx.mjs → uploadAvatar-mGXix_7F.mjs} +1 -1
- package/dist/uploadAvatar-mGXix_7F.mjs.gz +0 -0
- package/dist/{user-CN5lUUns.js → user-4sEXNxQz.js} +1 -1
- package/dist/{user-BTHLLmlm.mjs → user-CFB9nxxP.mjs} +4 -4
- package/dist/user-CFB9nxxP.mjs.gz +0 -0
- package/dist/{userNews-U27PTART.js → userNews-DM0yNYOO.js} +1 -1
- package/dist/{userNews-BiJwq9Xz.mjs → userNews-DX51Fc4X.mjs} +1 -1
- package/dist/{userSelect-DRANZIV4.js → userSelect-Br957c5f.js} +1 -1
- package/dist/{userSelect-DvaxkCfX.mjs → userSelect-USSnnzk1.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-D6cvzK4K.js → userSelect.vue_vue_type_script_setup_true_lang-BHxw-n9z.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DoNEiqWe.mjs → userSelect.vue_vue_type_script_setup_true_lang-CWs8No55.mjs} +1 -1
- package/dist/{vertical-BvH6lgIX.js → vertical-DkoCUEA1.js} +1 -1
- package/dist/{vertical-C-YE8TKR.mjs → vertical-DqgTYTIT.mjs} +2 -2
- package/package.json +1 -1
- package/dist/account-CjIlI0P-.mjs.gz +0 -0
- package/dist/account-DuXVO06i.js.gz +0 -0
- package/dist/baseBtnConfig-CIYKz-TG.js +0 -1
- package/dist/baseFormConfig-Dl6Dnw2K.mjs.gz +0 -0
- package/dist/baseFormConfig-c3zPgN4C.js +0 -1
- package/dist/btnIndex-dU-8DeWW.mjs.gz +0 -0
- package/dist/cloneConfigDialog-B2A8nw0j.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BgsbWo7j.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DcvkVOjP.js.gz +0 -0
- package/dist/formConfig-Ca7c2NsO.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BrM52GSO.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Cb9BlKfQ.js +0 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-D-gUeMMa.js +0 -1
- package/dist/hsFormConfigList-BlC8RgO0.js +0 -1
- package/dist/hsFormConfigList-DdFrwgny.mjs.gz +0 -0
- package/dist/hsFormPanel-QaMjQTd4.mjs.gz +0 -0
- package/dist/hsFormPanel-aA90zVOw.js +0 -1
- package/dist/index copy-7yqIR4CJ.js.gz +0 -0
- package/dist/index-4BpzZ4-k.js +0 -1
- package/dist/index-BHM3WB3B.mjs +0 -4
- package/dist/index-BSwIBHKP.mjs.gz +0 -0
- package/dist/index-BXJUsfY1.mjs.gz +0 -0
- package/dist/index-Byv4PSpt.mjs.gz +0 -0
- package/dist/index-CW1klFy8.js.gz +0 -0
- package/dist/index-DAXXRZku.mjs.gz +0 -0
- package/dist/index-DPt5ZlIP.js +0 -1
- package/dist/index-Dge6g42B.mjs.gz +0 -0
- package/dist/index-RcTBVBDa.js.gz +0 -0
- package/dist/index-VF70NoE6.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D4YEWfFu.mjs.gz +0 -0
- package/dist/saveForm-bKrHBqds.mjs.gz +0 -0
- package/dist/scan-DWh9hOB-.mjs.gz +0 -0
- package/dist/selectConfig-EYPPvH57.mjs.gz +0 -0
- package/dist/tagsView-BVz297e5.mjs.gz +0 -0
- package/dist/tagsView-C1hbLCxr.js.gz +0 -0
- package/dist/uploadAvatar-CCMQqrQH.js.gz +0 -0
- package/dist/uploadAvatar-gyYQxFhx.mjs.gz +0 -0
- package/dist/user-BTHLLmlm.mjs.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-VF70NoE6.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[t.createTextVNode(" 选择 "),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>[t.createTextVNode("重 置")])),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>[t.createTextVNode("提 交")])),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-B-YXXUWn.js"),i=require("./index-DStiZrbn.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&i<o&s<o?this.imgs=this.img:(i>o&&(s=s/i*o,i=o),s>o&&(i=i/s*o,s=o),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,h=this.trueHeight,r=this.cropOffsertX,a=this.cropOffsertY;function c(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),n=1;this.high&!this.full&&(n=window.devicePixelRatio),1!==this.enlarge&!this.full&&(n=Math.abs(Number(this.enlarge)));let p=this.cropW*n,l=this.cropH*n,d=o*this.scale*n,u=h*this.scale*n,g=(this.x-r+this.trueWidth*(1-this.scale)/2)*n,m=(this.y-a+this.trueHeight*(1-this.scale)/2)*n;switch(c(p,l),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),s){case 0:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u);break;case 1:case-3:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,m,-g-u,d,u));break;case 2:case-2:this.full?(c(p/this.scale,l/this.scale),t.rotate(90*s*Math.PI/180),g/=this.scale,m/=this.scale,t.drawImage(i,-g-d/this.scale,-m-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*s*Math.PI/180),t.drawImage(i,-g-d,-m-u,d,u));break;case 3:case-1:this.full?(c(p/this.scale,l/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,m=m/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,m+=(u-d)/2,t.rotate(90*s*Math.PI/180),t.drawImage(i,-m-d,g,d,u));break;default:this.full?(c(p/this.scale,l/this.scale),t.drawImage(i,g/this.scale,m/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,m,d,u)}t.restore()}else{let t=o*this.scale,r=h*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),s){case 0:c(t,r),a.drawImage(i,0,0,t,r);break;case 1:case-3:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,0,-r,t,r);break;case 2:case-2:c(t,r),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,-r,t,r);break;case 3:case-1:c(r,t),a.rotate(90*s*Math.PI/180),a.drawImage(i,-t,0,t,r);break;default:c(t,r),a.drawImage(i,0,0,t,r)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-168a3964"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:o}=i.useFileController(),h=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[t.createTextVNode(" 选择 "),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>[t.createTextVNode("重 置")])),_:1})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>[t.createTextVNode("提 交")])),_:1})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-99513ec9"]]);exports.default=g;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, vShow, createCommentVNode, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
2
|
import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-DOiOwYLl.mjs";
|
|
3
|
-
import { _ as _export_sfc,
|
|
3
|
+
import { _ as _export_sfc, a8 as systemStore, d as ElMessage, a9 as useFileController } from "./index-Bbj3K5qz.mjs";
|
|
4
4
|
const _sfc_main$1 = {
|
|
5
5
|
data: function() {
|
|
6
6
|
return {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DStiZrbn.js"),t=require("./index-BwsBKDaR.js"),r=[["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"]],l=(()=>{if("undefined"==typeof document)return!1;const e=r[0],n={};for(const t of r){if((null==t?void 0:t[1])in document){for(const[r,l]of t.entries())n[e[r]]=l;return n}}return!1})(),o={change:l.fullscreenchange,error:l.fullscreenerror};let s={request:(e=document.documentElement,n)=>new Promise(((t,r)=>{const o=()=>{s.off("change",o),t()};s.on("change",o);const c=e[l.requestFullscreen](n);c instanceof Promise&&c.then(o).catch(r)})),exit:()=>new Promise(((e,n)=>{if(!s.isFullscreen)return void e();const t=()=>{s.off("change",t),e()};s.on("change",t);const r=document[l.exitFullscreen]();r instanceof Promise&&r.then(t).catch(n)})),toggle:(e,n)=>s.isFullscreen?s.exit():s.request(e,n),onchange(e){s.on("change",e)},onerror(e){s.on("error",e)},on(e,n){const t=o[e];t&&document.addEventListener(t,n,!1)},off(e,n){const t=o[e];t&&document.removeEventListener(t,n,!1)},raw:l};Object.defineProperties(s,{isFullscreen:{get:()=>Boolean(document[l.fullscreenElement])},element:{enumerable:!0,get:()=>document[l.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[l.fullscreenEnabled])}}),l||(s={isEnabled:!1});const c=s,a=[(n=>(e.pushScopeId("data-v-e3d6c416"),n=n(),e.popScopeId(),n))((()=>e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)))],u=["title"],i={class:"layout-navbars-breadcrumb-user-link"},d=["src"],m=e.defineComponent({name:"layoutBreadcrumbUser"}),f=e.defineComponent({...m,setup(r){const l=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./userNews-DM0yNYOO.js"))))),o=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./search-Cyp69_-k.js"))))),s=t.useLoginController(),m=e.ref(),f=e.ref(),g=n.useRouter(),h=n.useUserInfo(),p=n.useThemeConfig(),{userInfos:b}=n.storeToRefs(h),{themeConfig:w}=n.storeToRefs(p),v=e.ref(),C=e.reactive({isScreenfull:!1,disabledSize:"large"}),E=e.computed((()=>{let e="";const{layout:n,isClassicSplitMenu:t}=w.value;return e=["defaults","columns"].includes(n)||"classic"===n&&!t?"1":"",e})),x=()=>{if(!c.isEnabled)return n.ElMessage.warning("暂不不支持全屏"),!1;c.toggle(),c.on("change",(()=>{c.isFullscreen?C.isScreenfull=!0:C.isScreenfull=!1}))},S=()=>{var n,t;null==(t=null==(n=e.unref(m).popperRef)?void 0:n.delayHide)||t.call(n)},k=()=>{n.mittBus.emit("openSetingsDrawer")},N=e=>{"logOut"===e?n.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(e,n,t)=>{"confirm"===e?(n.confirmButtonLoading=!0,n.confirmButtonText="退出中",s.postAjaxLogout().then((()=>{t()})).finally((()=>{n.confirmButtonLoading=!1}))):t()}}).then((()=>{h.logout()})).catch((()=>{})):"cleanCanche"===e?n.clearAllIndexDB():"wareHouse"===e?window.open("https://www.baidu.com"):g.push(e)},y=()=>{v.value.openSearch()};return e.onMounted((async()=>{await n.systemStore.get("themeConfig")&&await(async(e,t)=>{C[t]=await n.systemStore.get("themeConfig").then((t=>n._.get(t,e,"large")))})("globalComponentSize","disabledSize")})),(t,r)=>{const s=e.resolveComponent("ele-Search"),c=e.resolveComponent("el-icon"),g=e.resolveComponent("ele-Bell"),h=e.resolveComponent("el-badge"),p=e.resolveComponent("el-popover"),w=e.resolveComponent("ele-ArrowDown"),F=e.resolveComponent("el-dropdown-item"),V=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:E.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:y},[e.createVNode(c,{title:"菜单搜索"},{default:e.withCtx((()=>[e.createVNode(s)])),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:k},a),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:f},[e.createVNode(h,{"is-dot":!0},{default:e.withCtx((()=>[e.createVNode(c,{title:"消息"},{default:e.withCtx((()=>[e.createVNode(g)])),_:1})])),_:1})])),[[e.unref(n.ClickOutside),S]]),e.createVNode(p,{ref_key:"userNewsRef",ref:m,"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(l))])),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:x},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",C.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:C.isScreenfull?"关全屏":"开全屏"},null,10,u)]),e.createVNode(B,{"show-timeout":70,"hide-timeout":50,onCommand:N},{dropdown:e.withCtx((()=>[e.createVNode(V,null,{default:e.withCtx((()=>[e.createVNode(F,{divided:"",command:"cleanCanche"},{default:e.withCtx((()=>[e.createTextVNode("清除缓存")])),_:1}),e.createVNode(F,{divided:"",command:"logOut"},{default:e.withCtx((()=>[e.createTextVNode("退出登录")])),_:1})])),_:1})])),default:e.withCtx((()=>[e.createElementVNode("span",i,[e.createElementVNode("img",{src:e.unref(b).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,d),e.createTextVNode(" "+e.toDisplayString(""===e.unref(b).name?"common":e.unref(b).name)+" ",1),e.createVNode(c,{class:"el-icon--right"},{default:e.withCtx((()=>[e.createVNode(w)])),_:1})])])),_:1}),e.createVNode(e.unref(o),{ref_key:"searchRef",ref:v},null,512)],4)}}}),g=n._export_sfc(f,[["__scopeId","data-v-e3d6c416"]]);exports.default=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, withCtx, withDirectives, unref, normalizeClass, createTextVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
|
2
|
-
import { a as useRouter,
|
|
3
|
-
import { u as useLoginController } from "./index-
|
|
2
|
+
import { a as useRouter, O as useUserInfo, c as useThemeConfig, s as storeToRefs, a8 as systemStore, af as ClickOutside, d as ElMessage, m as mittBus, E as ElMessageBox, ag as clearAllIndexDB, e as _, _ as _export_sfc } from "./index-Bbj3K5qz.mjs";
|
|
3
|
+
import { u as useLoginController } from "./index-Ck9mcgmp.mjs";
|
|
4
4
|
const methodMap = [
|
|
5
5
|
[
|
|
6
6
|
"requestFullscreen",
|
|
@@ -156,8 +156,8 @@ const __default__ = defineComponent({
|
|
|
156
156
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
157
157
|
...__default__,
|
|
158
158
|
setup(__props) {
|
|
159
|
-
const UserNews = defineAsyncComponent(() => import("./userNews-
|
|
160
|
-
const Search = defineAsyncComponent(() => import("./search-
|
|
159
|
+
const UserNews = defineAsyncComponent(() => import("./userNews-DX51Fc4X.mjs"));
|
|
160
|
+
const Search = defineAsyncComponent(() => import("./search-Dn32dtfD.mjs"));
|
|
161
161
|
const login = useLoginController();
|
|
162
162
|
const userNewsRef = ref();
|
|
163
163
|
const userNewsBadgeRef = ref();
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DStiZrbn.js"),o={class:"layout-navbars-breadcrumb-user-news"},n={class:"head-box"},l=(t=>(e.pushScopeId("data-v-8abed4d4"),t=t(),e.popScopeId(),t))((()=>e.createElementVNode("div",{class:"head-box-title"},"通知",-1))),c={class:"content-box"},s={class:"content-box-msg"},a={class:"content-box-time"},r=e.defineComponent({name:"layoutBreadcrumbUserNews"}),i=e.defineComponent({...r,setup(t){const r=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),i=()=>{r.newsList=[]},d=()=>{window.open("https://www.baidu.com")};return(t,m)=>{const p=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",n,[l,r.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:i},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",c,[r.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.newsList,((t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:o},[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",s,e.toDisplayString(t.value),1),e.createElementVNode("div",a,e.toDisplayString(t.time),1)])))),128)):(e.openBlock(),e.createBlock(p,{key:1,description:"暂无通知"}))]),r.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:d},"前往通知中心")):e.createCommentVNode("",!0)])}}}),d=t._export_sfc(i,[["__scopeId","data-v-8abed4d4"]]);exports.default=d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString, createBlock, pushScopeId, popScopeId } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-Bbj3K5qz.mjs";
|
|
3
3
|
const _withScopeId = (n) => (pushScopeId("data-v-8abed4d4"), n = n(), popScopeId(), n);
|
|
4
4
|
const _hoisted_1 = { class: "layout-navbars-breadcrumb-user-news" };
|
|
5
5
|
const _hoisted_2 = { class: "head-box" };
|
|
@@ -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-BHxw-n9z.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./index-DStiZrbn.js"),l=(e={})=>(e=((e,t)=>Object.assign(e,{other_log_info:{title:t}}))(e,"获取全部用户列表"),t.request({url:"/scmp-web/pri/user/list_all",method:"get",params:e}));const a={class:"h-full flex flex-col"},o={class:"flex justify-between items-center"},s=e.createElementVNode("span",null,"* 双击选择",-1),n={class:"flex-1"},c={class:"flex justify-center items-center py-[5px]"},r=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(t,{emit:r}){const{getListAll:u}={getListAll:l},i=r,d=e.ref([]),m=async()=>{let e={qry_like_info:p.value};const t=await u(e);1===t.code&&(d.value=t.data)};e.onMounted((()=>{m()}));const p=e.ref("");return(t,l)=>{const r=e.resolveComponent("hs-input"),u=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-table"),h=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",o,[e.createVNode(r,{modelValue:p.value,"onUpdate:modelValue":l[0]||(l[0]=e=>p.value=e),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(m,["enter"])},null,8,["modelValue"]),s]),e.createElementVNode("div",n,[e.createVNode(f,{data:d.value,style:{width:"100%",height:"100%"}},{default:e.withCtx((()=>[e.createVNode(u,{prop:"name",label:"name"}),e.createVNode(u,{prop:"account",label:"account",width:"180"})])),_:1},8,["data"])]),e.createElementVNode("div",c,[e.createVNode(h,{size:"default",type:"default",class:"ml10",onClick:l[1]||(l[1]=e=>i("success","close"))},{default:e.withCtx((()=>[e.createTextVNode(" 取消 ")])),_:1})])])}}});exports._sfc_main=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withKeys, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { r as request } from "./index-
|
|
2
|
+
import { r as request } from "./index-Bbj3K5qz.mjs";
|
|
3
3
|
const assign = (params, title) => {
|
|
4
4
|
return Object.assign(params, { other_log_info: { title } });
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DStiZrbn.js"),n=e.defineComponent({name:"navMenuVertical"}),l=e.defineComponent({...n,props:{menuList:{type:Array,default:()=>[]}},setup(n){const l=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./subItem-jru9DLtU.js"))))),i=n,o=t.useThemeConfig(),{themeConfig:a}=t.storeToRefs(o),s=t.useRoute(),c=e.reactive({defaultActive:s.meta.isDynamic?s.meta.isDynamicPath:s.path,isCollapse:!1}),r=e.computed((()=>i.menuList)),u=e.computed((()=>a.value)),m=e=>{const{path:t,meta:n}=e,l=(null==n?void 0:n.isDynamic)?n.isDynamicPath.split("/"):t.split("/");return l.length>=4&&(null==n?void 0:n.isHide)?l.splice(0,3).join("/"):t};return e.onMounted((()=>{c.defaultActive=m(s)})),t.onBeforeRouteUpdate((e=>{c.defaultActive=m(e);document.body.clientWidth<1e3&&(a.value.isCollapse=!1)})),e.watch((()=>a.value.isCollapse),(e=>{document.body.clientWidth<=1e3?c.isCollapse=!1:c.isCollapse=e}),{immediate:!0}),(n,i)=>{const o=e.resolveComponent("SvgIcon"),a=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item"),m=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(m,{router:"","default-active":c.defaultActive,"background-color":"transparent",collapse:c.isCollapse,"unique-opened":u.value.isUniqueOpened,"collapse-transition":!1},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.children&&n.children.length>0?(e.openBlock(),e.createBlock(a,{index:n.path,key:n.path},{title:e.withCtx((()=>[e.createVNode(o,{name:n.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(e.unref(l),{chil:n.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:n.path,key:n.path},e.createSlots({default:e.withCtx((()=>[e.createVNode(o,{name:n.meta.icon},null,8,["name"])])),_:2},[!n.meta.isLink||n.meta.isLink&&n.meta.isIframe?{name:"title",fn:e.withCtx((()=>[e.createElementVNode("span",null,e.toDisplayString(n.meta.title),1)])),key:"0"}:{name:"title",fn:e.withCtx((()=>[e.createElementVNode("a",{class:"w100",onClick:e.withModifiers((e=>(e=>{t.other.handleOpenLink(e)})(n)),["prevent"])},e.toDisplayString(n.meta.title),9,["onClick"])])),key:"1"}]),1032,["index"]))],64)))),256))])),_:1},8,["default-active","collapse","unique-opened"])}}});exports.default=l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, createElementVNode, toDisplayString, unref, createSlots, withModifiers } from "vue";
|
|
2
|
-
import { c as useThemeConfig, s as storeToRefs, u as useRoute,
|
|
2
|
+
import { c as useThemeConfig, s as storeToRefs, u as useRoute, ac as onBeforeRouteUpdate, ab as other } from "./index-Bbj3K5qz.mjs";
|
|
3
3
|
const __default__ = defineComponent({
|
|
4
4
|
name: "navMenuVertical"
|
|
5
5
|
});
|
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
setup(__props) {
|
|
16
|
-
const SubItem = defineAsyncComponent(() => import("./subItem-
|
|
16
|
+
const SubItem = defineAsyncComponent(() => import("./subItem-q8dShjMP.mjs"));
|
|
17
17
|
const props = __props;
|
|
18
18
|
const storesThemeConfig = useThemeConfig();
|
|
19
19
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l={title:{subTitle:"按钮配置"},visible:!0,list:[{prop:"name",label:"按钮名称",el:"hs-input",tooltips:"按钮名称"},{prop:"key",label:"按钮key值",el:"hs-input",slotValue:"key",tooltips:"按钮key值"},{prop:"isApply",label:"是否启用",el:"hs-switch",tooltips:"是否启用"},{prop:"isSlot",label:"插槽名称",el:"hs-switch",tooltips:"是否自定义插槽, 如果用插槽则赋值,不用插槽则清空"},{prop:"isShow",label:"是否显示",el:"hs-switch",tooltips:"是否显示"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"btnIcon",label:"按钮图标",el:"hs-input",slotValue:"btnIcon"},{prop:"iconPosition",label:"图标位置",el:"hs-select",cel:"hs-option",op:[{label:"左边",value:"left"},{label:"右边",value:"right"}]},{prop:"fnName",label:"方法名称",el:"hs-input",type:"textarea"},{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}]},{prop:"type",label:"类型",el:"hs-select",cel:"hs-option",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{prop:"plain",label:"朴素按钮",el:"hs-switch",tooltips:"是否为朴素按钮"},{prop:"text",label:"文字按钮",el:"hs-switch",tooltips:"是否为文字按钮"},{prop:"bg",label:"文字按钮背景颜色",el:"hs-switch",tooltips:"是否显示文字按钮背景颜色"},{prop:"link",label:"链接按钮",el:"hs-switch",tooltips:"是否为链接按钮"},{prop:"round",label:"圆角按钮",el:"hs-switch",tooltips:"是否为圆角按钮"},{prop:"circle",label:"圆形按钮",el:"hs-switch",tooltips:"是否为圆形按钮"},{prop:"loading",label:"加载状态",el:"hs-switch",tooltips:"是否为加载中状态"},{prop:"loading-icon",label:"加载状态图标",el:"hs-input",tooltips:"自定义加载中状态图标组件"},{prop:"disabled",label:"是否禁用",el:"hs-switch",tooltips:"按钮是否为禁用状态"},{prop:"icon",label:"图标组件",el:"hs-input",tooltips:"图标组件"},{prop:"autofocus",label:"自动聚焦",el:"hs-switch",tooltips:"原生 autofocus 属性"},{prop:"native-type",label:"原生 type 属性",el:"hs-select",cel:"hs-option",op:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}],tooltips:"原生 type 属性"},{prop:"auto-insert-space",label:"中文字符之间插入空格",el:"hs-switch",tooltips:"自动在两个中文字符之间插入空格"},{prop:"color",label:"按钮颜色",el:"hs-input",tooltips:"自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色"},{prop:"dark",label:"dark 模式",el:"hs-switch",tooltips:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色"},{prop:"tag",label:"自定义元素标签",el:"hs-input",tooltips:"自定义元素标签"}],rules:{name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]}},e={id:"",data:{name:"按钮名称",key:"",isApply:!0,isSlot:!1,isShow:!1,size:"small",btnIcon:"",type:"primary",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":"button",dark:!1,tag:"button"}};exports.btnItemConfig=e,exports.config=l,exports.emptyBtnItemData={id:"",data:{}};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue");let l=e.ref({size:"default",rules:"",labelWidth:"80",hideRequiredAsterisk:!1,showMessage:!0,inlineMessage:!1,disabled:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,rowGap:0,columnGap:0,readonly:!1}),t=e.ref([{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"行间隔",prop:"rowGap",type:"number",el:"hs-input"},{label:"列间隔",prop:"columnGap",type:"number",el:"hs-input"},{label:"区域背景色",prop:"bg",el:"hs-color-picker"},{label:"表单项只读",prop:"readonly",el:"hs-switch"}]);const a=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形搜索",value:"bc-tree-search"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),o=e.ref([{label:"string",value:"string"},{label:"number",value:"number"},{label:"boolean",value:"boolean"}]),s=e.ref([{label:"Array",value:"Array"},{label:"Object",value:"Object"}]);let i=e.ref({id:"",data:{baseData:{label:"参数名称",prop:"",el:"",isSlot:!1,isApply:!0,isShow:!0},elementItem:[{baseData:{label:"参数名称",prop:"",el:"",isSlot:!1,isApply:!0,isShow:!0},elData:{}}],layoutData:{rowSpan:1,colSpan:1,labelBg:"#FFFFFF",labelColor:"#000000"}},baseConfig:{visible:!0},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]},layoutConfig:{title:{subTitle:"布局配置"},visible:!1,list:[{prop:"rowSpan",label:"行数",tooltip:"栅格占据的行数",type:"number",el:"hs-input"},{prop:"colSpan",label:"列数",tooltip:"栅格占据的列数",type:"number",el:"hs-input"},{prop:"labelBg",label:"标签背景色",tooltip:"标签背景色",type:"string",el:"hs-color-picker"},{prop:"labelColor",label:"标签字体颜色",tooltip:"标签字体颜色",type:"string",el:"hs-color-picker"}]},defaultConfig:{title:{subTitle:"数据配置"},visible:!1,list:[]}}),p=e.ref({title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"label",label:"参数名称",el:"hs-input",required:!1},{prop:"prop",label:"查询参数",el:"hs-input",slotValue:"prop"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:a.value},{prop:"baseType",label:"基础类型",clearable:!1,tooltip:"基础类型",el:"hs-select",cel:"hs-option",op:o.value},{prop:"complexType",label:"复杂类型",clearable:!0,tooltip:"复杂类型",el:"hs-select",cel:"hs-option",op:s.value},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"tooltip",label:"tooltip",el:"hs-input"}]}),r=e.ref({title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:a.value},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"}]}),b=e.ref({id:"",data:{layoutData:{},defaultData:{},elementItem:[{baseData:{},elData:{}}]},baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[]},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]},layoutConfig:{title:{subTitle:"布局配置"},visible:!1,list:[]},defaultConfig:{title:{subTitle:"默认数据配置"},visible:!1,list:[]}}),u=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!1,subTitle:"表单项配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20},component:{visible:!0,subTitle:"组件配置",class:"font-bold my-3",iconSize:20},slot:{visible:!0,subTitle:"插槽配置",class:"font-bold my-3",iconSize:20},base:{visible:!1,subTitle:"基础表单项配置",class:"font-bold my-3",iconSize:20},baseForm:{visible:!1,subTitle:"基础表单配置",class:"font-bold my-3",iconSize:20}});const h=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联选面板",value:"hs-cascader-panel"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),c=e.ref([{prop:"name",label:"选择组件",el:"hs-select",op:h.value,cel:"hs-option"}]),n=e.ref([{prop:"name",label:"插槽名称",el:"hs-input"}]),f=e.ref([{prop:"label",label:"表单标题",el:"hs-input"},{prop:"isShowLabel",label:"是否显示表单标题",el:"hs-switch"},{prop:"fieldID",label:"字段标识",el:"hs-input"},{prop:"grid",label:"栅格",el:"hs-input",type:"number"}]),v=e.ref([{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{prop:"submitUrl",label:"提交表单的请求api",el:"hs-input"},{prop:"method",label:"请求方式",type:"",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"系统代理",type:"",el:"hs-input"},{prop:"action_name",label:"操作名称",type:"",el:"hs-input"},{prop:"disabled",label:"是否禁用该表单",type:"",el:"hs-switch"}]);exports.baseConfig=p,exports.baseConfig2=r,exports.compConfig={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","bc-tree-search":"hs-config-tree-search","hs-tree-select":"hs-config-tree-select","hs-cascader":"hs-config-cascader"},exports.emptyFormItemData=b,exports.formBaseRule={label:[{required:!1,message:"请输入参数名称"}],prop:[{required:!1,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}],baseType:[{required:!0,message:"请选择基础类型"}]},exports.formItemChildConfig={baseData:{label:"参数名称",prop:"",el:"",isSlot:!1,isApply:!0,isShow:!0},elData:{}},exports.formItemConfig=i,exports.formTitleConfig=u,exports.parentBaseConfig=f,exports.parentBaseFormConfig=v,exports.parentComponentConfig=c,exports.parentFormConfig=t,exports.parentFormData=l,exports.parentSlotConfig=n;
|
|
Binary file
|
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BgsbWo7j.mjs.gz
DELETED
|
Binary file
|
package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DcvkVOjP.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./hsCheckbox.vue_vue_type_script_setup_true_lang-9kJnw1mx.js"),t=require("./hsExpand.vue_vue_type_script_setup_true_lang-C23HWG6c.js"),l=require("./baseFormConfig-c3zPgN4C.js"),o=require("./index-VF70NoE6.js");function n(a,t){const n=o.useConfigInfo(),r=e.inject("formApi",{}),u=o.useFieldConfigController();let i=e.ref(a.current),s=e.ref(o._.cloneDeep(a.current)),f=e.ref(a.data),d=e.ref([]),c=e.ref(0);e.watch((()=>a.current),(e=>{e.id!=s.value.id&&(e.elConfig.visible=!1,i.value=e,s.value=o._.cloneDeep(e),f.value=a.data,d.value=[],s.value.data.elementItem.forEach((e=>{e.baseData.el&&d.value.push(l.compConfig[e.baseData.el])}))),0==d.value.length&&s.value.data.elementItem.forEach((e=>{e.baseData.el&&d.value.push(l.compConfig[e.baseData.el])}))}),{deep:!0,immediate:!0});const m=e.ref({labelWidth:150,span:24,style:"padding:5px 10px"}),p=e.ref(!1);let v=e.ref({url:"",params:{field_type:"2",field_code:"",project_code:""},qry_key:"field_code"});e.onMounted((()=>{let e=o.Session.get("CURRENT_SYSTEM"),a=v.value.params;a.project_code=e.project_code||"",v.value=o._.assign(v.value,{url:"/scmp-web/pri/field_config/get_field_pool_list",params:a})}));return{parentConfig:m,visible:p,formItemConfig:s,elComName:d,onChange:function(e,a,t){if("el"!=a)return;s.value.elConfig.visible=!1,s.value.data.elementItem[t].elData={};let o=s.value.data.baseData.el||e+"";d.value[t]=l.compConfig[o],s.value.elConfig.visible=!0},saveData:async function(e){if("batch"===n.formStatus)return function(){const e=o._.get(s,"value.data.elementItem.0"),a={};let t=[...n.propertiesArray];t.includes("elData")&&(o._.set(a,"elData",e.elData),t=t.filter((e=>"elData"!=e)));t.includes("layoutData")&&(o._.set(a,"layoutData",s.value.data.layoutData),t=t.filter((e=>"layoutData"!=e)));t.length&&t.forEach((t=>{o._.set(a,`baseData.${t}`,e.baseData[t])}));const l=n.selectedList.map((e=>o._.get(e,"data.elementItem.0.baseData.label"))).toString();o.ElMessageBox.alert(`当前修改字段为<strong>【${l}】</strong>,确定修改吗?`,"提示",{dangerouslyUseHTMLString:!0,closeOnClickModal:!1,draggable:!0}).then((()=>{r.updateFormConfig(a),n.formStatus="radio",n.selectedList=[],n.propertiesArray=[]}))}();try{if(!(await t.value[e].getSubmitData()))return;if(i.value=Object.assign(i.value,o._.cloneDeep(s.value)),e>0||s.value.data.elementItem[e].field_id)return;let a=o.Session.get("CURRENT_SYSTEM"),l={field_code:s.value.data.elementItem[e].baseData.prop,field_name:s.value.data.elementItem[e].baseData.label,field_type:"2",json_data:JSON.stringify(s.value.data.elementItem[e]),project_code:a.project_code};u.postSaveFieldPool4Config(l)}catch(a){}},handleTabsEdit:(e,a)=>{"add"===a&&s.value.data.elementItem.push(o._.cloneDeep(l.formItemChildConfig)),"remove"===a&&(c.value=0,s.value.data.elementItem.splice(e,1),d.value.splice(+e,1))},requestData:v,onChangeItem:(e,a)=>{let t=JSON.parse(e.json_data);s.value.data.elementItem[a]=o._.assign(s.value.data.elementItem[a],t,{field_id:e.id}),d.value.push(l.compConfig[t.baseData.el])},editableTabsValue:c}}const r={class:"bg-blue-200 h-full flex flex-col"},u={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},i={key:0},s={key:0,class:"flex items-start"},f={class:"flex-1"},d={key:2,class:"flex items-start"},c={class:"flex-1"},m={class:"text-center grow-0"},p=e.defineComponent({__name:"hsAttrForm",props:{current:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(p){const v=p,g=e.ref(!1),C=e.ref(!1),_=o.useConfigInfo(),b=e.ref([]),{parentConfig:y,visible:h,formItemConfig:k,elComName:D,onChange:V,saveData:B,handleTabsEdit:x,requestData:I,onChangeItem:E,editableTabsValue:N}=n(v,b);return e.watch((()=>v.current),((e,a)=>{e.id!==a.id&&(N.value=0)}),{deep:!0}),e.watch(g,(e=>{e?_.propertiesArray.push("elData","el"):_.propertiesArray=_.propertiesArray.filter((e=>!["elData","el"].includes(e)))})),e.watch(C,(e=>{e?_.propertiesArray.push("layoutData"):_.propertiesArray=_.propertiesArray.filter((e=>"layoutData"!==e))})),(o,n)=>{var p,v,S,w,j,U;const q=e.resolveComponent("bc-auto-complete"),T=e.resolveComponent("bc-form-config"),A=e.resolveComponent("hs-tab-pane"),R=e.resolveComponent("hs-tabs"),M=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(h),"onUpdate:modelValue":n[0]||(n[0]=a=>e.isRef(h)?h.value=a:null),expandConfig:{subTitle:"表单项代码"}},null,8,["modelValue"])),e.unref(h)?(e.openBlock(),e.createElementBlock("div",i,e.toDisplayString(null==(p=e.unref(k))?void 0:p.data),1)):e.createCommentVNode("",!0),(null==(v=e.unref(k))?void 0:v.baseConfig)?(e.openBlock(),e.createBlock(R,{key:1,type:"border-card",editable:"",onEdit:e.unref(x),class:"w-full",modelValue:e.unref(N),"onUpdate:modelValue":n[4]||(n[4]=a=>e.isRef(N)?N.value=a:null)},{default:e.withCtx((()=>{var o;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(o=e.unref(k))?void 0:o.data.elementItem,((o,r)=>(e.openBlock(),e.createBlock(A,{label:"子项"+(r+1),key:r,name:r},{default:e.withCtx((()=>{var o,u,i;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(k).baseConfig.visible,"onUpdate:modelValue":n[1]||(n[1]=a=>e.unref(k).baseConfig.visible=a),expandConfig:e.unref(l.baseConfig).title},null,8,["modelValue","expandConfig"])),e.withDirectives(e.createVNode(T,{showCheckbox:"",ref_for:!0,ref_key:"baseConfigRef",ref:b,parentConfig:e.unref(y),data:null==(o=e.unref(k))?void 0:o.data.elementItem[r].baseData,config:0===r?e.unref(l.baseConfig).list:e.unref(l.baseConfig2).list,rules:e.unref(l.formBaseRule),onChange:(a,t)=>e.unref(V)(a,t,r)},{prop:e.withCtx((()=>[e.createVNode(q,{url:e.unref(I).url,qry_key:e.unref(I).qry_key,params:e.unref(I).params,type:"form",modelValue:e.unref(k).data.elementItem[r].baseData.prop,"onUpdate:modelValue":a=>e.unref(k).data.elementItem[r].baseData.prop=a,onChange:a=>e.unref(E)(a,r)},null,8,["url","qry_key","params","modelValue","onUpdate:modelValue","onChange"])])),_:2},1032,["parentConfig","data","config","rules","onChange"]),[[e.vShow,e.unref(k).baseConfig.visible]]),(null==(u=e.unref(k))?void 0:u.data.elementItem[r].baseData.el)?(e.openBlock(),e.createElementBlock("div",s,["batch"===e.unref(_).formStatus?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,modelValue:g.value,"onUpdate:modelValue":n[2]||(n[2]=e=>g.value=e)},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",f,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(k).elConfig.visible,"onUpdate:modelValue":n[3]||(n[3]=a=>e.unref(k).elConfig.visible=a),expandConfig:e.unref(k).elConfig.title},null,8,["modelValue","expandConfig"])),e.unref(k).elConfig.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(D)[r]),{key:0,data:null==(i=e.unref(k))?void 0:i.data.elementItem[r].elData,ref_for:!0,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]})),_:2},1032,["label","name"])))),128))]})),_:1},8,["onEdit","modelValue"])):e.createCommentVNode("",!0),(null==(S=e.unref(k))?void 0:S.layoutConfig)&&((null==(w=e.unref(k))?void 0:w.layoutConfig.list)||[]).length>0?(e.openBlock(),e.createElementBlock("div",d,["batch"===e.unref(_).formStatus?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,modelValue:C.value,"onUpdate:modelValue":n[5]||(n[5]=e=>C.value=e)},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(k).layoutConfig.visible,"onUpdate:modelValue":n[6]||(n[6]=a=>e.unref(k).layoutConfig.visible=a),expandConfig:e.unref(k).layoutConfig.title},null,8,["modelValue","expandConfig"])),e.unref(k).layoutConfig.visible?(e.openBlock(),e.createBlock(T,{key:0,parentConfig:e.unref(y),data:null==(j=e.unref(k))?void 0:j.data.layoutData,config:null==(U=e.unref(k))?void 0:U.layoutConfig.list},null,8,["parentConfig","data","config"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",m,[e.createVNode(M,{onClick:n[7]||(n[7]=a=>e.unref(B)(e.unref(N))),type:"primary"},{default:e.withCtx((()=>[e.createTextVNode("保存")])),_:1})])])}}});exports._sfc_main=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./index-VF70NoE6.js");const n=e.defineComponent({__name:"hsBtnItemConfig",props:e.mergeModels({config:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:t}){const o=e.useModel(n,"modelValue"),l=e.ref(),{parentConfig:r,requestData:u,onChangeItem:s,getSubmitData:i}=function(n,t){const o=e.ref({labelWidth:150,span:24,minWidth:350,style:"padding:5px 10px"});let l=e.ref({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",value_key:"btn_label",params:{btn_name:"",project_code:""},qry_key:"btn_name"});return e.onMounted((()=>{let e=a.Session.get("CURRENT_SYSTEM"),n=l.value.params;n.project_code=e.project_code||"",l.value=a._.assign(l.value,{params:n})})),{parentConfig:o,requestData:l,onChangeItem:e=>{n.value=a._.assign(n.value,JSON.parse(e.json_data),{field_id:e.id}),console.debug("handleSelect",n.value)},getSubmitData:async()=>await t.value.getSubmitData()}}(o,l);return t({getSubmitData:i}),(t,i)=>{const c=e.resolveComponent("bc-auto-complete");return e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:l,parentConfig:e.unref(r),data:o.value,config:n.config.list,rules:n.config.rules},{key:e.withCtx((()=>[e.createVNode(c,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"btn",modelValue:o.value.key,"onUpdate:modelValue":i[0]||(i[0]=e=>o.value.key=e),onChange:e.unref(s),value_key:e.unref(u).value_key},null,8,["url","qry_key","params","modelValue","onChange","value_key"])])),btnIcon:e.withCtx((()=>[e.createVNode(a._sfc_main$1,{placeholder:"请选择图标",clearable:"",isShowPrepend:!1,modelValue:o.value.btnIcon,"onUpdate:modelValue":i[1]||(i[1]=e=>o.value.btnIcon=e),title:""},null,8,["modelValue"])])),_:1},8,["parentConfig","data","config","rules"])}}});exports._sfc_main=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./baseFormConfig-c3zPgN4C.js"),t=require("./index-VF70NoE6.js"),l=require("./contextmenu-DROiyFs5.js");function n(l,n,r,i,d){const a=t.useConfigInfo(),s=e=>{var i,d,s,u,c;const f=(null==(s=null==(d=null==(i=r.value)?void 0:i.form)?void 0:d.formConfig)?void 0:s.map((e=>e.id)))||[];if((null==(u=n.current)?void 0:u.id)&&a.selectedList.length&&f.includes(e.id))return t.ElMessage.warning("已存在批量设置模板!");let m=e.id==(null==(c=n.current)?void 0:c.id)?t._.cloneDeep(o.emptyFormItemData.value):e;l("chose",m)};let u=e.ref([]),c=e.ref(0),f=e.ref(!1);return{choseTagItem:s,appendField:()=>{var e,l,n,i,d;let a=t._.cloneDeep(o.formItemConfig.value);a.id=t.v4(),null==(l=null==(e=r.value)?void 0:e.form)||l.formConfig.push(a);let u=(null==(d=null==(n=r.value)?void 0:n.form)?void 0:d.formConfig[(null==(i=r.value)?void 0:i.form.formConfig.length)-1])||t._.cloneDeep(o.emptyFormItemData.value);s(u)},deleteTagItem:e=>{t.ElMessageBox.confirm(`确定删除“${t._.get(e,"data.elementItem.0.baseData.label")}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{var o,l;t._.remove((null==(l=null==(o=r.value)?void 0:o.form)?void 0:l.formConfig)||[],e),s(e),t.ElMessage.success("删除成功")})).catch((e=>{}))},contextmenu:(e,o,t,l)=>{var r;a.selectedList.length&&(u.value=[{contextMenuClickId:null==t?void 0:t.id,txt:"批量删除",affix:!1,icon:"",mode:"batchDelete"},{contextMenuClickId:null==t?void 0:t.id,txt:"批量设置属性",affix:!1,icon:"",mode:"batchUpdate"}]);let s=(null==(r=null==n?void 0:n.panelConfig)?void 0:r.forms.filter((e=>{var o;return e.id!==(null==(o=null==n?void 0:n.modelValue)?void 0:o.id)&&"form"==e.formItemType})))||[];if(s.length>0){const e=s.map((e=>({contextMenuClickId:e.id,txt:"移动至"+e.base.label,affix:!1,icon:""})));u.value.push(e)}if(!f.value)return;c.value=l;const{clientX:m,clientY:v}=e;i.dropdown.x=m,i.dropdown.y=v,d.value.openContextmenu(t,o)},onCurrentContextmenuClick:(e,i)=>{switch(i){case"radio":(e=>{var i,d,s,u,f,m;try{let v=null==(i=null==n?void 0:n.panelConfig)?void 0:i.forms.findIndex((o=>o.id==e.contextMenuClickId));if(-1==v)return t.ElMessage.warning("未找到对应的配置项");null==(u=null==n?void 0:n.panelConfig)||u.forms[v].form.formConfig.push(null==(s=null==(d=r.value)?void 0:d.form)?void 0:s.formConfig[c.value]),a.selectedList.length>0&&a.selectedList.findIndex((e=>{var o,t;return e.id==(null==(t=null==(o=r.value)?void 0:o.form)?void 0:t.formConfig[c.value].id)}))>-1&&a.selectedList.splice(v,1),null==(m=null==(f=r.value)?void 0:f.form)||m.formConfig.splice(c.value,1),l("chose",t._.cloneDeep(o.emptyFormItemData.value)),t.ElMessage.success("移动成功")}catch(v){}})(e);break;case"checkbox":(e=>{var i,d;try{let s=null==(i=null==n?void 0:n.panelConfig)?void 0:i.forms.findIndex((o=>o.id==e.contextMenuClickId));if(-1==s)return t.ElMessage.warning("未找到对应的配置项");null==(d=null==n?void 0:n.panelConfig)||d.forms[s].form.formConfig.push(...a.selectedList),a.selectedList.forEach((e=>{var o,l;t._.remove((null==(l=null==(o=r.value)?void 0:o.form)?void 0:l.formConfig)||[],e)})),a.selectedList=[],l("chose",t._.cloneDeep(o.emptyFormItemData.value)),t.ElMessage.success("移动成功")}catch(s){}})(e);break;case"batchDelete":!function(){const e=a.selectedList.map((e=>e.id)),o=a.selectedList.map((e=>t._.get(e,"data.elementItem.0.baseData.label"))).toString();t.ElMessageBox.alert(`当前删除字段为<strong>【${o}】</strong>,确定删除吗?`,"提示",{dangerouslyUseHTMLString:!0,closeOnClickModal:!1,draggable:!0}).then((()=>{var o,l;const n=null==(l=null==(o=r.value)?void 0:o.form)?void 0:l.formConfig.filter((o=>!e.includes(o.id)));t._.set(r,"value.form.formConfig",n),a.selectedList=[],f.value=!1}))}();break;case"batchUpdate":a.formStatus="batch"}},dropdownList:u,toggleModes:()=>{f.value=!f.value,f.value||(a.selectedList=[],a.propertiesArray=[],a.formStatus="radio")},isEditModel:f,selectTagItem:e=>{if(!f.value)return;let o=a.selectedList.findIndex((o=>o.id==e.id));o>-1?a.selectedList.splice(o,1):a.selectedList.push(e)},resetEdit:()=>{f.value=!1,a.formStatus="radio",a.selectedList=[],a.propertiesArray=[]}}}const r=["onClick"],i=["onContextmenu"],d=["onClick"],a=["onClick"],s={class:"p-2"},u=e.defineComponent({__name:"hsFormConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}},panelConfig:{type:Object,default:()=>({})}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(o,{expose:u,emit:c}){const f=t.useConfigInfo(),m=e.ref(),v=e.ref(),p=e.reactive({dropdown:{x:0,y:0}}),g=c,C=e.useModel(o,"modelValue"),x=o,h=e=>f.selectedList.includes(e),{appendField:k,deleteTagItem:b,choseTagItem:M,contextmenu:y,onCurrentContextmenuClick:I,dropdownList:E,toggleModes:L,isEditModel:w,selectTagItem:_,resetEdit:V}=n(g,x,C,p,m);return u({resetEdit:V}),(n,u)=>{const c=e.resolveComponent("ele-Edit"),f=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(t.to),{ref_key:"dragRef",ref:v,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:C.value.form.formConfig,"onUpdate:modelValue":u[3]||(u[3]=e=>C.value.form.formConfig=e),animation:150},{default:e.withCtx((()=>{var t,l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(l=null==(t=C.value)?void 0:t.form)?void 0:l.formConfig,((t,l)=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:t.id,onClick:o=>e.unref(M)(t)},[e.createElementVNode("div",{onContextmenu:e.withModifiers((o=>e.unref(y)(o,"radio",t,l)),["prevent"]),class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",o.current.id==t.id?"bg-blue-200":""])},e.toDisplayString(null==(n=(null==t?void 0:t.data).elementItem[0])?void 0:n.baseData.label),43,i),o.current.id!=t.id||e.unref(w)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers((o=>e.unref(b)(t)),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,d)),e.unref(w)?(e.openBlock(),e.createElementBlock("div",{key:1,style:{position:"absolute",top:"-4px",right:"-4px",cursor:"pointer"},onClick:e.withModifiers((o=>e.unref(_)(t)),["stop","prevent"])},[e.createElementVNode("span",{class:e.normalizeClass(["circle",{"circle-selected":h(t)}])},null,2)],8,a)):e.createCommentVNode("",!0)],8,r)})),128)),e.createElementVNode("div",s,[e.createElementVNode("div",{onClick:u[0]||(u[0]=(...o)=>e.unref(k)&&e.unref(k)(...o)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")]),e.createElementVNode("div",{class:"p-2 cursor-pointer flex justify-center align-center",onContextmenu:u[1]||(u[1]=e.withModifiers((o=>e.unref(y)(o,"checkbox")),["prevent"])),onClick:u[2]||(u[2]=(...o)=>e.unref(L)&&e.unref(L)(...o))},[e.createVNode(f,{size:"34",color:"#8B9093"},{default:e.withCtx((()=>[e.createVNode(c)])),_:1})],32)]})),_:1},8,["modelValue"]),e.createVNode(l.default,{dropdown:p.dropdown,dropdownList:e.unref(E),ref_key:"contextmenuRef",ref:m,onCurrentContextmenuClick:e.unref(I)},null,8,["dropdown","dropdownList","onCurrentContextmenuClick"])])}}}),c=t._export_sfc(u,[["__scopeId","data-v-9109402d"]]);exports.default=c;
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./hsFormParse.vue_vue_type_script_setup_true_lang-BPVmDX_W.js"),l=require("./hsFormConfigList-BlC8RgO0.js"),n=require("./hsAttrForm.vue_vue_type_script_setup_true_lang-Cb9BlKfQ.js"),a=require("./baseFormConfig-c3zPgN4C.js"),t=require("./hsExpand.vue_vue_type_script_setup_true_lang-C23HWG6c.js"),r=require("./index-VF70NoE6.js"),i={class:"mx-auto flex flex-row h-full"},f={class:"flex-1 grow overflow-y-auto"},m={key:0},u={class:"flex-none basis-1/2 ml-4"},d=e.defineComponent({name:"formPanel"}),c=e.defineComponent({...d,props:e.mergeModels({BaseForm:{type:Object,default:()=>({})},panelConfig:{type:Object,default:()=>({})}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["update:BaseForm","update"],["update:modelValue"]),setup(d,{emit:c}){const s=d,p=r.useConfigInfo(),v=e.useModel(d,"modelValue"),g=c,C=r.useVModel(s,"BaseForm",g),V=e.ref();let _=r._.cloneDeep(a.emptyFormItemData),b=e.ref("");e.watch((()=>v.value),(e=>{var o;b.value!=(null==e?void 0:e.config_unique_id)&&(_.value=r._.cloneDeep(a.emptyFormItemData),b.value=(null==e?void 0:e.config_unique_id)||"",null==(o=V.value)||o.resetEdit())}),{immediate:!0});const k=e=>{_.value=e};return e.ref("form"),e.provide("formApi",{updateFormConfig:function(e){var o,l,n;const a=p.selectedList.map((e=>e.id));null==(n=null==(l=null==(o=v.value)?void 0:o.form)?void 0:l.formConfig)||n.forEach((o=>{a.includes(o.id)&&(o.data.elementItem.forEach((o=>{r._.isEmpty(e.baseData)||Object.assign(o.baseData,e.baseData),r._.isEmpty(e.elData)||Object.assign(o.elData,e.elData)})),r._.isEmpty(e.layoutData)||Object.assign(o.data.layoutData,e.layoutData))}))}}),(r,c)=>{var s,p,b,y,T,B,x,D,N;const F=e.resolveComponent("bc-form-config"),I=e.resolveComponent("hs-radio"),h=e.resolveComponent("hs-radio-group");return e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",f,[e.createVNode(t._sfc_main,{modelValue:e.unref(a.formTitleConfig).code.visible,"onUpdate:modelValue":c[0]||(c[0]=o=>e.unref(a.formTitleConfig).code.visible=o),expandConfig:e.unref(a.formTitleConfig).code,data:v.value,"onUpdate:data":c[1]||(c[1]=e=>v.value=e),popover:"",type:"formConfigurationCode",onUpdate:c[2]||(c[2]=e=>g("update",e))},null,8,["modelValue","expandConfig","data"]),e.unref(a.formTitleConfig).code.visible?(e.openBlock(),e.createElementBlock("div",m,e.toDisplayString(v.value),1)):e.createCommentVNode("",!0),e.createVNode(o._sfc_main,{is:o._sfc_main,modelValue:v.value,"onUpdate:modelValue":c[3]||(c[3]=e=>v.value=e)},null,8,["modelValue"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(a.formTitleConfig).baseForm.visible,"onUpdate:modelValue":c[4]||(c[4]=o=>e.unref(a.formTitleConfig).baseForm.visible=o),expandConfig:e.unref(a.formTitleConfig).baseForm,data:e.unref(C),"onUpdate:data":c[5]||(c[5]=o=>e.isRef(C)?C.value=o:null),popover:"",type:"baseFormConfig"},null,40,["modelValue","expandConfig","data"])),e.unref(a.formTitleConfig).baseForm.visible?(e.openBlock(),e.createBlock(F,{key:1,class:"form-config",data:e.unref(C),config:e.unref(a.parentBaseFormConfig)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(a.formTitleConfig).base.visible,"onUpdate:modelValue":c[6]||(c[6]=o=>e.unref(a.formTitleConfig).base.visible=o),expandConfig:e.unref(a.formTitleConfig).base},null,8,["modelValue","expandConfig"])),e.unref(a.formTitleConfig).base.visible?(e.openBlock(),e.createBlock(F,{key:2,class:"form-config",data:null==(s=v.value)?void 0:s.base,config:e.unref(a.parentBaseConfig)},null,8,["data","config"])):e.createCommentVNode("",!0),(null==(p=v.value)?void 0:p.form)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(h,{modelValue:v.value.formItemType,"onUpdate:modelValue":c[7]||(c[7]=e=>v.value.formItemType=e)},{default:e.withCtx((()=>[e.createVNode(I,{value:"form"},{default:e.withCtx((()=>[e.createTextVNode("启用表单配置项")])),_:1}),e.createVNode(I,{value:"component"},{default:e.withCtx((()=>[e.createTextVNode("启用组件")])),_:1}),e.createVNode(I,{value:"slot"},{default:e.withCtx((()=>[e.createTextVNode("启用插槽")])),_:1})])),_:1},8,["modelValue"]),"form"==v.value.formItemType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(a.formTitleConfig).form.visible,"onUpdate:modelValue":c[8]||(c[8]=o=>e.unref(a.formTitleConfig).form.visible=o),expandConfig:e.unref(a.formTitleConfig).form},null,8,["modelValue","expandConfig"])),e.unref(a.formTitleConfig).form.visible?(e.openBlock(),e.createBlock(F,{key:0,class:"form-config",data:v.value.form.baseData,config:e.unref(a.parentFormConfig)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{modelValue:e.unref(a.formTitleConfig).formItem.visible,"onUpdate:modelValue":c[9]||(c[9]=o=>e.unref(a.formTitleConfig).formItem.visible=o),expandConfig:e.unref(a.formTitleConfig).formItem,data:v.value.form.formConfig,"onUpdate:data":c[10]||(c[10]=e=>v.value.form.formConfig=e),popover:"",type:"formItemConfig"},null,40,["modelValue","expandConfig","data"])),e.unref(a.formTitleConfig).formItem.visible?(e.openBlock(),e.createBlock(l.default,{key:1,modelValue:v.value,"onUpdate:modelValue":c[11]||(c[11]=e=>v.value=e),current:e.unref(_),onChose:k,panelConfig:d.panelConfig,ref_key:"formConfigList",ref:V},null,8,["modelValue","current","panelConfig"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),"component"==v.value.formItemType?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{key:1,modelValue:e.unref(a.formTitleConfig).component.visible,"onUpdate:modelValue":c[12]||(c[12]=o=>e.unref(a.formTitleConfig).component.visible=o),expandConfig:e.unref(a.formTitleConfig).component},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(a.formTitleConfig).component.visible&&"component"==v.value.formItemType?(e.openBlock(),e.createBlock(F,{key:2,data:null==(b=v.value.component)?void 0:b.baseData,config:e.unref(a.parentComponentConfig)},null,8,["data","config"])):e.createCommentVNode("",!0),"slot"==v.value.formItemType?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t._sfc_main),{key:3,modelValue:e.unref(a.formTitleConfig).slot.visible,"onUpdate:modelValue":c[13]||(c[13]=o=>e.unref(a.formTitleConfig).slot.visible=o),expandConfig:e.unref(a.formTitleConfig).slot},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(a.formTitleConfig).slot.visible&&"slot"==v.value.formItemType?(e.openBlock(),e.createBlock(F,{key:4,data:null==(y=v.value.slot)?void 0:y.baseData,config:e.unref(a.parentSlotConfig)},null,8,["data","config"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",u,[((null==(B=null==(T=v.value)?void 0:T.form)?void 0:B.formConfig)||[]).length>0&&e.unref(_).id&&"form"==(null==(x=v.value)?void 0:x.formItemType)?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,current:e.unref(_),data:null==(N=null==(D=v.value)?void 0:D.form)?void 0:N.formData},null,8,["current","data"])):e.createCommentVNode("",!0)])])}}}),s=r._export_sfc(c,[["__scopeId","data-v-8a581b2d"]]);exports.default=s;
|
|
Binary file
|
package/dist/index-4BpzZ4-k.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={class:"system-menu-container layout-padding"},t={class:"h-full"},n=e.defineComponent({name:"testtablecomponent"}),l=e.defineComponent({...n,props:{close:Function},setup(n,{expose:l}){const a=e.ref();function d(e){a.value=e,e.setQueryData({name:"1"},!0)}const r=e.ref(!1);return l({getData:()=>r.value?Promise.resolve("111"):(r.value=!0,Promise.reject("错误"))}),(n,l)=>{var r;const c=e.resolveComponent("bc-button"),s=e.resolveComponent("hs-input"),u=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",t,[e.createVNode(u,{type:"1",projectCode:"rcs",id:"9fd0bf50-f5a2-483c-988e-293e40393d8c",mid:"828ce8c6b0c74138b8650d0df2d1ed29",uid:"fa477ab619b94f1c99ae70fa2351cc22",onReady:d,onKeydownEnter:null==(r=a.value)?void 0:r.tableCheckbox},{btn_add:e.withCtx((o=>[e.createVNode(c,e.mergeProps(o,{onClick:e=>{return(t=o).setLoading(!0),void setTimeout((()=>{t.setLoading(!1)}),5e3);var t}}),null,16,["onClick"])])),edit:e.withCtx((({row:o,column:t})=>[e.createVNode(s,{size:"default",modelValue:o[t.field],"onUpdate:modelValue":e=>o[t.field]=e},null,8,["modelValue","onUpdate:modelValue"])])),_:1},8,["onKeydownEnter"])])])}}});exports.default=l;
|
package/dist/index-BHM3WB3B.mjs
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index-DPt5ZlIP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t={class:"system-menu-container layout-padding"},a={class:"h-full p-4 flex flex-col"},l={class:"flex-1 overflow-auto"},o={class:"avatar-upload"},n=e.defineComponent({name:"commodityClassify"}),c=e.defineComponent({...n,setup(n){const c=e.ref([]),r=e.ref();function d(e){var t;null==(t=r.value)||t.setData("form_data",[e],"ec_presc_seal_url").then((()=>{var e;null==(e=r.value)||e.getData("form_data")}))}function s(e){r.value=e,e.getData("form_data"),setTimeout((()=>{e.getInstance().validate()}),1e3)}return(n,r)=>{const i=e.resolveComponent("bc-upload"),u=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",t,[e.createElementVNode("div",a,[e.createElementVNode("div",l,[e.createVNode(u,{type:"2",projectCode:"rcs",id:"dda1480a-1f85-4e27-b9d3-d873716b91d8",mid:"bc7402d22b334cd39fed8bc5f7775223",uid:"fa477ab619b94f1c99ae70fa2351cc22",onReady:s},{ec_presc_seal_url:e.withCtx((({row:t})=>[e.createElementVNode("div",o,[e.createVNode(i,{multiple:"",isModelValue:!1,action:"/pri/file/upload_file",fileList:c.value,"onUpdate:fileList":r[0]||(r[0]=e=>c.value=e),onOnSuccess:d,limit:1,annex:!1,proxy:"/rcs-web"},null,8,["fileList"])])])),_:1})])])])}}});exports.default=c;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|