hs-admin-ui 8.9.2 → 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.
Files changed (299) hide show
  1. package/README.md +9 -9
  2. package/dist/{401-C9jdU8QT.mjs → 401-B_DJeM9x.mjs} +1 -1
  3. package/dist/{401-S9vNbXIA.js → 401-Bg_9jOxS.js} +1 -1
  4. package/dist/{404-DR3BUw8n.mjs → 404-LTUbV0EQ.mjs} +1 -1
  5. package/dist/404-LTUbV0EQ.mjs.gz +0 -0
  6. package/dist/{404-dZcGeln5.js → 404-kKrUFWz7.js} +1 -1
  7. package/dist/{404-dZcGeln5.js.gz → 404-kKrUFWz7.js.gz} +0 -0
  8. package/dist/{account-CPg_gXRL.js → account-DAVCBc3f.js} +1 -1
  9. package/dist/account-DAVCBc3f.js.gz +0 -0
  10. package/dist/{account-BI3r-Q4G.mjs → account-DNOPEuQ2.mjs} +2 -2
  11. package/dist/account-DNOPEuQ2.mjs.gz +0 -0
  12. package/dist/{aside-CAx3eksJ.js → aside-Cq8ZiBg5.js} +1 -1
  13. package/dist/{aside-Dz8yJUS3.mjs → aside-DLAXuDkS.mjs} +3 -3
  14. package/dist/{btnIndex-C7YP_oxB.mjs → btnIndex-BeCmTe7c.mjs} +2 -2
  15. package/dist/btnIndex-BeCmTe7c.mjs.gz +0 -0
  16. package/dist/{btnIndex-BwPvDFX-.js → btnIndex-BzgBns7b.js} +1 -1
  17. package/dist/{classic-VjYqr5SO.js → classic-C7m-mNNP.js} +1 -1
  18. package/dist/{classic-LftXHzkN.mjs → classic-sA9JD0XK.mjs} +5 -5
  19. package/dist/{cloneConfigDialog-CJbZc-eR.js → cloneConfigDialog-BAxqslp6.js} +1 -1
  20. package/dist/{cloneConfigDialog-Bjl7KPbR.mjs → cloneConfigDialog-C1qPkTR9.mjs} +1 -1
  21. package/dist/cloneConfigDialog-C1qPkTR9.mjs.gz +0 -0
  22. package/dist/{columns-pj5XODGG.js → columns-BA97am6F.js} +1 -1
  23. package/dist/{columns-DYYXmKvp.mjs → columns-BcSfHGo3.mjs} +5 -5
  24. package/dist/{columnsAside-DzHBF42s.js → columnsAside-DghQd1X1.js} +1 -1
  25. package/dist/{columnsAside-DEHB5Gzv.mjs → columnsAside-Q4jjusbj.mjs} +1 -1
  26. package/dist/{contextmenu-a0g4xMsF.js → contextmenu-CtSTG-mI.js} +1 -1
  27. package/dist/{contextmenu-DrbjTY0N.mjs → contextmenu-DU0wRAKM.mjs} +1 -1
  28. package/dist/{contextmenu-BoiiPGFe.js → contextmenu-edOkVy21.js} +1 -1
  29. package/dist/{contextmenu-nyB8BXaM.mjs → contextmenu-uxE2XaNr.mjs} +1 -1
  30. package/dist/{copyMenuConfig-DOH5DoYg.mjs → copyMenuConfig-8aN1zmUB.mjs} +1 -1
  31. package/dist/{copyMenuConfig-C-tQDeHf.js → copyMenuConfig-isWEtSg1.js} +1 -1
  32. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-CLZkkueh.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-BS41vD_X.mjs} +1 -1
  33. package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-CmTylD25.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BiCbyb8P.js} +1 -1
  34. package/dist/{copySystem-DyS8klKm.mjs → copySystem-BJFWNp6f.mjs} +1 -1
  35. package/dist/{copySystem-B5E_RHdL.js → copySystem-BqP_a1JE.js} +1 -1
  36. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DmHV3LqC.js → copySystem.vue_vue_type_script_setup_true_lang-Bepq1mG5.js} +1 -1
  37. package/dist/{copySystem.vue_vue_type_script_setup_true_lang-U-I6p6I-.mjs → copySystem.vue_vue_type_script_setup_true_lang-CL3jXGqj.mjs} +1 -1
  38. package/dist/{defaults-DoF8EDrg.mjs → defaults-DXD6WUgu.mjs} +4 -4
  39. package/dist/{defaults-BklPxssv.js → defaults-_3MEXjUX.js} +1 -1
  40. package/dist/{dialog-BtabE-kE.mjs → dialog-BDKPLTCp.mjs} +1 -1
  41. package/dist/{dialog-Cbo-zwTM.mjs → dialog-B_s7T-z2.mjs} +1 -1
  42. package/dist/{dialog-BL-x6FW2.js → dialog-ByBOKHMt.js} +1 -1
  43. package/dist/{dialog-DnpaBGPb.js → dialog-CFFl8omJ.js} +1 -1
  44. package/dist/{dialog-Dj7JSeX0.js → dialog-CfXd0rtg.js} +1 -1
  45. package/dist/{dialog-D47RHH8E.mjs → dialog-DsQzWExm.mjs} +1 -1
  46. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B8JHHPuD.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dw40ZWty.mjs} +2 -2
  47. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B_nj6udJ.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-YMwN-Fxf.js} +1 -1
  48. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D9KWG2qt.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-J7_Sa8XF.mjs} +2 -2
  49. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-J7_Sa8XF.mjs.gz +0 -0
  50. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-jGUd1b15.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-O9bYZeVi.js} +1 -1
  51. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-O9bYZeVi.js.gz +0 -0
  52. package/dist/{dictDialog-CRUeeJaQ.mjs → dictDialog-B8echph2.mjs} +1 -1
  53. package/dist/{dictDialog-tbj2qP4a.js → dictDialog-DNumQ2p6.js} +1 -1
  54. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-fykJSs5o.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dtn94xPN.mjs} +2 -2
  55. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D_KDF4hu.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-sPWJOkHV.js} +1 -1
  56. package/dist/{dictItemDialog-DnRh3zoE.js → dictItemDialog-D7kdvxv8.js} +1 -1
  57. package/dist/{dictItemDialog-ClA5SK80.mjs → dictItemDialog-DyOlaFDe.mjs} +1 -1
  58. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CgXBBBdQ.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-BxBits0R.mjs} +2 -2
  59. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CgIAGSFx.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DDaJbtei.js} +1 -1
  60. package/dist/{editDialog-B8f4aTVP.mjs → editDialog-BDV4zBRN.mjs} +1 -1
  61. package/dist/{editDialog-CPnnaV_i.js → editDialog-BG1_LIY-.js} +1 -1
  62. package/dist/{formConfig-Cv_l0n4E.js → formConfig-D6wykEGq.js} +1 -1
  63. package/dist/{formConfig-Daf3f6jt.mjs → formConfig-yh6N0_zI.mjs} +4 -4
  64. package/dist/formConfig-yh6N0_zI.mjs.gz +0 -0
  65. package/dist/{header-CFBz9yFO.js → header-DkaHlpuj.js} +1 -1
  66. package/dist/{header-CQfoeXRL.mjs → header-DvKTU-vl.mjs} +2 -2
  67. package/dist/{horizontal-D-EuMYB7.js → horizontal-CWaQOaZD.js} +1 -1
  68. package/dist/{horizontal-oxrzspxD.mjs → horizontal-F3NCsGON.mjs} +2 -2
  69. package/dist/{hsAttrBtn-BJcbgInR.js → hsAttrBtn-DqP-54Ee.js} +1 -1
  70. package/dist/{hsAttrBtn-CFiPDc_D.mjs → hsAttrBtn-muZc9EW7.mjs} +1 -1
  71. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DcausRif.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-05nqckwD.mjs} +3 -3
  72. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DXxugENM.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Cp1phPyG.js} +1 -1
  73. package/dist/{hsAttrForm-BEcHg4uv.mjs → hsAttrForm-BsNz69dy.mjs} +1 -1
  74. package/dist/{hsAttrForm-BrMLpBLj.js → hsAttrForm-YMKLyGRA.js} +1 -1
  75. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Bb_2xzmV.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BQGYTsws.js} +1 -1
  76. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-C0JWMBzs.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-MTiMzc_D.mjs} +2 -2
  77. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-MTiMzc_D.mjs.gz +0 -0
  78. package/dist/{hsBtnConfigList-mA3bEp7W.mjs → hsBtnConfigList-CGmJ2o6O.mjs} +1 -1
  79. package/dist/{hsBtnConfigList-D8rYUJaX.js → hsBtnConfigList-eT9jGiot.js} +1 -1
  80. package/dist/{hsBtnItemConfig-C_CBwf9-.mjs → hsBtnItemConfig-C9Ua-GAt.mjs} +1 -1
  81. package/dist/{hsBtnItemConfig-CHNCDesK.js → hsBtnItemConfig-DIigYQQT.js} +1 -1
  82. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Dp7qOrkG.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bp4_NG1_.mjs} +1 -1
  83. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-dS_gezD3.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-orQ4rIeR.js} +1 -1
  84. package/dist/{hsBtnPanel-CZ0KRl59.mjs → hsBtnPanel-CEgikcyP.mjs} +1 -1
  85. package/dist/{hsBtnPanel-D_pIc1Mj.js → hsBtnPanel-DDnSTxhz.js} +1 -1
  86. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DaGkHWqm.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CDnDhY_i.js} +1 -1
  87. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DB8Xg_0z.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D1O82Nux.mjs} +4 -4
  88. package/dist/{hsExpand--j25vsl-.js → hsExpand-Cx60PUyi.js} +1 -1
  89. package/dist/{hsExpand-VNIxQvYQ.mjs → hsExpand-fD7HJdii.mjs} +1 -1
  90. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DyWzIXSv.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BgtX7ost.mjs} +1 -1
  91. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-TaYfhQI6.js → hsExpand.vue_vue_type_script_setup_true_lang-_kCNoI_r.js} +1 -1
  92. package/dist/{hsFormConfig-y2thQ0ck.js → hsFormConfig-B1lGwjyE.js} +1 -1
  93. package/dist/{hsFormConfig-COgwg7XY.mjs → hsFormConfig-Draw6-ib.mjs} +1 -1
  94. package/dist/{hsFormConfigList-BKJbQxc-.mjs → hsFormConfigList-B5uPtmYr.mjs} +2 -2
  95. package/dist/hsFormConfigList-B5uPtmYr.mjs.gz +0 -0
  96. package/dist/{hsFormConfigList-CKns11O7.js → hsFormConfigList-up0rzzYf.js} +1 -1
  97. package/dist/{hsFormPanel-p86wX_9y.mjs → hsFormPanel-ByswlpL6.mjs} +5 -5
  98. package/dist/hsFormPanel-ByswlpL6.mjs.gz +0 -0
  99. package/dist/{hsFormPanel-BX4ftgua.js → hsFormPanel-CCU0eM2x.js} +1 -1
  100. package/dist/{hsFormParse-BNJPSLrU.mjs → hsFormParse-Bhenq19A.mjs} +1 -1
  101. package/dist/{hsFormParse-BToSUn5U.js → hsFormParse-CF2BIb25.js} +1 -1
  102. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CU6ovbkn.js → hsFormParse.vue_vue_type_script_setup_true_lang-Ckq5_gM8.js} +1 -1
  103. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DBjed5DU.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-D35-e2Ku.mjs} +1 -1
  104. package/dist/{hsPanelItem-0Yph_QU7.mjs → hsPanelItem-BAhhWlbq.mjs} +1 -1
  105. package/dist/{hsPanelItem-Cy7v-Ca6.js → hsPanelItem-Chz1OzXM.js} +1 -1
  106. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DBdSFcEo.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DKtW6EOB.mjs} +1 -1
  107. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CiWwMBrD.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DPNqs7g3.js} +1 -1
  108. package/dist/{iframes-uNR0XjSZ.mjs → iframes-CSWtdAzA.mjs} +1 -1
  109. package/dist/{iframes--NigNRtI.js → iframes-pN6oeo6t.js} +1 -1
  110. package/dist/{index copy-BaQIJgEZ.mjs → index copy-BEL97Kl4.mjs } +1 -1
  111. package/dist/index copy-BEL97Kl4.mjs.gz +0 -0
  112. package/dist/{index copy-Brz9TuJT.js → index copy-Btqmd79B.js } +1 -1
  113. package/dist/index copy-Btqmd79B.js.gz +0 -0
  114. package/dist/{index-sne3LwsD.mjs → index-1CLYGfjI.mjs} +1 -1
  115. package/dist/{index-CAqikl1Q.js → index-B07JeEmt.js} +1 -1
  116. package/dist/{index-Cxl9sNhM.js → index-B7nataM3.js} +1 -1
  117. package/dist/{index-EwuS0APG.mjs → index-BCVvhP4X.mjs} +1 -1
  118. package/dist/{index-D7-5nyPv.mjs → index-BGL2Au0S.mjs} +5 -5
  119. package/dist/{index-CzcloeRS.mjs → index-BMdALfnU.mjs} +1 -1
  120. package/dist/{index-DiQP9egY.mjs → index-BPBWv1h-.mjs} +2 -2
  121. package/dist/{index-COiT5UMN.mjs → index-BRjzOdJj.mjs} +1 -1
  122. package/dist/{index-BPPABP64.mjs → index-BaWALM0D.mjs} +4 -4
  123. package/dist/{index-DfZZr0fW.mjs → index-BbkEG1h9.mjs} +1 -1
  124. package/dist/{index-BU-CSiyw.js → index-Bfe4UE0l.js} +1 -1
  125. package/dist/{index-BoNn9MYc.js → index-BmHnTofM.js} +1 -1
  126. package/dist/{index-CXaO0b8f.mjs → index-Bo7YzBtA.mjs} +1 -1
  127. package/dist/{index-lMD3enqi.mjs → index-BokRSIQ9.mjs} +4 -4
  128. package/dist/{index-AfTZ5TJp.js → index-BorVzyuI.js} +1 -1
  129. package/dist/{index-TUy_r8Je.js → index-Bs5h2TFv.js} +1 -1
  130. package/dist/{index-B7aTIioN.mjs → index-BsS93eKg.mjs} +2 -2
  131. package/dist/{index-DkrVoPT1.js → index-BueuR5_u.js} +1 -1
  132. package/dist/{index-B_Uipn1b.js → index-Bw4sbzGB.js} +1 -1
  133. package/dist/{index-iftS76SQ.mjs → index-BweGsple.mjs} +3 -3
  134. package/dist/index-BweGsple.mjs.gz +0 -0
  135. package/dist/{index-CUA2dLib.mjs → index-Byfw8QB8.mjs} +1 -1
  136. package/dist/{index-Ca2luZEx.js → index-C08jpkO7.js} +1 -1
  137. package/dist/{index-9nrUwS83.js → index-C0lVkSgq.js} +1 -1
  138. package/dist/{index-BKcgs385.mjs → index-C2XDMtk5.mjs} +1 -1
  139. package/dist/{index-Dk9x-g6t.js → index-C4f_B3ds.js} +1 -1
  140. package/dist/{index-DHEJFVqj.js → index-CBbgcdla.js} +1 -1
  141. package/dist/{index-6a-vrHqU.mjs → index-CFxAdsyL.mjs} +1 -1
  142. package/dist/{index-Ciw_mmOv.mjs → index-CLTWA8he.mjs} +3 -3
  143. package/dist/{index-6NPSPhTy.js → index-CRWY0G9v.js} +1 -1
  144. package/dist/{index-Dav890mS.js → index-CS8TsAIB.js} +1 -1
  145. package/dist/{index-Cxb7PiwZ.js → index-CTJH-XX-.js} +1 -1
  146. package/dist/{index-_Ta7XuhA.mjs → index-CXazwuIq.mjs} +2 -2
  147. package/dist/{index-C9vuFTsj.js → index-CaWZGQca.js} +1 -1
  148. package/dist/index-CaWZGQca.js.gz +0 -0
  149. package/dist/{index-D6heEWm8.js → index-CiQePVeV.js} +1 -1
  150. package/dist/{index-FU1cCxOJ.js → index-CmRDYJKo.js} +1 -1
  151. package/dist/{index-BhSfxNOq.mjs → index-CnOgBFgI.mjs} +1 -1
  152. package/dist/{index-tALGC30H.js → index-Cp5wV2RD.js} +1 -1
  153. package/dist/{index-D-bOYuVl.mjs → index-CqT0mNKb.mjs} +2 -2
  154. package/dist/{index-DYXD-hh-.mjs → index-CrOoYK51.mjs} +1 -1
  155. package/dist/{index-BK6mbQHY.mjs → index-CsQrKVoN.mjs} +2 -2
  156. package/dist/index-CsQrKVoN.mjs.gz +0 -0
  157. package/dist/{index-Dn3YiiJk.mjs → index-CzAwFGeG.mjs} +4 -4
  158. package/dist/index-CzAwFGeG.mjs.gz +0 -0
  159. package/dist/{index-C7jtvOUp.mjs → index-D1atoFJ4.mjs} +1 -1
  160. package/dist/{index-k3MOB9ok.mjs → index-D2M88SrA.mjs} +1 -1
  161. package/dist/{index-CAbeLWbE.mjs → index-D3jvaNxB.mjs} +3 -3
  162. package/dist/{index-DEcx_V-i.js → index-D4-q7lde.js} +1 -1
  163. package/dist/{index-Ck_DghgJ.js → index-D9NBGD2n.js} +1 -1
  164. package/dist/{index-DKLypVPs.mjs → index-DFN0U7np.mjs} +1 -1
  165. package/dist/index-DFN0U7np.mjs.gz +0 -0
  166. package/dist/index-DG9PqNlz.mjs +4 -0
  167. package/dist/{index-59LkaCqn.mjs → index-DItIrEZO.mjs} +1 -1
  168. package/dist/{index-QJ0zdUN_.js → index-DKPd1TeP.js} +1 -1
  169. package/dist/index-DKPd1TeP.js.gz +0 -0
  170. package/dist/{index-CWJpfEPM.js → index-DLhZyv_L.js} +1 -1
  171. package/dist/{index-7270SU-e.mjs → index-DMRHg2gz.mjs} +1 -1
  172. package/dist/{index-DGPJzKOj.js → index-DRUePvJc.js} +4 -4
  173. package/dist/{index-DGPJzKOj.js.gz → index-DRUePvJc.js.gz} +0 -0
  174. package/dist/{index-DdNRqBbd.js → index-DV_mbvMp.js} +1 -1
  175. package/dist/{index-yAnBDF0k.js → index-DYD5sdJx.js} +1 -1
  176. package/dist/{index-CRBSpgLm.js → index-DfuXKM1N.js} +1 -1
  177. package/dist/{index-CK2S7vpU.js → index-DgZRNaxV.js} +1 -1
  178. package/dist/{index-56IejoV7.mjs → index-DtpuYMg2.mjs} +1 -1
  179. package/dist/{index-B9aGnoj8.js → index-Dud6SkC1.js} +1 -1
  180. package/dist/{index-Bm4x0U_M.mjs → index-DvETxL01.mjs} +2326 -2215
  181. package/dist/{index-Bm4x0U_M.mjs.gz → index-DvETxL01.mjs.gz} +0 -0
  182. package/dist/{index-BJSoeE5q.mjs → index-DzVE5kkA.mjs} +1 -1
  183. package/dist/{index-CfSSc-jS.js → index-ItI_aLRd.js} +1 -1
  184. package/dist/{index-CWSiT-DS.mjs → index-PU4bVl9p.mjs} +3 -3
  185. package/dist/index-PU4bVl9p.mjs.gz +0 -0
  186. package/dist/{index-BHZx47IQ.js → index-QfAyS9tU.js} +1 -1
  187. package/dist/{index-B1TNb9_w.mjs → index-RrEfMECG.mjs} +1 -1
  188. package/dist/{index-BbSZ22K7.js → index-SjJX2cHo.js} +1 -1
  189. package/dist/{index-BIKrIK65.mjs → index-V9SDENcZ.mjs} +3 -3
  190. package/dist/{index-CgTQ6PBo.js → index-WRwKVNCj.js} +1 -1
  191. package/dist/index-WRwKVNCj.js.gz +0 -0
  192. package/dist/{index-B4sLXu8A.js → index-_ZipSMbY.js} +1 -1
  193. package/dist/{index-DmKSdaB_.js → index-amWtWxEP.js} +1 -1
  194. package/dist/{index-B1aJeBDv.js → index-e681k9MU.js} +1 -1
  195. package/dist/{index-BIscve-c.js → index-m9rs9A2Z.js} +1 -1
  196. package/dist/{index-DNCxxUcu.mjs → index-o6IoIHb8.mjs} +3 -3
  197. package/dist/{index-Cx5U8P4A.mjs → index-obc-59PR.mjs} +3 -3
  198. package/dist/{index-C1cDX-9C.mjs → index-sbFkb7GB.mjs} +1 -1
  199. package/dist/{index-B3yxbsgr.js → index-uQgqVAg2.js} +1 -1
  200. package/dist/index.js +1 -1
  201. package/dist/index.mjs +1 -1
  202. package/dist/{index.vue_vue_type_script_setup_true_lang-BLjwIbl0.mjs → index.vue_vue_type_script_setup_true_lang-BqVITJfs.mjs} +1 -1
  203. package/dist/index.vue_vue_type_script_setup_true_lang-BqVITJfs.mjs.gz +0 -0
  204. package/dist/{index.vue_vue_type_script_setup_true_lang-BXYXBQfK.js → index.vue_vue_type_script_setup_true_lang-BtCwkoUQ.js} +1 -1
  205. package/dist/{index.vue_vue_type_script_setup_true_lang-BNrPqY1K.js → index.vue_vue_type_script_setup_true_lang-CwzphJlv.js} +1 -1
  206. package/dist/{index.vue_vue_type_script_setup_true_lang-RiPuiD8O.mjs → index.vue_vue_type_script_setup_true_lang-DC0FRewd.mjs} +1 -1
  207. package/dist/{index.vue_vue_type_script_setup_true_lang-CgoQYISD.js → index.vue_vue_type_script_setup_true_lang-DLvscdal.js} +1 -1
  208. package/dist/{index.vue_vue_type_script_setup_true_lang-Bw86KQFq.js → index.vue_vue_type_script_setup_true_lang-DlEhP7Gw.js} +1 -1
  209. package/dist/{index.vue_vue_type_script_setup_true_lang-BPpivjXi.mjs → index.vue_vue_type_script_setup_true_lang-RgYaz8v6.mjs} +1 -1
  210. package/dist/{index.vue_vue_type_script_setup_true_lang-C_R17HSP.mjs → index.vue_vue_type_script_setup_true_lang-psaUz9M9.mjs} +4 -4
  211. package/dist/{link-C71E_NaT.js → link-CVVTYvsn.js} +1 -1
  212. package/dist/{link-B-gV66OI.mjs → link-Du1zE1VS.mjs} +1 -1
  213. package/dist/{list-cPXAhZ9h.mjs → list-B0pnzmrr.mjs} +1 -1
  214. package/dist/{list-BjRqos3B.js → list-BiEcsT3J.js} +1 -1
  215. package/dist/{main-Czr9dtRe.mjs → main-BHafzBiw.mjs} +3 -3
  216. package/dist/{main-DIRJoUed.js → main-D4IDYKL2.js} +1 -1
  217. package/dist/{mobile-B_I1DQfL.js → mobile-3tT9Flfe.js} +1 -1
  218. package/dist/{mobile-BukUrcQd.mjs → mobile-Df6RvUkG.mjs} +1 -1
  219. package/dist/{parent-D6FuBEdS.mjs → parent-B2kuljEL.mjs} +2 -2
  220. package/dist/{parent-CKWi-uVl.js → parent-CmfsM7yu.js} +1 -1
  221. package/dist/{popup-GQUqYaPy.mjs → popup-CtCvnlE3.mjs} +1 -1
  222. package/dist/{popup-C9gxagL2.js → popup-u9mOo0AX.js} +1 -1
  223. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-ClHXpn3B.js → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-Be8emmJ2.js} +1 -1
  224. package/dist/{popup.vue_vue_type_script_setup_true_name_editorPopup_lang-CUfw7D43.mjs → popup.vue_vue_type_script_setup_true_name_editorPopup_lang-q6xb9L0-.mjs} +1 -1
  225. package/dist/{replaceRules-9sOC-m0D.js → replaceRules-BLfBOl8c.js} +1 -1
  226. package/dist/{replaceRules-DuZ36lVw.mjs → replaceRules-fOcpCHTW.mjs} +1 -1
  227. package/dist/{roleItem-Cettr5nP.mjs → roleItem-BbxCMaID.mjs} +1 -1
  228. package/dist/{roleItem-By6Hcirk.js → roleItem-caK3H7XS.js} +1 -1
  229. package/dist/{saveForm-BHfoN7cz.js → saveForm-CBGAd0NN.js} +1 -1
  230. package/dist/{saveForm-DwrD4-c7.mjs → saveForm-kuHZxwM6.mjs} +2 -2
  231. package/dist/saveForm-kuHZxwM6.mjs.gz +0 -0
  232. package/dist/{scan-BtC7DzF0.js → scan-7EXNQjdl.js} +1 -1
  233. package/dist/scan-7EXNQjdl.js.gz +0 -0
  234. package/dist/{scan-BK6bPvGL.mjs → scan-BZHuBrzs.mjs} +1 -1
  235. package/dist/{scan-BK6bPvGL.mjs.gz → scan-BZHuBrzs.mjs.gz} +0 -0
  236. package/dist/{search-CPn9jgh2.mjs → search-DSckgiOO.mjs} +1 -1
  237. package/dist/{search-CAElCDc9.js → search-DgNiymdN.js} +1 -1
  238. package/dist/{selectConfig-DQzjquRp.mjs → selectConfig-DtTQzreu.mjs} +1 -1
  239. package/dist/selectConfig-DtTQzreu.mjs.gz +0 -0
  240. package/dist/{selectConfig-DTkhonq8.js → selectConfig-e7Pzm4lh.js} +1 -1
  241. package/dist/style.css +1 -1
  242. package/dist/style.css.gz +0 -0
  243. package/dist/{subItem-KK3xw-0p.js → subItem-BaRoAzr5.js} +1 -1
  244. package/dist/{subItem-DQYeSxl4.mjs → subItem-CS4j3YdF.mjs} +1 -1
  245. package/dist/{tagsView-B9jeNcGd.mjs → tagsView-CHRgG0Fp.mjs} +2 -2
  246. package/dist/tagsView-CHRgG0Fp.mjs.gz +0 -0
  247. package/dist/{tagsView-DYRct46P.js → tagsView-bY1pXIOd.js} +2 -2
  248. package/dist/tagsView-bY1pXIOd.js.gz +0 -0
  249. package/dist/{transverse-BJLFtmK6.mjs → transverse-DIXF93RM.mjs} +3 -3
  250. package/dist/{transverse-Cpbad5NH.js → transverse-UJsOwzi5.js} +1 -1
  251. package/dist/types/components/business/bcForm/type.d.ts +4 -0
  252. package/dist/types/components/business/bcTable/utils/type.d.ts +2 -2
  253. package/dist/{uploadAvatar-CPk-GiIK.js → uploadAvatar-DM_LBV83.js} +1 -1
  254. package/dist/uploadAvatar-DM_LBV83.js.gz +0 -0
  255. package/dist/{uploadAvatar-Clv8WnYE.mjs → uploadAvatar-LRYJb9fa.mjs} +1 -1
  256. package/dist/uploadAvatar-LRYJb9fa.mjs.gz +0 -0
  257. package/dist/{user-1MSdGSUH.mjs → user-BW-0gooz.mjs} +4 -4
  258. package/dist/user-BW-0gooz.mjs.gz +0 -0
  259. package/dist/{user-B_1MluNw.js → user-BiGsmixv.js} +1 -1
  260. package/dist/{userNews-CEM63bmj.js → userNews-CB5qMlgP.js} +1 -1
  261. package/dist/{userNews-iCtk1u3F.mjs → userNews-CBOVGhiD.mjs} +1 -1
  262. package/dist/{userSelect-BHLOiD3v.mjs → userSelect-BlQXpzAs.mjs} +1 -1
  263. package/dist/{userSelect-DqJdR7XU.js → userSelect-DnnAkcRw.js} +1 -1
  264. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BAM4Jgqu.mjs → userSelect.vue_vue_type_script_setup_true_lang-BUR10HbR.mjs} +1 -1
  265. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BBHQbNeC.js → userSelect.vue_vue_type_script_setup_true_lang-ILPloBnZ.js} +1 -1
  266. package/dist/{vertical-Dv6K0QKV.js → vertical-CW7Crsx6.js} +1 -1
  267. package/dist/{vertical-DEmPNsvk.mjs → vertical-DvmVp0Zf.mjs} +2 -2
  268. package/package.json +1 -1
  269. package/dist/404-DR3BUw8n.mjs.gz +0 -0
  270. package/dist/account-BI3r-Q4G.mjs.gz +0 -0
  271. package/dist/account-CPg_gXRL.js.gz +0 -0
  272. package/dist/btnIndex-C7YP_oxB.mjs.gz +0 -0
  273. package/dist/cloneConfigDialog-Bjl7KPbR.mjs.gz +0 -0
  274. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D9KWG2qt.mjs.gz +0 -0
  275. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-jGUd1b15.js.gz +0 -0
  276. package/dist/formConfig-Daf3f6jt.mjs.gz +0 -0
  277. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C0JWMBzs.mjs.gz +0 -0
  278. package/dist/hsFormConfigList-BKJbQxc-.mjs.gz +0 -0
  279. package/dist/hsFormPanel-p86wX_9y.mjs.gz +0 -0
  280. package/dist/index copy-BaQIJgEZ.mjs.gz +0 -0
  281. package/dist/index copy-Brz9TuJT.js.gz +0 -0
  282. package/dist/index-BK6mbQHY.mjs.gz +0 -0
  283. package/dist/index-C9vuFTsj.js.gz +0 -0
  284. package/dist/index-CWSiT-DS.mjs.gz +0 -0
  285. package/dist/index-CgTQ6PBo.js.gz +0 -0
  286. package/dist/index-DKLypVPs.mjs.gz +0 -0
  287. package/dist/index-DT94iaIo.mjs +0 -4
  288. package/dist/index-Dn3YiiJk.mjs.gz +0 -0
  289. package/dist/index-QJ0zdUN_.js.gz +0 -0
  290. package/dist/index-iftS76SQ.mjs.gz +0 -0
  291. package/dist/index.vue_vue_type_script_setup_true_lang-BLjwIbl0.mjs.gz +0 -0
  292. package/dist/saveForm-DwrD4-c7.mjs.gz +0 -0
  293. package/dist/scan-BtC7DzF0.js.gz +0 -0
  294. package/dist/selectConfig-DQzjquRp.mjs.gz +0 -0
  295. package/dist/tagsView-B9jeNcGd.mjs.gz +0 -0
  296. package/dist/tagsView-DYRct46P.js.gz +0 -0
  297. package/dist/uploadAvatar-CPk-GiIK.js.gz +0 -0
  298. package/dist/uploadAvatar-Clv8WnYE.mjs.gz +0 -0
  299. package/dist/user-1MSdGSUH.mjs.gz +0 -0
@@ -131385,7 +131385,7 @@ const dynamicRoutes = [
131385
131385
  {
131386
131386
  path: "/",
131387
131387
  name: "/",
131388
- component: () => import("./index-D7-5nyPv.mjs"),
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-DR3BUw8n.mjs"),
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-C9jdU8QT.mjs"),
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-BIKrIK65.mjs"),
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-uNR0XjSZ.mjs"), "../layout/routerView/link.vue": () => import("./link-B-gV66OI.mjs"), "../layout/routerView/parent.vue": () => import("./parent-D6FuBEdS.mjs") });
134645
- const viewsModules = /* @__PURE__ */ Object.assign({ "../views/config/buttonManagement/btnIndex.vue": () => import("./btnIndex-C7YP_oxB.mjs"), "../views/config/buttonManagement/dialog.vue": () => import("./dialog-Cbo-zwTM.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-CWSiT-DS.mjs"), "../views/config/dataAuth/dialog.vue": () => import("./dialog-D47RHH8E.mjs"), "../views/config/dataAuth/index.vue": () => import("./index-CAbeLWbE.mjs"), "../views/config/dataDict/components/dict/dictDialog.vue": () => import("./dictDialog-CRUeeJaQ.mjs"), "../views/config/dataDict/components/dictItem/dictItemDialog.vue": () => import("./dictItemDialog-ClA5SK80.mjs"), "../views/config/dataDict/index.vue": () => import("./index-Dn3YiiJk.mjs"), "../views/config/fieldPool/components/dialog/index.vue": () => import("./index-6a-vrHqU.mjs"), "../views/config/fieldPool/components/formAttr/index.vue": () => import("./index-k3MOB9ok.mjs"), "../views/config/fieldPool/components/searchFormAttr/index.vue": () => import("./index-DYXD-hh-.mjs"), "../views/config/fieldPool/components/tableAttr/index.vue": () => import("./index-C7jtvOUp.mjs"), "../views/config/fieldPool/index.vue": () => import("./index-B7aTIioN.mjs"), "../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue": () => import("./hsAttrBtn-CFiPDc_D.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue": () => import("./hsBtnConfigList-mA3bEp7W.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue": () => import("./hsBtnItemConfig-C_CBwf9-.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue": () => import("./hsBtnPanel-CZ0KRl59.mjs"), "../views/config/formSetting/components/hsExpand/src/hsExpand.vue": () => import("./hsExpand-VNIxQvYQ.mjs"), "../views/config/formSetting/components/hsForm/src/contextmenu.vue": () => import("./contextmenu-nyB8BXaM.mjs"), "../views/config/formSetting/components/hsForm/src/hsAttrForm.vue": () => import("./hsAttrForm-BEcHg4uv.mjs"), "../views/config/formSetting/components/hsForm/src/hsCheckbox.vue": () => import("./hsCheckbox-tRIRuNcX.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfig.vue": () => import("./hsFormConfig-COgwg7XY.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue": () => import("./hsFormConfigList-BKJbQxc-.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormPanel.vue": () => import("./hsFormPanel-p86wX_9y.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormParse.vue": () => import("./hsFormParse-BNJPSLrU.mjs"), "../views/config/formSetting/components/hsSaveForm/src/cloneConfigDialog.vue": () => import("./cloneConfigDialog-Bjl7KPbR.mjs"), "../views/config/formSetting/components/hsSaveForm/src/saveForm.vue": () => import("./saveForm-DwrD4-c7.mjs"), "../views/config/formSetting/components/selectConfig/selectConfig.vue": () => import("./selectConfig-DQzjquRp.mjs"), "../views/config/formSetting/formConfig.vue": () => import("./formConfig-Daf3f6jt.mjs"), "../views/config/formSetting/index.vue": () => import("./index-D-bOYuVl.mjs"), "../views/config/index.vue": () => import("./index-BKcgs385.mjs"), "../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue": () => import("./hsPanelItem-0Yph_QU7.mjs"), "../views/config/pageElement/index.vue": () => import("./index-lMD3enqi.mjs"), "../views/config/parseAPI/index.vue": () => import("./index-DKLypVPs.mjs"), "../views/config/system/component/addOrEditSystem/index.vue": () => import("./index-BhSfxNOq.mjs"), "../views/config/system/component/copySystem/copySystem.vue": () => import("./copySystem-DyS8klKm.mjs"), "../views/config/system/index.vue": () => import("./index-Ciw_mmOv.mjs"), "../views/config/table/index.vue": () => import("./index-BJSoeE5q.mjs"), "../views/error/401.vue": () => import("./401-C9jdU8QT.mjs"), "../views/error/404.vue": () => import("./404-DR3BUw8n.mjs"), "../views/home/index.vue": () => import("./index-CXaO0b8f.mjs"), "../views/login/component/account.vue": () => import("./account-BI3r-Q4G.mjs"), "../views/login/component/mobile.vue": () => import("./mobile-BukUrcQd.mjs"), "../views/login/component/scan.vue": () => import("./scan-BK6bPvGL.mjs"), "../views/login/index.vue": () => import("./index-BIKrIK65.mjs"), "../views/system/dept/dialog.vue": () => import("./dialog-BEl3p3pT.mjs"), "../views/system/dept/index.vue": () => import("./index-59LkaCqn.mjs"), "../views/system/dic/dialog.vue": () => import("./dialog-CuCf2uk1.mjs"), "../views/system/dic/index.vue": () => import("./index-CzcloeRS.mjs"), "../views/system/menu/copyMenuConfig.vue": () => import("./copyMenuConfig-DOH5DoYg.mjs"), "../views/system/menu/dialog.vue": () => import("./dialog-BtabE-kE.mjs"), "../views/system/menu/index.vue": () => import("./index-iftS76SQ.mjs"), "../views/system/role/component/roleItem.vue": () => import("./roleItem-Cettr5nP.mjs"), "../views/system/role/component/userSelect.vue": () => import("./userSelect-BHLOiD3v.mjs"), "../views/system/role/index.vue": () => import("./index-Cx5U8P4A.mjs"), "../views/system/user/dialog.vue": () => import("./dialog-BLSiC-iw.mjs"), "../views/system/user/index.vue": () => import("./index-COiT5UMN.mjs"), "../views/test/form/index.vue": () => import("./index-M5OZnSGg.mjs"), "../views/test/mxEditor/components/popup/popup.vue": () => import("./popup-GQUqYaPy.mjs"), "../views/test/mxEditor/index.vue": () => import("./index-BK6mbQHY.mjs"), "../views/test/rtc/index.vue": () => import("./index-EwuS0APG.mjs"), "../views/test/table/components/editDialog/editDialog.vue": () => import("./editDialog-B8f4aTVP.mjs"), "../views/test/table/components/replaceRules/replaceRules.vue": () => import("./replaceRules-DuZ36lVw.mjs"), "../views/test/table/index.vue": () => import("./index-_Ta7XuhA.mjs"), "../views/test/test/bc-scan-code-upload/index.vue": () => import("./index-7270SU-e.mjs"), "../views/test/test/bc-signature/index.vue": () => import("./index-CUA2dLib.mjs"), "../views/test/test/index copy.vue": () => import("./index copy-BaQIJgEZ.mjs"), "../views/test/test/index.vue": () => import("./index-DiQP9egY.mjs"), "../views/test/test/uploadAvatar.vue": () => import("./uploadAvatar-Clv8WnYE.mjs") });
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$H = { class: "content" };
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$H, [
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$G = {
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$G, [
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-d9abdbb8"]]);
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$F = { class: "item-wrap" };
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$F, [
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$E = {
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$E, [
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$D = { class: "sort-form-wraper__content" };
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$D, [
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$C = ["onClick"];
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$C);
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$B = { class: "sort-form-wraper__content" };
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$B, [
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), {
@@ -183275,16 +183277,12 @@ function useTable(props) {
183275
183277
  };
183276
183278
  }
183277
183279
  function resetCheckboxRow(selecteds) {
183278
- var _a2, _b, _c;
183280
+ var _a2;
183279
183281
  _$4.set(checkSelected.value, `data.${getActiveTab()}`, selecteds || []);
183280
183282
  if (_$4.isEmpty(_$4.get(checkSelected.value, `data.${getActiveTab()}`, []))) {
183281
- const btn = (_a2 = formTableData.value) == null ? void 0 : _a2.btns.find((i2) => ["exportSelect", "exportSelectedData"].includes(i2.data.key));
183282
- if (btn) {
183283
- btn.data.disabled = true;
183284
- }
183285
- (_b = getApi()) == null ? void 0 : _b.clearCheckboxRow();
183283
+ clearCheckboxRow();
183286
183284
  } else {
183287
- (_c = getApi()) == null ? void 0 : _c.setCheckboxRow(_$4.get(checkSelected.value, `data.${getActiveTab()}`, []), true);
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$A = { key: 0 };
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$A, ":   ")) : createCommentVNode("", true)
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",
@@ -184267,7 +184265,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
184267
184265
  };
184268
184266
  }
184269
184267
  });
184270
- const bcTreeSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__scopeId", "data-v-8ffaaeec"]]);
184268
+ const bcTreeSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__scopeId", "data-v-371e31ba"]]);
184271
184269
  const __default__$G = defineComponent({
184272
184270
  name: "bcTreeSelect"
184273
184271
  });
@@ -184675,553 +184673,1390 @@ const inputAttrConfigMap = {
184675
184673
  rules: ""
184676
184674
  }
184677
184675
  };
184678
- let parentFormData = {
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: "isClosedKeyStroke",
184911
- label: "是否关闭键盘事件",
184912
- el: "hs-switch"
184913
- }
184914
- ];
184915
- const configElList = ref$1([
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: "shortcut",
184981
- label: "快捷键",
184982
- el: "hs-select",
184983
- slotValue: "shortcut"
184685
+ prop: "defaultValue",
184686
+ label: "默认值",
184687
+ tooltip: "默认值",
184688
+ type: "string / number / boolean / object / array",
184689
+ el: "hs-input"
184984
184690
  },
184985
184691
  {
184986
- prop: "label",
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: "prop",
184992
- label: "查询参数",
184993
- slotValue: "prop",
184709
+ prop: "params",
184710
+ label: "请求参数",
184711
+ type: "string",
184994
184712
  el: "hs-input"
184995
184713
  },
184996
184714
  {
184997
- prop: "el",
184998
- label: "组件类型",
184999
- clearable: false,
185000
- tooltip: "下拉选择组件类型,组件类型取自配置文件",
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: "label-width",
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: "isSlot",
185012
- label: "是否自定义插槽",
184748
+ prop: "multiple",
184749
+ label: "是否多选",
184750
+ tooltip: "是否多选",
184751
+ type: "boolean",
185013
184752
  el: "hs-switch"
185014
184753
  },
185015
184754
  {
185016
- prop: "isApply",
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: "isShow",
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: "groupMark",
185028
- label: "分组标识",
185029
- el: "hs-input",
185030
- tooltip: "如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"
184796
+ prop: "collapse-tags",
184797
+ label: "值按文字展示",
184798
+ tooltip: "多选时是否将选中值按文字的形式展示",
184799
+ type: "boolean",
184800
+ el: "hs-switch"
185031
184801
  },
185032
184802
  {
185033
- prop: "positionInGroup",
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
- label: "开始",
185042
- value: "begin"
185043
- },
185044
- {
185045
- label: "结束",
185046
- value: "end"
185047
- }
185048
- ]
185049
- }
185050
- ],
185051
- rules: formBaseRule
185052
- },
185053
- elConfig: {
185054
- title: {
185055
- subTitle: "元素项属性"
185056
- },
185057
- visible: true,
185058
- list: []
185059
- }
185060
- };
185061
- let emptyFormItemData = ref$1({
185062
- id: "",
185063
- // 配置绑定的值
185064
- data: {
185065
- baseData: {},
185066
- elData: {
185067
- // hs-input组件属性
185068
- }
185069
- }
185070
- });
185071
- let formTitleConfig = ref$1({
185072
- code: {
185073
- visible: false,
185074
- subTitle: "表单配置代码",
185075
- class: "font-bold my-3",
185076
- iconSize: 20
185077
- },
185078
- form: {
185079
- visible: true,
185080
- subTitle: "表单配置",
185081
- class: "font-bold my-3",
185082
- iconSize: 20
185083
- },
185084
- formItem: {
185085
- visible: true,
185086
- subTitle: "表单元素配置项集合",
185087
- class: "font-bold my-3",
185088
- iconSize: 20
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
- formExample: {
185091
- visible: false,
185092
- subTitle: "表单配置示例",
185093
- class: "font-bold my-3",
185094
- iconSize: 20
185095
- }
185096
- });
185097
- const formItemAspectConfig = {
185098
- currentPage: {
185099
- baseData: {
185100
- isApply: true,
185101
- isShow: false
185102
- },
185103
- elData: {
185104
- attrs: {
185105
- defaultValue: 1
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
- pageSize: {
185110
- baseData: {
185111
- isApply: true,
185112
- isShow: false
185113
- },
185114
- elData: {
185115
- attrs: {
185116
- defaultValue: 10
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 assign$4 = (params, title) => {
185122
- return Object.assign(params, { title });
185123
- };
185124
- const getApiDocs = (params = {}) => {
185125
- let proxy = params.proxy ? "/" + params.proxy : "";
185126
- delete params.proxy;
185127
- params = assign$4(params, "后台api获取接口");
185128
- return request({
185129
- url: proxy ? proxy + "/v3/api-docs" : "/scmp-web/v3/api-docs",
185130
- method: "get",
185131
- params
185132
- });
185133
- };
185134
- function usePostMan() {
185135
- return {
185136
- getApiDocs
185137
- };
185138
- }
185139
- const assign$3 = (params, title) => {
185140
- return Object.assign(params, { title });
185141
- };
185142
- const getAllSystemInfo = (params = {}) => {
185143
- params = assign$3(params, "获取所有系统信息列表");
185144
- return request({
185145
- url: "/scmp-web/pri/system/get_all_system_info",
185146
- method: "get",
185147
- params
185148
- });
185149
- };
185150
- const getSystemInfoPageList = (params = {}) => {
185151
- params = assign$3(params, "获取系统信息列表");
185152
- return request({
185153
- url: "/scmp-web/pri/system/get_system_info_page_list",
185154
- method: "get",
185155
- params
185156
- });
185157
- };
185158
- const postDeleteSystemInfo = (data2 = {}) => {
185159
- data2 = assign$3(data2, "删除");
185160
- return request({
185161
- url: "/scmp-web/pri/system/delete_system_info",
185162
- method: "post",
185163
- data: data2
185164
- });
185165
- };
185166
- const postUpdateLockStatus = (data2 = {}) => {
185167
- data2 = assign$3(data2, "修改状态");
185168
- return request({
185169
- url: "/scmp-web/pri/system/update_lock_status",
185170
- method: "post",
185171
- data: data2
185172
- });
185173
- };
185174
- const postCopySystemInfo = (data2 = {}) => {
185175
- data2 = assign$3(data2, "复制项目信息-菜单,配置信息");
185176
- return request({
185177
- url: "/scmp-web/pri/system/copy_system_info",
185178
- method: "post",
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
- params
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 getFieldListPage = (params = {}) => {
185220
- params = assign$2(params, "查询新表格字段配置列表");
185221
- return request({
185222
- url: "/scmp-web/pri/field_config/get_field_list_page",
185223
- method: "get",
185224
- params
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(parseApi, configModel) {
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
- let parseApi = ref$1("");
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[2] || (_cache[2] = createTextVNode(" 是否解析url:")),
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 : parseApi = $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-cPXAhZ9h.mjs"));
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),
@@ -217494,7 +218442,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
217494
218442
  };
217495
218443
  }
217496
218444
  });
217497
- const trtcUI = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__scopeId", "data-v-6a0a30ab"]]);
218445
+ const trtcUI = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__scopeId", "data-v-f6bf798c"]]);
217498
218446
  const _hoisted_1$j = ["srcObject"];
217499
218447
  const _hoisted_2$2 = ["width", "height"];
217500
218448
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
@@ -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
- const handleClear1 = () => {
218146
- const sgn = signature1.value;
218147
- sgn.clear();
218679
+ this.onEnd = function() {
218148
218680
  };
218149
- const handleClear2 = () => {
218150
- const sgn2 = signature2.value;
218151
- sgn2.clear();
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
- const handleUndo1 = () => {
218154
- const sgn = signature1.value;
218155
- sgn.undo();
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
- const handleUndo2 = () => {
218158
- const sgn2 = signature2.value;
218159
- sgn2.undo();
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
- const handlePreview1 = () => {
218162
- const sgn = signature1.value;
218163
- const isEmpty2 = sgn.isEmpty();
218164
- if (isEmpty2) {
218165
- alert("isEmpty");
218721
+ this.onDrawMove = function(e2) {
218722
+ e2.preventDefault();
218723
+ if (!_this.canDraw)
218166
218724
  return;
218167
- }
218168
- const pngUrl = sgn.getPNG();
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
- onMounted(() => {
218183
- showFull.value = props.showFull;
218184
- setTimeout(() => {
218185
- initSignature1();
218186
- initSignture2();
218187
- }, 100);
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
- formRef.value.validate((valid) => {
218319
- if (valid) {
218320
- console.log("submit!", formData2.value);
218321
- oldData.value = Object.assign(oldData.value, formData2.value);
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
- const validForm = () => {
218329
- return new Promise((resolve3) => {
218330
- if (!formRef.value) {
218331
- resolve3(false);
218332
- return;
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
- __expose({ validForm });
218344
- return (_ctx, _cache) => {
218345
- const _component_ele_Warning = resolveComponent("ele-Warning");
218346
- const _component_el_icon = resolveComponent("el-icon");
218347
- const _component_el_tooltip = resolveComponent("el-tooltip");
218348
- const _component_hs_form_item = resolveComponent("hs-form-item");
218349
- const _component_hs_alert = resolveComponent("hs-alert");
218350
- const _component_base_form = resolveComponent("base-form", true);
218351
- const _component_hs_col = resolveComponent("hs-col");
218352
- const _component_hs_row = resolveComponent("hs-row");
218353
- const _component_hs_form = resolveComponent("hs-form");
218354
- const _component_hs_button = resolveComponent("hs-button");
218355
- return openBlock(), createElementBlock("div", {
218356
- class: normalizeClass(["h-full", { "overflow-y-auto": !__props.isRecursive }])
218357
- }, [
218358
- createVNode(_component_hs_form, {
218359
- model: unref(formData2),
218360
- "label-width": "146px",
218361
- "label-position": "right",
218362
- ref_key: "formRef",
218363
- ref: formRef
218364
- }, {
218365
- default: withCtx(() => [
218366
- createVNode(_component_hs_row, {
218367
- gutter: 0,
218368
- justify: "start",
218369
- class: "hs-row"
218370
- }, {
218371
- default: withCtx(() => [
218372
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formConfig2), (item, index2) => {
218373
- return openBlock(), createBlock(_component_hs_col, {
218374
- key: index2,
218375
- xs: !__props.isRecursive ? 24 : __props.xs,
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
- default: withCtx(() => _cache[0] || (_cache[0] = [
218465
- createTextVNode("保存")
218466
- ])),
218467
- _: 1
218468
- })
218469
- ])) : createCommentVNode("", true)
218470
- ], 2);
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
- const baseForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-c2b214a7"]]);
218475
- const _hoisted_1$f = { class: "p-[10px] h-full" };
218476
- const __default__$g = defineComponent({
218477
- name: "inputAttrConfig"
218478
- });
218479
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
218480
- ...__default__$g,
218481
- props: {
218482
- data: {
218483
- type: Object,
218484
- default: () => {
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
- isVModel: {
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
- const _hoisted_1$e = { class: "p-[10px] h-full overflow-y-auto" };
218512
- const __default__$f = defineComponent({
218513
- name: "inputEventConfig"
218514
- });
218515
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
218516
- ...__default__$f,
218517
- props: {
218518
- data: {
218519
- type: Object,
218520
- default: () => {
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
- const props = __props;
218530
- const data2 = ref$1(_$4.isEmpty(props.data) ? Object.assign(props.data, {}) : props.data);
218531
- const formData2 = ref$1(inputEventConfig.map(() => ({})));
218532
- console.log("formData", formData2);
218533
- return (_ctx, _cache) => {
218534
- const _component_hs_button = resolveComponent("hs-button");
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
- const selectAttrConfig = [
218558
- {
218559
- prop: "attrs",
218560
- label: "selectAttrs",
218561
- tooltip: "selectAttrs",
218562
- type: "object",
218563
- el: "title",
218564
- children: [
218565
- {
218566
- prop: "defaultValue",
218567
- label: "默认值",
218568
- tooltip: "默认值",
218569
- type: "string / number / boolean / object / array",
218570
- el: "hs-input"
218571
- },
218572
- {
218573
- prop: "options",
218574
- label: "option配置数据",
218575
- tooltip: 'options 示例:string=[{label: "示例代码", value: 0}]',
218576
- type: "string",
218577
- el: "hs-input",
218578
- attrs: {
218579
- type: "textarea"
218580
- }
218581
- },
218582
- {
218583
- prop: "url",
218584
- label: "url获取options",
218585
- tooltip: "通过url请求获取options配置项数据",
218586
- type: "string",
218587
- el: "hs-input"
218588
- },
218589
- {
218590
- prop: "params",
218591
- label: "请求参数",
218592
- type: "string",
218593
- el: "hs-input"
218594
- },
218595
- {
218596
- prop: "method",
218597
- label: "请求方式",
218598
- type: "string",
218599
- op: [
218600
- { label: " POST", value: "post" },
218601
- { label: "GET", value: "get" },
218602
- { label: "DELETE", value: "delete" },
218603
- { label: "PUT", value: "put" }
218604
- ],
218605
- el: "hs-select",
218606
- cel: "hs-option"
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
- prop: "groupAttrs",
218931
- label: "optionGroupAttrs",
218932
- tooltip: "optionGroupAttrs",
218933
- type: "object",
218934
- el: "title",
218935
- children: [
218936
- {
218937
- prop: "isGroupEnabled",
218938
- label: "是否启用分组",
218939
- tooltip: "是否启用分组",
218940
- type: "boolean",
218941
- el: "hs-switch"
218942
- },
218943
- {
218944
- prop: "label",
218945
- label: "分组的名称",
218946
- tooltip: "分组的名称",
218947
- type: "string",
218948
- el: "hs-input"
218949
- },
218950
- {
218951
- prop: "disabled",
218952
- label: "是否禁用分组",
218953
- tooltip: "是否将该分组下所有选项置为禁用",
218954
- type: "string",
218955
- el: "hs-switch"
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
- prop: "optionAttrs",
218961
- label: "optionAttrs",
218962
- tooltip: "optionAttrs",
218963
- type: "object",
218964
- el: "title",
218965
- children: [
218966
- {
218967
- prop: "value",
218968
- label: "选项的值",
218969
- tooltip: "选项的值",
218970
- type: "string",
218971
- el: "hs-input"
218972
- },
218973
- {
218974
- prop: "label",
218975
- label: "选项的标签",
218976
- tooltip: "选项的标签,若不设置则默认与value相同",
218977
- type: "string",
218978
- el: "hs-input"
218979
- },
218980
- {
218981
- prop: "disabled",
218982
- label: "是否禁用选项",
218983
- tooltip: "是否禁用该选项",
218984
- type: "string",
218985
- el: "hs-switch"
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
- prop: "rules",
218991
- label: "rules",
218992
- tooltip: "rules",
218993
- type: "object",
218994
- el: "title",
218995
- children: [
218996
- {
218997
- prop: "required",
218998
- label: "是否必填",
218999
- tooltip: "是否必填",
219000
- type: "boolean",
219001
- el: "hs-switch"
219002
- },
219003
- // 必填项规则
219004
- {
219005
- prop: "rules",
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 selectAttrConfigMap = {
219018
- // 默认配置项
219019
- attrs: {
219020
- size: "default",
219021
- multiple: false,
219022
- // 是否多选
219023
- disabled: false,
219024
- // 是否禁用
219025
- "value-key": "id",
219026
- // value 唯一标识
219027
- clearable: true,
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
- rules: {
219097
- required: false,
219098
- rules: ""
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"