hs-admin-ui 8.9.1 → 8.9.3
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-BCweyCkP.mjs → 401-B_DJeM9x.mjs} +1 -1
- package/dist/{401-DZyqx4XS.js → 401-Bg_9jOxS.js} +1 -1
- package/dist/{404-fdLLLaDA.mjs → 404-LTUbV0EQ.mjs} +1 -1
- package/dist/404-LTUbV0EQ.mjs.gz +0 -0
- package/dist/{404-2peaH2Ha.js → 404-kKrUFWz7.js} +1 -1
- package/dist/{404-2peaH2Ha.js.gz → 404-kKrUFWz7.js.gz} +0 -0
- package/dist/{account-Cfo7DbK9.js → account-DAVCBc3f.js} +1 -1
- package/dist/account-DAVCBc3f.js.gz +0 -0
- package/dist/{account-D6LRsR9v.mjs → account-DNOPEuQ2.mjs} +2 -2
- package/dist/account-DNOPEuQ2.mjs.gz +0 -0
- package/dist/{aside-C5tz4NVF.js → aside-Cq8ZiBg5.js} +1 -1
- package/dist/{aside-DRhFE3AB.mjs → aside-DLAXuDkS.mjs} +3 -3
- package/dist/{btnIndex-DvS0hJeB.mjs → btnIndex-BeCmTe7c.mjs} +2 -2
- package/dist/btnIndex-BeCmTe7c.mjs.gz +0 -0
- package/dist/{btnIndex-DbcaxLvi.js → btnIndex-BzgBns7b.js} +1 -1
- package/dist/{classic-D32T78xI.js → classic-C7m-mNNP.js} +1 -1
- package/dist/{classic-Ug59_Eai.mjs → classic-sA9JD0XK.mjs} +5 -5
- package/dist/{cloneConfigDialog-CxFQ5Vq7.js → cloneConfigDialog-BAxqslp6.js} +1 -1
- package/dist/{cloneConfigDialog-CdoBZ1ll.mjs → cloneConfigDialog-C1qPkTR9.mjs} +1 -1
- package/dist/cloneConfigDialog-C1qPkTR9.mjs.gz +0 -0
- package/dist/{columns-Cc6W9Exg.js → columns-BA97am6F.js} +1 -1
- package/dist/{columns-FjC33rq4.mjs → columns-BcSfHGo3.mjs} +5 -5
- package/dist/{columnsAside-CkmRw0n0.js → columnsAside-DghQd1X1.js} +1 -1
- package/dist/{columnsAside-Bq2Lf8xX.mjs → columnsAside-Q4jjusbj.mjs} +1 -1
- package/dist/{contextmenu-2LrAKizA.js → contextmenu-CtSTG-mI.js} +1 -1
- package/dist/{contextmenu-DPVvgwmM.mjs → contextmenu-DU0wRAKM.mjs} +1 -1
- package/dist/{contextmenu-B5x_CucH.js → contextmenu-edOkVy21.js} +1 -1
- package/dist/{contextmenu-CwyG3vIc.mjs → contextmenu-uxE2XaNr.mjs} +1 -1
- package/dist/{copyMenuConfig-bFuV_uXU.mjs → copyMenuConfig-8aN1zmUB.mjs} +1 -1
- package/dist/{copyMenuConfig-DtweYyhz.js → copyMenuConfig-isWEtSg1.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-B65ztifu.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BS41vD_X.mjs} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DTSlvcbH.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BiCbyb8P.js} +1 -1
- package/dist/{copySystem-DMlexQWE.mjs → copySystem-BJFWNp6f.mjs} +1 -1
- package/dist/{copySystem-5L8N056d.js → copySystem-BqP_a1JE.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-uY4g83ms.js → copySystem.vue_vue_type_script_setup_true_lang-Bepq1mG5.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-An_B-77z.mjs → copySystem.vue_vue_type_script_setup_true_lang-CL3jXGqj.mjs} +1 -1
- package/dist/{defaults-_LBP7NXw.mjs → defaults-DXD6WUgu.mjs} +4 -4
- package/dist/{defaults-CVuLV0fp.js → defaults-_3MEXjUX.js} +1 -1
- package/dist/{dialog-D0HtXGlI.mjs → dialog-BDKPLTCp.mjs} +1 -1
- package/dist/{dialog-CbrBZGQc.mjs → dialog-B_s7T-z2.mjs} +1 -1
- package/dist/{dialog-lZO1KV6v.js → dialog-ByBOKHMt.js} +1 -1
- package/dist/{dialog-BXbSyVTX.js → dialog-CFFl8omJ.js} +1 -1
- package/dist/{dialog-BE7N2fca.js → dialog-CfXd0rtg.js} +1 -1
- package/dist/{dialog-BUX4p0nC.mjs → dialog-DsQzWExm.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DmWYxWd3.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dw40ZWty.mjs} +2 -2
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BuiXifYa.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-YMwN-Fxf.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-u28BrKVg.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-J7_Sa8XF.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-J7_Sa8XF.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dp_dB8cK.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-O9bYZeVi.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-O9bYZeVi.js.gz +0 -0
- package/dist/{dictDialog-DaIQT-Mq.mjs → dictDialog-B8echph2.mjs} +1 -1
- package/dist/{dictDialog-C9DbkHM3.js → dictDialog-DNumQ2p6.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BKbrzvbY.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dtn94xPN.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CY-FeSWv.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-sPWJOkHV.js} +1 -1
- package/dist/{dictItemDialog-BOZixlxY.js → dictItemDialog-D7kdvxv8.js} +1 -1
- package/dist/{dictItemDialog-Doxfwt2_.mjs → dictItemDialog-DyOlaFDe.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-ClMvaJO6.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BxBits0R.mjs} +2 -2
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CDiIMCAL.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DDaJbtei.js} +1 -1
- package/dist/{editDialog-BELDJzkc.mjs → editDialog-BDV4zBRN.mjs} +1 -1
- package/dist/{editDialog-DwDZVDo5.js → editDialog-BG1_LIY-.js} +1 -1
- package/dist/{formConfig-DeXfWQhb.js → formConfig-D6wykEGq.js} +1 -1
- package/dist/{formConfig-BvCT5cN0.mjs → formConfig-yh6N0_zI.mjs} +4 -4
- package/dist/formConfig-yh6N0_zI.mjs.gz +0 -0
- package/dist/{header-_sm83cLQ.js → header-DkaHlpuj.js} +1 -1
- package/dist/{header-BZ69C18O.mjs → header-DvKTU-vl.mjs} +2 -2
- package/dist/{horizontal-BtwttBBW.js → horizontal-CWaQOaZD.js} +1 -1
- package/dist/{horizontal-ShszYpVG.mjs → horizontal-F3NCsGON.mjs} +2 -2
- package/dist/{hsAttrBtn-BW82RjrA.js → hsAttrBtn-DqP-54Ee.js} +1 -1
- package/dist/{hsAttrBtn-C3-vQRcg.mjs → hsAttrBtn-muZc9EW7.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DsMkBja4.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-05nqckwD.mjs} +3 -3
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DRfU3ePd.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Cp1phPyG.js} +1 -1
- package/dist/{hsAttrForm-KrGM7PWY.mjs → hsAttrForm-BsNz69dy.mjs} +1 -1
- package/dist/{hsAttrForm-fcbb3gts.js → hsAttrForm-YMKLyGRA.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Dg3lgf2I.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BQGYTsws.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BiEPNeFD.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-MTiMzc_D.mjs} +2 -2
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-MTiMzc_D.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-Jg85Dhs3.mjs → hsBtnConfigList-CGmJ2o6O.mjs} +1 -1
- package/dist/{hsBtnConfigList-Cy3IE-PW.js → hsBtnConfigList-eT9jGiot.js} +1 -1
- package/dist/{hsBtnItemConfig-Bfh9a7nf.mjs → hsBtnItemConfig-C9Ua-GAt.mjs} +1 -1
- package/dist/{hsBtnItemConfig-5Sh4MgUC.js → hsBtnItemConfig-DIigYQQT.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Dc2-WmB4.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bp4_NG1_.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bxc4vFaD.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-orQ4rIeR.js} +1 -1
- package/dist/{hsBtnPanel-BrATFAuu.mjs → hsBtnPanel-CEgikcyP.mjs} +1 -1
- package/dist/{hsBtnPanel-Qv_49gNK.js → hsBtnPanel-DDnSTxhz.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-GAwtvvTi.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CDnDhY_i.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BhZ-gS7h.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D1O82Nux.mjs} +4 -4
- package/dist/{hsExpand-CLM442nf.js → hsExpand-Cx60PUyi.js} +1 -1
- package/dist/{hsExpand-e1TskFcI.mjs → hsExpand-fD7HJdii.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-D_FI00uk.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BgtX7ost.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-C0QgFRov.js → hsExpand.vue_vue_type_script_setup_true_lang-_kCNoI_r.js} +1 -1
- package/dist/{hsFormConfig-DvPFlg9X.js → hsFormConfig-B1lGwjyE.js} +1 -1
- package/dist/{hsFormConfig-DCRXfY-R.mjs → hsFormConfig-Draw6-ib.mjs} +1 -1
- package/dist/{hsFormConfigList-B48jZh1Y.mjs → hsFormConfigList-B5uPtmYr.mjs} +2 -2
- package/dist/hsFormConfigList-B5uPtmYr.mjs.gz +0 -0
- package/dist/{hsFormConfigList-STj9EG_B.js → hsFormConfigList-up0rzzYf.js} +1 -1
- package/dist/{hsFormPanel-BzCVbikc.mjs → hsFormPanel-ByswlpL6.mjs} +5 -5
- package/dist/hsFormPanel-ByswlpL6.mjs.gz +0 -0
- package/dist/{hsFormPanel-BCQHClty.js → hsFormPanel-CCU0eM2x.js} +1 -1
- package/dist/{hsFormParse-Cn-43RdZ.mjs → hsFormParse-Bhenq19A.mjs} +1 -1
- package/dist/{hsFormParse-CZM2P9NH.js → hsFormParse-CF2BIb25.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-C7nOjQZL.js → hsFormParse.vue_vue_type_script_setup_true_lang-Ckq5_gM8.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-0y6BEGEB.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-D35-e2Ku.mjs} +1 -1
- package/dist/{hsPanelItem-a2dz35of.mjs → hsPanelItem-BAhhWlbq.mjs} +1 -1
- package/dist/{hsPanelItem-Dpli0CYD.js → hsPanelItem-Chz1OzXM.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DQTo3qgm.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DKtW6EOB.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CeVO1TVB.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DPNqs7g3.js} +1 -1
- package/dist/{iframes-13UP4q1X.mjs → iframes-CSWtdAzA.mjs} +1 -1
- package/dist/{iframes-DdeGZKWA.js → iframes-pN6oeo6t.js} +1 -1
- package/dist/{index copy-_8TZHFZA.mjs → index copy-BEL97Kl4.mjs } +1 -1
- package/dist/index copy-BEL97Kl4.mjs.gz +0 -0
- package/dist/{index copy-B_iAS9k7.js → index copy-Btqmd79B.js } +1 -1
- package/dist/{index copy-B_iAS9k7.js.gz → index copy-Btqmd79B.js.gz} +0 -0
- package/dist/{index-CPQYEhqh.mjs → index-1CLYGfjI.mjs} +1 -1
- package/dist/{index-BOwrTcoa.js → index-B07JeEmt.js} +1 -1
- package/dist/{index-BRhHFFTI.js → index-B7nataM3.js} +1 -1
- package/dist/{index-Caz3iO1T.mjs → index-BCVvhP4X.mjs} +1 -1
- package/dist/{index-DrRbfuK4.mjs → index-BGL2Au0S.mjs} +5 -5
- package/dist/{index-BCP28OGD.mjs → index-BMdALfnU.mjs} +1 -1
- package/dist/{index-v_iPUh9c.mjs → index-BPBWv1h-.mjs} +2 -2
- package/dist/{index-KRU6aKI7.mjs → index-BRjzOdJj.mjs} +1 -1
- package/dist/{index-CyUO7Kx2.mjs → index-BaWALM0D.mjs} +4 -4
- package/dist/{index-Bwq6UdQN.mjs → index-BbkEG1h9.mjs} +1 -1
- package/dist/{index-BVetpwZ-.js → index-Bfe4UE0l.js} +1 -1
- package/dist/{index-CFAWwG25.js → index-BmHnTofM.js} +1 -1
- package/dist/{index-CvKGICxw.mjs → index-Bo7YzBtA.mjs} +1 -1
- package/dist/{index-BbxP_j3d.mjs → index-BokRSIQ9.mjs} +4 -4
- package/dist/{index-BWVhZJDi.js → index-BorVzyuI.js} +1 -1
- package/dist/{index-DvK8Z0mW.js → index-Bs5h2TFv.js} +1 -1
- package/dist/{index-C6Q0ATTg.mjs → index-BsS93eKg.mjs} +2 -2
- package/dist/{index-byA6iRpY.js → index-BueuR5_u.js} +1 -1
- package/dist/{index-BDJY4Ikc.js → index-Bw4sbzGB.js} +1 -1
- package/dist/{index-BZL9dOci.mjs → index-BweGsple.mjs} +3 -3
- package/dist/index-BweGsple.mjs.gz +0 -0
- package/dist/{index-ONzsH_AT.mjs → index-Byfw8QB8.mjs} +1 -1
- package/dist/{index-BIbevvGl.js → index-C08jpkO7.js} +1 -1
- package/dist/{index-DePIKQ7P.js → index-C0lVkSgq.js} +1 -1
- package/dist/{index-BKMrm-hX.mjs → index-C2XDMtk5.mjs} +1 -1
- package/dist/{index-D11YpGnt.js → index-C4f_B3ds.js} +1 -1
- package/dist/{index-3d3sh1CB.js → index-CBbgcdla.js} +1 -1
- package/dist/{index-B7DMI4FR.mjs → index-CFxAdsyL.mjs} +1 -1
- package/dist/{index-CXAEqgpn.mjs → index-CLTWA8he.mjs} +3 -3
- package/dist/{index-BR2Qbt5Q.js → index-CRWY0G9v.js} +1 -1
- package/dist/{index-DJ0-4hxy.js → index-CS8TsAIB.js} +1 -1
- package/dist/{index-DXYjnML0.js → index-CTJH-XX-.js} +1 -1
- package/dist/{index-_Ta7XuhA.mjs → index-CXazwuIq.mjs} +2 -2
- package/dist/{index-hA-BKdiu.js → index-CaWZGQca.js} +1 -1
- package/dist/index-CaWZGQca.js.gz +0 -0
- package/dist/{index-B21zb8NT.js → index-CiQePVeV.js} +1 -1
- package/dist/{index-DeJn8Lla.js → index-CmRDYJKo.js} +1 -1
- package/dist/{index-YehpsXaM.mjs → index-CnOgBFgI.mjs} +1 -1
- package/dist/{index-2kf4KEaV.js → index-Cp5wV2RD.js} +1 -1
- package/dist/{index-BfROpYru.mjs → index-CqT0mNKb.mjs} +2 -2
- package/dist/{index-ChUAq1iM.mjs → index-CrOoYK51.mjs} +1 -1
- package/dist/{index-Z4O7-QWj.mjs → index-CsQrKVoN.mjs} +2 -2
- package/dist/index-CsQrKVoN.mjs.gz +0 -0
- package/dist/{index-BXmJdNN0.mjs → index-CzAwFGeG.mjs} +4 -4
- package/dist/index-CzAwFGeG.mjs.gz +0 -0
- package/dist/{index-CVFH2Z2o.mjs → index-D1atoFJ4.mjs} +1 -1
- package/dist/{index-CSnniOxU.mjs → index-D2M88SrA.mjs} +1 -1
- package/dist/{index-Gv25dc4e.mjs → index-D3jvaNxB.mjs} +3 -3
- package/dist/{index-DNFUdjhA.js → index-D4-q7lde.js} +1 -1
- package/dist/{index-BL6vv1cZ.js → index-D9NBGD2n.js} +1 -1
- package/dist/{index-D5J66yQY.mjs → index-DFN0U7np.mjs} +1 -1
- package/dist/index-DFN0U7np.mjs.gz +0 -0
- package/dist/index-DG9PqNlz.mjs +4 -0
- package/dist/{index-DhL05n7Y.mjs → index-DItIrEZO.mjs} +1 -1
- package/dist/{index-B5tL-bhH.js → index-DKPd1TeP.js} +1 -1
- package/dist/index-DKPd1TeP.js.gz +0 -0
- package/dist/{index-691kvDJ3.js → index-DLhZyv_L.js} +1 -1
- package/dist/{index-CR43UJqI.mjs → index-DMRHg2gz.mjs} +1 -1
- package/dist/{index-OJP0Qk9C.js → index-DRUePvJc.js} +4 -4
- package/dist/{index-OJP0Qk9C.js.gz → index-DRUePvJc.js.gz} +0 -0
- package/dist/{index-DdNRqBbd.js → index-DV_mbvMp.js} +1 -1
- package/dist/{index-D8x-x1NS.js → index-DYD5sdJx.js} +1 -1
- package/dist/{index-BlLWFEYm.js → index-DfuXKM1N.js} +1 -1
- package/dist/{index-BPGjnK_f.js → index-DgZRNaxV.js} +1 -1
- package/dist/{index-C5O9jTNE.mjs → index-DtpuYMg2.mjs} +1 -1
- package/dist/{index-6Dqj4Bg_.js → index-Dud6SkC1.js} +1 -1
- package/dist/{index-DEiV1o2w.mjs → index-DvETxL01.mjs} +2325 -2214
- package/dist/{index-DEiV1o2w.mjs.gz → index-DvETxL01.mjs.gz} +0 -0
- package/dist/{index-DLeczRNX.mjs → index-DzVE5kkA.mjs} +1 -1
- package/dist/{index-Cl82Z6Ux.js → index-ItI_aLRd.js} +1 -1
- package/dist/{index-D51b4AEH.mjs → index-PU4bVl9p.mjs} +2 -2
- package/dist/index-PU4bVl9p.mjs.gz +0 -0
- package/dist/{index-i_MtrZYI.js → index-QfAyS9tU.js} +1 -1
- package/dist/{index-B0SfrSWV.mjs → index-RrEfMECG.mjs} +1 -1
- package/dist/{index-Cy1U19fH.js → index-SjJX2cHo.js} +1 -1
- package/dist/{index-BLab0RMK.mjs → index-V9SDENcZ.mjs} +3 -3
- package/dist/{index-Bx5Nl2mP.js → index-WRwKVNCj.js} +1 -1
- package/dist/index-WRwKVNCj.js.gz +0 -0
- package/dist/{index-YUxv9zcy.js → index-_ZipSMbY.js} +1 -1
- package/dist/{index-Ce7om2b0.js → index-amWtWxEP.js} +1 -1
- package/dist/{index-BkFMtvaA.js → index-e681k9MU.js} +1 -1
- package/dist/{index-CW_pwq9n.js → index-m9rs9A2Z.js} +1 -1
- package/dist/{index-DLYK29pl.mjs → index-o6IoIHb8.mjs} +3 -3
- package/dist/{index-Cy8xV8EB.mjs → index-obc-59PR.mjs} +3 -3
- package/dist/{index-BES2yLA1.mjs → index-sbFkb7GB.mjs} +1 -1
- package/dist/{index-D7HDzpIP.js → index-uQgqVAg2.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-wypNPSZt.mjs → index.vue_vue_type_script_setup_true_lang-BqVITJfs.mjs} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-BqVITJfs.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C69KfaYC.js → index.vue_vue_type_script_setup_true_lang-BtCwkoUQ.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C4bqFono.js → index.vue_vue_type_script_setup_true_lang-CwzphJlv.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C2LJ4nuZ.mjs → index.vue_vue_type_script_setup_true_lang-DC0FRewd.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DBKjGmnL.js → index.vue_vue_type_script_setup_true_lang-DLvscdal.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cin8oqkQ.js → index.vue_vue_type_script_setup_true_lang-DlEhP7Gw.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CX79hk3v.mjs → index.vue_vue_type_script_setup_true_lang-RgYaz8v6.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C7P5zPCW.mjs → index.vue_vue_type_script_setup_true_lang-psaUz9M9.mjs} +4 -4
- package/dist/{link-E8aXi8w-.js → link-CVVTYvsn.js} +1 -1
- package/dist/{link-C4ArxA6m.mjs → link-Du1zE1VS.mjs} +1 -1
- package/dist/{list-B-nCMfX_.mjs → list-B0pnzmrr.mjs} +1 -1
- package/dist/{list-Ysesz1TQ.js → list-BiEcsT3J.js} +1 -1
- package/dist/{main--gNc1S9s.mjs → main-BHafzBiw.mjs} +3 -3
- package/dist/{main-BDOHi7Vo.js → main-D4IDYKL2.js} +1 -1
- package/dist/{mobile-7ICDhhIZ.js → mobile-3tT9Flfe.js} +1 -1
- package/dist/{mobile-B1TM6klc.mjs → mobile-Df6RvUkG.mjs} +1 -1
- package/dist/{parent-B2ECMABX.mjs → parent-B2kuljEL.mjs} +2 -2
- package/dist/{parent-CQeud6qF.js → parent-CmfsM7yu.js} +1 -1
- package/dist/{popup-BCw81Z0o.mjs → popup-CtCvnlE3.mjs} +1 -1
- package/dist/{popup-C1Oxdbcm.js → popup-u9mOo0AX.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CphCII_R.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-Be8emmJ2.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-aXkfLUTS.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-q6xb9L0-.mjs} +1 -1
- package/dist/{replaceRules-CwSJXu6Q.js → replaceRules-BLfBOl8c.js} +1 -1
- package/dist/{replaceRules-DOvhEOac.mjs → replaceRules-fOcpCHTW.mjs} +1 -1
- package/dist/{roleItem-BiGCUPp0.mjs → roleItem-BbxCMaID.mjs} +1 -1
- package/dist/{roleItem-BGGyYGs0.js → roleItem-caK3H7XS.js} +1 -1
- package/dist/{saveForm-DIilFTG4.js → saveForm-CBGAd0NN.js} +1 -1
- package/dist/{saveForm-DnDL8LEX.mjs → saveForm-kuHZxwM6.mjs} +2 -2
- package/dist/saveForm-kuHZxwM6.mjs.gz +0 -0
- package/dist/{scan-DjTxY25h.js → scan-7EXNQjdl.js} +1 -1
- package/dist/scan-7EXNQjdl.js.gz +0 -0
- package/dist/{scan-Du4hsFLz.mjs → scan-BZHuBrzs.mjs} +1 -1
- package/dist/scan-BZHuBrzs.mjs.gz +0 -0
- package/dist/{search-CJ5X3-Uc.mjs → search-DSckgiOO.mjs} +1 -1
- package/dist/{search-EBqnYrCo.js → search-DgNiymdN.js} +1 -1
- package/dist/{selectConfig-BgCeTSyQ.mjs → selectConfig-DtTQzreu.mjs} +1 -1
- package/dist/selectConfig-DtTQzreu.mjs.gz +0 -0
- package/dist/{selectConfig-fMo0eCy3.js → selectConfig-e7Pzm4lh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-BmoZzvEz.js → subItem-BaRoAzr5.js} +1 -1
- package/dist/{subItem-tAleA2_j.mjs → subItem-CS4j3YdF.mjs} +1 -1
- package/dist/{tagsView-DHgs83Mw.mjs → tagsView-CHRgG0Fp.mjs} +2 -2
- package/dist/tagsView-CHRgG0Fp.mjs.gz +0 -0
- package/dist/{tagsView-CXpphVR9.js → tagsView-bY1pXIOd.js} +2 -2
- package/dist/tagsView-bY1pXIOd.js.gz +0 -0
- package/dist/{transverse-DWD7p5mc.mjs → transverse-DIXF93RM.mjs} +3 -3
- package/dist/{transverse-CpBwC8NE.js → transverse-UJsOwzi5.js} +1 -1
- package/dist/types/components/business/bcForm/type.d.ts +4 -0
- package/dist/types/components/business/bcTable/utils/type.d.ts +2 -2
- package/dist/{uploadAvatar-rzrDQOEi.js → uploadAvatar-DM_LBV83.js} +1 -1
- package/dist/uploadAvatar-DM_LBV83.js.gz +0 -0
- package/dist/{uploadAvatar-BMQs_sYe.mjs → uploadAvatar-LRYJb9fa.mjs} +1 -1
- package/dist/uploadAvatar-LRYJb9fa.mjs.gz +0 -0
- package/dist/{user-Cxi52-XL.mjs → user-BW-0gooz.mjs} +4 -4
- package/dist/user-BW-0gooz.mjs.gz +0 -0
- package/dist/{user-CZRAAvNI.js → user-BiGsmixv.js} +1 -1
- package/dist/{userNews-Bx-XEPwK.js → userNews-CB5qMlgP.js} +1 -1
- package/dist/{userNews-fPobSjw3.mjs → userNews-CBOVGhiD.mjs} +1 -1
- package/dist/{userSelect-J0yKck4i.mjs → userSelect-BlQXpzAs.mjs} +1 -1
- package/dist/{userSelect-vTBN-yZE.js → userSelect-DnnAkcRw.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BluVEZcP.mjs → userSelect.vue_vue_type_script_setup_true_lang-BUR10HbR.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Ck-BamyE.js → userSelect.vue_vue_type_script_setup_true_lang-ILPloBnZ.js} +1 -1
- package/dist/{vertical-BGCeldsC.js → vertical-CW7Crsx6.js} +1 -1
- package/dist/{vertical-C6FMazQY.mjs → vertical-DvmVp0Zf.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-fdLLLaDA.mjs.gz +0 -0
- package/dist/account-Cfo7DbK9.js.gz +0 -0
- package/dist/account-D6LRsR9v.mjs.gz +0 -0
- package/dist/btnIndex-DvS0hJeB.mjs.gz +0 -0
- package/dist/cloneConfigDialog-CdoBZ1ll.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dp_dB8cK.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-u28BrKVg.mjs.gz +0 -0
- package/dist/formConfig-BvCT5cN0.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BiEPNeFD.mjs.gz +0 -0
- package/dist/hsFormConfigList-B48jZh1Y.mjs.gz +0 -0
- package/dist/hsFormPanel-BzCVbikc.mjs.gz +0 -0
- package/dist/index copy-_8TZHFZA.mjs.gz +0 -0
- package/dist/index-B5tL-bhH.js.gz +0 -0
- package/dist/index-BL3O9IwF.mjs +0 -4
- package/dist/index-BXmJdNN0.mjs.gz +0 -0
- package/dist/index-BZL9dOci.mjs.gz +0 -0
- package/dist/index-Bx5Nl2mP.js.gz +0 -0
- package/dist/index-D51b4AEH.mjs.gz +0 -0
- package/dist/index-D5J66yQY.mjs.gz +0 -0
- package/dist/index-Z4O7-QWj.mjs.gz +0 -0
- package/dist/index-hA-BKdiu.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-wypNPSZt.mjs.gz +0 -0
- package/dist/saveForm-DnDL8LEX.mjs.gz +0 -0
- package/dist/scan-DjTxY25h.js.gz +0 -0
- package/dist/scan-Du4hsFLz.mjs.gz +0 -0
- package/dist/selectConfig-BgCeTSyQ.mjs.gz +0 -0
- package/dist/tagsView-CXpphVR9.js.gz +0 -0
- package/dist/tagsView-DHgs83Mw.mjs.gz +0 -0
- package/dist/uploadAvatar-BMQs_sYe.mjs.gz +0 -0
- package/dist/uploadAvatar-rzrDQOEi.js.gz +0 -0
- package/dist/user-Cxi52-XL.mjs.gz +0 -0
@@ -131385,7 +131385,7 @@ const dynamicRoutes = [
|
|
131385
131385
|
{
|
131386
131386
|
path: "/",
|
131387
131387
|
name: "/",
|
131388
|
-
component: () => import("./index-
|
131388
|
+
component: () => import("./index-BGL2Au0S.mjs"),
|
131389
131389
|
redirect: "/home",
|
131390
131390
|
meta: {
|
131391
131391
|
isKeepAlive: true
|
@@ -131397,7 +131397,7 @@ const notFoundAndNoPower = [
|
|
131397
131397
|
{
|
131398
131398
|
path: "/:path(.*)*",
|
131399
131399
|
name: "notFound",
|
131400
|
-
component: () => import("./404-
|
131400
|
+
component: () => import("./404-LTUbV0EQ.mjs"),
|
131401
131401
|
meta: {
|
131402
131402
|
title: "找不到此页面",
|
131403
131403
|
isHide: true
|
@@ -131406,7 +131406,7 @@ const notFoundAndNoPower = [
|
|
131406
131406
|
{
|
131407
131407
|
path: "/401",
|
131408
131408
|
name: "noPower",
|
131409
|
-
component: () => import("./401-
|
131409
|
+
component: () => import("./401-B_DJeM9x.mjs"),
|
131410
131410
|
meta: {
|
131411
131411
|
title: "没有权限",
|
131412
131412
|
isHide: true
|
@@ -131417,7 +131417,7 @@ const staticRoutes = [
|
|
131417
131417
|
{
|
131418
131418
|
path: "/login",
|
131419
131419
|
name: "login",
|
131420
|
-
component: () => import("./index-
|
131420
|
+
component: () => import("./index-V9SDENcZ.mjs"),
|
131421
131421
|
meta: {
|
131422
131422
|
title: "登录"
|
131423
131423
|
}
|
@@ -134641,8 +134641,8 @@ function useMenuController() {
|
|
134641
134641
|
};
|
134642
134642
|
}
|
134643
134643
|
const menuApi = useMenuController();
|
134644
|
-
const layouModules = /* @__PURE__ */ Object.assign({ "../layout/routerView/iframes.vue": () => import("./iframes-
|
134645
|
-
const viewsModules = /* @__PURE__ */ Object.assign({ "../views/config/buttonManagement/btnIndex.vue": () => import("./btnIndex-
|
134644
|
+
const layouModules = /* @__PURE__ */ Object.assign({ "../layout/routerView/iframes.vue": () => import("./iframes-CSWtdAzA.mjs"), "../layout/routerView/link.vue": () => import("./link-Du1zE1VS.mjs"), "../layout/routerView/parent.vue": () => import("./parent-B2kuljEL.mjs") });
|
134645
|
+
const viewsModules = /* @__PURE__ */ Object.assign({ "../views/config/buttonManagement/btnIndex.vue": () => import("./btnIndex-BeCmTe7c.mjs"), "../views/config/buttonManagement/dialog.vue": () => import("./dialog-B_s7T-z2.mjs"), "../views/config/buttonManagement/index.vue": () => import("./index-D41VNzbg.mjs"), "../views/config/commonConfig/components/commonConfigList.vue": () => import("./commonConfigList-C-u-Hz1u.mjs"), "../views/config/commonConfig/index.vue": () => import("./index-PU4bVl9p.mjs"), "../views/config/dataAuth/dialog.vue": () => import("./dialog-DsQzWExm.mjs"), "../views/config/dataAuth/index.vue": () => import("./index-D3jvaNxB.mjs"), "../views/config/dataDict/components/dict/dictDialog.vue": () => import("./dictDialog-B8echph2.mjs"), "../views/config/dataDict/components/dictItem/dictItemDialog.vue": () => import("./dictItemDialog-DyOlaFDe.mjs"), "../views/config/dataDict/index.vue": () => import("./index-CzAwFGeG.mjs"), "../views/config/fieldPool/components/dialog/index.vue": () => import("./index-CnOgBFgI.mjs"), "../views/config/fieldPool/components/formAttr/index.vue": () => import("./index-D2M88SrA.mjs"), "../views/config/fieldPool/components/searchFormAttr/index.vue": () => import("./index-CFxAdsyL.mjs"), "../views/config/fieldPool/components/tableAttr/index.vue": () => import("./index-CrOoYK51.mjs"), "../views/config/fieldPool/index.vue": () => import("./index-BsS93eKg.mjs"), "../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue": () => import("./hsAttrBtn-muZc9EW7.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue": () => import("./hsBtnConfigList-CGmJ2o6O.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue": () => import("./hsBtnItemConfig-C9Ua-GAt.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue": () => import("./hsBtnPanel-CEgikcyP.mjs"), "../views/config/formSetting/components/hsExpand/src/hsExpand.vue": () => import("./hsExpand-fD7HJdii.mjs"), "../views/config/formSetting/components/hsForm/src/contextmenu.vue": () => import("./contextmenu-uxE2XaNr.mjs"), "../views/config/formSetting/components/hsForm/src/hsAttrForm.vue": () => import("./hsAttrForm-BsNz69dy.mjs"), "../views/config/formSetting/components/hsForm/src/hsCheckbox.vue": () => import("./hsCheckbox-tRIRuNcX.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfig.vue": () => import("./hsFormConfig-Draw6-ib.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue": () => import("./hsFormConfigList-B5uPtmYr.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormPanel.vue": () => import("./hsFormPanel-ByswlpL6.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormParse.vue": () => import("./hsFormParse-Bhenq19A.mjs"), "../views/config/formSetting/components/hsSaveForm/src/cloneConfigDialog.vue": () => import("./cloneConfigDialog-C1qPkTR9.mjs"), "../views/config/formSetting/components/hsSaveForm/src/saveForm.vue": () => import("./saveForm-kuHZxwM6.mjs"), "../views/config/formSetting/components/selectConfig/selectConfig.vue": () => import("./selectConfig-DtTQzreu.mjs"), "../views/config/formSetting/formConfig.vue": () => import("./formConfig-yh6N0_zI.mjs"), "../views/config/formSetting/index.vue": () => import("./index-CqT0mNKb.mjs"), "../views/config/index.vue": () => import("./index-C2XDMtk5.mjs"), "../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue": () => import("./hsPanelItem-BAhhWlbq.mjs"), "../views/config/pageElement/index.vue": () => import("./index-BokRSIQ9.mjs"), "../views/config/parseAPI/index.vue": () => import("./index-DFN0U7np.mjs"), "../views/config/system/component/addOrEditSystem/index.vue": () => import("./index-D1atoFJ4.mjs"), "../views/config/system/component/copySystem/copySystem.vue": () => import("./copySystem-BJFWNp6f.mjs"), "../views/config/system/index.vue": () => import("./index-CLTWA8he.mjs"), "../views/config/table/index.vue": () => import("./index-DzVE5kkA.mjs"), "../views/error/401.vue": () => import("./401-B_DJeM9x.mjs"), "../views/error/404.vue": () => import("./404-LTUbV0EQ.mjs"), "../views/home/index.vue": () => import("./index-Bo7YzBtA.mjs"), "../views/login/component/account.vue": () => import("./account-DNOPEuQ2.mjs"), "../views/login/component/mobile.vue": () => import("./mobile-Df6RvUkG.mjs"), "../views/login/component/scan.vue": () => import("./scan-BZHuBrzs.mjs"), "../views/login/index.vue": () => import("./index-V9SDENcZ.mjs"), "../views/system/dept/dialog.vue": () => import("./dialog-BEl3p3pT.mjs"), "../views/system/dept/index.vue": () => import("./index-DItIrEZO.mjs"), "../views/system/dic/dialog.vue": () => import("./dialog-CuCf2uk1.mjs"), "../views/system/dic/index.vue": () => import("./index-BMdALfnU.mjs"), "../views/system/menu/copyMenuConfig.vue": () => import("./copyMenuConfig-8aN1zmUB.mjs"), "../views/system/menu/dialog.vue": () => import("./dialog-BDKPLTCp.mjs"), "../views/system/menu/index.vue": () => import("./index-BweGsple.mjs"), "../views/system/role/component/roleItem.vue": () => import("./roleItem-BbxCMaID.mjs"), "../views/system/role/component/userSelect.vue": () => import("./userSelect-BlQXpzAs.mjs"), "../views/system/role/index.vue": () => import("./index-obc-59PR.mjs"), "../views/system/user/dialog.vue": () => import("./dialog-BLSiC-iw.mjs"), "../views/system/user/index.vue": () => import("./index-BRjzOdJj.mjs"), "../views/test/form/index.vue": () => import("./index-M5OZnSGg.mjs"), "../views/test/mxEditor/components/popup/popup.vue": () => import("./popup-CtCvnlE3.mjs"), "../views/test/mxEditor/index.vue": () => import("./index-CsQrKVoN.mjs"), "../views/test/rtc/index.vue": () => import("./index-BCVvhP4X.mjs"), "../views/test/table/components/editDialog/editDialog.vue": () => import("./editDialog-BDV4zBRN.mjs"), "../views/test/table/components/replaceRules/replaceRules.vue": () => import("./replaceRules-fOcpCHTW.mjs"), "../views/test/table/index.vue": () => import("./index-CXazwuIq.mjs"), "../views/test/test/bc-scan-code-upload/index.vue": () => import("./index-DMRHg2gz.mjs"), "../views/test/test/bc-signature/index.vue": () => import("./index-Byfw8QB8.mjs"), "../views/test/test/index copy.vue": () => import("./index copy-BEL97Kl4.mjs"), "../views/test/test/index.vue": () => import("./index-BPBWv1h-.mjs"), "../views/test/test/uploadAvatar.vue": () => import("./uploadAvatar-LRYJb9fa.mjs") });
|
134646
134646
|
const dynamicViewsModules = Object.assign({}, { ...layouModules }, { ...viewsModules });
|
134647
134647
|
async function initBackEndControlRoutes() {
|
134648
134648
|
if (window.nextLoading === void 0)
|
@@ -171848,7 +171848,7 @@ var zhCn = {
|
|
171848
171848
|
}
|
171849
171849
|
};
|
171850
171850
|
const _hoisted_1$17 = { class: "popup-wrapper" };
|
171851
|
-
const _hoisted_2$
|
171851
|
+
const _hoisted_2$I = { class: "content" };
|
171852
171852
|
const _hoisted_3$v = { key: 0 };
|
171853
171853
|
const __default__$X = defineComponent({
|
171854
171854
|
name: "showPopupComponent"
|
@@ -171875,7 +171875,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
171875
171875
|
const _component_el_config_provider = resolveComponent("el-config-provider");
|
171876
171876
|
const _component_hs_button = resolveComponent("hs-button");
|
171877
171877
|
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
171878
|
-
createElementVNode("div", _hoisted_2$
|
171878
|
+
createElementVNode("div", _hoisted_2$I, [
|
171879
171879
|
createVNode(_component_el_config_provider, { locale: unref(zhCn) }, {
|
171880
171880
|
default: withCtx(() => [
|
171881
171881
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
@@ -178212,7 +178212,7 @@ const _hoisted_1$16 = {
|
|
178212
178212
|
key: 0,
|
178213
178213
|
class: "base-form-wraper"
|
178214
178214
|
};
|
178215
|
-
const _hoisted_2$
|
178215
|
+
const _hoisted_2$H = {
|
178216
178216
|
key: 0,
|
178217
178217
|
class: "btn-wraper"
|
178218
178218
|
};
|
@@ -178351,7 +178351,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
178351
178351
|
const _component_hs_form_item = resolveComponent("hs-form-item");
|
178352
178352
|
const _component_hs_form = resolveComponent("hs-form");
|
178353
178353
|
return ((_a2 = _ctx.data) == null ? void 0 : _a2.config_unique_id) ? (openBlock(), createElementBlock("div", _hoisted_1$16, [
|
178354
|
-
((_c = (_b = _ctx.data) == null ? void 0 : _b.btns) == null ? void 0 : _c.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$
|
178354
|
+
((_c = (_b = _ctx.data) == null ? void 0 : _b.btns) == null ? void 0 : _c.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
178355
178355
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data.btns, (btn) => {
|
178356
178356
|
return openBlock(), createElementBlock(Fragment, {
|
178357
178357
|
key: btn.id
|
@@ -178602,6 +178602,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
178602
178602
|
return currentConfig;
|
178603
178603
|
}
|
178604
178604
|
};
|
178605
|
+
const getFieldID = (index2 = 0) => Object.keys(formData2.value.data)[index2];
|
178605
178606
|
const getDataInstance = () => formData2.value;
|
178606
178607
|
const getOptions = (field) => bcBoxApi == null ? void 0 : bcBoxApi.getOptions(field);
|
178607
178608
|
const showLoading = () => {
|
@@ -178648,6 +178649,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
178648
178649
|
dataInstance: formData2,
|
178649
178650
|
getDataInstance,
|
178650
178651
|
getItemConfig,
|
178652
|
+
getFieldID,
|
178651
178653
|
submit,
|
178652
178654
|
getOptions,
|
178653
178655
|
showLoading,
|
@@ -178720,9 +178722,9 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
178720
178722
|
};
|
178721
178723
|
}
|
178722
178724
|
});
|
178723
|
-
const bcForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1o, [["__scopeId", "data-v-
|
178725
|
+
const bcForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1o, [["__scopeId", "data-v-9dd9ba1a"]]);
|
178724
178726
|
const _hoisted_1$15 = { class: "search-btn" };
|
178725
|
-
const _hoisted_2$
|
178727
|
+
const _hoisted_2$G = { class: "item-wrap" };
|
178726
178728
|
const __default__$R = defineComponent({
|
178727
178729
|
name: "formSearchBtn"
|
178728
178730
|
});
|
@@ -178747,7 +178749,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
178747
178749
|
return (_ctx, _cache) => {
|
178748
178750
|
const _component_bc_button = resolveComponent("bc-button");
|
178749
178751
|
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
178750
|
-
createElementVNode("div", _hoisted_2$
|
178752
|
+
createElementVNode("div", _hoisted_2$G, [
|
178751
178753
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btns, (btn) => {
|
178752
178754
|
return openBlock(), createElementBlock(Fragment, {
|
178753
178755
|
key: btn.id
|
@@ -178776,7 +178778,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
178776
178778
|
});
|
178777
178779
|
const FormSearchBtn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["__scopeId", "data-v-af382c1f"]]);
|
178778
178780
|
const _hoisted_1$14 = { class: "bc-form__wrapper" };
|
178779
|
-
const _hoisted_2$
|
178781
|
+
const _hoisted_2$F = {
|
178780
178782
|
key: 0,
|
178781
178783
|
class: "bc-form__btn"
|
178782
178784
|
};
|
@@ -178981,7 +178983,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
178981
178983
|
]),
|
178982
178984
|
_: 3
|
178983
178985
|
}, 16, ["model", "style"]),
|
178984
|
-
!(_ctx.columnNum > 0) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
178986
|
+
!(_ctx.columnNum > 0) ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
178985
178987
|
formItemList.value.length !== formConfigList.value.length ? (openBlock(), createBlock(_component_hs_button, {
|
178986
178988
|
key: 0,
|
178987
178989
|
size: "small",
|
@@ -180647,7 +180649,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
180647
180649
|
});
|
180648
180650
|
const FormDrag = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-14b57b01"]]);
|
180649
180651
|
const _hoisted_1$13 = { class: "sort-form-wraper" };
|
180650
|
-
const _hoisted_2$
|
180652
|
+
const _hoisted_2$E = { class: "sort-form-wraper__content" };
|
180651
180653
|
const _hoisted_3$t = { class: "content__wrap" };
|
180652
180654
|
const _hoisted_4$h = { class: "sort-target drag li" };
|
180653
180655
|
const _hoisted_5$9 = { class: "li name" };
|
@@ -180879,7 +180881,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
180879
180881
|
const _component_el_select = resolveComponent("el-select");
|
180880
180882
|
const _component_hs_button = resolveComponent("hs-button");
|
180881
180883
|
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
180882
|
-
createElementVNode("div", _hoisted_2$
|
180884
|
+
createElementVNode("div", _hoisted_2$E, [
|
180883
180885
|
createElementVNode("div", _hoisted_3$t, [
|
180884
180886
|
_cache[7] || (_cache[7] = createStaticVNode('<div class="head" data-v-bdd1ba42><span class="drag" data-v-bdd1ba42>拖动</span><span class="name" data-v-bdd1ba42>列名称</span><span class="status" data-v-bdd1ba42>显示状态</span><span class="index" data-v-bdd1ba42>排序值</span></div>', 1)),
|
180885
180887
|
createVNode(unref(to$1), {
|
@@ -181547,7 +181549,7 @@ const _hoisted_1$11 = {
|
|
181547
181549
|
key: 0,
|
181548
181550
|
class: "item-wrap"
|
181549
181551
|
};
|
181550
|
-
const _hoisted_2$
|
181552
|
+
const _hoisted_2$D = ["onClick"];
|
181551
181553
|
const __default__$M = defineComponent({
|
181552
181554
|
name: "formTabs"
|
181553
181555
|
});
|
@@ -181592,7 +181594,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
181592
181594
|
}, item || {}), void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
181593
181595
|
createTextVNode(toDisplayString(item.baseData["tableName"]), 1)
|
181594
181596
|
], 64))
|
181595
|
-
], 10, _hoisted_2$
|
181597
|
+
], 10, _hoisted_2$D);
|
181596
181598
|
}), 128))
|
181597
181599
|
])) : createCommentVNode("", true)
|
181598
181600
|
], 2),
|
@@ -181995,7 +181997,6 @@ function useButon(formRef, props) {
|
|
181995
181997
|
props.data.form.formData[i2] = initCanche[i2];
|
181996
181998
|
});
|
181997
181999
|
}
|
181998
|
-
bcTableApi == null ? void 0 : bcTableApi.clearCheckboxRow();
|
181999
182000
|
if (noSearch) {
|
182000
182001
|
if (typeof noSearch === "function") {
|
182001
182002
|
noSearch();
|
@@ -182003,6 +182004,7 @@ function useButon(formRef, props) {
|
|
182003
182004
|
}
|
182004
182005
|
return nextTick();
|
182005
182006
|
}
|
182007
|
+
bcTableApi == null ? void 0 : bcTableApi.clearCheckboxRow();
|
182006
182008
|
return search();
|
182007
182009
|
}
|
182008
182010
|
async function search(table_id, query) {
|
@@ -182134,7 +182136,7 @@ function useButon(formRef, props) {
|
|
182134
182136
|
};
|
182135
182137
|
}
|
182136
182138
|
const _hoisted_1$$ = { class: "sort-form-wraper" };
|
182137
|
-
const _hoisted_2$
|
182139
|
+
const _hoisted_2$C = { class: "sort-form-wraper__content" };
|
182138
182140
|
const _hoisted_3$s = { class: "content__wrap" };
|
182139
182141
|
const _hoisted_4$g = { class: "sort-target drag li" };
|
182140
182142
|
const _hoisted_5$8 = { class: "li name" };
|
@@ -182324,7 +182326,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
182324
182326
|
const _component_hs_switch = resolveComponent("hs-switch");
|
182325
182327
|
const _component_hs_button = resolveComponent("hs-button");
|
182326
182328
|
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
182327
|
-
createElementVNode("div", _hoisted_2$
|
182329
|
+
createElementVNode("div", _hoisted_2$C, [
|
182328
182330
|
createElementVNode("div", _hoisted_3$s, [
|
182329
182331
|
_cache[4] || (_cache[4] = createStaticVNode('<div class="head" data-v-c742493c><span class="drag" data-v-c742493c>拖动</span><span class="name" data-v-c742493c>列名称</span><span class="status" data-v-c742493c>显示状态</span><span class="index" data-v-c742493c>排序值</span></div>', 1)),
|
182330
182332
|
createVNode(unref(to$1), {
|
@@ -183197,7 +183199,7 @@ function useTable(props) {
|
|
183197
183199
|
const setQueryData = (data2, isCanche = false) => {
|
183198
183200
|
configUnidId.value = props.data.config_unique_id;
|
183199
183201
|
const query = {
|
183200
|
-
...getQueryData(),
|
183202
|
+
...getQueryData(false),
|
183201
183203
|
...data2
|
183202
183204
|
};
|
183203
183205
|
formTableData.value.form.formData = query;
|
@@ -183275,16 +183277,12 @@ function useTable(props) {
|
|
183275
183277
|
};
|
183276
183278
|
}
|
183277
183279
|
function resetCheckboxRow(selecteds) {
|
183278
|
-
var _a2
|
183280
|
+
var _a2;
|
183279
183281
|
_$4.set(checkSelected.value, `data.${getActiveTab()}`, selecteds || []);
|
183280
183282
|
if (_$4.isEmpty(_$4.get(checkSelected.value, `data.${getActiveTab()}`, []))) {
|
183281
|
-
|
183282
|
-
if (btn) {
|
183283
|
-
btn.data.disabled = true;
|
183284
|
-
}
|
183285
|
-
(_b = getApi()) == null ? void 0 : _b.clearCheckboxRow();
|
183283
|
+
clearCheckboxRow();
|
183286
183284
|
} else {
|
183287
|
-
(
|
183285
|
+
(_a2 = getApi()) == null ? void 0 : _a2.setCheckboxRow(_$4.get(checkSelected.value, `data.${getActiveTab()}`, []), true);
|
183288
183286
|
}
|
183289
183287
|
}
|
183290
183288
|
function clearCheckboxRow() {
|
@@ -183733,7 +183731,7 @@ const useConfigInfo = defineStore("configInfo", {
|
|
183733
183731
|
}
|
183734
183732
|
});
|
183735
183733
|
const _hoisted_1$Z = { class: "text-[#606266] truncate" };
|
183736
|
-
const _hoisted_2$
|
183734
|
+
const _hoisted_2$B = { key: 0 };
|
183737
183735
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
183738
183736
|
__name: "bcFormConfig",
|
183739
183737
|
props: {
|
@@ -183888,7 +183886,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
183888
183886
|
label: withCtx(() => [
|
183889
183887
|
createElementVNode("span", _hoisted_1$Z, [
|
183890
183888
|
createTextVNode(" " + toDisplayString(item["label"]) + " ", 1),
|
183891
|
-
__props.parentConfig.showColon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
183889
|
+
__props.parentConfig.showColon ? (openBlock(), createElementBlock("span", _hoisted_2$B, ": ")) : createCommentVNode("", true)
|
183892
183890
|
]),
|
183893
183891
|
createVNode(_component_el_tooltip, {
|
183894
183892
|
class: "box-item",
|
@@ -184675,553 +184673,1390 @@ const inputAttrConfigMap = {
|
|
184675
184673
|
rules: ""
|
184676
184674
|
}
|
184677
184675
|
};
|
184678
|
-
|
184679
|
-
size: "default",
|
184680
|
-
rules: "",
|
184681
|
-
// 表单校验规则
|
184682
|
-
inline: true,
|
184683
|
-
// 行内表单模式
|
184684
|
-
labelPosition: "left",
|
184685
|
-
// 表单域标签的位置
|
184686
|
-
labelWidth: "80",
|
184687
|
-
// 表单域标签的宽度
|
184688
|
-
labelSuffix: "",
|
184689
|
-
// 表单域标签的后缀
|
184690
|
-
hideRequiredAsterisk: false,
|
184691
|
-
// 是否隐藏必填标识
|
184692
|
-
requireAsteriskPosition: "left",
|
184693
|
-
// 必填标识的位置
|
184694
|
-
showMessage: true,
|
184695
|
-
// 是否显示校验错误信息
|
184696
|
-
inlineMessage: false,
|
184697
|
-
// 是否以行内展示校验信息
|
184698
|
-
statusIcon: false,
|
184699
|
-
// 是否框中显示校验反馈图标
|
184700
|
-
validateOnRuleChange: true,
|
184701
|
-
// 是否触发第一次验证
|
184702
|
-
disabled: false,
|
184703
|
-
// 是否禁用该表单项
|
184704
|
-
scrollToError: false,
|
184705
|
-
// 滚动至首个校验失败的表单
|
184706
|
-
gutter: 10,
|
184707
|
-
// 栅格间隔
|
184708
|
-
justify: "start",
|
184709
|
-
// flex 布局下的水平排列方式
|
184710
|
-
align: "",
|
184711
|
-
// flex 布局下的垂直排列方式
|
184712
|
-
isSetDictDefaultValue: true,
|
184713
|
-
// 是否取字典项的默认值
|
184714
|
-
isSupportShortcutKey: true,
|
184715
|
-
// 是否支持表单回车快捷功能
|
184716
|
-
submitUrl: "",
|
184717
|
-
// 提交表单的请求api
|
184718
|
-
submitSuccessMsg: "",
|
184719
|
-
// 表单提交成功的提示信息
|
184720
|
-
isVerifySearch: false,
|
184721
|
-
// 是否校验查询参数
|
184722
|
-
isQuickSearch: false,
|
184723
|
-
// 是否校验查询参数
|
184724
|
-
isClosedKeyStroke: false
|
184725
|
-
// 是否关闭键盘事件
|
184726
|
-
};
|
184727
|
-
let parentFormConfig = [
|
184728
|
-
{ prop: "rules", label: "表单验证规则", type: "textarea", el: "hs-input" },
|
184729
|
-
{ prop: "inline", label: "行内表单模式", el: "hs-switch" },
|
184730
|
-
{
|
184731
|
-
prop: "labelPosition",
|
184732
|
-
label: "表单域标签的位置",
|
184733
|
-
el: "hs-select",
|
184734
|
-
tooltip: "表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",
|
184735
|
-
required: false,
|
184736
|
-
multiple: false,
|
184737
|
-
op: [
|
184738
|
-
{ label: " 靠左", value: "left" },
|
184739
|
-
{ label: "靠右", value: "right" },
|
184740
|
-
{ label: "靠上", value: "top" }
|
184741
|
-
],
|
184742
|
-
cel: "hs-option"
|
184743
|
-
},
|
184744
|
-
{
|
184745
|
-
prop: "labelWidth",
|
184746
|
-
label: "标签的宽度",
|
184747
|
-
tooltip: '标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',
|
184748
|
-
el: "hs-input"
|
184749
|
-
},
|
184750
|
-
{
|
184751
|
-
prop: "labelSuffix",
|
184752
|
-
label: "表单域标签的后缀",
|
184753
|
-
tooltip: "表单域标签的后缀",
|
184754
|
-
el: "hs-input"
|
184755
|
-
},
|
184756
|
-
{
|
184757
|
-
prop: "hideRequiredAsterisk",
|
184758
|
-
label: "是否隐藏必填标识",
|
184759
|
-
tooltip: "是否隐藏必填字段标签旁边的红色星号。",
|
184760
|
-
el: "hs-switch"
|
184761
|
-
},
|
184762
|
-
{
|
184763
|
-
prop: "requireAsteriskPosition",
|
184764
|
-
label: "必填标识的位置",
|
184765
|
-
tooltip: "星号的位置。",
|
184766
|
-
el: "hs-select",
|
184767
|
-
op: [
|
184768
|
-
{ label: " 靠左", value: "left" },
|
184769
|
-
{ label: "靠右", value: "right" }
|
184770
|
-
],
|
184771
|
-
cel: "hs-option"
|
184772
|
-
},
|
184773
|
-
{
|
184774
|
-
prop: "showMessage",
|
184775
|
-
label: "是否显示校验错误信息",
|
184776
|
-
tooltip: "是否显示校验错误信息",
|
184777
|
-
el: "hs-switch"
|
184778
|
-
},
|
184779
|
-
{
|
184780
|
-
prop: "inlineMessage",
|
184781
|
-
label: "是否以行内形式展示校验信息",
|
184782
|
-
tooltip: "是否以行内形式展示校验信息",
|
184783
|
-
el: "hs-switch"
|
184784
|
-
},
|
184785
|
-
{
|
184786
|
-
prop: "statusIcon",
|
184787
|
-
label: "是否框中显示校验反馈图标",
|
184788
|
-
tooltip: "是否在输入框中显示校验结果反馈图标",
|
184789
|
-
el: "hs-switch"
|
184790
|
-
},
|
184791
|
-
{
|
184792
|
-
prop: "validateOnRuleChange",
|
184793
|
-
label: "是否触发第一次验证",
|
184794
|
-
tooltip: "是否在 rules 属性改变后立即触发一次验证",
|
184795
|
-
el: "hs-switch"
|
184796
|
-
},
|
184797
|
-
{
|
184798
|
-
prop: "size",
|
184799
|
-
label: "表单项组件的尺寸",
|
184800
|
-
el: "hs-select",
|
184801
|
-
tooltip: "用于控制该表单内组件的尺寸",
|
184802
|
-
op: [
|
184803
|
-
{ label: " 大尺寸", value: "large" },
|
184804
|
-
{ label: "默认尺寸", value: "default" },
|
184805
|
-
{ label: "小尺寸", value: "small" }
|
184806
|
-
],
|
184807
|
-
cel: "hs-option"
|
184808
|
-
},
|
184809
|
-
{
|
184810
|
-
prop: "disabled",
|
184811
|
-
label: "是否禁用表单项",
|
184812
|
-
tooltip: "是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",
|
184813
|
-
el: "hs-switch"
|
184814
|
-
},
|
184815
|
-
{
|
184816
|
-
prop: "scrollToError",
|
184817
|
-
label: "滚动至首个校验失败的表单",
|
184818
|
-
tooltip: "当校验失败时,滚动到第一个错误表单项",
|
184819
|
-
el: "hs-switch"
|
184820
|
-
},
|
184821
|
-
{
|
184822
|
-
label: "是否取字典项的默认值",
|
184823
|
-
prop: "isSetDictDefaultValue",
|
184824
|
-
el: "hs-switch",
|
184825
|
-
tooltip: "当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"
|
184826
|
-
},
|
184827
|
-
{
|
184828
|
-
label: "是否支持表单回车快捷功能",
|
184829
|
-
prop: "isSupportShortcutKey",
|
184830
|
-
el: "hs-switch"
|
184831
|
-
},
|
184832
|
-
{
|
184833
|
-
label: "栅格间隔",
|
184834
|
-
prop: "gutter",
|
184835
|
-
type: "number",
|
184836
|
-
el: "hs-input-number"
|
184837
|
-
},
|
184838
|
-
{
|
184839
|
-
label: "盒子布局下的水平排列方式",
|
184840
|
-
prop: "justify",
|
184841
|
-
el: "hs-select",
|
184842
|
-
tooltip: "flex 布局下的水平排列方式",
|
184843
|
-
op: [
|
184844
|
-
{ label: "从起始方向排列", value: "start" },
|
184845
|
-
{ label: "从末尾方向排列", value: "end" },
|
184846
|
-
{ label: "居中", value: "center" },
|
184847
|
-
{ label: "两端对齐均匀分布", value: "space-between" },
|
184848
|
-
{ label: "两端是中间间隔的一半均匀分布", value: "space-around" },
|
184849
|
-
{ label: "间隔相等均匀分布", value: "space-evenly" }
|
184850
|
-
],
|
184851
|
-
cel: "hs-option"
|
184852
|
-
},
|
184853
|
-
{
|
184854
|
-
label: "盒子布局下的垂直排列方式",
|
184855
|
-
prop: "align",
|
184856
|
-
el: "hs-select",
|
184857
|
-
tooltip: "flex 布局下的垂直排列方式",
|
184858
|
-
op: [
|
184859
|
-
{ label: "自上而下", value: "top" },
|
184860
|
-
{ label: "居中", value: "middle" },
|
184861
|
-
{ label: "自下而上", value: "bottom" }
|
184862
|
-
],
|
184863
|
-
cel: "hs-option"
|
184864
|
-
},
|
184865
|
-
{
|
184866
|
-
label: "自定义元素标签",
|
184867
|
-
prop: "tag",
|
184868
|
-
el: "hs-input"
|
184869
|
-
},
|
184870
|
-
{
|
184871
|
-
label: "提交表单的请求Url",
|
184872
|
-
prop: "submitUrl",
|
184873
|
-
el: "hs-input"
|
184874
|
-
},
|
184875
|
-
{
|
184876
|
-
label: "提交请求方式",
|
184877
|
-
prop: "submitUrlMethod",
|
184878
|
-
el: "hs-select",
|
184879
|
-
cel: "hs-option",
|
184880
|
-
op: [
|
184881
|
-
{ label: " POST", value: "post" },
|
184882
|
-
{ label: "GET", value: "get" },
|
184883
|
-
{ label: "DELETE", value: "delete" },
|
184884
|
-
{ label: "PUT", value: "put" }
|
184885
|
-
]
|
184886
|
-
},
|
184887
|
-
{
|
184888
|
-
label: "表单提交成功的提示信息",
|
184889
|
-
prop: "submitSuccessMsg",
|
184890
|
-
el: "hs-input"
|
184891
|
-
},
|
184892
|
-
{
|
184893
|
-
label: "首行展示列数",
|
184894
|
-
prop: "columnNum",
|
184895
|
-
el: "hs-input-number"
|
184896
|
-
},
|
184897
|
-
{
|
184898
|
-
prop: "isVerifySearch",
|
184899
|
-
label: "是否校验查询参数",
|
184900
|
-
tooltip: "是否校验查询参数",
|
184901
|
-
el: "hs-switch"
|
184902
|
-
},
|
184903
|
-
{
|
184904
|
-
prop: "isQuickSearch",
|
184905
|
-
label: "是否启用快捷查询",
|
184906
|
-
tooltip: "是否启用快捷查询",
|
184907
|
-
el: "hs-switch"
|
184908
|
-
},
|
184676
|
+
const selectAttrConfig = [
|
184909
184677
|
{
|
184910
|
-
prop: "
|
184911
|
-
label: "
|
184912
|
-
|
184913
|
-
|
184914
|
-
|
184915
|
-
|
184916
|
-
{ label: "输入框", value: "hs-input" },
|
184917
|
-
{ label: "选择器", value: "hs-select" },
|
184918
|
-
{ label: "开关", value: "hs-switch" },
|
184919
|
-
{ label: "日期选择器", value: "hs-date-picker" },
|
184920
|
-
{ label: "按钮", value: "hs-button" },
|
184921
|
-
{ label: "自动补全", value: "hs-autocomplete" },
|
184922
|
-
{ label: "上传", value: "hs-upload" },
|
184923
|
-
{ label: "多选框", value: "hs-checkbox" },
|
184924
|
-
{ label: "单选框", value: "hs-radio" },
|
184925
|
-
{ label: "数字输入框", value: "hs-input-number" },
|
184926
|
-
{ label: "级联面板", value: "hs-cascader-panel" },
|
184927
|
-
{ label: "树形选择(弹窗带搜索框)", value: "bc-tree-search" },
|
184928
|
-
{ label: "树形选择", value: "hs-tree-select" },
|
184929
|
-
{ label: "级联选择器", value: "hs-cascader" },
|
184930
|
-
{ label: "输入框组", value: "bc-input-group" }
|
184931
|
-
]);
|
184932
|
-
const compConfig = {
|
184933
|
-
"hs-input": "hs-config-input",
|
184934
|
-
"hs-select": "hs-config-select",
|
184935
|
-
"hs-switch": "hs-config-switch",
|
184936
|
-
"hs-date-picker": "hs-config-date-picker",
|
184937
|
-
"hs-button": "hs-config-button",
|
184938
|
-
"hs-autocomplete": "hs-config-autocomplete",
|
184939
|
-
"hs-upload": "hs-config-upload",
|
184940
|
-
"hs-checkbox": "hs-config-checkbox",
|
184941
|
-
"hs-radio": "hs-config-radio",
|
184942
|
-
"hs-input-number": "hs-config-input-number",
|
184943
|
-
"hs-cascader-panel": "hs-config-cascader-panel",
|
184944
|
-
"bc-tree-search": "hs-config-tree-search",
|
184945
|
-
"hs-tree-select": "hs-config-tree-select",
|
184946
|
-
"bc-input-group": "hs-input-group"
|
184947
|
-
};
|
184948
|
-
const formBaseRule = {
|
184949
|
-
label: [{ required: true, message: "请输入参数名称" }],
|
184950
|
-
prop: [{ required: true, message: "请输入查询参数" }],
|
184951
|
-
el: [{ required: true, message: "请选择组件类型" }]
|
184952
|
-
};
|
184953
|
-
let formItemConfig = ref$1({
|
184954
|
-
id: "",
|
184955
|
-
sort: 0,
|
184956
|
-
// 排序
|
184957
|
-
// 配置绑定的值
|
184958
|
-
data: {
|
184959
|
-
baseData: {
|
184960
|
-
shortcut: [],
|
184961
|
-
label: "参数名称",
|
184962
|
-
prop: "",
|
184963
|
-
el: "hs-input",
|
184964
|
-
isSlot: false,
|
184965
|
-
isApply: true,
|
184966
|
-
isShow: true
|
184967
|
-
},
|
184968
|
-
elData: inputAttrConfigMap
|
184969
|
-
}
|
184970
|
-
});
|
184971
|
-
let config$2 = {
|
184972
|
-
// 配置
|
184973
|
-
baseConfig: {
|
184974
|
-
title: {
|
184975
|
-
subTitle: "表单项属性"
|
184976
|
-
},
|
184977
|
-
visible: true,
|
184978
|
-
list: [
|
184678
|
+
prop: "attrs",
|
184679
|
+
label: "selectAttrs",
|
184680
|
+
tooltip: "selectAttrs",
|
184681
|
+
type: "object",
|
184682
|
+
el: "title",
|
184683
|
+
children: [
|
184979
184684
|
{
|
184980
|
-
prop: "
|
184981
|
-
label: "
|
184982
|
-
|
184983
|
-
|
184685
|
+
prop: "defaultValue",
|
184686
|
+
label: "默认值",
|
184687
|
+
tooltip: "默认值",
|
184688
|
+
type: "string / number / boolean / object / array",
|
184689
|
+
el: "hs-input"
|
184984
184690
|
},
|
184985
184691
|
{
|
184986
|
-
prop: "
|
184987
|
-
label: "
|
184692
|
+
prop: "options",
|
184693
|
+
label: "option配置数据",
|
184694
|
+
tooltip: 'options 示例:string=[{label: "示例代码", value: 0}]',
|
184695
|
+
type: "string",
|
184696
|
+
el: "hs-input",
|
184697
|
+
attrs: {
|
184698
|
+
type: "textarea"
|
184699
|
+
}
|
184700
|
+
},
|
184701
|
+
{
|
184702
|
+
prop: "url",
|
184703
|
+
label: "url获取options",
|
184704
|
+
tooltip: "通过url请求获取options配置项数据",
|
184705
|
+
type: "string",
|
184988
184706
|
el: "hs-input"
|
184989
184707
|
},
|
184990
184708
|
{
|
184991
|
-
prop: "
|
184992
|
-
label: "
|
184993
|
-
|
184709
|
+
prop: "params",
|
184710
|
+
label: "请求参数",
|
184711
|
+
type: "string",
|
184994
184712
|
el: "hs-input"
|
184995
184713
|
},
|
184996
184714
|
{
|
184997
|
-
prop: "
|
184998
|
-
label: "
|
184999
|
-
|
185000
|
-
|
184715
|
+
prop: "method",
|
184716
|
+
label: "请求方式",
|
184717
|
+
type: "string",
|
184718
|
+
op: [
|
184719
|
+
{ label: " POST", value: "post" },
|
184720
|
+
{ label: "GET", value: "get" },
|
184721
|
+
{ label: "DELETE", value: "delete" },
|
184722
|
+
{ label: "PUT", value: "put" }
|
184723
|
+
],
|
185001
184724
|
el: "hs-select",
|
185002
|
-
cel: "hs-option"
|
185003
|
-
op: configElList.value
|
184725
|
+
cel: "hs-option"
|
185004
184726
|
},
|
185005
184727
|
{
|
185006
|
-
prop: "
|
185007
|
-
label: "
|
184728
|
+
prop: "proxy",
|
184729
|
+
label: "代理",
|
184730
|
+
type: "string",
|
184731
|
+
el: "hs-input"
|
184732
|
+
},
|
184733
|
+
// {
|
184734
|
+
// prop: 'dictCode',
|
184735
|
+
// label: '字典code',
|
184736
|
+
// tooltip: '字典code',
|
184737
|
+
// type: 'string',
|
184738
|
+
// el: 'hs-input',
|
184739
|
+
// },
|
184740
|
+
{
|
184741
|
+
prop: "permissionsDict",
|
184742
|
+
label: "权限字典项",
|
184743
|
+
tooltip: "权限字典项",
|
184744
|
+
type: "string",
|
185008
184745
|
el: "hs-input"
|
185009
184746
|
},
|
185010
184747
|
{
|
185011
|
-
prop: "
|
185012
|
-
label: "
|
184748
|
+
prop: "multiple",
|
184749
|
+
label: "是否多选",
|
184750
|
+
tooltip: "是否多选",
|
184751
|
+
type: "boolean",
|
185013
184752
|
el: "hs-switch"
|
185014
184753
|
},
|
185015
184754
|
{
|
185016
|
-
prop: "
|
185017
|
-
label: "
|
185018
|
-
tooltip: "
|
184755
|
+
prop: "disabled",
|
184756
|
+
label: "是否禁用",
|
184757
|
+
tooltip: "是否禁用",
|
184758
|
+
type: "boolean",
|
185019
184759
|
el: "hs-switch"
|
185020
184760
|
},
|
185021
184761
|
{
|
185022
|
-
prop: "
|
185023
|
-
label: "
|
184762
|
+
prop: "value-key",
|
184763
|
+
label: "value 唯一标识",
|
184764
|
+
tooltip: "作为 value 唯一标识的键名,绑定值为对象类型时必填",
|
184765
|
+
type: "string",
|
184766
|
+
el: "hs-input"
|
184767
|
+
},
|
184768
|
+
{
|
184769
|
+
prop: "placeholder",
|
184770
|
+
label: "占位符",
|
184771
|
+
tooltip: "占位符,默认为“Select”",
|
184772
|
+
type: "string",
|
184773
|
+
el: "hs-input"
|
184774
|
+
},
|
184775
|
+
{
|
184776
|
+
prop: "size",
|
184777
|
+
label: "输入框尺寸",
|
184778
|
+
tooltip: "输入框尺寸",
|
184779
|
+
type: "enum",
|
184780
|
+
el: "hs-select",
|
184781
|
+
op: [
|
184782
|
+
{ label: "large", value: "large" },
|
184783
|
+
{ label: "default", value: "default" },
|
184784
|
+
{ label: "small", value: "small" }
|
184785
|
+
],
|
184786
|
+
cel: "hs-option"
|
184787
|
+
},
|
184788
|
+
{
|
184789
|
+
prop: "clearable",
|
184790
|
+
label: "是否可以清空",
|
184791
|
+
tooltip: "是否可以清空选项",
|
184792
|
+
type: "boolean",
|
185024
184793
|
el: "hs-switch"
|
185025
184794
|
},
|
185026
184795
|
{
|
185027
|
-
prop: "
|
185028
|
-
label: "
|
185029
|
-
|
185030
|
-
|
184796
|
+
prop: "collapse-tags",
|
184797
|
+
label: "值按文字展示",
|
184798
|
+
tooltip: "多选时是否将选中值按文字的形式展示",
|
184799
|
+
type: "boolean",
|
184800
|
+
el: "hs-switch"
|
185031
184801
|
},
|
185032
184802
|
{
|
185033
|
-
prop: "
|
185034
|
-
label: "
|
185035
|
-
tooltip: "
|
184803
|
+
prop: "collapse-tags-tooltip",
|
184804
|
+
label: "是否显示所选",
|
184805
|
+
tooltip: "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",
|
184806
|
+
type: "boolean",
|
184807
|
+
el: "hs-switch"
|
184808
|
+
},
|
184809
|
+
{
|
184810
|
+
prop: "multiple-limit",
|
184811
|
+
label: "最多可选数",
|
184812
|
+
tooltip: "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",
|
184813
|
+
type: "number",
|
184814
|
+
el: "hs-input-number"
|
184815
|
+
},
|
184816
|
+
{
|
184817
|
+
prop: "name",
|
184818
|
+
label: "原生name属性",
|
184819
|
+
tooltip: "Select 输入框的原生 name 属性",
|
184820
|
+
type: "string",
|
184821
|
+
el: "hs-input"
|
184822
|
+
},
|
184823
|
+
{
|
184824
|
+
prop: "effect",
|
184825
|
+
label: "tooltip 主题",
|
184826
|
+
tooltip: "tooltip 主题,内置了 dark / light 两种",
|
184827
|
+
type: "enum / string",
|
185036
184828
|
el: "hs-select",
|
185037
|
-
cel: "hs-option",
|
185038
|
-
show: true,
|
185039
184829
|
op: [
|
185040
|
-
{
|
185041
|
-
|
185042
|
-
|
185043
|
-
|
185044
|
-
|
185045
|
-
|
185046
|
-
|
185047
|
-
|
185048
|
-
|
185049
|
-
|
185050
|
-
|
185051
|
-
|
185052
|
-
|
185053
|
-
|
185054
|
-
|
185055
|
-
|
185056
|
-
|
185057
|
-
|
185058
|
-
|
185059
|
-
|
185060
|
-
|
185061
|
-
|
185062
|
-
|
185063
|
-
|
185064
|
-
|
185065
|
-
|
185066
|
-
|
185067
|
-
|
185068
|
-
|
185069
|
-
|
185070
|
-
|
185071
|
-
|
185072
|
-
|
185073
|
-
|
185074
|
-
|
185075
|
-
|
185076
|
-
|
185077
|
-
|
185078
|
-
|
185079
|
-
|
185080
|
-
|
185081
|
-
|
185082
|
-
|
185083
|
-
|
185084
|
-
|
185085
|
-
|
185086
|
-
|
185087
|
-
|
185088
|
-
|
184830
|
+
{ label: "dark", value: "dark" },
|
184831
|
+
{ label: "light", value: "light" }
|
184832
|
+
],
|
184833
|
+
cel: "hs-option"
|
184834
|
+
},
|
184835
|
+
{
|
184836
|
+
prop: "autocomplete",
|
184837
|
+
label: "autocomplete",
|
184838
|
+
tooltip: "Select 输入框的原生 autocomplete 属性",
|
184839
|
+
type: "string",
|
184840
|
+
el: "hs-input"
|
184841
|
+
},
|
184842
|
+
{
|
184843
|
+
prop: "filterable",
|
184844
|
+
label: "是否可筛选",
|
184845
|
+
tooltip: "Select 组件是否可筛选",
|
184846
|
+
type: "boolean",
|
184847
|
+
el: "hs-switch"
|
184848
|
+
},
|
184849
|
+
{
|
184850
|
+
prop: "allow-create",
|
184851
|
+
label: "允许创建条目",
|
184852
|
+
tooltip: "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",
|
184853
|
+
type: "boolean",
|
184854
|
+
el: "hs-switch"
|
184855
|
+
},
|
184856
|
+
{
|
184857
|
+
prop: "filter-method",
|
184858
|
+
label: "筛选方法",
|
184859
|
+
tooltip: "自定义筛选方法",
|
184860
|
+
type: "Function",
|
184861
|
+
el: "hs-input"
|
184862
|
+
},
|
184863
|
+
{
|
184864
|
+
prop: "remote",
|
184865
|
+
label: "是否远程加载",
|
184866
|
+
tooltip: "其中的选项是否从服务器远程加载",
|
184867
|
+
type: "boolean",
|
184868
|
+
el: "hs-switch"
|
184869
|
+
},
|
184870
|
+
{
|
184871
|
+
prop: "remote-method",
|
184872
|
+
label: "远程搜索方法",
|
184873
|
+
tooltip: "自定义远程搜索方法",
|
184874
|
+
type: "Function",
|
184875
|
+
el: "hs-input"
|
184876
|
+
},
|
184877
|
+
{
|
184878
|
+
prop: "remote-show-suffix",
|
184879
|
+
label: "远程搜索图标",
|
184880
|
+
tooltip: "远程搜索方法显示后缀图标",
|
184881
|
+
type: "boolean",
|
184882
|
+
el: "hs-switch"
|
184883
|
+
},
|
184884
|
+
{
|
184885
|
+
prop: "loading",
|
184886
|
+
label: "是否正在获取",
|
184887
|
+
tooltip: "是否正在从远程获取数据",
|
184888
|
+
type: "boolean",
|
184889
|
+
el: "hs-switch"
|
184890
|
+
},
|
184891
|
+
{
|
184892
|
+
prop: "loading-text",
|
184893
|
+
label: "加载时文本",
|
184894
|
+
tooltip: "从服务器加载数据时显示的文本,默认为“Loading”",
|
184895
|
+
type: "string",
|
184896
|
+
el: "hs-input"
|
184897
|
+
},
|
184898
|
+
{
|
184899
|
+
prop: "no-match-text",
|
184900
|
+
label: "无匹配时显示",
|
184901
|
+
tooltip: "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",
|
184902
|
+
type: "string",
|
184903
|
+
el: "hs-input"
|
184904
|
+
},
|
184905
|
+
{
|
184906
|
+
prop: "no-data-text",
|
184907
|
+
label: "无选项时显示",
|
184908
|
+
tooltip: "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",
|
184909
|
+
type: "string",
|
184910
|
+
el: "hs-input"
|
184911
|
+
},
|
184912
|
+
{
|
184913
|
+
prop: "popper-class",
|
184914
|
+
label: "下拉菜单类名",
|
184915
|
+
tooltip: "选择器下拉菜单的自定义类名",
|
184916
|
+
type: "string",
|
184917
|
+
el: "hs-input"
|
184918
|
+
},
|
184919
|
+
{
|
184920
|
+
prop: "reserve-keyword",
|
184921
|
+
label: "保留关键词",
|
184922
|
+
tooltip: "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",
|
184923
|
+
type: "boolean",
|
184924
|
+
el: "hs-switch"
|
184925
|
+
},
|
184926
|
+
{
|
184927
|
+
prop: "default-first-option",
|
184928
|
+
label: "回车选择",
|
184929
|
+
tooltip: "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",
|
184930
|
+
type: "boolean",
|
184931
|
+
el: "hs-switch"
|
184932
|
+
},
|
184933
|
+
{
|
184934
|
+
prop: "teleported",
|
184935
|
+
label: "是否插入至body",
|
184936
|
+
tooltip: "是否将下拉列表插入至 body 元素",
|
184937
|
+
type: "boolean",
|
184938
|
+
el: "hs-switch"
|
184939
|
+
},
|
184940
|
+
{
|
184941
|
+
prop: "persistent",
|
184942
|
+
label: "选择器未被激活",
|
184943
|
+
tooltip: "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",
|
184944
|
+
type: "boolean",
|
184945
|
+
el: "hs-switch"
|
184946
|
+
},
|
184947
|
+
{
|
184948
|
+
prop: "automatic-dropdown",
|
184949
|
+
label: "自动弹出选项",
|
184950
|
+
tooltip: "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",
|
184951
|
+
type: "boolean",
|
184952
|
+
el: "hs-switch"
|
184953
|
+
},
|
184954
|
+
{
|
184955
|
+
prop: "clear-icon",
|
184956
|
+
label: "清除图标",
|
184957
|
+
tooltip: "自定义清除图标",
|
184958
|
+
type: "string / object",
|
184959
|
+
el: "hs-input"
|
184960
|
+
},
|
184961
|
+
{
|
184962
|
+
prop: "fit-input-width",
|
184963
|
+
label: "下拉框宽度",
|
184964
|
+
tooltip: "下拉框的宽度是否与输入框相同",
|
184965
|
+
type: "boolean",
|
184966
|
+
el: "hs-switch"
|
184967
|
+
},
|
184968
|
+
{
|
184969
|
+
prop: "suffix-icon",
|
184970
|
+
label: "后缀图标",
|
184971
|
+
tooltip: "自定义后缀图标组件",
|
184972
|
+
type: "string / object",
|
184973
|
+
el: "hs-input"
|
184974
|
+
},
|
184975
|
+
{
|
184976
|
+
prop: "suffix-transition deprecated",
|
184977
|
+
label: "下拉图标动画",
|
184978
|
+
tooltip: "下拉菜单显示/消失时后缀图标的动画",
|
184979
|
+
type: "boolean",
|
184980
|
+
el: "hs-switch"
|
184981
|
+
},
|
184982
|
+
{
|
184983
|
+
prop: "tag-type",
|
184984
|
+
label: "标签类型",
|
184985
|
+
tooltip: "标签类型",
|
184986
|
+
type: "enum",
|
184987
|
+
el: "hs-select",
|
184988
|
+
op: [
|
184989
|
+
{ label: "success", value: "success" },
|
184990
|
+
{ label: "info", value: "info" },
|
184991
|
+
{ label: "warning", value: "warning" },
|
184992
|
+
{ label: "danger", value: "danger" }
|
184993
|
+
],
|
184994
|
+
cel: "hs-option"
|
184995
|
+
},
|
184996
|
+
{
|
184997
|
+
prop: "validate-event",
|
184998
|
+
label: "表单验证",
|
184999
|
+
tooltip: "是否触发表单验证",
|
185000
|
+
type: "boolean",
|
185001
|
+
el: "hs-switch"
|
185002
|
+
},
|
185003
|
+
{
|
185004
|
+
prop: "placement",
|
185005
|
+
label: "下拉框出现位置",
|
185006
|
+
tooltip: "下拉框出现的位置",
|
185007
|
+
type: "enum",
|
185008
|
+
el: "hs-select",
|
185009
|
+
op: [
|
185010
|
+
{ label: "top", value: "top" },
|
185011
|
+
{ label: "top-start", value: "top-start" },
|
185012
|
+
{ label: "top-end", value: "top-end" },
|
185013
|
+
{ label: "bottom", value: "bottom" },
|
185014
|
+
{ label: "bottom-start", value: "bottom-start" },
|
185015
|
+
{ label: "bottom-end", value: "bottom-end" },
|
185016
|
+
{ label: "left", value: "left" },
|
185017
|
+
{ label: "left-start", value: "left-start" },
|
185018
|
+
{ label: "left-end", value: "left-end" },
|
185019
|
+
{ label: "right", value: "right" },
|
185020
|
+
{ label: "right-start", value: "right-start" },
|
185021
|
+
{ label: "right-end", value: "right-end" }
|
185022
|
+
],
|
185023
|
+
cel: "hs-option"
|
185024
|
+
},
|
185025
|
+
{
|
185026
|
+
prop: "max-collapse-tags",
|
185027
|
+
label: "Tag最大数量",
|
185028
|
+
tooltip: "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",
|
185029
|
+
type: "number",
|
185030
|
+
el: "hs-input-number"
|
185031
|
+
},
|
185032
|
+
{
|
185033
|
+
prop: "popper-options",
|
185034
|
+
label: "popper参数",
|
185035
|
+
tooltip: "popper.js 参数",
|
185036
|
+
type: "objectrefer to popper.js doc",
|
185037
|
+
el: "hs-input"
|
185038
|
+
},
|
185039
|
+
{
|
185040
|
+
prop: "aria-label",
|
185041
|
+
label: "aria-label",
|
185042
|
+
tooltip: "等价于原生 input aria-label 属性",
|
185043
|
+
type: "string",
|
185044
|
+
el: "hs-input"
|
185045
|
+
}
|
185046
|
+
]
|
185089
185047
|
},
|
185090
|
-
|
185091
|
-
|
185092
|
-
|
185093
|
-
|
185094
|
-
|
185095
|
-
|
185096
|
-
|
185097
|
-
|
185098
|
-
|
185099
|
-
|
185100
|
-
|
185101
|
-
|
185102
|
-
|
185103
|
-
|
185104
|
-
|
185105
|
-
|
185048
|
+
{
|
185049
|
+
prop: "groupAttrs",
|
185050
|
+
label: "optionGroupAttrs",
|
185051
|
+
tooltip: "optionGroupAttrs",
|
185052
|
+
type: "object",
|
185053
|
+
el: "title",
|
185054
|
+
children: [
|
185055
|
+
{
|
185056
|
+
prop: "isGroupEnabled",
|
185057
|
+
label: "是否启用分组",
|
185058
|
+
tooltip: "是否启用分组",
|
185059
|
+
type: "boolean",
|
185060
|
+
el: "hs-switch"
|
185061
|
+
},
|
185062
|
+
{
|
185063
|
+
prop: "label",
|
185064
|
+
label: "分组的名称",
|
185065
|
+
tooltip: "分组的名称",
|
185066
|
+
type: "string",
|
185067
|
+
el: "hs-input"
|
185068
|
+
},
|
185069
|
+
{
|
185070
|
+
prop: "disabled",
|
185071
|
+
label: "是否禁用分组",
|
185072
|
+
tooltip: "是否将该分组下所有选项置为禁用",
|
185073
|
+
type: "string",
|
185074
|
+
el: "hs-switch"
|
185106
185075
|
}
|
185107
|
-
|
185076
|
+
]
|
185108
185077
|
},
|
185109
|
-
|
185110
|
-
|
185111
|
-
|
185112
|
-
|
185113
|
-
|
185114
|
-
|
185115
|
-
|
185116
|
-
|
185078
|
+
{
|
185079
|
+
prop: "optionAttrs",
|
185080
|
+
label: "optionAttrs",
|
185081
|
+
tooltip: "optionAttrs",
|
185082
|
+
type: "object",
|
185083
|
+
el: "title",
|
185084
|
+
children: [
|
185085
|
+
{
|
185086
|
+
prop: "value",
|
185087
|
+
label: "选项的值",
|
185088
|
+
tooltip: "选项的值",
|
185089
|
+
type: "string",
|
185090
|
+
el: "hs-input"
|
185091
|
+
},
|
185092
|
+
{
|
185093
|
+
prop: "label",
|
185094
|
+
label: "选项的标签",
|
185095
|
+
tooltip: "选项的标签,若不设置则默认与value相同",
|
185096
|
+
type: "string",
|
185097
|
+
el: "hs-input"
|
185098
|
+
},
|
185099
|
+
{
|
185100
|
+
prop: "disabled",
|
185101
|
+
label: "是否禁用选项",
|
185102
|
+
tooltip: "是否禁用该选项",
|
185103
|
+
type: "string",
|
185104
|
+
el: "hs-switch"
|
185117
185105
|
}
|
185118
|
-
|
185106
|
+
]
|
185107
|
+
},
|
185108
|
+
{
|
185109
|
+
prop: "rules",
|
185110
|
+
label: "rules",
|
185111
|
+
tooltip: "rules",
|
185112
|
+
type: "object",
|
185113
|
+
el: "title",
|
185114
|
+
children: [
|
185115
|
+
{
|
185116
|
+
prop: "required",
|
185117
|
+
label: "是否必填",
|
185118
|
+
tooltip: "是否必填",
|
185119
|
+
type: "boolean",
|
185120
|
+
el: "hs-switch"
|
185121
|
+
},
|
185122
|
+
// 必填项规则
|
185123
|
+
{
|
185124
|
+
prop: "rules",
|
185125
|
+
label: "必填项规则",
|
185126
|
+
tooltip: "必填项规则",
|
185127
|
+
type: "array",
|
185128
|
+
el: "hs-input",
|
185129
|
+
attrs: {
|
185130
|
+
type: "textarea"
|
185131
|
+
}
|
185132
|
+
}
|
185133
|
+
]
|
185119
185134
|
}
|
185120
|
-
|
185121
|
-
const
|
185122
|
-
|
185123
|
-
|
185124
|
-
|
185125
|
-
|
185126
|
-
|
185127
|
-
|
185128
|
-
|
185129
|
-
|
185130
|
-
|
185131
|
-
|
185132
|
-
|
185133
|
-
|
185134
|
-
|
185135
|
-
|
185136
|
-
|
185137
|
-
|
185138
|
-
|
185139
|
-
|
185140
|
-
|
185141
|
-
|
185142
|
-
|
185143
|
-
|
185144
|
-
|
185145
|
-
|
185146
|
-
|
185147
|
-
|
185148
|
-
|
185149
|
-
|
185150
|
-
|
185151
|
-
|
185152
|
-
|
185153
|
-
|
185154
|
-
|
185155
|
-
|
185156
|
-
|
185157
|
-
|
185158
|
-
|
185159
|
-
|
185160
|
-
|
185161
|
-
|
185162
|
-
|
185163
|
-
|
185164
|
-
|
185165
|
-
|
185166
|
-
|
185167
|
-
|
185168
|
-
|
185169
|
-
|
185170
|
-
|
185171
|
-
|
185172
|
-
|
185173
|
-
|
185174
|
-
|
185175
|
-
|
185176
|
-
|
185177
|
-
|
185178
|
-
|
185179
|
-
data: data2
|
185180
|
-
});
|
185181
|
-
};
|
185182
|
-
const postCopyMenuInfo = (data2 = {}) => {
|
185183
|
-
data2 = assign$3(data2, "复制菜单下的配置信息");
|
185184
|
-
return request({
|
185185
|
-
url: "/scmp-web/pri/system/copy_menu_info",
|
185186
|
-
method: "post",
|
185187
|
-
data: data2
|
185188
|
-
});
|
185189
|
-
};
|
185190
|
-
function useSystemController() {
|
185191
|
-
return {
|
185192
|
-
getAllSystemInfo,
|
185193
|
-
getSystemInfoPageList,
|
185194
|
-
postDeleteSystemInfo,
|
185195
|
-
postUpdateLockStatus,
|
185196
|
-
postCopySystemInfo,
|
185197
|
-
postCopyMenuInfo
|
185198
|
-
};
|
185199
|
-
}
|
185200
|
-
const assign$2 = (params, title) => {
|
185201
|
-
return Object.assign(params, { other_log_info: { title } });
|
185202
|
-
};
|
185203
|
-
const postAddField = (data2 = {}) => {
|
185204
|
-
data2 = assign$2(data2, "保存新表格字段设置");
|
185205
|
-
return request({
|
185206
|
-
url: "/scmp-web/pri/field_config/add_field",
|
185207
|
-
method: "post",
|
185208
|
-
data: data2
|
185209
|
-
});
|
185210
|
-
};
|
185211
|
-
const getFieldByMenu = (params = {}) => {
|
185212
|
-
params = assign$2(params, "根据菜单id查询字段信息");
|
185213
|
-
return request({
|
185214
|
-
url: "/scmp-web/pri/field_config/get_field_by_menu",
|
185135
|
+
];
|
185136
|
+
const selectAttrConfigMap = {
|
185137
|
+
// 默认配置项
|
185138
|
+
attrs: {
|
185139
|
+
size: "default",
|
185140
|
+
multiple: false,
|
185141
|
+
// 是否多选
|
185142
|
+
disabled: false,
|
185143
|
+
// 是否禁用
|
185144
|
+
"value-key": "id",
|
185145
|
+
// value 唯一标识
|
185146
|
+
clearable: true,
|
185147
|
+
// 是否可以清空
|
185148
|
+
"collapse-tags": false,
|
185149
|
+
// 值按文字展示
|
185150
|
+
"collapse-tags-tooltip": false,
|
185151
|
+
// 是否显示所选
|
185152
|
+
"multiple-limit": 0,
|
185153
|
+
// 最多可选数
|
185154
|
+
effect: "light",
|
185155
|
+
// tooltip 主题
|
185156
|
+
autocomplete: "off",
|
185157
|
+
// autocomplete
|
185158
|
+
filterable: true,
|
185159
|
+
// 是否可筛选
|
185160
|
+
"allow-create": false,
|
185161
|
+
// 允许创建条目
|
185162
|
+
remote: false,
|
185163
|
+
// 是否远程加载
|
185164
|
+
"remote-show-suffix": false,
|
185165
|
+
// 远程搜索图标
|
185166
|
+
loading: false,
|
185167
|
+
// 是否正在获取
|
185168
|
+
"reserve-keyword": true,
|
185169
|
+
// 保留关键词
|
185170
|
+
"default-first-option": false,
|
185171
|
+
// 是否在输入框按下回车时,选择第一个匹配项
|
185172
|
+
teleported: true,
|
185173
|
+
// 是否插入至body
|
185174
|
+
persistent: true,
|
185175
|
+
// 选择器未被激活
|
185176
|
+
"automatic-dropdown": false,
|
185177
|
+
// 自动弹出选项
|
185178
|
+
"clear-icon": "",
|
185179
|
+
// 清除图标
|
185180
|
+
"fit-input-width": false,
|
185181
|
+
// 下拉框宽度
|
185182
|
+
"suffix-icon": "",
|
185183
|
+
// 后缀图标
|
185184
|
+
"tag-type": "info",
|
185185
|
+
// 标签类型
|
185186
|
+
"validate-event": true,
|
185187
|
+
// 表单验证
|
185188
|
+
placement: "bottom-start",
|
185189
|
+
// 下拉框出现的位置
|
185190
|
+
"max-collapse-tags": 1,
|
185191
|
+
// 需要显示的 Tag 的最大数量
|
185192
|
+
options: "string=",
|
185193
|
+
//
|
185215
185194
|
method: "get",
|
185216
|
-
|
185217
|
-
|
185195
|
+
// 请求方式
|
185196
|
+
proxy: "",
|
185197
|
+
// 代理
|
185198
|
+
params: "",
|
185199
|
+
// 请求参数
|
185200
|
+
placeholder: "请选择"
|
185201
|
+
// 占位符
|
185202
|
+
},
|
185203
|
+
groupAttrs: {
|
185204
|
+
disabled: false,
|
185205
|
+
// 是否禁用分组
|
185206
|
+
isGroupEnabled: false
|
185207
|
+
// 是否启用分组
|
185208
|
+
},
|
185209
|
+
optionAttrs: {
|
185210
|
+
value: "dict_child_code",
|
185211
|
+
label: "dict_child_name",
|
185212
|
+
disabled: false
|
185213
|
+
// 是否禁用该选项
|
185214
|
+
},
|
185215
|
+
rules: {
|
185216
|
+
required: false,
|
185217
|
+
rules: ""
|
185218
|
+
}
|
185218
185219
|
};
|
185219
|
-
const
|
185220
|
-
|
185221
|
-
|
185222
|
-
|
185223
|
-
|
185224
|
-
|
185220
|
+
const datePickerAttrConfig = [
|
185221
|
+
{
|
185222
|
+
prop: "attrs",
|
185223
|
+
label: "datePickerAttrs",
|
185224
|
+
tooltip: "datePickerAttrs",
|
185225
|
+
type: "object",
|
185226
|
+
el: "title",
|
185227
|
+
children: [
|
185228
|
+
{
|
185229
|
+
prop: "defaultValue",
|
185230
|
+
label: "默认值",
|
185231
|
+
tooltip: "默认值",
|
185232
|
+
type: "number / string / object",
|
185233
|
+
el: "hs-input"
|
185234
|
+
},
|
185235
|
+
{
|
185236
|
+
prop: "readonly",
|
185237
|
+
label: "只读",
|
185238
|
+
tooltip: "只读",
|
185239
|
+
type: "boolean",
|
185240
|
+
el: "hs-switch"
|
185241
|
+
},
|
185242
|
+
{
|
185243
|
+
prop: "disabled",
|
185244
|
+
label: "禁用",
|
185245
|
+
tooltip: "禁用",
|
185246
|
+
type: "boolean",
|
185247
|
+
el: "hs-switch"
|
185248
|
+
},
|
185249
|
+
{
|
185250
|
+
prop: "size",
|
185251
|
+
label: "输入框尺寸",
|
185252
|
+
tooltip: "输入框尺寸",
|
185253
|
+
type: "enum",
|
185254
|
+
el: "hs-select",
|
185255
|
+
op: [
|
185256
|
+
{ label: "large", value: "large" },
|
185257
|
+
{ label: "default", value: "default" },
|
185258
|
+
{ label: "small", value: "small" }
|
185259
|
+
],
|
185260
|
+
cel: "hs-option"
|
185261
|
+
},
|
185262
|
+
{
|
185263
|
+
prop: "editable",
|
185264
|
+
label: "文本框可输入",
|
185265
|
+
tooltip: "文本框可输入",
|
185266
|
+
type: "boolean",
|
185267
|
+
el: "hs-switch"
|
185268
|
+
},
|
185269
|
+
{
|
185270
|
+
prop: "clearable",
|
185271
|
+
label: "清除按钮",
|
185272
|
+
tooltip: "是否显示清除按钮",
|
185273
|
+
type: "boolean",
|
185274
|
+
el: "hs-switch"
|
185275
|
+
},
|
185276
|
+
{
|
185277
|
+
prop: "placeholder",
|
185278
|
+
label: "占位符",
|
185279
|
+
tooltip: "非范围选择时的占位内容",
|
185280
|
+
type: "string",
|
185281
|
+
el: "hs-input"
|
185282
|
+
},
|
185283
|
+
{
|
185284
|
+
prop: "start-placeholder",
|
185285
|
+
label: "开始日期占位符",
|
185286
|
+
tooltip: "范围选择时开始日期的占位内容",
|
185287
|
+
type: "string",
|
185288
|
+
el: "hs-input"
|
185289
|
+
},
|
185290
|
+
{
|
185291
|
+
prop: "end-placeholder",
|
185292
|
+
label: "结束日期占位符",
|
185293
|
+
tooltip: "范围选择时结束日期的占位内容",
|
185294
|
+
type: "string",
|
185295
|
+
el: "hs-input"
|
185296
|
+
},
|
185297
|
+
{
|
185298
|
+
prop: "type",
|
185299
|
+
label: "显示类型",
|
185300
|
+
tooltip: "显示类型",
|
185301
|
+
type: "enum",
|
185302
|
+
el: "hs-select",
|
185303
|
+
op: [
|
185304
|
+
{ label: "year", value: "year" },
|
185305
|
+
{ label: "month", value: "month" },
|
185306
|
+
{ label: "date", value: "date" },
|
185307
|
+
{ label: "dates", value: "dates" },
|
185308
|
+
{ label: "week", value: "week" },
|
185309
|
+
{ label: "datetime", value: "datetime" },
|
185310
|
+
{ label: "datetimerange", value: "datetimerange" },
|
185311
|
+
{ label: "daterange", value: "daterange" },
|
185312
|
+
{ label: "monthrange", value: "monthrange" }
|
185313
|
+
],
|
185314
|
+
cel: "hs-option"
|
185315
|
+
},
|
185316
|
+
{
|
185317
|
+
prop: "format",
|
185318
|
+
label: "输入框中的格式",
|
185319
|
+
tooltip: "显示在输入框中的格式",
|
185320
|
+
type: "参见 date formats",
|
185321
|
+
el: "hs-input"
|
185322
|
+
},
|
185323
|
+
{
|
185324
|
+
prop: "popper-class",
|
185325
|
+
label: "下拉框的类名",
|
185326
|
+
tooltip: "DatePicker 下拉框的类名",
|
185327
|
+
type: "string",
|
185328
|
+
el: "hs-input"
|
185329
|
+
},
|
185330
|
+
{
|
185331
|
+
prop: "popper-options",
|
185332
|
+
label: "自定义popper",
|
185333
|
+
tooltip: "自定义 popper 选项,更多请参考 popper.js",
|
185334
|
+
type: "object",
|
185335
|
+
el: "hs-input"
|
185336
|
+
},
|
185337
|
+
{
|
185338
|
+
prop: "range-separator",
|
185339
|
+
label: "分隔符",
|
185340
|
+
tooltip: "选择范围时的分隔符",
|
185341
|
+
type: "string",
|
185342
|
+
el: "hs-input"
|
185343
|
+
},
|
185344
|
+
{
|
185345
|
+
prop: "default-time",
|
185346
|
+
label: "default-time",
|
185347
|
+
tooltip: "示例:functionBody=(function() {return [new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 1, 1, 23, 59, 59)]})()",
|
185348
|
+
type: "object",
|
185349
|
+
el: "hs-input"
|
185350
|
+
},
|
185351
|
+
{
|
185352
|
+
prop: "value-format",
|
185353
|
+
label: "绑定值的格式",
|
185354
|
+
tooltip: "可选,绑定值的格式。 不指定则绑定值为 Date 对象",
|
185355
|
+
type: "参见 date formats",
|
185356
|
+
el: "hs-input"
|
185357
|
+
},
|
185358
|
+
{
|
185359
|
+
prop: "id",
|
185360
|
+
label: "id",
|
185361
|
+
tooltip: "等价于原生 input id 属性",
|
185362
|
+
type: "string / object",
|
185363
|
+
el: "hs-input"
|
185364
|
+
},
|
185365
|
+
{
|
185366
|
+
prop: "name",
|
185367
|
+
label: "name",
|
185368
|
+
tooltip: "等价于原生 input name 属性",
|
185369
|
+
type: "string / object",
|
185370
|
+
el: "hs-input"
|
185371
|
+
},
|
185372
|
+
{
|
185373
|
+
prop: "unlink-panels",
|
185374
|
+
label: "unlink-panels",
|
185375
|
+
tooltip: "在范围选择器里取消两个日期面板之间的联动",
|
185376
|
+
type: "boolean",
|
185377
|
+
el: "hs-switch"
|
185378
|
+
},
|
185379
|
+
{
|
185380
|
+
prop: "prefix-icon",
|
185381
|
+
label: "前缀图标",
|
185382
|
+
tooltip: "自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",
|
185383
|
+
type: "string / object",
|
185384
|
+
el: "hs-input"
|
185385
|
+
},
|
185386
|
+
{
|
185387
|
+
prop: "clear-icon",
|
185388
|
+
label: "清除图标",
|
185389
|
+
tooltip: "清除图标",
|
185390
|
+
type: "string / object",
|
185391
|
+
el: "hs-input"
|
185392
|
+
},
|
185393
|
+
{
|
185394
|
+
prop: "validate-event",
|
185395
|
+
label: "是否表单验证",
|
185396
|
+
tooltip: "是否触发表单验证",
|
185397
|
+
type: "boolean",
|
185398
|
+
el: "hs-switch"
|
185399
|
+
},
|
185400
|
+
{
|
185401
|
+
prop: "disabled-date",
|
185402
|
+
label: "disabled-date",
|
185403
|
+
tooltip: "示例:functionBody=function(time){const now = new Date();return time.getTime() < new Date(new Date().setHours(0, 0, 0, 0)).getTime()}",
|
185404
|
+
type: "Function",
|
185405
|
+
el: "hs-input"
|
185406
|
+
},
|
185407
|
+
{
|
185408
|
+
prop: "disabled-hours",
|
185409
|
+
label: "disabled-hours",
|
185410
|
+
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 24; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a; }",
|
185411
|
+
type: "Function",
|
185412
|
+
el: "hs-input"
|
185413
|
+
},
|
185414
|
+
{
|
185415
|
+
prop: "disabled-minutes",
|
185416
|
+
label: "disabled-minutes",
|
185417
|
+
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 60; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a;}",
|
185418
|
+
type: "Function",
|
185419
|
+
el: "hs-input"
|
185420
|
+
},
|
185421
|
+
{
|
185422
|
+
prop: "disabled-seconds",
|
185423
|
+
label: "disabled-seconds",
|
185424
|
+
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 60; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a;}",
|
185425
|
+
type: "Function",
|
185426
|
+
el: "hs-input"
|
185427
|
+
},
|
185428
|
+
{
|
185429
|
+
prop: "shortcuts",
|
185430
|
+
label: "设置快捷选项",
|
185431
|
+
tooltip: "设置快捷选项,需要传入数组对象",
|
185432
|
+
type: "object",
|
185433
|
+
el: "hs-input"
|
185434
|
+
},
|
185435
|
+
{
|
185436
|
+
prop: "cell-class-name",
|
185437
|
+
label: "设置类名",
|
185438
|
+
tooltip: "设置自定义类名",
|
185439
|
+
type: "Function",
|
185440
|
+
el: "hs-input"
|
185441
|
+
},
|
185442
|
+
{
|
185443
|
+
prop: "teleported",
|
185444
|
+
label: "是否插入至body",
|
185445
|
+
tooltip: "是否将 date-picker 的下拉列表插入至 body 元素",
|
185446
|
+
type: "boolean",
|
185447
|
+
el: "hs-switch"
|
185448
|
+
}
|
185449
|
+
]
|
185450
|
+
},
|
185451
|
+
{
|
185452
|
+
prop: "rules",
|
185453
|
+
label: "rules",
|
185454
|
+
tooltip: "rules",
|
185455
|
+
type: "object",
|
185456
|
+
el: "title",
|
185457
|
+
children: [
|
185458
|
+
{
|
185459
|
+
prop: "required",
|
185460
|
+
label: "是否必填",
|
185461
|
+
tooltip: "是否必填",
|
185462
|
+
type: "boolean",
|
185463
|
+
el: "hs-switch"
|
185464
|
+
},
|
185465
|
+
// 必填项规则
|
185466
|
+
{
|
185467
|
+
prop: "rules",
|
185468
|
+
label: "必填项规则",
|
185469
|
+
tooltip: "必填项规则",
|
185470
|
+
type: "array",
|
185471
|
+
el: "hs-input",
|
185472
|
+
attrs: {
|
185473
|
+
type: "textarea"
|
185474
|
+
}
|
185475
|
+
}
|
185476
|
+
]
|
185477
|
+
}
|
185478
|
+
];
|
185479
|
+
const datePickerAttrConfigMap = {
|
185480
|
+
// 默认配置项
|
185481
|
+
attrs: {
|
185482
|
+
size: "default",
|
185483
|
+
readonly: false,
|
185484
|
+
// 是否只读
|
185485
|
+
disabled: false,
|
185486
|
+
// 是否禁用
|
185487
|
+
editable: true,
|
185488
|
+
// 文本框可输入
|
185489
|
+
clearable: true,
|
185490
|
+
// 是否显示清除按钮
|
185491
|
+
type: "date",
|
185492
|
+
// 显示类型
|
185493
|
+
"range-separator": "-",
|
185494
|
+
// 选择范围时的分隔符
|
185495
|
+
"unlink-panels": false,
|
185496
|
+
// 在范围选择器里取消两个日期面板之间的联动
|
185497
|
+
"clear-icon": "",
|
185498
|
+
// 清除图标
|
185499
|
+
"validate-event": true,
|
185500
|
+
// 是否触发表单验证
|
185501
|
+
teleported: true,
|
185502
|
+
// 是否将 date-picker 的下拉列表插入至 body 元素
|
185503
|
+
placeholder: "请选择",
|
185504
|
+
// 占位符
|
185505
|
+
format: "YYYY-MM-DD HH:mm:ss",
|
185506
|
+
"value-format": "YYYY-MM-DD HH:mm:ss"
|
185507
|
+
},
|
185508
|
+
rules: {
|
185509
|
+
required: false,
|
185510
|
+
rules: ""
|
185511
|
+
}
|
185512
|
+
};
|
185513
|
+
let parentFormData = {
|
185514
|
+
size: "default",
|
185515
|
+
rules: "",
|
185516
|
+
// 表单校验规则
|
185517
|
+
inline: true,
|
185518
|
+
// 行内表单模式
|
185519
|
+
labelPosition: "left",
|
185520
|
+
// 表单域标签的位置
|
185521
|
+
labelWidth: "80",
|
185522
|
+
// 表单域标签的宽度
|
185523
|
+
labelSuffix: "",
|
185524
|
+
// 表单域标签的后缀
|
185525
|
+
hideRequiredAsterisk: false,
|
185526
|
+
// 是否隐藏必填标识
|
185527
|
+
requireAsteriskPosition: "left",
|
185528
|
+
// 必填标识的位置
|
185529
|
+
showMessage: true,
|
185530
|
+
// 是否显示校验错误信息
|
185531
|
+
inlineMessage: false,
|
185532
|
+
// 是否以行内展示校验信息
|
185533
|
+
statusIcon: false,
|
185534
|
+
// 是否框中显示校验反馈图标
|
185535
|
+
validateOnRuleChange: true,
|
185536
|
+
// 是否触发第一次验证
|
185537
|
+
disabled: false,
|
185538
|
+
// 是否禁用该表单项
|
185539
|
+
scrollToError: false,
|
185540
|
+
// 滚动至首个校验失败的表单
|
185541
|
+
gutter: 10,
|
185542
|
+
// 栅格间隔
|
185543
|
+
justify: "start",
|
185544
|
+
// flex 布局下的水平排列方式
|
185545
|
+
align: "",
|
185546
|
+
// flex 布局下的垂直排列方式
|
185547
|
+
isSetDictDefaultValue: true,
|
185548
|
+
// 是否取字典项的默认值
|
185549
|
+
isSupportShortcutKey: true,
|
185550
|
+
// 是否支持表单回车快捷功能
|
185551
|
+
submitUrl: "",
|
185552
|
+
// 提交表单的请求api
|
185553
|
+
submitSuccessMsg: "",
|
185554
|
+
// 表单提交成功的提示信息
|
185555
|
+
isVerifySearch: false,
|
185556
|
+
// 是否校验查询参数
|
185557
|
+
isQuickSearch: false,
|
185558
|
+
// 是否校验查询参数
|
185559
|
+
isClosedKeyStroke: false
|
185560
|
+
// 是否关闭键盘事件
|
185561
|
+
};
|
185562
|
+
let parentFormConfig = [
|
185563
|
+
{ prop: "rules", label: "表单验证规则", type: "textarea", el: "hs-input" },
|
185564
|
+
{ prop: "inline", label: "行内表单模式", el: "hs-switch" },
|
185565
|
+
{
|
185566
|
+
prop: "labelPosition",
|
185567
|
+
label: "表单域标签的位置",
|
185568
|
+
el: "hs-select",
|
185569
|
+
tooltip: "表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",
|
185570
|
+
required: false,
|
185571
|
+
multiple: false,
|
185572
|
+
op: [
|
185573
|
+
{ label: " 靠左", value: "left" },
|
185574
|
+
{ label: "靠右", value: "right" },
|
185575
|
+
{ label: "靠上", value: "top" }
|
185576
|
+
],
|
185577
|
+
cel: "hs-option"
|
185578
|
+
},
|
185579
|
+
{
|
185580
|
+
prop: "labelWidth",
|
185581
|
+
label: "标签的宽度",
|
185582
|
+
tooltip: '标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',
|
185583
|
+
el: "hs-input"
|
185584
|
+
},
|
185585
|
+
{
|
185586
|
+
prop: "labelSuffix",
|
185587
|
+
label: "表单域标签的后缀",
|
185588
|
+
tooltip: "表单域标签的后缀",
|
185589
|
+
el: "hs-input"
|
185590
|
+
},
|
185591
|
+
{
|
185592
|
+
prop: "hideRequiredAsterisk",
|
185593
|
+
label: "是否隐藏必填标识",
|
185594
|
+
tooltip: "是否隐藏必填字段标签旁边的红色星号。",
|
185595
|
+
el: "hs-switch"
|
185596
|
+
},
|
185597
|
+
{
|
185598
|
+
prop: "requireAsteriskPosition",
|
185599
|
+
label: "必填标识的位置",
|
185600
|
+
tooltip: "星号的位置。",
|
185601
|
+
el: "hs-select",
|
185602
|
+
op: [
|
185603
|
+
{ label: " 靠左", value: "left" },
|
185604
|
+
{ label: "靠右", value: "right" }
|
185605
|
+
],
|
185606
|
+
cel: "hs-option"
|
185607
|
+
},
|
185608
|
+
{
|
185609
|
+
prop: "showMessage",
|
185610
|
+
label: "是否显示校验错误信息",
|
185611
|
+
tooltip: "是否显示校验错误信息",
|
185612
|
+
el: "hs-switch"
|
185613
|
+
},
|
185614
|
+
{
|
185615
|
+
prop: "inlineMessage",
|
185616
|
+
label: "是否以行内形式展示校验信息",
|
185617
|
+
tooltip: "是否以行内形式展示校验信息",
|
185618
|
+
el: "hs-switch"
|
185619
|
+
},
|
185620
|
+
{
|
185621
|
+
prop: "statusIcon",
|
185622
|
+
label: "是否框中显示校验反馈图标",
|
185623
|
+
tooltip: "是否在输入框中显示校验结果反馈图标",
|
185624
|
+
el: "hs-switch"
|
185625
|
+
},
|
185626
|
+
{
|
185627
|
+
prop: "validateOnRuleChange",
|
185628
|
+
label: "是否触发第一次验证",
|
185629
|
+
tooltip: "是否在 rules 属性改变后立即触发一次验证",
|
185630
|
+
el: "hs-switch"
|
185631
|
+
},
|
185632
|
+
{
|
185633
|
+
prop: "size",
|
185634
|
+
label: "表单项组件的尺寸",
|
185635
|
+
el: "hs-select",
|
185636
|
+
tooltip: "用于控制该表单内组件的尺寸",
|
185637
|
+
op: [
|
185638
|
+
{ label: " 大尺寸", value: "large" },
|
185639
|
+
{ label: "默认尺寸", value: "default" },
|
185640
|
+
{ label: "小尺寸", value: "small" }
|
185641
|
+
],
|
185642
|
+
cel: "hs-option"
|
185643
|
+
},
|
185644
|
+
{
|
185645
|
+
prop: "disabled",
|
185646
|
+
label: "是否禁用表单项",
|
185647
|
+
tooltip: "是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",
|
185648
|
+
el: "hs-switch"
|
185649
|
+
},
|
185650
|
+
{
|
185651
|
+
prop: "scrollToError",
|
185652
|
+
label: "滚动至首个校验失败的表单",
|
185653
|
+
tooltip: "当校验失败时,滚动到第一个错误表单项",
|
185654
|
+
el: "hs-switch"
|
185655
|
+
},
|
185656
|
+
{
|
185657
|
+
label: "是否取字典项的默认值",
|
185658
|
+
prop: "isSetDictDefaultValue",
|
185659
|
+
el: "hs-switch",
|
185660
|
+
tooltip: "当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"
|
185661
|
+
},
|
185662
|
+
{
|
185663
|
+
label: "是否支持表单回车快捷功能",
|
185664
|
+
prop: "isSupportShortcutKey",
|
185665
|
+
el: "hs-switch"
|
185666
|
+
},
|
185667
|
+
{
|
185668
|
+
label: "栅格间隔",
|
185669
|
+
prop: "gutter",
|
185670
|
+
type: "number",
|
185671
|
+
el: "hs-input-number"
|
185672
|
+
},
|
185673
|
+
{
|
185674
|
+
label: "盒子布局下的水平排列方式",
|
185675
|
+
prop: "justify",
|
185676
|
+
el: "hs-select",
|
185677
|
+
tooltip: "flex 布局下的水平排列方式",
|
185678
|
+
op: [
|
185679
|
+
{ label: "从起始方向排列", value: "start" },
|
185680
|
+
{ label: "从末尾方向排列", value: "end" },
|
185681
|
+
{ label: "居中", value: "center" },
|
185682
|
+
{ label: "两端对齐均匀分布", value: "space-between" },
|
185683
|
+
{ label: "两端是中间间隔的一半均匀分布", value: "space-around" },
|
185684
|
+
{ label: "间隔相等均匀分布", value: "space-evenly" }
|
185685
|
+
],
|
185686
|
+
cel: "hs-option"
|
185687
|
+
},
|
185688
|
+
{
|
185689
|
+
label: "盒子布局下的垂直排列方式",
|
185690
|
+
prop: "align",
|
185691
|
+
el: "hs-select",
|
185692
|
+
tooltip: "flex 布局下的垂直排列方式",
|
185693
|
+
op: [
|
185694
|
+
{ label: "自上而下", value: "top" },
|
185695
|
+
{ label: "居中", value: "middle" },
|
185696
|
+
{ label: "自下而上", value: "bottom" }
|
185697
|
+
],
|
185698
|
+
cel: "hs-option"
|
185699
|
+
},
|
185700
|
+
{
|
185701
|
+
label: "自定义元素标签",
|
185702
|
+
prop: "tag",
|
185703
|
+
el: "hs-input"
|
185704
|
+
},
|
185705
|
+
{
|
185706
|
+
label: "提交表单的请求Url",
|
185707
|
+
prop: "submitUrl",
|
185708
|
+
el: "hs-input"
|
185709
|
+
},
|
185710
|
+
{
|
185711
|
+
label: "提交请求方式",
|
185712
|
+
prop: "submitUrlMethod",
|
185713
|
+
el: "hs-select",
|
185714
|
+
cel: "hs-option",
|
185715
|
+
op: [
|
185716
|
+
{ label: " POST", value: "post" },
|
185717
|
+
{ label: "GET", value: "get" },
|
185718
|
+
{ label: "DELETE", value: "delete" },
|
185719
|
+
{ label: "PUT", value: "put" }
|
185720
|
+
]
|
185721
|
+
},
|
185722
|
+
{
|
185723
|
+
label: "表单提交成功的提示信息",
|
185724
|
+
prop: "submitSuccessMsg",
|
185725
|
+
el: "hs-input"
|
185726
|
+
},
|
185727
|
+
{
|
185728
|
+
label: "首行展示列数",
|
185729
|
+
prop: "columnNum",
|
185730
|
+
el: "hs-input-number"
|
185731
|
+
},
|
185732
|
+
{
|
185733
|
+
prop: "isVerifySearch",
|
185734
|
+
label: "是否校验查询参数",
|
185735
|
+
tooltip: "是否校验查询参数",
|
185736
|
+
el: "hs-switch"
|
185737
|
+
},
|
185738
|
+
{
|
185739
|
+
prop: "isQuickSearch",
|
185740
|
+
label: "是否启用快捷查询",
|
185741
|
+
tooltip: "是否启用快捷查询",
|
185742
|
+
el: "hs-switch"
|
185743
|
+
},
|
185744
|
+
{
|
185745
|
+
prop: "isClosedKeyStroke",
|
185746
|
+
label: "是否关闭键盘事件",
|
185747
|
+
el: "hs-switch"
|
185748
|
+
}
|
185749
|
+
];
|
185750
|
+
const configElList = ref$1([
|
185751
|
+
{ label: "输入框", value: "hs-input" },
|
185752
|
+
{ label: "选择器", value: "hs-select" },
|
185753
|
+
{ label: "开关", value: "hs-switch" },
|
185754
|
+
{ label: "日期选择器", value: "hs-date-picker" },
|
185755
|
+
{ label: "按钮", value: "hs-button" },
|
185756
|
+
{ label: "自动补全", value: "hs-autocomplete" },
|
185757
|
+
{ label: "上传", value: "hs-upload" },
|
185758
|
+
{ label: "多选框", value: "hs-checkbox" },
|
185759
|
+
{ label: "单选框", value: "hs-radio" },
|
185760
|
+
{ label: "数字输入框", value: "hs-input-number" },
|
185761
|
+
{ label: "级联面板", value: "hs-cascader-panel" },
|
185762
|
+
{ label: "树形选择(弹窗带搜索框)", value: "bc-tree-search" },
|
185763
|
+
{ label: "树形选择", value: "hs-tree-select" },
|
185764
|
+
{ label: "级联选择器", value: "hs-cascader" },
|
185765
|
+
{ label: "输入框组", value: "bc-input-group" }
|
185766
|
+
]);
|
185767
|
+
const compConfig = {
|
185768
|
+
"hs-input": "hs-config-input",
|
185769
|
+
"hs-select": "hs-config-select",
|
185770
|
+
"hs-switch": "hs-config-switch",
|
185771
|
+
"hs-date-picker": "hs-config-date-picker",
|
185772
|
+
"hs-button": "hs-config-button",
|
185773
|
+
"hs-autocomplete": "hs-config-autocomplete",
|
185774
|
+
"hs-upload": "hs-config-upload",
|
185775
|
+
"hs-checkbox": "hs-config-checkbox",
|
185776
|
+
"hs-radio": "hs-config-radio",
|
185777
|
+
"hs-input-number": "hs-config-input-number",
|
185778
|
+
"hs-cascader-panel": "hs-config-cascader-panel",
|
185779
|
+
"bc-tree-search": "hs-config-tree-search",
|
185780
|
+
"hs-tree-select": "hs-config-tree-select",
|
185781
|
+
"bc-input-group": "hs-input-group"
|
185782
|
+
};
|
185783
|
+
const formBaseRule = {
|
185784
|
+
label: [{ required: true, message: "请输入参数名称" }],
|
185785
|
+
prop: [{ required: true, message: "请输入查询参数" }],
|
185786
|
+
el: [{ required: true, message: "请选择组件类型" }]
|
185787
|
+
};
|
185788
|
+
let formItemConfig = ref$1({
|
185789
|
+
id: "",
|
185790
|
+
sort: 0,
|
185791
|
+
// 排序
|
185792
|
+
// 配置绑定的值
|
185793
|
+
data: {
|
185794
|
+
baseData: {
|
185795
|
+
shortcut: [],
|
185796
|
+
label: "参数名称",
|
185797
|
+
prop: "",
|
185798
|
+
el: "hs-input",
|
185799
|
+
isSlot: false,
|
185800
|
+
isApply: true,
|
185801
|
+
isShow: true
|
185802
|
+
},
|
185803
|
+
elData: inputAttrConfigMap
|
185804
|
+
}
|
185805
|
+
});
|
185806
|
+
let config$2 = {
|
185807
|
+
// 配置
|
185808
|
+
baseConfig: {
|
185809
|
+
title: {
|
185810
|
+
subTitle: "表单项属性"
|
185811
|
+
},
|
185812
|
+
visible: true,
|
185813
|
+
list: [
|
185814
|
+
{
|
185815
|
+
prop: "shortcut",
|
185816
|
+
label: "快捷键",
|
185817
|
+
el: "hs-select",
|
185818
|
+
slotValue: "shortcut"
|
185819
|
+
},
|
185820
|
+
{
|
185821
|
+
prop: "label",
|
185822
|
+
label: "参数名称",
|
185823
|
+
el: "hs-input"
|
185824
|
+
},
|
185825
|
+
{
|
185826
|
+
prop: "prop",
|
185827
|
+
label: "查询参数",
|
185828
|
+
slotValue: "prop",
|
185829
|
+
el: "hs-input"
|
185830
|
+
},
|
185831
|
+
{
|
185832
|
+
prop: "el",
|
185833
|
+
label: "组件类型",
|
185834
|
+
clearable: false,
|
185835
|
+
tooltip: "下拉选择组件类型,组件类型取自配置文件",
|
185836
|
+
el: "hs-select",
|
185837
|
+
cel: "hs-option",
|
185838
|
+
op: configElList.value
|
185839
|
+
},
|
185840
|
+
{
|
185841
|
+
prop: "label-width",
|
185842
|
+
label: "标签宽度",
|
185843
|
+
el: "hs-input"
|
185844
|
+
},
|
185845
|
+
{
|
185846
|
+
prop: "isSlot",
|
185847
|
+
label: "是否自定义插槽",
|
185848
|
+
el: "hs-switch"
|
185849
|
+
},
|
185850
|
+
{
|
185851
|
+
prop: "isApply",
|
185852
|
+
label: "是否启用",
|
185853
|
+
tooltip: "是否启用该表单项",
|
185854
|
+
el: "hs-switch"
|
185855
|
+
},
|
185856
|
+
{
|
185857
|
+
prop: "isShow",
|
185858
|
+
label: "是否显示该表单项",
|
185859
|
+
el: "hs-switch"
|
185860
|
+
},
|
185861
|
+
{
|
185862
|
+
prop: "groupMark",
|
185863
|
+
label: "分组标识",
|
185864
|
+
el: "hs-input",
|
185865
|
+
tooltip: "如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"
|
185866
|
+
},
|
185867
|
+
{
|
185868
|
+
prop: "positionInGroup",
|
185869
|
+
label: "组字段位置",
|
185870
|
+
tooltip: "字段在分组中是开始位置 还是 结束为止",
|
185871
|
+
el: "hs-select",
|
185872
|
+
cel: "hs-option",
|
185873
|
+
show: true,
|
185874
|
+
op: [
|
185875
|
+
{
|
185876
|
+
label: "开始",
|
185877
|
+
value: "begin"
|
185878
|
+
},
|
185879
|
+
{
|
185880
|
+
label: "结束",
|
185881
|
+
value: "end"
|
185882
|
+
}
|
185883
|
+
]
|
185884
|
+
}
|
185885
|
+
],
|
185886
|
+
rules: formBaseRule
|
185887
|
+
},
|
185888
|
+
elConfig: {
|
185889
|
+
title: {
|
185890
|
+
subTitle: "元素项属性"
|
185891
|
+
},
|
185892
|
+
visible: true,
|
185893
|
+
list: []
|
185894
|
+
}
|
185895
|
+
};
|
185896
|
+
let emptyFormItemData = ref$1({
|
185897
|
+
id: "",
|
185898
|
+
// 配置绑定的值
|
185899
|
+
data: {
|
185900
|
+
baseData: {},
|
185901
|
+
elData: {
|
185902
|
+
// hs-input组件属性
|
185903
|
+
}
|
185904
|
+
}
|
185905
|
+
});
|
185906
|
+
let formTitleConfig = ref$1({
|
185907
|
+
code: {
|
185908
|
+
visible: false,
|
185909
|
+
subTitle: "表单配置代码",
|
185910
|
+
class: "font-bold my-3",
|
185911
|
+
iconSize: 20
|
185912
|
+
},
|
185913
|
+
form: {
|
185914
|
+
visible: true,
|
185915
|
+
subTitle: "表单配置",
|
185916
|
+
class: "font-bold my-3",
|
185917
|
+
iconSize: 20
|
185918
|
+
},
|
185919
|
+
formItem: {
|
185920
|
+
visible: true,
|
185921
|
+
subTitle: "表单元素配置项集合",
|
185922
|
+
class: "font-bold my-3",
|
185923
|
+
iconSize: 20
|
185924
|
+
},
|
185925
|
+
formExample: {
|
185926
|
+
visible: false,
|
185927
|
+
subTitle: "表单配置示例",
|
185928
|
+
class: "font-bold my-3",
|
185929
|
+
iconSize: 20
|
185930
|
+
}
|
185931
|
+
});
|
185932
|
+
const formItemAspectConfig = {
|
185933
|
+
currentPage: {
|
185934
|
+
baseData: {
|
185935
|
+
isApply: true,
|
185936
|
+
isShow: false
|
185937
|
+
},
|
185938
|
+
elData: {
|
185939
|
+
attrs: {
|
185940
|
+
defaultValue: 1
|
185941
|
+
}
|
185942
|
+
}
|
185943
|
+
},
|
185944
|
+
pageSize: {
|
185945
|
+
baseData: {
|
185946
|
+
isApply: true,
|
185947
|
+
isShow: false
|
185948
|
+
},
|
185949
|
+
elData: {
|
185950
|
+
attrs: {
|
185951
|
+
defaultValue: 10
|
185952
|
+
}
|
185953
|
+
}
|
185954
|
+
}
|
185955
|
+
};
|
185956
|
+
const assign$4 = (params, title) => {
|
185957
|
+
return Object.assign(params, { title });
|
185958
|
+
};
|
185959
|
+
const getApiDocs = (params = {}) => {
|
185960
|
+
let proxy = params.proxy ? "/" + params.proxy : "";
|
185961
|
+
delete params.proxy;
|
185962
|
+
params = assign$4(params, "后台api获取接口");
|
185963
|
+
return request({
|
185964
|
+
url: proxy ? proxy + "/v3/api-docs" : "/scmp-web/v3/api-docs",
|
185965
|
+
method: "get",
|
185966
|
+
params
|
185967
|
+
});
|
185968
|
+
};
|
185969
|
+
function usePostMan() {
|
185970
|
+
return {
|
185971
|
+
getApiDocs
|
185972
|
+
};
|
185973
|
+
}
|
185974
|
+
const assign$3 = (params, title) => {
|
185975
|
+
return Object.assign(params, { title });
|
185976
|
+
};
|
185977
|
+
const getAllSystemInfo = (params = {}) => {
|
185978
|
+
params = assign$3(params, "获取所有系统信息列表");
|
185979
|
+
return request({
|
185980
|
+
url: "/scmp-web/pri/system/get_all_system_info",
|
185981
|
+
method: "get",
|
185982
|
+
params
|
185983
|
+
});
|
185984
|
+
};
|
185985
|
+
const getSystemInfoPageList = (params = {}) => {
|
185986
|
+
params = assign$3(params, "获取系统信息列表");
|
185987
|
+
return request({
|
185988
|
+
url: "/scmp-web/pri/system/get_system_info_page_list",
|
185989
|
+
method: "get",
|
185990
|
+
params
|
185991
|
+
});
|
185992
|
+
};
|
185993
|
+
const postDeleteSystemInfo = (data2 = {}) => {
|
185994
|
+
data2 = assign$3(data2, "删除");
|
185995
|
+
return request({
|
185996
|
+
url: "/scmp-web/pri/system/delete_system_info",
|
185997
|
+
method: "post",
|
185998
|
+
data: data2
|
185999
|
+
});
|
186000
|
+
};
|
186001
|
+
const postUpdateLockStatus = (data2 = {}) => {
|
186002
|
+
data2 = assign$3(data2, "修改状态");
|
186003
|
+
return request({
|
186004
|
+
url: "/scmp-web/pri/system/update_lock_status",
|
186005
|
+
method: "post",
|
186006
|
+
data: data2
|
186007
|
+
});
|
186008
|
+
};
|
186009
|
+
const postCopySystemInfo = (data2 = {}) => {
|
186010
|
+
data2 = assign$3(data2, "复制项目信息-菜单,配置信息");
|
186011
|
+
return request({
|
186012
|
+
url: "/scmp-web/pri/system/copy_system_info",
|
186013
|
+
method: "post",
|
186014
|
+
data: data2
|
186015
|
+
});
|
186016
|
+
};
|
186017
|
+
const postCopyMenuInfo = (data2 = {}) => {
|
186018
|
+
data2 = assign$3(data2, "复制菜单下的配置信息");
|
186019
|
+
return request({
|
186020
|
+
url: "/scmp-web/pri/system/copy_menu_info",
|
186021
|
+
method: "post",
|
186022
|
+
data: data2
|
186023
|
+
});
|
186024
|
+
};
|
186025
|
+
function useSystemController() {
|
186026
|
+
return {
|
186027
|
+
getAllSystemInfo,
|
186028
|
+
getSystemInfoPageList,
|
186029
|
+
postDeleteSystemInfo,
|
186030
|
+
postUpdateLockStatus,
|
186031
|
+
postCopySystemInfo,
|
186032
|
+
postCopyMenuInfo
|
186033
|
+
};
|
186034
|
+
}
|
186035
|
+
const assign$2 = (params, title) => {
|
186036
|
+
return Object.assign(params, { other_log_info: { title } });
|
186037
|
+
};
|
186038
|
+
const postAddField = (data2 = {}) => {
|
186039
|
+
data2 = assign$2(data2, "保存新表格字段设置");
|
186040
|
+
return request({
|
186041
|
+
url: "/scmp-web/pri/field_config/add_field",
|
186042
|
+
method: "post",
|
186043
|
+
data: data2
|
186044
|
+
});
|
186045
|
+
};
|
186046
|
+
const getFieldByMenu = (params = {}) => {
|
186047
|
+
params = assign$2(params, "根据菜单id查询字段信息");
|
186048
|
+
return request({
|
186049
|
+
url: "/scmp-web/pri/field_config/get_field_by_menu",
|
186050
|
+
method: "get",
|
186051
|
+
params
|
186052
|
+
});
|
186053
|
+
};
|
186054
|
+
const getFieldListPage = (params = {}) => {
|
186055
|
+
params = assign$2(params, "查询新表格字段配置列表");
|
186056
|
+
return request({
|
186057
|
+
url: "/scmp-web/pri/field_config/get_field_list_page",
|
186058
|
+
method: "get",
|
186059
|
+
params
|
185225
186060
|
});
|
185226
186061
|
};
|
185227
186062
|
const postDelFieldById = (data2 = {}) => {
|
@@ -185464,8 +186299,10 @@ function useFileController() {
|
|
185464
186299
|
}
|
185465
186300
|
const postMan = usePostMan();
|
185466
186301
|
const fieldConfig$4 = useFieldConfigController();
|
185467
|
-
function useHsFormParse(
|
186302
|
+
function useHsFormParse(configModel) {
|
185468
186303
|
const parseUrl2 = ref$1(true);
|
186304
|
+
let parseApi = ref$1("");
|
186305
|
+
let parseApi2 = ref$1("[{field: 'test',title: '初始化'}]");
|
185469
186306
|
watch(
|
185470
186307
|
() => configModel.value,
|
185471
186308
|
() => {
|
@@ -185550,12 +186387,92 @@ function useHsFormParse(parseApi, configModel) {
|
|
185550
186387
|
initBaseConfig();
|
185551
186388
|
}
|
185552
186389
|
};
|
186390
|
+
function getParseForm() {
|
186391
|
+
parseApi2.value = JSON.stringify(configModel.value.form.formConfig);
|
186392
|
+
}
|
186393
|
+
async function setParseForm() {
|
186394
|
+
var _a2;
|
186395
|
+
if (!((_a2 = configModel.value) == null ? void 0 : _a2.form)) {
|
186396
|
+
await initBaseConfig();
|
186397
|
+
}
|
186398
|
+
let tempFormItemConfig = _$4.cloneDeep(formItemConfig.value);
|
186399
|
+
tempFormItemConfig.data.baseData.el = "hs-input";
|
186400
|
+
tempFormItemConfig.data.elData = _$4.cloneDeep(inputAttrConfigMap);
|
186401
|
+
let groupData = [];
|
186402
|
+
parseApi2.value = parseApi2.value.replace(/\/\//g, "");
|
186403
|
+
const tableConfig2 = new Function("return " + parseApi2.value)().map((i2) => {
|
186404
|
+
if (i2.label) {
|
186405
|
+
let data2 = {};
|
186406
|
+
if (i2.type === "select") {
|
186407
|
+
data2 = {
|
186408
|
+
value: _$4.get(i2, "data.value", ""),
|
186409
|
+
valueKey: _$4.get(i2, "data.valueKey", ""),
|
186410
|
+
labelKey: _$4.get(i2, "data.labelKey", "")
|
186411
|
+
};
|
186412
|
+
}
|
186413
|
+
return {
|
186414
|
+
field: i2.prop,
|
186415
|
+
title: i2.label,
|
186416
|
+
data: data2,
|
186417
|
+
dictCode: i2.dictCode,
|
186418
|
+
type: i2.type
|
186419
|
+
};
|
186420
|
+
}
|
186421
|
+
return i2;
|
186422
|
+
}).map((i2, index2) => {
|
186423
|
+
var _a3, _b, _c;
|
186424
|
+
const item = _$4.cloneDeep(tempFormItemConfig);
|
186425
|
+
item.id = item.id || v4();
|
186426
|
+
item.sort = index2 + 1;
|
186427
|
+
item.data.baseData.label = i2.title;
|
186428
|
+
item.data.baseData.prop = i2.field;
|
186429
|
+
if (Array.isArray(i2.field) && /date/.test(i2.type)) {
|
186430
|
+
item.data.baseData.el = "hs-date-picker";
|
186431
|
+
item.data.baseData.positionInGroup = "begin";
|
186432
|
+
item.data.baseData.groupMark = "time";
|
186433
|
+
const config3 = _$4.cloneDeep(datePickerAttrConfigMap);
|
186434
|
+
config3.attrs.type = i2.type.toLowerCase();
|
186435
|
+
item.data.elData = config3;
|
186436
|
+
item.data.baseData.prop = i2.field[0];
|
186437
|
+
const item2 = _$4.cloneDeep(item);
|
186438
|
+
item2.id = v4();
|
186439
|
+
item2.data.baseData.label = i2.title + "_结束";
|
186440
|
+
item2.data.baseData.prop = i2.field[1];
|
186441
|
+
item2.data.baseData.positionInGroup = "end";
|
186442
|
+
groupData.push(item2);
|
186443
|
+
} else if (i2.type === "select") {
|
186444
|
+
item.data.baseData.el = "hs-select";
|
186445
|
+
const config3 = _$4.cloneDeep(selectAttrConfigMap);
|
186446
|
+
if ((_a3 = i2 == null ? void 0 : i2.data) == null ? void 0 : _a3.value) {
|
186447
|
+
_$4.set(config3, "attrs.options", "string=" + JSON.stringify(i2.data.value));
|
186448
|
+
}
|
186449
|
+
if ((_b = i2 == null ? void 0 : i2.data) == null ? void 0 : _b.valueKey) {
|
186450
|
+
_$4.set(config3, "optionAttrs.value", i2.data.valueKey);
|
186451
|
+
}
|
186452
|
+
if ((_c = i2 == null ? void 0 : i2.data) == null ? void 0 : _c.labelKey) {
|
186453
|
+
_$4.set(config3, "optionAttrs.label", i2.data.labelKey);
|
186454
|
+
}
|
186455
|
+
if (i2 == null ? void 0 : i2.dictCode) {
|
186456
|
+
_$4.set(config3, "attrs.permissionsDict", i2.dictCode);
|
186457
|
+
}
|
186458
|
+
item.data.elData = config3;
|
186459
|
+
}
|
186460
|
+
return item;
|
186461
|
+
});
|
186462
|
+
configModel.value.form.formConfig = tableConfig2.concat(groupData);
|
186463
|
+
parseApi2.value = "[{field: 'test',title: '初始化'}]";
|
186464
|
+
}
|
185553
186465
|
return {
|
185554
186466
|
parseForm,
|
185555
|
-
parseUrl: parseUrl2
|
186467
|
+
parseUrl: parseUrl2,
|
186468
|
+
parseApi,
|
186469
|
+
parseApi2,
|
186470
|
+
getParseForm,
|
186471
|
+
setParseForm
|
185556
186472
|
};
|
185557
186473
|
}
|
185558
186474
|
const _hoisted_1$X = { class: "flex flex-row" };
|
186475
|
+
const _hoisted_2$A = { class: "flex flex-row mt-2" };
|
185559
186476
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
185560
186477
|
__name: "hsFormParse",
|
185561
186478
|
props: {
|
@@ -185565,14 +186482,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
185565
186482
|
emits: ["update:modelValue"],
|
185566
186483
|
setup(__props) {
|
185567
186484
|
let configModel = useModel(__props, "modelValue");
|
185568
|
-
|
185569
|
-
const { parseForm, parseUrl: parseUrl2 } = useHsFormParse(parseApi, configModel);
|
186485
|
+
const { parseForm, parseUrl: parseUrl2, parseApi, parseApi2, getParseForm, setParseForm } = useHsFormParse(configModel);
|
185570
186486
|
return (_ctx, _cache) => {
|
185571
186487
|
const _component_hs_switch = resolveComponent("hs-switch");
|
185572
186488
|
const _component_hs_input = resolveComponent("hs-input");
|
185573
186489
|
const _component_hs_button = resolveComponent("hs-button");
|
185574
186490
|
return openBlock(), createElementBlock(Fragment, null, [
|
185575
|
-
_cache[
|
186491
|
+
_cache[5] || (_cache[5] = createTextVNode(" 是否解析url:")),
|
185576
186492
|
createVNode(_component_hs_switch, {
|
185577
186493
|
modelValue: unref(parseUrl2),
|
185578
186494
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(parseUrl2) ? parseUrl2.value = $event : null)
|
@@ -185581,7 +186497,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
185581
186497
|
createVNode(_component_hs_input, {
|
185582
186498
|
class: "basis-1/4 mr-2",
|
185583
186499
|
modelValue: unref(parseApi),
|
185584
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(parseApi) ? parseApi.value = $event :
|
186500
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(parseApi) ? parseApi.value = $event : null),
|
185585
186501
|
placeholder: "请输入解析接口"
|
185586
186502
|
}, null, 8, ["modelValue"]),
|
185587
186503
|
createVNode(_component_hs_button, {
|
@@ -185593,6 +186509,31 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
185593
186509
|
]),
|
185594
186510
|
_: 1
|
185595
186511
|
}, 8, ["onClick"])
|
186512
|
+
]),
|
186513
|
+
createElementVNode("div", _hoisted_2$A, [
|
186514
|
+
createVNode(_component_hs_input, {
|
186515
|
+
class: "basis-1/4 mr-2",
|
186516
|
+
modelValue: unref(parseApi2),
|
186517
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(parseApi2) ? parseApi2.value = $event : null)
|
186518
|
+
}, null, 8, ["modelValue"]),
|
186519
|
+
createVNode(_component_hs_button, {
|
186520
|
+
onClick: unref(getParseForm),
|
186521
|
+
type: "primary"
|
186522
|
+
}, {
|
186523
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
186524
|
+
createTextVNode("获取配置所有字段")
|
186525
|
+
])),
|
186526
|
+
_: 1
|
186527
|
+
}, 8, ["onClick"]),
|
186528
|
+
createVNode(_component_hs_button, {
|
186529
|
+
onClick: unref(setParseForm),
|
186530
|
+
type: "primary"
|
186531
|
+
}, {
|
186532
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
186533
|
+
createTextVNode("配置所有字段")
|
186534
|
+
])),
|
186535
|
+
_: 1
|
186536
|
+
}, 8, ["onClick"])
|
185596
186537
|
])
|
185597
186538
|
], 64);
|
185598
186539
|
};
|
@@ -186247,7 +187188,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
186247
187188
|
setup(__props, { emit: __emit }) {
|
186248
187189
|
const props = __props;
|
186249
187190
|
const emit = __emit;
|
186250
|
-
const IconList = defineAsyncComponent(() => import("./list-
|
187191
|
+
const IconList = defineAsyncComponent(() => import("./list-B0pnzmrr.mjs"));
|
186251
187192
|
const inputWidthRef = ref$1();
|
186252
187193
|
const state = reactive({
|
186253
187194
|
fontIconPrefix: "",
|
@@ -190244,6 +191185,11 @@ function useHsTableParse(tableModel) {
|
|
190244
191185
|
function setFields() {
|
190245
191186
|
const item = _$4.cloneDeep(tableItemConfig.value);
|
190246
191187
|
const tableConfig2 = new Function("return " + parseApi2.value)().map((i2) => {
|
191188
|
+
if (i2.label) {
|
191189
|
+
return { field: i2.prop, title: i2.label };
|
191190
|
+
}
|
191191
|
+
return i2;
|
191192
|
+
}).map((i2) => {
|
190247
191193
|
i2.id = i2.id ?? v4();
|
190248
191194
|
if (!i2.data) {
|
190249
191195
|
i2.data = {
|
@@ -190275,6 +191221,7 @@ function useHsTableParse(tableModel) {
|
|
190275
191221
|
tableConfig2.unshift(column_config);
|
190276
191222
|
}
|
190277
191223
|
tableModel.value.tableConfig = tableConfig2;
|
191224
|
+
parseApi2.value = "[{field: 'test',title: '初始化'}]";
|
190278
191225
|
}
|
190279
191226
|
function getFields() {
|
190280
191227
|
var _a2;
|
@@ -192645,6 +193592,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
192645
193592
|
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
192646
193593
|
props.showLabel ? (openBlock(), createElementBlock("div", _hoisted_2$j, toDisplayString(props.labelText), 1)) : createCommentVNode("", true),
|
192647
193594
|
createVNode(_component_hs_select, {
|
193595
|
+
filterable: "",
|
192648
193596
|
class: "flex-1",
|
192649
193597
|
modelValue: unref(curSys),
|
192650
193598
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(curSys) ? curSys.value = $event : null),
|
@@ -217698,1406 +218646,862 @@ function _defineProperties(target, props) {
|
|
217698
218646
|
}
|
217699
218647
|
}
|
217700
218648
|
function _createClass(Constructor, protoProps, staticProps) {
|
217701
|
-
if (protoProps)
|
217702
|
-
_defineProperties(Constructor.prototype, protoProps);
|
217703
|
-
if (staticProps)
|
217704
|
-
_defineProperties(Constructor, staticProps);
|
217705
|
-
return Constructor;
|
217706
|
-
}
|
217707
|
-
var isMobile = /Android|iPhone|iPad|Mobile/i.test(navigator.userAgent);
|
217708
|
-
var SmoothSignature = /* @__PURE__ */ function() {
|
217709
|
-
function SmoothSignature2(_canvas, options2) {
|
217710
|
-
var _this = this;
|
217711
|
-
_classCallCheck(this, SmoothSignature2);
|
217712
|
-
this.canvas = {};
|
217713
|
-
this.ctx = {};
|
217714
|
-
this.width = 320;
|
217715
|
-
this.height = 200;
|
217716
|
-
this.scale = window.devicePixelRatio || 1;
|
217717
|
-
this.color = "black";
|
217718
|
-
this.bgColor = "";
|
217719
|
-
this.canDraw = false;
|
217720
|
-
this.openSmooth = true;
|
217721
|
-
this.minWidth = 2;
|
217722
|
-
this.maxWidth = 6;
|
217723
|
-
this.minSpeed = 1.5;
|
217724
|
-
this.maxWidthDiffRate = 20;
|
217725
|
-
this.points = [];
|
217726
|
-
this.canAddHistory = true;
|
217727
|
-
this.historyList = [];
|
217728
|
-
this.maxHistoryLength = 20;
|
217729
|
-
this.onStart = function() {
|
217730
|
-
};
|
217731
|
-
this.onEnd = function() {
|
217732
|
-
};
|
217733
|
-
this.addListener = function() {
|
217734
|
-
_this.removeListener();
|
217735
|
-
_this.canvas.style.touchAction = "none";
|
217736
|
-
if (isMobile && ("ontouchstart" in window || navigator.maxTouchPoints)) {
|
217737
|
-
_this.canvas.addEventListener("touchstart", _this.onDrawStart, {
|
217738
|
-
passive: false
|
217739
|
-
});
|
217740
|
-
_this.canvas.addEventListener("touchmove", _this.onDrawMove, {
|
217741
|
-
passive: false
|
217742
|
-
});
|
217743
|
-
document.addEventListener("touchcancel", _this.onDrawEnd, {
|
217744
|
-
passive: false
|
217745
|
-
});
|
217746
|
-
document.addEventListener("touchend", _this.onDrawEnd, {
|
217747
|
-
passive: false
|
217748
|
-
});
|
217749
|
-
} else {
|
217750
|
-
_this.canvas.addEventListener("mousedown", _this.onDrawStart);
|
217751
|
-
_this.canvas.addEventListener("mousemove", _this.onDrawMove);
|
217752
|
-
document.addEventListener("mouseup", _this.onDrawEnd);
|
217753
|
-
}
|
217754
|
-
};
|
217755
|
-
this.removeListener = function() {
|
217756
|
-
_this.canvas.style.touchAction = "auto";
|
217757
|
-
_this.canvas.removeEventListener("touchstart", _this.onDrawStart);
|
217758
|
-
_this.canvas.removeEventListener("touchmove", _this.onDrawMove);
|
217759
|
-
document.removeEventListener("touchend", _this.onDrawEnd);
|
217760
|
-
document.removeEventListener("touchcancel", _this.onDrawEnd);
|
217761
|
-
_this.canvas.removeEventListener("mousedown", _this.onDrawStart);
|
217762
|
-
_this.canvas.removeEventListener("mousemove", _this.onDrawMove);
|
217763
|
-
document.removeEventListener("mouseup", _this.onDrawEnd);
|
217764
|
-
};
|
217765
|
-
this.onDrawStart = function(e2) {
|
217766
|
-
e2.preventDefault();
|
217767
|
-
_this.canDraw = true;
|
217768
|
-
_this.canAddHistory = true;
|
217769
|
-
_this.ctx.strokeStyle = _this.color;
|
217770
|
-
_this.initPoint(e2);
|
217771
|
-
_this.onStart && _this.onStart(e2);
|
217772
|
-
};
|
217773
|
-
this.onDrawMove = function(e2) {
|
217774
|
-
e2.preventDefault();
|
217775
|
-
if (!_this.canDraw)
|
217776
|
-
return;
|
217777
|
-
_this.initPoint(e2);
|
217778
|
-
if (_this.points.length < 2)
|
217779
|
-
return;
|
217780
|
-
_this.addHistory();
|
217781
|
-
var point = _this.points.slice(-1)[0];
|
217782
|
-
var prePoint = _this.points.slice(-2, -1)[0];
|
217783
|
-
if (window.requestAnimationFrame) {
|
217784
|
-
window.requestAnimationFrame(function() {
|
217785
|
-
return _this.onDraw(prePoint, point);
|
217786
|
-
});
|
217787
|
-
} else {
|
217788
|
-
_this.onDraw(prePoint, point);
|
217789
|
-
}
|
217790
|
-
};
|
217791
|
-
this.onDraw = function(prePoint, point) {
|
217792
|
-
if (_this.openSmooth) {
|
217793
|
-
_this.drawSmoothLine(prePoint, point);
|
217794
|
-
} else {
|
217795
|
-
_this.drawNoSmoothLine(prePoint, point);
|
217796
|
-
}
|
217797
|
-
};
|
217798
|
-
this.onDrawEnd = function(e2) {
|
217799
|
-
if (!_this.canDraw)
|
217800
|
-
return;
|
217801
|
-
_this.canDraw = false;
|
217802
|
-
_this.canAddHistory = true;
|
217803
|
-
_this.points = [];
|
217804
|
-
_this.onEnd && _this.onEnd(e2);
|
217805
|
-
};
|
217806
|
-
this.getLineWidth = function(speed) {
|
217807
|
-
var minSpeed = _this.minSpeed > 10 ? 10 : _this.minSpeed < 1 ? 1 : _this.minSpeed;
|
217808
|
-
var addWidth = (_this.maxWidth - _this.minWidth) * speed / minSpeed;
|
217809
|
-
var lineWidth = Math.max(_this.maxWidth - addWidth, _this.minWidth);
|
217810
|
-
return Math.min(lineWidth, _this.maxWidth);
|
217811
|
-
};
|
217812
|
-
this.getRadianData = function(x1, y1, x2, y2) {
|
217813
|
-
var dis_x = x2 - x1;
|
217814
|
-
var dis_y = y2 - y1;
|
217815
|
-
if (dis_x === 0) {
|
217816
|
-
return {
|
217817
|
-
val: 0,
|
217818
|
-
pos: -1
|
217819
|
-
};
|
217820
|
-
}
|
217821
|
-
if (dis_y === 0) {
|
217822
|
-
return {
|
217823
|
-
val: 0,
|
217824
|
-
pos: 1
|
217825
|
-
};
|
217826
|
-
}
|
217827
|
-
var val = Math.abs(Math.atan(dis_y / dis_x));
|
217828
|
-
if (x2 > x1 && y2 < y1 || x2 < x1 && y2 > y1) {
|
217829
|
-
return {
|
217830
|
-
val,
|
217831
|
-
pos: 1
|
217832
|
-
};
|
217833
|
-
}
|
217834
|
-
return {
|
217835
|
-
val,
|
217836
|
-
pos: -1
|
217837
|
-
};
|
217838
|
-
};
|
217839
|
-
this.getRadianPoints = function(radianData, x2, y2, halfLineWidth) {
|
217840
|
-
if (radianData.val === 0) {
|
217841
|
-
if (radianData.pos === 1) {
|
217842
|
-
return [{
|
217843
|
-
x: x2,
|
217844
|
-
y: y2 + halfLineWidth
|
217845
|
-
}, {
|
217846
|
-
x: x2,
|
217847
|
-
y: y2 - halfLineWidth
|
217848
|
-
}];
|
217849
|
-
}
|
217850
|
-
return [{
|
217851
|
-
y: y2,
|
217852
|
-
x: x2 + halfLineWidth
|
217853
|
-
}, {
|
217854
|
-
y: y2,
|
217855
|
-
x: x2 - halfLineWidth
|
217856
|
-
}];
|
217857
|
-
}
|
217858
|
-
var dis_x = Math.sin(radianData.val) * halfLineWidth;
|
217859
|
-
var dis_y = Math.cos(radianData.val) * halfLineWidth;
|
217860
|
-
if (radianData.pos === 1) {
|
217861
|
-
return [{
|
217862
|
-
x: x2 + dis_x,
|
217863
|
-
y: y2 + dis_y
|
217864
|
-
}, {
|
217865
|
-
x: x2 - dis_x,
|
217866
|
-
y: y2 - dis_y
|
217867
|
-
}];
|
217868
|
-
}
|
217869
|
-
return [{
|
217870
|
-
x: x2 + dis_x,
|
217871
|
-
y: y2 - dis_y
|
217872
|
-
}, {
|
217873
|
-
x: x2 - dis_x,
|
217874
|
-
y: y2 + dis_y
|
217875
|
-
}];
|
217876
|
-
};
|
217877
|
-
this.initPoint = function(event) {
|
217878
|
-
var t2 = Date.now();
|
217879
|
-
var prePoint = _this.points.slice(-1)[0];
|
217880
|
-
if (prePoint && prePoint.t === t2) {
|
217881
|
-
return;
|
217882
|
-
}
|
217883
|
-
var rect = _this.canvas.getBoundingClientRect();
|
217884
|
-
var e2 = event.touches && event.touches[0] || event;
|
217885
|
-
var x2 = e2.clientX - rect.left;
|
217886
|
-
var y2 = e2.clientY - rect.top;
|
217887
|
-
if (prePoint && prePoint.x === x2 && prePoint.y === y2) {
|
217888
|
-
return;
|
217889
|
-
}
|
217890
|
-
var point = {
|
217891
|
-
x: x2,
|
217892
|
-
y: y2,
|
217893
|
-
t: t2
|
217894
|
-
};
|
217895
|
-
if (_this.openSmooth && prePoint) {
|
217896
|
-
var prePoint2 = _this.points.slice(-2, -1)[0];
|
217897
|
-
point.distance = Math.sqrt(Math.pow(point.x - prePoint.x, 2) + Math.pow(point.y - prePoint.y, 2));
|
217898
|
-
point.speed = point.distance / (point.t - prePoint.t || 0.1);
|
217899
|
-
point.lineWidth = _this.getLineWidth(point.speed);
|
217900
|
-
if (prePoint2 && prePoint2.lineWidth && prePoint.lineWidth) {
|
217901
|
-
var rate = (point.lineWidth - prePoint.lineWidth) / prePoint.lineWidth;
|
217902
|
-
var maxRate = _this.maxWidthDiffRate / 100;
|
217903
|
-
maxRate = maxRate > 1 ? 1 : maxRate < 0.01 ? 0.01 : maxRate;
|
217904
|
-
if (Math.abs(rate) > maxRate) {
|
217905
|
-
var per = rate > 0 ? maxRate : -maxRate;
|
217906
|
-
point.lineWidth = prePoint.lineWidth * (1 + per);
|
217907
|
-
}
|
217908
|
-
}
|
217909
|
-
}
|
217910
|
-
_this.points.push(point);
|
217911
|
-
_this.points = _this.points.slice(-3);
|
217912
|
-
};
|
217913
|
-
this.drawSmoothLine = function(prePoint, point) {
|
217914
|
-
var dis_x = point.x - prePoint.x;
|
217915
|
-
var dis_y = point.y - prePoint.y;
|
217916
|
-
if (Math.abs(dis_x) + Math.abs(dis_y) <= _this.scale) {
|
217917
|
-
point.lastX1 = point.lastX2 = prePoint.x + dis_x * 0.5;
|
217918
|
-
point.lastY1 = point.lastY2 = prePoint.y + dis_y * 0.5;
|
217919
|
-
} else {
|
217920
|
-
point.lastX1 = prePoint.x + dis_x * 0.3;
|
217921
|
-
point.lastY1 = prePoint.y + dis_y * 0.3;
|
217922
|
-
point.lastX2 = prePoint.x + dis_x * 0.7;
|
217923
|
-
point.lastY2 = prePoint.y + dis_y * 0.7;
|
217924
|
-
}
|
217925
|
-
point.perLineWidth = (prePoint.lineWidth + point.lineWidth) / 2;
|
217926
|
-
if (typeof prePoint.lastX1 === "number") {
|
217927
|
-
_this.drawCurveLine(prePoint.lastX2, prePoint.lastY2, prePoint.x, prePoint.y, point.lastX1, point.lastY1, point.perLineWidth);
|
217928
|
-
if (prePoint.isFirstPoint)
|
217929
|
-
return;
|
217930
|
-
if (prePoint.lastX1 === prePoint.lastX2 && prePoint.lastY1 === prePoint.lastY2)
|
217931
|
-
return;
|
217932
|
-
var data2 = _this.getRadianData(prePoint.lastX1, prePoint.lastY1, prePoint.lastX2, prePoint.lastY2);
|
217933
|
-
var points1 = _this.getRadianPoints(data2, prePoint.lastX1, prePoint.lastY1, prePoint.perLineWidth / 2);
|
217934
|
-
var points2 = _this.getRadianPoints(data2, prePoint.lastX2, prePoint.lastY2, point.perLineWidth / 2);
|
217935
|
-
_this.drawTrapezoid(points1[0], points2[0], points2[1], points1[1]);
|
217936
|
-
} else {
|
217937
|
-
point.isFirstPoint = true;
|
217938
|
-
}
|
217939
|
-
};
|
217940
|
-
this.drawNoSmoothLine = function(prePoint, point) {
|
217941
|
-
point.lastX = prePoint.x + (point.x - prePoint.x) * 0.5;
|
217942
|
-
point.lastY = prePoint.y + (point.y - prePoint.y) * 0.5;
|
217943
|
-
if (typeof prePoint.lastX === "number") {
|
217944
|
-
_this.drawCurveLine(prePoint.lastX, prePoint.lastY, prePoint.x, prePoint.y, point.lastX, point.lastY, _this.maxWidth);
|
217945
|
-
}
|
217946
|
-
};
|
217947
|
-
this.drawCurveLine = function(x1, y1, x2, y2, x3, y3, lineWidth) {
|
217948
|
-
_this.ctx.lineWidth = Number(lineWidth.toFixed(1));
|
217949
|
-
_this.ctx.beginPath();
|
217950
|
-
_this.ctx.moveTo(Number(x1.toFixed(1)), Number(y1.toFixed(1)));
|
217951
|
-
_this.ctx.quadraticCurveTo(Number(x2.toFixed(1)), Number(y2.toFixed(1)), Number(x3.toFixed(1)), Number(y3.toFixed(1)));
|
217952
|
-
_this.ctx.stroke();
|
217953
|
-
};
|
217954
|
-
this.drawTrapezoid = function(point1, point2, point3, point4) {
|
217955
|
-
_this.ctx.beginPath();
|
217956
|
-
_this.ctx.moveTo(Number(point1.x.toFixed(1)), Number(point1.y.toFixed(1)));
|
217957
|
-
_this.ctx.lineTo(Number(point2.x.toFixed(1)), Number(point2.y.toFixed(1)));
|
217958
|
-
_this.ctx.lineTo(Number(point3.x.toFixed(1)), Number(point3.y.toFixed(1)));
|
217959
|
-
_this.ctx.lineTo(Number(point4.x.toFixed(1)), Number(point4.y.toFixed(1)));
|
217960
|
-
_this.ctx.fillStyle = _this.color;
|
217961
|
-
_this.ctx.fill();
|
217962
|
-
};
|
217963
|
-
this.drawBgColor = function() {
|
217964
|
-
if (!_this.bgColor)
|
217965
|
-
return;
|
217966
|
-
_this.ctx.fillStyle = _this.bgColor;
|
217967
|
-
_this.ctx.fillRect(0, 0, _this.width, _this.height);
|
217968
|
-
};
|
217969
|
-
this.drawByImageUrl = function(url2) {
|
217970
|
-
var image = new Image();
|
217971
|
-
image.onload = function() {
|
217972
|
-
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
217973
|
-
_this.ctx.drawImage(image, 0, 0, _this.width, _this.height);
|
217974
|
-
};
|
217975
|
-
image.crossOrigin = "anonymous";
|
217976
|
-
image.src = url2;
|
217977
|
-
};
|
217978
|
-
this.addHistory = function() {
|
217979
|
-
if (!_this.maxHistoryLength || !_this.canAddHistory)
|
217980
|
-
return;
|
217981
|
-
_this.canAddHistory = false;
|
217982
|
-
_this.historyList.push(_this.canvas.toDataURL());
|
217983
|
-
_this.historyList = _this.historyList.slice(-_this.maxHistoryLength);
|
217984
|
-
};
|
217985
|
-
this.clear = function() {
|
217986
|
-
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
217987
|
-
_this.drawBgColor();
|
217988
|
-
_this.historyList.length = 0;
|
217989
|
-
};
|
217990
|
-
this.undo = function() {
|
217991
|
-
var dataUrl = _this.historyList.splice(-1)[0];
|
217992
|
-
dataUrl && _this.drawByImageUrl(dataUrl);
|
217993
|
-
};
|
217994
|
-
this.toDataURL = function() {
|
217995
|
-
var type4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "image/png";
|
217996
|
-
var quality = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
217997
|
-
if (_this.canvas.width === _this.width) {
|
217998
|
-
return _this.canvas.toDataURL(type4, quality);
|
217999
|
-
}
|
218000
|
-
var canvas = document.createElement("canvas");
|
218001
|
-
canvas.width = _this.width;
|
218002
|
-
canvas.height = _this.height;
|
218003
|
-
var ctx = canvas.getContext("2d");
|
218004
|
-
ctx.drawImage(_this.canvas, 0, 0, canvas.width, canvas.height);
|
218005
|
-
return canvas.toDataURL(type4, quality);
|
218006
|
-
};
|
218007
|
-
this.getPNG = function() {
|
218008
|
-
return _this.toDataURL();
|
218009
|
-
};
|
218010
|
-
this.getJPG = function() {
|
218011
|
-
var quality = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0.8;
|
218012
|
-
return _this.toDataURL("image/jpeg", quality);
|
218013
|
-
};
|
218014
|
-
this.isEmpty = function() {
|
218015
|
-
var canvas = document.createElement("canvas");
|
218016
|
-
var ctx = canvas.getContext("2d");
|
218017
|
-
canvas.width = _this.canvas.width;
|
218018
|
-
canvas.height = _this.canvas.height;
|
218019
|
-
if (_this.bgColor) {
|
218020
|
-
ctx.fillStyle = _this.bgColor;
|
218021
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
218022
|
-
} else if (_this.scale !== 1) {
|
218023
|
-
ctx.scale(_this.scale, _this.scale);
|
218024
|
-
}
|
218025
|
-
return canvas.toDataURL() === _this.canvas.toDataURL();
|
218026
|
-
};
|
218027
|
-
this.getRotateCanvas = function() {
|
218028
|
-
var degree = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 90;
|
218029
|
-
if (degree > 0) {
|
218030
|
-
degree = degree > 90 ? 180 : 90;
|
218031
|
-
} else {
|
218032
|
-
degree = degree < -90 ? 180 : -90;
|
218033
|
-
}
|
218034
|
-
var canvas = document.createElement("canvas");
|
218035
|
-
var w2 = _this.width;
|
218036
|
-
var h2 = _this.height;
|
218037
|
-
if (degree === 180) {
|
218038
|
-
canvas.width = w2;
|
218039
|
-
canvas.height = h2;
|
218040
|
-
} else {
|
218041
|
-
canvas.width = h2;
|
218042
|
-
canvas.height = w2;
|
218043
|
-
}
|
218044
|
-
var ctx = canvas.getContext("2d");
|
218045
|
-
ctx.rotate(degree * Math.PI / 180);
|
218046
|
-
if (degree === 90) {
|
218047
|
-
ctx.drawImage(_this.canvas, 0, -h2, w2, h2);
|
218048
|
-
} else if (degree === -90) {
|
218049
|
-
ctx.drawImage(_this.canvas, -w2, 0, w2, h2);
|
218050
|
-
} else if (degree === 180) {
|
218051
|
-
ctx.drawImage(_this.canvas, -w2, -h2, w2, h2);
|
218052
|
-
}
|
218053
|
-
return canvas;
|
218054
|
-
};
|
218055
|
-
this.init(_canvas, options2);
|
218056
|
-
}
|
218057
|
-
_createClass(SmoothSignature2, [{
|
218058
|
-
key: "init",
|
218059
|
-
value: function init2(canvas) {
|
218060
|
-
var options2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
218061
|
-
if (!canvas)
|
218062
|
-
return;
|
218063
|
-
this.canvas = canvas;
|
218064
|
-
this.ctx = canvas.getContext("2d");
|
218065
|
-
this.width = options2.width || canvas.clientWidth || this.width;
|
218066
|
-
this.height = options2.height || canvas.clientHeight || this.height;
|
218067
|
-
this.scale = options2.scale || this.scale;
|
218068
|
-
this.color = options2.color || this.color;
|
218069
|
-
this.bgColor = options2.bgColor || this.bgColor;
|
218070
|
-
this.openSmooth = options2.openSmooth === void 0 ? this.openSmooth : !!options2.openSmooth;
|
218071
|
-
this.minWidth = options2.minWidth || this.minWidth;
|
218072
|
-
this.maxWidth = options2.maxWidth || this.maxWidth;
|
218073
|
-
this.minSpeed = options2.minSpeed || this.minSpeed;
|
218074
|
-
this.maxWidthDiffRate = options2.maxWidthDiffRate || this.maxWidthDiffRate;
|
218075
|
-
this.maxHistoryLength = options2.maxHistoryLength || this.maxHistoryLength;
|
218076
|
-
this.onStart = options2.onStart;
|
218077
|
-
this.onEnd = options2.onEnd;
|
218078
|
-
if (this.scale > 0) {
|
218079
|
-
this.canvas.height = this.height * this.scale;
|
218080
|
-
this.canvas.width = this.width * this.scale;
|
218081
|
-
if (this.scale !== 1) {
|
218082
|
-
this.canvas.style.width = this.width + "px";
|
218083
|
-
this.canvas.style.height = this.height + "px";
|
218084
|
-
this.ctx.scale(this.scale, this.scale);
|
218085
|
-
}
|
218086
|
-
}
|
218087
|
-
this.ctx.lineCap = "round";
|
218088
|
-
this.drawBgColor();
|
218089
|
-
this.addListener();
|
218090
|
-
}
|
218091
|
-
}]);
|
218092
|
-
return SmoothSignature2;
|
218093
|
-
}();
|
218094
|
-
const _hoisted_1$h = { class: "wrap1" };
|
218095
|
-
const _hoisted_2$1 = { class: "wrap2" };
|
218096
|
-
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
218097
|
-
__name: "index",
|
218098
|
-
props: {
|
218099
|
-
showFull: {
|
218100
|
-
type: Boolean,
|
218101
|
-
default: true
|
218102
|
-
}
|
218103
|
-
},
|
218104
|
-
emits: ["save"],
|
218105
|
-
setup(__props, { emit: __emit }) {
|
218106
|
-
const signFinish = ref$1(null);
|
218107
|
-
const { width: signFinishWidth, height: signFinishHeight } = useElementSize(signFinish);
|
218108
|
-
const props = __props;
|
218109
|
-
const showFull = ref$1(false);
|
218110
|
-
const canvas2 = ref$1(null);
|
218111
|
-
const canvas1 = ref$1(null);
|
218112
|
-
const signature1 = ref$1(null);
|
218113
|
-
const signature2 = ref$1(null);
|
218114
|
-
const emit = __emit;
|
218115
|
-
const handleFull = () => {
|
218116
|
-
var _a2, _b;
|
218117
|
-
showFull.value = !showFull.value;
|
218118
|
-
(_a2 = signature1 == null ? void 0 : signature1.value) == null ? void 0 : _a2.clear();
|
218119
|
-
(_b = signature2 == null ? void 0 : signature2.value) == null ? void 0 : _b.clear();
|
218120
|
-
};
|
218121
|
-
const initSignature1 = () => {
|
218122
|
-
const canvas = canvas1.value;
|
218123
|
-
const options2 = {
|
218124
|
-
width: signFinishWidth.value - 30,
|
218125
|
-
height: 200,
|
218126
|
-
minWidth: 2,
|
218127
|
-
maxWidth: 6,
|
218128
|
-
openSmooth: false,
|
218129
|
-
bgColor: "#ffffff"
|
218130
|
-
};
|
218131
|
-
signature1.value = new SmoothSignature(canvas, options2);
|
218132
|
-
};
|
218133
|
-
const initSignture2 = () => {
|
218134
|
-
const canvas = canvas2.value;
|
218135
|
-
const options2 = {
|
218136
|
-
width: signFinishWidth.value - 120,
|
218137
|
-
height: signFinishHeight.value - 60,
|
218138
|
-
minWidth: 3,
|
218139
|
-
maxWidth: 10,
|
218140
|
-
openSmooth: false,
|
218141
|
-
bgColor: "#ffffff"
|
218142
|
-
};
|
218143
|
-
signature2.value = new SmoothSignature(canvas, options2);
|
218649
|
+
if (protoProps)
|
218650
|
+
_defineProperties(Constructor.prototype, protoProps);
|
218651
|
+
if (staticProps)
|
218652
|
+
_defineProperties(Constructor, staticProps);
|
218653
|
+
return Constructor;
|
218654
|
+
}
|
218655
|
+
var isMobile = /Android|iPhone|iPad|Mobile/i.test(navigator.userAgent);
|
218656
|
+
var SmoothSignature = /* @__PURE__ */ function() {
|
218657
|
+
function SmoothSignature2(_canvas, options2) {
|
218658
|
+
var _this = this;
|
218659
|
+
_classCallCheck(this, SmoothSignature2);
|
218660
|
+
this.canvas = {};
|
218661
|
+
this.ctx = {};
|
218662
|
+
this.width = 320;
|
218663
|
+
this.height = 200;
|
218664
|
+
this.scale = window.devicePixelRatio || 1;
|
218665
|
+
this.color = "black";
|
218666
|
+
this.bgColor = "";
|
218667
|
+
this.canDraw = false;
|
218668
|
+
this.openSmooth = true;
|
218669
|
+
this.minWidth = 2;
|
218670
|
+
this.maxWidth = 6;
|
218671
|
+
this.minSpeed = 1.5;
|
218672
|
+
this.maxWidthDiffRate = 20;
|
218673
|
+
this.points = [];
|
218674
|
+
this.canAddHistory = true;
|
218675
|
+
this.historyList = [];
|
218676
|
+
this.maxHistoryLength = 20;
|
218677
|
+
this.onStart = function() {
|
218144
218678
|
};
|
218145
|
-
|
218146
|
-
const sgn = signature1.value;
|
218147
|
-
sgn.clear();
|
218679
|
+
this.onEnd = function() {
|
218148
218680
|
};
|
218149
|
-
|
218150
|
-
|
218151
|
-
|
218681
|
+
this.addListener = function() {
|
218682
|
+
_this.removeListener();
|
218683
|
+
_this.canvas.style.touchAction = "none";
|
218684
|
+
if (isMobile && ("ontouchstart" in window || navigator.maxTouchPoints)) {
|
218685
|
+
_this.canvas.addEventListener("touchstart", _this.onDrawStart, {
|
218686
|
+
passive: false
|
218687
|
+
});
|
218688
|
+
_this.canvas.addEventListener("touchmove", _this.onDrawMove, {
|
218689
|
+
passive: false
|
218690
|
+
});
|
218691
|
+
document.addEventListener("touchcancel", _this.onDrawEnd, {
|
218692
|
+
passive: false
|
218693
|
+
});
|
218694
|
+
document.addEventListener("touchend", _this.onDrawEnd, {
|
218695
|
+
passive: false
|
218696
|
+
});
|
218697
|
+
} else {
|
218698
|
+
_this.canvas.addEventListener("mousedown", _this.onDrawStart);
|
218699
|
+
_this.canvas.addEventListener("mousemove", _this.onDrawMove);
|
218700
|
+
document.addEventListener("mouseup", _this.onDrawEnd);
|
218701
|
+
}
|
218152
218702
|
};
|
218153
|
-
|
218154
|
-
|
218155
|
-
|
218703
|
+
this.removeListener = function() {
|
218704
|
+
_this.canvas.style.touchAction = "auto";
|
218705
|
+
_this.canvas.removeEventListener("touchstart", _this.onDrawStart);
|
218706
|
+
_this.canvas.removeEventListener("touchmove", _this.onDrawMove);
|
218707
|
+
document.removeEventListener("touchend", _this.onDrawEnd);
|
218708
|
+
document.removeEventListener("touchcancel", _this.onDrawEnd);
|
218709
|
+
_this.canvas.removeEventListener("mousedown", _this.onDrawStart);
|
218710
|
+
_this.canvas.removeEventListener("mousemove", _this.onDrawMove);
|
218711
|
+
document.removeEventListener("mouseup", _this.onDrawEnd);
|
218156
218712
|
};
|
218157
|
-
|
218158
|
-
|
218159
|
-
|
218713
|
+
this.onDrawStart = function(e2) {
|
218714
|
+
e2.preventDefault();
|
218715
|
+
_this.canDraw = true;
|
218716
|
+
_this.canAddHistory = true;
|
218717
|
+
_this.ctx.strokeStyle = _this.color;
|
218718
|
+
_this.initPoint(e2);
|
218719
|
+
_this.onStart && _this.onStart(e2);
|
218160
218720
|
};
|
218161
|
-
|
218162
|
-
|
218163
|
-
|
218164
|
-
if (isEmpty2) {
|
218165
|
-
alert("isEmpty");
|
218721
|
+
this.onDrawMove = function(e2) {
|
218722
|
+
e2.preventDefault();
|
218723
|
+
if (!_this.canDraw)
|
218166
218724
|
return;
|
218167
|
-
|
218168
|
-
|
218169
|
-
emit("save", pngUrl);
|
218170
|
-
};
|
218171
|
-
const handlePreview2 = () => {
|
218172
|
-
const sgn2 = signature2.value;
|
218173
|
-
const isEmpty2 = sgn2.isEmpty();
|
218174
|
-
if (isEmpty2) {
|
218175
|
-
alert("isEmpty");
|
218725
|
+
_this.initPoint(e2);
|
218726
|
+
if (_this.points.length < 2)
|
218176
218727
|
return;
|
218728
|
+
_this.addHistory();
|
218729
|
+
var point = _this.points.slice(-1)[0];
|
218730
|
+
var prePoint = _this.points.slice(-2, -1)[0];
|
218731
|
+
if (window.requestAnimationFrame) {
|
218732
|
+
window.requestAnimationFrame(function() {
|
218733
|
+
return _this.onDraw(prePoint, point);
|
218734
|
+
});
|
218735
|
+
} else {
|
218736
|
+
_this.onDraw(prePoint, point);
|
218177
218737
|
}
|
218178
|
-
const canvas = sgn2.getRotateCanvas(-90);
|
218179
|
-
const pngUrl = canvas.toDataURL();
|
218180
|
-
emit("save", pngUrl);
|
218181
218738
|
};
|
218182
|
-
|
218183
|
-
|
218184
|
-
|
218185
|
-
|
218186
|
-
|
218187
|
-
}
|
218188
|
-
});
|
218189
|
-
return (_ctx, _cache) => {
|
218190
|
-
return openBlock(), createElementBlock("div", {
|
218191
|
-
class: "h-full w-full sign-finish",
|
218192
|
-
ref_key: "signFinish",
|
218193
|
-
ref: signFinish
|
218194
|
-
}, [
|
218195
|
-
withDirectives(createElementVNode("div", _hoisted_1$h, [
|
218196
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sign-title" }, "请在区域内签字", -1)),
|
218197
|
-
createElementVNode("canvas", {
|
218198
|
-
class: "canvas1",
|
218199
|
-
ref_key: "canvas1",
|
218200
|
-
ref: canvas1
|
218201
|
-
}, null, 512),
|
218202
|
-
createElementVNode("div", { class: "actions" }, [
|
218203
|
-
createElementVNode("button", {
|
218204
|
-
class: "danger",
|
218205
|
-
onClick: handleClear1
|
218206
|
-
}, "清除"),
|
218207
|
-
createElementVNode("button", {
|
218208
|
-
class: "warning",
|
218209
|
-
onClick: handleUndo1
|
218210
|
-
}, "撤销"),
|
218211
|
-
createElementVNode("button", {
|
218212
|
-
class: "primary",
|
218213
|
-
onClick: handleFull
|
218214
|
-
}, "横屏"),
|
218215
|
-
createElementVNode("button", {
|
218216
|
-
class: "success",
|
218217
|
-
onClick: handlePreview1
|
218218
|
-
}, "保存")
|
218219
|
-
])
|
218220
|
-
], 512), [
|
218221
|
-
[vShow, showFull.value]
|
218222
|
-
]),
|
218223
|
-
withDirectives(createElementVNode("div", _hoisted_2$1, [
|
218224
|
-
createElementVNode("div", { class: "actionsWrap" }, [
|
218225
|
-
createElementVNode("div", { class: "actions" }, [
|
218226
|
-
createElementVNode("button", {
|
218227
|
-
class: "danger",
|
218228
|
-
onClick: handleClear2
|
218229
|
-
}, "清除"),
|
218230
|
-
createElementVNode("button", {
|
218231
|
-
class: "warning",
|
218232
|
-
onClick: handleUndo2
|
218233
|
-
}, "撤销"),
|
218234
|
-
createElementVNode("button", {
|
218235
|
-
class: "primary",
|
218236
|
-
onClick: handleFull
|
218237
|
-
}, "竖屏"),
|
218238
|
-
createElementVNode("button", {
|
218239
|
-
class: "success",
|
218240
|
-
onClick: handlePreview2
|
218241
|
-
}, "保存")
|
218242
|
-
])
|
218243
|
-
]),
|
218244
|
-
createElementVNode("canvas", {
|
218245
|
-
class: "canvas",
|
218246
|
-
ref_key: "canvas2",
|
218247
|
-
ref: canvas2
|
218248
|
-
}, null, 512)
|
218249
|
-
], 512), [
|
218250
|
-
[vShow, !showFull.value]
|
218251
|
-
])
|
218252
|
-
], 512);
|
218739
|
+
this.onDraw = function(prePoint, point) {
|
218740
|
+
if (_this.openSmooth) {
|
218741
|
+
_this.drawSmoothLine(prePoint, point);
|
218742
|
+
} else {
|
218743
|
+
_this.drawNoSmoothLine(prePoint, point);
|
218744
|
+
}
|
218253
218745
|
};
|
218254
|
-
|
218255
|
-
|
218256
|
-
const bcSignature = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-e2292518"]]);
|
218257
|
-
const _hoisted_1$g = { class: "text-[#606266]" };
|
218258
|
-
const _hoisted_2 = { key: 1 };
|
218259
|
-
const _hoisted_3 = { class: "mb-[10px]" };
|
218260
|
-
const _hoisted_4 = {
|
218261
|
-
key: 0,
|
218262
|
-
class: "flex justify-center align-middle mt-[10px]"
|
218263
|
-
};
|
218264
|
-
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
218265
|
-
__name: "baseForm",
|
218266
|
-
props: {
|
218267
|
-
data: {
|
218268
|
-
// 表单数据
|
218269
|
-
type: Object,
|
218270
|
-
default: () => ({})
|
218271
|
-
},
|
218272
|
-
config: {
|
218273
|
-
// 表单配置项
|
218274
|
-
type: Array,
|
218275
|
-
default: () => []
|
218276
|
-
},
|
218277
|
-
isRecursive: {
|
218278
|
-
// 是否为递归
|
218279
|
-
type: Boolean,
|
218280
|
-
default: false
|
218281
|
-
},
|
218282
|
-
isVModel: {
|
218283
|
-
// 是否为v-model
|
218284
|
-
type: Boolean,
|
218285
|
-
default: false
|
218286
|
-
},
|
218287
|
-
xs: {
|
218288
|
-
type: Number,
|
218289
|
-
default: 24
|
218290
|
-
},
|
218291
|
-
sm: {
|
218292
|
-
type: Number,
|
218293
|
-
default: 24
|
218294
|
-
},
|
218295
|
-
md: {
|
218296
|
-
type: Number,
|
218297
|
-
default: 24
|
218298
|
-
},
|
218299
|
-
lg: {
|
218300
|
-
type: Number,
|
218301
|
-
default: 24
|
218302
|
-
},
|
218303
|
-
xl: {
|
218304
|
-
type: Number,
|
218305
|
-
default: 24
|
218306
|
-
}
|
218307
|
-
},
|
218308
|
-
setup(__props, { expose: __expose }) {
|
218309
|
-
const props = __props;
|
218310
|
-
const formRef = ref$1();
|
218311
|
-
const oldData = ref$1(props.data);
|
218312
|
-
let formData2 = ref$1(props.isRecursive || props.isVModel ? props.data : _$4.cloneDeep(props.data));
|
218313
|
-
let formConfig2 = ref$1(props.config);
|
218314
|
-
const submitForm = () => {
|
218315
|
-
console.log("submitForm");
|
218316
|
-
if (!formRef.value)
|
218746
|
+
this.onDrawEnd = function(e2) {
|
218747
|
+
if (!_this.canDraw)
|
218317
218748
|
return;
|
218318
|
-
|
218319
|
-
|
218320
|
-
|
218321
|
-
|
218322
|
-
} else {
|
218323
|
-
console.log("error submit!", formData2.value);
|
218324
|
-
return false;
|
218325
|
-
}
|
218326
|
-
});
|
218749
|
+
_this.canDraw = false;
|
218750
|
+
_this.canAddHistory = true;
|
218751
|
+
_this.points = [];
|
218752
|
+
_this.onEnd && _this.onEnd(e2);
|
218327
218753
|
};
|
218328
|
-
|
218329
|
-
|
218330
|
-
|
218331
|
-
|
218332
|
-
|
218333
|
-
}
|
218334
|
-
formRef.value.validate((valid) => {
|
218335
|
-
if (valid) {
|
218336
|
-
resolve3(true);
|
218337
|
-
} else {
|
218338
|
-
resolve3(false);
|
218339
|
-
}
|
218340
|
-
});
|
218341
|
-
});
|
218754
|
+
this.getLineWidth = function(speed) {
|
218755
|
+
var minSpeed = _this.minSpeed > 10 ? 10 : _this.minSpeed < 1 ? 1 : _this.minSpeed;
|
218756
|
+
var addWidth = (_this.maxWidth - _this.minWidth) * speed / minSpeed;
|
218757
|
+
var lineWidth = Math.max(_this.maxWidth - addWidth, _this.minWidth);
|
218758
|
+
return Math.min(lineWidth, _this.maxWidth);
|
218342
218759
|
};
|
218343
|
-
|
218344
|
-
|
218345
|
-
|
218346
|
-
|
218347
|
-
|
218348
|
-
|
218349
|
-
|
218350
|
-
|
218351
|
-
|
218352
|
-
|
218353
|
-
|
218354
|
-
|
218355
|
-
|
218356
|
-
|
218357
|
-
}
|
218358
|
-
|
218359
|
-
|
218360
|
-
|
218361
|
-
|
218362
|
-
|
218363
|
-
|
218364
|
-
|
218365
|
-
|
218366
|
-
|
218367
|
-
|
218368
|
-
|
218369
|
-
|
218370
|
-
|
218371
|
-
|
218372
|
-
|
218373
|
-
|
218374
|
-
|
218375
|
-
|
218376
|
-
sm: !__props.isRecursive ? 24 : __props.sm,
|
218377
|
-
md: !__props.isRecursive ? 24 : __props.md,
|
218378
|
-
lg: !__props.isRecursive ? 24 : __props.lg,
|
218379
|
-
xl: !__props.isRecursive ? 24 : __props.xl,
|
218380
|
-
class: "mb-[20px]"
|
218381
|
-
}, {
|
218382
|
-
default: withCtx(() => [
|
218383
|
-
item["el"] != "title" ? (openBlock(), createBlock(_component_hs_form_item, mergeProps({
|
218384
|
-
key: 0,
|
218385
|
-
ref_for: true
|
218386
|
-
}, item), {
|
218387
|
-
label: withCtx(() => [
|
218388
|
-
createElementVNode("span", _hoisted_1$g, " " + toDisplayString(item["label"]) + " ", 1),
|
218389
|
-
createVNode(_component_el_tooltip, {
|
218390
|
-
class: "box-item",
|
218391
|
-
effect: "dark",
|
218392
|
-
content: item["tooltip"] || item["label"],
|
218393
|
-
placement: "top"
|
218394
|
-
}, {
|
218395
|
-
default: withCtx(() => [
|
218396
|
-
createElementVNode("div", null, [
|
218397
|
-
createVNode(_component_el_icon, null, {
|
218398
|
-
default: withCtx(() => [
|
218399
|
-
createVNode(_component_ele_Warning)
|
218400
|
-
]),
|
218401
|
-
_: 1
|
218402
|
-
})
|
218403
|
-
])
|
218404
|
-
]),
|
218405
|
-
_: 2
|
218406
|
-
}, 1032, ["content"])
|
218407
|
-
]),
|
218408
|
-
default: withCtx(() => [
|
218409
|
-
(openBlock(), createBlock(resolveDynamicComponent(item["el"]), mergeProps({
|
218410
|
-
modelValue: unref(formData2)[item.prop],
|
218411
|
-
"onUpdate:modelValue": ($event) => unref(formData2)[item.prop] = $event,
|
218412
|
-
clearable: item.clearable != false,
|
218413
|
-
placeholder: "请输入",
|
218414
|
-
ref_for: true
|
218415
|
-
}, item["attrs"] || {}), {
|
218416
|
-
default: withCtx(() => [
|
218417
|
-
item["op"] ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item["op"] || [], (value, idx) => {
|
218418
|
-
return openBlock(), createBlock(resolveDynamicComponent(item["cel"]), {
|
218419
|
-
key: idx,
|
218420
|
-
label: value["label"],
|
218421
|
-
value: value["value"]
|
218422
|
-
}, null, 8, ["label", "value"]);
|
218423
|
-
}), 128)) : createCommentVNode("", true)
|
218424
|
-
]),
|
218425
|
-
_: 2
|
218426
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "clearable"]))
|
218427
|
-
]),
|
218428
|
-
_: 2
|
218429
|
-
}, 1040)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
218430
|
-
createElementVNode("div", _hoisted_3, [
|
218431
|
-
createVNode(_component_hs_alert, {
|
218432
|
-
title: item["label"],
|
218433
|
-
type: "info",
|
218434
|
-
closable: false
|
218435
|
-
}, null, 8, ["title"])
|
218436
|
-
]),
|
218437
|
-
item["children"] ? (openBlock(), createBlock(_component_base_form, {
|
218438
|
-
key: 0,
|
218439
|
-
data: unref(formData2)[item.prop],
|
218440
|
-
config: item["children"],
|
218441
|
-
isRecursive: true,
|
218442
|
-
xs: __props.xs,
|
218443
|
-
sm: __props.sm,
|
218444
|
-
md: __props.md,
|
218445
|
-
lg: __props.lg,
|
218446
|
-
xl: __props.xl
|
218447
|
-
}, null, 8, ["data", "config", "xs", "sm", "md", "lg", "xl"])) : createCommentVNode("", true)
|
218448
|
-
]))
|
218449
|
-
]),
|
218450
|
-
_: 2
|
218451
|
-
}, 1032, ["xs", "sm", "md", "lg", "xl"]);
|
218452
|
-
}), 128))
|
218453
|
-
]),
|
218454
|
-
_: 1
|
218455
|
-
})
|
218456
|
-
]),
|
218457
|
-
_: 1
|
218458
|
-
}, 8, ["model"]),
|
218459
|
-
!__props.isRecursive && !__props.isVModel ? (openBlock(), createElementBlock("footer", _hoisted_4, [
|
218460
|
-
createVNode(_component_hs_button, {
|
218461
|
-
type: "primary",
|
218462
|
-
onClick: submitForm
|
218760
|
+
this.getRadianData = function(x1, y1, x2, y2) {
|
218761
|
+
var dis_x = x2 - x1;
|
218762
|
+
var dis_y = y2 - y1;
|
218763
|
+
if (dis_x === 0) {
|
218764
|
+
return {
|
218765
|
+
val: 0,
|
218766
|
+
pos: -1
|
218767
|
+
};
|
218768
|
+
}
|
218769
|
+
if (dis_y === 0) {
|
218770
|
+
return {
|
218771
|
+
val: 0,
|
218772
|
+
pos: 1
|
218773
|
+
};
|
218774
|
+
}
|
218775
|
+
var val = Math.abs(Math.atan(dis_y / dis_x));
|
218776
|
+
if (x2 > x1 && y2 < y1 || x2 < x1 && y2 > y1) {
|
218777
|
+
return {
|
218778
|
+
val,
|
218779
|
+
pos: 1
|
218780
|
+
};
|
218781
|
+
}
|
218782
|
+
return {
|
218783
|
+
val,
|
218784
|
+
pos: -1
|
218785
|
+
};
|
218786
|
+
};
|
218787
|
+
this.getRadianPoints = function(radianData, x2, y2, halfLineWidth) {
|
218788
|
+
if (radianData.val === 0) {
|
218789
|
+
if (radianData.pos === 1) {
|
218790
|
+
return [{
|
218791
|
+
x: x2,
|
218792
|
+
y: y2 + halfLineWidth
|
218463
218793
|
}, {
|
218464
|
-
|
218465
|
-
|
218466
|
-
|
218467
|
-
|
218468
|
-
|
218469
|
-
|
218470
|
-
|
218794
|
+
x: x2,
|
218795
|
+
y: y2 - halfLineWidth
|
218796
|
+
}];
|
218797
|
+
}
|
218798
|
+
return [{
|
218799
|
+
y: y2,
|
218800
|
+
x: x2 + halfLineWidth
|
218801
|
+
}, {
|
218802
|
+
y: y2,
|
218803
|
+
x: x2 - halfLineWidth
|
218804
|
+
}];
|
218805
|
+
}
|
218806
|
+
var dis_x = Math.sin(radianData.val) * halfLineWidth;
|
218807
|
+
var dis_y = Math.cos(radianData.val) * halfLineWidth;
|
218808
|
+
if (radianData.pos === 1) {
|
218809
|
+
return [{
|
218810
|
+
x: x2 + dis_x,
|
218811
|
+
y: y2 + dis_y
|
218812
|
+
}, {
|
218813
|
+
x: x2 - dis_x,
|
218814
|
+
y: y2 - dis_y
|
218815
|
+
}];
|
218816
|
+
}
|
218817
|
+
return [{
|
218818
|
+
x: x2 + dis_x,
|
218819
|
+
y: y2 - dis_y
|
218820
|
+
}, {
|
218821
|
+
x: x2 - dis_x,
|
218822
|
+
y: y2 + dis_y
|
218823
|
+
}];
|
218471
218824
|
};
|
218472
|
-
|
218473
|
-
|
218474
|
-
|
218475
|
-
|
218476
|
-
|
218477
|
-
|
218478
|
-
|
218479
|
-
|
218480
|
-
|
218481
|
-
|
218482
|
-
|
218483
|
-
|
218484
|
-
|
218825
|
+
this.initPoint = function(event) {
|
218826
|
+
var t2 = Date.now();
|
218827
|
+
var prePoint = _this.points.slice(-1)[0];
|
218828
|
+
if (prePoint && prePoint.t === t2) {
|
218829
|
+
return;
|
218830
|
+
}
|
218831
|
+
var rect = _this.canvas.getBoundingClientRect();
|
218832
|
+
var e2 = event.touches && event.touches[0] || event;
|
218833
|
+
var x2 = e2.clientX - rect.left;
|
218834
|
+
var y2 = e2.clientY - rect.top;
|
218835
|
+
if (prePoint && prePoint.x === x2 && prePoint.y === y2) {
|
218836
|
+
return;
|
218837
|
+
}
|
218838
|
+
var point = {
|
218839
|
+
x: x2,
|
218840
|
+
y: y2,
|
218841
|
+
t: t2
|
218842
|
+
};
|
218843
|
+
if (_this.openSmooth && prePoint) {
|
218844
|
+
var prePoint2 = _this.points.slice(-2, -1)[0];
|
218845
|
+
point.distance = Math.sqrt(Math.pow(point.x - prePoint.x, 2) + Math.pow(point.y - prePoint.y, 2));
|
218846
|
+
point.speed = point.distance / (point.t - prePoint.t || 0.1);
|
218847
|
+
point.lineWidth = _this.getLineWidth(point.speed);
|
218848
|
+
if (prePoint2 && prePoint2.lineWidth && prePoint.lineWidth) {
|
218849
|
+
var rate = (point.lineWidth - prePoint.lineWidth) / prePoint.lineWidth;
|
218850
|
+
var maxRate = _this.maxWidthDiffRate / 100;
|
218851
|
+
maxRate = maxRate > 1 ? 1 : maxRate < 0.01 ? 0.01 : maxRate;
|
218852
|
+
if (Math.abs(rate) > maxRate) {
|
218853
|
+
var per = rate > 0 ? maxRate : -maxRate;
|
218854
|
+
point.lineWidth = prePoint.lineWidth * (1 + per);
|
218855
|
+
}
|
218856
|
+
}
|
218485
218857
|
}
|
218486
|
-
|
218487
|
-
|
218488
|
-
type: Boolean,
|
218489
|
-
default: false
|
218490
|
-
}
|
218491
|
-
},
|
218492
|
-
setup(__props) {
|
218493
|
-
const props = __props;
|
218494
|
-
let inputConfig = ref$1({
|
218495
|
-
inputAttrConfig: _$4.cloneDeep(inputAttrConfig),
|
218496
|
-
inputAttrConfigMap: _$4.cloneDeep(inputAttrConfigMap)
|
218497
|
-
});
|
218498
|
-
const data2 = ref$1(_$4.isEmpty(props.data) ? Object.assign(props.data, inputConfig.value.inputAttrConfigMap) : props.data);
|
218499
|
-
return (_ctx, _cache) => {
|
218500
|
-
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
218501
|
-
createVNode(baseForm, {
|
218502
|
-
data: data2.value,
|
218503
|
-
"onUpdate:data": _cache[0] || (_cache[0] = ($event) => data2.value = $event),
|
218504
|
-
config: unref(inputConfig).inputAttrConfig,
|
218505
|
-
isVModel: __props.isVModel
|
218506
|
-
}, null, 8, ["data", "config", "isVModel"])
|
218507
|
-
]);
|
218858
|
+
_this.points.push(point);
|
218859
|
+
_this.points = _this.points.slice(-3);
|
218508
218860
|
};
|
218509
|
-
|
218510
|
-
|
218511
|
-
|
218512
|
-
|
218513
|
-
|
218514
|
-
|
218515
|
-
|
218516
|
-
|
218517
|
-
|
218518
|
-
|
218519
|
-
|
218520
|
-
|
218861
|
+
this.drawSmoothLine = function(prePoint, point) {
|
218862
|
+
var dis_x = point.x - prePoint.x;
|
218863
|
+
var dis_y = point.y - prePoint.y;
|
218864
|
+
if (Math.abs(dis_x) + Math.abs(dis_y) <= _this.scale) {
|
218865
|
+
point.lastX1 = point.lastX2 = prePoint.x + dis_x * 0.5;
|
218866
|
+
point.lastY1 = point.lastY2 = prePoint.y + dis_y * 0.5;
|
218867
|
+
} else {
|
218868
|
+
point.lastX1 = prePoint.x + dis_x * 0.3;
|
218869
|
+
point.lastY1 = prePoint.y + dis_y * 0.3;
|
218870
|
+
point.lastX2 = prePoint.x + dis_x * 0.7;
|
218871
|
+
point.lastY2 = prePoint.y + dis_y * 0.7;
|
218872
|
+
}
|
218873
|
+
point.perLineWidth = (prePoint.lineWidth + point.lineWidth) / 2;
|
218874
|
+
if (typeof prePoint.lastX1 === "number") {
|
218875
|
+
_this.drawCurveLine(prePoint.lastX2, prePoint.lastY2, prePoint.x, prePoint.y, point.lastX1, point.lastY1, point.perLineWidth);
|
218876
|
+
if (prePoint.isFirstPoint)
|
218877
|
+
return;
|
218878
|
+
if (prePoint.lastX1 === prePoint.lastX2 && prePoint.lastY1 === prePoint.lastY2)
|
218879
|
+
return;
|
218880
|
+
var data2 = _this.getRadianData(prePoint.lastX1, prePoint.lastY1, prePoint.lastX2, prePoint.lastY2);
|
218881
|
+
var points1 = _this.getRadianPoints(data2, prePoint.lastX1, prePoint.lastY1, prePoint.perLineWidth / 2);
|
218882
|
+
var points2 = _this.getRadianPoints(data2, prePoint.lastX2, prePoint.lastY2, point.perLineWidth / 2);
|
218883
|
+
_this.drawTrapezoid(points1[0], points2[0], points2[1], points1[1]);
|
218884
|
+
} else {
|
218885
|
+
point.isFirstPoint = true;
|
218521
218886
|
}
|
218522
|
-
}
|
218523
|
-
},
|
218524
|
-
setup(__props) {
|
218525
|
-
const handClick = () => {
|
218526
|
-
console.log(data2);
|
218527
|
-
console.log(formData2);
|
218528
218887
|
};
|
218529
|
-
|
218530
|
-
|
218531
|
-
|
218532
|
-
|
218533
|
-
|
218534
|
-
|
218535
|
-
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
218536
|
-
createVNode(_component_hs_button, { onClick: handClick }, {
|
218537
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
218538
|
-
createTextVNode("父组件获取数据")
|
218539
|
-
])),
|
218540
|
-
_: 1
|
218541
|
-
}),
|
218542
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(inputEventConfig), (item, index2) => {
|
218543
|
-
return openBlock(), createElementBlock("div", { key: index2 }, [
|
218544
|
-
(openBlock(), createBlock(resolveDynamicComponent(item["el"]), mergeProps({
|
218545
|
-
modelValue: formData2.value[index2][item.prop],
|
218546
|
-
"onUpdate:modelValue": ($event) => formData2.value[index2][item.prop] = $event,
|
218547
|
-
clearable: "",
|
218548
|
-
placeholder: "请输入",
|
218549
|
-
ref_for: true
|
218550
|
-
}, item["attrs"] || {}), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
218551
|
-
]);
|
218552
|
-
}), 128))
|
218553
|
-
]);
|
218888
|
+
this.drawNoSmoothLine = function(prePoint, point) {
|
218889
|
+
point.lastX = prePoint.x + (point.x - prePoint.x) * 0.5;
|
218890
|
+
point.lastY = prePoint.y + (point.y - prePoint.y) * 0.5;
|
218891
|
+
if (typeof prePoint.lastX === "number") {
|
218892
|
+
_this.drawCurveLine(prePoint.lastX, prePoint.lastY, prePoint.x, prePoint.y, point.lastX, point.lastY, _this.maxWidth);
|
218893
|
+
}
|
218554
218894
|
};
|
218555
|
-
|
218556
|
-
|
218557
|
-
|
218558
|
-
|
218559
|
-
|
218560
|
-
|
218561
|
-
|
218562
|
-
|
218563
|
-
|
218564
|
-
|
218565
|
-
|
218566
|
-
|
218567
|
-
|
218568
|
-
|
218569
|
-
|
218570
|
-
|
218571
|
-
|
218572
|
-
|
218573
|
-
|
218574
|
-
|
218575
|
-
|
218576
|
-
|
218577
|
-
|
218578
|
-
|
218579
|
-
|
218580
|
-
|
218581
|
-
|
218582
|
-
|
218583
|
-
|
218584
|
-
|
218585
|
-
|
218586
|
-
|
218587
|
-
|
218588
|
-
|
218589
|
-
|
218590
|
-
|
218591
|
-
|
218592
|
-
|
218593
|
-
|
218594
|
-
|
218595
|
-
|
218596
|
-
|
218597
|
-
|
218598
|
-
|
218599
|
-
|
218600
|
-
|
218601
|
-
|
218602
|
-
|
218603
|
-
|
218604
|
-
|
218605
|
-
|
218606
|
-
|
218607
|
-
},
|
218608
|
-
{
|
218609
|
-
prop: "proxy",
|
218610
|
-
label: "代理",
|
218611
|
-
type: "string",
|
218612
|
-
el: "hs-input"
|
218613
|
-
},
|
218614
|
-
// {
|
218615
|
-
// prop: 'dictCode',
|
218616
|
-
// label: '字典code',
|
218617
|
-
// tooltip: '字典code',
|
218618
|
-
// type: 'string',
|
218619
|
-
// el: 'hs-input',
|
218620
|
-
// },
|
218621
|
-
{
|
218622
|
-
prop: "permissionsDict",
|
218623
|
-
label: "权限字典项",
|
218624
|
-
tooltip: "权限字典项",
|
218625
|
-
type: "string",
|
218626
|
-
el: "hs-input"
|
218627
|
-
},
|
218628
|
-
{
|
218629
|
-
prop: "multiple",
|
218630
|
-
label: "是否多选",
|
218631
|
-
tooltip: "是否多选",
|
218632
|
-
type: "boolean",
|
218633
|
-
el: "hs-switch"
|
218634
|
-
},
|
218635
|
-
{
|
218636
|
-
prop: "disabled",
|
218637
|
-
label: "是否禁用",
|
218638
|
-
tooltip: "是否禁用",
|
218639
|
-
type: "boolean",
|
218640
|
-
el: "hs-switch"
|
218641
|
-
},
|
218642
|
-
{
|
218643
|
-
prop: "value-key",
|
218644
|
-
label: "value 唯一标识",
|
218645
|
-
tooltip: "作为 value 唯一标识的键名,绑定值为对象类型时必填",
|
218646
|
-
type: "string",
|
218647
|
-
el: "hs-input"
|
218648
|
-
},
|
218649
|
-
{
|
218650
|
-
prop: "placeholder",
|
218651
|
-
label: "占位符",
|
218652
|
-
tooltip: "占位符,默认为“Select”",
|
218653
|
-
type: "string",
|
218654
|
-
el: "hs-input"
|
218655
|
-
},
|
218656
|
-
{
|
218657
|
-
prop: "size",
|
218658
|
-
label: "输入框尺寸",
|
218659
|
-
tooltip: "输入框尺寸",
|
218660
|
-
type: "enum",
|
218661
|
-
el: "hs-select",
|
218662
|
-
op: [
|
218663
|
-
{ label: "large", value: "large" },
|
218664
|
-
{ label: "default", value: "default" },
|
218665
|
-
{ label: "small", value: "small" }
|
218666
|
-
],
|
218667
|
-
cel: "hs-option"
|
218668
|
-
},
|
218669
|
-
{
|
218670
|
-
prop: "clearable",
|
218671
|
-
label: "是否可以清空",
|
218672
|
-
tooltip: "是否可以清空选项",
|
218673
|
-
type: "boolean",
|
218674
|
-
el: "hs-switch"
|
218675
|
-
},
|
218676
|
-
{
|
218677
|
-
prop: "collapse-tags",
|
218678
|
-
label: "值按文字展示",
|
218679
|
-
tooltip: "多选时是否将选中值按文字的形式展示",
|
218680
|
-
type: "boolean",
|
218681
|
-
el: "hs-switch"
|
218682
|
-
},
|
218683
|
-
{
|
218684
|
-
prop: "collapse-tags-tooltip",
|
218685
|
-
label: "是否显示所选",
|
218686
|
-
tooltip: "当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",
|
218687
|
-
type: "boolean",
|
218688
|
-
el: "hs-switch"
|
218689
|
-
},
|
218690
|
-
{
|
218691
|
-
prop: "multiple-limit",
|
218692
|
-
label: "最多可选数",
|
218693
|
-
tooltip: "multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",
|
218694
|
-
type: "number",
|
218695
|
-
el: "hs-input-number"
|
218696
|
-
},
|
218697
|
-
{
|
218698
|
-
prop: "name",
|
218699
|
-
label: "原生name属性",
|
218700
|
-
tooltip: "Select 输入框的原生 name 属性",
|
218701
|
-
type: "string",
|
218702
|
-
el: "hs-input"
|
218703
|
-
},
|
218704
|
-
{
|
218705
|
-
prop: "effect",
|
218706
|
-
label: "tooltip 主题",
|
218707
|
-
tooltip: "tooltip 主题,内置了 dark / light 两种",
|
218708
|
-
type: "enum / string",
|
218709
|
-
el: "hs-select",
|
218710
|
-
op: [
|
218711
|
-
{ label: "dark", value: "dark" },
|
218712
|
-
{ label: "light", value: "light" }
|
218713
|
-
],
|
218714
|
-
cel: "hs-option"
|
218715
|
-
},
|
218716
|
-
{
|
218717
|
-
prop: "autocomplete",
|
218718
|
-
label: "autocomplete",
|
218719
|
-
tooltip: "Select 输入框的原生 autocomplete 属性",
|
218720
|
-
type: "string",
|
218721
|
-
el: "hs-input"
|
218722
|
-
},
|
218723
|
-
{
|
218724
|
-
prop: "filterable",
|
218725
|
-
label: "是否可筛选",
|
218726
|
-
tooltip: "Select 组件是否可筛选",
|
218727
|
-
type: "boolean",
|
218728
|
-
el: "hs-switch"
|
218729
|
-
},
|
218730
|
-
{
|
218731
|
-
prop: "allow-create",
|
218732
|
-
label: "允许创建条目",
|
218733
|
-
tooltip: "是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",
|
218734
|
-
type: "boolean",
|
218735
|
-
el: "hs-switch"
|
218736
|
-
},
|
218737
|
-
{
|
218738
|
-
prop: "filter-method",
|
218739
|
-
label: "筛选方法",
|
218740
|
-
tooltip: "自定义筛选方法",
|
218741
|
-
type: "Function",
|
218742
|
-
el: "hs-input"
|
218743
|
-
},
|
218744
|
-
{
|
218745
|
-
prop: "remote",
|
218746
|
-
label: "是否远程加载",
|
218747
|
-
tooltip: "其中的选项是否从服务器远程加载",
|
218748
|
-
type: "boolean",
|
218749
|
-
el: "hs-switch"
|
218750
|
-
},
|
218751
|
-
{
|
218752
|
-
prop: "remote-method",
|
218753
|
-
label: "远程搜索方法",
|
218754
|
-
tooltip: "自定义远程搜索方法",
|
218755
|
-
type: "Function",
|
218756
|
-
el: "hs-input"
|
218757
|
-
},
|
218758
|
-
{
|
218759
|
-
prop: "remote-show-suffix",
|
218760
|
-
label: "远程搜索图标",
|
218761
|
-
tooltip: "远程搜索方法显示后缀图标",
|
218762
|
-
type: "boolean",
|
218763
|
-
el: "hs-switch"
|
218764
|
-
},
|
218765
|
-
{
|
218766
|
-
prop: "loading",
|
218767
|
-
label: "是否正在获取",
|
218768
|
-
tooltip: "是否正在从远程获取数据",
|
218769
|
-
type: "boolean",
|
218770
|
-
el: "hs-switch"
|
218771
|
-
},
|
218772
|
-
{
|
218773
|
-
prop: "loading-text",
|
218774
|
-
label: "加载时文本",
|
218775
|
-
tooltip: "从服务器加载数据时显示的文本,默认为“Loading”",
|
218776
|
-
type: "string",
|
218777
|
-
el: "hs-input"
|
218778
|
-
},
|
218779
|
-
{
|
218780
|
-
prop: "no-match-text",
|
218781
|
-
label: "无匹配时显示",
|
218782
|
-
tooltip: "搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",
|
218783
|
-
type: "string",
|
218784
|
-
el: "hs-input"
|
218785
|
-
},
|
218786
|
-
{
|
218787
|
-
prop: "no-data-text",
|
218788
|
-
label: "无选项时显示",
|
218789
|
-
tooltip: "无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",
|
218790
|
-
type: "string",
|
218791
|
-
el: "hs-input"
|
218792
|
-
},
|
218793
|
-
{
|
218794
|
-
prop: "popper-class",
|
218795
|
-
label: "下拉菜单类名",
|
218796
|
-
tooltip: "选择器下拉菜单的自定义类名",
|
218797
|
-
type: "string",
|
218798
|
-
el: "hs-input"
|
218799
|
-
},
|
218800
|
-
{
|
218801
|
-
prop: "reserve-keyword",
|
218802
|
-
label: "保留关键词",
|
218803
|
-
tooltip: "当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",
|
218804
|
-
type: "boolean",
|
218805
|
-
el: "hs-switch"
|
218806
|
-
},
|
218807
|
-
{
|
218808
|
-
prop: "default-first-option",
|
218809
|
-
label: "回车选择",
|
218810
|
-
tooltip: "是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",
|
218811
|
-
type: "boolean",
|
218812
|
-
el: "hs-switch"
|
218813
|
-
},
|
218814
|
-
{
|
218815
|
-
prop: "teleported",
|
218816
|
-
label: "是否插入至body",
|
218817
|
-
tooltip: "是否将下拉列表插入至 body 元素",
|
218818
|
-
type: "boolean",
|
218819
|
-
el: "hs-switch"
|
218820
|
-
},
|
218821
|
-
{
|
218822
|
-
prop: "persistent",
|
218823
|
-
label: "选择器未被激活",
|
218824
|
-
tooltip: "当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",
|
218825
|
-
type: "boolean",
|
218826
|
-
el: "hs-switch"
|
218827
|
-
},
|
218828
|
-
{
|
218829
|
-
prop: "automatic-dropdown",
|
218830
|
-
label: "自动弹出选项",
|
218831
|
-
tooltip: "对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",
|
218832
|
-
type: "boolean",
|
218833
|
-
el: "hs-switch"
|
218834
|
-
},
|
218835
|
-
{
|
218836
|
-
prop: "clear-icon",
|
218837
|
-
label: "清除图标",
|
218838
|
-
tooltip: "自定义清除图标",
|
218839
|
-
type: "string / object",
|
218840
|
-
el: "hs-input"
|
218841
|
-
},
|
218842
|
-
{
|
218843
|
-
prop: "fit-input-width",
|
218844
|
-
label: "下拉框宽度",
|
218845
|
-
tooltip: "下拉框的宽度是否与输入框相同",
|
218846
|
-
type: "boolean",
|
218847
|
-
el: "hs-switch"
|
218848
|
-
},
|
218849
|
-
{
|
218850
|
-
prop: "suffix-icon",
|
218851
|
-
label: "后缀图标",
|
218852
|
-
tooltip: "自定义后缀图标组件",
|
218853
|
-
type: "string / object",
|
218854
|
-
el: "hs-input"
|
218855
|
-
},
|
218856
|
-
{
|
218857
|
-
prop: "suffix-transition deprecated",
|
218858
|
-
label: "下拉图标动画",
|
218859
|
-
tooltip: "下拉菜单显示/消失时后缀图标的动画",
|
218860
|
-
type: "boolean",
|
218861
|
-
el: "hs-switch"
|
218862
|
-
},
|
218863
|
-
{
|
218864
|
-
prop: "tag-type",
|
218865
|
-
label: "标签类型",
|
218866
|
-
tooltip: "标签类型",
|
218867
|
-
type: "enum",
|
218868
|
-
el: "hs-select",
|
218869
|
-
op: [
|
218870
|
-
{ label: "success", value: "success" },
|
218871
|
-
{ label: "info", value: "info" },
|
218872
|
-
{ label: "warning", value: "warning" },
|
218873
|
-
{ label: "danger", value: "danger" }
|
218874
|
-
],
|
218875
|
-
cel: "hs-option"
|
218876
|
-
},
|
218877
|
-
{
|
218878
|
-
prop: "validate-event",
|
218879
|
-
label: "表单验证",
|
218880
|
-
tooltip: "是否触发表单验证",
|
218881
|
-
type: "boolean",
|
218882
|
-
el: "hs-switch"
|
218883
|
-
},
|
218884
|
-
{
|
218885
|
-
prop: "placement",
|
218886
|
-
label: "下拉框出现位置",
|
218887
|
-
tooltip: "下拉框出现的位置",
|
218888
|
-
type: "enum",
|
218889
|
-
el: "hs-select",
|
218890
|
-
op: [
|
218891
|
-
{ label: "top", value: "top" },
|
218892
|
-
{ label: "top-start", value: "top-start" },
|
218893
|
-
{ label: "top-end", value: "top-end" },
|
218894
|
-
{ label: "bottom", value: "bottom" },
|
218895
|
-
{ label: "bottom-start", value: "bottom-start" },
|
218896
|
-
{ label: "bottom-end", value: "bottom-end" },
|
218897
|
-
{ label: "left", value: "left" },
|
218898
|
-
{ label: "left-start", value: "left-start" },
|
218899
|
-
{ label: "left-end", value: "left-end" },
|
218900
|
-
{ label: "right", value: "right" },
|
218901
|
-
{ label: "right-start", value: "right-start" },
|
218902
|
-
{ label: "right-end", value: "right-end" }
|
218903
|
-
],
|
218904
|
-
cel: "hs-option"
|
218905
|
-
},
|
218906
|
-
{
|
218907
|
-
prop: "max-collapse-tags",
|
218908
|
-
label: "Tag最大数量",
|
218909
|
-
tooltip: "需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",
|
218910
|
-
type: "number",
|
218911
|
-
el: "hs-input-number"
|
218912
|
-
},
|
218913
|
-
{
|
218914
|
-
prop: "popper-options",
|
218915
|
-
label: "popper参数",
|
218916
|
-
tooltip: "popper.js 参数",
|
218917
|
-
type: "objectrefer to popper.js doc",
|
218918
|
-
el: "hs-input"
|
218919
|
-
},
|
218920
|
-
{
|
218921
|
-
prop: "aria-label",
|
218922
|
-
label: "aria-label",
|
218923
|
-
tooltip: "等价于原生 input aria-label 属性",
|
218924
|
-
type: "string",
|
218925
|
-
el: "hs-input"
|
218895
|
+
this.drawCurveLine = function(x1, y1, x2, y2, x3, y3, lineWidth) {
|
218896
|
+
_this.ctx.lineWidth = Number(lineWidth.toFixed(1));
|
218897
|
+
_this.ctx.beginPath();
|
218898
|
+
_this.ctx.moveTo(Number(x1.toFixed(1)), Number(y1.toFixed(1)));
|
218899
|
+
_this.ctx.quadraticCurveTo(Number(x2.toFixed(1)), Number(y2.toFixed(1)), Number(x3.toFixed(1)), Number(y3.toFixed(1)));
|
218900
|
+
_this.ctx.stroke();
|
218901
|
+
};
|
218902
|
+
this.drawTrapezoid = function(point1, point2, point3, point4) {
|
218903
|
+
_this.ctx.beginPath();
|
218904
|
+
_this.ctx.moveTo(Number(point1.x.toFixed(1)), Number(point1.y.toFixed(1)));
|
218905
|
+
_this.ctx.lineTo(Number(point2.x.toFixed(1)), Number(point2.y.toFixed(1)));
|
218906
|
+
_this.ctx.lineTo(Number(point3.x.toFixed(1)), Number(point3.y.toFixed(1)));
|
218907
|
+
_this.ctx.lineTo(Number(point4.x.toFixed(1)), Number(point4.y.toFixed(1)));
|
218908
|
+
_this.ctx.fillStyle = _this.color;
|
218909
|
+
_this.ctx.fill();
|
218910
|
+
};
|
218911
|
+
this.drawBgColor = function() {
|
218912
|
+
if (!_this.bgColor)
|
218913
|
+
return;
|
218914
|
+
_this.ctx.fillStyle = _this.bgColor;
|
218915
|
+
_this.ctx.fillRect(0, 0, _this.width, _this.height);
|
218916
|
+
};
|
218917
|
+
this.drawByImageUrl = function(url2) {
|
218918
|
+
var image = new Image();
|
218919
|
+
image.onload = function() {
|
218920
|
+
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
218921
|
+
_this.ctx.drawImage(image, 0, 0, _this.width, _this.height);
|
218922
|
+
};
|
218923
|
+
image.crossOrigin = "anonymous";
|
218924
|
+
image.src = url2;
|
218925
|
+
};
|
218926
|
+
this.addHistory = function() {
|
218927
|
+
if (!_this.maxHistoryLength || !_this.canAddHistory)
|
218928
|
+
return;
|
218929
|
+
_this.canAddHistory = false;
|
218930
|
+
_this.historyList.push(_this.canvas.toDataURL());
|
218931
|
+
_this.historyList = _this.historyList.slice(-_this.maxHistoryLength);
|
218932
|
+
};
|
218933
|
+
this.clear = function() {
|
218934
|
+
_this.ctx.clearRect(0, 0, _this.width, _this.height);
|
218935
|
+
_this.drawBgColor();
|
218936
|
+
_this.historyList.length = 0;
|
218937
|
+
};
|
218938
|
+
this.undo = function() {
|
218939
|
+
var dataUrl = _this.historyList.splice(-1)[0];
|
218940
|
+
dataUrl && _this.drawByImageUrl(dataUrl);
|
218941
|
+
};
|
218942
|
+
this.toDataURL = function() {
|
218943
|
+
var type4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "image/png";
|
218944
|
+
var quality = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
218945
|
+
if (_this.canvas.width === _this.width) {
|
218946
|
+
return _this.canvas.toDataURL(type4, quality);
|
218926
218947
|
}
|
218927
|
-
|
218948
|
+
var canvas = document.createElement("canvas");
|
218949
|
+
canvas.width = _this.width;
|
218950
|
+
canvas.height = _this.height;
|
218951
|
+
var ctx = canvas.getContext("2d");
|
218952
|
+
ctx.drawImage(_this.canvas, 0, 0, canvas.width, canvas.height);
|
218953
|
+
return canvas.toDataURL(type4, quality);
|
218954
|
+
};
|
218955
|
+
this.getPNG = function() {
|
218956
|
+
return _this.toDataURL();
|
218957
|
+
};
|
218958
|
+
this.getJPG = function() {
|
218959
|
+
var quality = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0.8;
|
218960
|
+
return _this.toDataURL("image/jpeg", quality);
|
218961
|
+
};
|
218962
|
+
this.isEmpty = function() {
|
218963
|
+
var canvas = document.createElement("canvas");
|
218964
|
+
var ctx = canvas.getContext("2d");
|
218965
|
+
canvas.width = _this.canvas.width;
|
218966
|
+
canvas.height = _this.canvas.height;
|
218967
|
+
if (_this.bgColor) {
|
218968
|
+
ctx.fillStyle = _this.bgColor;
|
218969
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
218970
|
+
} else if (_this.scale !== 1) {
|
218971
|
+
ctx.scale(_this.scale, _this.scale);
|
218972
|
+
}
|
218973
|
+
return canvas.toDataURL() === _this.canvas.toDataURL();
|
218974
|
+
};
|
218975
|
+
this.getRotateCanvas = function() {
|
218976
|
+
var degree = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 90;
|
218977
|
+
if (degree > 0) {
|
218978
|
+
degree = degree > 90 ? 180 : 90;
|
218979
|
+
} else {
|
218980
|
+
degree = degree < -90 ? 180 : -90;
|
218981
|
+
}
|
218982
|
+
var canvas = document.createElement("canvas");
|
218983
|
+
var w2 = _this.width;
|
218984
|
+
var h2 = _this.height;
|
218985
|
+
if (degree === 180) {
|
218986
|
+
canvas.width = w2;
|
218987
|
+
canvas.height = h2;
|
218988
|
+
} else {
|
218989
|
+
canvas.width = h2;
|
218990
|
+
canvas.height = w2;
|
218991
|
+
}
|
218992
|
+
var ctx = canvas.getContext("2d");
|
218993
|
+
ctx.rotate(degree * Math.PI / 180);
|
218994
|
+
if (degree === 90) {
|
218995
|
+
ctx.drawImage(_this.canvas, 0, -h2, w2, h2);
|
218996
|
+
} else if (degree === -90) {
|
218997
|
+
ctx.drawImage(_this.canvas, -w2, 0, w2, h2);
|
218998
|
+
} else if (degree === 180) {
|
218999
|
+
ctx.drawImage(_this.canvas, -w2, -h2, w2, h2);
|
219000
|
+
}
|
219001
|
+
return canvas;
|
219002
|
+
};
|
219003
|
+
this.init(_canvas, options2);
|
219004
|
+
}
|
219005
|
+
_createClass(SmoothSignature2, [{
|
219006
|
+
key: "init",
|
219007
|
+
value: function init2(canvas) {
|
219008
|
+
var options2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
219009
|
+
if (!canvas)
|
219010
|
+
return;
|
219011
|
+
this.canvas = canvas;
|
219012
|
+
this.ctx = canvas.getContext("2d");
|
219013
|
+
this.width = options2.width || canvas.clientWidth || this.width;
|
219014
|
+
this.height = options2.height || canvas.clientHeight || this.height;
|
219015
|
+
this.scale = options2.scale || this.scale;
|
219016
|
+
this.color = options2.color || this.color;
|
219017
|
+
this.bgColor = options2.bgColor || this.bgColor;
|
219018
|
+
this.openSmooth = options2.openSmooth === void 0 ? this.openSmooth : !!options2.openSmooth;
|
219019
|
+
this.minWidth = options2.minWidth || this.minWidth;
|
219020
|
+
this.maxWidth = options2.maxWidth || this.maxWidth;
|
219021
|
+
this.minSpeed = options2.minSpeed || this.minSpeed;
|
219022
|
+
this.maxWidthDiffRate = options2.maxWidthDiffRate || this.maxWidthDiffRate;
|
219023
|
+
this.maxHistoryLength = options2.maxHistoryLength || this.maxHistoryLength;
|
219024
|
+
this.onStart = options2.onStart;
|
219025
|
+
this.onEnd = options2.onEnd;
|
219026
|
+
if (this.scale > 0) {
|
219027
|
+
this.canvas.height = this.height * this.scale;
|
219028
|
+
this.canvas.width = this.width * this.scale;
|
219029
|
+
if (this.scale !== 1) {
|
219030
|
+
this.canvas.style.width = this.width + "px";
|
219031
|
+
this.canvas.style.height = this.height + "px";
|
219032
|
+
this.ctx.scale(this.scale, this.scale);
|
219033
|
+
}
|
219034
|
+
}
|
219035
|
+
this.ctx.lineCap = "round";
|
219036
|
+
this.drawBgColor();
|
219037
|
+
this.addListener();
|
219038
|
+
}
|
219039
|
+
}]);
|
219040
|
+
return SmoothSignature2;
|
219041
|
+
}();
|
219042
|
+
const _hoisted_1$h = { class: "wrap1" };
|
219043
|
+
const _hoisted_2$1 = { class: "wrap2" };
|
219044
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
219045
|
+
__name: "index",
|
219046
|
+
props: {
|
219047
|
+
showFull: {
|
219048
|
+
type: Boolean,
|
219049
|
+
default: true
|
219050
|
+
}
|
218928
219051
|
},
|
218929
|
-
|
218930
|
-
|
218931
|
-
|
218932
|
-
|
218933
|
-
|
218934
|
-
|
218935
|
-
|
218936
|
-
|
218937
|
-
|
218938
|
-
|
218939
|
-
|
218940
|
-
|
218941
|
-
|
218942
|
-
|
218943
|
-
|
218944
|
-
|
218945
|
-
|
218946
|
-
|
218947
|
-
|
218948
|
-
|
218949
|
-
|
218950
|
-
|
218951
|
-
|
218952
|
-
|
218953
|
-
|
218954
|
-
|
218955
|
-
|
219052
|
+
emits: ["save"],
|
219053
|
+
setup(__props, { emit: __emit }) {
|
219054
|
+
const signFinish = ref$1(null);
|
219055
|
+
const { width: signFinishWidth, height: signFinishHeight } = useElementSize(signFinish);
|
219056
|
+
const props = __props;
|
219057
|
+
const showFull = ref$1(false);
|
219058
|
+
const canvas2 = ref$1(null);
|
219059
|
+
const canvas1 = ref$1(null);
|
219060
|
+
const signature1 = ref$1(null);
|
219061
|
+
const signature2 = ref$1(null);
|
219062
|
+
const emit = __emit;
|
219063
|
+
const handleFull = () => {
|
219064
|
+
var _a2, _b;
|
219065
|
+
showFull.value = !showFull.value;
|
219066
|
+
(_a2 = signature1 == null ? void 0 : signature1.value) == null ? void 0 : _a2.clear();
|
219067
|
+
(_b = signature2 == null ? void 0 : signature2.value) == null ? void 0 : _b.clear();
|
219068
|
+
};
|
219069
|
+
const initSignature1 = () => {
|
219070
|
+
const canvas = canvas1.value;
|
219071
|
+
const options2 = {
|
219072
|
+
width: signFinishWidth.value - 30,
|
219073
|
+
height: 200,
|
219074
|
+
minWidth: 2,
|
219075
|
+
maxWidth: 6,
|
219076
|
+
openSmooth: false,
|
219077
|
+
bgColor: "#ffffff"
|
219078
|
+
};
|
219079
|
+
signature1.value = new SmoothSignature(canvas, options2);
|
219080
|
+
};
|
219081
|
+
const initSignture2 = () => {
|
219082
|
+
const canvas = canvas2.value;
|
219083
|
+
const options2 = {
|
219084
|
+
width: signFinishWidth.value - 120,
|
219085
|
+
height: signFinishHeight.value - 60,
|
219086
|
+
minWidth: 3,
|
219087
|
+
maxWidth: 10,
|
219088
|
+
openSmooth: false,
|
219089
|
+
bgColor: "#ffffff"
|
219090
|
+
};
|
219091
|
+
signature2.value = new SmoothSignature(canvas, options2);
|
219092
|
+
};
|
219093
|
+
const handleClear1 = () => {
|
219094
|
+
const sgn = signature1.value;
|
219095
|
+
sgn.clear();
|
219096
|
+
};
|
219097
|
+
const handleClear2 = () => {
|
219098
|
+
const sgn2 = signature2.value;
|
219099
|
+
sgn2.clear();
|
219100
|
+
};
|
219101
|
+
const handleUndo1 = () => {
|
219102
|
+
const sgn = signature1.value;
|
219103
|
+
sgn.undo();
|
219104
|
+
};
|
219105
|
+
const handleUndo2 = () => {
|
219106
|
+
const sgn2 = signature2.value;
|
219107
|
+
sgn2.undo();
|
219108
|
+
};
|
219109
|
+
const handlePreview1 = () => {
|
219110
|
+
const sgn = signature1.value;
|
219111
|
+
const isEmpty2 = sgn.isEmpty();
|
219112
|
+
if (isEmpty2) {
|
219113
|
+
alert("isEmpty");
|
219114
|
+
return;
|
218956
219115
|
}
|
218957
|
-
|
219116
|
+
const pngUrl = sgn.getPNG();
|
219117
|
+
emit("save", pngUrl);
|
219118
|
+
};
|
219119
|
+
const handlePreview2 = () => {
|
219120
|
+
const sgn2 = signature2.value;
|
219121
|
+
const isEmpty2 = sgn2.isEmpty();
|
219122
|
+
if (isEmpty2) {
|
219123
|
+
alert("isEmpty");
|
219124
|
+
return;
|
219125
|
+
}
|
219126
|
+
const canvas = sgn2.getRotateCanvas(-90);
|
219127
|
+
const pngUrl = canvas.toDataURL();
|
219128
|
+
emit("save", pngUrl);
|
219129
|
+
};
|
219130
|
+
onMounted(() => {
|
219131
|
+
showFull.value = props.showFull;
|
219132
|
+
setTimeout(() => {
|
219133
|
+
initSignature1();
|
219134
|
+
initSignture2();
|
219135
|
+
}, 100);
|
219136
|
+
});
|
219137
|
+
return (_ctx, _cache) => {
|
219138
|
+
return openBlock(), createElementBlock("div", {
|
219139
|
+
class: "h-full w-full sign-finish",
|
219140
|
+
ref_key: "signFinish",
|
219141
|
+
ref: signFinish
|
219142
|
+
}, [
|
219143
|
+
withDirectives(createElementVNode("div", _hoisted_1$h, [
|
219144
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sign-title" }, "请在区域内签字", -1)),
|
219145
|
+
createElementVNode("canvas", {
|
219146
|
+
class: "canvas1",
|
219147
|
+
ref_key: "canvas1",
|
219148
|
+
ref: canvas1
|
219149
|
+
}, null, 512),
|
219150
|
+
createElementVNode("div", { class: "actions" }, [
|
219151
|
+
createElementVNode("button", {
|
219152
|
+
class: "danger",
|
219153
|
+
onClick: handleClear1
|
219154
|
+
}, "清除"),
|
219155
|
+
createElementVNode("button", {
|
219156
|
+
class: "warning",
|
219157
|
+
onClick: handleUndo1
|
219158
|
+
}, "撤销"),
|
219159
|
+
createElementVNode("button", {
|
219160
|
+
class: "primary",
|
219161
|
+
onClick: handleFull
|
219162
|
+
}, "横屏"),
|
219163
|
+
createElementVNode("button", {
|
219164
|
+
class: "success",
|
219165
|
+
onClick: handlePreview1
|
219166
|
+
}, "保存")
|
219167
|
+
])
|
219168
|
+
], 512), [
|
219169
|
+
[vShow, showFull.value]
|
219170
|
+
]),
|
219171
|
+
withDirectives(createElementVNode("div", _hoisted_2$1, [
|
219172
|
+
createElementVNode("div", { class: "actionsWrap" }, [
|
219173
|
+
createElementVNode("div", { class: "actions" }, [
|
219174
|
+
createElementVNode("button", {
|
219175
|
+
class: "danger",
|
219176
|
+
onClick: handleClear2
|
219177
|
+
}, "清除"),
|
219178
|
+
createElementVNode("button", {
|
219179
|
+
class: "warning",
|
219180
|
+
onClick: handleUndo2
|
219181
|
+
}, "撤销"),
|
219182
|
+
createElementVNode("button", {
|
219183
|
+
class: "primary",
|
219184
|
+
onClick: handleFull
|
219185
|
+
}, "竖屏"),
|
219186
|
+
createElementVNode("button", {
|
219187
|
+
class: "success",
|
219188
|
+
onClick: handlePreview2
|
219189
|
+
}, "保存")
|
219190
|
+
])
|
219191
|
+
]),
|
219192
|
+
createElementVNode("canvas", {
|
219193
|
+
class: "canvas",
|
219194
|
+
ref_key: "canvas2",
|
219195
|
+
ref: canvas2
|
219196
|
+
}, null, 512)
|
219197
|
+
], 512), [
|
219198
|
+
[vShow, !showFull.value]
|
219199
|
+
])
|
219200
|
+
], 512);
|
219201
|
+
};
|
219202
|
+
}
|
219203
|
+
});
|
219204
|
+
const bcSignature = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-e2292518"]]);
|
219205
|
+
const _hoisted_1$g = { class: "text-[#606266]" };
|
219206
|
+
const _hoisted_2 = { key: 1 };
|
219207
|
+
const _hoisted_3 = { class: "mb-[10px]" };
|
219208
|
+
const _hoisted_4 = {
|
219209
|
+
key: 0,
|
219210
|
+
class: "flex justify-center align-middle mt-[10px]"
|
219211
|
+
};
|
219212
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
219213
|
+
__name: "baseForm",
|
219214
|
+
props: {
|
219215
|
+
data: {
|
219216
|
+
// 表单数据
|
219217
|
+
type: Object,
|
219218
|
+
default: () => ({})
|
219219
|
+
},
|
219220
|
+
config: {
|
219221
|
+
// 表单配置项
|
219222
|
+
type: Array,
|
219223
|
+
default: () => []
|
219224
|
+
},
|
219225
|
+
isRecursive: {
|
219226
|
+
// 是否为递归
|
219227
|
+
type: Boolean,
|
219228
|
+
default: false
|
219229
|
+
},
|
219230
|
+
isVModel: {
|
219231
|
+
// 是否为v-model
|
219232
|
+
type: Boolean,
|
219233
|
+
default: false
|
219234
|
+
},
|
219235
|
+
xs: {
|
219236
|
+
type: Number,
|
219237
|
+
default: 24
|
219238
|
+
},
|
219239
|
+
sm: {
|
219240
|
+
type: Number,
|
219241
|
+
default: 24
|
219242
|
+
},
|
219243
|
+
md: {
|
219244
|
+
type: Number,
|
219245
|
+
default: 24
|
219246
|
+
},
|
219247
|
+
lg: {
|
219248
|
+
type: Number,
|
219249
|
+
default: 24
|
219250
|
+
},
|
219251
|
+
xl: {
|
219252
|
+
type: Number,
|
219253
|
+
default: 24
|
219254
|
+
}
|
218958
219255
|
},
|
218959
|
-
{
|
218960
|
-
|
218961
|
-
|
218962
|
-
|
218963
|
-
|
218964
|
-
|
218965
|
-
|
218966
|
-
|
218967
|
-
|
218968
|
-
|
218969
|
-
|
218970
|
-
|
218971
|
-
|
218972
|
-
|
218973
|
-
|
218974
|
-
|
218975
|
-
|
218976
|
-
|
218977
|
-
|
218978
|
-
|
218979
|
-
|
218980
|
-
{
|
218981
|
-
|
218982
|
-
|
218983
|
-
|
218984
|
-
|
218985
|
-
|
219256
|
+
setup(__props, { expose: __expose }) {
|
219257
|
+
const props = __props;
|
219258
|
+
const formRef = ref$1();
|
219259
|
+
const oldData = ref$1(props.data);
|
219260
|
+
let formData2 = ref$1(props.isRecursive || props.isVModel ? props.data : _$4.cloneDeep(props.data));
|
219261
|
+
let formConfig2 = ref$1(props.config);
|
219262
|
+
const submitForm = () => {
|
219263
|
+
console.log("submitForm");
|
219264
|
+
if (!formRef.value)
|
219265
|
+
return;
|
219266
|
+
formRef.value.validate((valid) => {
|
219267
|
+
if (valid) {
|
219268
|
+
console.log("submit!", formData2.value);
|
219269
|
+
oldData.value = Object.assign(oldData.value, formData2.value);
|
219270
|
+
} else {
|
219271
|
+
console.log("error submit!", formData2.value);
|
219272
|
+
return false;
|
219273
|
+
}
|
219274
|
+
});
|
219275
|
+
};
|
219276
|
+
const validForm = () => {
|
219277
|
+
return new Promise((resolve3) => {
|
219278
|
+
if (!formRef.value) {
|
219279
|
+
resolve3(false);
|
219280
|
+
return;
|
219281
|
+
}
|
219282
|
+
formRef.value.validate((valid) => {
|
219283
|
+
if (valid) {
|
219284
|
+
resolve3(true);
|
219285
|
+
} else {
|
219286
|
+
resolve3(false);
|
219287
|
+
}
|
219288
|
+
});
|
219289
|
+
});
|
219290
|
+
};
|
219291
|
+
__expose({ validForm });
|
219292
|
+
return (_ctx, _cache) => {
|
219293
|
+
const _component_ele_Warning = resolveComponent("ele-Warning");
|
219294
|
+
const _component_el_icon = resolveComponent("el-icon");
|
219295
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
219296
|
+
const _component_hs_form_item = resolveComponent("hs-form-item");
|
219297
|
+
const _component_hs_alert = resolveComponent("hs-alert");
|
219298
|
+
const _component_base_form = resolveComponent("base-form", true);
|
219299
|
+
const _component_hs_col = resolveComponent("hs-col");
|
219300
|
+
const _component_hs_row = resolveComponent("hs-row");
|
219301
|
+
const _component_hs_form = resolveComponent("hs-form");
|
219302
|
+
const _component_hs_button = resolveComponent("hs-button");
|
219303
|
+
return openBlock(), createElementBlock("div", {
|
219304
|
+
class: normalizeClass(["h-full", { "overflow-y-auto": !__props.isRecursive }])
|
219305
|
+
}, [
|
219306
|
+
createVNode(_component_hs_form, {
|
219307
|
+
model: unref(formData2),
|
219308
|
+
"label-width": "146px",
|
219309
|
+
"label-position": "right",
|
219310
|
+
ref_key: "formRef",
|
219311
|
+
ref: formRef
|
219312
|
+
}, {
|
219313
|
+
default: withCtx(() => [
|
219314
|
+
createVNode(_component_hs_row, {
|
219315
|
+
gutter: 0,
|
219316
|
+
justify: "start",
|
219317
|
+
class: "hs-row"
|
219318
|
+
}, {
|
219319
|
+
default: withCtx(() => [
|
219320
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formConfig2), (item, index2) => {
|
219321
|
+
return openBlock(), createBlock(_component_hs_col, {
|
219322
|
+
key: index2,
|
219323
|
+
xs: !__props.isRecursive ? 24 : __props.xs,
|
219324
|
+
sm: !__props.isRecursive ? 24 : __props.sm,
|
219325
|
+
md: !__props.isRecursive ? 24 : __props.md,
|
219326
|
+
lg: !__props.isRecursive ? 24 : __props.lg,
|
219327
|
+
xl: !__props.isRecursive ? 24 : __props.xl,
|
219328
|
+
class: "mb-[20px]"
|
219329
|
+
}, {
|
219330
|
+
default: withCtx(() => [
|
219331
|
+
item["el"] != "title" ? (openBlock(), createBlock(_component_hs_form_item, mergeProps({
|
219332
|
+
key: 0,
|
219333
|
+
ref_for: true
|
219334
|
+
}, item), {
|
219335
|
+
label: withCtx(() => [
|
219336
|
+
createElementVNode("span", _hoisted_1$g, " " + toDisplayString(item["label"]) + " ", 1),
|
219337
|
+
createVNode(_component_el_tooltip, {
|
219338
|
+
class: "box-item",
|
219339
|
+
effect: "dark",
|
219340
|
+
content: item["tooltip"] || item["label"],
|
219341
|
+
placement: "top"
|
219342
|
+
}, {
|
219343
|
+
default: withCtx(() => [
|
219344
|
+
createElementVNode("div", null, [
|
219345
|
+
createVNode(_component_el_icon, null, {
|
219346
|
+
default: withCtx(() => [
|
219347
|
+
createVNode(_component_ele_Warning)
|
219348
|
+
]),
|
219349
|
+
_: 1
|
219350
|
+
})
|
219351
|
+
])
|
219352
|
+
]),
|
219353
|
+
_: 2
|
219354
|
+
}, 1032, ["content"])
|
219355
|
+
]),
|
219356
|
+
default: withCtx(() => [
|
219357
|
+
(openBlock(), createBlock(resolveDynamicComponent(item["el"]), mergeProps({
|
219358
|
+
modelValue: unref(formData2)[item.prop],
|
219359
|
+
"onUpdate:modelValue": ($event) => unref(formData2)[item.prop] = $event,
|
219360
|
+
clearable: item.clearable != false,
|
219361
|
+
placeholder: "请输入",
|
219362
|
+
ref_for: true
|
219363
|
+
}, item["attrs"] || {}), {
|
219364
|
+
default: withCtx(() => [
|
219365
|
+
item["op"] ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item["op"] || [], (value, idx) => {
|
219366
|
+
return openBlock(), createBlock(resolveDynamicComponent(item["cel"]), {
|
219367
|
+
key: idx,
|
219368
|
+
label: value["label"],
|
219369
|
+
value: value["value"]
|
219370
|
+
}, null, 8, ["label", "value"]);
|
219371
|
+
}), 128)) : createCommentVNode("", true)
|
219372
|
+
]),
|
219373
|
+
_: 2
|
219374
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "clearable"]))
|
219375
|
+
]),
|
219376
|
+
_: 2
|
219377
|
+
}, 1040)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
219378
|
+
createElementVNode("div", _hoisted_3, [
|
219379
|
+
createVNode(_component_hs_alert, {
|
219380
|
+
title: item["label"],
|
219381
|
+
type: "info",
|
219382
|
+
closable: false
|
219383
|
+
}, null, 8, ["title"])
|
219384
|
+
]),
|
219385
|
+
item["children"] ? (openBlock(), createBlock(_component_base_form, {
|
219386
|
+
key: 0,
|
219387
|
+
data: unref(formData2)[item.prop],
|
219388
|
+
config: item["children"],
|
219389
|
+
isRecursive: true,
|
219390
|
+
xs: __props.xs,
|
219391
|
+
sm: __props.sm,
|
219392
|
+
md: __props.md,
|
219393
|
+
lg: __props.lg,
|
219394
|
+
xl: __props.xl
|
219395
|
+
}, null, 8, ["data", "config", "xs", "sm", "md", "lg", "xl"])) : createCommentVNode("", true)
|
219396
|
+
]))
|
219397
|
+
]),
|
219398
|
+
_: 2
|
219399
|
+
}, 1032, ["xs", "sm", "md", "lg", "xl"]);
|
219400
|
+
}), 128))
|
219401
|
+
]),
|
219402
|
+
_: 1
|
219403
|
+
})
|
219404
|
+
]),
|
219405
|
+
_: 1
|
219406
|
+
}, 8, ["model"]),
|
219407
|
+
!__props.isRecursive && !__props.isVModel ? (openBlock(), createElementBlock("footer", _hoisted_4, [
|
219408
|
+
createVNode(_component_hs_button, {
|
219409
|
+
type: "primary",
|
219410
|
+
onClick: submitForm
|
219411
|
+
}, {
|
219412
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
219413
|
+
createTextVNode("保存")
|
219414
|
+
])),
|
219415
|
+
_: 1
|
219416
|
+
})
|
219417
|
+
])) : createCommentVNode("", true)
|
219418
|
+
], 2);
|
219419
|
+
};
|
219420
|
+
}
|
219421
|
+
});
|
219422
|
+
const baseForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-c2b214a7"]]);
|
219423
|
+
const _hoisted_1$f = { class: "p-[10px] h-full" };
|
219424
|
+
const __default__$g = defineComponent({
|
219425
|
+
name: "inputAttrConfig"
|
219426
|
+
});
|
219427
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
219428
|
+
...__default__$g,
|
219429
|
+
props: {
|
219430
|
+
data: {
|
219431
|
+
type: Object,
|
219432
|
+
default: () => {
|
218986
219433
|
}
|
218987
|
-
|
219434
|
+
},
|
219435
|
+
isVModel: {
|
219436
|
+
type: Boolean,
|
219437
|
+
default: false
|
219438
|
+
}
|
218988
219439
|
},
|
218989
|
-
{
|
218990
|
-
|
218991
|
-
|
218992
|
-
|
218993
|
-
|
218994
|
-
|
218995
|
-
|
218996
|
-
|
218997
|
-
|
218998
|
-
|
218999
|
-
|
219000
|
-
|
219001
|
-
|
219002
|
-
|
219003
|
-
|
219004
|
-
|
219005
|
-
|
219006
|
-
label: "必填项规则",
|
219007
|
-
tooltip: "必填项规则",
|
219008
|
-
type: "array",
|
219009
|
-
el: "hs-input",
|
219010
|
-
attrs: {
|
219011
|
-
type: "textarea"
|
219012
|
-
}
|
219013
|
-
}
|
219014
|
-
]
|
219440
|
+
setup(__props) {
|
219441
|
+
const props = __props;
|
219442
|
+
let inputConfig = ref$1({
|
219443
|
+
inputAttrConfig: _$4.cloneDeep(inputAttrConfig),
|
219444
|
+
inputAttrConfigMap: _$4.cloneDeep(inputAttrConfigMap)
|
219445
|
+
});
|
219446
|
+
const data2 = ref$1(_$4.isEmpty(props.data) ? Object.assign(props.data, inputConfig.value.inputAttrConfigMap) : props.data);
|
219447
|
+
return (_ctx, _cache) => {
|
219448
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
219449
|
+
createVNode(baseForm, {
|
219450
|
+
data: data2.value,
|
219451
|
+
"onUpdate:data": _cache[0] || (_cache[0] = ($event) => data2.value = $event),
|
219452
|
+
config: unref(inputConfig).inputAttrConfig,
|
219453
|
+
isVModel: __props.isVModel
|
219454
|
+
}, null, 8, ["data", "config", "isVModel"])
|
219455
|
+
]);
|
219456
|
+
};
|
219015
219457
|
}
|
219016
|
-
|
219017
|
-
const
|
219018
|
-
|
219019
|
-
|
219020
|
-
|
219021
|
-
|
219022
|
-
|
219023
|
-
|
219024
|
-
|
219025
|
-
|
219026
|
-
|
219027
|
-
|
219028
|
-
|
219029
|
-
"collapse-tags": false,
|
219030
|
-
// 值按文字展示
|
219031
|
-
"collapse-tags-tooltip": false,
|
219032
|
-
// 是否显示所选
|
219033
|
-
"multiple-limit": 0,
|
219034
|
-
// 最多可选数
|
219035
|
-
effect: "light",
|
219036
|
-
// tooltip 主题
|
219037
|
-
autocomplete: "off",
|
219038
|
-
// autocomplete
|
219039
|
-
filterable: true,
|
219040
|
-
// 是否可筛选
|
219041
|
-
"allow-create": false,
|
219042
|
-
// 允许创建条目
|
219043
|
-
remote: false,
|
219044
|
-
// 是否远程加载
|
219045
|
-
"remote-show-suffix": false,
|
219046
|
-
// 远程搜索图标
|
219047
|
-
loading: false,
|
219048
|
-
// 是否正在获取
|
219049
|
-
"reserve-keyword": true,
|
219050
|
-
// 保留关键词
|
219051
|
-
"default-first-option": false,
|
219052
|
-
// 是否在输入框按下回车时,选择第一个匹配项
|
219053
|
-
teleported: true,
|
219054
|
-
// 是否插入至body
|
219055
|
-
persistent: true,
|
219056
|
-
// 选择器未被激活
|
219057
|
-
"automatic-dropdown": false,
|
219058
|
-
// 自动弹出选项
|
219059
|
-
"clear-icon": "",
|
219060
|
-
// 清除图标
|
219061
|
-
"fit-input-width": false,
|
219062
|
-
// 下拉框宽度
|
219063
|
-
"suffix-icon": "",
|
219064
|
-
// 后缀图标
|
219065
|
-
"tag-type": "info",
|
219066
|
-
// 标签类型
|
219067
|
-
"validate-event": true,
|
219068
|
-
// 表单验证
|
219069
|
-
placement: "bottom-start",
|
219070
|
-
// 下拉框出现的位置
|
219071
|
-
"max-collapse-tags": 1,
|
219072
|
-
// 需要显示的 Tag 的最大数量
|
219073
|
-
options: "string=",
|
219074
|
-
//
|
219075
|
-
method: "get",
|
219076
|
-
// 请求方式
|
219077
|
-
proxy: "",
|
219078
|
-
// 代理
|
219079
|
-
params: "",
|
219080
|
-
// 请求参数
|
219081
|
-
placeholder: "请选择"
|
219082
|
-
// 占位符
|
219083
|
-
},
|
219084
|
-
groupAttrs: {
|
219085
|
-
disabled: false,
|
219086
|
-
// 是否禁用分组
|
219087
|
-
isGroupEnabled: false
|
219088
|
-
// 是否启用分组
|
219089
|
-
},
|
219090
|
-
optionAttrs: {
|
219091
|
-
value: "dict_child_code",
|
219092
|
-
label: "dict_child_name",
|
219093
|
-
disabled: false
|
219094
|
-
// 是否禁用该选项
|
219458
|
+
});
|
219459
|
+
const _hoisted_1$e = { class: "p-[10px] h-full overflow-y-auto" };
|
219460
|
+
const __default__$f = defineComponent({
|
219461
|
+
name: "inputEventConfig"
|
219462
|
+
});
|
219463
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
219464
|
+
...__default__$f,
|
219465
|
+
props: {
|
219466
|
+
data: {
|
219467
|
+
type: Object,
|
219468
|
+
default: () => {
|
219469
|
+
}
|
219470
|
+
}
|
219095
219471
|
},
|
219096
|
-
|
219097
|
-
|
219098
|
-
|
219472
|
+
setup(__props) {
|
219473
|
+
const handClick = () => {
|
219474
|
+
console.log(data2);
|
219475
|
+
console.log(formData2);
|
219476
|
+
};
|
219477
|
+
const props = __props;
|
219478
|
+
const data2 = ref$1(_$4.isEmpty(props.data) ? Object.assign(props.data, {}) : props.data);
|
219479
|
+
const formData2 = ref$1(inputEventConfig.map(() => ({})));
|
219480
|
+
console.log("formData", formData2);
|
219481
|
+
return (_ctx, _cache) => {
|
219482
|
+
const _component_hs_button = resolveComponent("hs-button");
|
219483
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
219484
|
+
createVNode(_component_hs_button, { onClick: handClick }, {
|
219485
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
219486
|
+
createTextVNode("父组件获取数据")
|
219487
|
+
])),
|
219488
|
+
_: 1
|
219489
|
+
}),
|
219490
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(inputEventConfig), (item, index2) => {
|
219491
|
+
return openBlock(), createElementBlock("div", { key: index2 }, [
|
219492
|
+
(openBlock(), createBlock(resolveDynamicComponent(item["el"]), mergeProps({
|
219493
|
+
modelValue: formData2.value[index2][item.prop],
|
219494
|
+
"onUpdate:modelValue": ($event) => formData2.value[index2][item.prop] = $event,
|
219495
|
+
clearable: "",
|
219496
|
+
placeholder: "请输入",
|
219497
|
+
ref_for: true
|
219498
|
+
}, item["attrs"] || {}), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
219499
|
+
]);
|
219500
|
+
}), 128))
|
219501
|
+
]);
|
219502
|
+
};
|
219099
219503
|
}
|
219100
|
-
};
|
219504
|
+
});
|
219101
219505
|
const _hoisted_1$d = { class: "p-[10px] h-full" };
|
219102
219506
|
const __default__$e = defineComponent({
|
219103
219507
|
name: "selectAttrConfig"
|
@@ -219135,299 +219539,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
219135
219539
|
};
|
219136
219540
|
}
|
219137
219541
|
});
|
219138
|
-
const datePickerAttrConfig = [
|
219139
|
-
{
|
219140
|
-
prop: "attrs",
|
219141
|
-
label: "datePickerAttrs",
|
219142
|
-
tooltip: "datePickerAttrs",
|
219143
|
-
type: "object",
|
219144
|
-
el: "title",
|
219145
|
-
children: [
|
219146
|
-
{
|
219147
|
-
prop: "defaultValue",
|
219148
|
-
label: "默认值",
|
219149
|
-
tooltip: "默认值",
|
219150
|
-
type: "number / string / object",
|
219151
|
-
el: "hs-input"
|
219152
|
-
},
|
219153
|
-
{
|
219154
|
-
prop: "readonly",
|
219155
|
-
label: "只读",
|
219156
|
-
tooltip: "只读",
|
219157
|
-
type: "boolean",
|
219158
|
-
el: "hs-switch"
|
219159
|
-
},
|
219160
|
-
{
|
219161
|
-
prop: "disabled",
|
219162
|
-
label: "禁用",
|
219163
|
-
tooltip: "禁用",
|
219164
|
-
type: "boolean",
|
219165
|
-
el: "hs-switch"
|
219166
|
-
},
|
219167
|
-
{
|
219168
|
-
prop: "size",
|
219169
|
-
label: "输入框尺寸",
|
219170
|
-
tooltip: "输入框尺寸",
|
219171
|
-
type: "enum",
|
219172
|
-
el: "hs-select",
|
219173
|
-
op: [
|
219174
|
-
{ label: "large", value: "large" },
|
219175
|
-
{ label: "default", value: "default" },
|
219176
|
-
{ label: "small", value: "small" }
|
219177
|
-
],
|
219178
|
-
cel: "hs-option"
|
219179
|
-
},
|
219180
|
-
{
|
219181
|
-
prop: "editable",
|
219182
|
-
label: "文本框可输入",
|
219183
|
-
tooltip: "文本框可输入",
|
219184
|
-
type: "boolean",
|
219185
|
-
el: "hs-switch"
|
219186
|
-
},
|
219187
|
-
{
|
219188
|
-
prop: "clearable",
|
219189
|
-
label: "清除按钮",
|
219190
|
-
tooltip: "是否显示清除按钮",
|
219191
|
-
type: "boolean",
|
219192
|
-
el: "hs-switch"
|
219193
|
-
},
|
219194
|
-
{
|
219195
|
-
prop: "placeholder",
|
219196
|
-
label: "占位符",
|
219197
|
-
tooltip: "非范围选择时的占位内容",
|
219198
|
-
type: "string",
|
219199
|
-
el: "hs-input"
|
219200
|
-
},
|
219201
|
-
{
|
219202
|
-
prop: "start-placeholder",
|
219203
|
-
label: "开始日期占位符",
|
219204
|
-
tooltip: "范围选择时开始日期的占位内容",
|
219205
|
-
type: "string",
|
219206
|
-
el: "hs-input"
|
219207
|
-
},
|
219208
|
-
{
|
219209
|
-
prop: "end-placeholder",
|
219210
|
-
label: "结束日期占位符",
|
219211
|
-
tooltip: "范围选择时结束日期的占位内容",
|
219212
|
-
type: "string",
|
219213
|
-
el: "hs-input"
|
219214
|
-
},
|
219215
|
-
{
|
219216
|
-
prop: "type",
|
219217
|
-
label: "显示类型",
|
219218
|
-
tooltip: "显示类型",
|
219219
|
-
type: "enum",
|
219220
|
-
el: "hs-select",
|
219221
|
-
op: [
|
219222
|
-
{ label: "year", value: "year" },
|
219223
|
-
{ label: "month", value: "month" },
|
219224
|
-
{ label: "date", value: "date" },
|
219225
|
-
{ label: "dates", value: "dates" },
|
219226
|
-
{ label: "week", value: "week" },
|
219227
|
-
{ label: "datetime", value: "datetime" },
|
219228
|
-
{ label: "datetimerange", value: "datetimerange" },
|
219229
|
-
{ label: "daterange", value: "daterange" },
|
219230
|
-
{ label: "monthrange", value: "monthrange" }
|
219231
|
-
],
|
219232
|
-
cel: "hs-option"
|
219233
|
-
},
|
219234
|
-
{
|
219235
|
-
prop: "format",
|
219236
|
-
label: "输入框中的格式",
|
219237
|
-
tooltip: "显示在输入框中的格式",
|
219238
|
-
type: "参见 date formats",
|
219239
|
-
el: "hs-input"
|
219240
|
-
},
|
219241
|
-
{
|
219242
|
-
prop: "popper-class",
|
219243
|
-
label: "下拉框的类名",
|
219244
|
-
tooltip: "DatePicker 下拉框的类名",
|
219245
|
-
type: "string",
|
219246
|
-
el: "hs-input"
|
219247
|
-
},
|
219248
|
-
{
|
219249
|
-
prop: "popper-options",
|
219250
|
-
label: "自定义popper",
|
219251
|
-
tooltip: "自定义 popper 选项,更多请参考 popper.js",
|
219252
|
-
type: "object",
|
219253
|
-
el: "hs-input"
|
219254
|
-
},
|
219255
|
-
{
|
219256
|
-
prop: "range-separator",
|
219257
|
-
label: "分隔符",
|
219258
|
-
tooltip: "选择范围时的分隔符",
|
219259
|
-
type: "string",
|
219260
|
-
el: "hs-input"
|
219261
|
-
},
|
219262
|
-
{
|
219263
|
-
prop: "default-time",
|
219264
|
-
label: "default-time",
|
219265
|
-
tooltip: "示例:functionBody=(function() {return [new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 1, 1, 23, 59, 59)]})()",
|
219266
|
-
type: "object",
|
219267
|
-
el: "hs-input"
|
219268
|
-
},
|
219269
|
-
{
|
219270
|
-
prop: "value-format",
|
219271
|
-
label: "绑定值的格式",
|
219272
|
-
tooltip: "可选,绑定值的格式。 不指定则绑定值为 Date 对象",
|
219273
|
-
type: "参见 date formats",
|
219274
|
-
el: "hs-input"
|
219275
|
-
},
|
219276
|
-
{
|
219277
|
-
prop: "id",
|
219278
|
-
label: "id",
|
219279
|
-
tooltip: "等价于原生 input id 属性",
|
219280
|
-
type: "string / object",
|
219281
|
-
el: "hs-input"
|
219282
|
-
},
|
219283
|
-
{
|
219284
|
-
prop: "name",
|
219285
|
-
label: "name",
|
219286
|
-
tooltip: "等价于原生 input name 属性",
|
219287
|
-
type: "string / object",
|
219288
|
-
el: "hs-input"
|
219289
|
-
},
|
219290
|
-
{
|
219291
|
-
prop: "unlink-panels",
|
219292
|
-
label: "unlink-panels",
|
219293
|
-
tooltip: "在范围选择器里取消两个日期面板之间的联动",
|
219294
|
-
type: "boolean",
|
219295
|
-
el: "hs-switch"
|
219296
|
-
},
|
219297
|
-
{
|
219298
|
-
prop: "prefix-icon",
|
219299
|
-
label: "前缀图标",
|
219300
|
-
tooltip: "自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",
|
219301
|
-
type: "string / object",
|
219302
|
-
el: "hs-input"
|
219303
|
-
},
|
219304
|
-
{
|
219305
|
-
prop: "clear-icon",
|
219306
|
-
label: "清除图标",
|
219307
|
-
tooltip: "清除图标",
|
219308
|
-
type: "string / object",
|
219309
|
-
el: "hs-input"
|
219310
|
-
},
|
219311
|
-
{
|
219312
|
-
prop: "validate-event",
|
219313
|
-
label: "是否表单验证",
|
219314
|
-
tooltip: "是否触发表单验证",
|
219315
|
-
type: "boolean",
|
219316
|
-
el: "hs-switch"
|
219317
|
-
},
|
219318
|
-
{
|
219319
|
-
prop: "disabled-date",
|
219320
|
-
label: "disabled-date",
|
219321
|
-
tooltip: "示例:functionBody=function(time){const now = new Date();return time.getTime() < new Date(new Date().setHours(0, 0, 0, 0)).getTime()}",
|
219322
|
-
type: "Function",
|
219323
|
-
el: "hs-input"
|
219324
|
-
},
|
219325
|
-
{
|
219326
|
-
prop: "disabled-hours",
|
219327
|
-
label: "disabled-hours",
|
219328
|
-
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 24; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a; }",
|
219329
|
-
type: "Function",
|
219330
|
-
el: "hs-input"
|
219331
|
-
},
|
219332
|
-
{
|
219333
|
-
prop: "disabled-minutes",
|
219334
|
-
label: "disabled-minutes",
|
219335
|
-
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 60; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a;}",
|
219336
|
-
type: "Function",
|
219337
|
-
el: "hs-input"
|
219338
|
-
},
|
219339
|
-
{
|
219340
|
-
prop: "disabled-seconds",
|
219341
|
-
label: "disabled-seconds",
|
219342
|
-
tooltip: "示例:functionBody=function(){let a = [];for (let i = 0; i < 60; i++) {if (new Date().getHours() <= i) continue;a.push(i);} return a;}",
|
219343
|
-
type: "Function",
|
219344
|
-
el: "hs-input"
|
219345
|
-
},
|
219346
|
-
{
|
219347
|
-
prop: "shortcuts",
|
219348
|
-
label: "设置快捷选项",
|
219349
|
-
tooltip: "设置快捷选项,需要传入数组对象",
|
219350
|
-
type: "object",
|
219351
|
-
el: "hs-input"
|
219352
|
-
},
|
219353
|
-
{
|
219354
|
-
prop: "cell-class-name",
|
219355
|
-
label: "设置类名",
|
219356
|
-
tooltip: "设置自定义类名",
|
219357
|
-
type: "Function",
|
219358
|
-
el: "hs-input"
|
219359
|
-
},
|
219360
|
-
{
|
219361
|
-
prop: "teleported",
|
219362
|
-
label: "是否插入至body",
|
219363
|
-
tooltip: "是否将 date-picker 的下拉列表插入至 body 元素",
|
219364
|
-
type: "boolean",
|
219365
|
-
el: "hs-switch"
|
219366
|
-
}
|
219367
|
-
]
|
219368
|
-
},
|
219369
|
-
{
|
219370
|
-
prop: "rules",
|
219371
|
-
label: "rules",
|
219372
|
-
tooltip: "rules",
|
219373
|
-
type: "object",
|
219374
|
-
el: "title",
|
219375
|
-
children: [
|
219376
|
-
{
|
219377
|
-
prop: "required",
|
219378
|
-
label: "是否必填",
|
219379
|
-
tooltip: "是否必填",
|
219380
|
-
type: "boolean",
|
219381
|
-
el: "hs-switch"
|
219382
|
-
},
|
219383
|
-
// 必填项规则
|
219384
|
-
{
|
219385
|
-
prop: "rules",
|
219386
|
-
label: "必填项规则",
|
219387
|
-
tooltip: "必填项规则",
|
219388
|
-
type: "array",
|
219389
|
-
el: "hs-input",
|
219390
|
-
attrs: {
|
219391
|
-
type: "textarea"
|
219392
|
-
}
|
219393
|
-
}
|
219394
|
-
]
|
219395
|
-
}
|
219396
|
-
];
|
219397
|
-
const datePickerAttrConfigMap = {
|
219398
|
-
// 默认配置项
|
219399
|
-
attrs: {
|
219400
|
-
size: "default",
|
219401
|
-
readonly: false,
|
219402
|
-
// 是否只读
|
219403
|
-
disabled: false,
|
219404
|
-
// 是否禁用
|
219405
|
-
editable: true,
|
219406
|
-
// 文本框可输入
|
219407
|
-
clearable: true,
|
219408
|
-
// 是否显示清除按钮
|
219409
|
-
type: "date",
|
219410
|
-
// 显示类型
|
219411
|
-
"range-separator": "-",
|
219412
|
-
// 选择范围时的分隔符
|
219413
|
-
"unlink-panels": false,
|
219414
|
-
// 在范围选择器里取消两个日期面板之间的联动
|
219415
|
-
"clear-icon": "",
|
219416
|
-
// 清除图标
|
219417
|
-
"validate-event": true,
|
219418
|
-
// 是否触发表单验证
|
219419
|
-
teleported: true,
|
219420
|
-
// 是否将 date-picker 的下拉列表插入至 body 元素
|
219421
|
-
placeholder: "请选择",
|
219422
|
-
// 占位符
|
219423
|
-
format: "YYYY-MM-DD HH:mm:ss",
|
219424
|
-
"value-format": "YYYY-MM-DD HH:mm:ss"
|
219425
|
-
},
|
219426
|
-
rules: {
|
219427
|
-
required: false,
|
219428
|
-
rules: ""
|
219429
|
-
}
|
219430
|
-
};
|
219431
219542
|
const _hoisted_1$c = { class: "p-[10px] h-full" };
|
219432
219543
|
const __default__$d = defineComponent({
|
219433
219544
|
name: "datePickerAttrConfig"
|