hs-admin-ui 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-iqFQafyK.js → 401-eQIm6M1E.js} +1 -1
- package/dist/401-eQIm6M1E.js.gz +0 -0
- package/dist/{401-4EXDemkv.mjs → 401-pkgGyCyA.mjs} +1 -1
- package/dist/401-pkgGyCyA.mjs.gz +0 -0
- package/dist/{404-kGu0YuVw.js → 404-FM4GYP3C.js} +1 -1
- package/dist/{404-kGu0YuVw.js.gz → 404-FM4GYP3C.js.gz} +0 -0
- package/dist/{404-jU0YcOEV.mjs → 404-WiMzKaDA.mjs} +1 -1
- package/dist/{404-jU0YcOEV.mjs.gz → 404-WiMzKaDA.mjs.gz} +0 -0
- package/dist/{account-isEa6Q2V.js → account-0hZKd1WQ.js} +1 -1
- package/dist/account-0hZKd1WQ.js.gz +0 -0
- package/dist/{account-DIX5_cd5.mjs → account-yUCUNaJ8.mjs} +2 -2
- package/dist/account-yUCUNaJ8.mjs.gz +0 -0
- package/dist/{aside-OA2G4wAm.mjs → aside-5gcAYZ16.mjs} +2 -2
- package/dist/aside-5gcAYZ16.mjs.gz +0 -0
- package/dist/{aside-gJdH-lWQ.js → aside-6sG2CgHp.js} +1 -1
- package/dist/aside-6sG2CgHp.js.gz +0 -0
- package/dist/{btnIndex-J6BcVPTE.js → btnIndex-tCqFieI0.js} +1 -1
- package/dist/btnIndex-tCqFieI0.js.gz +0 -0
- package/dist/{btnIndex-lRtpp9c8.mjs → btnIndex-tTl07aXg.mjs} +2 -2
- package/dist/btnIndex-tTl07aXg.mjs.gz +0 -0
- package/dist/{classic-EDyc5ejS.js → classic-BuZB3ejM.js} +1 -1
- package/dist/classic-BuZB3ejM.js.gz +0 -0
- package/dist/{classic-E1j5nAmK.mjs → classic-VlVTf68Q.mjs} +2 -2
- package/dist/classic-VlVTf68Q.mjs.gz +0 -0
- package/dist/{columns-wJVfFgIa.js → columns-KjOMpN5V.js} +1 -1
- package/dist/columns-KjOMpN5V.js.gz +0 -0
- package/dist/{columns-lwsqMasC.mjs → columns-SwXdeBEI.mjs} +2 -2
- package/dist/columns-SwXdeBEI.mjs.gz +0 -0
- package/dist/{columnsAside-RkiXES76.mjs → columnsAside-TOMIzKIS.mjs} +1 -1
- package/dist/columnsAside-TOMIzKIS.mjs.gz +0 -0
- package/dist/{columnsAside-1Piln5Wd.js → columnsAside-TZqa0wQe.js} +1 -1
- package/dist/columnsAside-TZqa0wQe.js.gz +0 -0
- package/dist/{contextmenu-sZvZn5XP.mjs → contextmenu-KmyyFITQ.mjs} +1 -1
- package/dist/contextmenu-KmyyFITQ.mjs.gz +0 -0
- package/dist/{contextmenu-679XcP2J.js → contextmenu-gbULfjuI.js} +1 -1
- package/dist/contextmenu-gbULfjuI.js.gz +0 -0
- package/dist/{contextmenu-TWZ00pBy.mjs → contextmenu-l6E1M_vJ.mjs} +1 -1
- package/dist/contextmenu-l6E1M_vJ.mjs.gz +0 -0
- package/dist/{contextmenu-UQyKSqxN.js → contextmenu-ucgivSfh.js} +1 -1
- package/dist/contextmenu-ucgivSfh.js.gz +0 -0
- package/dist/{defaults-KUbkVZQq.mjs → defaults-_3prcLvD.mjs} +2 -2
- package/dist/defaults-_3prcLvD.mjs.gz +0 -0
- package/dist/{defaults-VGrdC9-t.js → defaults-cdccSu7W.js} +1 -1
- package/dist/defaults-cdccSu7W.js.gz +0 -0
- package/dist/{dialog-zG5h-RuD.mjs → dialog-6bFtXq3M.mjs} +1 -1
- package/dist/{dialog-UYXthnAV.js → dialog-9Ime2APN.js} +1 -1
- package/dist/{dialog-RmmlEcCb.mjs → dialog-Snyn_lfL.mjs} +1 -1
- package/dist/{dialog--pQRkfBW.js → dialog-WCIqXLT7.js} +1 -1
- package/dist/{dialog-Ftm_iCrZ.js → dialog-XhU6HSbh.js} +1 -1
- package/dist/{dialog-HemVbXrz.mjs → dialog-oevScCHm.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-FIVJZoEB.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-hw2e9yOj.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-hw2e9yOj.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-7FXa5_cw.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-zDjxW6r8.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-zDjxW6r8.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-hkV9NVf0.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ddPFLbpS.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ddPFLbpS.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-lroiKBqy.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-oDtw55I-.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-oDtw55I-.js.gz +0 -0
- package/dist/{dictDialog-o3HTxjr-.mjs → dictDialog-rVkvzxBe.mjs} +1 -1
- package/dist/{dictDialog-P6ip0RZF.js → dictDialog-zOnyG0Oh.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-hJkoXCAK.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-oBYHbdXG.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-oBYHbdXG.mjs.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-THef77_O.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-wGS8l8v6.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-wGS8l8v6.js.gz +0 -0
- package/dist/{dictItemDialog-QYTrSTAR.mjs → dictItemDialog-B11ftSMv.mjs} +1 -1
- package/dist/{dictItemDialog-kVlAEUcc.js → dictItemDialog-HzIqSqKp.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-mJ5wY73o.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CfzTjP-n.js} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CfzTjP-n.js.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-7HK12dvw.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-lrKSzAQ2.mjs} +2 -2
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-lrKSzAQ2.mjs.gz +0 -0
- package/dist/{formConfig-k9JlkTX4.mjs → formConfig-CuSk_fxR.mjs} +4 -4
- package/dist/formConfig-CuSk_fxR.mjs.gz +0 -0
- package/dist/{formConfig-nFI0hYMr.js → formConfig-F83j0e5f.js} +1 -1
- package/dist/formConfig-F83j0e5f.js.gz +0 -0
- package/dist/{header-fb8Lk92M.js → header-UyXAyIIk.js} +1 -1
- package/dist/{header-0sxH-rDX.mjs → header-fJpP4xeD.mjs} +2 -2
- package/dist/{horizontal-H9rK9maK.mjs → horizontal-V7QrO2K0.mjs} +2 -2
- package/dist/horizontal-V7QrO2K0.mjs.gz +0 -0
- package/dist/{horizontal-MsdHrepj.js → horizontal-heRCZ4v7.js} +1 -1
- package/dist/horizontal-heRCZ4v7.js.gz +0 -0
- package/dist/{hsAttrBtn-tjJbiO2E.js → hsAttrBtn-T0qgemcw.js} +1 -1
- package/dist/{hsAttrBtn-ZMgh0ZVt.mjs → hsAttrBtn-vIWYnlZk.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-WoWmb_ot.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-tHqMJWo9.mjs} +2 -2
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-tHqMJWo9.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-iZTAGX7s.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-ucgsIu4_.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-ucgsIu4_.js.gz +0 -0
- package/dist/{hsAttrForm-TmuV3pQh.js → hsAttrForm-aqyRkiIv.js} +1 -1
- package/dist/{hsAttrForm-CZZtSqt3.mjs → hsAttrForm-mvq54Lj1.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-YfhgStvv.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang--pJsne7t.mjs} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang--pJsne7t.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Sbszjh3g.js → hsAttrForm.vue_vue_type_script_setup_true_lang-wlPAinYo.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-wlPAinYo.js.gz +0 -0
- package/dist/{hsBtnConfigList-rQIZnRU2.mjs → hsBtnConfigList-bwb9IcrJ.mjs} +1 -1
- package/dist/hsBtnConfigList-bwb9IcrJ.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-4e_1dFKX.js → hsBtnConfigList-xAYPKEqA.js} +1 -1
- package/dist/hsBtnConfigList-xAYPKEqA.js.gz +0 -0
- package/dist/{hsBtnItemConfig-OotPyHA8.js → hsBtnItemConfig-1erTO1Jh.js} +1 -1
- package/dist/{hsBtnItemConfig-DwjFjr6M.mjs → hsBtnItemConfig-tLVisSRz.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-3gdmx_tZ.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-EXB7pRWF.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-EXB7pRWF.js.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BcMGQbAE.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-GuHp7xPJ.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-GuHp7xPJ.mjs.gz +0 -0
- package/dist/{hsBtnPanel-4C_-9oL0.js → hsBtnPanel-NZVqQsQL.js} +1 -1
- package/dist/{hsBtnPanel-Jgk24_lu.mjs → hsBtnPanel-bKiF96kw.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-5O-pX6lo.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-UUKjHn_3.mjs} +3 -3
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-UUKjHn_3.mjs.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-l-KKeDAk.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-YvLpWxJx.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-YvLpWxJx.js.gz +0 -0
- package/dist/{hsFormConfig-CfUdk9kg.js → hsFormConfig-CUz0jJyG.js} +1 -1
- package/dist/hsFormConfig-CUz0jJyG.js.gz +0 -0
- package/dist/{hsFormConfig-5Ei5GVHQ.mjs → hsFormConfig-e9-3C6sM.mjs} +1 -1
- package/dist/hsFormConfig-e9-3C6sM.mjs.gz +0 -0
- package/dist/{hsFormConfigList-l6d4A9uo.mjs → hsFormConfigList-HVsfHe3Y.mjs} +2 -2
- package/dist/hsFormConfigList-HVsfHe3Y.mjs.gz +0 -0
- package/dist/{hsFormConfigList-MRvOQ6C9.js → hsFormConfigList-kTxmo1j2.js} +1 -1
- package/dist/hsFormConfigList-kTxmo1j2.js.gz +0 -0
- package/dist/{hsFormPanel-xSgOn8cP.mjs → hsFormPanel-Nyaq-T0m.mjs} +1 -1
- package/dist/{hsFormPanel-xGHBAAuZ.js → hsFormPanel-s7wEdMpE.js} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-fKuPva0J.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-X9bWC04Z.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-X9bWC04Z.js.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-FpXEk8c1.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-xdzqmTaG.mjs} +4 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-xdzqmTaG.mjs.gz +0 -0
- package/dist/{hsFormParse-EJU9FHh7.js → hsFormParse-0cf_0I8b.js} +1 -1
- package/dist/{hsFormParse-i05XOY7n.mjs → hsFormParse-R48Bxsbs.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-_jb3pYM2.js → hsFormParse.vue_vue_type_script_setup_true_lang-2Ot8038y.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-2Ot8038y.js.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-c29Rlad-.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-g-JTEqpI.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-g-JTEqpI.mjs.gz +0 -0
- package/dist/{hsPageTree-h7yF6wqD.js → hsPageTree-6d7HGgnD.js} +1 -1
- package/dist/hsPageTree-6d7HGgnD.js.gz +0 -0
- package/dist/{hsPageTree-MNgmecH1.mjs → hsPageTree-rugZKZZW.mjs} +1 -1
- package/dist/hsPageTree-rugZKZZW.mjs.gz +0 -0
- package/dist/{hsPanelItem-CRwY8GR5.js → hsPanelItem-TONzrJGA.js} +1 -1
- package/dist/{hsPanelItem-1i3EWpoE.mjs → hsPanelItem-pwp2MlnG.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-YtOUZfau.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-I3rMn_W2.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-I3rMn_W2.mjs.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-9VX9n_nM.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-V7QSIJxa.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-V7QSIJxa.js.gz +0 -0
- package/dist/{iframes-arKye1Sa.mjs → iframes-5c5xjGn-.mjs} +1 -1
- package/dist/iframes-5c5xjGn-.mjs.gz +0 -0
- package/dist/{iframes-KuoCZ8st.js → iframes-IPv6izJQ.js} +1 -1
- package/dist/iframes-IPv6izJQ.js.gz +0 -0
- package/dist/{index-cfVq7jqG.mjs → index--Pym01t0.mjs} +3 -3
- package/dist/index--Pym01t0.mjs.gz +0 -0
- package/dist/{index-SAFzHN03.mjs → index-07nR4DZ3.mjs} +1 -1
- package/dist/index-07nR4DZ3.mjs.gz +0 -0
- package/dist/{index-Fjmr0zVx.mjs → index-1fQjtYAD.mjs} +1 -1
- package/dist/index-1fQjtYAD.mjs.gz +0 -0
- package/dist/{index-E931J2KC.js → index-2mEzY8ty.js} +1 -1
- package/dist/index-2mEzY8ty.js.gz +0 -0
- package/dist/{index-KkRYHsEQ.js → index-2rJu-Du4.js} +1 -1
- package/dist/index-2rJu-Du4.js.gz +0 -0
- package/dist/{index-xMiYeT2Y.js → index-3ZjTMae1.js} +1 -1
- package/dist/index-3ZjTMae1.js.gz +0 -0
- package/dist/{index-Tjofq74L.js → index-74aCzbqb.js} +1 -1
- package/dist/{index-QXkhP1Im.mjs → index-7M3rkh9K.mjs} +2 -2
- package/dist/index-7M3rkh9K.mjs.gz +0 -0
- package/dist/{index-2uEzc2rD.js → index-8dDORMid.js} +1 -1
- package/dist/index-8dDORMid.js.gz +0 -0
- package/dist/{index-NfnBP6IU.mjs → index-9fW_bM7-.mjs} +1 -1
- package/dist/index-9fW_bM7-.mjs.gz +0 -0
- package/dist/{index-v8cVu3sa.mjs → index-Ct14jgDy.mjs} +1 -1
- package/dist/index-Ct14jgDy.mjs.gz +0 -0
- package/dist/{index-GbYbKCav.js → index-Ef0UyEwo.js} +1 -1
- package/dist/index-Ef0UyEwo.js.gz +0 -0
- package/dist/{index-_7fPMKAY.js → index-GS7DxiJg.js} +1 -1
- package/dist/index-GS7DxiJg.js.gz +0 -0
- package/dist/{index-i9r7ObfF.js → index-HmDevyFt.js} +1 -1
- package/dist/{index-__pQr7J0.js → index-IGYxYFY1.js} +1 -1
- package/dist/index-IGYxYFY1.js.gz +0 -0
- package/dist/index-INsCi3Te.mjs +246 -0
- package/dist/index-INsCi3Te.mjs.gz +0 -0
- package/dist/{index-qtJfSjkr.mjs → index-JDM8yb_f.mjs} +2 -2
- package/dist/{index-aJr0BiS3.js → index-LVUSzGx7.js} +1 -1
- package/dist/index-LVUSzGx7.js.gz +0 -0
- package/dist/{index-WTvhO7-z.js → index-OeQ5-aha.js} +1 -1
- package/dist/index-OeQ5-aha.js.gz +0 -0
- package/dist/{index-sHvNy4eq.mjs → index-PLr7xdBo.mjs} +1 -1
- package/dist/index-PLr7xdBo.mjs.gz +0 -0
- package/dist/{index-IKyle6Lp.mjs → index-Pt8f0hHT.mjs} +3 -3
- package/dist/index-Pt8f0hHT.mjs.gz +0 -0
- package/dist/{index-Lvzs576O.mjs → index-Q_6mC3Y5.mjs} +4 -4
- package/dist/index-Q_6mC3Y5.mjs.gz +0 -0
- package/dist/{index-d4jfE-1P.mjs → index-RJ0fcKTS.mjs} +1 -1
- package/dist/{index-nEjN-ook.js → index-RxlyuWlC.js} +1 -1
- package/dist/{index-lVktlFpx.js → index-S4CISsRh.js} +3 -3
- package/dist/{index-lVktlFpx.js.gz → index-S4CISsRh.js.gz} +0 -0
- package/dist/{index-Dd0ipnpK.js → index-SYuce4Yt.js} +1 -1
- package/dist/index-SYuce4Yt.js.gz +0 -0
- package/dist/index-UIjav5q1.mjs +4 -0
- package/dist/{index-YF0ZXE5_.mjs → index-Ukgt-55x.mjs} +4 -4
- package/dist/index-Ukgt-55x.mjs.gz +0 -0
- package/dist/{index-Z6_P1LdU.js → index-WQIAoErF.js} +1 -1
- package/dist/index-WQIAoErF.js.gz +0 -0
- package/dist/index-Wyak8dVK.js +1 -0
- package/dist/index-Wyak8dVK.js.gz +0 -0
- package/dist/{index-EDAASB1o.js → index-XAQ5wrbF.js} +1 -1
- package/dist/{index-xi7w5z-t.js → index-_WblIU_B.js} +1 -1
- package/dist/index-_WblIU_B.js.gz +0 -0
- package/dist/{index-zuhxbm1Z.js → index-_jJjuyYN.js} +1 -1
- package/dist/index-_jJjuyYN.js.gz +0 -0
- package/dist/{index-pgOTGRJ6.mjs → index-akwd1IvW.mjs} +1 -1
- package/dist/index-akwd1IvW.mjs.gz +0 -0
- package/dist/{index-PaCB_VOs.mjs → index-bFYQqhN0.mjs} +2 -2
- package/dist/index-bFYQqhN0.mjs.gz +0 -0
- package/dist/{index-i7wBN_9u.js → index-bRM9s7ee.js} +1 -1
- package/dist/index-bRM9s7ee.js.gz +0 -0
- package/dist/{index-gopsmoMX.mjs → index-cZbkPc8H.mjs} +1 -1
- package/dist/{index-9sW6XN-A.mjs → index-ck7FVyEx.mjs} +1 -1
- package/dist/{index-W0CCocI0.mjs → index-dOV0ZdsD.mjs} +1 -1
- package/dist/index-dOV0ZdsD.mjs.gz +0 -0
- package/dist/{index-g5GJM4JK.js → index-dgwi6GKb.js} +1 -1
- package/dist/index-dgwi6GKb.js.gz +0 -0
- package/dist/{index-ZwnK46GX.mjs → index-fp_C7Hck.mjs} +1 -1
- package/dist/index-fp_C7Hck.mjs.gz +0 -0
- package/dist/{index-bKYMu8T3.mjs → index-j-ZQYpbe.mjs} +1 -1
- package/dist/index-j-ZQYpbe.mjs.gz +0 -0
- package/dist/{index-xEVPLYvb.mjs → index-jKBJ_qbG.mjs} +2 -2
- package/dist/index-jKBJ_qbG.mjs.gz +0 -0
- package/dist/{index-2N98lFmT.mjs → index-lHJmGBkk.mjs} +2 -2
- package/dist/index-lHJmGBkk.mjs.gz +0 -0
- package/dist/{index-CyYddH6E.js → index-m5JZaw4q.js} +1 -1
- package/dist/{index-tboRYVsk.js → index-mi-VLLIe.js} +1 -1
- package/dist/index-mi-VLLIe.js.gz +0 -0
- package/dist/{index-A_Un4D8v.js → index-nJT1LSBV.js} +1 -1
- package/dist/index-nJT1LSBV.js.gz +0 -0
- package/dist/{index-jNLGhP4j.mjs → index-nj_JM6mG.mjs} +1 -1
- package/dist/index-nj_JM6mG.mjs.gz +0 -0
- package/dist/{index-ST2m5dvN.mjs → index-o0nOtr6u.mjs} +9 -9
- package/dist/{index-ST2m5dvN.mjs.gz → index-o0nOtr6u.mjs.gz} +0 -0
- package/dist/{index-zAB-KJCu.mjs → index-pha072CI.mjs} +1 -1
- package/dist/{index-6I84p15S.js → index-qNV5JaV1.js} +1 -1
- package/dist/index-qNV5JaV1.js.gz +0 -0
- package/dist/{index-OGB3HQye.js → index-qoJ10kzb.js} +1 -1
- package/dist/index-qoJ10kzb.js.gz +0 -0
- package/dist/{index-towCD3s-.js → index-swTWlbzT.js} +1 -1
- package/dist/{index-bfNvl6am.mjs → index-ti5hRh9D.mjs} +6 -6
- package/dist/index-ti5hRh9D.mjs.gz +0 -0
- package/dist/{index-LTg9wiR4.mjs → index-ujqEiEjG.mjs} +1 -1
- package/dist/{index-i5brQ4ms.js → index-xNF7W9J-.js} +1 -1
- package/dist/{index-76PesAA1.js → index-xo1Zrnib.js} +1 -1
- package/dist/index-xo1Zrnib.js.gz +0 -0
- package/dist/{index-PPyuI1-a.mjs → index-ynvykOKs.mjs} +1 -1
- package/dist/index-ynvykOKs.mjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{link-09R_-npF.mjs → link-De5YYKkj.mjs} +1 -1
- package/dist/link-De5YYKkj.mjs.gz +0 -0
- package/dist/{link-vMAb63zr.js → link-Q8A00XNQ.js} +1 -1
- package/dist/link-Q8A00XNQ.js.gz +0 -0
- package/dist/{list-e83pM7qp.js → list-ETGGSxj3.js} +1 -1
- package/dist/list-ETGGSxj3.js.gz +0 -0
- package/dist/{list-tM8Em0Q6.mjs → list-YS2foC-7.mjs} +1 -1
- package/dist/list-YS2foC-7.mjs.gz +0 -0
- package/dist/{main-zPdGEXhF.js → main-2JLizCPo.js} +1 -1
- package/dist/main-2JLizCPo.js.gz +0 -0
- package/dist/{main-XgBZkNH5.mjs → main-6kT5Mimu.mjs} +2 -2
- package/dist/main-6kT5Mimu.mjs.gz +0 -0
- package/dist/{mobile-jMH2PdAz.js → mobile-Y3ubnA3_.js} +1 -1
- package/dist/mobile-Y3ubnA3_.js.gz +0 -0
- package/dist/{mobile-dJo1iqa-.mjs → mobile-shGlNAuq.mjs} +1 -1
- package/dist/mobile-shGlNAuq.mjs.gz +0 -0
- package/dist/{parent-uvO5-UqA.js → parent-6D0aCtlo.js} +1 -1
- package/dist/parent-6D0aCtlo.js.gz +0 -0
- package/dist/{parent-3lgpuIQN.mjs → parent-jqHC6biJ.mjs} +2 -2
- package/dist/parent-jqHC6biJ.mjs.gz +0 -0
- package/dist/{roleItem-Rhv8uA9b.js → roleItem-2FiGf7t6.js} +1 -1
- package/dist/roleItem-2FiGf7t6.js.gz +0 -0
- package/dist/{roleItem-qAyNuM7t.mjs → roleItem-IisWyaGA.mjs} +1 -1
- package/dist/roleItem-IisWyaGA.mjs.gz +0 -0
- package/dist/{saveForm-ZZBmrRrH.js → saveForm-6tUN4LcM.js} +1 -1
- package/dist/{saveForm-TDVi3SQ2.mjs → saveForm-bKTHQr1X.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang--Ad51yFU.mjs → saveForm.vue_vue_type_script_setup_true_lang-P3B_eBwR.mjs} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-P3B_eBwR.mjs.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-7ckcwaGL.js → saveForm.vue_vue_type_script_setup_true_lang-q6ptPxJR.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-q6ptPxJR.js.gz +0 -0
- package/dist/{scan-FX5BimW8.mjs → scan-OtAu0AsF.mjs} +1 -1
- package/dist/{scan-FX5BimW8.mjs.gz → scan-OtAu0AsF.mjs.gz} +0 -0
- package/dist/{scan-JacYjWyc.js → scan-PGnogbun.js} +1 -1
- package/dist/scan-PGnogbun.js.gz +0 -0
- package/dist/{search-m8ABrsoS.js → search-WKL1CqYO.js} +1 -1
- package/dist/search-WKL1CqYO.js.gz +0 -0
- package/dist/{search-l62nL91w.mjs → search-dkh7ZGDM.mjs} +1 -1
- package/dist/search-dkh7ZGDM.mjs.gz +0 -0
- package/dist/{selectConfig-z7EmYE33.mjs → selectConfig-DLipNSvz.mjs} +1 -1
- package/dist/selectConfig-DLipNSvz.mjs.gz +0 -0
- package/dist/{selectConfig-iDX1Oqd3.js → selectConfig-JIsop1SE.js} +1 -1
- package/dist/selectConfig-JIsop1SE.js.gz +0 -0
- package/dist/{subItem-SfPop7NT.js → subItem-ccKGsLQI.js} +1 -1
- package/dist/subItem-ccKGsLQI.js.gz +0 -0
- package/dist/{subItem-3gqZCtZ-.mjs → subItem-uvEwMbox.mjs} +1 -1
- package/dist/subItem-uvEwMbox.mjs.gz +0 -0
- package/dist/{tagsView-IXd1z-AY.js → tagsView-FuRf7B-M.js} +2 -2
- package/dist/tagsView-FuRf7B-M.js.gz +0 -0
- package/dist/{tagsView-uYoFCMM3.mjs → tagsView-NjiNov62.mjs} +2 -2
- package/dist/tagsView-NjiNov62.mjs.gz +0 -0
- package/dist/{transverse-qFQz-PbE.mjs → transverse-40nUr7iF.mjs} +2 -2
- package/dist/transverse-40nUr7iF.mjs.gz +0 -0
- package/dist/{transverse-PCoYTpDX.js → transverse-akCccRuh.js} +1 -1
- package/dist/transverse-akCccRuh.js.gz +0 -0
- package/dist/types/views/test/test/bcUpload/useUpload.d.ts +2 -9
- package/dist/{user-4kik5_Y8.mjs → user-KW0qSqHR.mjs} +14 -14
- package/dist/user-KW0qSqHR.mjs.gz +0 -0
- package/dist/{user-0Z95Ls4S.js → user-dGmZ84cB.js} +1 -1
- package/dist/user-dGmZ84cB.js.gz +0 -0
- package/dist/{userNews-8Lc3I4cZ.mjs → userNews-d46oet1I.mjs} +1 -1
- package/dist/userNews-d46oet1I.mjs.gz +0 -0
- package/dist/{userNews-1_0XiV3M.js → userNews-g6HacLWU.js} +1 -1
- package/dist/userNews-g6HacLWU.js.gz +0 -0
- package/dist/{userSelect-TR1lM4zR.mjs → userSelect-9HDGttJc.mjs} +1 -1
- package/dist/{userSelect-vZMKm8sm.js → userSelect-Tewv49xk.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-HULNe5D8.mjs → userSelect.vue_vue_type_script_setup_true_lang-FXaiDUUX.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-FXaiDUUX.mjs.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-kdzjPP6L.js → userSelect.vue_vue_type_script_setup_true_lang-L_l24tGZ.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-L_l24tGZ.js.gz +0 -0
- package/dist/{vertical-X1h1GMgL.mjs → vertical-jV5s1HOj.mjs} +2 -2
- package/dist/vertical-jV5s1HOj.mjs.gz +0 -0
- package/dist/{vertical-Mh50n4pe.js → vertical-zSrENc1W.js} +1 -1
- package/dist/vertical-zSrENc1W.js.gz +0 -0
- package/package.json +1 -1
- package/dist/401-4EXDemkv.mjs.gz +0 -0
- package/dist/401-iqFQafyK.js.gz +0 -0
- package/dist/account-DIX5_cd5.mjs.gz +0 -0
- package/dist/account-isEa6Q2V.js.gz +0 -0
- package/dist/aside-OA2G4wAm.mjs.gz +0 -0
- package/dist/aside-gJdH-lWQ.js.gz +0 -0
- package/dist/btnIndex-J6BcVPTE.js.gz +0 -0
- package/dist/btnIndex-lRtpp9c8.mjs.gz +0 -0
- package/dist/classic-E1j5nAmK.mjs.gz +0 -0
- package/dist/classic-EDyc5ejS.js.gz +0 -0
- package/dist/columns-lwsqMasC.mjs.gz +0 -0
- package/dist/columns-wJVfFgIa.js.gz +0 -0
- package/dist/columnsAside-1Piln5Wd.js.gz +0 -0
- package/dist/columnsAside-RkiXES76.mjs.gz +0 -0
- package/dist/contextmenu-679XcP2J.js.gz +0 -0
- package/dist/contextmenu-TWZ00pBy.mjs.gz +0 -0
- package/dist/contextmenu-UQyKSqxN.js.gz +0 -0
- package/dist/contextmenu-sZvZn5XP.mjs.gz +0 -0
- package/dist/defaults-KUbkVZQq.mjs.gz +0 -0
- package/dist/defaults-VGrdC9-t.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-7FXa5_cw.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-FIVJZoEB.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-hkV9NVf0.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-lroiKBqy.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-THef77_O.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-hJkoXCAK.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-7HK12dvw.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-mJ5wY73o.js.gz +0 -0
- package/dist/formConfig-k9JlkTX4.mjs.gz +0 -0
- package/dist/formConfig-nFI0hYMr.js.gz +0 -0
- package/dist/horizontal-H9rK9maK.mjs.gz +0 -0
- package/dist/horizontal-MsdHrepj.js.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-WoWmb_ot.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-iZTAGX7s.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Sbszjh3g.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-YfhgStvv.mjs.gz +0 -0
- package/dist/hsBtnConfigList-4e_1dFKX.js.gz +0 -0
- package/dist/hsBtnConfigList-rQIZnRU2.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-3gdmx_tZ.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BcMGQbAE.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-5O-pX6lo.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-l-KKeDAk.js.gz +0 -0
- package/dist/hsFormConfig-5Ei5GVHQ.mjs.gz +0 -0
- package/dist/hsFormConfig-CfUdk9kg.js.gz +0 -0
- package/dist/hsFormConfigList-MRvOQ6C9.js.gz +0 -0
- package/dist/hsFormConfigList-l6d4A9uo.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-FpXEk8c1.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-fKuPva0J.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-_jb3pYM2.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-c29Rlad-.mjs.gz +0 -0
- package/dist/hsPageTree-MNgmecH1.mjs.gz +0 -0
- package/dist/hsPageTree-h7yF6wqD.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-9VX9n_nM.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-YtOUZfau.mjs.gz +0 -0
- package/dist/iframes-KuoCZ8st.js.gz +0 -0
- package/dist/iframes-arKye1Sa.mjs.gz +0 -0
- package/dist/index-1huTSe5d.mjs +0 -4
- package/dist/index-2N98lFmT.mjs.gz +0 -0
- package/dist/index-2uEzc2rD.js.gz +0 -0
- package/dist/index-6I84p15S.js.gz +0 -0
- package/dist/index-76PesAA1.js.gz +0 -0
- package/dist/index-A_Un4D8v.js.gz +0 -0
- package/dist/index-Dd0ipnpK.js.gz +0 -0
- package/dist/index-E931J2KC.js.gz +0 -0
- package/dist/index-Fjmr0zVx.mjs.gz +0 -0
- package/dist/index-GbYbKCav.js.gz +0 -0
- package/dist/index-IKyle6Lp.mjs.gz +0 -0
- package/dist/index-KkRYHsEQ.js.gz +0 -0
- package/dist/index-Lvzs576O.mjs.gz +0 -0
- package/dist/index-NfnBP6IU.mjs.gz +0 -0
- package/dist/index-OGB3HQye.js.gz +0 -0
- package/dist/index-PPyuI1-a.mjs.gz +0 -0
- package/dist/index-PaCB_VOs.mjs.gz +0 -0
- package/dist/index-QXkhP1Im.mjs.gz +0 -0
- package/dist/index-SAFzHN03.mjs.gz +0 -0
- package/dist/index-W0CCocI0.mjs.gz +0 -0
- package/dist/index-WTvhO7-z.js.gz +0 -0
- package/dist/index-YF0ZXE5_.mjs.gz +0 -0
- package/dist/index-Z6_P1LdU.js.gz +0 -0
- package/dist/index-ZwnK46GX.mjs.gz +0 -0
- package/dist/index-_7fPMKAY.js.gz +0 -0
- package/dist/index-__pQr7J0.js.gz +0 -0
- package/dist/index-aJr0BiS3.js.gz +0 -0
- package/dist/index-bKYMu8T3.mjs.gz +0 -0
- package/dist/index-bfNvl6am.mjs.gz +0 -0
- package/dist/index-cfVq7jqG.mjs.gz +0 -0
- package/dist/index-g5GJM4JK.js.gz +0 -0
- package/dist/index-i7wBN_9u.js.gz +0 -0
- package/dist/index-ieKT_8vj.mjs +0 -244
- package/dist/index-ieKT_8vj.mjs.gz +0 -0
- package/dist/index-jNLGhP4j.mjs.gz +0 -0
- package/dist/index-pgOTGRJ6.mjs.gz +0 -0
- package/dist/index-sHvNy4eq.mjs.gz +0 -0
- package/dist/index-tboRYVsk.js.gz +0 -0
- package/dist/index-v8cVu3sa.mjs.gz +0 -0
- package/dist/index-xEVPLYvb.mjs.gz +0 -0
- package/dist/index-xMiYeT2Y.js.gz +0 -0
- package/dist/index-xi7w5z-t.js.gz +0 -0
- package/dist/index-xphc1pVa.js +0 -1
- package/dist/index-xphc1pVa.js.gz +0 -0
- package/dist/index-zuhxbm1Z.js.gz +0 -0
- package/dist/link-09R_-npF.mjs.gz +0 -0
- package/dist/link-vMAb63zr.js.gz +0 -0
- package/dist/list-e83pM7qp.js.gz +0 -0
- package/dist/list-tM8Em0Q6.mjs.gz +0 -0
- package/dist/main-XgBZkNH5.mjs.gz +0 -0
- package/dist/main-zPdGEXhF.js.gz +0 -0
- package/dist/mobile-dJo1iqa-.mjs.gz +0 -0
- package/dist/mobile-jMH2PdAz.js.gz +0 -0
- package/dist/parent-3lgpuIQN.mjs.gz +0 -0
- package/dist/parent-uvO5-UqA.js.gz +0 -0
- package/dist/roleItem-Rhv8uA9b.js.gz +0 -0
- package/dist/roleItem-qAyNuM7t.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang--Ad51yFU.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-7ckcwaGL.js.gz +0 -0
- package/dist/scan-JacYjWyc.js.gz +0 -0
- package/dist/search-l62nL91w.mjs.gz +0 -0
- package/dist/search-m8ABrsoS.js.gz +0 -0
- package/dist/selectConfig-iDX1Oqd3.js.gz +0 -0
- package/dist/selectConfig-z7EmYE33.mjs.gz +0 -0
- package/dist/subItem-3gqZCtZ-.mjs.gz +0 -0
- package/dist/subItem-SfPop7NT.js.gz +0 -0
- package/dist/tagsView-IXd1z-AY.js.gz +0 -0
- package/dist/tagsView-uYoFCMM3.mjs.gz +0 -0
- package/dist/transverse-PCoYTpDX.js.gz +0 -0
- package/dist/transverse-qFQz-PbE.mjs.gz +0 -0
- package/dist/user-0Z95Ls4S.js.gz +0 -0
- package/dist/user-4kik5_Y8.mjs.gz +0 -0
- package/dist/userNews-1_0XiV3M.js.gz +0 -0
- package/dist/userNews-8Lc3I4cZ.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-HULNe5D8.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-kdzjPP6L.js.gz +0 -0
- package/dist/vertical-Mh50n4pe.js.gz +0 -0
- package/dist/vertical-X1h1GMgL.mjs.gz +0 -0
|
@@ -150,7 +150,7 @@ This will fail in production.`);s=jp,s._s.has(o)||(l?Z_(o,n,a,s):h5(o,a,s),proce
|
|
|
150
150
|
<div class="loading-next-box-item"></div>
|
|
151
151
|
</div>
|
|
152
152
|
</div>
|
|
153
|
-
`;n.innerHTML=r,t.insertBefore(n,t.childNodes[0]),window.nextLoading=!0},done:(t=0)=>{e.nextTick(()=>{setTimeout(()=>{var r;window.nextLoading=!1;const n=document.querySelector(".loading-next");(r=n==null?void 0:n.parentNode)==null||r.removeChild(n)},t)})}},Mu=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-
|
|
153
|
+
`;n.innerHTML=r,t.insertBefore(n,t.childNodes[0]),window.nextLoading=!0},done:(t=0)=>{e.nextTick(()=>{setTimeout(()=>{var r;window.nextLoading=!1;const n=document.querySelector(".loading-next");(r=n==null?void 0:n.parentNode)==null||r.removeChild(n)},t)})}},Mu=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-OeQ5-aha.js")),redirect:"/home",meta:{isKeepAlive:!0},children:[]}],Ox=[{path:"/:path(.*)*",name:"notFound",component:()=>Promise.resolve().then(()=>require("./404-FM4GYP3C.js")),meta:{title:"找不到此页面",isHide:!0}},{path:"/401",name:"noPower",component:()=>Promise.resolve().then(()=>require("./401-eQIm6M1E.js")),meta:{title:"没有权限",isHide:!0}}],$De=[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>require("./index-Ef0UyEwo.js")),meta:{title:"登录"}}];/*!
|
|
154
154
|
* vue-router v4.3.0
|
|
155
155
|
* (c) 2024 Eduardo San Martin Morote
|
|
156
156
|
* @license MIT
|
|
@@ -175,7 +175,7 @@ Use slot props instead:
|
|
|
175
175
|
${JSON.stringify(de,null,2)}
|
|
176
176
|
when navigating to "${J.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Br({query:J.query,hash:J.hash,params:de.path!=null?{}:J.params},de)}}function B(J,j){const ne=c=C(J),de=u.value,De=J.state,Ve=J.force,ge=J.replace===!0,_e=S(ne);if(_e)return B(Br(w(_e),{state:typeof _e=="object"?Br({},De,_e.state):De,force:Ve,replace:ge}),j||ne);const Fe=ne;Fe.redirectedFrom=j;let Qe;return!Ve&&b5(o,de,ne)&&(Qe=Vf(16,{to:Fe,from:de}),K(de,de,!0,!1)),(Qe?Promise.resolve(Qe):N(Fe,de)).catch(Le=>ps(Le)?ps(Le,2)?Le:G(Le):Y(Le,Fe,de)).then(Le=>{if(Le){if(ps(Le,2))return process.env.NODE_ENV!=="production"&&b5(o,C(Le.to),Fe)&&j&&(j._count=j._count?j._count+1:1)>30?(ir(`Detected a possibly infinite redirection in a navigation guard when going from "${de.fullPath}" to "${Fe.fullPath}". Aborting to avoid a Stack Overflow.
|
|
177
177
|
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):B(Br({replace:ge},w(Le.to),{state:typeof Le.to=="object"?Br({},De,Le.to.state):De,force:Ve}),j||Fe)}else Le=M(Fe,de,!0,ge,De);return V(Fe,de,Le),Le})}function E(J,j){const ne=y(J,j);return ne?Promise.reject(ne):Promise.resolve()}function D(J){const j=Q.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(J):J()}function N(J,j){let ne;const[de,De,Ve]=JVe(J,j);ne=My(de.reverse(),"beforeRouteLeave",J,j);for(const _e of de)_e.leaveGuards.forEach(Fe=>{ne.push(cu(Fe,J,j))});const ge=E.bind(null,J,j);return ne.push(ge),ae(ne).then(()=>{ne=[];for(const _e of l.list())ne.push(cu(_e,J,j));return ne.push(ge),ae(ne)}).then(()=>{ne=My(De,"beforeRouteUpdate",J,j);for(const _e of De)_e.updateGuards.forEach(Fe=>{ne.push(cu(Fe,J,j))});return ne.push(ge),ae(ne)}).then(()=>{ne=[];for(const _e of Ve)if(_e.beforeEnter)if(ll(_e.beforeEnter))for(const Fe of _e.beforeEnter)ne.push(cu(Fe,J,j));else ne.push(cu(_e.beforeEnter,J,j));return ne.push(ge),ae(ne)}).then(()=>(J.matched.forEach(_e=>_e.enterCallbacks={}),ne=My(Ve,"beforeRouteEnter",J,j,D),ne.push(ge),ae(ne))).then(()=>{ne=[];for(const _e of i.list())ne.push(cu(_e,J,j));return ne.push(ge),ae(ne)}).catch(_e=>ps(_e,8)?_e:Promise.reject(_e))}function V(J,j,ne){s.list().forEach(de=>D(()=>de(J,j,ne)))}function M(J,j,ne,de,De){const Ve=y(J,j);if(Ve)return Ve;const ge=j===Qs,_e=bs?history.state:{};ne&&(de||ge?a.replace(J.fullPath,Br({scroll:ge&&_e&&_e.scroll},De)):a.push(J.fullPath,De)),u.value=J,K(J,j,ne,ge),G()}let O;function P(){O||(O=a.listen((J,j,ne)=>{if(!Ce.listening)return;const de=C(J),De=S(de);if(De){B(Br(De,{replace:!0}),de).catch(pv);return}c=de;const Ve=u.value;bs&&rVe(_5(Ve.fullPath,ne.delta),W2()),N(de,Ve).catch(ge=>ps(ge,12)?ge:ps(ge,2)?(B(ge.to,de).then(_e=>{ps(_e,20)&&!ne.delta&&ne.type===f0.pop&&a.go(-1,!1)}).catch(pv),Promise.reject()):(ne.delta&&a.go(-ne.delta,!1),Y(ge,de,Ve))).then(ge=>{ge=ge||M(de,Ve,!1),ge&&(ne.delta&&!ps(ge,8)?a.go(-ne.delta,!1):ne.type===f0.pop&&ps(ge,20)&&a.go(-1,!1)),V(de,Ve,ge)}).catch(pv)}))}let I=Tp(),H=Tp(),F;function Y(J,j,ne){G(J);const de=H.list();return de.length?de.forEach(De=>De(J,j,ne)):(process.env.NODE_ENV!=="production"&&ir("uncaught error during route navigation:"),console.error(J)),Promise.reject(J)}function z(){return F&&u.value!==Qs?Promise.resolve():new Promise((J,j)=>{I.add([J,j])})}function G(J){return F||(F=!J,P(),I.list().forEach(([j,ne])=>J?ne(J):j()),I.reset()),J}function K(J,j,ne,de){const{scrollBehavior:De}=t;if(!bs||!De)return Promise.resolve();const Ve=!ne&&oVe(_5(J.fullPath,0))||(de||!ne)&&history.state&&history.state.scroll||null;return e.nextTick().then(()=>De(J,j,Ve)).then(ge=>ge&&nVe(ge)).catch(ge=>Y(ge,J,j))}const q=J=>a.go(J);let U;const Q=new Set,Ce={currentRoute:u,listening:!0,addRoute:v,removeRoute:m,hasRoute:b,getRoutes:g,resolve:C,options:t,push:x,replace:k,go:q,back:()=>q(-1),forward:()=>q(1),beforeEach:l.add,beforeResolve:i.add,afterEach:s.add,onError:H.add,isReady:z,install(J){const j=this;J.component("RouterLink",RVe),J.component("RouterView",zVe),J.config.globalProperties.$router=j,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>e.unref(u)}),bs&&!U&&u.value===Qs&&(U=!0,x(a.location).catch(De=>{process.env.NODE_ENV!=="production"&&ir("Unexpected error when starting the router:",De)}));const ne={};for(const De in Qs)Object.defineProperty(ne,De,{get:()=>u.value[De],enumerable:!0});J.provide(j2,j),J.provide(Mx,e.shallowReactive(ne)),J.provide(nC,u);const de=J.unmount;Q.add(J),J.unmount=function(){Q.delete(J),Q.size<1&&(c=Qs,O&&O(),O=null,u.value=Qs,U=!1,F=!1),de()},process.env.NODE_ENV!=="production"&&bs&&WVe(J,j,n)}};function ae(J){return J.reduce((j,ne)=>j.then(()=>D(ne)),Promise.resolve())}return Ce}function JVe(t,n){const r=[],o=[],a=[],l=Math.max(n.matched.length,t.matched.length);for(let i=0;i<l;i++){const s=n.matched[i];s&&(t.matched.find(c=>Nu(c,s))?o.push(s):r.push(s));const u=t.matched[i];u&&(n.matched.find(c=>Nu(c,u))||a.push(u))}return[r,o,a]}function QVe(){return e.inject(j2)}function e$e(){return e.inject(Mx)}var cA={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
178
|
-
* @license MIT */(function(t,n){(function(r,o){t.exports=o()})(ln,function(){var r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(m){var g,b;for(g in m)b=m[g],b!==void 0&&m.hasOwnProperty(g)&&(o[g]=b);return this},r.status=null,r.set=function(m){var g=r.isStarted();m=a(m,o.minimum,1),r.status=m===1?null:m;var b=r.render(!g),C=b.querySelector(o.barSelector),w=o.speed,y=o.easing;return b.offsetWidth,s(function(x){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),u(C,i(m,w,y)),m===1?(u(b,{transition:"none",opacity:1}),b.offsetWidth,setTimeout(function(){u(b,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){r.remove(),x()},w)},w)):setTimeout(x,w)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var m=function(){setTimeout(function(){r.status&&(r.trickle(),m())},o.trickleSpeed)};return o.trickle&&m(),this},r.done=function(m){return!m&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(m){var g=r.status;return g?(typeof m!="number"&&(m=(1-g)*a(Math.random()*g,.1,.95)),g=a(g+m,0,.994),r.set(g)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},function(){var m=0,g=0;r.promise=function(b){return!b||b.state()==="resolved"?this:(g===0&&r.start(),m++,g++,b.always(function(){g--,g===0?(m=0,r.done()):r.set((m-g)/m)}),this)}}(),r.render=function(m){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=o.template;var b=g.querySelector(o.barSelector),C=m?"-100":l(r.status||0),w=document.querySelector(o.parent),y;return u(b,{transition:"all 0 linear",transform:"translate3d("+C+"%,0,0)"}),o.showSpinner||(y=g.querySelector(o.spinnerSelector),y&&v(y)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(g),g},r.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(o.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&v(m)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var m=document.body.style,g="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return g+"Perspective"in m?"translate3d":g+"Transform"in m?"translate":"margin"};function a(m,g,b){return m<g?g:m>b?b:m}function l(m){return(-1+m)*100}function i(m,g,b){var C;return o.positionUsing==="translate3d"?C={transform:"translate3d("+l(m)+"%,0,0)"}:o.positionUsing==="translate"?C={transform:"translate("+l(m)+"%,0)"}:C={"margin-left":l(m)+"%"},C.transition="all "+g+"ms "+b,C}var s=function(){var m=[];function g(){var b=m.shift();b&&b(g)}return function(b){m.push(b),m.length==1&&g()}}(),u=function(){var m=["Webkit","O","Moz","ms"],g={};function b(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(k,S){return S.toUpperCase()})}function C(x){var k=document.body.style;if(x in k)return x;for(var S=m.length,B=x.charAt(0).toUpperCase()+x.slice(1),E;S--;)if(E=m[S]+B,E in k)return E;return x}function w(x){return x=b(x),g[x]||(g[x]=C(x))}function y(x,k,S){k=w(k),x.style[k]=S}return function(x,k){var S=arguments,B,E;if(S.length==2)for(B in k)E=k[B],E!==void 0&&k.hasOwnProperty(B)&&y(x,B,E);else y(x,S[1],S[2])}}();function c(m,g){var b=typeof m=="string"?m:p(m);return b.indexOf(" "+g+" ")>=0}function d(m,g){var b=p(m),C=b+g;c(b,g)||(m.className=C.substring(1))}function f(m,g){var b=p(m),C;c(m,g)&&(C=b.replace(" "+g+" "," "),m.className=C.substring(1,C.length-1))}function p(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function v(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return r})})(cA);var t$e=cA.exports;const zd=Zo(t$e),dA=qf("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive(t){this.keepAliveNames=t},async addCachedView(t){var n;t.meta.isKeepAlive&&((n=this.cachedViews)==null||n.push(t.name))},async delCachedView(t){const n=this.cachedViews.indexOf(t.name);n>-1&&this.cachedViews.splice(n,1)},async delOthersCachedViews(t){t.meta.isKeepAlive?this.cachedViews=[t.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}}),q2=qf("routesList",{state:()=>({routesList:[],isColumnsMenuHover:!1,isColumnsNavHover:!1}),actions:{async setRoutesList(t){this.routesList=t},async setColumnsMenuHover(t){this.isColumnsMenuHover=t},async setColumnsNavHover(t){this.isColumnsNavHover=t}}}),Rx=qf("themeConfig",{state:()=>({themeConfig:{isDrawer:!1,primary:"#409eff",isIsDark:!1,topBar:"#ffffff",topBarColor:"#606266",isTopBarColorGradual:!1,menuBar:"#545c64",menuBarColor:"#eaeaea",menuBarActiveColor:"rgba(0, 0, 0, 0.2)",isMenuBarColorGradual:!1,columnsMenuBar:"#545c64",columnsMenuBarColor:"#e6e6e6",isColumnsMenuBarColorGradual:!1,isColumnsMenuHoverPreload:!1,isCollapse:!1,isUniqueOpened:!0,isFixedHeader:!0,isFixedHeaderChange:!1,isClassicSplitMenu:!1,isLockScreen:!1,lockScreenTime:30,isShowLogo:!0,isShowLogoChange:!1,isBreadcrumb:!0,isTagsview:!0,isBreadcrumbIcon:!1,isTagsviewIcon:!1,isCacheTagsView:!1,isSortableTagsView:!0,isShareTagsView:!1,isFooter:!1,isWartermark:!1,wartermarkText:"",tagsStyle:"tags-style-five",animation:"slide-right",columnsAsideStyle:"columns-round",columnsAsideLayout:"columns-vertical",layout:"defaults",isRequestRoutes:!0,globalTitle:"华速前端框架",globalViceTitle:"vue3 + typescript5 + vite5 的框架",globalViceTitleMsg:"hs-admin",globalI18n:"zh-cn",globalComponentSize:"large"}}),actions:{setThemeConfig(t){this.themeConfig=t.themeConfig}}}),Ix=qf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){Co.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function n$e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function Px(t,n){const r=[];return t.forEach(o=>{const a={...o};n$e(n,a)&&(a.children&&(a.children=Px(a.children,n)),r.push(a))}),r}function r$e(t){const n=za(ti),{userInfos:r}=Au(n);let o=[];return t.forEach(a=>{a.meta.roles&&a.meta.roles.forEach(l=>{r.value.roles.forEach(i=>{l===i&&o.push({...a})})})}),o}function o$e(){let t=K2(U2(Mu));return t[0].children=[...r$e(t[0].children),...Ox],t}async function a$e(){await o$e().forEach(t=>{console.debug("后端路由信息:",t),Yc.addRoute(t)})}function l$e(){const t=za(ti),n=Ix(ti),{userInfos:r}=Au(t);let o=Px(Mu,r.value.roles);n.setTagsViewRoutes(K2(U2(o))[0].children)}function i$e(){const t=za(ti),n=q2(ti),{userInfos:r}=Au(t);n.setRoutesList(Px(Mu[0].children,r.value.roles)),l$e()}async function s$e(){if(window.nextLoading===void 0&&H2.start(),!await za().isLogin())return!1;await a$e(),i$e()}const u$e=Rx(ti),{themeConfig:c$e}=Au(u$e),{isRequestRoutes:d$e}=c$e.value,Yc=ZVe({history:sVe("/"),routes:[...Ox,...$De]});function U2(t){if(t.length<=0)return!1;for(let n=0;n<t.length;n++)t[n].children&&(t=t.slice(0,n+1).concat(t[n].children,t.slice(n+1)));return t}function K2(t){if(t.length<=0)return!1;const n=[],r=[];return t.forEach(o=>{o.path==="/"?n.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(o.path.indexOf("/:")>-1&&(o.meta.isDynamic=!0,o.meta.isDynamicPath=o.path),n[0].children.push({...o}),n[0].meta.isKeepAlive&&o.meta.isKeepAlive&&(r.push(o.name),dA(ti).setCacheKeepAlive(r)))}),n}Yc.beforeEach(async(t,n,r)=>{zd.configure({showSpinner:!1}),t.meta.title&&zd.start();const a=await za().isLogin();if(t.path==="/login"&&!a)r(),zd.done();else if(!a)r(`/login?redirect=${t.path}¶ms=${JSON.stringify(t.query?t.query:t.params)}`),Co.clear(),zd.done();else if(a&&t.path==="/login")r("/home"),zd.done();else{const l=q2(ti),{routesList:i}=Au(l);i.value.length===0?d$e?(await fA(),r({path:t.path,query:t.query})):(await s$e(),r({path:t.path,query:t.query})):r()}});Yc.afterEach(()=>{zd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),f$e=(t={})=>(t=Ms(t,"新增菜单"),Fn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),p$e=(t={})=>(t=Ms(t,"根据id,删除菜单"),Fn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),v$e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),Fn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),m$e=(t={})=>(t=Ms(t,"获取所有菜单列表"),Fn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),h$e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),Fn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),g$e=(t={})=>(t=Ms(t,"获取一级菜单信息"),Fn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),b$e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),Fn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),y$e=(t={})=>(t=Ms(t,"更新菜单"),Fn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),_$e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),Fn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function Fx(){return{postAddMenu:f$e,postDelMenuInfo:p$e,getAllMenuIdList:v$e,getAllMenuList:m$e,getMenuList:h$e,getMenuListOne:g$e,postSetMenuConfig:b$e,postUpdateMenu:y$e,postUpdateMenuSort:_$e}}const C$e=Fx(),x$e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-KuoCZ8st.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-vMAb63zr.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-uvO5-UqA.js"))}),w$e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-J6BcVPTE.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Ftm_iCrZ.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-tboRYVsk.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-UYXthnAV.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-6I84p15S.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-P6ip0RZF.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-kVlAEUcc.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-76PesAA1.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-i9r7ObfF.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-tjJbiO2E.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-4e_1dFKX.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-OotPyHA8.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-4C_-9oL0.js")),"../views/config/formSetting/components/hsExpand/src/hsExpand.vue":()=>Promise.resolve().then(()=>require("./hsExpand-ZRNYyYnQ.js")),"../views/config/formSetting/components/hsForm/src/contextmenu.vue":()=>Promise.resolve().then(()=>require("./contextmenu-679XcP2J.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-TmuV3pQh.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-CfUdk9kg.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-MRvOQ6C9.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-xGHBAAuZ.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-EJU9FHh7.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-h7yF6wqD.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-ZZBmrRrH.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-iDX1Oqd3.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-nFI0hYMr.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-aJr0BiS3.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-towCD3s-.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-CRwY8GR5.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-2uEzc2rD.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-__pQr7J0.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-xMiYeT2Y.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401-iqFQafyK.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-kGu0YuVw.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-zuhxbm1Z.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-isEa6Q2V.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-jMH2PdAz.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-JacYjWyc.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-GbYbKCav.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-_7fPMKAY.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-sZIy2dAG.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-A_Un4D8v.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-e__UUaA0.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-KkRYHsEQ.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog--pQRkfBW.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-g5GJM4JK.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-Rhv8uA9b.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-vZMKm8sm.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-xi7w5z-t.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-An-djowy.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-Z6_P1LdU.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-Dd0ipnpK.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-sBLHtWMB.js")),"../views/test/test/bcUpload/index.vue":()=>Promise.resolve().then(()=>require("./index-xphc1pVa.js")),"../views/test/test/index.vue":()=>Promise.resolve().then(()=>require("./index-z-0G6x8-.js"))}),k$e=Object.assign({},{...x$e},{...w$e});async function fA(){if(window.nextLoading===void 0&&H2.start(),!await za().isLogin())return!1;const r=await mA();if(r.data.length<=0)return Promise.resolve(!0);UO().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Mu[0].children=await zx(r.data),await vA(),pA()}async function pA(){q2(ti).setRoutesList(Mu[0].children),E$e()}function E$e(){Ix(ti).setTagsViewRoutes(K2(U2(Mu))[0].children)}function S$e(){let t=K2(U2(Mu));return t[0].children=[...t[0].children,...Ox],t}async function vA(){await S$e().forEach(t=>{Yc.addRoute(t)})}async function mA(){let t=await C$e.getMenuList();return console.debug("menu:",t),t}async function B$e(){const t=await mA();if(t.data.length<=0)return Promise.resolve(!0);UO().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Mu[0].children=await zx(t.data),await vA(),pA()}function zx(t){if(t)return t.map(n=>(n.component&&(n.component=N$e(k$e,n.component)),n.children&&zx(n.children),n))}function N$e(t,n){const o=Object.keys(t).filter(a=>{const l=a.replace(/..\/views|../,"");return l.startsWith(`${n}`)||l.startsWith(`/${n}`)});if((o==null?void 0:o.length)===1){const a=o[0];return t[a]}if((o==null?void 0:o.length)>1)return!1}const A5=ei.value||"hs-admin-ui:sid",za=qf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Di.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Di.set("userInfo",t),Kd.set(A5,t.sid,{expires:new Date(+new Date+86400*1e3)}),await fA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Kd.remove(A5),Co.clear(),await Di.clear()}}});function T$e(t){return za().userInfos.authBtnList.some(r=>r===t)}function D$e(t){let n=!1;return za().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function V$e(t){const n=za();return Nx(t,n.userInfos.authBtnList)}var hA={exports:{}};/*!
|
|
178
|
+
* @license MIT */(function(t,n){(function(r,o){t.exports=o()})(ln,function(){var r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(m){var g,b;for(g in m)b=m[g],b!==void 0&&m.hasOwnProperty(g)&&(o[g]=b);return this},r.status=null,r.set=function(m){var g=r.isStarted();m=a(m,o.minimum,1),r.status=m===1?null:m;var b=r.render(!g),C=b.querySelector(o.barSelector),w=o.speed,y=o.easing;return b.offsetWidth,s(function(x){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),u(C,i(m,w,y)),m===1?(u(b,{transition:"none",opacity:1}),b.offsetWidth,setTimeout(function(){u(b,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){r.remove(),x()},w)},w)):setTimeout(x,w)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var m=function(){setTimeout(function(){r.status&&(r.trickle(),m())},o.trickleSpeed)};return o.trickle&&m(),this},r.done=function(m){return!m&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(m){var g=r.status;return g?(typeof m!="number"&&(m=(1-g)*a(Math.random()*g,.1,.95)),g=a(g+m,0,.994),r.set(g)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},function(){var m=0,g=0;r.promise=function(b){return!b||b.state()==="resolved"?this:(g===0&&r.start(),m++,g++,b.always(function(){g--,g===0?(m=0,r.done()):r.set((m-g)/m)}),this)}}(),r.render=function(m){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=o.template;var b=g.querySelector(o.barSelector),C=m?"-100":l(r.status||0),w=document.querySelector(o.parent),y;return u(b,{transition:"all 0 linear",transform:"translate3d("+C+"%,0,0)"}),o.showSpinner||(y=g.querySelector(o.spinnerSelector),y&&v(y)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(g),g},r.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(o.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&v(m)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var m=document.body.style,g="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return g+"Perspective"in m?"translate3d":g+"Transform"in m?"translate":"margin"};function a(m,g,b){return m<g?g:m>b?b:m}function l(m){return(-1+m)*100}function i(m,g,b){var C;return o.positionUsing==="translate3d"?C={transform:"translate3d("+l(m)+"%,0,0)"}:o.positionUsing==="translate"?C={transform:"translate("+l(m)+"%,0)"}:C={"margin-left":l(m)+"%"},C.transition="all "+g+"ms "+b,C}var s=function(){var m=[];function g(){var b=m.shift();b&&b(g)}return function(b){m.push(b),m.length==1&&g()}}(),u=function(){var m=["Webkit","O","Moz","ms"],g={};function b(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(k,S){return S.toUpperCase()})}function C(x){var k=document.body.style;if(x in k)return x;for(var S=m.length,B=x.charAt(0).toUpperCase()+x.slice(1),E;S--;)if(E=m[S]+B,E in k)return E;return x}function w(x){return x=b(x),g[x]||(g[x]=C(x))}function y(x,k,S){k=w(k),x.style[k]=S}return function(x,k){var S=arguments,B,E;if(S.length==2)for(B in k)E=k[B],E!==void 0&&k.hasOwnProperty(B)&&y(x,B,E);else y(x,S[1],S[2])}}();function c(m,g){var b=typeof m=="string"?m:p(m);return b.indexOf(" "+g+" ")>=0}function d(m,g){var b=p(m),C=b+g;c(b,g)||(m.className=C.substring(1))}function f(m,g){var b=p(m),C;c(m,g)&&(C=b.replace(" "+g+" "," "),m.className=C.substring(1,C.length-1))}function p(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function v(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return r})})(cA);var t$e=cA.exports;const zd=Zo(t$e),dA=qf("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive(t){this.keepAliveNames=t},async addCachedView(t){var n;t.meta.isKeepAlive&&((n=this.cachedViews)==null||n.push(t.name))},async delCachedView(t){const n=this.cachedViews.indexOf(t.name);n>-1&&this.cachedViews.splice(n,1)},async delOthersCachedViews(t){t.meta.isKeepAlive?this.cachedViews=[t.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}}),q2=qf("routesList",{state:()=>({routesList:[],isColumnsMenuHover:!1,isColumnsNavHover:!1}),actions:{async setRoutesList(t){this.routesList=t},async setColumnsMenuHover(t){this.isColumnsMenuHover=t},async setColumnsNavHover(t){this.isColumnsNavHover=t}}}),Rx=qf("themeConfig",{state:()=>({themeConfig:{isDrawer:!1,primary:"#409eff",isIsDark:!1,topBar:"#ffffff",topBarColor:"#606266",isTopBarColorGradual:!1,menuBar:"#545c64",menuBarColor:"#eaeaea",menuBarActiveColor:"rgba(0, 0, 0, 0.2)",isMenuBarColorGradual:!1,columnsMenuBar:"#545c64",columnsMenuBarColor:"#e6e6e6",isColumnsMenuBarColorGradual:!1,isColumnsMenuHoverPreload:!1,isCollapse:!1,isUniqueOpened:!0,isFixedHeader:!0,isFixedHeaderChange:!1,isClassicSplitMenu:!1,isLockScreen:!1,lockScreenTime:30,isShowLogo:!0,isShowLogoChange:!1,isBreadcrumb:!0,isTagsview:!0,isBreadcrumbIcon:!1,isTagsviewIcon:!1,isCacheTagsView:!1,isSortableTagsView:!0,isShareTagsView:!1,isFooter:!1,isWartermark:!1,wartermarkText:"",tagsStyle:"tags-style-five",animation:"slide-right",columnsAsideStyle:"columns-round",columnsAsideLayout:"columns-vertical",layout:"defaults",isRequestRoutes:!0,globalTitle:"华速前端框架",globalViceTitle:"vue3 + typescript5 + vite5 的框架",globalViceTitleMsg:"hs-admin",globalI18n:"zh-cn",globalComponentSize:"large"}}),actions:{setThemeConfig(t){this.themeConfig=t.themeConfig}}}),Ix=qf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){Co.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function n$e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function Px(t,n){const r=[];return t.forEach(o=>{const a={...o};n$e(n,a)&&(a.children&&(a.children=Px(a.children,n)),r.push(a))}),r}function r$e(t){const n=za(ti),{userInfos:r}=Au(n);let o=[];return t.forEach(a=>{a.meta.roles&&a.meta.roles.forEach(l=>{r.value.roles.forEach(i=>{l===i&&o.push({...a})})})}),o}function o$e(){let t=K2(U2(Mu));return t[0].children=[...r$e(t[0].children),...Ox],t}async function a$e(){await o$e().forEach(t=>{console.debug("后端路由信息:",t),Yc.addRoute(t)})}function l$e(){const t=za(ti),n=Ix(ti),{userInfos:r}=Au(t);let o=Px(Mu,r.value.roles);n.setTagsViewRoutes(K2(U2(o))[0].children)}function i$e(){const t=za(ti),n=q2(ti),{userInfos:r}=Au(t);n.setRoutesList(Px(Mu[0].children,r.value.roles)),l$e()}async function s$e(){if(window.nextLoading===void 0&&H2.start(),!await za().isLogin())return!1;await a$e(),i$e()}const u$e=Rx(ti),{themeConfig:c$e}=Au(u$e),{isRequestRoutes:d$e}=c$e.value,Yc=ZVe({history:sVe("/"),routes:[...Ox,...$De]});function U2(t){if(t.length<=0)return!1;for(let n=0;n<t.length;n++)t[n].children&&(t=t.slice(0,n+1).concat(t[n].children,t.slice(n+1)));return t}function K2(t){if(t.length<=0)return!1;const n=[],r=[];return t.forEach(o=>{o.path==="/"?n.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(o.path.indexOf("/:")>-1&&(o.meta.isDynamic=!0,o.meta.isDynamicPath=o.path),n[0].children.push({...o}),n[0].meta.isKeepAlive&&o.meta.isKeepAlive&&(r.push(o.name),dA(ti).setCacheKeepAlive(r)))}),n}Yc.beforeEach(async(t,n,r)=>{zd.configure({showSpinner:!1}),t.meta.title&&zd.start();const a=await za().isLogin();if(t.path==="/login"&&!a)r(),zd.done();else if(!a)r(`/login?redirect=${t.path}¶ms=${JSON.stringify(t.query?t.query:t.params)}`),Co.clear(),zd.done();else if(a&&t.path==="/login")r("/home"),zd.done();else{const l=q2(ti),{routesList:i}=Au(l);i.value.length===0?d$e?(await fA(),r({path:t.path,query:t.query})):(await s$e(),r({path:t.path,query:t.query})):r()}});Yc.afterEach(()=>{zd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),f$e=(t={})=>(t=Ms(t,"新增菜单"),Fn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),p$e=(t={})=>(t=Ms(t,"根据id,删除菜单"),Fn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),v$e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),Fn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),m$e=(t={})=>(t=Ms(t,"获取所有菜单列表"),Fn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),h$e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),Fn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),g$e=(t={})=>(t=Ms(t,"获取一级菜单信息"),Fn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),b$e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),Fn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),y$e=(t={})=>(t=Ms(t,"更新菜单"),Fn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),_$e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),Fn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function Fx(){return{postAddMenu:f$e,postDelMenuInfo:p$e,getAllMenuIdList:v$e,getAllMenuList:m$e,getMenuList:h$e,getMenuListOne:g$e,postSetMenuConfig:b$e,postUpdateMenu:y$e,postUpdateMenuSort:_$e}}const C$e=Fx(),x$e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-IPv6izJQ.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-Q8A00XNQ.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-6D0aCtlo.js"))}),w$e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-tCqFieI0.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-XhU6HSbh.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-mi-VLLIe.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-9Ime2APN.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-qNV5JaV1.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-zOnyG0Oh.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-HzIqSqKp.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-xo1Zrnib.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-HmDevyFt.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-T0qgemcw.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-xAYPKEqA.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-1erTO1Jh.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-NZVqQsQL.js")),"../views/config/formSetting/components/hsExpand/src/hsExpand.vue":()=>Promise.resolve().then(()=>require("./hsExpand-ZRNYyYnQ.js")),"../views/config/formSetting/components/hsForm/src/contextmenu.vue":()=>Promise.resolve().then(()=>require("./contextmenu-gbULfjuI.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-aqyRkiIv.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-CUz0jJyG.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-kTxmo1j2.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-s7wEdMpE.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-0cf_0I8b.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-6d7HGgnD.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-6tUN4LcM.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-JIsop1SE.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-F83j0e5f.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-LVUSzGx7.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-swTWlbzT.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-TONzrJGA.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-8dDORMid.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-IGYxYFY1.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-3ZjTMae1.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401-eQIm6M1E.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-FM4GYP3C.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-_jJjuyYN.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-0hZKd1WQ.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-Y3ubnA3_.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-PGnogbun.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-Ef0UyEwo.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-GS7DxiJg.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-sZIy2dAG.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-nJT1LSBV.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-e__UUaA0.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-2rJu-Du4.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-WCIqXLT7.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-dgwi6GKb.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-2FiGf7t6.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-Tewv49xk.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-_WblIU_B.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-An-djowy.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-WQIAoErF.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-SYuce4Yt.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-sBLHtWMB.js")),"../views/test/test/bcUpload/index.vue":()=>Promise.resolve().then(()=>require("./index-Wyak8dVK.js")),"../views/test/test/index.vue":()=>Promise.resolve().then(()=>require("./index-z-0G6x8-.js"))}),k$e=Object.assign({},{...x$e},{...w$e});async function fA(){if(window.nextLoading===void 0&&H2.start(),!await za().isLogin())return!1;const r=await mA();if(r.data.length<=0)return Promise.resolve(!0);UO().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Mu[0].children=await zx(r.data),await vA(),pA()}async function pA(){q2(ti).setRoutesList(Mu[0].children),E$e()}function E$e(){Ix(ti).setTagsViewRoutes(K2(U2(Mu))[0].children)}function S$e(){let t=K2(U2(Mu));return t[0].children=[...t[0].children,...Ox],t}async function vA(){await S$e().forEach(t=>{Yc.addRoute(t)})}async function mA(){let t=await C$e.getMenuList();return console.debug("menu:",t),t}async function B$e(){const t=await mA();if(t.data.length<=0)return Promise.resolve(!0);UO().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Mu[0].children=await zx(t.data),await vA(),pA()}function zx(t){if(t)return t.map(n=>(n.component&&(n.component=N$e(k$e,n.component)),n.children&&zx(n.children),n))}function N$e(t,n){const o=Object.keys(t).filter(a=>{const l=a.replace(/..\/views|../,"");return l.startsWith(`${n}`)||l.startsWith(`/${n}`)});if((o==null?void 0:o.length)===1){const a=o[0];return t[a]}if((o==null?void 0:o.length)>1)return!1}const A5=ei.value||"hs-admin-ui:sid",za=qf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Di.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Di.set("userInfo",t),Kd.set(A5,t.sid,{expires:new Date(+new Date+86400*1e3)}),await fA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Kd.remove(A5),Co.clear(),await Di.clear()}}});function T$e(t){return za().userInfos.authBtnList.some(r=>r===t)}function D$e(t){let n=!1;return za().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function V$e(t){const n=za();return Nx(t,n.userInfos.authBtnList)}var hA={exports:{}};/*!
|
|
179
179
|
* clipboard.js v2.0.11
|
|
180
180
|
* https://clipboardjs.com/
|
|
181
181
|
*
|
|
@@ -192,4 +192,4 @@ ${JSON.stringify(de,null,2)}
|
|
|
192
192
|
* @author RubaXa <trash@rubaxa.org>
|
|
193
193
|
* @author owenm <owen23355@gmail.com>
|
|
194
194
|
* @license MIT
|
|
195
|
-
*/function J9(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Pi(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?J9(Object(r),!0).forEach(function(o){MZe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J9(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function lg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lg=function(n){return typeof n}:lg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lg(t)}function MZe(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ts(){return Ts=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ts.apply(this,arguments)}function RZe(t,n){if(t==null)return{};var r={},o=Object.keys(t),a,l;for(l=0;l<o.length;l++)a=o[l],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function IZe(t,n){if(t==null)return{};var r=RZe(t,n),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)o=l[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}var PZe="1.15.1";function Es(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ls=Es(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),K0=Es(/Edge/i),Q9=Es(/firefox/i),Mv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),$I=Es(/iP(ad|od|hone)/i),OI=Es(/chrome/i)&&Es(/android/i),AI={capture:!1,passive:!1};function Sr(t,n,r){t.addEventListener(n,r,!Ls&&AI)}function xr(t,n,r){t.removeEventListener(n,r,!Ls&&AI)}function Zg(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function FZe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Ci(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&Zg(t,n):Zg(t,n))||o&&t===r)return t;if(t===r)break}while(t=FZe(t))}return null}var eN=/\s+/g;function el(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(eN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(eN," ")}}function mn(t,n,r){var o=t&&t.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),n===void 0?r:r[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=r+(typeof r=="string"?"":"px")}}function ff(t,n){var r="";if(typeof t=="string")r=t;else do{var o=mn(t,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!n&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function MI(t,n,r){if(t){var o=t.getElementsByTagName(n),a=0,l=o.length;if(r)for(;a<l;a++)r(o[a],a);return o}return[]}function $i(){var t=document.scrollingElement;return t||document.documentElement}function yo(t,n,r,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var l,i,s,u,c,d,f;if(t!==window&&t.parentNode&&t!==$i()?(l=t.getBoundingClientRect(),i=l.top,s=l.left,u=l.bottom,c=l.right,d=l.height,f=l.width):(i=0,s=0,u=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(n||r)&&t!==window&&(a=a||t.parentNode,!Ls))do if(a&&a.getBoundingClientRect&&(mn(a,"transform")!=="none"||r&&mn(a,"position")!=="static")){var p=a.getBoundingClientRect();i-=p.top+parseInt(mn(a,"border-top-width")),s-=p.left+parseInt(mn(a,"border-left-width")),u=i+l.height,c=s+l.width;break}while(a=a.parentNode);if(o&&t!==window){var v=ff(a||t),m=v&&v.a,g=v&&v.d;v&&(i/=g,s/=m,f/=m,d/=g,u=i+d,c=s+f)}return{top:i,left:s,bottom:u,right:c,width:f,height:d}}}function RI(t){var n=yo(t),r=parseInt(mn(t,"padding-left")),o=parseInt(mn(t,"padding-top")),a=parseInt(mn(t,"padding-right")),l=parseInt(mn(t,"padding-bottom"));return n.top+=o+parseInt(mn(t,"border-top-width")),n.left+=r+parseInt(mn(t,"border-left-width")),n.width=t.clientWidth-r-a,n.height=t.clientHeight-o-l,n.bottom=n.top+n.height,n.right=n.left+n.width,n}function tN(t,n,r){for(var o=_u(t,!0),a=yo(t)[n];o;){var l=yo(o)[r],i=void 0;if(r==="top"||r==="left"?i=a>=l:i=a<=l,!i)return o;if(o===$i())break;o=_u(o,!1)}return!1}function Af(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Sn.ghost&&(o||i[l]!==Sn.dragged)&&Ci(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function C6(t,n){for(var r=t.lastElementChild;r&&(r===Sn.ghost||mn(r,"display")==="none"||n&&!Zg(r,n));)r=r.previousElementSibling;return r||null}function _l(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sn.clone&&(!n||Zg(t,n))&&r++;return r}function nN(t){var n=0,r=0,o=$i();if(t)do{var a=ff(t),l=a.a,i=a.d;n+=t.scrollLeft*l,r+=t.scrollTop*i}while(t!==o&&(t=t.parentNode));return[n,r]}function zZe(t,n){for(var r in t)if(t.hasOwnProperty(r)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[r][o])return Number(r)}return-1}function _u(t,n){if(!t||!t.getBoundingClientRect)return $i();var r=t,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=mn(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return $i();if(o||n)return r;o=!0}}while(r=r.parentNode);return $i()}function LZe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function p4(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var Rv;function II(t,n){return function(){if(!Rv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),Rv=setTimeout(function(){Rv=void 0},n)}}}function HZe(){clearTimeout(Rv),Rv=void 0}function PI(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function FI(t){var n=window.Polymer,r=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}var rl="Sortable"+new Date().getTime();function WZe(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(mn(o,"display")==="none"||o===Sn.ghost)){t.push({target:o,rect:yo(o)});var a=Pi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=ff(o,!0);l&&(a.top-=l.f,a.left-=l.e)}o.fromRect=a}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(zZe(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var a=!1,l=0;t.forEach(function(i){var s=0,u=i.target,c=u.fromRect,d=yo(u),f=u.prevFromRect,p=u.prevToRect,v=i.rect,m=ff(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&p4(f,d)&&!p4(c,d)&&(v.top-d.top)/(v.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=qZe(v,f,p,o.options)),p4(d,c)||(u.prevFromRect=c,u.prevToRect=d,s||(s=o.options.animation),o.animate(u,v,d,s)),s&&(a=!0,l=Math.max(l,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(n),a?n=setTimeout(function(){typeof r=="function"&&r()},l):typeof r=="function"&&r(),t=[]},animate:function(r,o,a,l){if(l){mn(r,"transition",""),mn(r,"transform","");var i=ff(this.el),s=i&&i.a,u=i&&i.d,c=(o.left-a.left)/(s||1),d=(o.top-a.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,mn(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=jZe(r),mn(r,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),mn(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){mn(r,"transition",""),mn(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},l)}}}}function jZe(t){return t.offsetWidth}function qZe(t,n,r,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-r.top,2)+Math.pow(n.left-r.left,2))*o.animation}var Od=[],v4={initializeByDefault:!0},G0={mount:function(t){for(var n in v4)v4.hasOwnProperty(n)&&!(n in t)&&(t[n]=v4[n]);Od.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Od.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Od.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](Pi({sortable:n},r)),n.options[l.pluginName]&&n[l.pluginName][t]&&n[l.pluginName][t](Pi({sortable:n},r)))})},initializePlugins:function(t,n,r,o){Od.forEach(function(i){var s=i.pluginName;if(!(!t.options[s]&&!i.initializeByDefault)){var u=new i(t,n,t.options);u.sortable=t,u.options=t.options,t[s]=u,Ts(r,u.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var l=this.modifyOption(t,a,t.options[a]);typeof l<"u"&&(t.options[a]=l)}},getEventProperties:function(t,n){var r={};return Od.forEach(function(o){typeof o.eventProperties=="function"&&Ts(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return Od.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function UZe(t){var n=t.sortable,r=t.rootEl,o=t.name,a=t.targetEl,l=t.cloneEl,i=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,v=t.putSortable,m=t.extraEventProperties;if(n=n||r&&r[rl],!!n){var g,b=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!K0?g=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(o,!0,!0)),g.to=i||r,g.from=s||r,g.item=a||r,g.clone=l,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=v?v.lastPutMode:void 0;var w=Pi(Pi({},m),G0.getEventProperties(o,n));for(var y in w)g[y]=w[y];r&&r.dispatchEvent(g),b[C]&&b[C].call(n,g)}}var KZe=["evt"],Ma=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=IZe(r,KZe);G0.pluginEvent.bind(Sn)(t,n,Pi({dragEl:It,parentEl:so,ghostEl:Ln,rootEl:Zr,nextEl:uc,lastDownEl:ig,cloneEl:no,cloneHidden:mu,dragStarted:Yp,putSortable:qo,activeSortable:Sn.active,originalEvent:o,oldIndex:Qd,oldDraggableIndex:Iv,newIndex:tl,newDraggableIndex:fu,hideGhostForTarget:WI,unhideGhostForTarget:jI,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){Ca({sortable:n,name:l,originalEvent:o})}},a))};function Ca(t){UZe(Pi({putSortable:qo,cloneEl:no,targetEl:It,rootEl:Zr,oldIndex:Qd,oldDraggableIndex:Iv,newIndex:tl,newDraggableIndex:fu},t))}var It,so,Ln,Zr,uc,ig,no,mu,Qd,tl,Iv,fu,bh,qo,Hd=!1,Jg=!1,Qg=[],oc,jl,m4,h4,rN,oN,Yp,Ad,Pv,Fv=!1,yh=!1,sg,ra,g4=[],CC=!1,e2=[],u1=typeof document<"u",_h=$I,aN=K0||Ls?"cssFloat":"float",GZe=u1&&!OI&&!$I&&"draggable"in document.createElement("div"),zI=function(){if(u1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),LI=function(t,n){var r=mn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Af(t,0,n),l=Af(t,1,n),i=a&&mn(a),s=l&&mn(l),u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+yo(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+yo(l).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var d=i.float==="left"?"left":"right";return l&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||u>=o&&r[aN]==="none"||l&&r[aN]==="none"&&u+c>o)?"vertical":"horizontal"},YZe=function(t,n,r){var o=r?t.left:t.top,a=r?t.right:t.bottom,l=r?t.width:t.height,i=r?n.left:n.top,s=r?n.right:n.bottom,u=r?n.width:n.height;return o===i||a===s||o+l/2===i+u/2},XZe=function(t,n){var r;return Qg.some(function(o){var a=o[rl].options.emptyInsertThreshold;if(!(!a||C6(o))){var l=yo(o),i=t>=l.left-a&&t<=l.right+a,s=n>=l.top-a&&n<=l.bottom+a;if(i&&s)return r=o}}),r},HI=function(t){function n(a,l){return function(i,s,u,c){var d=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(a==null&&(l||d))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(i,s,u,c),l)(i,s,u,c);var f=(l?i:s).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var r={},o=t.group;(!o||lg(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},WI=function(){!zI&&Ln&&mn(Ln,"display","none")},jI=function(){!zI&&Ln&&mn(Ln,"display","")};u1&&!OI&&document.addEventListener("click",function(t){if(Jg)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Jg=!1,!1},!0);var ac=function(t){if(It){t=t.touches?t.touches[0]:t;var n=XZe(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[rl]._onDragOver(r)}}},ZZe=function(t){It&&It.parentNode[rl]._isOutsideThisEl(t.target)};function Sn(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=Ts({},n),t[rl]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return LI(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,i){l.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sn.supportPointer!==!1&&"PointerEvent"in window&&!Mv,emptyInsertThreshold:5};G0.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);HI(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:GZe,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Sr(t,"pointerdown",this._onTapStart):(Sr(t,"mousedown",this._onTapStart),Sr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Sr(t,"dragover",this),Sr(t,"dragenter",this)),Qg.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ts(this,WZe())}Sn.prototype={constructor:Sn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ad=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,It):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,l=t.type,i=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(i||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=o.filter;if(aJe(r),!It&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Mv&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Ci(s,o.draggable,r,!1),!(s&&s.animated)&&ig!==s)){if(Qd=_l(s),Iv=_l(s,o.draggable),typeof c=="function"){if(c.call(this,t,s,this)){Ca({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:r,fromEl:r}),Ma("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Ci(u,d.trim(),r,!1),d)return Ca({sortable:n,rootEl:d,name:"filter",targetEl:s,fromEl:r,toEl:r}),Ma("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!Ci(u,o.handle,r,!1)||this._prepareDragStart(t,i,s)}}},_prepareDragStart:function(t,n,r){var o=this,a=o.el,l=o.options,i=a.ownerDocument,s;if(r&&!It&&r.parentNode===a){var u=yo(r);if(Zr=a,It=r,so=It.parentNode,uc=It.nextSibling,ig=r,bh=l.group,Sn.dragged=It,oc={target:It,clientX:(n||t).clientX,clientY:(n||t).clientY},rN=oc.clientX-u.left,oN=oc.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,It.style["will-change"]="all",s=function(){if(Ma("delayEnded",o,{evt:t}),Sn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Q9&&o.nativeDraggable&&(It.draggable=!0),o._triggerDragStart(t,n),Ca({sortable:o,name:"choose",originalEvent:t}),el(It,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){MI(It,c.trim(),b4)}),Sr(i,"dragover",ac),Sr(i,"mousemove",ac),Sr(i,"touchmove",ac),Sr(i,"mouseup",o._onDrop),Sr(i,"touchend",o._onDrop),Sr(i,"touchcancel",o._onDrop),Q9&&this.nativeDraggable&&(this.options.touchStartThreshold=4,It.draggable=!0),Ma("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(K0||Ls))){if(Sn.eventCanceled){this._onDrop();return}Sr(i,"mouseup",o._disableDelayedDrag),Sr(i,"touchend",o._disableDelayedDrag),Sr(i,"touchcancel",o._disableDelayedDrag),Sr(i,"mousemove",o._delayedDragTouchMoveHandler),Sr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&Sr(i,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,l.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){It&&b4(It),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;xr(t,"mouseup",this._disableDelayedDrag),xr(t,"touchend",this._disableDelayedDrag),xr(t,"touchcancel",this._disableDelayedDrag),xr(t,"mousemove",this._delayedDragTouchMoveHandler),xr(t,"touchmove",this._delayedDragTouchMoveHandler),xr(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Sr(document,"pointermove",this._onTouchMove):n?Sr(document,"touchmove",this._onTouchMove):Sr(document,"mousemove",this._onTouchMove):(Sr(It,"dragend",this),Sr(Zr,"dragstart",this._onDragStart));try{document.selection?ug(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Hd=!1,Zr&&It){Ma("dragStarted",this,{evt:n}),this.nativeDraggable&&Sr(document,"dragover",ZZe);var r=this.options;!t&&el(It,r.dragClass,!1),el(It,r.ghostClass,!0),Sn.active=this,t&&this._appendGhost(),Ca({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(jl){this._lastX=jl.clientX,this._lastY=jl.clientY,WI();for(var t=document.elementFromPoint(jl.clientX,jl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(jl.clientX,jl.clientY),t!==n);)n=t;if(It.parentNode[rl]._isOutsideThisEl(t),n)do{if(n[rl]){var r=void 0;if(r=n[rl]._onDragOver({clientX:jl.clientX,clientY:jl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);jI()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Ln&&ff(Ln,!0),i=Ln&&l&&l.a,s=Ln&&l&&l.d,u=_h&&ra&&nN(ra),c=(a.clientX-oc.clientX+o.x)/(i||1)+(u?u[0]-g4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(s||1)+(u?u[1]-g4[1]:0)/(s||1);if(!Sn.active&&!Hd){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ln){l?(l.e+=c-(m4||0),l.f+=d-(h4||0)):l={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");mn(Ln,"webkitTransform",f),mn(Ln,"mozTransform",f),mn(Ln,"msTransform",f),mn(Ln,"transform",f),m4=c,h4=d,jl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ln){var t=this.options.fallbackOnBody?document.body:Zr,n=yo(It,!0,_h,!0,t),r=this.options;if(_h){for(ra=t;mn(ra,"position")==="static"&&mn(ra,"transform")==="none"&&ra!==document;)ra=ra.parentNode;ra!==document.body&&ra!==document.documentElement?(ra===document&&(ra=$i()),n.top+=ra.scrollTop,n.left+=ra.scrollLeft):ra=$i(),g4=nN(ra)}Ln=It.cloneNode(!0),el(Ln,r.ghostClass,!1),el(Ln,r.fallbackClass,!0),el(Ln,r.dragClass,!0),mn(Ln,"transition",""),mn(Ln,"transform",""),mn(Ln,"box-sizing","border-box"),mn(Ln,"margin",0),mn(Ln,"top",n.top),mn(Ln,"left",n.left),mn(Ln,"width",n.width),mn(Ln,"height",n.height),mn(Ln,"opacity","0.8"),mn(Ln,"position",_h?"absolute":"fixed"),mn(Ln,"zIndex","100000"),mn(Ln,"pointerEvents","none"),Sn.ghost=Ln,t.appendChild(Ln),mn(Ln,"transform-origin",rN/parseInt(Ln.style.width)*100+"% "+oN/parseInt(Ln.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ma("dragStart",this,{evt:t}),Sn.eventCanceled){this._onDrop();return}Ma("setupClone",this),Sn.eventCanceled||(no=FI(It),no.removeAttribute("id"),no.draggable=!1,no.style["will-change"]="",this._hideClone(),el(no,this.options.chosenClass,!1),Sn.clone=no),r.cloneId=ug(function(){Ma("clone",r),!Sn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(no,It),r._hideClone(),Ca({sortable:r,name:"clone"}))}),!n&&el(It,a.dragClass,!0),n?(Jg=!0,r._loopId=setInterval(r._emulateDragOver,50)):(xr(document,"mouseup",r._onDrop),xr(document,"touchend",r._onDrop),xr(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,It)),Sr(document,"drop",r),mn(It,"transform","translateZ(0)")),Hd=!0,r._dragStartId=ug(r._dragStarted.bind(r,n,t)),Sr(document,"selectstart",r),Yp=!0,Mv&&mn(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,a,l,i=this.options,s=i.group,u=Sn.active,c=bh===s,d=i.sort,f=qo||u,p,v=this,m=!1;if(CC)return;function g(F,Y){Ma(F,v,Pi({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:l,dragRect:o,targetRect:a,canSort:d,fromSortable:f,target:r,completed:C,onMove:function(z,G){return Ch(Zr,n,It,o,z,yo(z),t,G)},changed:w},Y))}function b(){g("dragOverAnimationCapture"),v.captureAnimationState(),v!==f&&f.captureAnimationState()}function C(F){return g("dragOverCompleted",{insertion:F}),F&&(c?u._hideClone():u._showClone(v),v!==f&&(el(It,qo?qo.options.ghostClass:u.options.ghostClass,!1),el(It,i.ghostClass,!0)),qo!==v&&v!==Sn.active?qo=v:v===Sn.active&&qo&&(qo=null),f===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){g("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===It&&!It.animated||r===n&&!r.animated)&&(Ad=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(It.parentNode[rl]._isOutsideThisEl(t.target),!F&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function w(){tl=_l(It),fu=_l(It,i.draggable),Ca({sortable:v,name:"change",toEl:n,newIndex:tl,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ci(r,i.draggable,n,!0),g("dragOver"),Sn.eventCanceled)return m;if(It.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return C(!1);if(Jg=!1,u&&!i.disabled&&(c?d||(l=so!==Zr):qo===this||(this.lastPutMode=bh.checkPull(this,u,It,t))&&s.checkPut(this,u,It,t))){if(p=this._getDirection(t,r)==="vertical",o=yo(It),g("dragOverValid"),Sn.eventCanceled)return m;if(l)return so=Zr,b(),this._hideClone(),g("revert"),Sn.eventCanceled||(uc?Zr.insertBefore(It,uc):Zr.appendChild(It)),C(!0);var y=C6(n,i.draggable);if(!y||tJe(t,p,this)&&!y.animated){if(y===It)return C(!1);if(y&&n===t.target&&(r=y),r&&(a=yo(r)),Ch(Zr,n,It,o,r,a,t,!!r)!==!1)return b(),y&&y.nextSibling?n.insertBefore(It,y.nextSibling):n.appendChild(It),so=n,w(),C(!0)}else if(y&&eJe(t,p,this)){var x=Af(n,0,i,!0);if(x===It)return C(!1);if(r=x,a=yo(r),Ch(Zr,n,It,o,r,a,t,!1)!==!1)return b(),n.insertBefore(It,x),so=n,w(),C(!0)}else if(r.parentNode===n){a=yo(r);var k=0,S,B=It.parentNode!==n,E=!YZe(It.animated&&It.toRect||o,r.animated&&r.toRect||a,p),D=p?"top":"left",N=tN(r,"top","top")||tN(It,"top","top"),V=N?N.scrollTop:void 0;Ad!==r&&(S=a[D],Fv=!1,yh=!E&&i.invertSwap||B),k=nJe(t,r,a,p,E?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,yh,Ad===r);var M;if(k!==0){var O=_l(It);do O-=k,M=so.children[O];while(M&&(mn(M,"display")==="none"||M===Ln))}if(k===0||M===r)return C(!1);Ad=r,Pv=k;var P=r.nextElementSibling,I=!1;I=k===1;var H=Ch(Zr,n,It,o,r,a,t,I);if(H!==!1)return(H===1||H===-1)&&(I=H===1),CC=!0,setTimeout(QZe,30),b(),I&&!P?n.appendChild(It):r.parentNode.insertBefore(It,I?P:r),N&&PI(N,0,V-N.scrollTop),so=It.parentNode,S!==void 0&&!yh&&(sg=Math.abs(S-yo(r)[D])),w(),C(!0)}if(n.contains(It))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){xr(document,"mousemove",this._onTouchMove),xr(document,"touchmove",this._onTouchMove),xr(document,"pointermove",this._onTouchMove),xr(document,"dragover",ac),xr(document,"mousemove",ac),xr(document,"touchmove",ac)},_offUpEvents:function(){var t=this.el.ownerDocument;xr(t,"mouseup",this._onDrop),xr(t,"touchend",this._onDrop),xr(t,"pointerup",this._onDrop),xr(t,"touchcancel",this._onDrop),xr(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(tl=_l(It),fu=_l(It,r.draggable),Ma("drop",this,{evt:t}),so=It&&It.parentNode,tl=_l(It),fu=_l(It,r.draggable),Sn.eventCanceled){this._nulling();return}Hd=!1,yh=!1,Fv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xC(this.cloneId),xC(this._dragStartId),this.nativeDraggable&&(xr(document,"drop",this),xr(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mv&&mn(document.body,"user-select",""),mn(It,"transform",""),t&&(Yp&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ln&&Ln.parentNode&&Ln.parentNode.removeChild(Ln),(Zr===so||qo&&qo.lastPutMode!=="clone")&&no&&no.parentNode&&no.parentNode.removeChild(no),It&&(this.nativeDraggable&&xr(It,"dragend",this),b4(It),It.style["will-change"]="",Yp&&!Hd&&el(It,qo?qo.options.ghostClass:this.options.ghostClass,!1),el(It,this.options.chosenClass,!1),Ca({sortable:this,name:"unchoose",toEl:so,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==so?(tl>=0&&(Ca({rootEl:so,name:"add",toEl:so,fromEl:Zr,originalEvent:t}),Ca({sortable:this,name:"remove",toEl:so,originalEvent:t}),Ca({rootEl:so,name:"sort",toEl:so,fromEl:Zr,originalEvent:t}),Ca({sortable:this,name:"sort",toEl:so,originalEvent:t})),qo&&qo.save()):tl!==Qd&&tl>=0&&(Ca({sortable:this,name:"update",toEl:so,originalEvent:t}),Ca({sortable:this,name:"sort",toEl:so,originalEvent:t})),Sn.active&&((tl==null||tl===-1)&&(tl=Qd,fu=Iv),Ca({sortable:this,name:"end",toEl:so,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ma("nulling",this),Zr=It=so=Ln=uc=no=ig=mu=oc=jl=Yp=tl=fu=Qd=Iv=Ad=Pv=qo=bh=Sn.dragged=Sn.ghost=Sn.clone=Sn.active=null,e2.forEach(function(t){t.checked=!0}),e2.length=m4=h4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":It&&(this._onDragOver(t),JZe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,a=r.length,l=this.options;o<a;o++)n=r[o],Ci(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||oJe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];Ci(i,this.options.draggable,o,!1)&&(r[a]=i)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Ci(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=G0.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&HI(r)},destroy:function(){Ma("destroy",this);var t=this.el;t[rl]=null,xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart),xr(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qg.splice(Qg.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ma("hideClone",this),Sn.eventCanceled)return;mn(no,"display","none"),this.options.removeCloneOnHide&&no.parentNode&&no.parentNode.removeChild(no),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ma("showClone",this),Sn.eventCanceled)return;It.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(no,It):uc?Zr.insertBefore(no,uc):Zr.appendChild(no),this.options.group.revertClone&&this.animate(It,no),mn(no,"display",""),mu=!1}}};function JZe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ch(t,n,r,o,a,l,i,s){var u,c=t[rl],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!K0?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=n,u.from=t,u.dragged=r,u.draggedRect=o,u.related=a||n,u.relatedRect=l||yo(n),u.willInsertAfter=s,u.originalEvent=i,t.dispatchEvent(u),d&&(f=d.call(c,u,i)),f}function b4(t){t.draggable=!1}function QZe(){CC=!1}function eJe(t,n,r){var o=yo(Af(r.el,0,r.options,!0)),a=RI(r.el),l=10;return n?t.clientX<a.left-l||t.clientY<o.top&&t.clientX<o.right:t.clientY<a.top-l||t.clientY<o.bottom&&t.clientX<o.left}function tJe(t,n,r){var o=yo(C6(r.el,r.options.draggable)),a=RI(r.el),l=10;return n?t.clientX>a.right+l||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>a.bottom+l||t.clientX>o.right&&t.clientY>o.top}function nJe(t,n,r,o,a,l,i,s){var u=o?t.clientY:t.clientX,c=o?r.height:r.width,d=o?r.top:r.left,f=o?r.bottom:r.right,p=!1;if(!i){if(s&&sg<c*a){if(!Fv&&(Pv===1?u>d+c*l/2:u<f-c*l/2)&&(Fv=!0),Fv)p=!0;else if(Pv===1?u<d+sg:u>f-sg)return-Pv}else if(u>d+c*(1-a)/2&&u<f-c*(1-a)/2)return rJe(n)}return p=p||i,p&&(u<d+c*l/2||u>f-c*l/2)?u>d+c/2?1:-1:0}function rJe(t){return _l(It)<_l(t)?1:-1}function oJe(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,r=n.length,o=0;r--;)o+=n.charCodeAt(r);return o.toString(36)}function aJe(t){e2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&e2.push(o)}}function ug(t){return setTimeout(t,0)}function xC(t){return clearTimeout(t)}u1&&Sr(document,"touchmove",function(t){(Sn.active||Hd)&&t.cancelable&&t.preventDefault()});Sn.utils={on:Sr,off:xr,css:mn,find:MI,is:function(t,n){return!!Ci(t,n,t,!1)},extend:LZe,throttle:II,closest:Ci,toggleClass:el,clone:FI,index:_l,nextTick:ug,cancelNextTick:xC,detectDirection:LI,getChild:Af};Sn.get=function(t){return t[rl]};Sn.mount=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Sn.utils=Pi(Pi({},Sn.utils),o.utils)),G0.mount(o)})};Sn.create=function(t,n){return new Sn(t,n)};Sn.version=PZe;var bo=[],Xp,wC,kC=!1,y4,_4,t2,Zp;function lJe(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Sr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Sr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Sr(document,"touchmove",this._handleFallbackAutoScroll):Sr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?xr(document,"dragover",this._handleAutoScroll):(xr(document,"pointermove",this._handleFallbackAutoScroll),xr(document,"touchmove",this._handleFallbackAutoScroll),xr(document,"mousemove",this._handleFallbackAutoScroll)),lN(),cg(),HZe()},nulling:function(){t2=wC=Xp=kC=Zp=y4=_4=null,bo.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,i=document.elementFromPoint(a,l);if(t2=n,r||this.options.forceAutoScrollFallback||K0||Ls||Mv){C4(n,this.options,i,r);var s=_u(i,!0);kC&&(!Zp||a!==y4||l!==_4)&&(Zp&&lN(),Zp=setInterval(function(){var u=_u(document.elementFromPoint(a,l),!0);u!==s&&(s=u,cg()),C4(n,o.options,u,r)},10),y4=a,_4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){cg();return}C4(n,this.options,_u(i,!1),!1)}}},Ts(t,{pluginName:"scroll",initializeByDefault:!0})}function cg(){bo.forEach(function(t){clearInterval(t.pid)}),bo=[]}function lN(){clearInterval(Zp)}var C4=II(function(t,n,r,o){if(n.scroll){var a=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,i=n.scrollSensitivity,s=n.scrollSpeed,u=$i(),c=!1,d;wC!==r&&(wC=r,cg(),Xp=n.scroll,d=n.scrollFn,Xp===!0&&(Xp=_u(r,!0)));var f=0,p=Xp;do{var v=p,m=yo(v),g=m.top,b=m.bottom,C=m.left,w=m.right,y=m.width,x=m.height,k=void 0,S=void 0,B=v.scrollWidth,E=v.scrollHeight,D=mn(v),N=v.scrollLeft,V=v.scrollTop;v===u?(k=y<B&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=x<E&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(k=y<B&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=x<E&&(D.overflowY==="auto"||D.overflowY==="scroll"));var M=k&&(Math.abs(w-a)<=i&&N+y<B)-(Math.abs(C-a)<=i&&!!N),O=S&&(Math.abs(b-l)<=i&&V+x<E)-(Math.abs(g-l)<=i&&!!V);if(!bo[f])for(var P=0;P<=f;P++)bo[P]||(bo[P]={});(bo[f].vx!=M||bo[f].vy!=O||bo[f].el!==v)&&(bo[f].el=v,bo[f].vx=M,bo[f].vy=O,clearInterval(bo[f].pid),(M!=0||O!=0)&&(c=!0,bo[f].pid=setInterval((function(){o&&this.layer===0&&Sn.active._onTouchMove(t2);var I=bo[this.layer].vy?bo[this.layer].vy*s:0,H=bo[this.layer].vx?bo[this.layer].vx*s:0;typeof d=="function"&&d.call(Sn.dragged.parentNode[rl],H,I,t,t2,bo[this.layer].el)!=="continue"||PI(bo[this.layer].el,H,I)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==u&&(p=_u(p,!1)));kC=c}},30),qI=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,a=t.activeSortable,l=t.dispatchSortableEvent,i=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var u=r||a;i();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);s(),u&&!u.el.contains(d)&&(l("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function x6(){}x6.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Af(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:qI};Ts(x6,{pluginName:"revertOnSpill"});function w6(){}w6.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:qI};Ts(w6,{pluginName:"removeOnSpill"});Sn.mount(new lJe);Sn.mount(w6,x6);function iJe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function sJe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function uJe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const iN=Symbol("cloneElement");function cJe(...t){var n,r;const o=(n=e.getCurrentInstance())==null?void 0:n.proxy,a=t[0];let[,l,i]=t;Array.isArray(e.unref(l))||(i=l,l=null);let s=null;const{immediate:u=!0,clone:c=iJe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(S){var B;S.item[iN]=c(e.unref((B=e.unref(l))==null?void 0:B[S.oldIndex]))}function p(S){const B=S.item[iN];NZe(B)||(f4(S.item),BZe(e.unref(l),S.newDraggableIndex,B))}function v(S){const{from:B,item:E,oldIndex:D,oldDraggableIndex:N,pullMode:V,clone:M}=S;if(V==="clone"){Z9(B,E,D),f4(M);return}SZe(e.unref(l),N)}function m(S){if(d){d(S);return}const{from:B,item:E,oldIndex:D,newIndex:N}=S;if(f4(E),Z9(B,E,D),e.isRef(l)){const V=[...e.unref(l)];l.value=X9(V,D,N);return}X9(e.unref(l),D,N)}const g={onUpdate:m,onStart:f,onAdd:p,onRemove:v};function b(S){const B=e.unref(a);return S||(S=TZe(B)?DZe(B,o==null?void 0:o.$el):B),S&&!OZe(S)&&(S=S.$el),S||wZe("Root element not found"),S}function C(){var S;const B=(S=e.unref(i))!=null?S:{},E=DI(B,["immediate","clone"]);return $Ze(l===null?{}:g,E)}const w=S=>{S=b(S),s&&y.destroy(),s=new Sn(S,C())};e.watch(()=>i,()=>{s&&AZe(C(),(S,B)=>{s==null||s.option(S,B)})},{deep:!0});const y={option:(S,B)=>s==null?void 0:s.option(S,B),destroy:()=>{s==null||s.destroy(),s=null},save:()=>s==null?void 0:s.save(),toArray:()=>s==null?void 0:s.toArray(),closest:(...S)=>s==null?void 0:s.closest(...S)},x=()=>y==null?void 0:y.option("disabled",!0),k=()=>y==null?void 0:y.option("disabled",!1);return uJe(()=>{u&&w()}),sJe(y.destroy),Jd({start:w,pause:x,resume:k},y)}const EC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],dJe=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...EC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],Fu=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:dJe,emits:["update:modelValue",...EC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=EC.reduce((d,f)=>{const p=`on${f.replace(/^\S/,v=>v.toUpperCase())}`;return d[p]=v=>r(f,v),d},{}),i=e.computed(()=>{const d=e.toRefs(t),f=DI(d,["modelValue"]),p=Object.entries(f).reduce((v,[m,g])=>{const b=e.unref(g);return b!==void 0&&(v[m]=b),v},{});return Jd(Jd({},l),EZe(Jd(Jd({},a),p)))}),s=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),u=e.ref(),c=e.reactive(cJe(t.target||u,s,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:u},n.default(c))}}}),fJe=t=>(e.pushScopeId("data-v-84197db7"),t=t(),e.popScopeId(),t),pJe=fJe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),vJe=e.defineComponent({name:"formDrag"}),mJe=e.defineComponent({...vJe,props:{baseData:{},formData:{},formConfig:{}},emits:["update:formConfig"],setup(t,{expose:n,emit:r}){const o=t,a=r,l=e.ref(),i=e.ref(null),s=e.computed({get(){return o.formConfig},set(c){a("update:formConfig",c)}});function u(c){return{...Ge.omit(c.baseData,["el","isSlot","isAuth","isApply","isShow"]),...c.elData.rules}}return n({componentRef:i}),(c,d)=>{const f=e.resolveComponent("hs-form-item"),p=e.resolveComponent("hs-form");return e.openBlock(),e.createBlock(p,e.mergeProps(c.baseData,{model:c.formData}),{default:e.withCtx(()=>[e.createVNode(e.unref(Fu),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=v=>s.value=v),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,v=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:v.id},u(v.data)),{default:e.withCtx(()=>[v.data.baseData.isSlot?e.renderSlot(c.$slots,`query_${v.data.baseData.prop}`,{key:0},void 0,!0):v.data.baseData.el==="bc-group-date"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.data.baseData.el),e.mergeProps({key:1,ref_for:!0,ref_key:"componentRef",ref:i,"el-component":v.data.baseData.el2,"field-component":v.data.baseData.groupField,modelValue:c.formData,"onUpdate:modelValue":d[0]||(d[0]=m=>c.formData=m)},e.unref(Ge).omit(v.data.elData,"rules")),null,16,["el-component","field-component","modelValue"])):v.data.baseData.prop&&v.data.baseData.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.data.baseData.el),e.mergeProps({key:2,ref_for:!0,ref_key:"componentRef",ref:i,modelValue:c.formData[v.data.baseData.prop],"onUpdate:modelValue":m=>c.formData[v.data.baseData.prop]=m},e.unref(Ge).omit(v.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),pJe]),_:3},16,["model"])}}}),hJe=Ar(mJe,[["__scopeId","data-v-84197db7"]]),gJe=t=>(e.pushScopeId("data-v-fef8a630"),t=t(),e.popScopeId(),t),bJe={class:"sort-form-wraper"},yJe={class:"sort-form-wraper__content"},_Je={class:"content__wrap"},CJe=gJe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),xJe={class:"sort-target drag li"},wJe={class:"li name"},kJe={class:"li"},EJe={class:"li"},SJe={class:"footer"},BJe={class:"footer-confirm"},NJe=e.defineComponent({name:"sortColumn"}),TJe=e.defineComponent({...NJe,props:{uniqueId:{},id:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o(n.uniqueId);function o(i){return To.get(i).then(s=>{const{tableConfig:u}=s.tables.find(c=>c.id===n.id);r.value=u.filter(c=>!c.data.type)})}function a(){To.get(`${n.uniqueId}_origin`).then(i=>{const s=i.tables.find(u=>u.id===n.id);r.value=s.tableConfig.filter(u=>!u.data.type),To.set(n.uniqueId,i)})}function l(){To.get(n.uniqueId).then(i=>{const s=i.tables.find(c=>c.id===n.id),u=s.tableConfig.filter(c=>c.data.type);s.tableConfig=JSON.parse(JSON.stringify([...u,...r.value])),To.set(n.uniqueId,i).then(()=>{n.close(s)})})}return(i,s)=>{const u=e.resolveComponent("el-icon"),c=e.resolveComponent("hs-input"),d=e.resolveComponent("hs-switch"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",bJe,[e.createElementVNode("div",yJe,[e.createElementVNode("div",_Je,[CJe,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=p=>r.value=p),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,v)=>(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"sort-target__wraper"},[e.createElementVNode("span",xJe,[e.createVNode(u,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gv))]),_:1})]),e.createElementVNode("span",wJe,[e.createVNode(c,{modelValue:p.data.title,"onUpdate:modelValue":m=>p.data.title=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",kJe,[e.createVNode(d,{modelValue:p.data.isShow,"onUpdate:modelValue":m=>p.data.isShow=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",EJe,e.toDisplayString(v+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",SJe,[e.createVNode(f,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",BJe,[e.createVNode(f,{size:"small",onClick:s[1]||(s[1]=p=>i.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{type:"primary",size:"small",onClick:l},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),DJe=Ar(TJe,[["__scopeId","data-v-fef8a630"]]);function VJe(t,n){return new Promise(r=>{a1(DJe,{uniqueId:t,id:n},{id:n,title:"表格配置",showFooter:!1,success:({type:o})=>{r(o)}})})}const $r=e.reactive({rowIndex:0,columnIndex:0});function $Je(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=["checkbox","expand","radio","seq"],i=[{label:"右键1",value:"111"},{label:"右键2",value:"222"},{label:"右键3",value:"333"},{label:"右键4",value:"444"},{label:"右键5",value:"555"}];function s(){var p,v,m;const c=(p=e.toValue(a))==null?void 0:p.getData($r.rowIndex),{visibleColumn:d}=e.toValue(a).getTableColumn(),f=d[$r.columnIndex].field;(v=e.toValue(a))==null||v.setCurrentRow(c),(m=e.toValue(a))==null||m.setEditRow(c,f).then(()=>{const{rowIndex:g,columnIndex:b}=e.toValue(a).getEditRecord();$r.rowIndex=g??0,$r.columnIndex=b??0})}async function u(c){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=c.currentPage,d.baseData.table_page_data.pageSize=c.pageSize,d.tableData=await s1(d.baseData,o.data.form.formData)}return Ec("ArrowRight",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if($r.columnIndex++,$r.columnIndex>f.length-1&&($r.columnIndex=0),l.includes((p=f[$r.columnIndex])==null?void 0:p.type)){const v=f.filter(m=>m.type).length;$r.columnIndex=$r.columnIndex+v}s()}),Ec("ArrowLeft",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if($r.columnIndex--,l.includes((p=f[$r.columnIndex])==null?void 0:p.type)){const v=f.filter(m=>m.type).length;$r.columnIndex=$r.columnIndex-v}$r.columnIndex<0&&($r.columnIndex=f.length-1),s()}),Ec("ArrowUp",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();$r.rowIndex--,$r.rowIndex<0&&($r.rowIndex=f.length-1),s()}),Ec("ArrowDown",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();$r.rowIndex++,$r.rowIndex>f.length-1&&($r.rowIndex=0),s()}),{menuTable:i,onPageChange:u}}function OJe(t,n,r){function o(s){$r.rowIndex=s.rowIndex,$r.columnIndex=s.columnIndex,r("cell-click",s)}function a(s){s.columnIndex===0?VJe(t.uniqueId,t.id).then(u=>{const c=u.tableConfig.map(d=>Fc(d.data)).filter(d=>d.isShow);e.nextTick(async()=>{var d,f;await((d=e.toValue(n))==null?void 0:d.reloadColumn(c)),await((f=e.toValue(n))==null?void 0:f.refreshColumn())})}):r("header-cell-click",s)}function l(s,u){s.fnName&&typeof s.fnName=="function"&&s.fnName(u)}function i(s){r("page-change",s)}return{handleCellClick:o,headerCellClick:a,headerBtnClick:l,pageChange:i}}function AJe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=ku(t),{height:a}=ku(n,{height:0,width:0}),l=e.computed(()=>({height:`${o.value-a.value}px`}));return{wrapRef:t,pagerRef:n,tableRef:r,style:l}}const MJe=e.defineComponent({name:"formTable"}),RJe=e.defineComponent({...MJe,props:{uniqueId:{},id:{},baseData:{},tableData:{},tableConfig:{}},emits:["ready","cell-click","header-cell-click","page-change"],setup(t,{emit:n}){const r=t,o=n,{wrapRef:a,pagerRef:l,tableRef:i,style:s}=AJe(),{handleCellClick:u,headerCellClick:c,headerBtnClick:d,pageChange:f}=OJe(r,i,o);return e.onMounted(()=>{o("ready",i.value)}),(p,v)=>{const m=e.resolveComponent("bc-btn"),g=e.resolveComponent("vxe-column"),b=e.resolveComponent("vxe-table"),C=e.resolveComponent("vxe-pager");return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:a,class:"bc-table__wrapper bg-white"},[e.createElementVNode("div",{class:"bc-table__content",style:e.normalizeStyle(e.unref(s))},[e.createVNode(b,e.mergeProps({ref_key:"tableRef",ref:i},p.baseData,{onCellClick:e.unref(u),onHeaderCellClick:e.unref(c),data:p.tableData}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tableConfig,w=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:w.id},w.data),e.createSlots({_:2},[e.renderList(p.$slots,(y,x)=>({name:x,fn:e.withCtx(k=>[e.renderSlot(p.$slots,x,e.normalizeProps(e.guardReactiveProps(k||{})),void 0,!0)])})),w.data.isSlot?{name:"default",fn:e.withCtx(y=>[w.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(EI)(w.data.el)),{key:0,modelValue:y.row[y.column.field],"onUpdate:modelValue":x=>y.row[y.column.field]=x},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,w.data.field,e.normalizeProps(e.mergeProps({key:1},y||{})),void 0,!0)]),key:"0"}:w.btnData&&w.btnData.length?{name:"default",fn:e.withCtx(y=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btnData,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.id},[x.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.data.isSlot?e.renderSlot(p.$slots,`table_btn_${w.data.key}`,e.normalizeProps(e.mergeProps({key:0},y||{})),void 0,!0):(e.openBlock(),e.createBlock(m,{key:1,data:x.data,onClick:k=>e.unref(d)(x.data,y)},null,8,["data","onClick"]))],64)):e.createCommentVNode("",!0)],64))),128))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["onCellClick","onHeaderCellClick","data"])],4),e.createElementVNode("div",{ref_key:"pagerRef",ref:l},[p.baseData.is_apply_page?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},p.baseData.table_page_data,{onPageChange:e.unref(f)}),e.createSlots({_:2},[e.renderList(p.$slots,(w,y)=>({name:y,fn:e.withCtx(x=>[e.renderSlot(p.$slots,"pager_"+y,e.normalizeProps(e.guardReactiveProps(x||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),IJe=Ar(RJe,[["__scopeId","data-v-1aa3815c"]]),PJe={key:0,class:"item-wrap"},FJe=["onClick"],zJe=e.defineComponent({name:"formTabs"}),LJe=e.defineComponent({...zJe,props:e.mergeModels({tabs:{}},{active:{type:String},activeModifiers:{}}),emits:["update:active"],setup(t){const n=e.useModel(t,"active"),r=e.ref(),o=e.ref(),{height:a}=ku(r),{height:l}=ku(o),i=e.computed(()=>`${a.value-l.value}px`);return(s,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:r,class:"tabs-wrapper"},[e.createElementVNode("div",{ref_key:"headRef",ref:o,class:e.normalizeClass(["tabs-head",[s.tabs.length>1?"min-h-16":"min-h-2"]])},[e.renderSlot(s.$slots,"left",{},void 0,!0),s.tabs.length>1?(e.openBlock(),e.createElementBlock("div",PJe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,c=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["item",[n.value===c.id?"active":""]]),key:c.id,onClick:d=>n.value=c.id},e.toDisplayString(c.baseData.tableName),11,FJe))),128))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"tabs-content",style:e.normalizeStyle({height:i.value})},[e.renderSlot(s.$slots,"default",{},void 0,!0)],4)],512))}}),HJe=Ar(LJe,[["__scopeId","data-v-fa1d5d61"]]);function WJe(t,n){const r=e.ref(0),o=e.ref(0),a=e.ref(!1),l=e.ref(n.menu);function i(u){var c;n.target&&!((c=u.target)!=null&&c.closest(n.target))||(u.preventDefault(),u.stopPropagation(),typeof n.getMenu=="function"?l.value=n.getMenu():l.value=n.menu,a.value=!0,r.value=u.clientX,o.value=u.clientY)}function s(){a.value=!1}return e.onMounted(()=>{var u;(u=t.value)==null||u.addEventListener("contextmenu",i),window.addEventListener("click",s,!0),window.addEventListener("contextmenu",s,!0)}),e.onUnmounted(()=>{var u;(u=t.value)==null||u.removeEventListener("contextmenu",i),window.removeEventListener("click",s,!0),window.removeEventListener("contextmenu",s,!0)}),{x:r,y:o,isshow:a,menuList:l}}const jJe=["onClick"],qJe=e.defineComponent({name:"contextBody"}),UJe=e.defineComponent({...qJe,props:{menu:{},target:{},getMenu:{type:Function}},emits:["select"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(),{x:l,y:i,isshow:s,menuList:u}=WJe(a,r);function c(v){s.value=!1,typeof v.click=="function"?v.click():o("select",v)}function d(v){const m=v;m.style.height="0"}function f(v){const m=v;m.style.height="auto";const g=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{m.style.height=g+"px",m.style.transition="all .5s"})}function p(v){const m=v;m.style.transition="none"}return(v,m)=>(e.openBlock(),e.createElementBlock("div",{class:"context-wrap",ref_key:"contextRef",ref:a},[e.renderSlot(v.$slots,"default",{},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{onBeforeEnter:d,onEnter:f,onAfterEnter:p},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-wrap__content",style:e.normalizeStyle({left:`${e.unref(l)}px`,top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:b,onClick:e.withModifiers(C=>c(g),["stop"])},e.toDisplayString(e.toValue(g.label)),9,jJe))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),sN=Ar(UJe,[["__scopeId","data-v-aba5fec1"]]);function KJe(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=ku(n),{height:i}=ku(r,{height:0,width:0}),{height:s}=ku(o,{height:0,width:0}),u=e.computed(()=>({height:l.value>0?`${l.value-i.value-s.value}px`:"0px"}));function c(f,p){a.value[p]=f}function d(){t.value=!0,e.nextTick(()=>{t.value=!1})}return e.provide("formSearchApi",{onHeightChange:d}),{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:u,isOverHide:t,onReady:c}}function GJe(t,n,r,o){var f,p;const a=JSON.parse(JSON.stringify(((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||{}));e.computed(()=>n.value[r.value]);const l={add:s,reset:u,search:c,export:d},i=e.computed(()=>{var v;return((v=o.data)==null?void 0:v.btns.map(m=>(o.isConfig||(m.data.fnName=l[m.data.key]||""),m)))||[]});function s(){}function u(){var v,m,g;Ge.isEmpty((m=(v=o.data)==null?void 0:v.form)==null?void 0:m.formData)||((g=t.value.getComponents())==null||g.forEach(b=>{var C;typeof((C=e.toValue(b))==null?void 0:C.clearData)=="function"&&e.toValue(b).clearData()}),Ge.isEmpty(a)?Object.keys(o.data.form.formData).forEach(b=>{wI.test(b)||(o.data.form.formData[b]="")}):o.data.form.formData=a),c()}async function c(){const v=o.data.tables.find(m=>m.id===r.value);v.baseData.table_page_data.currentPage=1,v.tableData=await s1(v.baseData,o.data.form.formData)}function d(){}return{btns:i}}const YJe=t=>(e.pushScopeId("data-v-fbb5873b"),t=t(),e.popScopeId(),t),XJe={class:"sort-form-wraper"},ZJe={class:"sort-form-wraper__content"},JJe={class:"content__wrap"},QJe=YJe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),eQe={class:"sort-target drag li"},tQe={class:"li name"},nQe={class:"li"},rQe={class:"li"},oQe={class:"footer"},aQe=e.defineComponent({name:"sortColumn"}),lQe=e.defineComponent({...aQe,props:{id:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o(n.id);function o(l){return To.get(l).then(i=>{var s;r.value=((s=i.form)==null?void 0:s.formConfig)||[]})}function a(){To.get(n.id).then(l=>{l.form.formConfig=JSON.parse(JSON.stringify([...r.value])),To.set(n.id,l).then(()=>{n.close(l)})})}return(l,i)=>{const s=e.resolveComponent("el-icon"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-switch"),d=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",XJe,[e.createElementVNode("div",ZJe,[e.createElementVNode("div",JJe,[QJe,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=f=>r.value=f),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"sort-target__wraper"},[e.createElementVNode("span",eQe,[e.createVNode(s,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gv))]),_:1})]),e.createElementVNode("span",tQe,[e.createVNode(u,{modelValue:f.data.baseData.prop,"onUpdate:modelValue":v=>f.data.baseData.prop=v},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",nQe,[e.createVNode(c,{modelValue:f.data.baseData.isShow,"onUpdate:modelValue":v=>f.data.baseData.isShow=v},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",rQe,e.toDisplayString(p+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",oQe,[e.createVNode(d,{size:"small",onClick:i[1]||(i[1]=f=>l.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),iQe=Ar(lQe,[["__scopeId","data-v-fbb5873b"]]);function sQe(t){return new Promise(n=>{a1(iQe,{id:t},{title:"高级设置",showFooter:!1,success({type:r}){n(r)}})})}function uQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=e.ref(!1),i=async()=>{l.value&&await To.get(o.data.config_unique_id).then(async d=>{d.form.formConfig=JSON.parse(JSON.stringify(o.data.form.formConfig)),await To.set(o.data.config_unique_id,d)}),l.value=!l.value},s=()=>{sQe(o.data.config_unique_id).then(async d=>{const{formConfig:f}=await _C(d);o.data.form.formConfig=f})},u=async()=>{const d=await To.get(`${o.data.config_unique_id}_origin`),f=await To.get(`${o.data.config_unique_id}`);f.form=d.form,To.set(d.config_unique_id,f).then(async()=>{const{formConfig:p}=await _C(d);o.data.form.formConfig=p})},c=[{label:"高级设置",value:"222",click:s},{label:e.computed(()=>l.value?"完成排序":"排序设置"),value:"111",click:i},{label:"重置设置",value:"333",click:u}];return _6(t,()=>{setTimeout(()=>{var d;(d=Ge.get(e.toValue(t),"componentRef.1"))==null||d.focus()},1e3)}),Ec("ArrowLeft",d=>{var g,b;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(g=e.toValue(t))==null?void 0:g.getComponents();let v=p.findIndex(C=>(C!=null&&C.activeElement&&(C=C.activeElement()),C==f)),m=v<0?-1:v;m--,m<0&&(m=p.length-1),(b=Ge.get(p,m))==null||b.focus()}),Ec("ArrowRight",d=>{var b,C;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(b=e.toValue(t))==null?void 0:b.getComponents(),v=p.length-1;let m=p.findIndex(w=>(w!=null&&w.activeElement&&(w=w.activeElement()),w==f)),g=m<0?-1:m;g++,g>v&&(g=0),(C=Ge.get(p,g))==null||C.focus()}),Ec("ArrowDown",d=>{var g,b,C;if(d.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;$r.rowIndex=0;const p=(g=e.toValue(a))==null?void 0:g.getData($r.rowIndex),{visibleColumn:v}=e.toValue(a).getTableColumn();$r.columnIndex=v.filter(w=>w.type).length;const m=v[$r.columnIndex].field;(b=e.toValue(a))==null||b.setCurrentRow(p),(C=e.toValue(a))==null||C.setEditRow(p,m)}),{isShowDrag:l,menuForm:c}}const cQe=e.defineComponent({name:"bcFormTable"}),dQe=e.defineComponent({...cQe,props:{hideBtn:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},data:{type:Object},isConfig:{type:Boolean,default:!1}},emits:["ready","btnClick"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(""),l=e.computed({get(){return a.value===""?Ge.get(r,"data.tables.0.id",""):a.value},set(y){a.value=y}}),{wrapRef:i,btnRef:s,formRef:u,tableApi:c,style:d,isOverHide:f,onReady:p}=KJe(),{menuForm:v,isShowDrag:m}=uQe(u,c,l,r),{menuTable:g,onPageChange:b}=$Je(u,c,l,r),{btns:C}=GJe(u,c,l,r);function w(y){o("btnClick",y)}return _6(()=>{var y;return(y=r.data)==null?void 0:y.config_name},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(y,x)=>{var k,S,B;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:i,class:e.normalizeClass(["bc-form-table__wrapper",[e.unref(f)?"overflow-auto":"overflow-hide"]])},[!t.hideBtn&&e.unref(C).length?(e.openBlock(),e.createBlock(e.unref(pZe),{key:0,ref_key:"btnRef",ref:s,isConfig:t.isConfig,btns:e.unref(C),onBtnClick:w},e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ge).isEmpty((k=t.data)==null?void 0:k.form)?(e.openBlock(),e.createBlock(e.unref(sN),{key:1,menu:e.unref(v)},{default:e.withCtx(()=>[e.unref(m)?(e.openBlock(),e.createBlock(e.unref(hJe),e.mergeProps({key:1,ref_key:"formRef",ref:u,formConfig:t.data.form.formConfig,"onUpdate:formConfig":x[0]||(x[0]=E=>t.data.form.formConfig=E)},e.unref(Ge).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(_Ze),e.mergeProps({key:0,ref_key:"formRef",ref:u},t.data.form),e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ge).isEmpty((S=t.data)==null?void 0:S.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(sN),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(HJe),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":x[1]||(x[1]=E=>l.value=E),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,E=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(IJe),e.mergeProps(E,{key:E.id,"unique-id":t.data.config_unique_id,class:"h-full",onReady:D=>e.unref(p)(D,E.id),onPageChange:e.unref(b)}),e.createSlots({_:2},[e.renderList(y.$slots,(D,N)=>({name:N,fn:e.withCtx(V=>[e.renderSlot(y.$slots,N,e.normalizeProps(e.guardReactiveProps(V||{})),void 0,!0)])}))]),1040,["unique-id","onReady","onPageChange"])),[[e.vShow,l.value===E.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ge).isEmpty((B=t.data)==null?void 0:B.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(y.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)}}}),fQe=Ar(dQe,[["__scopeId","data-v-c9ae6406"]]),pQe=e.defineComponent({name:"BcSelect"}),vQe=e.defineComponent({...pQe,props:{url:{},proxy:{},params:{},method:{},options:{},groupAttrs:{},optionAttrs:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.options)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.options)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Fn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function s(){o.value.getInstance().focus()}function u(){o.value.getInstance().blur()}function c(){return o.value.getInstance().inputRef}return n({focus:s,blur:u,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-option"),v=e.resolveComponent("hs-option-group"),m=e.resolveComponent("hs-select");return e.openBlock(),e.createBlock(m,e.mergeProps({ref_key:"selectRef",ref:o},d.$attrs),{default:e.withCtx(()=>[d.groupAttrs.isGroupEnabled?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(v,{key:g.label,label:g.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,b=>(e.openBlock(),e.createBlock(p,{key:b.value,value:b[d.optionAttrs.value],label:b[d.optionAttrs.label]},null,8,["value","label"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(p,{disabled:d.optionAttrs.disabled,key:g.value,value:g[d.optionAttrs.value],label:g[d.optionAttrs.label]},null,8,["disabled","value","label"]))),128))]),_:1},16)}}}),mQe=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),hQe={class:"text-[#606266] truncate"},gQe={key:0},bQe=mQe(()=>e.createElementVNode("div",null,null,-1)),yQe=e.defineComponent({__name:"bcFormConfig",props:{parentConfig:{type:Object,default:()=>({labelWidth:150,xs:24,sm:24,md:12,lg:12,xl:8,style:"",minWidth:350,showColon:!1})},data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},rules:{type:Object,default:()=>{}},watchConfig:{type:Boolean,default:!0}},emits:["change"],setup(t,{expose:n,emit:r}){const o=t;let a=e.ref(o.data),l=e.ref(o.config);e.watch(()=>o.data,d=>{a.value=d},{deep:!0}),e.watch(()=>o.config,d=>{o.watchConfig&&(l.value=d)},{deep:!0});const i=e.ref(),s=()=>new Promise(d=>{if(!i.value){d(!1);return}i.value.validate(f=>{d(!!f)})});let u=r;const c=(d,f)=>{let p=f.prop;u("change",d,p,f)};return n({props:o,getSubmitData:s}),(d,f)=>{const p=e.resolveComponent("ele-Warning"),v=e.resolveComponent("el-icon"),m=e.resolveComponent("el-tooltip"),g=e.resolveComponent("hs-form-item"),b=e.resolveComponent("hs-col"),C=e.resolveComponent("hs-row"),w=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,e.mergeProps({ref_key:"formRef",ref:i,"label-width":t.parentConfig.labelWidth,inline:t.parentConfig.inline||!1,"label-position":"right","label-suffix":":","hide-required-asterisk":!1,"require-asterisk-position":"right","show-message":"","inline-message":"","status-icon":"",disabled:!1},d.$attrs,{"scroll-to-error":"",rules:t.rules,model:e.unref(a),style:`min-width: ${t.parentConfig.minWidth}px`}),{default:e.withCtx(()=>[e.createVNode(C,{gutter:0,justify:"start",align:"middle",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(y,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.show!==!1?(e.openBlock(),e.createBlock(b,{key:x,span:y.span||t.parentConfig.span,xs:y.xs||t.parentConfig.xs,sm:y.sm||t.parentConfig.sm,md:y.md||t.parentConfig.md,lg:y.lg||t.parentConfig.lg,xl:y.xl||t.parentConfig.xl,style:e.normalizeStyle(t.parentConfig.style)},{default:e.withCtx(()=>[y.slot?e.renderSlot(d.$slots,y.slot,e.normalizeProps(e.mergeProps({key:0},y)),void 0,!0):(e.openBlock(),e.createBlock(g,{key:1,label:y.label,prop:y.prop,required:y.required},{label:e.withCtx(()=>[e.createElementVNode("span",hQe,[e.createTextVNode(" "+e.toDisplayString(y.label)+" ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",gQe,": ")):e.createCommentVNode("",!0)]),e.createVNode(m,{class:"box-item",effect:"dark",content:y.tooltip||y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[y.slotValue?e.renderSlot(d.$slots,y.slotValue,e.normalizeProps(e.mergeProps({key:0},y)),void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.el),e.mergeProps({key:1,modelValue:e.unref(a)[y.prop],"onUpdate:modelValue":k=>e.unref(a)[y.prop]=k,multiple:y.multiple,size:y.size,type:y.type},y.attr,{disabled:y.disabled,border:"",clearable:y.clearable!=!1,onChange:k=>c(k,y)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.op||[],(k,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.cel),{key:S,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue","multiple","size","type","disabled","clearable","onChange"]))]),_:2},1032,["label","prop","required"]))]),_:2},1032,["span","xs","sm","md","lg","xl","style"])):e.createCommentVNode("",!0)],64))),256)),bQe]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),_Qe=Ar(yQe,[["__scopeId","data-v-db063ea8"]]),CQe=e.defineComponent({name:"bcTreeSelect"}),xQe=e.defineComponent({...CQe,props:{url:{},proxy:{},params:{},method:{},data:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.data)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.data)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Fn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function s(){o.value.focus()}function u(){o.value.blur()}function c(){return o.value.activeElement()}return n({focus:s,blur:u,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-tree-select");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"treeRef",ref:o,class:"bc-tree-select"},d.$attrs,{data:l.value}),null,16,["data"])}}}),wQe=[{prop:"attrs",label:"inputAttrs",tooltip:"inputAttrs",type:"object",el:"title",children:[{prop:"type",label:"input类型",tooltip:"input类型",type:"string 等原生 input 类型",el:"hs-select",op:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}],cel:"hs-option",required:!0,clearable:!1,rules:[{required:!0,message:"请选择type",trigger:"blur"}]},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"placeholder",label:"占位文本",tooltip:"输入框占位文本",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸,只在 type 不为 'textarea' 时有效",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮,只有当 type 不是 textarea时生效",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"maxlength",label:"maxlength",tooltip:"同原生 maxlength 属性",type:"string / number",el:"hs-input"},{prop:"minlength",label:"minlength",tooltip:"原生属性,最小输入长度",type:"string / number",el:"hs-input"},{prop:"show-word-limit",label:"统计字数",tooltip:"是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效",type:"boolean",el:"hs-switch"},{prop:"formatter",label:"输入值格式",tooltip:'指定输入值的格式。(只有当 type 是"text"时才能工作)',type:"Function",el:"hs-input"},{prop:"parser",label:"格式化器",tooltip:'指定从格式化器输入中提取的值。(仅当 type 是"text"时才起作用)',type:"Function",el:"hs-input"},{prop:"show-password",label:"密码图标",tooltip:"是否显示切换密码图标",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标",type:"string / Component",el:"hs-input"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标",type:"string / Component",el:"hs-input"},{prop:"rows",label:"输入框行数",tooltip:"输入框行数,仅 type 为 'textarea' 时有效",type:"number",el:"hs-input-number"},{prop:"autosize",label:"textarea 高度",tooltip:"textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }",type:"boolean / object",el:"hs-switch"},{prop:"autocomplete",label:"autocomplete",tooltip:"原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"name",label:"input name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"max",label:"max",tooltip:"原生 max 属性,设置最大值",type:"—",el:"hs-input"},{prop:"min",label:"min",tooltip:"原生属性,设置最小值",type:"—",el:"hs-input"},{prop:"step",label:"step",tooltip:"原生属性,设置输入字段的合法数字间隔",type:"—",el:"hs-input"},{prop:"resize",label:"resize",tooltip:"控制是否能被用户缩放",type:"enum",el:"hs-select",op:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}],cel:"hs-option"},{prop:"autofocus",label:"autofocus",tooltip:"原生属性,自动获取焦点",type:"boolean",el:"hs-switch"},{prop:"form",label:"form",tooltip:"原生属性",type:"string",el:"hs-input"},{prop:"label a11y",label:"label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"input-style",label:"input-style",tooltip:"input 元素或 textarea 元素的 style",type:"string / object",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],uN=[{prop:"blur",label:"聚焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"focus",label:"失焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"change",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"clear",label:"清空时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"input",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"}],c1={attrs:{size:"default",type:"text",clearable:!1,"show-password":!1,disabled:!1,autosize:!1,autocomplete:"off",autofocus:!1,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}};let kQe={size:"default",rules:"",inline:!0,labelPosition:"left",labelWidth:"80",labelSuffix:"",hideRequiredAsterisk:!1,requireAsteriskPosition:"left",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,scrollToError:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,submitUrl:"",submitSuccessMsg:""},EQe=[{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"inline",label:"行内表单模式",el:"hs-switch"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"inlineMessage",label:"是否以行内形式展示校验信息",tooltip:"是否以行内形式展示校验信息",el:"hs-switch"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"栅格间隔",prop:"gutter",type:"number",el:"hs-input-number"},{label:"盒子布局下的水平排列方式",prop:"justify",el:"hs-select",tooltip:"flex 布局下的水平排列方式",op:[{label:"从起始方向排列",value:"start"},{label:"从末尾方向排列",value:"end"},{label:"居中",value:"center"},{label:"两端对齐均匀分布",value:"space-between"},{label:"两端是中间间隔的一半均匀分布",value:"space-around"},{label:"间隔相等均匀分布",value:"space-evenly"}],cel:"hs-option"},{label:"盒子布局下的垂直排列方式",prop:"align",el:"hs-select",tooltip:"flex 布局下的垂直排列方式",op:[{label:"自上而下",value:"top"},{label:"居中",value:"middle"},{label:"自下而上",value:"bottom"}],cel:"hs-option"},{label:"自定义元素标签",prop:"tag",el:"hs-input"},{label:"提交表单的请求Url",prop:"submitUrl",el:"hs-input"},{label:"提交请求方式",prop:"submitUrlMethod",el:"hs-select",cel:"hs-option",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}]},{label:"表单提交成功的提示信息",prop:"submitSuccessMsg",el:"hs-input"}];const UI=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),x4={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","hs-tree-select":"hs-config-tree-select"},SQe={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let KI=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:c1}}),BQe={baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"label",label:"参数名称",el:"hs-input"},{prop:"prop",label:"查询参数",slotValue:"prop",el:"hs-input"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:UI.value},{prop:"label-width",label:"标签宽度",el:"hs-input"},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"groupMark",label:"分组标识",el:"hs-input",tooltip:"如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"},{prop:"positionInGroup",label:"组字段位置",tooltip:"字段在分组中是开始位置 还是 结束为止",el:"hs-select",cel:"hs-option",show:!0,op:[{label:"开始",value:"begin"},{label:"结束",value:"end"}]}],rules:SQe},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},n2=e.ref({id:"",data:{baseData:{},elData:{}}}),gl=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!0,subTitle:"表单配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20}});const GI={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},NQe=(t,n)=>Object.assign(t,{title:n}),TQe=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=NQe(t,"后台api获取接口"),Fn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function YI(){return{getApiDocs:TQe}}const DQe=(t,n)=>Object.assign(t,{title:n}),VQe=(t={})=>(t=DQe(t,"获取所有系统信息列表"),Fn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function XI(){return{getAllSystemInfo:VQe}}const ul=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),$Qe=(t={})=>(t=ul(t,"保存新表格字段设置"),Fn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),OQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),AQe=(t={})=>(t=ul(t,"查询新表格字段配置列表"),Fn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),MQe=(t={})=>(t=ul(t,"删除新表格字段配置"),Fn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),RQe=(t={})=>(t=ul(t,"保存新表格字段设置"),Fn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),IQe=(t={})=>(t=ul(t,"保存新表单字段设置"),Fn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),PQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),FQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),zQe=(t={})=>(t=ul(t,"查询字段池匹配字段"),Fn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),LQe=(t={})=>(t=ul(t,"根据表名和系统名称查询字段配置"),Fn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),HQe=(t={})=>(t=ul(t,"保存表格字段池在配置页面使用"),Fn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),WQe=(t={})=>(t=ul(t,"根据字段代码集合获取字段池信息"),Fn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),jQe=(t={})=>(t=ul(t,"批量保存表格字段池在配置页面使用"),Fn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t}));function Zf(){return{postAddField:$Qe,getFieldByMenu:OQe,getFieldListPage:AQe,postDelFieldById:MQe,postSaveField4Table:RQe,postSaveField4Form:IQe,getTableByMenu:PQe,getFormByMenu:FQe,getFieldPoolList:zQe,getFieldByTable:LQe,postSaveFieldPool4Config:HQe,getPoolByFieldMap:WQe,postSaveFieldPoolBatch4Config:jQe}}const Jf=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),qQe=(t={})=>(t=Jf(t,"获取按钮配置信息列表"),Fn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),UQe=(t={})=>(t=Jf(t,"保存按钮配置信息"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),KQe=(t={})=>(t=Jf(t,"保存按钮配置在配置页面使用"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),GQe=(t={})=>(t=Jf(t,"批量按钮配置在配置页面使用"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),YQe=(t={})=>(t=Jf(t,"删除"),Fn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t})),XQe=(t={})=>(t=Jf(t,"根据字段代码集合获取字段池信息"),Fn({url:"/scmp-web/pri/btn_config/get_btn_config_by_key_map",method:"post",data:t}));function d1(){return{getBtnConfigPageList:qQe,postSaveBtnConfig:UQe,postSaveBtnConfig4Config:KQe,postSaveBtnConfigBatch4Config:GQe,postDeleteBtnConfig:YQe,getBtnConfigByKeyMap:XQe}}const ZI=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),ZQe=(t={})=>(t=ZI(t,"删除"),Fn({url:"/qwp-web/pri/file/deleteFile",method:"post",data:t})),JQe=(t={})=>(t=ZI(t,"无附件删除"),Fn({url:"/qwp-web/pri/file/del_file_no_attch",method:"post",data:t}));function JI(){return{postDeleteFile:ZQe,postDelFileNoAttch:JQe}}const QQe=YI(),eet=Zf();function tet(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ge.cloneDeep(kQe);n.value=Ge.assign(n.value,{form:{id:new Date().getTime().toString(),baseData:i,formData:{},formConfig:[]}})},a=(i,s,u,c)=>{let d=i.map(f=>f[u]);if(r.value&&d.length<=0)return jn.warning("接口参数为空");eet.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:s&&s.project_code}).then(f=>{i.forEach(p=>{var m,g,b,C;let v=(g=(m=n.value)==null?void 0:m.form)==null?void 0:g.formConfig.map(w=>w.data.baseData.prop);if(!Ge.includes(v,p[u])&&!GI[p[u]]){let w=Ge.cloneDeep(KI.value);if(w.id=p[u]+new Date().getTime().toString(),w.data.baseData.label=p[c]||"参数名称",w.data.baseData.prop=p[u],w.data.baseData.el="hs-input",w.data.elData=Ge.cloneDeep(c1),console.log("res.data[param[key]]",f.data[p[u]]),f.code==1&&f.data&&f.data[p[u]]){let y=JSON.parse(f.data[p[u]].json_data);w.data=Ge.assign(w.data,y,{field_id:f.data[p[u]].id})}(C=(b=n.value)==null?void 0:b.form)==null||C.formConfig.push(w)}})})};return{parseForm:async()=>{var i,s;if(t.value){let u=Co.get("CURRENT_SYSTEM");if(!r.value){let p=JSON.parse(t.value);(i=n.value)!=null&&i.form||await o(),console.log("parseApi.value",p),a(p,u,"prop","label");return}let c=await QQe.getApiDocs({proxy:u.project_url}),d=(Ge.keys(c.paths)||[]).filter(p=>p==t.value),f=c.paths&&c.paths[d[0]]||void 0;if(f){let p=Object.keys(f)[0],m=(p&&f[p]||{}).parameters||[];(s=n.value)!=null&&s.form||await o(),a(m,u,"name","description")}else jn.warning("请检查url是否正确")}else o()},parseUrl:r}}const net={class:"flex flex-row"},ret=e.defineComponent({__name:"hsFormParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.useModel(t,"modelValue"),r=e.ref("");const{parseForm:o,parseUrl:a}=tet(r,n);return(l,i)=>{const s=e.resolveComponent("hs-switch"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析url:"),e.createVNode(s,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",net,[e.createVNode(u,{class:"basis-1/4 mr-2",modelValue:e.unref(r),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(r)?r.value=d:r=d),placeholder:"请输入解析接口"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}});function oet(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(n2.value):i;t("chose",s)};return{choseTagItem:o,appendField:()=>{var u,c,d,f,p;let i=Ge.cloneDeep(KI.value);i.id=new Date().getTime().toString(),(c=(u=r.value)==null?void 0:u.form)==null||c.formConfig.push(i);let s=((p=(d=r.value)==null?void 0:d.form)==null?void 0:p.formConfig[((f=r.value)==null?void 0:f.form.formConfig.length)-1])||Ge.cloneDeep(n2.value);o(s)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.baseData.label}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var s,u,c,d;(u=(s=r.value)==null?void 0:s.form)==null||delete u.formData[i.data.baseData.prop],Ge.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const aet=["onClick"],iet=["onClick"],set={class:"p-2"},uet=e.defineComponent({__name:"hsFormConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=oet(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.form.formConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.form.formConfig=f),animation:150},{default:e.withCtx(()=>{var f,p;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((p=(f=a.value)==null?void 0:f.form)==null?void 0:p.formConfig,v=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:v.id,onClick:m=>e.unref(u)(v)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==v.id?"bg-blue-200":""])},e.toDisplayString(v.data&&v.data.baseData.label),3),t.current.id==v.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(m=>e.unref(s)(v),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,iet)):e.createCommentVNode("",!0)],8,aet))),128)),e.createElementVNode("div",set,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...v)=>e.unref(i)&&e.unref(i)(...v)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),cet=Ar(uet,[["__scopeId","data-v-2a9416b3"]]);function det(t){return{toggleExpand:()=>{t.value=!t.value}}}const fet={key:0},vo=e.defineComponent({__name:"hsExpand",props:e.mergeModels({expandConfig:{type:Object,default:()=>({iconSize:18,subTitle:"",class:"",rightSlot:""})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{toggleExpand:r}=det(n);return(o,a)=>{const l=e.resolveComponent("svgIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex align-center justify-between cursor-pointer hover:bg-red-200",t.expandConfig.class])},[e.createElementVNode("div",{class:"flex align-center flex-1",onClick:a[0]||(a[0]=(...i)=>e.unref(r)&&e.unref(r)(...i))},[e.createVNode(l,{class:"pt-1",name:n.value?"ele-CaretBottom":"ele-CaretRight",size:t.expandConfig.iconSize||18},null,8,["name","size"]),e.createElementVNode("div",null,e.toDisplayString(t.expandConfig.subTitle),1)]),t.expandConfig.rightSlot?(e.openBlock(),e.createElementBlock("div",fet,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),pet=Zf();function vet(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ge.cloneDeep(BQe)),i=e.ref("hs-config-input");e.watch(()=>t.current,v=>{if(v&&v.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=v,o.value=Ge.cloneDeep(v),a.value=t.data),v&&v.id){l.value.elConfig.visible=!1;let m=o.value.data.baseData.el;i.value=x4[m]}},{deep:!0,immediate:!0}),e.watch(()=>o.value.data.baseData,v=>{v&&(l.value.baseConfig.list=l.value.baseConfig.list.map(m=>(m.prop=="positionInGroup"&&(m.show=!!o.value.data.baseData.groupMark,m.show||(o.value.data.baseData.positionInGroup="")),m)))},{deep:!0,immediate:!0});let s=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"2",field_code:"",project_code:""},qry_key:"field_code"});e.onMounted(()=>{let v=Co.get("CURRENT_SYSTEM"),m=s.value.params;m.project_code=v.project_code||"",s.value=Ge.assign(s.value,{params:m})});const u=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return{parentConfig:u,visible:c,formItemConfig:o,elComName:i,tableConfig:l,requestData:s,onChange:function(v,m){if(m!="el")return;l.value.elConfig.visible=!1,o.value.data.elData={};let g=o.value.data.baseData.el;i.value=x4[g],l.value.elConfig.visible=!0},saveData:async function(){var v,m,g;try{if(!await n.value.getSubmitData())return;let C=((v=r.value)==null?void 0:v.data.baseData.prop)||"",w=o.value.data.baseData.prop,y=((g=(m=o.value.data.elData)==null?void 0:m.attrs)==null?void 0:g.defaultValue)||"";if(Ge.has(a.value,w)&&w!=C)return jn.warning("查询参数重复,请修改");if(Ge.has(a.value,C)&&C!=w&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[w]:y}),r.value=Object.assign(r.value||{},Ge.cloneDeep(o.value)),o.value.data.field_id)return;let x=Co.get("CURRENT_SYSTEM"),k={field_code:o.value.data.baseData.prop,field_name:o.value.data.baseData.label,field_type:"2",json_data:JSON.stringify(o.value.data),project_code:x.project_code};pet.postSaveFieldPool4Config(k)}catch(b){console.log("er",b)}},onChangeItem:v=>{console.log("JSON.parse(item.json_data)",JSON.parse(v.json_data)),l.value.elConfig.visible=!1,o.value.data=Ge.assign(o.value.data,JSON.parse(v.json_data),{field_id:v.id});let m=o.value.data.baseData.el;i.value=x4[m]}}}const met={class:"bg-blue-200 h-full flex flex-col"},het={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},get={key:0},bet={class:"text-center grow-0"},yet=e.defineComponent({__name:"hsAttrForm",props:{current:{type:Object,default(){return{}}},data:{type:Object,default(){return{}}}},setup(t){const n=t,r=e.ref(),{parentConfig:o,visible:a,formItemConfig:l,elComName:i,tableConfig:s,requestData:u,onChange:c,saveData:d,onChangeItem:f}=vet(n,r);return(p,v)=>{var b,C,w,y,x;const m=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",met,[e.createElementVNode("div",het,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(a),"onUpdate:modelValue":v[0]||(v[0]=k=>e.isRef(a)?a.value=k:null),expandConfig:{subTitle:"表单项代码"}},null,8,["modelValue"])),e.unref(a)?(e.openBlock(),e.createElementBlock("div",get,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(s).baseConfig.visible,"onUpdate:modelValue":v[1]||(v[1]=k=>e.unref(s).baseConfig.visible=k),expandConfig:e.unref(s).baseConfig.title},null,8,["modelValue","expandConfig"])),e.createTextVNode(" "+e.toDisplayString((b=e.unref(l))==null?void 0:b.data.baseData)+" ",1),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:r,parentConfig:e.unref(o),data:(C=e.unref(l))==null?void 0:C.data.baseData,config:e.unref(s).baseConfig.list,rules:e.unref(s).baseConfig.rules,onChange:e.unref(c)},{prop:e.withCtx(()=>[e.createVNode(m,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"form",modelValue:e.unref(l).data.baseData.prop,"onUpdate:modelValue":v[2]||(v[2]=k=>e.unref(l).data.baseData.prop=k),onChange:e.unref(f)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(s).baseConfig.visible]]),e.createTextVNode(" "+e.toDisplayString((w=e.unref(l))==null?void 0:w.data.elData)+" ",1),(y=e.unref(l))!=null&&y.data.baseData.el?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(s).elConfig.visible,"onUpdate:modelValue":v[3]||(v[3]=k=>e.unref(s).elConfig.visible=k),expandConfig:e.unref(s).elConfig.title},null,8,["modelValue","expandConfig"])),e.unref(s).elConfig.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{key:0,data:(x=e.unref(l))==null?void 0:x.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",bet,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),_et={class:"mx-auto flex flex-row h-full"},Cet={class:"flex-1 grow overflow-y-auto"},xet={key:0},wet={key:0,class:"flex-none basis-1/4 ml-4"},ket=e.defineComponent({name:"formPanel"}),Eet=e.defineComponent({...ket,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ge.cloneDeep(EQe)),o=Ge.cloneDeep(n2),a=e.ref("");e.watch(()=>n.value,i=>{a.value!=(i==null?void 0:i.config_unique_id)&&(o.value=Ge.cloneDeep(n2),a.value=(i==null?void 0:i.config_unique_id)||"")},{immediate:!0});const l=i=>{o.value=i};return(i,s)=>{var u,c,d,f,p;return e.openBlock(),e.createElementBlock("div",_et,[e.createElementVNode("div",Cet,[e.createVNode(vo,{modelValue:e.unref(gl).code.visible,"onUpdate:modelValue":s[0]||(s[0]=v=>e.unref(gl).code.visible=v),expandConfig:e.unref(gl).code},null,8,["modelValue","expandConfig"]),e.unref(gl).code.visible?(e.openBlock(),e.createElementBlock("div",xet,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(ret,{modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=v=>n.value=v)},null,8,["modelValue"]),(u=n.value)!=null&&u.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(gl).form.visible,"onUpdate:modelValue":s[2]||(s[2]=v=>e.unref(gl).form.visible=v),expandConfig:e.unref(gl).form},null,8,["modelValue","expandConfig"])),e.unref(gl).form.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:n.value.form.baseData,config:e.unref(r)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(gl).formItem.visible,"onUpdate:modelValue":s[3]||(s[3]=v=>e.unref(gl).formItem.visible=v),expandConfig:e.unref(gl).formItem},null,8,["modelValue","expandConfig"])),e.unref(gl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(cet),{key:1,modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=v=>n.value=v),current:e.unref(o),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=(c=n.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",wet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(yet),{current:e.unref(o),data:(p=(f=n.value)==null?void 0:f.form)==null?void 0:p.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),Bet={class:"icon-selector w100 h100"},Net={class:"icon-selector-warp"},Tet={class:"icon-selector-warp-title"},Det=e.defineComponent({name:"iconSelector"}),QI=e.defineComponent({...Det,props:{prepend:{type:String,default:()=>"ele-Pointer"},placeholder:{type:String,default:()=>"请输入内容搜索图标或者选择图标"},size:{type:String,default:()=>"default"},title:{type:String,default:()=>"请选择图标"},disabled:{type:Boolean,default:()=>!1},clearable:{type:Boolean,default:()=>!0},emptyDescription:{type:String,default:()=>"无相关图标"},isShowPrepend:{type:Boolean,default:!0},modelValue:String},emits:["update:modelValue","get","clear"],setup(t,{emit:n}){const r=t,o=n,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./list-e83pM7qp.js"))),l=e.ref(),i=e.reactive({fontIconPrefix:"",fontIconWidth:0,fontIconSearch:"",fontIconPlaceholder:"",fontIconTabActive:"ali",fontIconList:{ali:[],ele:[],awe:[]}}),s=()=>{if(!r.modelValue)return!1;i.fontIconSearch="",i.fontIconPlaceholder=r.modelValue},u=()=>{const y=d();setTimeout(()=>{y.filter(k=>k===i.fontIconSearch).length<=0&&(i.fontIconSearch="")},300)},c=e.computed(()=>{const y=d();if(!i.fontIconSearch)return y;let x=i.fontIconSearch.trim().toLowerCase();return y.filter(k=>{if(k.toLowerCase().indexOf(x)!==-1)return k})}),d=()=>{let y=[];return i.fontIconTabActive==="ali"?y=i.fontIconList.ali:i.fontIconTabActive==="ele"?y=i.fontIconList.ele:i.fontIconTabActive==="awe"&&(y=i.fontIconList.awe),y},f=()=>{if(r.modelValue==="")return i.fontIconPlaceholder=r.placeholder;i.fontIconPlaceholder=r.modelValue,i.fontIconPrefix=r.modelValue},p=()=>{let y="ali";return r.modelValue&&(r.modelValue.indexOf("iconfont")>-1?y="ali":r.modelValue.indexOf("ele-")>-1?y="ele":r.modelValue.indexOf("fa")>-1&&(y="awe"),i.fontIconTabActive=y),y},v=async y=>{if(y==="ali"){if(i.fontIconList.ali.length>0)return;await rg.ali().then(x=>{i.fontIconList.ali=x.map(k=>`iconfont ${k}`)})}else if(y==="ele"){if(i.fontIconList.ele.length>0)return;await rg.ele().then(x=>{i.fontIconList.ele=x})}else if(y==="awe"){if(i.fontIconList.awe.length>0)return;await rg.awe().then(x=>{i.fontIconList.awe=x.map(k=>`fa ${k}`)})}i.fontIconPlaceholder=r.placeholder,f()},m=y=>{v(y.paneName),l.value.focus()},g=y=>{i.fontIconPlaceholder=y,i.fontIconPrefix=y,o("get",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix),l.value.focus()},b=()=>{i.fontIconPrefix="",o("clear",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix)},C=()=>{e.nextTick(()=>{var y;i.fontIconWidth=(y=l.value.$el)==null?void 0:y.offsetWidth})},w=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{v(p()),w(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(y,x)=>{const k=e.resolveComponent("SvgIcon"),S=e.resolveComponent("el-input"),B=e.resolveComponent("el-tab-pane"),E=e.resolveComponent("el-tabs"),D=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Bet,[e.createVNode(S,{modelValue:i.fontIconSearch,"onUpdate:modelValue":x[0]||(x[0]=N=>i.fontIconSearch=N),placeholder:i.fontIconPlaceholder,clearable:t.clearable,disabled:t.disabled,size:t.size,ref_key:"inputWidthRef",ref:l,onClear:b,onFocus:s,onBlur:u},e.createSlots({_:2},[t.isShowPrepend?{name:"prepend",fn:e.withCtx(()=>{var N,V;return[(i.fontIconPrefix===""?((N=t.prepend)==null?void 0:N.indexOf("ele-"))>-1:((V=i.fontIconPrefix)==null?void 0:V.indexOf("ele-"))>-1)?(e.openBlock(),e.createBlock(k,{key:0,name:i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,class:"font14"},null,8,["name"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,"font14"])},null,2))]}),key:"0"}:void 0]),1032,["modelValue","placeholder","clearable","disabled","size"]),e.createVNode(D,{placement:"bottom",width:i.fontIconWidth,transition:"el-zoom-in-top","popper-class":"icon-selector-popper",trigger:"click","virtual-ref":l.value,"virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",Net,[e.createElementVNode("div",Tet,e.toDisplayString(t.title),1),e.createVNode(E,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":x[1]||(x[1]=N=>i.fontIconTabActive=N),onTabClick:m},{default:e.withCtx(()=>[e.createVNode(B,{lazy:"",label:"ali",name:"ali"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(B,{lazy:"",label:"ele",name:"ele"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(B,{lazy:"",label:"awe",name:"awe"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["width","virtual-ref"])])}}});function Vet(t,n){const r=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"});let o=e.ref({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",value_key:"btn_label",params:{btn_name:"",project_code:""},qry_key:"btn_name"});return e.onMounted(()=>{let i=Co.get("CURRENT_SYSTEM"),s=o.value.params;s.project_code=i.project_code||"",o.value=Ge.assign(o.value,{params:s})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ge.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const eP=e.defineComponent({__name:"hsBtnItemConfig",props:e.mergeModels({config:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=e.useModel(t,"modelValue"),o=e.ref(),{parentConfig:a,requestData:l,onChangeItem:i,getSubmitData:s}=Vet(r,o);return n({getSubmitData:s}),(u,c)=>{const d=e.resolveComponent("bc-auto-complete");return e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:o,parentConfig:e.unref(a),data:r.value,config:t.config.list,rules:t.config.rules},{key:e.withCtx(()=>[e.createVNode(d,{url:e.unref(l).url,qry_key:e.unref(l).qry_key,params:e.unref(l).params,type:"btn",value_key:e.unref(l).value_key,modelValue:r.value.key,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value.key=f),onChange:e.unref(i)},null,8,["url","qry_key","params","value_key","modelValue","onChange"])]),btnIcon:e.withCtx(()=>[e.createVNode(QI,{placeholder:"请选择图标",clearable:"",isShowPrepend:!1,modelValue:r.value.btnIcon,"onUpdate:modelValue":c[1]||(c[1]=f=>r.value.btnIcon=f),title:""},null,8,["modelValue"])]),_:1},8,["parentConfig","data","config","rules"])}}});let $et=e.ref({id:"",tableName:"表格配置名称",method:"get",is_slot_loading:!1,is_slot_empty:!1,is_apply_page:!0,isCloseInitData:!1,table_page_data:{loading:!1,currentPage:1,pageSize:10,total:0,pagerCount:7,pageSizes:"string=[10,15,20,50,100]",align:"right",border:!1,background:!1,perfect:!1,autoHidden:!1},dynamicColumn:{isDynamicRequestConfig:!1,requestDynamicUrl:"",requestDynamicParams:"",dynamicMethod:"get",dynamicProxy:""},height:"auto",stripe:!0,border:"none",round:!1,size:"small",loading:!1,align:"left",headerAlign:"left",footerAlign:"left",showHeader:!0,showFooter:!1,columnConfig:{useKey:!1,isCurrent:!1,isHover:!0,resizable:!1,maxFixedSize:4},rowConfig:{useKey:!1,keyField:"_X_ROW_KEY",isCurrent:!0,isHover:!0},resizeConfig:{refreshDelay:250},resizableConfig:{minWidth:"auto"},seqConfig:{},sortConfig:{defaultSort:{},multiple:!1,chronological:!1,remote:!1,showIcon:!0},filterConfig:{remote:!1,filterMethod:"",showIcon:!0},radioConfig:{strict:!0,reserve:!1,highlight:!1},checkboxConfig:{},tooltipConfig:{},expandConfig:{expandAll:!1,accordion:!1,trigger:"default",lazy:!1,reserve:!1,showIcon:!0},treeConfig:{transform:!1,rowField:"id",parentField:"parentId",childrenField:"children",indent:20,showLine:!1,expandAll:!1,accordion:!1,trigger:"default",lazy:!1,hasChildField:"hasChild",reserve:!1,showIcon:!0},editConfig:{trigger:"click",enabled:!0,mode:"cell",showIcon:!0,showStatus:!1,showUpdateStatus:!1,showInsertStatus:!1,showAsterisk:!0,autoClear:!0},validConfig:{autoPos:!0,showMessage:!0},editRules:{},emptyRender:{},loadingConfig:{},customConfig:{storage:{}},scrollX:{},scrollY:{}}),Oet=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",el:"hs-input"},{prop:"requestUrl",label:"请求地址",type:"",el:"hs-input"},{prop:"method",label:"请求方式",type:"",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"系统代理",type:"",el:"hs-input"},{prop:"data",label:"表格数据",tooltip:"表格数据(与 loadData 行为一致,更新数据是不会重置状态)",type:"",el:"hs-input"},{prop:"minHeight",label:"表格最小高度",type:"",el:"hs-input"},{prop:"maxHeight",label:"表格的最大高度",type:"",el:"hs-input"},{prop:"border",label:"是否带有边框",type:"",op:[{label:"默认",value:"default"},{label:"完整边框",value:"full"},{label:"外边框",value:"outer"},{label:"内边框",value:"inner"},{label:"无边框",value:"none"}],el:"hs-select",cel:"hs-option"},{prop:"size",label:"表格的尺寸",type:"",op:[{label:"中等",value:"medium"},{label:"小",value:"small"},{label:"超小",value:"mini"}],el:"hs-select",cel:"hs-option"},{prop:"align",label:"所有的列对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"headerAlign",label:"所有的表头列的对齐方式",tooltip:"所有的表头列的对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"footerAlign",label:"所有的表尾列的对齐方式",type:"",tooltip:"所有的表尾列的对齐方式",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"emptyText",label:"空数据时显示的内容",type:"",el:"hs-input"},{prop:"showOverflow",label:"设置所有内容溢出显示",tooltip:"设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度)",type:"",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeaderOverflow",label:"设置表头内容溢出显示",type:"",tooltip:"设置表头所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showFooterOverflow",label:"设置表尾内容溢出显示",type:"",tooltip:"设置表尾所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeader",label:"是否显示表头",type:"",el:"hs-switch"},{prop:"keepSource",label:"保持原始值的状态",type:"",tooltip:"保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)",el:"hs-switch"},{prop:"loading",label:"表格是否显示加载中",type:"",el:"hs-switch"},{prop:"round",label:"是否为圆角边框",type:"",el:"hs-switch"},{prop:"stripe",label:"是否带有斑马纹",type:"",tooltip:"是否带有斑马纹(需要注意的是,在可编辑表格场景下,临时插入的数据不会有斑马纹样式)",el:"hs-switch"},{prop:"autoResize",label:"监听父元素变化重新计算表格",tooltip:"自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)",type:"",el:"hs-switch"},{prop:"syncResize",label:"随属性的变化重新计算表格",type:"",tooltip:"自动跟随某个属性的变化去重新计算表格,和手动调用 recalculate 方法是一样的效果(对于通过某个属性来控制显示/隐藏切换时可能会用到)",el:"hs-switch"},{prop:"showFooter",label:"是否显示表尾",el:"hs-switch"},{prop:"is_slot_loading",label:"自定义加载中模板",el:"hs-switch"},{prop:"is_slot_empty",label:"自定义空数据时显示模板",el:"hs-switch"},{prop:"rowClassName",label:"给行附加样式类",tooltip:"给行附加 className",type:"textarea",el:"hs-input"},{prop:"cellClassName",label:"给单元格附加样式类",type:"textarea",tooltip:"给单元格附加 className",el:"hs-input"},{prop:"headerRowClassName",label:"给表头的行附加样式类",tooltip:"给表头的行附加 className",type:"textarea",el:"hs-input"},{prop:"headerCellClass-name",label:"给表头的单元格附加样式类",type:"textarea",tooltip:"给表头的单元格附加 className",el:"hs-input"},{prop:"footerRowClassName",label:"给表尾的行附加样式类",tooltip:"给表尾的行附加 className",type:"textarea",el:"hs-input"},{prop:"footerCellClassName",label:"给表尾的单元格附加样式类",type:"textarea",el:"hs-input"},{prop:"footerMethod",label:"表尾的数据获取方法",tooltip:"表尾的数据获取方法,返回一个二维数组",type:"textarea",el:"hs-input"},{prop:"mergeCells",label:"临时合并指定的单元格",tooltip:"临时合并指定的单元格 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"mergeFooterItems",label:"临时合并表尾",tooltip:"临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"params",label:"自定义参数",type:"textarea",el:"hs-input"},{prop:"is_apply_page",label:"是否分页",el:"hs-switch"},{prop:"isCloseInitData",label:"是否关闭初始化数据",tooltip:"是否关闭第一次加载数据",el:"hs-switch"}];const Aet=[{key:"dynamicColumn",visible:!1,title:"动态配置列",dynamicColumn:[{prop:"isDynamicRequestConfig",label:"是否请求动态配置",el:"hs-switch"},{prop:"requestDynamicUrl",label:"请求动态配置地址",el:"hs-input"},{prop:"requestDynamicParams",label:"请求动态配置参数",el:"hs-input"},{prop:"dynamicMethod",label:"请求动态配置方式",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"dynamicProxy",label:"请求动态配置代理",el:"hs-input"}]},{key:"columnConfig",visible:!1,title:"列的默认参数",columnConfig:[{prop:"useKey",label:"是否为每列设置key属性",tooltip:"是否需要为每一列的 VNode 设置 key 属性",type:"",el:"hs-switch"},{prop:"isCurrent",label:"点击列头当前列是否高亮",tooltip:"当鼠标点击列头时,是否要高亮当前列",type:"",el:"hs-switch"},{prop:"isHover",label:"当鼠标移到列头时,是否要高亮当前头",tooltip:"当鼠标移到列头时,是否要高亮当前列头",type:"",el:"hs-switch"},{prop:"resizable",label:"每一列是否启用列宽调整",type:"",tooltip:"每一列是否启用列宽调整",el:"hs-switch"},{prop:"width",label:"每一列的宽度",tooltip:"每一列的宽度",type:"",el:"hs-input"},{prop:"minWidth",label:"每一列的最小宽度",tooltip:"每一列的最小宽度",type:"",el:"hs-input"},{prop:"maxFixedSize",label:"固定列允许设置的最大数量",tooltip:"固定列允许设置的最大数量(如果是分组,则一个分组算一个",type:"number",el:"hs-input-number"},{prop:"header-export-method",label:"每一列的自定义表头单元格数据导出方法",tooltip:"每一列的自定义表头单元格数据导出方法,返回自定义的标题",type:"textarea",el:"hs-input"},{prop:"export-method",label:"每一列的自定义单元格数据导出方法",tooltip:"每一列的自定义单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"},{prop:"footer-export-method",label:"每一列的自定义表尾单元格数据导出方法",tooltip:"每一列的自定义表尾单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"}]},{key:"rowConfig",visible:!1,title:"行配置信息",rowConfig:[{prop:"useKey",label:"是否为每行设置key属性",type:"",tooltip:"是否需要为每一行的 VNode 设置 key 属性",el:"hs-switch"},{prop:"keyField",label:"自定义行主键的字段名",type:"",tooltip:"自定义行数据唯一主键的字段名(默认自动生成)",el:"hs-input"},{prop:"isCurrent",label:"点击行是否要高亮当前行",tooltip:"当鼠标点击行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"isHover",label:"鼠标悬浮行是否高亮显示",tooltip:"当鼠标移到行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"height",label:"每一行的高度",tooltip:"只对 show-overflow 有效,每一行的高度",type:"number",el:"hs-input-number"}]},{key:"resizeConfig",visible:!1,title:"响应式布局配置项",resizeConfig:[{prop:"refreshDelay",label:"刷新延时时长(毫秒)",type:"number",el:"hs-input-number",tooltip:"只对 auto-resize 有效,刷新延时,当父容器发生变化时,至少多少毫秒刷新布局"}]},{key:"resizableConfig",visible:!1,title:"列宽拖动配置项",resizableConfig:[{prop:"minWidth",label:"列宽拖动的最小宽度",type:"",tooltip:"列宽拖动的最小宽度",el:"hs-input"}]},{key:"seqConfig",visible:!1,title:"序号配置项",seqConfig:[{prop:"seqMethod",label:"自定义序号的方法",type:"textarea",el:"hs-input",tooltip:"自定义序号的方法返回处理后的值"}]},{key:"sortConfig",visible:!1,title:"排序配置项",sortConfig:[{prop:"orders",label:"自定义序号的方法",type:"textarea",tooltip:"自定义轮转顺序",el:"hs-input"},{prop:"sortMethod",label:"全局排序方法",type:"textarea",tooltip:"全局排序方法,当触发排序时会调用该函数返回排序后的列表",el:"hs-input"},{prop:"multiple",label:"是否启用多列组合筛选",type:"",tooltip:"是否启用多列组合筛选",el:"hs-switch"},{prop:"chronological",label:"是否按照触发顺序进行排序",type:"",tooltip:"只对 multiple 有效,是否按照先后触发顺序进行排序",el:"hs-switch"},{prop:"remote",label:"所有列是否使用服务端排序",type:"",tooltip:"所有列是否使用服务端排序,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"点击按钮",value:"default"},{label:"点击表头",value:"cell"}]},{prop:"showIcon",label:"是否显示列头排序图标",type:"",tooltip:"是否显示列头排序图标",el:"hs-switch"},{prop:"iconAsc",label:"自定义升序的图标",tooltip:"自定义升序的图标",type:"",el:"hs-input"},{prop:"iconDesc",label:"自定义降序的图标",tooltip:"自定义降序的图标",type:"",el:"hs-input"}],second_config:[{key:"defaultSort",visible:!1,title:"默认排序",defaultSort:[{prop:"field",label:"列字段名",el:"hs-input"},{prop:"order",label:"排序方式",el:"hs-input"}]}]},{key:"filterConfig",visible:!1,title:"筛选配置项",filterConfig:[{prop:"remote",label:"所有列是否使用服务端筛选",type:"",tooltip:"所有列是否使用服务端筛选,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"filterMethod",label:"全局筛选方法",type:"textarea",tooltip:"全局筛选方法,当触发筛选时会调用该函数返回是否有效",el:"hs-input"},{prop:"showIcon",label:"是否显示列头筛选图标",tooltip:"是否显示列头筛选图标",type:"",el:"hs-switch"},{prop:"iconNone",label:"自定义无条件时显示的图标",type:"",tooltip:"自定义无条件时显示的图标",el:"hs-input"},{prop:"iconMatch",label:"自定义带条件时显示的图标",tooltip:"自定义带条件时显示的图标",type:"",el:"hs-input"},{prop:"confirmButtonText",label:"自定义确认按钮文本",tooltip:"自定义确认按钮文本",type:"",el:"hs-input"},{prop:"resetButtonText",label:"自定义重置按钮文本",type:"",el:"hs-input"}]},{key:"radioConfig",visible:!1,title:"单选框配置项",radioConfig:[{prop:"strict",label:"严格模式,选中后不能取消",tooltip:"严格模式,选中后不能取消",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,例如:数据被刷新或者分页之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"labelField",label:"单选框显示的字段名",tooltip:"单选框显示的字段名,可以直接显示在单选框中",type:"",el:"hs-input"},{prop:"checkRowKey",label:"默认选中指定行",tooltip:"默认选中指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",type:"",el:"hs-input"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 radio 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许选中的方法",tooltip:"是否允许选中的方法,该方法的返回值用来决定这一行的 radio 是否可以选中",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮选中行",type:"",el:"hs-switch"}]},{key:"checkboxConfig",visible:!1,title:"复选框配置项",checkboxConfig:[{prop:"labelField",label:"复选框显示的字段名",tooltip:"复选框显示的字段名,可以直接显示在复选框中",type:"",el:"hs-input"},{prop:"checkField",label:"绑定选中属性",tooltip:"绑定选中属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"indeterminateField",label:"绑定半选属性",tooltip:"绑定半选属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"showHeader",label:"是否显示全选按钮",tooltip:"是否显示全选按钮(如果 checkStrictly=true 则默认为 false)",type:"",el:"hs-switch"},{prop:"checkAll",label:"默认勾选所有",tooltip:"默认勾选所有(只会在初始化时被触发一次)",type:"",el:"hs-switch"},{prop:"checkRowKeys",label:"默认勾选指定行",type:"textarea",tooltip:"默认勾选指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"checkStrictly",label:"是否严格的遵循父子不互相关联的做法",type:"",tooltip:"是否严格的遵循父子不互相关联的做法",el:"hs-switch"},{prop:"strict",label:"严格模式",type:"",tooltip:"严格模式,当数据为空或全部禁用时,列头的复选框为禁用状态",el:"hs-switch"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 checkbox 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法的返回值用来决定这一行的 checkbox 是否可以勾选",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮勾选行",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"range",label:"开启复选框范围选择功能",type:"",tooltip:"开启复选框范围选择功能(启用后通过鼠标在复选框的列内滑动选中或取消指定行)",el:"hs-switch"},{prop:"isShiftKey",label:"开启复选框指定行选择功能",tooltip:"开启复选框指定行选择功能(启用后通过鼠标点击和 shift 键选取指定范围的行)",type:"",el:"hs-switch"}]},{key:"tooltipConfig",visible:!1,title:"tooltip 配置项",tooltipConfig:[{prop:"showAll",label:"所有单元格开启工具提示",tooltip:"所有单元格开启工具提示",type:"",el:"hs-switch"},{prop:"theme",label:"主题颜色",tooltip:"tooltip 的主题颜色",type:"",el:"hs-select",cel:"hs-option",op:[{label:"暗黑",value:"dark"},{label:"明亮",value:"light"}]},{prop:"enterable",label:"鼠标是否可进入到工具提示中",tooltip:"鼠标是否可进入到工具提示中",type:"",el:"hs-switch"},{prop:"enterDelay",label:"鼠标移入后延时多少才显示工具提示",tooltip:"鼠标移入后延时多少才显示工具提示",type:"number",el:"hs-input-number"},{prop:"leaveDelay",label:"鼠标移出后延时多少才隐藏工具提示",type:"number",el:"hs-input-number"},{prop:"contentMethod",label:"通过返回值来重写默认的提示内容",type:"textarea",el:"hs-input",tooltip:"该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容"}]},{key:"expandConfig",visible:!1,title:"展开行配置项(不支持虚拟滚动)",expandConfig:[{prop:"labelField",label:"展开列显示的字段名",type:"",tooltip:"展开列显示的字段名,可以直接显示在单元格中",el:"hs-input"},{prop:"expandAll",label:"默认展开所有行",type:"",tooltip:"默认展开所有行(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定行",type:"textarea",tooltip:"默认展开指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"accordion",label:"每次只能展开一行",type:"",el:"hs-switch"},{prop:"height",label:"展开内容的高度",tooltip:"展开内容的高度,默认自适应高度",type:"",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",el:"hs-switch"},{prop:"loadMethod",label:"该方法用于异步加载展开后的内容",type:"textarea",tooltip:"该方法用于异步加载展开后的内容(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"该方法在展开或关闭触发之前调用",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"visibleMethod",label:"是否允许显示展开按钮",tooltip:"该函数的返回值用来决定是否允许显示展开按钮",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"treeConfig",visible:!1,title:"树形结构配置项",treeConfig:[{prop:"transform",label:"自动将列表转为树结构",tooltip:"自动将列表转为树结构(支持虚拟滚动)",type:"",el:"hs-switch"},{prop:"rowField",label:"树节点的字段名",tooltip:"用于 treeConfig.transform,树节点的字段名",type:"",el:"hs-input"},{prop:"parentField",label:"树父节点的字段名",tooltip:"用于 treeConfig.transform,树父节点的字段名",type:"",el:"hs-input"},{prop:"childrenField",label:"树子节点的字段名",type:"",el:"hs-input"},{prop:"indent",label:"树节点的缩进",type:"number",el:"hs-input-number"},{prop:"showLine",label:"树节点的连接线",type:"",tooltip:"树节点的连接线(启用连接线会降低渲染性能)",el:"hs-switch"},{prop:"expandAll",label:"默认展开所有子孙树节点",type:"",tooltip:"默认展开所有子孙树节点(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定树节点",type:"textarea",el:"hs-input",tooltip:"默认展开指定树节点(只会在初始化时被触发一次,需要有 rowConfig.keyField)"},{prop:"accordion",label:"同级节点每次只展开一个",tooltip:"对于同一级的节点,每次只能展开一个",type:"",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",tooltip:"是否使用懒加载(启用后只有指定 hasChild 字段的节点才允许被点击)",el:"hs-switch"},{prop:"hasChildField",label:"标识是否存在子节点",tooltip:"只对 lazy 启用后有效,标识是否存在子节点,从而控制是否允许被点击",type:"",el:"hs-input"},{prop:"loadMethod",label:"该方法用于异步加载子节点",type:"textarea",tooltip:"该方法用于异步加载子节点(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"在展开或关闭触发判断是否继续执行",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"editConfig",visible:!1,title:"可编辑配置项",editConfig:[{prop:"trigger",label:"触发方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"手动触发(用于行编辑模式)",value:"manual"},{label:"点击触发编辑",value:"click"},{label:"双击触发编辑",value:"dblclick"}]},{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"编辑模式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"单元格编辑模式",value:"cell"},{label:"行编辑模式",value:"row"}]},{prop:"showIcon",label:"是否显示列头编辑图标",tooltip:"是否显示列头编辑图标",type:"",el:"hs-switch"},{prop:"showStatus",label:"是否显示单元格新增与修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格新增与修改状态",el:"hs-switch"},{prop:"showUpdateStatus",label:"是否显示单元格修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格修改状态",el:"hs-switch"},{prop:"showInsertStatus",label:"是否显示单元格新增状态",tooltip:"只对 keep-source 开启有效,是否显示单元格新增状态",type:"",el:"hs-switch"},{prop:"showAsterisk",label:"是否显示必填字段的红色星号",tooltip:"是否显示必填字段的红色星号",type:"",el:"hs-switch"},{prop:"autoClear",label:"点空白处是否清除激活状态",type:"",tooltip:"当点击非编辑列之后,是否自动清除单元格的激活状态",el:"hs-switch"},{prop:"beforeEditMethod",label:"该单元格是否允许编辑",tooltip:"该方法的返回值用来决定该单元格是否允许编辑",type:"textarea",el:"hs-input"},{prop:"icon",label:"自定义可编辑列的状态图标",type:"",el:"hs-input"}]},{key:"validConfig",visible:!1,title:"校验配置项",validConfig:[{prop:"autoPos",label:"是否自动定位到校验不通过的单元格",tooltip:"是否自动定位到校验不通过的单元格",type:"",el:"hs-switch"},{prop:"showMessage",label:"是否显示错误显示",type:"",el:"hs-switch"}]},{key:"editRules",visible:!1,title:"校验规则配置项",editRules:[{prop:"required",label:"是否必填",type:"",el:"hs-switch"},{prop:"min",label:"校验值最小长度",tooltip:"校验值最小长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"max",label:"校验值最大长度",tooltip:"校验值最大长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"type",label:"数据校验的类型",type:"",op:[{label:"数值",value:"number"},{label:"字符串",value:"string"},{label:"数组",value:"array"}],el:"hs-select",cel:"hs-option"},{prop:"pattern",label:"正则校验",type:"textarea",el:"hs-input"},{prop:"validator",label:'"自定义校验方法',tooltip:'自定义校验方法返回一个 Error 或者 Promise<new Error("提示消息")>',type:"textarea",el:"hs-input"},{prop:"message",label:"校验提示内容",tooltip:"校验提示内容(支持开启国际化)",type:"",el:"hs-input"}]},{key:"emptyRender",visible:!1,title:"空内容渲染配置项",emptyRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"}]},{key:"loadingConfig",visible:!1,title:"加载中配置项",loadingConfig:[{prop:"icon",label:"显示图标",type:"",el:"hs-input"},{prop:"text",label:"显示文字",type:"",el:"hs-input"}]},{key:"customConfig",visible:!1,title:"个性化信息配置项",customConfig:[{prop:"checkMethod",label:"自定义列是否允许列选中的方法",tooltip:"自定义列是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中",type:"textarea",el:"hs-input"}],second_config:[{key:"storage",visible:!1,title:"是否启用缓存本地保存",storage:[{prop:"visible",label:"启用显示/隐藏列状态缓存",tooltip:"启用显示/隐藏列状态缓存",type:"",el:"hs-switch"},{prop:"resizable",label:"启用列宽状态缓存",type:"",el:"hs-switch"},{prop:"fixed",label:"启用固定列状态缓存",type:"",el:"hs-switch"}]}]},{key:"scrollX",visible:!1,title:"横向虚拟滚动配置",scrollX:[{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"gt",label:"指定大于指定列时自动启动横向虚拟滚动",tooltip:"指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToLeftOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将横向滚动条滚动到左侧",type:"",el:"hs-switch"}]},{key:"scrollY",visible:!1,title:"纵向虚拟滚动配置",scrollY:[{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"滚动模式",type:"",op:[{label:"默认",value:"default"},{label:"无限滚动",value:"wheel"}],el:"hs-select",cel:"hs-option"},{prop:"gt",label:"指定大于指定行时自动启动纵向虚拟滚动",tooltip:"指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToTopOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将纵向滚动条滚动到顶部",type:"",el:"hs-switch"}]}],Met=[{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"中等",value:"medium"},{label:"小号",value:"small"},{label:"迷你",value:"mini"}]},{prop:"loading",label:"是否加载中",el:"hs-switch"},{prop:"layouts",label:"自定义布局",type:"textarea",el:"hs-input"},{prop:"currentPage",label:"当前页",type:"number",el:"hs-input-number"},{prop:"pageSize",label:"每页大小",type:"number",el:"hs-input-number"},{prop:"total",label:"总条数",type:"number",el:"hs-input-number"},{prop:"pagerCount",label:"显示页码按钮的数量",type:"number",el:"hs-input-number"},{prop:"pageSizes",label:"每页大小选项列表",type:"textarea",el:"hs-input"},{prop:"align",label:"对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"border",label:"带边框",el:"hs-switch"},{prop:"background",label:"带背景颜色",el:"hs-switch"},{prop:"perfect",label:"配套的样式",el:"hs-switch"},{prop:"className",label:"给分页附加 className",type:"textarea",el:"hs-input"},{prop:"autoHidden",label:"当只有一页时自动隐藏",el:"hs-switch"},{prop:"iconPrevPage",label:"自定义上一页图标",el:"hs-input"},{prop:"iconJumpPrev",label:"自定义向上跳页图标",el:"hs-input"},{prop:"iconJumpNext",label:"自定义向下跳页图标",el:"hs-input"},{prop:"iconnextPage",label:"自定义下一页图标",el:"hs-input"},{prop:"iconJumpMore",label:"自定义跳页显示图标",el:"hs-input"}],Ret=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),r2={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},Iet=e.ref([{prop:"type",label:"列的类型",tooltip:"列的类型(部分功能需要设置 columnConfig.useKey",type:"",el:"hs-select",cel:"hs-option",op:[{label:"序号",value:"seq"},{label:"复选框",value:"checkbox"},{label:"单选框",value:"radio"},{label:"展开行",value:"expand"},{label:"HTML 标签",value:"html"}]},{prop:"title",label:"列标题",type:"",tooltip:"列标题(支持开启国际化)",el:"hs-input"},{prop:"field",label:"列字段名",slotValue:"field",tooltip:"列字段名(注:属性层级越深,渲染性能就越差,例如:aa.bb.cc.dd.ee)",type:"",el:"hs-input"},{prop:"returnValueType",label:"返回值类型",el:"hs-select",cel:"hs-option",op:[{label:"String",value:"string"},{label:"Number",value:"number"},{label:"String|Number",value:"string|number"},{label:"Boolean",value:"boolean"}]},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"el",label:"插槽模版",tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:UI.value},{prop:"isApply",label:"是否启用",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch"},{prop:"width",label:"列宽度",type:"",tooltip:"列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 % 或者 min-width 布局)",el:"hs-input"},{prop:"minWidth",label:"最小列宽度",type:"",tooltip:"最小列宽度;会自动将剩余空间按比例分配",el:"hs-input"},{prop:"resizable",label:"是否允许调整列宽",type:"",tooltip:"列是否允许拖动列宽调整大小",el:"hs-switch"},{prop:"visible",label:"默认是否显示",type:"",el:"hs-switch"},{prop:"fixed",label:"列固定位置",tooltip:"将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"不固定",value:""},{label:"固定左侧",value:"left"},{label:"固定右侧",value:"right"}]},{prop:"align",label:"列对齐方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"headerAlign",label:"表头列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"footerAlign",label:"表尾列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"showOverflow",label:"当内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showHeaderOverflow",label:"当表头内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showFooterOverflow",label:"当表尾内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"className",label:"给单元格附加 className",type:"textarea",el:"hs-input"},{prop:"headerClassName",label:"给表头的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"footerClassName",label:"给表尾的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"formatter",label:"格式化显示内容",type:"textarea",el:"hs-input"},{prop:"sortable",label:"是否允许列排序",tooltip:"数据排序,是否允许列排序",type:"",el:"hs-switch"},{prop:"sortBy",label:"指定排序字段",tooltip:"数据排序,只对 sortable 有效,指定排序的字段(当值 formatter 格式化后,可以设置该字段,使用值进行排序)",type:"textarea",el:"hs-input"},{prop:"sortType",label:"排序的字段类型",tooltip:"数据排序,排序的字段类型,比如字符串转数值等",type:"",el:"hs-select",cel:"hs-option",op:[{label:"auto",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"filterMultiple",label:"筛选是否允许多选",tooltip:"数据筛选,只对 filters 有效,筛选是否允许多选",type:"",el:"hs-switch"},{prop:"filterMethod",label:"列的筛选方法",tooltip:"数据筛选,只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示",type:"textarea",el:"hs-input"},{prop:"filterResetMethod",label:"自定义筛选重置方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选重置方法",type:"textarea",el:"hs-input"},{prop:"filterRecoverMethod",label:"自定义筛选复原方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选复原方法(使用自定义筛选时可能会用到)",type:"textarea",el:"hs-input"},{prop:"cellType",label:"单元格值类型",tooltip:"只对特定功能有效,单元格值类型(例如:导出数据类型设置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"默认自动转换",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"treeNode",label:"是否指定为树节点",tooltip:"只对 treeConfig 配置时有效,指定为树节点",type:"",el:"hs-switch"},{prop:"params",label:"额外的参数",tooltip:"额外的参数(可以用来存放一些私有参数)",type:"",el:"hs-input"},{prop:"colId",label:"自定义列的唯一主键",tooltip:"自定义列的唯一主键(注:列主键必须确保唯一,操作不正确将导致出现问题)",type:"",el:"hs-input"}]),tP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},Pet=e.ref([{key:"filterRender",visible:!1,title:"筛选渲染器配置项",filterRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"}]},{key:"titlePrefix",visible:!1,title:"标题前缀图标配置项",titlePrefix:[{prop:"content",label:"提示消息",tooltip:"提示消息(支持开启国际化)",el:"hs-input"},{prop:"useHTML",label:"是否显示为HTML标签",tooltip:"是否显示为HTML标签(动态渲染任意 HTML 是非常危险的,很容易导致 XSS 攻击,请确保内容是可信的)",type:"",el:"hs-input"},{prop:"icon",label:"自定义图标",type:"",el:"hs-input"}]},{key:"cellRender",visible:!1,title:"默认的渲染器配置项",cellRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",el:"hs-input"}]},{key:"editRender",visible:!1,title:"可编辑渲染器配置项",editRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",label:"渲染的属性",tooltip:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"",default:"{row,rowIndex,$rowIndex,column,columnIndex,$columnIndex}, ...[自定义的 arguments]",param:"",el:"hs-input"},{prop:"content",label:"渲染组件的内容",tooltip:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"},{prop:"autofocus",label:"指定聚焦的选择器",tooltip:"如果是自定义渲染可以指定聚焦的选择器,例如 .my-input",type:"",el:"hs-input"},{prop:"autoselect",label:"自动选中内容",tooltip:"是否在激活编辑之后自动选中输入框内容",type:"",el:"hs-input"},{prop:"defaultValue",label:"默认值",tooltip:"默认值(插入数据时列的默认值)",type:"",el:"hs-input"},{prop:"immediate",label:"输入值实时更新",tooltip:"输入值实时同步更新(默认情况下单元格编辑的值只会在被触发时同步,如果需要实时同步可以设置为 true)",type:"",el:"hs-input"},{prop:"placeholder",label:"单元格占位符",tooltip:"单元格占位符,但单元格为空值时显示的占位符",type:"",el:"hs-input"}]},{key:"contentRender",visible:!1,title:"内容渲染配置项",contentRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",tooltip:"渲染的属性",label:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"}]}]),Fet=e.ref({key:"filters",visible:!1,title:"配置数据筛选条件",filters:[{prop:"label",label:"显示的值",type:"",el:"hs-input"},{prop:"value",label:"实际的值",type:"",el:"hs-input"},{prop:"checked",label:"默认是否选中",type:"",el:"hs-switch"},{prop:"resetValue",label:"重置时的默认值",type:"textarea",el:"hs-input"},{prop:"data",label:"自定义渲染的数据值(当使用自定义模板时可能会用到)",type:"textarea",el:"hs-input"}]});let zv=e.ref({id:"",sort:0,data:Ret.value,btnData:[]});const zet={list:Iet.value,second_config:Pet.value,filterConfig:Fet.value,rules:{list:tP}};let o2=e.ref({id:"",data:{}}),Let=e.ref({code:{visible:!1,subTitle:"表格配置代码",class:"font-bold my-3",iconSize:20},table:{visible:!1,subTitle:"表格配置",class:"font-bold my-3",iconSize:20},tableItem:{visible:!0,subTitle:"表格元素配置项集合",class:"font-bold my-3",iconSize:20},dynamicTableItem:{visible:!0,subTitle:"动态配置列元素配置项集合",class:"font-bold my-3",iconSize:20}}),Het={baseTableConfig:Oet,baseVisible:!1,pageVisible:!1,tableAttrConfig:Aet,tablePageConfig:Met},xh={id:{isShow:!1,title:"id",returnValueType:"string"}};const Wet={name:"按钮名称",key:"",isApply:!0,isSlot:!1,isShow:!0,size:"default",btnIcon:"",type:"primary",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":"button",dark:!1,tag:"button"},jet={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},nP={title:{subTitle:"按钮配置"},visible:!0,list:[{prop:"name",label:"按钮名称",el:"hs-input",tooltips:"按钮名称"},{prop:"key",label:"按钮key值",el:"hs-input",slotValue:"key",tooltips:"按钮key值"},{prop:"isApply",label:"是否启用",el:"hs-switch",tooltips:"是否启用"},{prop:"isSlot",label:"使用启用插槽",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch",tooltips:"是否显示"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"btnIcon",label:"按钮图标",el:"hs-input",slotValue:"btnIcon"},{prop:"iconPosition",label:"图标位置",el:"hs-select",cel:"hs-option",op:[{label:"左边",value:"left"},{label:"右边",value:"right"}]},{prop:"fnName",label:"方法名称",el:"hs-input",type:"textarea"},{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}]},{prop:"type",label:"类型",el:"hs-select",cel:"hs-option",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{prop:"plain",label:"朴素按钮",el:"hs-switch",tooltips:"是否为朴素按钮"},{prop:"text",label:"文字按钮",el:"hs-switch",tooltips:"是否为文字按钮"},{prop:"bg",label:"文字按钮背景颜色",el:"hs-switch",tooltips:"是否显示文字按钮背景颜色"},{prop:"link",label:"链接按钮",el:"hs-switch",tooltips:"是否为链接按钮"},{prop:"round",label:"圆角按钮",el:"hs-switch",tooltips:"是否为圆角按钮"},{prop:"circle",label:"圆形按钮",el:"hs-switch",tooltips:"是否为圆形按钮"},{prop:"loading",label:"加载状态",el:"hs-switch",tooltips:"是否为加载中状态"},{prop:"loading-icon",label:"加载状态图标",el:"hs-input",tooltips:"自定义加载中状态图标组件"},{prop:"disabled",label:"是否禁用",el:"hs-switch",tooltips:"按钮是否为禁用状态"},{prop:"icon",label:"图标组件",el:"hs-input",tooltips:"图标组件"},{prop:"autofocus",label:"自动聚焦",el:"hs-switch",tooltips:"原生 autofocus 属性"},{prop:"native-type",label:"原生 type 属性",el:"hs-select",cel:"hs-option",op:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}],tooltips:"原生 type 属性"},{prop:"auto-insert-space",label:"中文字符之间插入空格",el:"hs-switch",tooltips:"自动在两个中文字符之间插入空格"},{prop:"color",label:"按钮颜色",el:"hs-input",tooltips:"自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色"},{prop:"dark",label:"dark 模式",el:"hs-switch",tooltips:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色"},{prop:"tag",label:"自定义元素标签",el:"hs-input",tooltips:"自定义元素标签"}],rules:jet},rP={id:"",data:Wet,sort:0},SC={id:"",data:{}},qet=Zf(),Uet=d1();function Ket(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(zet)),a=e.ref(Ge.cloneDeep(t.current)),l=e.ref(Ge.cloneDeep(t.configList).map(b=>b.data.field));const i=()=>{let b=Ge.cloneDeep(tP);return Ge.keys(b).forEach(C=>{let w=b[C].map(y=>(y.required=!a.value.data.type,y));b[C]=w}),b};e.watch(()=>t.current,b=>{b&&b.id!=a.value.id&&(r.value=b,a.value=Ge.cloneDeep(b),l.value=Ge.cloneDeep(t.configList).map(C=>C.data.field),o.value.rules.list=i())},{deep:!0}),e.watch(()=>a.value.data,b=>{b&&(o.value.list=o.value.list.map(C=>(C.prop=="el"&&(C.show=!!a.value.data.isSlot,C.show||(a.value.data.el="")),C)),o.value.rules.list=i())},{deep:!0,immediate:!0});const s=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),u=e.ref(!1),c=async function(){var b;try{if(!await n.value.getSubmitData())return;let w=(b=r.value)==null?void 0:b.data.field,y=a.value.data.field,x=Ge.cloneDeep(l.value),k=x.findIndex(B=>B==w);if(x.splice(k,1),y&&Ge.includes(x,y))return jn.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ge.cloneDeep(a.value));let S=Co.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let B={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:S.project_code};qet.postSaveFieldPool4Config(B)}if(a.value.btnData.length>0){let B=[];if(a.value.btnData.forEach(E=>{E.data.field_id||B.push({btn_name:E.data.key,btn_label:E.data.name,btn_icon:E.data.btnIcon,json_data:JSON.stringify(E.data),project_code:S.project_code})}),B.length==0)return;Uet.postSaveBtnConfigBatch4Config({btnList:B})}}catch(C){console.log("er",C)}},d=()=>{var b,C;(C=(b=a.value)==null?void 0:b.data.filters)==null||C.push({label:"",value:"",checked:!1,resetValue:"",data:""})},f=b=>{let C=a.value.data.filters[b];Yo.confirm(`确认要删除该${C.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(b,1),a.value.filterConfig.splice(b,1),jn.success("删除成功")}).catch(w=>{console.log("err",w)})},p=()=>{let b=Ge.cloneDeep(rP);b.id=new Date().getTime().toString(),a.value.btnData.push(b)},v=b=>{let C=a.value.btnData[b];Yo.confirm(`确认要删除该${C.name?"【"+C.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(b,1),jn.success("删除成功")}).catch(w=>{console.log("err",w)})};let m=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"3",field_code:"",project_code:""},qry_key:"field_code"});return e.onMounted(()=>{let b=Co.get("CURRENT_SYSTEM"),C=m.value.params;C.project_code=b.project_code||"",m.value=Ge.assign(m.value,{params:C})}),{parentConfig:s,visible:u,tableItemConfig:a,tableDataConfig:o,requestData:m,onChangeItem:b=>{a.value.data=Ge.assign(a.value.data,JSON.parse(b.json_data),{field_id:b.id})},saveData:c,addFilterItem:d,deleteFilterConfig:f,addBtnItem:p,deleteBtnItem:v}}const Get={class:"h-full"},Yet={style:{height:"94%"},class:"overflow-y-auto"},Xet=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),Zet=[Xet],Jet=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),Qet=[Jet],ett={class:"text-center",style:{height:"40px"}},ttt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref(),o=e.ref(Ge.cloneDeep(nP));const{parentConfig:a,visible:l,tableItemConfig:i,tableDataConfig:s,requestData:u,onChangeItem:c,addFilterItem:d,saveData:f,deleteFilterConfig:p,addBtnItem:v,deleteBtnItem:m}=Ket(n,r);return(g,b)=>{var x,k,S;const C=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),y=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Get,[e.createElementVNode("div",Yet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(l),"onUpdate:modelValue":b[0]||(b[0]=B=>e.isRef(l)?l.value=B:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(a),data:(x=e.unref(i))==null?void 0:x.data,config:e.unref(s).list,ref_key:"baseTableRef",ref:r,rules:e.unref(s).rules.list||{}},{field:e.withCtx(()=>[e.createVNode(C,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"table",modelValue:e.unref(i).data.field,"onUpdate:modelValue":b[1]||(b[1]=B=>e.unref(i).data.field=B),onChange:e.unref(c)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},8,["parentConfig","data","config","rules"])),[[e.vShow,e.unref(l)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(s))==null?void 0:k.second_config,(B,E)=>{var D;return e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":N=>B.visible=N,expandConfig:{subTitle:B.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),B.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:B[B.key],data:(D=e.unref(i))==null?void 0:D.data[B.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=e.unref(i))==null?void 0:S.data.filters,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":D=>B.visible=D,expandConfig:{subTitle:"筛选配置项"+(B.label?"【"+B.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:D=>e.unref(p)(E),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),B.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:e.unref(s).filterConfig.filters,data:B},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:b[2]||(b[2]=(...B)=>e.unref(d)&&e.unref(d)(...B))},Zet)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).btnData,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":D=>B.visible=D,expandConfig:{subTitle:"按钮配置"+(B.data.name?"【"+B.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:D=>e.unref(m)(E),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(eP),{ref_for:!0,ref:"btnItemRef",modelValue:B.data,"onUpdate:modelValue":D=>B.data=D,config:e.unref(o)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,B.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:b[3]||(b[3]=(...B)=>e.unref(v)&&e.unref(v)(...B))},Qet)])]),e.createElementVNode("div",ett,[e.createVNode(y,{onClick:e.unref(f),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),cN=Zf();function ntt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Co.get("CURRENT_SYSTEM"),s=Ge.cloneDeep(zv.value);s.id=new Date().getTime().toString(),s.data=Ge.assign(s.data,{type:"seq",title:"",minWidth:50,width:50}),Ge.assign(n.value,{baseData:Ge.assign(Ge.cloneDeep($et.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url,dynamicColumn:{isDynamicRequestConfig:!1,dynamicMethod:"get",dynamicProxy:i.project_url}}),tableConfig:[s],dynamicTableConfig:[]})},a=(i,s,u,c)=>{let d=i.map(f=>f[u]);cN.getPoolByFieldMap({fieldCodes:d,field_type:"3",project_code:s&&s.project_code}).then(f=>{i.forEach(p=>{var m,g;let v=(m=n.value)==null?void 0:m.tableConfig.map(b=>b.data.field);if(!Ge.includes(v,p[u])){let b=Ge.cloneDeep(zv.value);if(b.id=p[u]+new Date().getTime().toString(),p[u]&&(b.data.field=p[u],b.data.title=p[c]||"展示列名称"),f.code==1&&f.data&&f.data[p[u]]){let C=JSON.parse(f.data[p[u]].json_data);b.data=Ge.assign(b.data,C,{field_id:f.data[p[u]].id})}if(Ge.keys(xh).find(C=>C==b.data.field)){let C=xh[b.data.field];b.data=Ge.assign(b.data,C)}(g=n.value)==null||g.tableConfig.push(b)}})})};return{parseTable:()=>{var i,s;if(t.value){let u=Co.get("CURRENT_SYSTEM");if(!r.value){let c=JSON.parse(t.value);(i=n.value)!=null&&i.baseData.id||o(),console.log("parseApi.value",c),a(c,u,"id","label");return}cN.getFieldByTable({table_name:t.value,project_code:u&&u.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return jn.warning(c.msg);if(c.data.length>0){(d=n.value)!=null&&d.baseData.id||o(),c.data.forEach(f=>{var v,m;let p=Ge.map((v=n.value)==null?void 0:v.tableConfig,g=>g.data.field);if(!Ge.includes(p,f.column_name)){let g=Ge.cloneDeep(zv.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let b=JSON.parse(f.json_data);g.data=Ge.assign(g.data,b,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ge.keys(xh).find(b=>b==f.column_name)&&(g.data=Ge.assign(g.data,xh[f.column_name])),(m=n.value)==null||m.tableConfig.push(g)}});return}})}(s=n.value)!=null&&s.baseData.id||o()},parseName:r}}const rtt={class:"flex flex-row"},ott=e.defineComponent({__name:"hsTableParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(""),r=e.useModel(t,"modelValue");const{parseTable:o,parseName:a}=ntt(n,r);return e.onMounted(()=>{n.value=""}),(l,i)=>{const s=e.resolveComponent("hs-switch"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析表名:"),e.createVNode(s,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",rtt,[e.createVNode(u,{class:"basis-1/4 mr-2",modelValue:e.unref(n),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(n)?n.value=d:n=d),placeholder:"请输入解析表名"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}}),att=e.defineComponent({__name:"hsRecursionConfig",props:e.mergeModels({config:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");return(r,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config,(a,l)=>(e.openBlock(),e.createElementBlock("div",{key:l},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-4",modelValue:a.visible,"onUpdate:modelValue":i=>a.visible=i,expandConfig:{subTitle:a.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),a.visible&&a.second_config?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.second_config,(i,s)=>(e.openBlock(),e.createElementBlock("div",{key:s},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-8",modelValue:i.visible,"onUpdate:modelValue":u=>i.visible=u,expandConfig:{subTitle:i.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),i.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:e.unref(Ge).get(e.unref(Ge).get(n.value,a.key),i.key),config:i[i.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0),a.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:1,data:e.unref(Ge).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),ltt=e.defineComponent({__name:"hsTableConfig",props:e.mergeModels({config:{type:Object,default:()=>({baseTableConfig:[],baseVisible:!1,tableAttrConfig:[],tablePageConfig:[],pageVisible:!1})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;let r=e.ref();e.watch(()=>n.config,a=>{r.value=a},{deep:!0,immediate:!0});let o=e.useModel(t,"modelValue");return(a,l)=>{var i,s,u,c,d,f,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-4",modelValue:e.unref(r).baseVisible,"onUpdate:modelValue":l[0]||(l[0]=v=>e.unref(r).baseVisible=v),expandConfig:{subTitle:"表格基本配置"}},null,8,["modelValue"])),e.unref(r).baseVisible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:(i=e.unref(o))==null?void 0:i.baseData,config:e.unref(r).baseTableConfig},null,8,["data","config"])):e.createCommentVNode("",!0),(u=(s=e.unref(o))==null?void 0:s.baseData)!=null&&u.is_apply_page?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{key:1,class:"pl-4",modelValue:e.unref(r).pageVisible,"onUpdate:modelValue":l[1]||(l[1]=v=>e.unref(r).pageVisible=v),expandConfig:{subTitle:"表格分页配置"}},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(r).pageVisible&&((d=(c=e.unref(o))==null?void 0:c.baseData)!=null&&d.is_apply_page)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:2,data:(p=(f=e.unref(o))==null?void 0:f.baseData)==null?void 0:p.table_page_data,config:e.unref(r).tablePageConfig},null,8,["data","config"])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(att),{key:3,config:e.unref(r).tableAttrConfig,modelValue:e.unref(o).baseData,"onUpdate:modelValue":l[2]||(l[2]=v=>e.unref(o).baseData=v)},null,8,["config","modelValue"])):e.createCommentVNode("",!0)],64)}}});function itt(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(o2.value):i;t("chose",s,"tableConfig")};return{choseTagItem:o,appendField:()=>{let i=Ge.cloneDeep(zv.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return jn.warning("字段名称重复");r.value.tableConfig.push(i);let u=r.value.tableConfig[r.value.tableConfig.length-1];o(u)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value.tableConfig,i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const stt=["onClick"],utt=["onClick"],ctt={class:"p-2"},dtt=e.defineComponent({__name:"hsTableConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=itt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.tableConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.tableConfig=f),animation:150},{default:e.withCtx(()=>{var f;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=a.value)==null?void 0:f.tableConfig,p=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:p.id,onClick:v=>e.unref(u)(p)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==p.id?"bg-blue-200":""])},e.toDisplayString(p.data&&p.data.title||p.data.type&&e.unref(r2)[p.data.type]||""),3),t.current.id==p.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(v=>e.unref(s)(p),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,utt)):e.createCommentVNode("",!0)],8,stt))),128)),e.createElementVNode("div",ctt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...p)=>e.unref(i)&&e.unref(i)(...p)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),ftt=Ar(dtt,[["__scopeId","data-v-d871a518"]]);function ptt(t,n,r){const o=s=>{var c;let u=s.id==((c=n.current)==null?void 0:c.id)?Ge.cloneDeep(o2.value):s;t("chose",u,"dynamicTableConfig")};return{choseTagItem:o,appendField:()=>{let s=Ge.cloneDeep(zv.value);if(s.id=new Date().getTime().toString(),(r.value.dynamicTableConfig.findIndex(d=>d.id==s.id)||-1)>-1)return jn.warning("字段名称重复");r.value.dynamicTableConfig.push(s);let c=r.value.dynamicTableConfig[r.value.dynamicTableConfig.length-1];o(c)},deleteTagItem:s=>{Yo.confirm(`确定删除“${s.data&&s.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value.dynamicTableConfig,s),o(s),jn.success("删除成功")}).catch(u=>{console.log("err",u)})},parseColumn:()=>{var u;let s=(u=r.value)==null?void 0:u.baseData.dynamicColumn;if(s!=null&&s.requestDynamicUrl)if(s!=null&&s.dynamicMethod){if(!(s!=null&&s.dynamicProxy))return jn.warning("请填写动态配置列中的请求代理")}else return jn.warning("请选择动态配置列中的请求方式");else return jn.warning("请填写接口地址")}}}const vtt={class:"flex w-full"},mtt=["onClick"],htt=["onClick"],gtt={class:"p-2"},btt=e.defineComponent({__name:"hsTableDynamicConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u,parseColumn:c}=ptt(o,l,a);return(d,f)=>{const p=e.resolveComponent("hs-input"),v=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",vtt,[e.createVNode(p,{class:"mr-2",style:{width:"25%"},modelValue:a.value.baseData.dynamicColumn.requestDynamicUrl,"onUpdate:modelValue":f[0]||(f[0]=m=>a.value.baseData.dynamicColumn.requestDynamicUrl=m)},null,8,["modelValue"]),e.createVNode(v,{type:"primary",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("解析配置列")]),_:1},8,["onClick"])]),e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.dynamicTableConfig,"onUpdate:modelValue":f[2]||(f[2]=m=>a.value.dynamicTableConfig=m),animation:150},{default:e.withCtx(()=>{var m;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((m=a.value)==null?void 0:m.dynamicTableConfig,g=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:g.id,onClick:b=>e.unref(u)(g)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==g.id?"bg-blue-200":""])},e.toDisplayString(g.data&&g.data.title||g.data.type&&e.unref(r2)[g.data.type]||""),3),t.current.id==g.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(b=>e.unref(s)(g),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,htt)):e.createCommentVNode("",!0)],8,mtt))),128)),e.createElementVNode("div",gtt,[e.createElementVNode("div",{onClick:f[1]||(f[1]=(...g)=>e.unref(i)&&e.unref(i)(...g)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])])}}}),ytt=Ar(btt,[["__scopeId","data-v-d487599c"]]),_tt={class:"mx-auto flex flex-row h-full"},Ctt={class:"flex-1 grow overflow-y-auto"},xtt={key:0},wtt={key:0,class:"flex-none basis-1/4 ml-4"},ktt=e.defineComponent({__name:"hsTablePanel",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(Ge.cloneDeep(Let.value));const r=e.useModel(t,"modelValue"),o=e.ref(Ge.cloneDeep(Het));let a=Ge.cloneDeep(o2),l=e.ref("");e.watch(()=>r.value,u=>{l.value!=(u==null?void 0:u.id)&&(a.value=Ge.cloneDeep(o2),l.value=(u==null?void 0:u.id)||"")},{immediate:!0});const i=e.ref("tableConfig"),s=(u,c)=>{a.value=u,i.value=c};return(u,c)=>{var d,f;return e.openBlock(),e.createElementBlock("div",_tt,[e.createElementVNode("div",Ctt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":c[0]||(c[0]=p=>e.unref(n).code.visible=p),expandConfig:e.unref(n).code},null,8,["modelValue","expandConfig"])),e.unref(n).code.visible?(e.openBlock(),e.createElementBlock("div",xtt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ott),{modelValue:r.value,"onUpdate:modelValue":c[1]||(c[1]=p=>r.value=p)},null,8,["modelValue"])),(d=r.value)!=null&&d.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":c[2]||(c[2]=p=>e.unref(n).table.visible=p),expandConfig:e.unref(n).table},null,8,["modelValue","expandConfig"])),e.unref(n).table.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ltt),{key:0,modelValue:r.value,"onUpdate:modelValue":c[3]||(c[3]=p=>r.value=p),config:o.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":c[4]||(c[4]=p=>e.unref(n).tableItem.visible=p),expandConfig:e.unref(n).tableItem},null,8,["modelValue","expandConfig"])),e.unref(n).tableItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ftt),{key:1,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=p=>r.value=p),current:e.unref(a),onChose:s},null,40,["modelValue","current"])):e.createCommentVNode("",!0),r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{key:2,modelValue:e.unref(n).dynamicTableItem.visible,"onUpdate:modelValue":c[6]||(c[6]=p=>e.unref(n).dynamicTableItem.visible=p),expandConfig:e.unref(n).dynamicTableItem},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(n).dynamicTableItem.visible&&r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ytt),{key:3,modelValue:r.value,"onUpdate:modelValue":c[7]||(c[7]=p=>r.value=p),current:e.unref(a),onChose:s},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((f=r.value)==null?void 0:f.tableConfig)||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",wtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ttt),{current:e.unref(a),configList:r.value[i.value]},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function Ett(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(SC):i;t("chose",s)};return{choseTagItem:o,appendField:()=>{let i=Ge.cloneDeep(rP);i.id=new Date().getTime().toString(),r.value.push(i);let s=r.value[r.value.length-1];o(s)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.name}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value||[],i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const Stt=["onClick"],Btt=["onClick"],Ntt={class:"p-2"},Ttt=e.defineComponent({__name:"hsBtnConfigList",props:e.mergeModels({current:{type:Object,default(){return{}}}},{modelValue:[],modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue",[]),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=Ett(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value=f),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,f=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:f.id,onClick:p=>e.unref(u)(f)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==f.id?"bg-blue-200":""])},e.toDisplayString(f.data&&f.data.name),3),t.current.id==f.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(p=>e.unref(s)(f),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Btt)):e.createCommentVNode("",!0)],8,Stt))),128)),e.createElementVNode("div",Ntt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...f)=>e.unref(i)&&e.unref(i)(...f)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]),_:1},8,["modelValue"])]))}}),Dtt=Ar(Ttt,[["__scopeId","data-v-1bcdcd36"]]),Vtt=d1();function $tt(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(t.current));e.watch(()=>t.current,s=>{s&&s.id!=o.value.id&&(r.value=s,o.value=Ge.cloneDeep(s))},{deep:!0});const a=e.ref(Ge.cloneDeep(nP));return{visible:e.ref(!1),btnItemConfig:o,btnConfig:a,saveData:async function(){var s;try{if(!await n.value.getSubmitData())return;let c=(s=r.value)==null?void 0:s.data.key,d=o.value.data.key,f=Ge.map(t.btnList,m=>m.data.key);if(Ge.includes(f,d)&&d!=c)return jn.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ge.cloneDeep(o.value)),o.value.data.field_id)return;let p=Co.get("CURRENT_SYSTEM"),v={btn_name:o.value.data.key,btn_label:o.value.data.name,btn_icon:o.value.data.btnIcon,json_data:JSON.stringify(o.value.data),project_code:p.project_code};Vtt.postSaveBtnConfig4Config(v)}catch(u){console.log("er",u)}}}}const Ott={class:"bg-blue-200 h-full flex flex-col"},Att={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Mtt={key:0},Rtt={class:"text-center grow-0",style:{height:"50rpx"}},Itt=e.defineComponent({__name:"hsAttrBtn",props:{current:{type:Object,default(){return{}}},btnList:{type:Array,default:()=>[]}},setup(t){const n=t,r=e.ref(),{visible:o,btnItemConfig:a,btnConfig:l,saveData:i}=$tt(n,r);return(s,u)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Ott,[e.createElementVNode("div",Att,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(o),"onUpdate:modelValue":u[0]||(u[0]=d=>e.isRef(o)?o.value=d:null),expandConfig:{subTitle:"按钮项代码"}},null,8,["modelValue"])),e.unref(o)?(e.openBlock(),e.createElementBlock("div",Mtt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(l).visible,"onUpdate:modelValue":u[1]||(u[1]=d=>e.unref(l).visible=d),expandConfig:e.unref(l).title},null,8,["modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(eP),{ref_key:"btnItemRef",ref:r,modelValue:e.unref(a).data,"onUpdate:modelValue":u[2]||(u[2]=d=>e.unref(a).data=d),config:e.unref(l)},null,8,["modelValue","config"])),[[e.vShow,e.unref(l).visible]])]),e.createElementVNode("div",Rtt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),Ptt={class:"mx-auto flex flex-row h-full"},Ftt={class:"flex-1 grow overflow-y-auto"},ztt={key:0,class:"flex-none basis-1/4 ml-4"},Ltt=e.defineComponent({name:"formPanel"}),Htt=e.defineComponent({...Ltt,props:e.mergeModels({id:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref({visible:!0,subTitle:"按钮配置",class:"font-bold my-3",iconSize:20});let a=e.ref(Ge.cloneDeep(SC));e.watch(()=>n.id,()=>{a.value=Ge.cloneDeep(SC)});const l=i=>{a.value=i};return(i,s)=>(e.openBlock(),e.createElementBlock("div",Ptt,[e.createElementVNode("div",Ftt,[e.createVNode(vo,{modelValue:o.value.visible,"onUpdate:modelValue":s[0]||(s[0]=u=>o.value.visible=u),expandConfig:o.value},null,8,["modelValue","expandConfig"]),o.value.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Dtt),{key:0,modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=u=>r.value=u),current:e.unref(a),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)]),(r.value||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",ztt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Itt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let Wtt={config_name:"",config_unique_id:"",is_auth:"1"};const oP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},aP=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0}],jtt={formData:Wtt,formRule:oP,formConfig:aP};let qtt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const Utt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],dN={formData:qtt,formRule:oP,formConfig:Ge.concat(Utt,aP)},Ktt=d1();function Gtt(t,n,r){const o=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8,minWidth:350});let a=e.ref(!0),l=e.ref(Ge.assign(Ge.cloneDeep(dN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(v,m)=>{if(m=="name"){let g=Ge.cloneDeep(r.configs).find(b=>b.config_unique_id==v);l.value.formData=Ge.assign(l.value.formData,{config_name:g.config_name,config_unique_id:g.config_unique_id,is_auth:g.is_auth}),t("change",g)}},s=()=>new Promise(v=>{let m={id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}],config_unique_id:new Date().getTime().toString(),config_name:"",is_auth:"1",btns:[]};Ktt.getBtnConfigByKeyMap({btnNames:["search","reset"],project_code:"scmp"}).then(g=>{if(console.log("res",g),g.code!==1)return v(m);if(g.data.search&&g.data.search.json_data){let b=JSON.parse(g.data.search.json_data);m.btns.push({id:b.key+new Date().getTime().toString(),data:b})}if(g.data.reset&&g.data.reset.json_data){let b=JSON.parse(g.data.reset.json_data);m.btns.push({id:b.key+new Date().getTime().toString(),data:b})}v(m)}).catch(()=>{v(m)})}),u=async(v,m=0)=>{let g=Ge.cloneDeep(dN);if(g.formData.name=v[m]&&v[m].config_name||"",g.formData.config_name=v[m]&&v[m].config_name||"",g.formData.config_unique_id=v[m]&&v[m].config_unique_id||new Date().getTime().toString(),g.formData.is_auth=v[m]&&v[m].is_auth||"1",v.length>0){let C=v.map(x=>({label:x.config_name,value:x.config_unique_id,is_auth:x.is_auth})),w=Ge.findIndex(g.formConfig,x=>x.prop=="name");if(w<0)return;let y=Ge.assign(g.formConfig[w],{op:C});g.formConfig.splice(w,1,y)}l.value=g,a.value=!0;let b=v[m];b||(b=await s()),b.tables.length>0&&b.tables.map(C=>(C.dynamicTableConfig||(C.dynamicTableConfig=[],C.baseData.dynamicColumn={}),C)),t("change",b)};return{parentConfig:o,formConfig:l,isEdit:a,saveConfig:async()=>{await n.value.getSubmitData()&&t("save",{config_name:l.value.formData.config_name,config_unique_id:l.value.formData.config_unique_id,is_auth:l.value.formData.is_auth})},changeConfig:i,initOriginConfig:u,addConfig:async()=>{if(!(a.value&&!l.value.formData.name)){let v=await s();t("change",v),console.log("initConfig",v)}l.value=Ge.cloneDeep(jtt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{u(Ge.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const Ytt={class:"flex justify-around items-center"},Xtt={class:"basis-3/4"},Ztt={class:"basis-1/4 flex justify-end"},Jtt=e.defineComponent({inheritAttrs:!1,__name:"saveForm",props:{configs:{type:Array,default:[]}},emits:["save","change","delete"],setup(t,{expose:n,emit:r}){const o=t,a=e.ref(),l=r,{parentConfig:i,formConfig:s,isEdit:u,saveConfig:c,changeConfig:d,initOriginConfig:f,addConfig:p,cancel:v,deleteConfig:m}=Gtt(l,a,o);return n({initOriginConfig:f}),(g,b)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Ytt,[e.createElementVNode("div",Xtt,[e.createTextVNode(e.toDisplayString(e.unref(s).formData)+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"saveFormRef",ref:a,parentConfig:e.unref(i),data:e.unref(s).formData,config:e.unref(s).formConfig,rules:e.unref(s).formRule,watchConfig:!0,onChange:e.unref(d)},null,40,["parentConfig","data","config","rules","onChange"]))]),e.createElementVNode("div",Ztt,[!e.unref(u)||e.unref(u)&&e.unref(s).formData.name?(e.openBlock(),e.createBlock(C,{key:0,onClick:e.unref(c),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)?(e.openBlock(),e.createBlock(C,{key:1,type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode("新增配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)&&e.unref(s).formData.name?(e.openBlock(),e.createBlock(C,{key:2,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode("删除配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:3,onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1},8,["onClick"]))])])}}}),fN=Zf();function Qtt(t,n,r,o){let a=e.ref(),l=e.ref();const i=()=>{t.value.tables.push({id:"table_"+new Date().getTime().toString(),baseData:{id:""},tableConfig:[],dynamicTableConfig:[]})},s=x=>{let k=ux.find(t.value.tables,S=>S.id==x);Yo.confirm(`确定删除${(k==null?void 0:k.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(t.value.tables,S=>x&&S.id==x),jn.success("删除成功")}).catch(S=>{console.log("err",S)})},u=(x,k)=>{switch(k){case"remove":s(x);break;case"add":i();break}};let c=e.ref();const d=(x,k=!1)=>{if(x.form){if(x.form.formConfig.length>0){let E=0;x.form.formConfig=Ge.filter(x.form.formConfig,D=>{if(D.data.baseData.prop&&!GI[D.data.baseData.prop]&&(k||D.data.baseData.isApply))return D.sort=++E,!0})}x.form.formConfig.length<=0&&delete x.form}x.tables.map(E=>{let D=0;return E.tableConfig=Ge.filter(E.tableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.type&&!N.data.field&&!k&&(N.data.field="type_"+N.data.type),N.data.filters=Ge.filter(N.data.filters,V=>V.value),N.btnData=Ge.filter(N.btnData,V=>(k||V.data.isApply)&&V.data.key),N.sort=++D,!0}),E.dynamicTableConfig=Ge.filter(E.dynamicTableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.field&&!N.data.field&&!k&&(N.data.field="type_"+N.data.field),N.data.filters=Ge.filter(N.data.filters,V=>V.value),N.btnData=Ge.filter(N.btnData,V=>(k||V.data.isApply)&&V.data.key),N.sort=++D,!0}),E});let S=0;x.tables=Ge.filter(x.tables,E=>{if(E.tableConfig.length>0||E.dynamicTableConfig.length>0)return E.sort=++S,!0});let B=0;return x.btns=Ge.filter(x.btns,E=>{if(E.data.key&&(k||E.data.isApply))return E.sort=++B,!0}),x},f=(x={})=>(Object.keys(x).forEach(k=>{x[k]===""||x[k]===null||x[k]===void 0||x[k]instanceof Array&&x[k].length<=0||x[k]instanceof Object&&Ge.isEmpty(x[k])?delete x[k]:x[k]instanceof Object?f(x[k]):x[k]instanceof Array&&x[k].map(S=>f(S))}),x),p=x=>(x.btns=Ge.map(x.btns,(k,S)=>({id:k.id,data:f(k.data),sort:S+1})),x.form&&(x.form.baseData=Ge.assign({},f(x.form.baseData)),x.form.formConfig=Ge.map(x.form.formConfig,(k,S)=>({data:f(k.data),id:k.id,sort:S+1}))),x.tables=Ge.map(x.tables,(k,S)=>{let B=k.tableConfig.map((N,V)=>{let M=N.btnData.map(O=>f(O));return{id:N.id,data:f(N.data),btnData:M,sort:V+1}}),E=k.dynamicTableConfig.map((N,V)=>{let M=N.btnData.map(O=>f(O));return{id:N.id,data:f(N.data),btnData:M,sort:V+1}}),D=f(k.baseData);return k=Ge.assign(k,{tableConfig:B,baseData:D,sort:S+1,dynamicTableConfig:E}),k}),x),v=x=>{var D;let k=(x.btns||[]).map((N,V)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:V+1})),S=(x.tables||[]).map((N,V)=>{let M=N.tableConfig.map((O,P)=>{let I=(O.btnData||[]).map((H,F)=>({id:H.id||"",fieldName:H.data.name||"",showName:H.data.name||"",fieldProp:H.data.key||"",fieldShow:H.data.isShow||"",fieldRequired:!1,sort:F+1}));return{id:O.id,fieldName:O.data.title||(O.data.type?r2[O.data.type]:""),showName:O.data.title||(O.data.type?r2[O.data.type]:""),fieldProp:O.data.field||(O.data.type?"type_"+O.data.type:""),fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:I,sort:P+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:M,sort:V+1}}),B=(((D=x.form)==null?void 0:D.formConfig)||[]).map((N,V)=>({id:N.id,fieldName:N.data.baseData.label||"",showName:N.data.baseData.label||"",fieldProp:N.data.baseData.prop||"",fieldShow:N.data.baseData.isShow||!1,fieldRequired:N.data.elData.rules&&N.data.elData.rules.required||!1,sort:V+1}));return{config_type:"1",config_unique_id:x.config_unique_id,btns:k,tables:S,form:B,menu_id:l.value.id}};let m=e.ref("btn");const g=x=>{t.value=x,m.value="btn"},b=x=>{m.value="btn",r.value&&r.value.initOriginConfig(n.value,x)};return{handleTabsEdit:u,saveFormTableConfig:async x=>{let k=await d(Ge.cloneDeep(t.value),!0);k=Ge.assign(k,x);let B=n.value.map(M=>M.config_unique_id).indexOf(k.config_unique_id);B>-1?n.value.splice(B,1,k):n.value.push(k);let E=await d(Ge.cloneDeep(k),!1),D=await p(Ge.cloneDeep(E)),N=await v(Ge.cloneDeep(D));console.log("originConfig系统配置",k,"businessConfig==业务配置",D,"权限数据",N);let V={field_json:JSON.stringify(k),config_name:k.config_name,config_type:"1",config_unique_id:k.config_unique_id,business_json:JSON.stringify(D),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:k.id||"",project_code:a.value.project_code,update_time:k.update_time||""};fN.postSaveField4Table(V).then(()=>{jn.success("保存配置成功"),c.value=k,o("refresh")}).catch(M=>{console.log("er",M)})},changeConfig:g,initData:(x,k,S)=>{n.value=x,a.value=S,l.value=k,b(0)},tabsActiveName:m,config:c,deleteConfig:()=>{Yo.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{fN.postDelFieldById({id:t.value.id}).then(x=>{x.code==1&&(jn.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{jn.info("已取消删除")})}}}const ent={class:"flex flex-col h-full"},tnt={class:"flex-1 system-user-container",style:{height:"300px"}},nnt=e.defineComponent({__name:"bcPageConfig",emits:["refresh"],setup(t,{expose:n,emit:r}){let o=e.ref({id:"",config_type:"1",config_unique_id:"",config_name:"",btns:[],tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:s,saveFormTableConfig:u,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=Qtt(o,a,l,i);return n({initData:d}),(v,m)=>{const g=e.resolveComponent("hs-tab-pane"),b=e.resolveComponent("hs-tabs");return e.openBlock(),e.createElementBlock("div",ent,[e.createElementVNode("div",tnt,[e.createVNode(b,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":m[2]||(m[2]=C=>e.isRef(f)?f.value=C:null),class:"h-full tabs",type:"border-card",addable:"",onEdit:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(g,{class:"tab-pane",label:"按钮配置",name:"btn"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Htt),{id:e.unref(o).config_unique_id,modelValue:e.unref(o).btns,"onUpdate:modelValue":m[0]||(m[0]=C=>e.unref(o).btns=C)},null,8,["id","modelValue"]))]),_:1}),e.createVNode(g,{class:"tab-pane",label:"查询条件配置",name:"form"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Eet),{modelValue:e.unref(o),"onUpdate:modelValue":m[1]||(m[1]=C=>e.isRef(o)?o.value=C:o=C)},null,8,["modelValue"]))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).tables,(C,w)=>(e.openBlock(),e.createBlock(g,{key:w,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ktt),{closable:"",modelValue:e.unref(o).tables[w],"onUpdate:modelValue":y=>e.unref(o).tables[w]=y},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Jtt),{configs:e.unref(a),ref_key:"saveFormRef",ref:l,onChange:e.unref(c),onSave:e.unref(u),onDelete:e.unref(p)},null,40,["configs","onChange","onSave","onDelete"]))])}}}),rnt=Ar(nnt,[["__scopeId","data-v-8e367ce1"]]),ont=XI();function ant(t){let n=e.ref(""),r=e.ref();const o=i=>{let s=r.value.find(u=>u.value==i);n.value=Ge.get(s,"value",""),Co.set("CURRENT_SYSTEM",s),t("change",s)},a=()=>{ont.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(u=>({...u,label:u.project_name||"",value:u.project_code||""}));let s=Co.get("CURRENT_SYSTEM")||r.value[0];o(s&&s.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=Co.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const lnt={class:"flex"},int={key:0,class:"basis-1/4 flex flex-col justify-center"},snt=e.defineComponent({__name:"bcSwitchSystems",props:{showLabel:{type:Boolean,default:!1},labelText:{type:String,default:"当前系统:"}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{onChange:a,initData:l,curSys:i,systems:s}=ant(o);return e.onMounted(()=>{l()}),(u,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",lnt,[r.showLabel?(e.openBlock(),e.createElementBlock("div",int,e.toDisplayString(r.labelText),1)):e.createCommentVNode("",!0),e.createVNode(f,{class:"flex-1",modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=p=>e.isRef(i)?i.value=p:null),onChange:e.unref(a)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),p=>(e.openBlock(),e.createBlock(d,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])}}});function unt(t,n){let r;const o=i=>new Promise(s=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),s([]);return}let u=Ge.assign(t.params,{[t.qry_key||""]:i});Fn({url:t.url,method:"get",params:u}).then(c=>{if(c.code!=1){clearTimeout(r),s([]);return}clearTimeout(r),console.log("res",t.url,u),c.data?Array.isArray(c.data)?s(c.data):Ge.get(c,"data.customPageList")&&Ge.isArray(Ge.get(c,"data.customPageList"))?s(Ge.get(c,"data.customPageList",[])):s([]):s([])}).catch(()=>{clearTimeout(r),s([])})});return{handleSelect:i=>{n("change",i)},querySearchAsync:async(i,s)=>{const u=await o(i);s(u)}}}const cnt=e.defineComponent({__name:"bcAutoComplete",props:{qry_key:{type:String,default:""},url:{type:String,default:""},params:{type:Object,default:()=>{}},type:{type:String,default:"btn"},value_key:{type:String,default:"field_name"}},emits:["change"],setup(t,{emit:n}){const r=t,o=e.ref(""),a=n,{handleSelect:l,querySearchAsync:i}=unt(r,a);return(s,u)=>{const c=e.resolveComponent("hs-autocomplete");return e.openBlock(),e.createBlock(c,{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),clearable:"",class:"inline-input w-50",placeholder:"请输入",ref:"hsAutocompleteRef","fetch-suggestions":e.unref(i),onSelect:e.unref(l),"value-key":r.value_key||"name"},null,8,["modelValue","fetch-suggestions","onSelect","value-key"])}}}),dnt=e.defineComponent({name:"bcGroupDate",props:{value:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["change"],setup(t,{emit:n,expose:r}){const o=e.inject("bcTableFormApi",{}),a=e.ref(t.value),l=e.ref(t.value),i=e.ref([]);function s(d){const[f,p]=t.value[t.fieldComponent];if(d){const[m,g]=d;l.value[f]=m,l.value[p]=g}else l.value[f]="",l.value[p]="";const v={...t.value,...l.value};o==null||o.updateSearchForm(v),n("change",d)}function u(){s(["",""]),i.value=["",""]}function c(){var d;(d=a.value)==null||d.focus()}return r({clearData:u,focus:c}),{elRef:a,groupData:i,focus:c,onChange:s}}});function fnt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{ref:"elRef",modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const pnt=Ar(dnt,[["render",fnt]]),vnt=Fx();function mnt(t){const n=e.ref([]),r=s=>s.map(u=>{let c=Ge.assign(u,{label:u.meta.title,value:u.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=s=>{vnt.getMenuList({project_code:s.project_code}).then(u=>{u.code==1&&(n.value=r(u.data||[]))}).catch(u=>{console.log("err",u)})};let a=e.ref();return{changeNode:s=>{a.value=s,t("changeNode",s)},onChangeSystem:s=>{o(s),t("changeSystem",s)},menuData:n}}function hnt(t,n){const r=l=>{n.onlyChild?(!l.children||l.children&&l.children.length<=0)&&t("change",l):t("change",l)},o=e.ref([]);return e.watch(()=>n.menu,l=>{o.value=Ge.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const gnt={class:"max-h-full overflow-y-auto"},bnt=e.defineComponent({__name:"bcPageTree",props:{onlyChild:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},menu:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{handleNodeClick:a,menuData:l,defaultProps:i}=hnt(o,r);return(s,u)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",gnt,[e.createVNode(c,{data:e.unref(l),props:e.unref(i),"highlight-current":"","show-checkbox":t.showCheckbox,onNodeClick:e.unref(a)},null,8,["data","props","show-checkbox","onNodeClick"])])}}}),ynt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},_nt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=mnt(o);return n({onChangeSystem:l}),(s,u)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",ynt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(bnt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}});function lP(t){const n=document.createElement("a");n.href=t.url,n.download=t.name,n.target="_blank",document.body.appendChild(n),n.click(),n.addEventListener("click",()=>{document.body.removeChild(n)})}function Cnt(t,n){const r=za(),{postDeleteFile:o,postDelFileNoAttch:a}=JI(),{proxy:l}=e.getCurrentInstance(),{userInfos:i}=Au(r),s=e.computed(()=>{let k=t.fileList||[];return t.annex?k.map(S=>({name:S.name,id:S.id,path:S.path,url:"https://"+i.value.filePath+`${S.path}?x-oss-process=style/tpys_20`})):k.map(S=>({name:S.path,path:S.path,url:"https://"+i.value.filePath+`${S.path}?x-oss-process=style/tpys_20`}))});function u(k){const S=k.size/1024/1024<t.size;return S||l.$message.error(`上传头像图片大小不能超过 ${t.size}MB!`),S}function c(k,S,B){t.annex?b(k,S,B):C(k,S,B)}function d(k,S="id"){t.annex?w(k,S):y(k,"path")}let f=e.ref(!1);function p(k){f.value=!0}function v(){f.value=!1}const m=e.computed(()=>s.value.map(k=>k.url));function g(k){lP(k)}function b(k,S,B){const E=[];k.code===1?(B.forEach(D=>{if(D.response){const{id:N,path:V,name:M}=D.response.data;E.push({id:N,name:M,path:V})}else{const{id:N,path:V,name:M}=D;E.push({id:N,name:M,path:V})}}),n("update:fileList",E)):(x(S,"uid"),l.$message.error(k.msg))}function C(k,S,B){const E=[];k.code===1?(B.forEach(D=>{if(D.response){const N=D.response.data;E.push({path:N})}}),n("update:fileList",E)):(x(S,"uid"),l.$message.error(k.msg))}function w(k,S="id"){let B=k[S]||k.response.data[S];o({attachId:B}).then(E=>{E.code===1&&(x(k,S),l.$message.success(E.data))})}function y(k,S="path"){let B=k[S]||k.response.data[S];a({filePath:B}).then(E=>{E.code===1&&(x(k,S),l.$message.success(E.data))})}function x(k,S="uid"){let B=t.fileList.filter(E=>E[S]!==k[S]);n("update:fileList",B)}return{userInfos:i,imgList:s,beforeUpload:u,onSuccess:c,onRemove:d,onPreview:p,handleDownload:g,showViewer:f,onClose:v,urlList:m}}const xnt={class:"flex flex-col justify-center items-center gap-1"},wnt={class:"w-full"},knt={class:"el-upload-list__item-actions"},Ent=["onClick"],Snt=["onClick"],Bnt=["onClick"],Nnt=e.defineComponent({__name:"bcUpload",props:{action:{type:String,default:""},proxy:{type:String,default:"/qwp-web"},headers:{type:Object,default:()=>({})},method:{type:String,default:"post"},multiple:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},crossorigin:{type:String,default:""},listType:{type:String,default:"picture-card"},disabled:{type:Boolean,default:!1},limit:{type:Number},size:{type:Number,default:20},fileList:{type:Array,default:()=>[]},annex:{type:Boolean,default:!0}},emits:["update:fileList"],setup(t,{emit:n}){const r=t,o=()=>window.location.origin+`${r.proxy}${r.action}`,a=n,{imgList:l,beforeUpload:i,onSuccess:s,onRemove:u,onPreview:c,handleDownload:d,showViewer:f,onClose:p,urlList:v}=Cnt(r,a);return(m,g)=>{const b=e.resolveComponent("bc-icon"),C=e.resolveComponent("hs-image"),w=e.resolveComponent("hs-upload"),y=e.resolveComponent("hs-image-viewer");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,{action:o(),headers:t.headers,method:t.method,multiple:t.multiple,data:t.data,name:t.name,"with-credentials":t.withCredentials,"show-file-list":t.showFileList,drag:t.drag,accept:t.accept,crossorigin:t.crossorigin,"list-type":t.listType,disabled:t.disabled,limit:t.limit,"file-list":e.unref(l),"before-upload":e.unref(i),"on-success":e.unref(s)},{file:e.withCtx(({file:x})=>[e.createElementVNode("div",wnt,[e.createVNode(C,{src:x.url,class:"el-upload-list__item-thumbnail"},null,8,["src"]),e.createElementVNode("span",knt,[e.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:k=>e.unref(c)(x)},[e.createVNode(b,{name:"ele-ZoomIn"})],8,Ent),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:k=>e.unref(d)(x)},[e.createVNode(b,{name:"ele-Download"})],8,Snt)),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"el-upload-list__item-delete",onClick:k=>e.unref(u)(x)},[e.createVNode(b,{name:"ele-Delete"})],8,Bnt))])])]),default:e.withCtx(()=>[e.createElementVNode("div",xnt,[e.createVNode(b,{name:"ele-Plus"}),e.createTextVNode("上传")])]),_:1},8,["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","crossorigin","list-type","disabled","limit","file-list","before-upload","on-success"]),e.unref(f)?(e.openBlock(),e.createBlock(y,{key:0,"url-list":e.unref(v),onClose:e.unref(p)},null,8,["url-list","onClose"])):e.createCommentVNode("",!0)])}}}),Tnt={class:"text-[#606266]"},Dnt={key:1},Vnt={class:"mb-[10px]"},$nt={key:0,class:"flex justify-center align-middle mt-[10px]"},Ont=e.defineComponent({__name:"baseForm",props:{data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},isRecursive:{type:Boolean,default:!1},isVModel:{type:Boolean,default:!1},xs:{type:Number,default:24},sm:{type:Number,default:24},md:{type:Number,default:24},lg:{type:Number,default:24},xl:{type:Number,default:24}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref(r.data);let l=e.ref(r.isRecursive||r.isVModel?r.data:Ge.cloneDeep(r.data)),i=e.ref(r.config);const s=()=>{console.log("submitForm"),o.value&&o.value.validate(c=>{if(c)console.log("submit!",l.value),a.value=Object.assign(a.value,l.value);else return console.log("error submit!",l.value),!1})};return n({validForm:()=>new Promise(c=>{if(!o.value){c(!1);return}o.value.validate(d=>{c(!!d)})})}),(c,d)=>{const f=e.resolveComponent("ele-Warning"),p=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),m=e.resolveComponent("hs-form-item"),g=e.resolveComponent("hs-alert"),b=e.resolveComponent("base-form",!0),C=e.resolveComponent("hs-col"),w=e.resolveComponent("hs-row"),y=e.resolveComponent("hs-form"),x=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["h-full",{"overflow-y-auto":!t.isRecursive}])},[e.createVNode(y,{model:e.unref(l),"label-width":"146px","label-position":"right",ref_key:"formRef",ref:o},{default:e.withCtx(()=>[e.createVNode(w,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,S)=>(e.openBlock(),e.createBlock(C,{key:S,xs:t.isRecursive?t.xs:24,sm:t.isRecursive?t.sm:24,md:t.isRecursive?t.md:24,lg:t.isRecursive?t.lg:24,xl:t.isRecursive?t.xl:24,class:"mb-[20px]"},{default:e.withCtx(()=>[k.el!="title"?(e.openBlock(),e.createBlock(m,e.normalizeProps(e.mergeProps({key:0},k)),{label:e.withCtx(()=>[e.createElementVNode("span",Tnt," "+e.toDisplayString(k.label)+" ",1),e.createVNode(v,{class:"box-item",effect:"dark",content:k.tooltip||k.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.el),e.mergeProps({modelValue:e.unref(l)[k.prop],"onUpdate:modelValue":B=>e.unref(l)[k.prop]=B,clearable:k.clearable!=!1,placeholder:"请输入"},k.attrs||{}),{default:e.withCtx(()=>[k.op?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.op||[],(B,E)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.cel),{key:E,label:B.label,value:B.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Dnt,[e.createElementVNode("div",Vnt,[e.createVNode(g,{title:k.label,type:"info",closable:!1},null,8,["title"])]),k.children?(e.openBlock(),e.createBlock(b,{key:0,data:e.unref(l)[k.prop],config:k.children,isRecursive:!0,xs:t.xs,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl},null,8,["data","config","xs","sm","md","lg","xl"])):e.createCommentVNode("",!0)]))]),_:2},1032,["xs","sm","md","lg","xl"]))),128))]),_:1})]),_:1},8,["model"]),!t.isRecursive&&!t.isVModel?(e.openBlock(),e.createElementBlock("footer",$nt,[e.createVNode(x,{type:"primary",onClick:s},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),qa=Ar(Ont,[["__scopeId","data-v-ec198f7a"]]),Ant={class:"p-[10px] h-full"},Mnt=e.defineComponent({name:"inputAttrConfig"}),Rnt=e.defineComponent({...Mnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ge.cloneDeep(wQe),inputAttrConfigMap:Ge.cloneDeep(c1)});const o=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",Ant,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(r).inputAttrConfig,isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Int={class:"p-[10px] h-full overflow-y-auto"},Pnt=e.defineComponent({name:"inputEventConfig"}),Fnt=e.defineComponent({...Pnt,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ge.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(uN.map(()=>({})));return console.log("formData",a),(l,i)=>{const s=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Int,[e.createVNode(s,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(uN),(u,c)=>(e.openBlock(),e.createElementBlock("div",{key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.el),e.mergeProps({modelValue:a.value[c][u.prop],"onUpdate:modelValue":d=>a.value[c][u.prop]=d,clearable:"",placeholder:"请输入"},u.attrs||{}),null,16,["modelValue","onUpdate:modelValue"]))]))),128))])}}}),znt=[{prop:"attrs",label:"selectAttrs",tooltip:"selectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"dictCode",label:"字典code",tooltip:"字典code",type:"string",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"optionGroupAttrs",tooltip:"optionGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"label",label:"分组的名称",tooltip:"分组的名称",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用分组",tooltip:"是否将该分组下所有选项置为禁用",type:"string",el:"hs-switch"}]},{prop:"optionAttrs",label:"optionAttrs",tooltip:"optionAttrs",type:"object",el:"title",children:[{prop:"value",label:"选项的值",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用选项",tooltip:"是否禁用该选项",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Lnt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,options:"string=",method:"get",proxy:"",params:"",placeholder:"请选择"},groupAttrs:{disabled:!1,isGroupEnabled:!1},optionAttrs:{value:"value",label:"label",disabled:!1},rules:{required:!1,rules:""}},Hnt={class:"p-[10px] h-full"},Wnt=e.defineComponent({name:"selectAttrConfig"}),jnt=e.defineComponent({...Wnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ge.cloneDeep(Lnt));e.onMounted(()=>{let a=Co.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",Hnt,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(znt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),qnt=[{prop:"attrs",label:"datePickerAttrs",tooltip:"datePickerAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"number / string / object",el:"hs-input"},{prop:"readonly",label:"只读",tooltip:"只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"禁用",tooltip:"禁用",type:"boolean",el:"hs-switch"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"editable",label:"文本框可输入",tooltip:"文本框可输入",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮",type:"boolean",el:"hs-switch"},{prop:"placeholder",label:"占位符",tooltip:"非范围选择时的占位内容",type:"string",el:"hs-input"},{prop:"start-placeholder",label:"开始日期占位符",tooltip:"范围选择时开始日期的占位内容",type:"string",el:"hs-input"},{prop:"end-placeholder",label:"结束日期占位符",tooltip:"范围选择时结束日期的占位内容",type:"string",el:"hs-input"},{prop:"type",label:"显示类型",tooltip:"显示类型",type:"enum",el:"hs-select",op:[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}],cel:"hs-option"},{prop:"format",label:"输入框中的格式",tooltip:"显示在输入框中的格式",type:"参见 date formats",el:"hs-input"},{prop:"popper-class",label:"下拉框的类名",tooltip:"DatePicker 下拉框的类名",type:"string",el:"hs-input"},{prop:"popper-options",label:"自定义popper",tooltip:"自定义 popper 选项,更多请参考 popper.js",type:"object",el:"hs-input"},{prop:"range-separator",label:"分隔符",tooltip:"选择范围时的分隔符",type:"string",el:"hs-input"},{prop:"default-time",label:"default-tim",tooltip:"范围选择时选中日期所使用的当日内具体时刻",type:"object",el:"hs-input"},{prop:"value-format",label:"绑定值的格式",tooltip:"可选,绑定值的格式。 不指定则绑定值为 Date 对象",type:"参见 date formats",el:"hs-input"},{prop:"id",label:"id",tooltip:"等价于原生 input id 属性",type:"string / object",el:"hs-input"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string / object",el:"hs-input"},{prop:"unlink-panels",label:"unlink-panels",tooltip:"在范围选择器里取消两个日期面板之间的联动",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",type:"string / object",el:"hs-input"},{prop:"clear-icon",label:"清除图标",tooltip:"清除图标",type:"string / object",el:"hs-input"},{prop:"validate-event",label:"是否表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"disabled-date",label:"disabled-date",tooltip:"一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。",type:"Function",el:"hs-input"},{prop:"shortcuts",label:"设置快捷选项",tooltip:"设置快捷选项,需要传入数组对象",type:"object",el:"hs-input"},{prop:"cell-class-name",label:"设置类名",tooltip:"设置自定义类名",type:"Function",el:"hs-input"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将 date-picker 的下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Unt={attrs:{size:"default",readonly:!1,disabled:!1,editable:!0,clearable:!0,type:"date","range-separator":"-","unlink-panels":!1,"clear-icon":"","validate-event":!0,teleported:!0,placeholder:"请选择",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss"},rules:{required:!1,rules:""}},Knt={class:"p-[10px] h-full"},Gnt=e.defineComponent({name:"datePickerAttrConfig"}),Ynt=e.defineComponent({...Gnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Unt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Knt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(qnt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Xnt=[{prop:"attrs",label:"按钮属性",tooltip:"按钮属性",type:"object",el:"title",children:[{prop:"operate",label:"操作",tooltip:"操作",type:"enum",el:"hs-select",op:[{label:"query",value:"query"},{label:"reset",value:"reset"},{label:"add",value:"add"},{label:"edit",value:"edit"},{label:"delete",value:"delete"},{label:"export",value:"export"},{label:"import",value:"import"}],cel:"hs-option",attrs:{filterable:!0,"allow-create":!0,"default-first-option":!0}},{prop:"type",label:"类型",tooltip:"类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"},{prop:"name",label:"按钮文本内容",tooltip:"按钮文本内容",type:"string",el:"hs-input"},{prop:"disabled",label:"按钮是否禁用",tooltip:"按钮是否为禁用状态",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"plain",label:"是否为朴素按钮",tooltip:"是否为朴素按钮",type:"boolean",el:"hs-switch"},{prop:"text",label:"是否为文字按钮",tooltip:"是否为文字按钮",type:"boolean",el:"hs-switch"},{prop:"bg",label:"是否显示背景色",tooltip:"是否显示文字按钮背景颜色",type:"boolean",el:"hs-switch"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"round",label:"圆角按钮",tooltip:"是否为圆角按钮",type:"boolean",el:"hs-switch"},{prop:"circle",label:"圆形按钮",tooltip:"是否为圆形按钮",type:"boolean",el:"hs-switch"},{prop:"fnName",label:"方法名称",el:"hs-input",attrs:{type:"textarea"}},{prop:"loading",label:"是否为加载中",tooltip:"是否为加载中状态",type:"boolean",el:"hs-switch"},{prop:"loading-icon",label:"加载中图标",tooltip:"自定义加载中状态图标组件",type:"string / Component",el:"hs-input"},{prop:"icon",label:"图标组件",tooltip:"图标组件",type:"string / Component",el:"hs-input"},{prop:"link",label:"链接按钮",tooltip:"是否为链接按钮",type:"boolean",el:"hs-switch"},{prop:"autofocus",label:"autofocus",tooltip:"原生 autofocus 属性",type:"boolean",el:"hs-switch"},{prop:"native-type",label:"原生 type 属性",tooltip:"原生 type 属性",type:"enum",el:"hs-select",op:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}],cel:"hs-option"},{prop:"auto-insert-space",label:"自动插入空格",tooltip:"自动在两个中文字符之间插入空格",type:"boolean",el:"hs-switch"},{prop:"dark",label:"dark 模式",tooltip:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色",type:"boolean",el:"hs-switch"},{prop:"tag",label:"自定义元素标签",tooltip:"自定义元素标签",type:"string / Component",el:"hs-input"}]},{prop:"groupAttrs",label:"buttonGroupAttrs",tooltip:"buttonGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"size",label:"按钮组内按钮大小",tooltip:"用于控制该按钮组内按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"type",label:"按钮组内按钮类型",tooltip:"用于控制该按钮组内按钮的类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"}]}],Znt={attrs:{size:"default",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",autofocus:!1,"native-type":"button",dark:!1,tag:"button"},groupAttrs:{}},Jnt={class:"p-[10px] h-full"},Qnt=e.defineComponent({name:"buttonAttrConfig"}),ert=e.defineComponent({...Qnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Znt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Jnt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Xnt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),trt=[{prop:"attrs",label:"autocompleteAttrs",tooltip:"autocompleteAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"fetch-suggestions",label:"远程搜索方法",tooltip:"获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它",type:"Function",el:"hs-input"},{prop:"fetch-url",label:"远程搜索地址",tooltip:"远程搜索地址",type:"string",el:"hs-input"},{prop:"clearable",label:"是否可清空",tooltip:"是否可清空",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"自动补全组件是否被禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"用于显示的键名",tooltip:"输入建议对象中用于显示的键名",type:"string",el:"hs-input"},{prop:"debounce",label:"防抖延时",tooltip:"获取输入建议的防抖延时,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"placement",label:"菜单弹出位置",tooltip:"菜单弹出位置",type:"enum",el:"hs-select",op:[{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"}],cel:"hs-option"},{prop:"trigger-on-focus",label:"trigger-on-focus",tooltip:"whether show suggestions when input focus",type:"boolean",el:"hs-switch"},{prop:"select-when-unmatched",label:"回车触发select",tooltip:"在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件",type:"boolean",el:"hs-switch"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"关联的label",tooltip:"输入框关联的 label 文字",type:"string",el:"hs-input"},{prop:"hide-loading",label:"隐藏加载图标",tooltip:"是否隐藏远程加载时的加载图标",type:"boolean",el:"hs-switch"},{prop:"popper-class",label:"下拉列表的类名",tooltip:"下拉列表的类名",type:"string",el:"hs-input"},{prop:"popper-append-to-body",label:"列表插入body",tooltip:"是否将下拉列表插入至 body 元素。 在下拉列表的定位出现问题时,可将该属性设置为 false",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"传送",tooltip:"是否将下拉列表元素插入 append-to 指向的元素下",type:"boolean",el:"hs-switch"},{prop:"highlight-first-item",label:"高亮结果第一项",tooltip:"是否默认高亮远程搜索结果的第一项",type:"boolean",el:"hs-switch"},{prop:"fit-input-width",label:"宽度与输入框相同",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"}]}],nrt={attrs:{size:"default",clearable:!1,disabled:!1,"value-key":"value",debounce:300,placement:"bottom-start","trigger-on-focus":!0,"select-when-unmatched":!1,"hide-loading":!1,teleported:!0,"highlight-first-item":!1,"fit-input-width":!1,placeholder:"请输入"}},rrt={class:"p-[10px] h-full"},ort=e.defineComponent({name:"autocompleteAttrConfig"}),art=e.defineComponent({...ort,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(nrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",rrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(trt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),lrt=[{prop:"attrs",label:"switchAttrs",tooltip:"switchAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"boolean / string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否显示加载中",tooltip:"是否显示加载中",type:"boolean",el:"hs-switch"},{prop:"size",label:"switch 的大小",tooltip:"switch 的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"width",label:"switch 的宽度",tooltip:"switch 的宽度",type:"number / string",el:"hs-input"},{prop:"inline-prompt",label:"只呈现第一个字符",tooltip:"无论图标或文本是否显示在点内,只会呈现文本的第一个字符",type:"boolean",el:"hs-switch"},{prop:"active-icon",label:"激活时所显示图标",tooltip:"switch 状态为 on 时所显示图标,设置此项会忽略 active-text",type:"string / Component",el:"hs-input"},{prop:"inactive-icon",label:"关闭时所显示图标",tooltip:"switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text",type:"string / Component",el:"hs-input"},{prop:"active-action-icon",label:"打开时图标组件",tooltip:"on状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"inactive-action-icon",label:"关闭时图标组件",tooltip:"off状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"active-text",label:"打开时的文字描述",tooltip:"switch 打开时的文字描述",type:"string",el:"hs-input"},{prop:"inactive-text",label:"关闭时的文字描述",tooltip:"switch 的状态为 off 时的文字描述",type:"string",el:"hs-input"},{prop:"active-value",label:"状态为打开时的值",tooltip:"switch 状态为 on 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"inactive-value",label:"状态为关闭时的值",tooltip:"switch的状态为 off 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"name",label:"name",tooltip:"switch 对应的 name 属性",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"before-change",label:"状态改变前的钩子",tooltip:"switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换",type:"boolean / Function",el:"hs-switch"},{prop:"id",label:"id",tooltip:"id",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"input 的 tabindex",type:"string / number",el:"hs-input"},{prop:"label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],irt={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},srt={class:"p-[10px] h-full"},urt=e.defineComponent({name:"switchAttrConfig"}),crt=e.defineComponent({...urt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",srt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),drt=[{prop:"attrs",label:"uploadAttrs",tooltip:"uploadAttrs",type:"object",el:"title",children:[{prop:"action",label:"请求 URL",tooltip:"请求 URL",type:"string",el:"hs-input"},{prop:"headers",label:"设置上传的请求头",tooltip:"设置上传的请求头部",type:"object",el:"hs-input"},{prop:"method",label:"设置上传请求方法",tooltip:"设置上传请求方法",type:"string",el:"hs-select",op:[{label:"post",value:"post"}],cel:"hs-option"},{prop:"multiple",label:"是否支持多选文件",tooltip:"是否支持多选文件",type:"boolean",el:"hs-switch"},{prop:"data",label:"额外参数",tooltip:"上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function",type:"object / Function",el:"hs-input"},{prop:"name",label:"上传文件字段名",tooltip:"上传的文件字段名",type:"string",el:"hs-input"},{prop:"isBase64",label:"是否是base64",tooltip:"是否是base64文件",type:"boolean",el:"hs-switch"},{prop:"isShowCapture",label:"是否显示高拍仪",tooltip:"是否显示高拍仪控件",type:"boolean",el:"hs-switch"},{prop:"with-credentials",label:"支持发送cookie",tooltip:"支持发送 cookie 凭证信息",type:"boolean",el:"hs-switch"},{prop:"show-file-list",label:"show-file-list",tooltip:"是否显示已上传文件列表",type:"boolean",el:"hs-switch"},{prop:"drag",label:"是否启用拖拽上传",tooltip:"是否启用拖拽上传",type:"boolean",el:"hs-switch"},{prop:"accept",label:"上传的文件类型",tooltip:"接受上传的文件类型(thumbnail-mode 模式下此参数无效)",type:"string",el:"hs-input"},{prop:"on-preview",label:"已上传的钩子",tooltip:"点击文件列表中已上传的文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-remove",label:"移除文件的钩子",tooltip:"文件列表移除文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-success",label:"上传成功的钩子",tooltip:"文件上传成功时的钩子",type:"Function",el:"hs-input"},{prop:"on-error",label:"上传失败的钩子",tooltip:"文件上传失败时的钩子",type:"Function",el:"hs-input"},{prop:"on-progress",label:"上传时的钩子",tooltip:"文件上传时的钩子",type:"Function",el:"hs-input"},{prop:"on-change",label:"状态改变时的钩子",tooltip:"文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用",type:"Function",el:"hs-input"},{prop:"on-exceed",label:"超出限制时的钩子",tooltip:"当超出限制时,执行的钩子函数",type:"Function",el:"hs-input"},{prop:"before-upload",label:"上传之前的钩子",tooltip:"上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。",type:"Function",el:"hs-input"},{prop:"before-remove",label:"删除之前的钩子",tooltip:"删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。",type:"Function",el:"hs-input"},{prop:"file-list",label:"默认上传文件",tooltip:"默认上传文件",type:"object",el:"hs-input"},{prop:"list-type",label:"文件列表的类型",tooltip:"文件列表的类型",type:"enum",el:"hs-select",op:[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}],cel:"hs-option"},{prop:"auto-upload",label:"是否自动上传文件",tooltip:"是否自动上传文件",type:"boolean",el:"hs-switch"},{prop:"http-request",label:"覆盖默认的Xhr",tooltip:"覆盖默认的 Xhr 行为,允许自行实现上传文件的请求",type:"Function",el:"hs-input"},{prop:"disabled",label:"是否禁用上传",tooltip:"是否禁用上传",type:"boolean",el:"hs-switch"},{prop:"limit",label:"最大数量",tooltip:"允许上传文件的最大数量",type:"number",el:"hs-input-number"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],frt={attrs:{method:"post",multiple:!1,name:"file","with-credentials":!1,"show-file-list":!0,drag:!1,"list-type":"text","auto-upload":!0,disabled:!1},rules:{}},prt={class:"p-[10px] h-full"},vrt=e.defineComponent({name:"uploadAttrConfig"}),mrt=e.defineComponent({...vrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(frt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(drt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hrt=[{prop:"attrs",label:"checkboxAttrs",tooltip:"checkboxAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"选中状态的值",tooltip:"选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)",type:"string / number / boolean / object",el:"hs-input"},{prop:"true-label",label:"选中时的值",tooltip:"选中时的值",type:"string / number",el:"hs-input"},{prop:"false-label",label:"没有选中时的值",tooltip:"没有选中时的值",type:"string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"Checkbox 的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"checked",label:"当前是否勾选",tooltip:"当前是否勾选",type:"boolean",el:"hs-switch"},{prop:"indeterminate",label:"设置不确定状态",tooltip:"设置不确定状态,仅负责样式控制",type:"boolean",el:"hs-switch"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"id",label:"id",tooltip:"input id",type:"string",el:"hs-input"},{prop:"controls",label:"controls",tooltip:"与 aria-control一致, 当 indeterminate为 true时生效",type:"boolean",el:"hs-switch"}]},{prop:"groupAttrs",label:"checkboxGroupAttrs",tooltip:"checkboxGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"多选框组尺寸",tooltip:"多选框组尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"min",label:"最小数量",tooltip:"最小数量",type:"string",el:"hs-input-number"},{prop:"max",label:"最大数量",tooltip:"最大数量",type:"string",el:"hs-input-number"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"tag",label:"复选框组元素标签",tooltip:"复选框组元素标签",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],grt={attrs:{isButtonEnabled:!1,size:"default",disabled:!1,border:!1,checked:!1,indeterminate:!1,"validate-event":!0},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",disabled:!1,"text-color":"#ffffff",fill:"#409EFF",tag:"div","validate-event":!0},rules:{required:!1,rules:""}},brt={class:"p-[10px] h-full"},yrt=e.defineComponent({name:"checkboxAttrConfig"}),_rt=e.defineComponent({...yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(grt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",brt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Crt=[{prop:"attrs",label:"radioAttrs",tooltip:"radioAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"单选框的label",tooltip:"单选框的 label",type:"string / number / boolean",el:"hs-input"},{prop:"disabled",label:"是否禁用单选框",tooltip:"是否禁用单选框",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"单选框的尺寸",tooltip:"单选框的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原始 name 属性",tooltip:"原始 name 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"radioGroupAttrs",tooltip:"radioGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"单选框按钮大小",tooltip:"单选框按钮或边框按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"id ",label:"原生 id 属性",tooltip:"原生 id 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],xrt={attrs:{isButtonEnabled:!1,disabled:!1,border:!1},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",size:"default",disabled:!1,"text-color":"#ffffff",fill:"#409EFF","validate-event":!0},rules:{required:!1,rules:""}},wrt={class:"p-[10px] h-full"},krt=e.defineComponent({name:"radioAttrConfig"}),Ert=e.defineComponent({...krt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(xrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Crt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Srt=[{prop:"attrs",label:"inputNumberAttrs",tooltip:"inputNumberAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"min",label:"最小值",tooltip:"设置计数器允许的最小值",type:"number",el:"hs-input-number"},{prop:"max",label:"最大值",tooltip:"设置计数器允许的最大值",type:"number",el:"hs-input-number"},{prop:"step",label:"计数器步长",tooltip:"计数器步长",type:"number",el:"hs-input-number"},{prop:"step-strictly",label:"只能输入step倍数",tooltip:"是否只能输入 step 的倍数",type:"boolean",el:"hs-switch"},{prop:"precision",label:"数值精度",tooltip:"数值精度",type:"number",el:"hs-input-number"},{prop:"size",label:"计数器尺寸",tooltip:"计数器尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"等价于原生 input placeholder 属性",type:"string",el:"hs-input"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用状态",tooltip:"是否禁用状态",type:"boolean",el:"hs-switch"},{prop:"controls",label:"是否使用控制按钮",tooltip:"是否使用控制按钮",type:"boolean",el:"hs-switch"},{prop:"controls-position",label:"控制按钮位置",tooltip:"控制按钮位置",type:"enum",el:"hs-select",op:[{label:"right",value:"right"}],cel:"hs-option"},{prop:"name",label:"input name 属性",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"input label 属性",tooltip:"等价于原生 input label 属性",type:"string",el:"hs-input"},{prop:"id",label:"input id 属性",tooltip:"等价于原生 input id 属性",type:"string",el:"hs-input"},{prop:"value-on-clear",label:"被清空时显示的值",tooltip:"当输入框被清空时显示的值",type:"number / null / enum",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Brt={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Nrt={class:"p-[10px] h-full"},Trt=e.defineComponent({name:"inputNumberAttrConfig"}),Drt=e.defineComponent({...Trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Brt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Nrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Srt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义.(JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"是否支持清空选项",tooltip:"是否支持清空选项",type:"boolean",el:"hs-switch"},{prop:"show-all-levels",label:"show-all-levels",tooltip:"输入框中是否显示选中值的完整路径",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"是否折叠Tag",tooltip:"多选模式下是否折叠Tag",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"显示选中的标签",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"separator",label:"分隔选项的字符",tooltip:"用于分隔选项的字符",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可以被搜索",tooltip:"该选项是否可以被搜索",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"自定义搜索逻辑",tooltip:"自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项(Function)",type:"Function",el:"hs-input"},{prop:"debounce",label:" 防抖延迟,毫秒",tooltip:"搜索关键词正在输入时的去抖延迟,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"before-filter",label:"过滤函数前置钩子",tooltip:"过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。",type:"Function",el:"hs-input"},{prop:"popper-class",label:"自定义类名",tooltip:"弹出内容的自定义类名",type:"string",el:"hs-input"},{prop:"teleported",label:"是否使用teleport",tooltip:"弹层是否使用 teleport",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"是否触发表单校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"max-collapse-tags",label:"Tag的最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"}]}],$rt={attrs:{size:"default",placeholder:"请选择",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500},"show-all-levels":!1,"collapse-tags-tooltip":!1,separator:"/",debounce:300,teleported:!0,"tag-type":"info","validate-event":!0,"max-collapse-tags":1}},Ort={class:"p-[10px] h-full"},Art=e.defineComponent({name:"cascaderAttrConfig"}),Mrt=e.defineComponent({...Art,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep($rt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Ort,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义. (JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]}]}],Irt={attrs:{size:"default",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500}}},Prt={class:"p-[10px] h-full"},Frt=e.defineComponent({name:"cascaderPanelAttrConfig"}),zrt=e.defineComponent({...Frt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lrt=[{prop:"attrs",label:"treeSelectAttrs",tooltip:"treeSelectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"treeAttrs",label:"treeAttrs",tooltip:"treeAttrs",type:"title",el:"title"},{prop:"data",label:"data展示数据",tooltip:"data展示数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取data数据",tooltip:"通过url请求获取data展示数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",tooltip:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"系统代理",tooltip:"系统代理",type:"string",el:"hs-input"},{prop:"empty-text",label:"内容为空时的文本",tooltip:"内容为空的时候展示的文本",type:"string",el:"hs-input"},{prop:"node-key",label:"唯一标识",tooltip:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的",type:"string",el:"hs-input"},{prop:"props",label:"props 配置选项",tooltip:"配置选项,具体看下表",type:"title",el:"title",children:[{prop:"label",label:"label",tooltip:"指定节点标签为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定子树为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定节点选择框是否禁用为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"isLeaf",label:"是否为叶子节点",tooltip:"指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效",type:"string",el:"hs-input"},{prop:"class",label:"节点类名",tooltip:"自定义节点类名",type:"string",el:"hs-input"}]},{prop:"render-after-expand",label:"延迟渲染子节点",tooltip:"是否在第一次展开某个树节点后才渲染其子节点",type:"boolean",el:"hs-switch"},{prop:"load",label:"load",tooltip:"加载子树数据的方法,仅当 lazy 属性为true 时生效",type:"function(node, resolve),node为当前点击的节点,resolve为数据加载完成的回调(必须调用)",el:"hs-input"},{prop:"render-content",label:"节点内容区的渲染",tooltip:"树节点的内容区的渲染 Function",type:"Function(h, { node, data, store })",el:"hs-input"},{prop:"highlight-current",label:"高亮当前选中节点",tooltip:"是否高亮当前选中节点,默认值是 false。",type:"boolean",el:"hs-switch"},{prop:"default-expand-all",label:"默认展开所有节点",tooltip:"是否默认展开所有节点",type:"boolean",el:"hs-switch"},{prop:"expand-on-click-node",label:"展开或收缩节点",tooltip:"是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",type:"boolean",el:"hs-switch"},{prop:"check-on-click-node",label:"点击节点选中节点",tooltip:"是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。",type:"boolean",el:"hs-switch"},{prop:"auto-expand-parent",label:"自动展开父节点",tooltip:"展开子节点的时候是否自动展开父节点",type:"boolean",el:"hs-switch"},{prop:"default-expanded-keys",label:"默认展开数组",tooltip:"默认展开的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"show-checkbox",label:"节点是否可被选择",tooltip:"节点是否可被选择",type:"boolean",el:"hs-switch"},{prop:"check-strictly",label:"父子不互相关联",tooltip:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false",type:"boolean",el:"hs-switch"},{prop:"default-checked-keys",label:"默认勾选的数组",tooltip:"默认勾选的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"current-node-key",label:"当前选中的节点",tooltip:"当前选中的节点",type:"string / number",el:"hs-input"},{prop:"filter-node-method",label:"树节点的筛选方法",tooltip:"对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏",type:"Function(value, data, node)",el:"hs-input"},{prop:"accordion",label:"accordion",tooltip:"是否每次只打开一个同级树节点展开",type:"boolean",el:"hs-switch"},{prop:"indent",label:"节点间的缩进",tooltip:"相邻级节点间的水平缩进,单位为像素",type:"number",el:"hs-input"},{prop:"icon",label:"树节点图标组件",tooltip:"自定义树节点图标组件",type:"string | Component",el:"hs-input"},{prop:"lazy",label:"是否懒加载子节点",tooltip:"是否懒加载子节点,需与 load 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"draggable",label:"开启拖拽功能",tooltip:"是否开启拖拽节点功能",type:"boolean",el:"hs-switch"},{prop:"allow-drag",label:"节点能否被拖拽",tooltip:"判断节点能否被拖拽 如果返回 false ,节点不能被拖动",type:"Function(node)",el:"hs-input"},{prop:"allow-drop",label:"allow-drop",tooltip:"拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后",type:"Function(draggingNode, dropNode, type)",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Hrt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!1,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,props:{},data:"string=",placeholder:"请选择"},rules:{required:!1,rules:""}},Wrt={class:"p-[10px] h-full"},jrt=e.defineComponent({name:"treeSelectAttrConfig"}),qrt=e.defineComponent({...jrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Hrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Urt=e.defineComponent({name:"hsImageViewer"}),Krt=e.defineComponent({...Urt,setup(t,{expose:n}){const r=e.ref(null),o=e.getCurrentInstance();return e.onMounted(()=>{Qr(r,o)}),n({...o.exposed}),(a,l)=>{const i=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createBlock(i,{ref_key:"imageViewerRef",ref:r},e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),s=>({name:s,fn:e.withCtx(u=>[e.renderSlot(a.$slots,s,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1536)}}}),Grt=[{title:"hs-test",componentName:MEe},{title:"hs-table",componentName:FEe},{title:"hs-bc-table",componentName:LEe},{title:"hs-button",componentName:CSe},{title:"hs-button-group",componentName:kSe},{title:"hs-input",componentName:SSe},{title:"hs-select",componentName:NSe},{title:"hs-option",componentName:VSe},{title:"hs-option-group",componentName:ASe},{title:"hs-form",componentName:RSe},{title:"hs-form-item",componentName:PSe},{title:"hs-row",componentName:zSe},{title:"hs-col",componentName:HSe},{title:"hs-tree",componentName:qSe},{title:"hs-input-number",componentName:KSe},{title:"hs-switch",componentName:YSe},{title:"hs-radio",componentName:ZSe},{title:"hs-radio-group",componentName:QSe},{title:"hs-radio-button",componentName:t5e},{title:"hs-checkbox",componentName:r5e},{title:"hs-checkbox-group",componentName:a5e},{title:"hs-checkbox-button",componentName:i5e},{title:"hs-rate",componentName:u5e},{title:"hs-autocomplete",componentName:d5e},{title:"hs-slider",componentName:p5e},{title:"hs-cascader",componentName:m5e},{title:"hs-cascader-panel",componentName:g5e},{title:"hs-color-picker",componentName:y5e},{title:"hs-upload",componentName:C5e},{title:"hs-transfer",componentName:w5e},{title:"hs-date-picker",componentName:E5e},{title:"hs-scrollbar",componentName:B5e},{title:"hs-calendar",componentName:T5e},{title:"hs-carousel",componentName:V5e},{title:"hs-carousel-item",componentName:O5e},{title:"hs-collapse",componentName:M5e},{title:"hs-collapse-item",componentName:I5e},{title:"hs-progress",componentName:F5e},{title:"hs-result",componentName:L5e},{title:"hs-tour",componentName:W5e},{title:"hs-tour-step",componentName:q5e},{title:"hs-tag",componentName:K5e},{title:"hs-check-tag",componentName:Y5e},{title:"hs-affix",componentName:Z5e},{title:"hs-tabs",componentName:Q5e},{title:"hs-tab-pane",componentName:tBe},{title:"hs-steps",componentName:rBe},{title:"hs-step",componentName:aBe},{title:"hs-alert",componentName:iBe},{title:"hs-dialog",componentName:uBe},{title:"hs-drawer",componentName:dBe},{title:"hs-popconfirm",componentName:pBe},{title:"hs-popover",componentName:mBe},{title:"hs-tooltip",componentName:gBe},{title:"hs-watermark",componentName:yBe},{title:"hs-dropdown",componentName:CBe},{title:"hs-dropdown-menu",componentName:wBe},{title:"hs-dropdown-item",componentName:EBe},{title:"hs-tree-select",componentName:BBe},{title:"hs-badge",componentName:TBe},{title:"hs-empty",componentName:VBe},{title:"hs-image",componentName:OBe},{title:"hs-image-viewer",componentName:Krt},{title:"bc-btn",componentName:LBe},{title:"bc-box",componentName:xXe},{title:"bc-radio",componentName:kXe},{title:"bc-checkbox",componentName:SXe},{title:"bc-icon",componentName:RBe},{title:"bc-form",componentName:lZe},{title:"bc-table",componentName:sZe},{title:"bc-form-table",componentName:fQe},{title:"bc-form-config",componentName:_Qe},{title:"bc-select",componentName:vQe},{title:"bc-tree-select",componentName:xQe},{title:"bc-page-config",componentName:rnt},{title:"bc-switch-systems",componentName:snt},{title:"bc-auto-complete",componentName:cnt},{title:"bc-group-date",componentName:pnt},{title:"bc-page-tree-for-system",componentName:_nt},{title:"bc-upload",componentName:Nnt},{title:"hs-config-input",componentName:Rnt},{title:"hs-config-event",componentName:Fnt},{title:"hs-config-select",componentName:jnt},{title:"hs-config-date-picker",componentName:Ynt},{title:"hs-config-button",componentName:ert},{title:"hs-config-autocomplete",componentName:art},{title:"hs-config-switch",componentName:crt},{title:"hs-config-upload",componentName:mrt},{title:"hs-config-checkbox",componentName:_rt},{title:"hs-config-radio",componentName:Ert},{title:"hs-config-input-number",componentName:Drt},{title:"hs-config-cascader",componentName:Mrt},{title:"hs-config-cascader-panel",componentName:zrt},{title:"hs-config-tree-select",componentName:qrt}],iP={install(t){Grt.forEach(n=>{t.component(n.title,n.componentName)})}};function Yrt(t){t.directive("auth",{mounted(n,r){za().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;za().userInfos.authBtnList.map(l=>{r.value.map(i=>{l===i&&(o=!0)})}),o||n.parentNode.removeChild(n)}}),t.directive("auth-all",{mounted(n,r){const o=za();Nx(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function Xrt(t){t.directive("waves",{mounted(n,r){n.classList.add("waves-effect"),r.value&&n.classList.add(`waves-${r.value}`);function o(l){let i="";for(let s in l)l.hasOwnProperty(s)&&(i+=`${s}:${l[s]};`);return i}function a(l){let i=document.createElement("div");i.classList.add("waves-ripple"),n.appendChild(i);let s={left:`${l.layerX}px`,top:`${l.layerY}px`,opacity:1,transform:`scale(${n.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};i.setAttribute("style",o(s)),setTimeout(()=>{i.setAttribute("style",o({opacity:0,transform:s.transform,left:s.left,top:s.top})),setTimeout(()=>{i&&n.removeChild(i)},750)},450)}n.addEventListener("mousedown",a,!1)},unmounted(n){n.addEventListener("mousedown",()=>{})}})}function Zrt(t){t.directive("drag",{mounted(n,r){if(!r.value)return!1;const o=document.querySelector(r.value[0]),a=document.querySelector(r.value[1]);a.onmouseover=()=>a.style.cursor="move";function l(s,u){const c=u==="pc"?s.clientX-a.offsetLeft:s.touches[0].clientX-a.offsetLeft,d=u==="pc"?s.clientY-a.offsetTop:s.touches[0].clientY-a.offsetTop,f=document.body.clientWidth,p=document.documentElement.clientHeight,v=o.offsetWidth,m=o.offsetHeight,g=o.offsetLeft,b=f-o.offsetLeft-v,C=o.offsetTop,w=p-o.offsetTop-m;let y=getComputedStyle(o).left,x=getComputedStyle(o).top;return y.includes("%")?(y=+document.body.clientWidth*(+y.replace(/\%/g,"")/100),x=+document.body.clientHeight*(+x.replace(/\%/g,"")/100)):(y=+y.replace(/\px/g,""),x=+x.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:b,minDragDomTop:C,maxDragDomTop:w,styL:y,styT:x}}function i(s,u,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:v,minDragDomTop:m,maxDragDomTop:g,styL:b,styT:C}=c,w=u==="pc"?s.clientX-d:s.touches[0].clientX-d,y=u==="pc"?s.clientY-f:s.touches[0].clientY-f;-w>p?w=-p:w>v&&(w=v),-y>m?y=-m:y>g&&(y=g),o.style.cssText+=`;left:${w+b}px;top:${y+C}px;`}a.onmousedown=s=>{const u=l(s,"pc");document.onmousemove=c=>{i(c,"pc",u)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=s=>{const u=l(s,"app");document.ontouchmove=c=>{i(c,"app",u)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function Jrt(t){Yrt(t),Xrt(t),Zrt(t)}const Qrt=Object.freeze(Object.defineProperty({__proto__:null,directive:Jrt},Symbol.toStringTag,{value:"Module"}));function eot(t,n){ei.value=n==null?void 0:n.NEXT_NAME,ad.value=(n==null?void 0:n.IS_DEV)||!1,t.use(_Ee).use(iP)}exports.ClickOutside=Ri;exports.Download=lP;exports.ElConfigProvider=SD;exports.ElMessage=jn;exports.ElMessageBox=Yo;exports.ElTree=k7;exports.NextLoading=H2;exports.Session=Co;exports._=Ge;exports._export_sfc=Ar;exports._sfc_main=QI;exports.avatar_default=hT;exports.baseForm=qa;exports.commonjsGlobal=ln;exports.component=iP;exports.delete_default=ZC;exports.edit_default=xT;exports.formatAxis=bA;exports.getDataType=yA;exports.getDefaultExportFromCjs=Zo;exports.getFormData=BI;exports.getLoadData=SI;exports.index=aXe;exports.index$1=Qrt;exports.index$2=ySe;exports.inputAttrConfigMap=c1;exports.isObjectValueEqual=Tx;exports.lodashExports=ux;exports.mittBus=xA;exports.onBeforeRouteUpdate=$Ve;exports.other=DA;exports.request=Fn;exports.setBackEndControlRefreshRoutes=B$e;exports.setting_default=OT;exports.showPopup=a1;exports.storeToRefs=Au;exports.systemStore=Di;exports.to=Fu;exports.useBtnConfigController=d1;exports.useFieldConfigController=Zf;exports.useFileController=JI;exports.useHsAdminUi=eot;exports.useKeepALiveNames=dA;exports.useMenuController=Fx;exports.usePostMan=YI;exports.useRoute=e$e;exports.useRouter=QVe;exports.useRoutesList=q2;exports.useSystemController=XI;exports.useTagsViewRoutes=Ix;exports.useThemeConfig=Rx;exports.useUserInfo=za;exports.useVModel=fx;exports.verifyUrl=Hx;exports.zhCn=j7;
|
|
195
|
+
*/function J9(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Pi(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?J9(Object(r),!0).forEach(function(o){MZe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J9(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function lg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lg=function(n){return typeof n}:lg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lg(t)}function MZe(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ts(){return Ts=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ts.apply(this,arguments)}function RZe(t,n){if(t==null)return{};var r={},o=Object.keys(t),a,l;for(l=0;l<o.length;l++)a=o[l],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function IZe(t,n){if(t==null)return{};var r=RZe(t,n),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)o=l[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}var PZe="1.15.1";function Es(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ls=Es(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),K0=Es(/Edge/i),Q9=Es(/firefox/i),Mv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),$I=Es(/iP(ad|od|hone)/i),OI=Es(/chrome/i)&&Es(/android/i),AI={capture:!1,passive:!1};function Sr(t,n,r){t.addEventListener(n,r,!Ls&&AI)}function xr(t,n,r){t.removeEventListener(n,r,!Ls&&AI)}function Zg(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function FZe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Ci(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&Zg(t,n):Zg(t,n))||o&&t===r)return t;if(t===r)break}while(t=FZe(t))}return null}var eN=/\s+/g;function el(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(eN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(eN," ")}}function mn(t,n,r){var o=t&&t.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),n===void 0?r:r[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=r+(typeof r=="string"?"":"px")}}function ff(t,n){var r="";if(typeof t=="string")r=t;else do{var o=mn(t,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!n&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function MI(t,n,r){if(t){var o=t.getElementsByTagName(n),a=0,l=o.length;if(r)for(;a<l;a++)r(o[a],a);return o}return[]}function $i(){var t=document.scrollingElement;return t||document.documentElement}function yo(t,n,r,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var l,i,s,u,c,d,f;if(t!==window&&t.parentNode&&t!==$i()?(l=t.getBoundingClientRect(),i=l.top,s=l.left,u=l.bottom,c=l.right,d=l.height,f=l.width):(i=0,s=0,u=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(n||r)&&t!==window&&(a=a||t.parentNode,!Ls))do if(a&&a.getBoundingClientRect&&(mn(a,"transform")!=="none"||r&&mn(a,"position")!=="static")){var p=a.getBoundingClientRect();i-=p.top+parseInt(mn(a,"border-top-width")),s-=p.left+parseInt(mn(a,"border-left-width")),u=i+l.height,c=s+l.width;break}while(a=a.parentNode);if(o&&t!==window){var v=ff(a||t),m=v&&v.a,g=v&&v.d;v&&(i/=g,s/=m,f/=m,d/=g,u=i+d,c=s+f)}return{top:i,left:s,bottom:u,right:c,width:f,height:d}}}function RI(t){var n=yo(t),r=parseInt(mn(t,"padding-left")),o=parseInt(mn(t,"padding-top")),a=parseInt(mn(t,"padding-right")),l=parseInt(mn(t,"padding-bottom"));return n.top+=o+parseInt(mn(t,"border-top-width")),n.left+=r+parseInt(mn(t,"border-left-width")),n.width=t.clientWidth-r-a,n.height=t.clientHeight-o-l,n.bottom=n.top+n.height,n.right=n.left+n.width,n}function tN(t,n,r){for(var o=_u(t,!0),a=yo(t)[n];o;){var l=yo(o)[r],i=void 0;if(r==="top"||r==="left"?i=a>=l:i=a<=l,!i)return o;if(o===$i())break;o=_u(o,!1)}return!1}function Af(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Sn.ghost&&(o||i[l]!==Sn.dragged)&&Ci(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function C6(t,n){for(var r=t.lastElementChild;r&&(r===Sn.ghost||mn(r,"display")==="none"||n&&!Zg(r,n));)r=r.previousElementSibling;return r||null}function _l(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sn.clone&&(!n||Zg(t,n))&&r++;return r}function nN(t){var n=0,r=0,o=$i();if(t)do{var a=ff(t),l=a.a,i=a.d;n+=t.scrollLeft*l,r+=t.scrollTop*i}while(t!==o&&(t=t.parentNode));return[n,r]}function zZe(t,n){for(var r in t)if(t.hasOwnProperty(r)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[r][o])return Number(r)}return-1}function _u(t,n){if(!t||!t.getBoundingClientRect)return $i();var r=t,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=mn(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return $i();if(o||n)return r;o=!0}}while(r=r.parentNode);return $i()}function LZe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function p4(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var Rv;function II(t,n){return function(){if(!Rv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),Rv=setTimeout(function(){Rv=void 0},n)}}}function HZe(){clearTimeout(Rv),Rv=void 0}function PI(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function FI(t){var n=window.Polymer,r=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}var rl="Sortable"+new Date().getTime();function WZe(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(mn(o,"display")==="none"||o===Sn.ghost)){t.push({target:o,rect:yo(o)});var a=Pi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=ff(o,!0);l&&(a.top-=l.f,a.left-=l.e)}o.fromRect=a}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(zZe(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var a=!1,l=0;t.forEach(function(i){var s=0,u=i.target,c=u.fromRect,d=yo(u),f=u.prevFromRect,p=u.prevToRect,v=i.rect,m=ff(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&p4(f,d)&&!p4(c,d)&&(v.top-d.top)/(v.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(s=qZe(v,f,p,o.options)),p4(d,c)||(u.prevFromRect=c,u.prevToRect=d,s||(s=o.options.animation),o.animate(u,v,d,s)),s&&(a=!0,l=Math.max(l,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(n),a?n=setTimeout(function(){typeof r=="function"&&r()},l):typeof r=="function"&&r(),t=[]},animate:function(r,o,a,l){if(l){mn(r,"transition",""),mn(r,"transform","");var i=ff(this.el),s=i&&i.a,u=i&&i.d,c=(o.left-a.left)/(s||1),d=(o.top-a.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,mn(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=jZe(r),mn(r,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),mn(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){mn(r,"transition",""),mn(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},l)}}}}function jZe(t){return t.offsetWidth}function qZe(t,n,r,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-r.top,2)+Math.pow(n.left-r.left,2))*o.animation}var Od=[],v4={initializeByDefault:!0},G0={mount:function(t){for(var n in v4)v4.hasOwnProperty(n)&&!(n in t)&&(t[n]=v4[n]);Od.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Od.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Od.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](Pi({sortable:n},r)),n.options[l.pluginName]&&n[l.pluginName][t]&&n[l.pluginName][t](Pi({sortable:n},r)))})},initializePlugins:function(t,n,r,o){Od.forEach(function(i){var s=i.pluginName;if(!(!t.options[s]&&!i.initializeByDefault)){var u=new i(t,n,t.options);u.sortable=t,u.options=t.options,t[s]=u,Ts(r,u.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var l=this.modifyOption(t,a,t.options[a]);typeof l<"u"&&(t.options[a]=l)}},getEventProperties:function(t,n){var r={};return Od.forEach(function(o){typeof o.eventProperties=="function"&&Ts(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return Od.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function UZe(t){var n=t.sortable,r=t.rootEl,o=t.name,a=t.targetEl,l=t.cloneEl,i=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,v=t.putSortable,m=t.extraEventProperties;if(n=n||r&&r[rl],!!n){var g,b=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!K0?g=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(o,!0,!0)),g.to=i||r,g.from=s||r,g.item=a||r,g.clone=l,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=v?v.lastPutMode:void 0;var w=Pi(Pi({},m),G0.getEventProperties(o,n));for(var y in w)g[y]=w[y];r&&r.dispatchEvent(g),b[C]&&b[C].call(n,g)}}var KZe=["evt"],Ma=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=IZe(r,KZe);G0.pluginEvent.bind(Sn)(t,n,Pi({dragEl:It,parentEl:so,ghostEl:Ln,rootEl:Zr,nextEl:uc,lastDownEl:ig,cloneEl:no,cloneHidden:mu,dragStarted:Yp,putSortable:qo,activeSortable:Sn.active,originalEvent:o,oldIndex:Qd,oldDraggableIndex:Iv,newIndex:tl,newDraggableIndex:fu,hideGhostForTarget:WI,unhideGhostForTarget:jI,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){Ca({sortable:n,name:l,originalEvent:o})}},a))};function Ca(t){UZe(Pi({putSortable:qo,cloneEl:no,targetEl:It,rootEl:Zr,oldIndex:Qd,oldDraggableIndex:Iv,newIndex:tl,newDraggableIndex:fu},t))}var It,so,Ln,Zr,uc,ig,no,mu,Qd,tl,Iv,fu,bh,qo,Hd=!1,Jg=!1,Qg=[],oc,jl,m4,h4,rN,oN,Yp,Ad,Pv,Fv=!1,yh=!1,sg,ra,g4=[],CC=!1,e2=[],u1=typeof document<"u",_h=$I,aN=K0||Ls?"cssFloat":"float",GZe=u1&&!OI&&!$I&&"draggable"in document.createElement("div"),zI=function(){if(u1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),LI=function(t,n){var r=mn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Af(t,0,n),l=Af(t,1,n),i=a&&mn(a),s=l&&mn(l),u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+yo(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+yo(l).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var d=i.float==="left"?"left":"right";return l&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||u>=o&&r[aN]==="none"||l&&r[aN]==="none"&&u+c>o)?"vertical":"horizontal"},YZe=function(t,n,r){var o=r?t.left:t.top,a=r?t.right:t.bottom,l=r?t.width:t.height,i=r?n.left:n.top,s=r?n.right:n.bottom,u=r?n.width:n.height;return o===i||a===s||o+l/2===i+u/2},XZe=function(t,n){var r;return Qg.some(function(o){var a=o[rl].options.emptyInsertThreshold;if(!(!a||C6(o))){var l=yo(o),i=t>=l.left-a&&t<=l.right+a,s=n>=l.top-a&&n<=l.bottom+a;if(i&&s)return r=o}}),r},HI=function(t){function n(a,l){return function(i,s,u,c){var d=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(a==null&&(l||d))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(i,s,u,c),l)(i,s,u,c);var f=(l?i:s).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var r={},o=t.group;(!o||lg(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},WI=function(){!zI&&Ln&&mn(Ln,"display","none")},jI=function(){!zI&&Ln&&mn(Ln,"display","")};u1&&!OI&&document.addEventListener("click",function(t){if(Jg)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Jg=!1,!1},!0);var ac=function(t){if(It){t=t.touches?t.touches[0]:t;var n=XZe(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[rl]._onDragOver(r)}}},ZZe=function(t){It&&It.parentNode[rl]._isOutsideThisEl(t.target)};function Sn(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=Ts({},n),t[rl]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return LI(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,i){l.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sn.supportPointer!==!1&&"PointerEvent"in window&&!Mv,emptyInsertThreshold:5};G0.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);HI(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:GZe,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Sr(t,"pointerdown",this._onTapStart):(Sr(t,"mousedown",this._onTapStart),Sr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Sr(t,"dragover",this),Sr(t,"dragenter",this)),Qg.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ts(this,WZe())}Sn.prototype={constructor:Sn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ad=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,It):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,l=t.type,i=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(i||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=o.filter;if(aJe(r),!It&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Mv&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Ci(s,o.draggable,r,!1),!(s&&s.animated)&&ig!==s)){if(Qd=_l(s),Iv=_l(s,o.draggable),typeof c=="function"){if(c.call(this,t,s,this)){Ca({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:r,fromEl:r}),Ma("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Ci(u,d.trim(),r,!1),d)return Ca({sortable:n,rootEl:d,name:"filter",targetEl:s,fromEl:r,toEl:r}),Ma("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!Ci(u,o.handle,r,!1)||this._prepareDragStart(t,i,s)}}},_prepareDragStart:function(t,n,r){var o=this,a=o.el,l=o.options,i=a.ownerDocument,s;if(r&&!It&&r.parentNode===a){var u=yo(r);if(Zr=a,It=r,so=It.parentNode,uc=It.nextSibling,ig=r,bh=l.group,Sn.dragged=It,oc={target:It,clientX:(n||t).clientX,clientY:(n||t).clientY},rN=oc.clientX-u.left,oN=oc.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,It.style["will-change"]="all",s=function(){if(Ma("delayEnded",o,{evt:t}),Sn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Q9&&o.nativeDraggable&&(It.draggable=!0),o._triggerDragStart(t,n),Ca({sortable:o,name:"choose",originalEvent:t}),el(It,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){MI(It,c.trim(),b4)}),Sr(i,"dragover",ac),Sr(i,"mousemove",ac),Sr(i,"touchmove",ac),Sr(i,"mouseup",o._onDrop),Sr(i,"touchend",o._onDrop),Sr(i,"touchcancel",o._onDrop),Q9&&this.nativeDraggable&&(this.options.touchStartThreshold=4,It.draggable=!0),Ma("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(K0||Ls))){if(Sn.eventCanceled){this._onDrop();return}Sr(i,"mouseup",o._disableDelayedDrag),Sr(i,"touchend",o._disableDelayedDrag),Sr(i,"touchcancel",o._disableDelayedDrag),Sr(i,"mousemove",o._delayedDragTouchMoveHandler),Sr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&Sr(i,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,l.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){It&&b4(It),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;xr(t,"mouseup",this._disableDelayedDrag),xr(t,"touchend",this._disableDelayedDrag),xr(t,"touchcancel",this._disableDelayedDrag),xr(t,"mousemove",this._delayedDragTouchMoveHandler),xr(t,"touchmove",this._delayedDragTouchMoveHandler),xr(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Sr(document,"pointermove",this._onTouchMove):n?Sr(document,"touchmove",this._onTouchMove):Sr(document,"mousemove",this._onTouchMove):(Sr(It,"dragend",this),Sr(Zr,"dragstart",this._onDragStart));try{document.selection?ug(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Hd=!1,Zr&&It){Ma("dragStarted",this,{evt:n}),this.nativeDraggable&&Sr(document,"dragover",ZZe);var r=this.options;!t&&el(It,r.dragClass,!1),el(It,r.ghostClass,!0),Sn.active=this,t&&this._appendGhost(),Ca({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(jl){this._lastX=jl.clientX,this._lastY=jl.clientY,WI();for(var t=document.elementFromPoint(jl.clientX,jl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(jl.clientX,jl.clientY),t!==n);)n=t;if(It.parentNode[rl]._isOutsideThisEl(t),n)do{if(n[rl]){var r=void 0;if(r=n[rl]._onDragOver({clientX:jl.clientX,clientY:jl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);jI()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Ln&&ff(Ln,!0),i=Ln&&l&&l.a,s=Ln&&l&&l.d,u=_h&&ra&&nN(ra),c=(a.clientX-oc.clientX+o.x)/(i||1)+(u?u[0]-g4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(s||1)+(u?u[1]-g4[1]:0)/(s||1);if(!Sn.active&&!Hd){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ln){l?(l.e+=c-(m4||0),l.f+=d-(h4||0)):l={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");mn(Ln,"webkitTransform",f),mn(Ln,"mozTransform",f),mn(Ln,"msTransform",f),mn(Ln,"transform",f),m4=c,h4=d,jl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ln){var t=this.options.fallbackOnBody?document.body:Zr,n=yo(It,!0,_h,!0,t),r=this.options;if(_h){for(ra=t;mn(ra,"position")==="static"&&mn(ra,"transform")==="none"&&ra!==document;)ra=ra.parentNode;ra!==document.body&&ra!==document.documentElement?(ra===document&&(ra=$i()),n.top+=ra.scrollTop,n.left+=ra.scrollLeft):ra=$i(),g4=nN(ra)}Ln=It.cloneNode(!0),el(Ln,r.ghostClass,!1),el(Ln,r.fallbackClass,!0),el(Ln,r.dragClass,!0),mn(Ln,"transition",""),mn(Ln,"transform",""),mn(Ln,"box-sizing","border-box"),mn(Ln,"margin",0),mn(Ln,"top",n.top),mn(Ln,"left",n.left),mn(Ln,"width",n.width),mn(Ln,"height",n.height),mn(Ln,"opacity","0.8"),mn(Ln,"position",_h?"absolute":"fixed"),mn(Ln,"zIndex","100000"),mn(Ln,"pointerEvents","none"),Sn.ghost=Ln,t.appendChild(Ln),mn(Ln,"transform-origin",rN/parseInt(Ln.style.width)*100+"% "+oN/parseInt(Ln.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ma("dragStart",this,{evt:t}),Sn.eventCanceled){this._onDrop();return}Ma("setupClone",this),Sn.eventCanceled||(no=FI(It),no.removeAttribute("id"),no.draggable=!1,no.style["will-change"]="",this._hideClone(),el(no,this.options.chosenClass,!1),Sn.clone=no),r.cloneId=ug(function(){Ma("clone",r),!Sn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(no,It),r._hideClone(),Ca({sortable:r,name:"clone"}))}),!n&&el(It,a.dragClass,!0),n?(Jg=!0,r._loopId=setInterval(r._emulateDragOver,50)):(xr(document,"mouseup",r._onDrop),xr(document,"touchend",r._onDrop),xr(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,It)),Sr(document,"drop",r),mn(It,"transform","translateZ(0)")),Hd=!0,r._dragStartId=ug(r._dragStarted.bind(r,n,t)),Sr(document,"selectstart",r),Yp=!0,Mv&&mn(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,a,l,i=this.options,s=i.group,u=Sn.active,c=bh===s,d=i.sort,f=qo||u,p,v=this,m=!1;if(CC)return;function g(F,Y){Ma(F,v,Pi({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:l,dragRect:o,targetRect:a,canSort:d,fromSortable:f,target:r,completed:C,onMove:function(z,G){return Ch(Zr,n,It,o,z,yo(z),t,G)},changed:w},Y))}function b(){g("dragOverAnimationCapture"),v.captureAnimationState(),v!==f&&f.captureAnimationState()}function C(F){return g("dragOverCompleted",{insertion:F}),F&&(c?u._hideClone():u._showClone(v),v!==f&&(el(It,qo?qo.options.ghostClass:u.options.ghostClass,!1),el(It,i.ghostClass,!0)),qo!==v&&v!==Sn.active?qo=v:v===Sn.active&&qo&&(qo=null),f===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){g("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===It&&!It.animated||r===n&&!r.animated)&&(Ad=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(It.parentNode[rl]._isOutsideThisEl(t.target),!F&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function w(){tl=_l(It),fu=_l(It,i.draggable),Ca({sortable:v,name:"change",toEl:n,newIndex:tl,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ci(r,i.draggable,n,!0),g("dragOver"),Sn.eventCanceled)return m;if(It.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return C(!1);if(Jg=!1,u&&!i.disabled&&(c?d||(l=so!==Zr):qo===this||(this.lastPutMode=bh.checkPull(this,u,It,t))&&s.checkPut(this,u,It,t))){if(p=this._getDirection(t,r)==="vertical",o=yo(It),g("dragOverValid"),Sn.eventCanceled)return m;if(l)return so=Zr,b(),this._hideClone(),g("revert"),Sn.eventCanceled||(uc?Zr.insertBefore(It,uc):Zr.appendChild(It)),C(!0);var y=C6(n,i.draggable);if(!y||tJe(t,p,this)&&!y.animated){if(y===It)return C(!1);if(y&&n===t.target&&(r=y),r&&(a=yo(r)),Ch(Zr,n,It,o,r,a,t,!!r)!==!1)return b(),y&&y.nextSibling?n.insertBefore(It,y.nextSibling):n.appendChild(It),so=n,w(),C(!0)}else if(y&&eJe(t,p,this)){var x=Af(n,0,i,!0);if(x===It)return C(!1);if(r=x,a=yo(r),Ch(Zr,n,It,o,r,a,t,!1)!==!1)return b(),n.insertBefore(It,x),so=n,w(),C(!0)}else if(r.parentNode===n){a=yo(r);var k=0,S,B=It.parentNode!==n,E=!YZe(It.animated&&It.toRect||o,r.animated&&r.toRect||a,p),D=p?"top":"left",N=tN(r,"top","top")||tN(It,"top","top"),V=N?N.scrollTop:void 0;Ad!==r&&(S=a[D],Fv=!1,yh=!E&&i.invertSwap||B),k=nJe(t,r,a,p,E?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,yh,Ad===r);var M;if(k!==0){var O=_l(It);do O-=k,M=so.children[O];while(M&&(mn(M,"display")==="none"||M===Ln))}if(k===0||M===r)return C(!1);Ad=r,Pv=k;var P=r.nextElementSibling,I=!1;I=k===1;var H=Ch(Zr,n,It,o,r,a,t,I);if(H!==!1)return(H===1||H===-1)&&(I=H===1),CC=!0,setTimeout(QZe,30),b(),I&&!P?n.appendChild(It):r.parentNode.insertBefore(It,I?P:r),N&&PI(N,0,V-N.scrollTop),so=It.parentNode,S!==void 0&&!yh&&(sg=Math.abs(S-yo(r)[D])),w(),C(!0)}if(n.contains(It))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){xr(document,"mousemove",this._onTouchMove),xr(document,"touchmove",this._onTouchMove),xr(document,"pointermove",this._onTouchMove),xr(document,"dragover",ac),xr(document,"mousemove",ac),xr(document,"touchmove",ac)},_offUpEvents:function(){var t=this.el.ownerDocument;xr(t,"mouseup",this._onDrop),xr(t,"touchend",this._onDrop),xr(t,"pointerup",this._onDrop),xr(t,"touchcancel",this._onDrop),xr(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(tl=_l(It),fu=_l(It,r.draggable),Ma("drop",this,{evt:t}),so=It&&It.parentNode,tl=_l(It),fu=_l(It,r.draggable),Sn.eventCanceled){this._nulling();return}Hd=!1,yh=!1,Fv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xC(this.cloneId),xC(this._dragStartId),this.nativeDraggable&&(xr(document,"drop",this),xr(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mv&&mn(document.body,"user-select",""),mn(It,"transform",""),t&&(Yp&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ln&&Ln.parentNode&&Ln.parentNode.removeChild(Ln),(Zr===so||qo&&qo.lastPutMode!=="clone")&&no&&no.parentNode&&no.parentNode.removeChild(no),It&&(this.nativeDraggable&&xr(It,"dragend",this),b4(It),It.style["will-change"]="",Yp&&!Hd&&el(It,qo?qo.options.ghostClass:this.options.ghostClass,!1),el(It,this.options.chosenClass,!1),Ca({sortable:this,name:"unchoose",toEl:so,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==so?(tl>=0&&(Ca({rootEl:so,name:"add",toEl:so,fromEl:Zr,originalEvent:t}),Ca({sortable:this,name:"remove",toEl:so,originalEvent:t}),Ca({rootEl:so,name:"sort",toEl:so,fromEl:Zr,originalEvent:t}),Ca({sortable:this,name:"sort",toEl:so,originalEvent:t})),qo&&qo.save()):tl!==Qd&&tl>=0&&(Ca({sortable:this,name:"update",toEl:so,originalEvent:t}),Ca({sortable:this,name:"sort",toEl:so,originalEvent:t})),Sn.active&&((tl==null||tl===-1)&&(tl=Qd,fu=Iv),Ca({sortable:this,name:"end",toEl:so,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ma("nulling",this),Zr=It=so=Ln=uc=no=ig=mu=oc=jl=Yp=tl=fu=Qd=Iv=Ad=Pv=qo=bh=Sn.dragged=Sn.ghost=Sn.clone=Sn.active=null,e2.forEach(function(t){t.checked=!0}),e2.length=m4=h4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":It&&(this._onDragOver(t),JZe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,a=r.length,l=this.options;o<a;o++)n=r[o],Ci(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||oJe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];Ci(i,this.options.draggable,o,!1)&&(r[a]=i)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Ci(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=G0.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&HI(r)},destroy:function(){Ma("destroy",this);var t=this.el;t[rl]=null,xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart),xr(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qg.splice(Qg.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ma("hideClone",this),Sn.eventCanceled)return;mn(no,"display","none"),this.options.removeCloneOnHide&&no.parentNode&&no.parentNode.removeChild(no),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ma("showClone",this),Sn.eventCanceled)return;It.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(no,It):uc?Zr.insertBefore(no,uc):Zr.appendChild(no),this.options.group.revertClone&&this.animate(It,no),mn(no,"display",""),mu=!1}}};function JZe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ch(t,n,r,o,a,l,i,s){var u,c=t[rl],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!K0?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=n,u.from=t,u.dragged=r,u.draggedRect=o,u.related=a||n,u.relatedRect=l||yo(n),u.willInsertAfter=s,u.originalEvent=i,t.dispatchEvent(u),d&&(f=d.call(c,u,i)),f}function b4(t){t.draggable=!1}function QZe(){CC=!1}function eJe(t,n,r){var o=yo(Af(r.el,0,r.options,!0)),a=RI(r.el),l=10;return n?t.clientX<a.left-l||t.clientY<o.top&&t.clientX<o.right:t.clientY<a.top-l||t.clientY<o.bottom&&t.clientX<o.left}function tJe(t,n,r){var o=yo(C6(r.el,r.options.draggable)),a=RI(r.el),l=10;return n?t.clientX>a.right+l||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>a.bottom+l||t.clientX>o.right&&t.clientY>o.top}function nJe(t,n,r,o,a,l,i,s){var u=o?t.clientY:t.clientX,c=o?r.height:r.width,d=o?r.top:r.left,f=o?r.bottom:r.right,p=!1;if(!i){if(s&&sg<c*a){if(!Fv&&(Pv===1?u>d+c*l/2:u<f-c*l/2)&&(Fv=!0),Fv)p=!0;else if(Pv===1?u<d+sg:u>f-sg)return-Pv}else if(u>d+c*(1-a)/2&&u<f-c*(1-a)/2)return rJe(n)}return p=p||i,p&&(u<d+c*l/2||u>f-c*l/2)?u>d+c/2?1:-1:0}function rJe(t){return _l(It)<_l(t)?1:-1}function oJe(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,r=n.length,o=0;r--;)o+=n.charCodeAt(r);return o.toString(36)}function aJe(t){e2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&e2.push(o)}}function ug(t){return setTimeout(t,0)}function xC(t){return clearTimeout(t)}u1&&Sr(document,"touchmove",function(t){(Sn.active||Hd)&&t.cancelable&&t.preventDefault()});Sn.utils={on:Sr,off:xr,css:mn,find:MI,is:function(t,n){return!!Ci(t,n,t,!1)},extend:LZe,throttle:II,closest:Ci,toggleClass:el,clone:FI,index:_l,nextTick:ug,cancelNextTick:xC,detectDirection:LI,getChild:Af};Sn.get=function(t){return t[rl]};Sn.mount=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Sn.utils=Pi(Pi({},Sn.utils),o.utils)),G0.mount(o)})};Sn.create=function(t,n){return new Sn(t,n)};Sn.version=PZe;var bo=[],Xp,wC,kC=!1,y4,_4,t2,Zp;function lJe(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Sr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Sr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Sr(document,"touchmove",this._handleFallbackAutoScroll):Sr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?xr(document,"dragover",this._handleAutoScroll):(xr(document,"pointermove",this._handleFallbackAutoScroll),xr(document,"touchmove",this._handleFallbackAutoScroll),xr(document,"mousemove",this._handleFallbackAutoScroll)),lN(),cg(),HZe()},nulling:function(){t2=wC=Xp=kC=Zp=y4=_4=null,bo.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,i=document.elementFromPoint(a,l);if(t2=n,r||this.options.forceAutoScrollFallback||K0||Ls||Mv){C4(n,this.options,i,r);var s=_u(i,!0);kC&&(!Zp||a!==y4||l!==_4)&&(Zp&&lN(),Zp=setInterval(function(){var u=_u(document.elementFromPoint(a,l),!0);u!==s&&(s=u,cg()),C4(n,o.options,u,r)},10),y4=a,_4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){cg();return}C4(n,this.options,_u(i,!1),!1)}}},Ts(t,{pluginName:"scroll",initializeByDefault:!0})}function cg(){bo.forEach(function(t){clearInterval(t.pid)}),bo=[]}function lN(){clearInterval(Zp)}var C4=II(function(t,n,r,o){if(n.scroll){var a=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,i=n.scrollSensitivity,s=n.scrollSpeed,u=$i(),c=!1,d;wC!==r&&(wC=r,cg(),Xp=n.scroll,d=n.scrollFn,Xp===!0&&(Xp=_u(r,!0)));var f=0,p=Xp;do{var v=p,m=yo(v),g=m.top,b=m.bottom,C=m.left,w=m.right,y=m.width,x=m.height,k=void 0,S=void 0,B=v.scrollWidth,E=v.scrollHeight,D=mn(v),N=v.scrollLeft,V=v.scrollTop;v===u?(k=y<B&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=x<E&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(k=y<B&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=x<E&&(D.overflowY==="auto"||D.overflowY==="scroll"));var M=k&&(Math.abs(w-a)<=i&&N+y<B)-(Math.abs(C-a)<=i&&!!N),O=S&&(Math.abs(b-l)<=i&&V+x<E)-(Math.abs(g-l)<=i&&!!V);if(!bo[f])for(var P=0;P<=f;P++)bo[P]||(bo[P]={});(bo[f].vx!=M||bo[f].vy!=O||bo[f].el!==v)&&(bo[f].el=v,bo[f].vx=M,bo[f].vy=O,clearInterval(bo[f].pid),(M!=0||O!=0)&&(c=!0,bo[f].pid=setInterval((function(){o&&this.layer===0&&Sn.active._onTouchMove(t2);var I=bo[this.layer].vy?bo[this.layer].vy*s:0,H=bo[this.layer].vx?bo[this.layer].vx*s:0;typeof d=="function"&&d.call(Sn.dragged.parentNode[rl],H,I,t,t2,bo[this.layer].el)!=="continue"||PI(bo[this.layer].el,H,I)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==u&&(p=_u(p,!1)));kC=c}},30),qI=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,a=t.activeSortable,l=t.dispatchSortableEvent,i=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var u=r||a;i();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);s(),u&&!u.el.contains(d)&&(l("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function x6(){}x6.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Af(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:qI};Ts(x6,{pluginName:"revertOnSpill"});function w6(){}w6.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:qI};Ts(w6,{pluginName:"removeOnSpill"});Sn.mount(new lJe);Sn.mount(w6,x6);function iJe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function sJe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function uJe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const iN=Symbol("cloneElement");function cJe(...t){var n,r;const o=(n=e.getCurrentInstance())==null?void 0:n.proxy,a=t[0];let[,l,i]=t;Array.isArray(e.unref(l))||(i=l,l=null);let s=null;const{immediate:u=!0,clone:c=iJe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(S){var B;S.item[iN]=c(e.unref((B=e.unref(l))==null?void 0:B[S.oldIndex]))}function p(S){const B=S.item[iN];NZe(B)||(f4(S.item),BZe(e.unref(l),S.newDraggableIndex,B))}function v(S){const{from:B,item:E,oldIndex:D,oldDraggableIndex:N,pullMode:V,clone:M}=S;if(V==="clone"){Z9(B,E,D),f4(M);return}SZe(e.unref(l),N)}function m(S){if(d){d(S);return}const{from:B,item:E,oldIndex:D,newIndex:N}=S;if(f4(E),Z9(B,E,D),e.isRef(l)){const V=[...e.unref(l)];l.value=X9(V,D,N);return}X9(e.unref(l),D,N)}const g={onUpdate:m,onStart:f,onAdd:p,onRemove:v};function b(S){const B=e.unref(a);return S||(S=TZe(B)?DZe(B,o==null?void 0:o.$el):B),S&&!OZe(S)&&(S=S.$el),S||wZe("Root element not found"),S}function C(){var S;const B=(S=e.unref(i))!=null?S:{},E=DI(B,["immediate","clone"]);return $Ze(l===null?{}:g,E)}const w=S=>{S=b(S),s&&y.destroy(),s=new Sn(S,C())};e.watch(()=>i,()=>{s&&AZe(C(),(S,B)=>{s==null||s.option(S,B)})},{deep:!0});const y={option:(S,B)=>s==null?void 0:s.option(S,B),destroy:()=>{s==null||s.destroy(),s=null},save:()=>s==null?void 0:s.save(),toArray:()=>s==null?void 0:s.toArray(),closest:(...S)=>s==null?void 0:s.closest(...S)},x=()=>y==null?void 0:y.option("disabled",!0),k=()=>y==null?void 0:y.option("disabled",!1);return uJe(()=>{u&&w()}),sJe(y.destroy),Jd({start:w,pause:x,resume:k},y)}const EC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],dJe=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...EC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],Fu=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:dJe,emits:["update:modelValue",...EC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=EC.reduce((d,f)=>{const p=`on${f.replace(/^\S/,v=>v.toUpperCase())}`;return d[p]=v=>r(f,v),d},{}),i=e.computed(()=>{const d=e.toRefs(t),f=DI(d,["modelValue"]),p=Object.entries(f).reduce((v,[m,g])=>{const b=e.unref(g);return b!==void 0&&(v[m]=b),v},{});return Jd(Jd({},l),EZe(Jd(Jd({},a),p)))}),s=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),u=e.ref(),c=e.reactive(cJe(t.target||u,s,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:u},n.default(c))}}}),fJe=t=>(e.pushScopeId("data-v-84197db7"),t=t(),e.popScopeId(),t),pJe=fJe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),vJe=e.defineComponent({name:"formDrag"}),mJe=e.defineComponent({...vJe,props:{baseData:{},formData:{},formConfig:{}},emits:["update:formConfig"],setup(t,{expose:n,emit:r}){const o=t,a=r,l=e.ref(),i=e.ref(null),s=e.computed({get(){return o.formConfig},set(c){a("update:formConfig",c)}});function u(c){return{...Ge.omit(c.baseData,["el","isSlot","isAuth","isApply","isShow"]),...c.elData.rules}}return n({componentRef:i}),(c,d)=>{const f=e.resolveComponent("hs-form-item"),p=e.resolveComponent("hs-form");return e.openBlock(),e.createBlock(p,e.mergeProps(c.baseData,{model:c.formData}),{default:e.withCtx(()=>[e.createVNode(e.unref(Fu),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=v=>s.value=v),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,v=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:v.id},u(v.data)),{default:e.withCtx(()=>[v.data.baseData.isSlot?e.renderSlot(c.$slots,`query_${v.data.baseData.prop}`,{key:0},void 0,!0):v.data.baseData.el==="bc-group-date"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.data.baseData.el),e.mergeProps({key:1,ref_for:!0,ref_key:"componentRef",ref:i,"el-component":v.data.baseData.el2,"field-component":v.data.baseData.groupField,modelValue:c.formData,"onUpdate:modelValue":d[0]||(d[0]=m=>c.formData=m)},e.unref(Ge).omit(v.data.elData,"rules")),null,16,["el-component","field-component","modelValue"])):v.data.baseData.prop&&v.data.baseData.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.data.baseData.el),e.mergeProps({key:2,ref_for:!0,ref_key:"componentRef",ref:i,modelValue:c.formData[v.data.baseData.prop],"onUpdate:modelValue":m=>c.formData[v.data.baseData.prop]=m},e.unref(Ge).omit(v.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),pJe]),_:3},16,["model"])}}}),hJe=Ar(mJe,[["__scopeId","data-v-84197db7"]]),gJe=t=>(e.pushScopeId("data-v-fef8a630"),t=t(),e.popScopeId(),t),bJe={class:"sort-form-wraper"},yJe={class:"sort-form-wraper__content"},_Je={class:"content__wrap"},CJe=gJe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),xJe={class:"sort-target drag li"},wJe={class:"li name"},kJe={class:"li"},EJe={class:"li"},SJe={class:"footer"},BJe={class:"footer-confirm"},NJe=e.defineComponent({name:"sortColumn"}),TJe=e.defineComponent({...NJe,props:{uniqueId:{},id:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o(n.uniqueId);function o(i){return To.get(i).then(s=>{const{tableConfig:u}=s.tables.find(c=>c.id===n.id);r.value=u.filter(c=>!c.data.type)})}function a(){To.get(`${n.uniqueId}_origin`).then(i=>{const s=i.tables.find(u=>u.id===n.id);r.value=s.tableConfig.filter(u=>!u.data.type),To.set(n.uniqueId,i)})}function l(){To.get(n.uniqueId).then(i=>{const s=i.tables.find(c=>c.id===n.id),u=s.tableConfig.filter(c=>c.data.type);s.tableConfig=JSON.parse(JSON.stringify([...u,...r.value])),To.set(n.uniqueId,i).then(()=>{n.close(s)})})}return(i,s)=>{const u=e.resolveComponent("el-icon"),c=e.resolveComponent("hs-input"),d=e.resolveComponent("hs-switch"),f=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",bJe,[e.createElementVNode("div",yJe,[e.createElementVNode("div",_Je,[CJe,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=p=>r.value=p),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,v)=>(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"sort-target__wraper"},[e.createElementVNode("span",xJe,[e.createVNode(u,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gv))]),_:1})]),e.createElementVNode("span",wJe,[e.createVNode(c,{modelValue:p.data.title,"onUpdate:modelValue":m=>p.data.title=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",kJe,[e.createVNode(d,{modelValue:p.data.isShow,"onUpdate:modelValue":m=>p.data.isShow=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",EJe,e.toDisplayString(v+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",SJe,[e.createVNode(f,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",BJe,[e.createVNode(f,{size:"small",onClick:s[1]||(s[1]=p=>i.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{type:"primary",size:"small",onClick:l},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),DJe=Ar(TJe,[["__scopeId","data-v-fef8a630"]]);function VJe(t,n){return new Promise(r=>{a1(DJe,{uniqueId:t,id:n},{id:n,title:"表格配置",showFooter:!1,success:({type:o})=>{r(o)}})})}const $r=e.reactive({rowIndex:0,columnIndex:0});function $Je(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=["checkbox","expand","radio","seq"],i=[{label:"右键1",value:"111"},{label:"右键2",value:"222"},{label:"右键3",value:"333"},{label:"右键4",value:"444"},{label:"右键5",value:"555"}];function s(){var p,v,m;const c=(p=e.toValue(a))==null?void 0:p.getData($r.rowIndex),{visibleColumn:d}=e.toValue(a).getTableColumn(),f=d[$r.columnIndex].field;(v=e.toValue(a))==null||v.setCurrentRow(c),(m=e.toValue(a))==null||m.setEditRow(c,f).then(()=>{const{rowIndex:g,columnIndex:b}=e.toValue(a).getEditRecord();$r.rowIndex=g??0,$r.columnIndex=b??0})}async function u(c){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=c.currentPage,d.baseData.table_page_data.pageSize=c.pageSize,d.tableData=await s1(d.baseData,o.data.form.formData)}return Ec("ArrowRight",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if($r.columnIndex++,$r.columnIndex>f.length-1&&($r.columnIndex=0),l.includes((p=f[$r.columnIndex])==null?void 0:p.type)){const v=f.filter(m=>m.type).length;$r.columnIndex=$r.columnIndex+v}s()}),Ec("ArrowLeft",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if($r.columnIndex--,l.includes((p=f[$r.columnIndex])==null?void 0:p.type)){const v=f.filter(m=>m.type).length;$r.columnIndex=$r.columnIndex-v}$r.columnIndex<0&&($r.columnIndex=f.length-1),s()}),Ec("ArrowUp",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();$r.rowIndex--,$r.rowIndex<0&&($r.rowIndex=f.length-1),s()}),Ec("ArrowDown",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();$r.rowIndex++,$r.rowIndex>f.length-1&&($r.rowIndex=0),s()}),{menuTable:i,onPageChange:u}}function OJe(t,n,r){function o(s){$r.rowIndex=s.rowIndex,$r.columnIndex=s.columnIndex,r("cell-click",s)}function a(s){s.columnIndex===0?VJe(t.uniqueId,t.id).then(u=>{const c=u.tableConfig.map(d=>Fc(d.data)).filter(d=>d.isShow);e.nextTick(async()=>{var d,f;await((d=e.toValue(n))==null?void 0:d.reloadColumn(c)),await((f=e.toValue(n))==null?void 0:f.refreshColumn())})}):r("header-cell-click",s)}function l(s,u){s.fnName&&typeof s.fnName=="function"&&s.fnName(u)}function i(s){r("page-change",s)}return{handleCellClick:o,headerCellClick:a,headerBtnClick:l,pageChange:i}}function AJe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=ku(t),{height:a}=ku(n,{height:0,width:0}),l=e.computed(()=>({height:`${o.value-a.value}px`}));return{wrapRef:t,pagerRef:n,tableRef:r,style:l}}const MJe=e.defineComponent({name:"formTable"}),RJe=e.defineComponent({...MJe,props:{uniqueId:{},id:{},baseData:{},tableData:{},tableConfig:{}},emits:["ready","cell-click","header-cell-click","page-change"],setup(t,{emit:n}){const r=t,o=n,{wrapRef:a,pagerRef:l,tableRef:i,style:s}=AJe(),{handleCellClick:u,headerCellClick:c,headerBtnClick:d,pageChange:f}=OJe(r,i,o);return e.onMounted(()=>{o("ready",i.value)}),(p,v)=>{const m=e.resolveComponent("bc-btn"),g=e.resolveComponent("vxe-column"),b=e.resolveComponent("vxe-table"),C=e.resolveComponent("vxe-pager");return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:a,class:"bc-table__wrapper bg-white"},[e.createElementVNode("div",{class:"bc-table__content",style:e.normalizeStyle(e.unref(s))},[e.createVNode(b,e.mergeProps({ref_key:"tableRef",ref:i},p.baseData,{onCellClick:e.unref(u),onHeaderCellClick:e.unref(c),data:p.tableData}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tableConfig,w=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:w.id},w.data),e.createSlots({_:2},[e.renderList(p.$slots,(y,x)=>({name:x,fn:e.withCtx(k=>[e.renderSlot(p.$slots,x,e.normalizeProps(e.guardReactiveProps(k||{})),void 0,!0)])})),w.data.isSlot?{name:"default",fn:e.withCtx(y=>[w.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(EI)(w.data.el)),{key:0,modelValue:y.row[y.column.field],"onUpdate:modelValue":x=>y.row[y.column.field]=x},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,w.data.field,e.normalizeProps(e.mergeProps({key:1},y||{})),void 0,!0)]),key:"0"}:w.btnData&&w.btnData.length?{name:"default",fn:e.withCtx(y=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btnData,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.id},[x.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.data.isSlot?e.renderSlot(p.$slots,`table_btn_${w.data.key}`,e.normalizeProps(e.mergeProps({key:0},y||{})),void 0,!0):(e.openBlock(),e.createBlock(m,{key:1,data:x.data,onClick:k=>e.unref(d)(x.data,y)},null,8,["data","onClick"]))],64)):e.createCommentVNode("",!0)],64))),128))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["onCellClick","onHeaderCellClick","data"])],4),e.createElementVNode("div",{ref_key:"pagerRef",ref:l},[p.baseData.is_apply_page?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},p.baseData.table_page_data,{onPageChange:e.unref(f)}),e.createSlots({_:2},[e.renderList(p.$slots,(w,y)=>({name:y,fn:e.withCtx(x=>[e.renderSlot(p.$slots,"pager_"+y,e.normalizeProps(e.guardReactiveProps(x||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),IJe=Ar(RJe,[["__scopeId","data-v-1aa3815c"]]),PJe={key:0,class:"item-wrap"},FJe=["onClick"],zJe=e.defineComponent({name:"formTabs"}),LJe=e.defineComponent({...zJe,props:e.mergeModels({tabs:{}},{active:{type:String},activeModifiers:{}}),emits:["update:active"],setup(t){const n=e.useModel(t,"active"),r=e.ref(),o=e.ref(),{height:a}=ku(r),{height:l}=ku(o),i=e.computed(()=>`${a.value-l.value}px`);return(s,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:r,class:"tabs-wrapper"},[e.createElementVNode("div",{ref_key:"headRef",ref:o,class:e.normalizeClass(["tabs-head",[s.tabs.length>1?"min-h-16":"min-h-2"]])},[e.renderSlot(s.$slots,"left",{},void 0,!0),s.tabs.length>1?(e.openBlock(),e.createElementBlock("div",PJe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,c=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["item",[n.value===c.id?"active":""]]),key:c.id,onClick:d=>n.value=c.id},e.toDisplayString(c.baseData.tableName),11,FJe))),128))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"tabs-content",style:e.normalizeStyle({height:i.value})},[e.renderSlot(s.$slots,"default",{},void 0,!0)],4)],512))}}),HJe=Ar(LJe,[["__scopeId","data-v-fa1d5d61"]]);function WJe(t,n){const r=e.ref(0),o=e.ref(0),a=e.ref(!1),l=e.ref(n.menu);function i(u){var c;n.target&&!((c=u.target)!=null&&c.closest(n.target))||(u.preventDefault(),u.stopPropagation(),typeof n.getMenu=="function"?l.value=n.getMenu():l.value=n.menu,a.value=!0,r.value=u.clientX,o.value=u.clientY)}function s(){a.value=!1}return e.onMounted(()=>{var u;(u=t.value)==null||u.addEventListener("contextmenu",i),window.addEventListener("click",s,!0),window.addEventListener("contextmenu",s,!0)}),e.onUnmounted(()=>{var u;(u=t.value)==null||u.removeEventListener("contextmenu",i),window.removeEventListener("click",s,!0),window.removeEventListener("contextmenu",s,!0)}),{x:r,y:o,isshow:a,menuList:l}}const jJe=["onClick"],qJe=e.defineComponent({name:"contextBody"}),UJe=e.defineComponent({...qJe,props:{menu:{},target:{},getMenu:{type:Function}},emits:["select"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(),{x:l,y:i,isshow:s,menuList:u}=WJe(a,r);function c(v){s.value=!1,typeof v.click=="function"?v.click():o("select",v)}function d(v){const m=v;m.style.height="0"}function f(v){const m=v;m.style.height="auto";const g=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{m.style.height=g+"px",m.style.transition="all .5s"})}function p(v){const m=v;m.style.transition="none"}return(v,m)=>(e.openBlock(),e.createElementBlock("div",{class:"context-wrap",ref_key:"contextRef",ref:a},[e.renderSlot(v.$slots,"default",{},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{onBeforeEnter:d,onEnter:f,onAfterEnter:p},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-wrap__content",style:e.normalizeStyle({left:`${e.unref(l)}px`,top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:b,onClick:e.withModifiers(C=>c(g),["stop"])},e.toDisplayString(e.toValue(g.label)),9,jJe))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),sN=Ar(UJe,[["__scopeId","data-v-aba5fec1"]]);function KJe(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=ku(n),{height:i}=ku(r,{height:0,width:0}),{height:s}=ku(o,{height:0,width:0}),u=e.computed(()=>({height:l.value>0?`${l.value-i.value-s.value}px`:"0px"}));function c(f,p){a.value[p]=f}function d(){t.value=!0,e.nextTick(()=>{t.value=!1})}return e.provide("formSearchApi",{onHeightChange:d}),{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:u,isOverHide:t,onReady:c}}function GJe(t,n,r,o){var f,p;const a=JSON.parse(JSON.stringify(((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||{}));e.computed(()=>n.value[r.value]);const l={add:s,reset:u,search:c,export:d},i=e.computed(()=>{var v;return((v=o.data)==null?void 0:v.btns.map(m=>(o.isConfig||(m.data.fnName=l[m.data.key]||""),m)))||[]});function s(){}function u(){var v,m,g;Ge.isEmpty((m=(v=o.data)==null?void 0:v.form)==null?void 0:m.formData)||((g=t.value.getComponents())==null||g.forEach(b=>{var C;typeof((C=e.toValue(b))==null?void 0:C.clearData)=="function"&&e.toValue(b).clearData()}),Ge.isEmpty(a)?Object.keys(o.data.form.formData).forEach(b=>{wI.test(b)||(o.data.form.formData[b]="")}):o.data.form.formData=a),c()}async function c(){const v=o.data.tables.find(m=>m.id===r.value);v.baseData.table_page_data.currentPage=1,v.tableData=await s1(v.baseData,o.data.form.formData)}function d(){}return{btns:i}}const YJe=t=>(e.pushScopeId("data-v-fbb5873b"),t=t(),e.popScopeId(),t),XJe={class:"sort-form-wraper"},ZJe={class:"sort-form-wraper__content"},JJe={class:"content__wrap"},QJe=YJe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),eQe={class:"sort-target drag li"},tQe={class:"li name"},nQe={class:"li"},rQe={class:"li"},oQe={class:"footer"},aQe=e.defineComponent({name:"sortColumn"}),lQe=e.defineComponent({...aQe,props:{id:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o(n.id);function o(l){return To.get(l).then(i=>{var s;r.value=((s=i.form)==null?void 0:s.formConfig)||[]})}function a(){To.get(n.id).then(l=>{l.form.formConfig=JSON.parse(JSON.stringify([...r.value])),To.set(n.id,l).then(()=>{n.close(l)})})}return(l,i)=>{const s=e.resolveComponent("el-icon"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-switch"),d=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",XJe,[e.createElementVNode("div",ZJe,[e.createElementVNode("div",JJe,[QJe,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=f=>r.value=f),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"sort-target__wraper"},[e.createElementVNode("span",eQe,[e.createVNode(s,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gv))]),_:1})]),e.createElementVNode("span",tQe,[e.createVNode(u,{modelValue:f.data.baseData.prop,"onUpdate:modelValue":v=>f.data.baseData.prop=v},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",nQe,[e.createVNode(c,{modelValue:f.data.baseData.isShow,"onUpdate:modelValue":v=>f.data.baseData.isShow=v},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",rQe,e.toDisplayString(p+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",oQe,[e.createVNode(d,{size:"small",onClick:i[1]||(i[1]=f=>l.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),iQe=Ar(lQe,[["__scopeId","data-v-fbb5873b"]]);function sQe(t){return new Promise(n=>{a1(iQe,{id:t},{title:"高级设置",showFooter:!1,success({type:r}){n(r)}})})}function uQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=e.ref(!1),i=async()=>{l.value&&await To.get(o.data.config_unique_id).then(async d=>{d.form.formConfig=JSON.parse(JSON.stringify(o.data.form.formConfig)),await To.set(o.data.config_unique_id,d)}),l.value=!l.value},s=()=>{sQe(o.data.config_unique_id).then(async d=>{const{formConfig:f}=await _C(d);o.data.form.formConfig=f})},u=async()=>{const d=await To.get(`${o.data.config_unique_id}_origin`),f=await To.get(`${o.data.config_unique_id}`);f.form=d.form,To.set(d.config_unique_id,f).then(async()=>{const{formConfig:p}=await _C(d);o.data.form.formConfig=p})},c=[{label:"高级设置",value:"222",click:s},{label:e.computed(()=>l.value?"完成排序":"排序设置"),value:"111",click:i},{label:"重置设置",value:"333",click:u}];return _6(t,()=>{setTimeout(()=>{var d;(d=Ge.get(e.toValue(t),"componentRef.1"))==null||d.focus()},1e3)}),Ec("ArrowLeft",d=>{var g,b;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(g=e.toValue(t))==null?void 0:g.getComponents();let v=p.findIndex(C=>(C!=null&&C.activeElement&&(C=C.activeElement()),C==f)),m=v<0?-1:v;m--,m<0&&(m=p.length-1),(b=Ge.get(p,m))==null||b.focus()}),Ec("ArrowRight",d=>{var b,C;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(b=e.toValue(t))==null?void 0:b.getComponents(),v=p.length-1;let m=p.findIndex(w=>(w!=null&&w.activeElement&&(w=w.activeElement()),w==f)),g=m<0?-1:m;g++,g>v&&(g=0),(C=Ge.get(p,g))==null||C.focus()}),Ec("ArrowDown",d=>{var g,b,C;if(d.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;$r.rowIndex=0;const p=(g=e.toValue(a))==null?void 0:g.getData($r.rowIndex),{visibleColumn:v}=e.toValue(a).getTableColumn();$r.columnIndex=v.filter(w=>w.type).length;const m=v[$r.columnIndex].field;(b=e.toValue(a))==null||b.setCurrentRow(p),(C=e.toValue(a))==null||C.setEditRow(p,m)}),{isShowDrag:l,menuForm:c}}const cQe=e.defineComponent({name:"bcFormTable"}),dQe=e.defineComponent({...cQe,props:{hideBtn:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},data:{type:Object},isConfig:{type:Boolean,default:!1}},emits:["ready","btnClick"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(""),l=e.computed({get(){return a.value===""?Ge.get(r,"data.tables.0.id",""):a.value},set(y){a.value=y}}),{wrapRef:i,btnRef:s,formRef:u,tableApi:c,style:d,isOverHide:f,onReady:p}=KJe(),{menuForm:v,isShowDrag:m}=uQe(u,c,l,r),{menuTable:g,onPageChange:b}=$Je(u,c,l,r),{btns:C}=GJe(u,c,l,r);function w(y){o("btnClick",y)}return _6(()=>{var y;return(y=r.data)==null?void 0:y.config_name},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(y,x)=>{var k,S,B;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:i,class:e.normalizeClass(["bc-form-table__wrapper",[e.unref(f)?"overflow-auto":"overflow-hide"]])},[!t.hideBtn&&e.unref(C).length?(e.openBlock(),e.createBlock(e.unref(pZe),{key:0,ref_key:"btnRef",ref:s,isConfig:t.isConfig,btns:e.unref(C),onBtnClick:w},e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ge).isEmpty((k=t.data)==null?void 0:k.form)?(e.openBlock(),e.createBlock(e.unref(sN),{key:1,menu:e.unref(v)},{default:e.withCtx(()=>[e.unref(m)?(e.openBlock(),e.createBlock(e.unref(hJe),e.mergeProps({key:1,ref_key:"formRef",ref:u,formConfig:t.data.form.formConfig,"onUpdate:formConfig":x[0]||(x[0]=E=>t.data.form.formConfig=E)},e.unref(Ge).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(_Ze),e.mergeProps({key:0,ref_key:"formRef",ref:u},t.data.form),e.createSlots({_:2},[e.renderList(y.$slots,(E,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(y.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ge).isEmpty((S=t.data)==null?void 0:S.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(sN),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(HJe),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":x[1]||(x[1]=E=>l.value=E),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,E=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(IJe),e.mergeProps(E,{key:E.id,"unique-id":t.data.config_unique_id,class:"h-full",onReady:D=>e.unref(p)(D,E.id),onPageChange:e.unref(b)}),e.createSlots({_:2},[e.renderList(y.$slots,(D,N)=>({name:N,fn:e.withCtx(V=>[e.renderSlot(y.$slots,N,e.normalizeProps(e.guardReactiveProps(V||{})),void 0,!0)])}))]),1040,["unique-id","onReady","onPageChange"])),[[e.vShow,l.value===E.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ge).isEmpty((B=t.data)==null?void 0:B.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(y.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)}}}),fQe=Ar(dQe,[["__scopeId","data-v-c9ae6406"]]),pQe=e.defineComponent({name:"BcSelect"}),vQe=e.defineComponent({...pQe,props:{url:{},proxy:{},params:{},method:{},options:{},groupAttrs:{},optionAttrs:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.options)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.options)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Fn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function s(){o.value.getInstance().focus()}function u(){o.value.getInstance().blur()}function c(){return o.value.getInstance().inputRef}return n({focus:s,blur:u,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-option"),v=e.resolveComponent("hs-option-group"),m=e.resolveComponent("hs-select");return e.openBlock(),e.createBlock(m,e.mergeProps({ref_key:"selectRef",ref:o},d.$attrs),{default:e.withCtx(()=>[d.groupAttrs.isGroupEnabled?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(v,{key:g.label,label:g.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,b=>(e.openBlock(),e.createBlock(p,{key:b.value,value:b[d.optionAttrs.value],label:b[d.optionAttrs.label]},null,8,["value","label"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(p,{disabled:d.optionAttrs.disabled,key:g.value,value:g[d.optionAttrs.value],label:g[d.optionAttrs.label]},null,8,["disabled","value","label"]))),128))]),_:1},16)}}}),mQe=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),hQe={class:"text-[#606266] truncate"},gQe={key:0},bQe=mQe(()=>e.createElementVNode("div",null,null,-1)),yQe=e.defineComponent({__name:"bcFormConfig",props:{parentConfig:{type:Object,default:()=>({labelWidth:150,xs:24,sm:24,md:12,lg:12,xl:8,style:"",minWidth:350,showColon:!1})},data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},rules:{type:Object,default:()=>{}},watchConfig:{type:Boolean,default:!0}},emits:["change"],setup(t,{expose:n,emit:r}){const o=t;let a=e.ref(o.data),l=e.ref(o.config);e.watch(()=>o.data,d=>{a.value=d},{deep:!0}),e.watch(()=>o.config,d=>{o.watchConfig&&(l.value=d)},{deep:!0});const i=e.ref(),s=()=>new Promise(d=>{if(!i.value){d(!1);return}i.value.validate(f=>{d(!!f)})});let u=r;const c=(d,f)=>{let p=f.prop;u("change",d,p,f)};return n({props:o,getSubmitData:s}),(d,f)=>{const p=e.resolveComponent("ele-Warning"),v=e.resolveComponent("el-icon"),m=e.resolveComponent("el-tooltip"),g=e.resolveComponent("hs-form-item"),b=e.resolveComponent("hs-col"),C=e.resolveComponent("hs-row"),w=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,e.mergeProps({ref_key:"formRef",ref:i,"label-width":t.parentConfig.labelWidth,inline:t.parentConfig.inline||!1,"label-position":"right","label-suffix":":","hide-required-asterisk":!1,"require-asterisk-position":"right","show-message":"","inline-message":"","status-icon":"",disabled:!1},d.$attrs,{"scroll-to-error":"",rules:t.rules,model:e.unref(a),style:`min-width: ${t.parentConfig.minWidth}px`}),{default:e.withCtx(()=>[e.createVNode(C,{gutter:0,justify:"start",align:"middle",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(y,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.show!==!1?(e.openBlock(),e.createBlock(b,{key:x,span:y.span||t.parentConfig.span,xs:y.xs||t.parentConfig.xs,sm:y.sm||t.parentConfig.sm,md:y.md||t.parentConfig.md,lg:y.lg||t.parentConfig.lg,xl:y.xl||t.parentConfig.xl,style:e.normalizeStyle(t.parentConfig.style)},{default:e.withCtx(()=>[y.slot?e.renderSlot(d.$slots,y.slot,e.normalizeProps(e.mergeProps({key:0},y)),void 0,!0):(e.openBlock(),e.createBlock(g,{key:1,label:y.label,prop:y.prop,required:y.required},{label:e.withCtx(()=>[e.createElementVNode("span",hQe,[e.createTextVNode(" "+e.toDisplayString(y.label)+" ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",gQe,": ")):e.createCommentVNode("",!0)]),e.createVNode(m,{class:"box-item",effect:"dark",content:y.tooltip||y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[y.slotValue?e.renderSlot(d.$slots,y.slotValue,e.normalizeProps(e.mergeProps({key:0},y)),void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.el),e.mergeProps({key:1,modelValue:e.unref(a)[y.prop],"onUpdate:modelValue":k=>e.unref(a)[y.prop]=k,multiple:y.multiple,size:y.size,type:y.type},y.attr,{disabled:y.disabled,border:"",clearable:y.clearable!=!1,onChange:k=>c(k,y)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.op||[],(k,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.cel),{key:S,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue","multiple","size","type","disabled","clearable","onChange"]))]),_:2},1032,["label","prop","required"]))]),_:2},1032,["span","xs","sm","md","lg","xl","style"])):e.createCommentVNode("",!0)],64))),256)),bQe]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),_Qe=Ar(yQe,[["__scopeId","data-v-db063ea8"]]),CQe=e.defineComponent({name:"bcTreeSelect"}),xQe=e.defineComponent({...CQe,props:{url:{},proxy:{},params:{},method:{},data:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.data)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.data)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Fn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function s(){o.value.focus()}function u(){o.value.blur()}function c(){return o.value.activeElement()}return n({focus:s,blur:u,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-tree-select");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"treeRef",ref:o,class:"bc-tree-select"},d.$attrs,{data:l.value}),null,16,["data"])}}}),wQe=[{prop:"attrs",label:"inputAttrs",tooltip:"inputAttrs",type:"object",el:"title",children:[{prop:"type",label:"input类型",tooltip:"input类型",type:"string 等原生 input 类型",el:"hs-select",op:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}],cel:"hs-option",required:!0,clearable:!1,rules:[{required:!0,message:"请选择type",trigger:"blur"}]},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"placeholder",label:"占位文本",tooltip:"输入框占位文本",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸,只在 type 不为 'textarea' 时有效",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮,只有当 type 不是 textarea时生效",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"maxlength",label:"maxlength",tooltip:"同原生 maxlength 属性",type:"string / number",el:"hs-input"},{prop:"minlength",label:"minlength",tooltip:"原生属性,最小输入长度",type:"string / number",el:"hs-input"},{prop:"show-word-limit",label:"统计字数",tooltip:"是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效",type:"boolean",el:"hs-switch"},{prop:"formatter",label:"输入值格式",tooltip:'指定输入值的格式。(只有当 type 是"text"时才能工作)',type:"Function",el:"hs-input"},{prop:"parser",label:"格式化器",tooltip:'指定从格式化器输入中提取的值。(仅当 type 是"text"时才起作用)',type:"Function",el:"hs-input"},{prop:"show-password",label:"密码图标",tooltip:"是否显示切换密码图标",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标",type:"string / Component",el:"hs-input"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标",type:"string / Component",el:"hs-input"},{prop:"rows",label:"输入框行数",tooltip:"输入框行数,仅 type 为 'textarea' 时有效",type:"number",el:"hs-input-number"},{prop:"autosize",label:"textarea 高度",tooltip:"textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }",type:"boolean / object",el:"hs-switch"},{prop:"autocomplete",label:"autocomplete",tooltip:"原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"name",label:"input name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"max",label:"max",tooltip:"原生 max 属性,设置最大值",type:"—",el:"hs-input"},{prop:"min",label:"min",tooltip:"原生属性,设置最小值",type:"—",el:"hs-input"},{prop:"step",label:"step",tooltip:"原生属性,设置输入字段的合法数字间隔",type:"—",el:"hs-input"},{prop:"resize",label:"resize",tooltip:"控制是否能被用户缩放",type:"enum",el:"hs-select",op:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}],cel:"hs-option"},{prop:"autofocus",label:"autofocus",tooltip:"原生属性,自动获取焦点",type:"boolean",el:"hs-switch"},{prop:"form",label:"form",tooltip:"原生属性",type:"string",el:"hs-input"},{prop:"label a11y",label:"label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"input-style",label:"input-style",tooltip:"input 元素或 textarea 元素的 style",type:"string / object",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],uN=[{prop:"blur",label:"聚焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"focus",label:"失焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"change",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"clear",label:"清空时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"input",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"}],c1={attrs:{size:"default",type:"text",clearable:!1,"show-password":!1,disabled:!1,autosize:!1,autocomplete:"off",autofocus:!1,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}};let kQe={size:"default",rules:"",inline:!0,labelPosition:"left",labelWidth:"80",labelSuffix:"",hideRequiredAsterisk:!1,requireAsteriskPosition:"left",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,scrollToError:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,submitUrl:"",submitSuccessMsg:""},EQe=[{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"inline",label:"行内表单模式",el:"hs-switch"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"inlineMessage",label:"是否以行内形式展示校验信息",tooltip:"是否以行内形式展示校验信息",el:"hs-switch"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"栅格间隔",prop:"gutter",type:"number",el:"hs-input-number"},{label:"盒子布局下的水平排列方式",prop:"justify",el:"hs-select",tooltip:"flex 布局下的水平排列方式",op:[{label:"从起始方向排列",value:"start"},{label:"从末尾方向排列",value:"end"},{label:"居中",value:"center"},{label:"两端对齐均匀分布",value:"space-between"},{label:"两端是中间间隔的一半均匀分布",value:"space-around"},{label:"间隔相等均匀分布",value:"space-evenly"}],cel:"hs-option"},{label:"盒子布局下的垂直排列方式",prop:"align",el:"hs-select",tooltip:"flex 布局下的垂直排列方式",op:[{label:"自上而下",value:"top"},{label:"居中",value:"middle"},{label:"自下而上",value:"bottom"}],cel:"hs-option"},{label:"自定义元素标签",prop:"tag",el:"hs-input"},{label:"提交表单的请求Url",prop:"submitUrl",el:"hs-input"},{label:"提交请求方式",prop:"submitUrlMethod",el:"hs-select",cel:"hs-option",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}]},{label:"表单提交成功的提示信息",prop:"submitSuccessMsg",el:"hs-input"}];const UI=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),x4={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","hs-tree-select":"hs-config-tree-select"},SQe={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let KI=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:c1}}),BQe={baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"label",label:"参数名称",el:"hs-input"},{prop:"prop",label:"查询参数",slotValue:"prop",el:"hs-input"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:UI.value},{prop:"label-width",label:"标签宽度",el:"hs-input"},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"groupMark",label:"分组标识",el:"hs-input",tooltip:"如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"},{prop:"positionInGroup",label:"组字段位置",tooltip:"字段在分组中是开始位置 还是 结束为止",el:"hs-select",cel:"hs-option",show:!0,op:[{label:"开始",value:"begin"},{label:"结束",value:"end"}]}],rules:SQe},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},n2=e.ref({id:"",data:{baseData:{},elData:{}}}),gl=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!0,subTitle:"表单配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20}});const GI={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},NQe=(t,n)=>Object.assign(t,{title:n}),TQe=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=NQe(t,"后台api获取接口"),Fn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function YI(){return{getApiDocs:TQe}}const DQe=(t,n)=>Object.assign(t,{title:n}),VQe=(t={})=>(t=DQe(t,"获取所有系统信息列表"),Fn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function XI(){return{getAllSystemInfo:VQe}}const ul=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),$Qe=(t={})=>(t=ul(t,"保存新表格字段设置"),Fn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),OQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),AQe=(t={})=>(t=ul(t,"查询新表格字段配置列表"),Fn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),MQe=(t={})=>(t=ul(t,"删除新表格字段配置"),Fn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),RQe=(t={})=>(t=ul(t,"保存新表格字段设置"),Fn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),IQe=(t={})=>(t=ul(t,"保存新表单字段设置"),Fn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),PQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),FQe=(t={})=>(t=ul(t,"根据菜单id查询字段信息"),Fn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),zQe=(t={})=>(t=ul(t,"查询字段池匹配字段"),Fn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),LQe=(t={})=>(t=ul(t,"根据表名和系统名称查询字段配置"),Fn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),HQe=(t={})=>(t=ul(t,"保存表格字段池在配置页面使用"),Fn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),WQe=(t={})=>(t=ul(t,"根据字段代码集合获取字段池信息"),Fn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),jQe=(t={})=>(t=ul(t,"批量保存表格字段池在配置页面使用"),Fn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t}));function Zf(){return{postAddField:$Qe,getFieldByMenu:OQe,getFieldListPage:AQe,postDelFieldById:MQe,postSaveField4Table:RQe,postSaveField4Form:IQe,getTableByMenu:PQe,getFormByMenu:FQe,getFieldPoolList:zQe,getFieldByTable:LQe,postSaveFieldPool4Config:HQe,getPoolByFieldMap:WQe,postSaveFieldPoolBatch4Config:jQe}}const Jf=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),qQe=(t={})=>(t=Jf(t,"获取按钮配置信息列表"),Fn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),UQe=(t={})=>(t=Jf(t,"保存按钮配置信息"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),KQe=(t={})=>(t=Jf(t,"保存按钮配置在配置页面使用"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),GQe=(t={})=>(t=Jf(t,"批量按钮配置在配置页面使用"),Fn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),YQe=(t={})=>(t=Jf(t,"删除"),Fn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t})),XQe=(t={})=>(t=Jf(t,"根据字段代码集合获取字段池信息"),Fn({url:"/scmp-web/pri/btn_config/get_btn_config_by_key_map",method:"post",data:t}));function d1(){return{getBtnConfigPageList:qQe,postSaveBtnConfig:UQe,postSaveBtnConfig4Config:KQe,postSaveBtnConfigBatch4Config:GQe,postDeleteBtnConfig:YQe,getBtnConfigByKeyMap:XQe}}const ZI=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),ZQe=(t={})=>(t=ZI(t,"删除"),Fn({url:"/qwp-web/pri/file/deleteFile",method:"post",data:t})),JQe=(t={})=>(t=ZI(t,"无附件删除"),Fn({url:"/qwp-web/pri/file/del_file_no_attch",method:"post",data:t}));function JI(){return{postDeleteFile:ZQe,postDelFileNoAttch:JQe}}const QQe=YI(),eet=Zf();function tet(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ge.cloneDeep(kQe);n.value=Ge.assign(n.value,{form:{id:new Date().getTime().toString(),baseData:i,formData:{},formConfig:[]}})},a=(i,s,u,c)=>{let d=i.map(f=>f[u]);if(r.value&&d.length<=0)return jn.warning("接口参数为空");eet.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:s&&s.project_code}).then(f=>{i.forEach(p=>{var m,g,b,C;let v=(g=(m=n.value)==null?void 0:m.form)==null?void 0:g.formConfig.map(w=>w.data.baseData.prop);if(!Ge.includes(v,p[u])&&!GI[p[u]]){let w=Ge.cloneDeep(KI.value);if(w.id=p[u]+new Date().getTime().toString(),w.data.baseData.label=p[c]||"参数名称",w.data.baseData.prop=p[u],w.data.baseData.el="hs-input",w.data.elData=Ge.cloneDeep(c1),console.log("res.data[param[key]]",f.data[p[u]]),f.code==1&&f.data&&f.data[p[u]]){let y=JSON.parse(f.data[p[u]].json_data);w.data=Ge.assign(w.data,y,{field_id:f.data[p[u]].id})}(C=(b=n.value)==null?void 0:b.form)==null||C.formConfig.push(w)}})})};return{parseForm:async()=>{var i,s;if(t.value){let u=Co.get("CURRENT_SYSTEM");if(!r.value){let p=JSON.parse(t.value);(i=n.value)!=null&&i.form||await o(),console.log("parseApi.value",p),a(p,u,"prop","label");return}let c=await QQe.getApiDocs({proxy:u.project_url}),d=(Ge.keys(c.paths)||[]).filter(p=>p==t.value),f=c.paths&&c.paths[d[0]]||void 0;if(f){let p=Object.keys(f)[0],m=(p&&f[p]||{}).parameters||[];(s=n.value)!=null&&s.form||await o(),a(m,u,"name","description")}else jn.warning("请检查url是否正确")}else o()},parseUrl:r}}const net={class:"flex flex-row"},ret=e.defineComponent({__name:"hsFormParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.useModel(t,"modelValue"),r=e.ref("");const{parseForm:o,parseUrl:a}=tet(r,n);return(l,i)=>{const s=e.resolveComponent("hs-switch"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析url:"),e.createVNode(s,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",net,[e.createVNode(u,{class:"basis-1/4 mr-2",modelValue:e.unref(r),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(r)?r.value=d:r=d),placeholder:"请输入解析接口"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}});function oet(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(n2.value):i;t("chose",s)};return{choseTagItem:o,appendField:()=>{var u,c,d,f,p;let i=Ge.cloneDeep(KI.value);i.id=new Date().getTime().toString(),(c=(u=r.value)==null?void 0:u.form)==null||c.formConfig.push(i);let s=((p=(d=r.value)==null?void 0:d.form)==null?void 0:p.formConfig[((f=r.value)==null?void 0:f.form.formConfig.length)-1])||Ge.cloneDeep(n2.value);o(s)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.baseData.label}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var s,u,c,d;(u=(s=r.value)==null?void 0:s.form)==null||delete u.formData[i.data.baseData.prop],Ge.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const aet=["onClick"],iet=["onClick"],set={class:"p-2"},uet=e.defineComponent({__name:"hsFormConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=oet(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.form.formConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.form.formConfig=f),animation:150},{default:e.withCtx(()=>{var f,p;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((p=(f=a.value)==null?void 0:f.form)==null?void 0:p.formConfig,v=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:v.id,onClick:m=>e.unref(u)(v)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==v.id?"bg-blue-200":""])},e.toDisplayString(v.data&&v.data.baseData.label),3),t.current.id==v.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(m=>e.unref(s)(v),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,iet)):e.createCommentVNode("",!0)],8,aet))),128)),e.createElementVNode("div",set,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...v)=>e.unref(i)&&e.unref(i)(...v)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),cet=Ar(uet,[["__scopeId","data-v-2a9416b3"]]);function det(t){return{toggleExpand:()=>{t.value=!t.value}}}const fet={key:0},vo=e.defineComponent({__name:"hsExpand",props:e.mergeModels({expandConfig:{type:Object,default:()=>({iconSize:18,subTitle:"",class:"",rightSlot:""})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{toggleExpand:r}=det(n);return(o,a)=>{const l=e.resolveComponent("svgIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex align-center justify-between cursor-pointer hover:bg-red-200",t.expandConfig.class])},[e.createElementVNode("div",{class:"flex align-center flex-1",onClick:a[0]||(a[0]=(...i)=>e.unref(r)&&e.unref(r)(...i))},[e.createVNode(l,{class:"pt-1",name:n.value?"ele-CaretBottom":"ele-CaretRight",size:t.expandConfig.iconSize||18},null,8,["name","size"]),e.createElementVNode("div",null,e.toDisplayString(t.expandConfig.subTitle),1)]),t.expandConfig.rightSlot?(e.openBlock(),e.createElementBlock("div",fet,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),pet=Zf();function vet(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ge.cloneDeep(BQe)),i=e.ref("hs-config-input");e.watch(()=>t.current,v=>{if(v&&v.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=v,o.value=Ge.cloneDeep(v),a.value=t.data),v&&v.id){l.value.elConfig.visible=!1;let m=o.value.data.baseData.el;i.value=x4[m]}},{deep:!0,immediate:!0}),e.watch(()=>o.value.data.baseData,v=>{v&&(l.value.baseConfig.list=l.value.baseConfig.list.map(m=>(m.prop=="positionInGroup"&&(m.show=!!o.value.data.baseData.groupMark,m.show||(o.value.data.baseData.positionInGroup="")),m)))},{deep:!0,immediate:!0});let s=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"2",field_code:"",project_code:""},qry_key:"field_code"});e.onMounted(()=>{let v=Co.get("CURRENT_SYSTEM"),m=s.value.params;m.project_code=v.project_code||"",s.value=Ge.assign(s.value,{params:m})});const u=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return{parentConfig:u,visible:c,formItemConfig:o,elComName:i,tableConfig:l,requestData:s,onChange:function(v,m){if(m!="el")return;l.value.elConfig.visible=!1,o.value.data.elData={};let g=o.value.data.baseData.el;i.value=x4[g],l.value.elConfig.visible=!0},saveData:async function(){var v,m,g;try{if(!await n.value.getSubmitData())return;let C=((v=r.value)==null?void 0:v.data.baseData.prop)||"",w=o.value.data.baseData.prop,y=((g=(m=o.value.data.elData)==null?void 0:m.attrs)==null?void 0:g.defaultValue)||"";if(Ge.has(a.value,w)&&w!=C)return jn.warning("查询参数重复,请修改");if(Ge.has(a.value,C)&&C!=w&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[w]:y}),r.value=Object.assign(r.value||{},Ge.cloneDeep(o.value)),o.value.data.field_id)return;let x=Co.get("CURRENT_SYSTEM"),k={field_code:o.value.data.baseData.prop,field_name:o.value.data.baseData.label,field_type:"2",json_data:JSON.stringify(o.value.data),project_code:x.project_code};pet.postSaveFieldPool4Config(k)}catch(b){console.log("er",b)}},onChangeItem:v=>{console.log("JSON.parse(item.json_data)",JSON.parse(v.json_data)),l.value.elConfig.visible=!1,o.value.data=Ge.assign(o.value.data,JSON.parse(v.json_data),{field_id:v.id});let m=o.value.data.baseData.el;i.value=x4[m]}}}const met={class:"bg-blue-200 h-full flex flex-col"},het={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},get={key:0},bet={class:"text-center grow-0"},yet=e.defineComponent({__name:"hsAttrForm",props:{current:{type:Object,default(){return{}}},data:{type:Object,default(){return{}}}},setup(t){const n=t,r=e.ref(),{parentConfig:o,visible:a,formItemConfig:l,elComName:i,tableConfig:s,requestData:u,onChange:c,saveData:d,onChangeItem:f}=vet(n,r);return(p,v)=>{var b,C,w,y,x;const m=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",met,[e.createElementVNode("div",het,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(a),"onUpdate:modelValue":v[0]||(v[0]=k=>e.isRef(a)?a.value=k:null),expandConfig:{subTitle:"表单项代码"}},null,8,["modelValue"])),e.unref(a)?(e.openBlock(),e.createElementBlock("div",get,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(s).baseConfig.visible,"onUpdate:modelValue":v[1]||(v[1]=k=>e.unref(s).baseConfig.visible=k),expandConfig:e.unref(s).baseConfig.title},null,8,["modelValue","expandConfig"])),e.createTextVNode(" "+e.toDisplayString((b=e.unref(l))==null?void 0:b.data.baseData)+" ",1),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:r,parentConfig:e.unref(o),data:(C=e.unref(l))==null?void 0:C.data.baseData,config:e.unref(s).baseConfig.list,rules:e.unref(s).baseConfig.rules,onChange:e.unref(c)},{prop:e.withCtx(()=>[e.createVNode(m,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"form",modelValue:e.unref(l).data.baseData.prop,"onUpdate:modelValue":v[2]||(v[2]=k=>e.unref(l).data.baseData.prop=k),onChange:e.unref(f)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(s).baseConfig.visible]]),e.createTextVNode(" "+e.toDisplayString((w=e.unref(l))==null?void 0:w.data.elData)+" ",1),(y=e.unref(l))!=null&&y.data.baseData.el?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(s).elConfig.visible,"onUpdate:modelValue":v[3]||(v[3]=k=>e.unref(s).elConfig.visible=k),expandConfig:e.unref(s).elConfig.title},null,8,["modelValue","expandConfig"])),e.unref(s).elConfig.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{key:0,data:(x=e.unref(l))==null?void 0:x.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",bet,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),_et={class:"mx-auto flex flex-row h-full"},Cet={class:"flex-1 grow overflow-y-auto"},xet={key:0},wet={key:0,class:"flex-none basis-1/4 ml-4"},ket=e.defineComponent({name:"formPanel"}),Eet=e.defineComponent({...ket,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ge.cloneDeep(EQe)),o=Ge.cloneDeep(n2),a=e.ref("");e.watch(()=>n.value,i=>{a.value!=(i==null?void 0:i.config_unique_id)&&(o.value=Ge.cloneDeep(n2),a.value=(i==null?void 0:i.config_unique_id)||"")},{immediate:!0});const l=i=>{o.value=i};return(i,s)=>{var u,c,d,f,p;return e.openBlock(),e.createElementBlock("div",_et,[e.createElementVNode("div",Cet,[e.createVNode(vo,{modelValue:e.unref(gl).code.visible,"onUpdate:modelValue":s[0]||(s[0]=v=>e.unref(gl).code.visible=v),expandConfig:e.unref(gl).code},null,8,["modelValue","expandConfig"]),e.unref(gl).code.visible?(e.openBlock(),e.createElementBlock("div",xet,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(ret,{modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=v=>n.value=v)},null,8,["modelValue"]),(u=n.value)!=null&&u.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(gl).form.visible,"onUpdate:modelValue":s[2]||(s[2]=v=>e.unref(gl).form.visible=v),expandConfig:e.unref(gl).form},null,8,["modelValue","expandConfig"])),e.unref(gl).form.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:n.value.form.baseData,config:e.unref(r)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(gl).formItem.visible,"onUpdate:modelValue":s[3]||(s[3]=v=>e.unref(gl).formItem.visible=v),expandConfig:e.unref(gl).formItem},null,8,["modelValue","expandConfig"])),e.unref(gl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(cet),{key:1,modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=v=>n.value=v),current:e.unref(o),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=(c=n.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",wet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(yet),{current:e.unref(o),data:(p=(f=n.value)==null?void 0:f.form)==null?void 0:p.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),Bet={class:"icon-selector w100 h100"},Net={class:"icon-selector-warp"},Tet={class:"icon-selector-warp-title"},Det=e.defineComponent({name:"iconSelector"}),QI=e.defineComponent({...Det,props:{prepend:{type:String,default:()=>"ele-Pointer"},placeholder:{type:String,default:()=>"请输入内容搜索图标或者选择图标"},size:{type:String,default:()=>"default"},title:{type:String,default:()=>"请选择图标"},disabled:{type:Boolean,default:()=>!1},clearable:{type:Boolean,default:()=>!0},emptyDescription:{type:String,default:()=>"无相关图标"},isShowPrepend:{type:Boolean,default:!0},modelValue:String},emits:["update:modelValue","get","clear"],setup(t,{emit:n}){const r=t,o=n,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./list-ETGGSxj3.js"))),l=e.ref(),i=e.reactive({fontIconPrefix:"",fontIconWidth:0,fontIconSearch:"",fontIconPlaceholder:"",fontIconTabActive:"ali",fontIconList:{ali:[],ele:[],awe:[]}}),s=()=>{if(!r.modelValue)return!1;i.fontIconSearch="",i.fontIconPlaceholder=r.modelValue},u=()=>{const y=d();setTimeout(()=>{y.filter(k=>k===i.fontIconSearch).length<=0&&(i.fontIconSearch="")},300)},c=e.computed(()=>{const y=d();if(!i.fontIconSearch)return y;let x=i.fontIconSearch.trim().toLowerCase();return y.filter(k=>{if(k.toLowerCase().indexOf(x)!==-1)return k})}),d=()=>{let y=[];return i.fontIconTabActive==="ali"?y=i.fontIconList.ali:i.fontIconTabActive==="ele"?y=i.fontIconList.ele:i.fontIconTabActive==="awe"&&(y=i.fontIconList.awe),y},f=()=>{if(r.modelValue==="")return i.fontIconPlaceholder=r.placeholder;i.fontIconPlaceholder=r.modelValue,i.fontIconPrefix=r.modelValue},p=()=>{let y="ali";return r.modelValue&&(r.modelValue.indexOf("iconfont")>-1?y="ali":r.modelValue.indexOf("ele-")>-1?y="ele":r.modelValue.indexOf("fa")>-1&&(y="awe"),i.fontIconTabActive=y),y},v=async y=>{if(y==="ali"){if(i.fontIconList.ali.length>0)return;await rg.ali().then(x=>{i.fontIconList.ali=x.map(k=>`iconfont ${k}`)})}else if(y==="ele"){if(i.fontIconList.ele.length>0)return;await rg.ele().then(x=>{i.fontIconList.ele=x})}else if(y==="awe"){if(i.fontIconList.awe.length>0)return;await rg.awe().then(x=>{i.fontIconList.awe=x.map(k=>`fa ${k}`)})}i.fontIconPlaceholder=r.placeholder,f()},m=y=>{v(y.paneName),l.value.focus()},g=y=>{i.fontIconPlaceholder=y,i.fontIconPrefix=y,o("get",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix),l.value.focus()},b=()=>{i.fontIconPrefix="",o("clear",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix)},C=()=>{e.nextTick(()=>{var y;i.fontIconWidth=(y=l.value.$el)==null?void 0:y.offsetWidth})},w=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{v(p()),w(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(y,x)=>{const k=e.resolveComponent("SvgIcon"),S=e.resolveComponent("el-input"),B=e.resolveComponent("el-tab-pane"),E=e.resolveComponent("el-tabs"),D=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Bet,[e.createVNode(S,{modelValue:i.fontIconSearch,"onUpdate:modelValue":x[0]||(x[0]=N=>i.fontIconSearch=N),placeholder:i.fontIconPlaceholder,clearable:t.clearable,disabled:t.disabled,size:t.size,ref_key:"inputWidthRef",ref:l,onClear:b,onFocus:s,onBlur:u},e.createSlots({_:2},[t.isShowPrepend?{name:"prepend",fn:e.withCtx(()=>{var N,V;return[(i.fontIconPrefix===""?((N=t.prepend)==null?void 0:N.indexOf("ele-"))>-1:((V=i.fontIconPrefix)==null?void 0:V.indexOf("ele-"))>-1)?(e.openBlock(),e.createBlock(k,{key:0,name:i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,class:"font14"},null,8,["name"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,"font14"])},null,2))]}),key:"0"}:void 0]),1032,["modelValue","placeholder","clearable","disabled","size"]),e.createVNode(D,{placement:"bottom",width:i.fontIconWidth,transition:"el-zoom-in-top","popper-class":"icon-selector-popper",trigger:"click","virtual-ref":l.value,"virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",Net,[e.createElementVNode("div",Tet,e.toDisplayString(t.title),1),e.createVNode(E,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":x[1]||(x[1]=N=>i.fontIconTabActive=N),onTabClick:m},{default:e.withCtx(()=>[e.createVNode(B,{lazy:"",label:"ali",name:"ali"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(B,{lazy:"",label:"ele",name:"ele"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(B,{lazy:"",label:"awe",name:"awe"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["width","virtual-ref"])])}}});function Vet(t,n){const r=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"});let o=e.ref({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",value_key:"btn_label",params:{btn_name:"",project_code:""},qry_key:"btn_name"});return e.onMounted(()=>{let i=Co.get("CURRENT_SYSTEM"),s=o.value.params;s.project_code=i.project_code||"",o.value=Ge.assign(o.value,{params:s})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ge.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const eP=e.defineComponent({__name:"hsBtnItemConfig",props:e.mergeModels({config:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=e.useModel(t,"modelValue"),o=e.ref(),{parentConfig:a,requestData:l,onChangeItem:i,getSubmitData:s}=Vet(r,o);return n({getSubmitData:s}),(u,c)=>{const d=e.resolveComponent("bc-auto-complete");return e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:o,parentConfig:e.unref(a),data:r.value,config:t.config.list,rules:t.config.rules},{key:e.withCtx(()=>[e.createVNode(d,{url:e.unref(l).url,qry_key:e.unref(l).qry_key,params:e.unref(l).params,type:"btn",value_key:e.unref(l).value_key,modelValue:r.value.key,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value.key=f),onChange:e.unref(i)},null,8,["url","qry_key","params","value_key","modelValue","onChange"])]),btnIcon:e.withCtx(()=>[e.createVNode(QI,{placeholder:"请选择图标",clearable:"",isShowPrepend:!1,modelValue:r.value.btnIcon,"onUpdate:modelValue":c[1]||(c[1]=f=>r.value.btnIcon=f),title:""},null,8,["modelValue"])]),_:1},8,["parentConfig","data","config","rules"])}}});let $et=e.ref({id:"",tableName:"表格配置名称",method:"get",is_slot_loading:!1,is_slot_empty:!1,is_apply_page:!0,isCloseInitData:!1,table_page_data:{loading:!1,currentPage:1,pageSize:10,total:0,pagerCount:7,pageSizes:"string=[10,15,20,50,100]",align:"right",border:!1,background:!1,perfect:!1,autoHidden:!1},dynamicColumn:{isDynamicRequestConfig:!1,requestDynamicUrl:"",requestDynamicParams:"",dynamicMethod:"get",dynamicProxy:""},height:"auto",stripe:!0,border:"none",round:!1,size:"small",loading:!1,align:"left",headerAlign:"left",footerAlign:"left",showHeader:!0,showFooter:!1,columnConfig:{useKey:!1,isCurrent:!1,isHover:!0,resizable:!1,maxFixedSize:4},rowConfig:{useKey:!1,keyField:"_X_ROW_KEY",isCurrent:!0,isHover:!0},resizeConfig:{refreshDelay:250},resizableConfig:{minWidth:"auto"},seqConfig:{},sortConfig:{defaultSort:{},multiple:!1,chronological:!1,remote:!1,showIcon:!0},filterConfig:{remote:!1,filterMethod:"",showIcon:!0},radioConfig:{strict:!0,reserve:!1,highlight:!1},checkboxConfig:{},tooltipConfig:{},expandConfig:{expandAll:!1,accordion:!1,trigger:"default",lazy:!1,reserve:!1,showIcon:!0},treeConfig:{transform:!1,rowField:"id",parentField:"parentId",childrenField:"children",indent:20,showLine:!1,expandAll:!1,accordion:!1,trigger:"default",lazy:!1,hasChildField:"hasChild",reserve:!1,showIcon:!0},editConfig:{trigger:"click",enabled:!0,mode:"cell",showIcon:!0,showStatus:!1,showUpdateStatus:!1,showInsertStatus:!1,showAsterisk:!0,autoClear:!0},validConfig:{autoPos:!0,showMessage:!0},editRules:{},emptyRender:{},loadingConfig:{},customConfig:{storage:{}},scrollX:{},scrollY:{}}),Oet=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",el:"hs-input"},{prop:"requestUrl",label:"请求地址",type:"",el:"hs-input"},{prop:"method",label:"请求方式",type:"",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"系统代理",type:"",el:"hs-input"},{prop:"data",label:"表格数据",tooltip:"表格数据(与 loadData 行为一致,更新数据是不会重置状态)",type:"",el:"hs-input"},{prop:"minHeight",label:"表格最小高度",type:"",el:"hs-input"},{prop:"maxHeight",label:"表格的最大高度",type:"",el:"hs-input"},{prop:"border",label:"是否带有边框",type:"",op:[{label:"默认",value:"default"},{label:"完整边框",value:"full"},{label:"外边框",value:"outer"},{label:"内边框",value:"inner"},{label:"无边框",value:"none"}],el:"hs-select",cel:"hs-option"},{prop:"size",label:"表格的尺寸",type:"",op:[{label:"中等",value:"medium"},{label:"小",value:"small"},{label:"超小",value:"mini"}],el:"hs-select",cel:"hs-option"},{prop:"align",label:"所有的列对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"headerAlign",label:"所有的表头列的对齐方式",tooltip:"所有的表头列的对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"footerAlign",label:"所有的表尾列的对齐方式",type:"",tooltip:"所有的表尾列的对齐方式",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"emptyText",label:"空数据时显示的内容",type:"",el:"hs-input"},{prop:"showOverflow",label:"设置所有内容溢出显示",tooltip:"设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度)",type:"",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeaderOverflow",label:"设置表头内容溢出显示",type:"",tooltip:"设置表头所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showFooterOverflow",label:"设置表尾内容溢出显示",type:"",tooltip:"设置表尾所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeader",label:"是否显示表头",type:"",el:"hs-switch"},{prop:"keepSource",label:"保持原始值的状态",type:"",tooltip:"保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)",el:"hs-switch"},{prop:"loading",label:"表格是否显示加载中",type:"",el:"hs-switch"},{prop:"round",label:"是否为圆角边框",type:"",el:"hs-switch"},{prop:"stripe",label:"是否带有斑马纹",type:"",tooltip:"是否带有斑马纹(需要注意的是,在可编辑表格场景下,临时插入的数据不会有斑马纹样式)",el:"hs-switch"},{prop:"autoResize",label:"监听父元素变化重新计算表格",tooltip:"自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)",type:"",el:"hs-switch"},{prop:"syncResize",label:"随属性的变化重新计算表格",type:"",tooltip:"自动跟随某个属性的变化去重新计算表格,和手动调用 recalculate 方法是一样的效果(对于通过某个属性来控制显示/隐藏切换时可能会用到)",el:"hs-switch"},{prop:"showFooter",label:"是否显示表尾",el:"hs-switch"},{prop:"is_slot_loading",label:"自定义加载中模板",el:"hs-switch"},{prop:"is_slot_empty",label:"自定义空数据时显示模板",el:"hs-switch"},{prop:"rowClassName",label:"给行附加样式类",tooltip:"给行附加 className",type:"textarea",el:"hs-input"},{prop:"cellClassName",label:"给单元格附加样式类",type:"textarea",tooltip:"给单元格附加 className",el:"hs-input"},{prop:"headerRowClassName",label:"给表头的行附加样式类",tooltip:"给表头的行附加 className",type:"textarea",el:"hs-input"},{prop:"headerCellClass-name",label:"给表头的单元格附加样式类",type:"textarea",tooltip:"给表头的单元格附加 className",el:"hs-input"},{prop:"footerRowClassName",label:"给表尾的行附加样式类",tooltip:"给表尾的行附加 className",type:"textarea",el:"hs-input"},{prop:"footerCellClassName",label:"给表尾的单元格附加样式类",type:"textarea",el:"hs-input"},{prop:"footerMethod",label:"表尾的数据获取方法",tooltip:"表尾的数据获取方法,返回一个二维数组",type:"textarea",el:"hs-input"},{prop:"mergeCells",label:"临时合并指定的单元格",tooltip:"临时合并指定的单元格 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"mergeFooterItems",label:"临时合并表尾",tooltip:"临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"params",label:"自定义参数",type:"textarea",el:"hs-input"},{prop:"is_apply_page",label:"是否分页",el:"hs-switch"},{prop:"isCloseInitData",label:"是否关闭初始化数据",tooltip:"是否关闭第一次加载数据",el:"hs-switch"}];const Aet=[{key:"dynamicColumn",visible:!1,title:"动态配置列",dynamicColumn:[{prop:"isDynamicRequestConfig",label:"是否请求动态配置",el:"hs-switch"},{prop:"requestDynamicUrl",label:"请求动态配置地址",el:"hs-input"},{prop:"requestDynamicParams",label:"请求动态配置参数",el:"hs-input"},{prop:"dynamicMethod",label:"请求动态配置方式",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"dynamicProxy",label:"请求动态配置代理",el:"hs-input"}]},{key:"columnConfig",visible:!1,title:"列的默认参数",columnConfig:[{prop:"useKey",label:"是否为每列设置key属性",tooltip:"是否需要为每一列的 VNode 设置 key 属性",type:"",el:"hs-switch"},{prop:"isCurrent",label:"点击列头当前列是否高亮",tooltip:"当鼠标点击列头时,是否要高亮当前列",type:"",el:"hs-switch"},{prop:"isHover",label:"当鼠标移到列头时,是否要高亮当前头",tooltip:"当鼠标移到列头时,是否要高亮当前列头",type:"",el:"hs-switch"},{prop:"resizable",label:"每一列是否启用列宽调整",type:"",tooltip:"每一列是否启用列宽调整",el:"hs-switch"},{prop:"width",label:"每一列的宽度",tooltip:"每一列的宽度",type:"",el:"hs-input"},{prop:"minWidth",label:"每一列的最小宽度",tooltip:"每一列的最小宽度",type:"",el:"hs-input"},{prop:"maxFixedSize",label:"固定列允许设置的最大数量",tooltip:"固定列允许设置的最大数量(如果是分组,则一个分组算一个",type:"number",el:"hs-input-number"},{prop:"header-export-method",label:"每一列的自定义表头单元格数据导出方法",tooltip:"每一列的自定义表头单元格数据导出方法,返回自定义的标题",type:"textarea",el:"hs-input"},{prop:"export-method",label:"每一列的自定义单元格数据导出方法",tooltip:"每一列的自定义单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"},{prop:"footer-export-method",label:"每一列的自定义表尾单元格数据导出方法",tooltip:"每一列的自定义表尾单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"}]},{key:"rowConfig",visible:!1,title:"行配置信息",rowConfig:[{prop:"useKey",label:"是否为每行设置key属性",type:"",tooltip:"是否需要为每一行的 VNode 设置 key 属性",el:"hs-switch"},{prop:"keyField",label:"自定义行主键的字段名",type:"",tooltip:"自定义行数据唯一主键的字段名(默认自动生成)",el:"hs-input"},{prop:"isCurrent",label:"点击行是否要高亮当前行",tooltip:"当鼠标点击行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"isHover",label:"鼠标悬浮行是否高亮显示",tooltip:"当鼠标移到行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"height",label:"每一行的高度",tooltip:"只对 show-overflow 有效,每一行的高度",type:"number",el:"hs-input-number"}]},{key:"resizeConfig",visible:!1,title:"响应式布局配置项",resizeConfig:[{prop:"refreshDelay",label:"刷新延时时长(毫秒)",type:"number",el:"hs-input-number",tooltip:"只对 auto-resize 有效,刷新延时,当父容器发生变化时,至少多少毫秒刷新布局"}]},{key:"resizableConfig",visible:!1,title:"列宽拖动配置项",resizableConfig:[{prop:"minWidth",label:"列宽拖动的最小宽度",type:"",tooltip:"列宽拖动的最小宽度",el:"hs-input"}]},{key:"seqConfig",visible:!1,title:"序号配置项",seqConfig:[{prop:"seqMethod",label:"自定义序号的方法",type:"textarea",el:"hs-input",tooltip:"自定义序号的方法返回处理后的值"}]},{key:"sortConfig",visible:!1,title:"排序配置项",sortConfig:[{prop:"orders",label:"自定义序号的方法",type:"textarea",tooltip:"自定义轮转顺序",el:"hs-input"},{prop:"sortMethod",label:"全局排序方法",type:"textarea",tooltip:"全局排序方法,当触发排序时会调用该函数返回排序后的列表",el:"hs-input"},{prop:"multiple",label:"是否启用多列组合筛选",type:"",tooltip:"是否启用多列组合筛选",el:"hs-switch"},{prop:"chronological",label:"是否按照触发顺序进行排序",type:"",tooltip:"只对 multiple 有效,是否按照先后触发顺序进行排序",el:"hs-switch"},{prop:"remote",label:"所有列是否使用服务端排序",type:"",tooltip:"所有列是否使用服务端排序,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"点击按钮",value:"default"},{label:"点击表头",value:"cell"}]},{prop:"showIcon",label:"是否显示列头排序图标",type:"",tooltip:"是否显示列头排序图标",el:"hs-switch"},{prop:"iconAsc",label:"自定义升序的图标",tooltip:"自定义升序的图标",type:"",el:"hs-input"},{prop:"iconDesc",label:"自定义降序的图标",tooltip:"自定义降序的图标",type:"",el:"hs-input"}],second_config:[{key:"defaultSort",visible:!1,title:"默认排序",defaultSort:[{prop:"field",label:"列字段名",el:"hs-input"},{prop:"order",label:"排序方式",el:"hs-input"}]}]},{key:"filterConfig",visible:!1,title:"筛选配置项",filterConfig:[{prop:"remote",label:"所有列是否使用服务端筛选",type:"",tooltip:"所有列是否使用服务端筛选,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"filterMethod",label:"全局筛选方法",type:"textarea",tooltip:"全局筛选方法,当触发筛选时会调用该函数返回是否有效",el:"hs-input"},{prop:"showIcon",label:"是否显示列头筛选图标",tooltip:"是否显示列头筛选图标",type:"",el:"hs-switch"},{prop:"iconNone",label:"自定义无条件时显示的图标",type:"",tooltip:"自定义无条件时显示的图标",el:"hs-input"},{prop:"iconMatch",label:"自定义带条件时显示的图标",tooltip:"自定义带条件时显示的图标",type:"",el:"hs-input"},{prop:"confirmButtonText",label:"自定义确认按钮文本",tooltip:"自定义确认按钮文本",type:"",el:"hs-input"},{prop:"resetButtonText",label:"自定义重置按钮文本",type:"",el:"hs-input"}]},{key:"radioConfig",visible:!1,title:"单选框配置项",radioConfig:[{prop:"strict",label:"严格模式,选中后不能取消",tooltip:"严格模式,选中后不能取消",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,例如:数据被刷新或者分页之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"labelField",label:"单选框显示的字段名",tooltip:"单选框显示的字段名,可以直接显示在单选框中",type:"",el:"hs-input"},{prop:"checkRowKey",label:"默认选中指定行",tooltip:"默认选中指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",type:"",el:"hs-input"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 radio 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许选中的方法",tooltip:"是否允许选中的方法,该方法的返回值用来决定这一行的 radio 是否可以选中",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮选中行",type:"",el:"hs-switch"}]},{key:"checkboxConfig",visible:!1,title:"复选框配置项",checkboxConfig:[{prop:"labelField",label:"复选框显示的字段名",tooltip:"复选框显示的字段名,可以直接显示在复选框中",type:"",el:"hs-input"},{prop:"checkField",label:"绑定选中属性",tooltip:"绑定选中属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"indeterminateField",label:"绑定半选属性",tooltip:"绑定半选属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"showHeader",label:"是否显示全选按钮",tooltip:"是否显示全选按钮(如果 checkStrictly=true 则默认为 false)",type:"",el:"hs-switch"},{prop:"checkAll",label:"默认勾选所有",tooltip:"默认勾选所有(只会在初始化时被触发一次)",type:"",el:"hs-switch"},{prop:"checkRowKeys",label:"默认勾选指定行",type:"textarea",tooltip:"默认勾选指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"checkStrictly",label:"是否严格的遵循父子不互相关联的做法",type:"",tooltip:"是否严格的遵循父子不互相关联的做法",el:"hs-switch"},{prop:"strict",label:"严格模式",type:"",tooltip:"严格模式,当数据为空或全部禁用时,列头的复选框为禁用状态",el:"hs-switch"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 checkbox 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法的返回值用来决定这一行的 checkbox 是否可以勾选",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮勾选行",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"range",label:"开启复选框范围选择功能",type:"",tooltip:"开启复选框范围选择功能(启用后通过鼠标在复选框的列内滑动选中或取消指定行)",el:"hs-switch"},{prop:"isShiftKey",label:"开启复选框指定行选择功能",tooltip:"开启复选框指定行选择功能(启用后通过鼠标点击和 shift 键选取指定范围的行)",type:"",el:"hs-switch"}]},{key:"tooltipConfig",visible:!1,title:"tooltip 配置项",tooltipConfig:[{prop:"showAll",label:"所有单元格开启工具提示",tooltip:"所有单元格开启工具提示",type:"",el:"hs-switch"},{prop:"theme",label:"主题颜色",tooltip:"tooltip 的主题颜色",type:"",el:"hs-select",cel:"hs-option",op:[{label:"暗黑",value:"dark"},{label:"明亮",value:"light"}]},{prop:"enterable",label:"鼠标是否可进入到工具提示中",tooltip:"鼠标是否可进入到工具提示中",type:"",el:"hs-switch"},{prop:"enterDelay",label:"鼠标移入后延时多少才显示工具提示",tooltip:"鼠标移入后延时多少才显示工具提示",type:"number",el:"hs-input-number"},{prop:"leaveDelay",label:"鼠标移出后延时多少才隐藏工具提示",type:"number",el:"hs-input-number"},{prop:"contentMethod",label:"通过返回值来重写默认的提示内容",type:"textarea",el:"hs-input",tooltip:"该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容"}]},{key:"expandConfig",visible:!1,title:"展开行配置项(不支持虚拟滚动)",expandConfig:[{prop:"labelField",label:"展开列显示的字段名",type:"",tooltip:"展开列显示的字段名,可以直接显示在单元格中",el:"hs-input"},{prop:"expandAll",label:"默认展开所有行",type:"",tooltip:"默认展开所有行(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定行",type:"textarea",tooltip:"默认展开指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"accordion",label:"每次只能展开一行",type:"",el:"hs-switch"},{prop:"height",label:"展开内容的高度",tooltip:"展开内容的高度,默认自适应高度",type:"",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",el:"hs-switch"},{prop:"loadMethod",label:"该方法用于异步加载展开后的内容",type:"textarea",tooltip:"该方法用于异步加载展开后的内容(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"该方法在展开或关闭触发之前调用",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"visibleMethod",label:"是否允许显示展开按钮",tooltip:"该函数的返回值用来决定是否允许显示展开按钮",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"treeConfig",visible:!1,title:"树形结构配置项",treeConfig:[{prop:"transform",label:"自动将列表转为树结构",tooltip:"自动将列表转为树结构(支持虚拟滚动)",type:"",el:"hs-switch"},{prop:"rowField",label:"树节点的字段名",tooltip:"用于 treeConfig.transform,树节点的字段名",type:"",el:"hs-input"},{prop:"parentField",label:"树父节点的字段名",tooltip:"用于 treeConfig.transform,树父节点的字段名",type:"",el:"hs-input"},{prop:"childrenField",label:"树子节点的字段名",type:"",el:"hs-input"},{prop:"indent",label:"树节点的缩进",type:"number",el:"hs-input-number"},{prop:"showLine",label:"树节点的连接线",type:"",tooltip:"树节点的连接线(启用连接线会降低渲染性能)",el:"hs-switch"},{prop:"expandAll",label:"默认展开所有子孙树节点",type:"",tooltip:"默认展开所有子孙树节点(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定树节点",type:"textarea",el:"hs-input",tooltip:"默认展开指定树节点(只会在初始化时被触发一次,需要有 rowConfig.keyField)"},{prop:"accordion",label:"同级节点每次只展开一个",tooltip:"对于同一级的节点,每次只能展开一个",type:"",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",tooltip:"是否使用懒加载(启用后只有指定 hasChild 字段的节点才允许被点击)",el:"hs-switch"},{prop:"hasChildField",label:"标识是否存在子节点",tooltip:"只对 lazy 启用后有效,标识是否存在子节点,从而控制是否允许被点击",type:"",el:"hs-input"},{prop:"loadMethod",label:"该方法用于异步加载子节点",type:"textarea",tooltip:"该方法用于异步加载子节点(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"在展开或关闭触发判断是否继续执行",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"editConfig",visible:!1,title:"可编辑配置项",editConfig:[{prop:"trigger",label:"触发方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"手动触发(用于行编辑模式)",value:"manual"},{label:"点击触发编辑",value:"click"},{label:"双击触发编辑",value:"dblclick"}]},{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"编辑模式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"单元格编辑模式",value:"cell"},{label:"行编辑模式",value:"row"}]},{prop:"showIcon",label:"是否显示列头编辑图标",tooltip:"是否显示列头编辑图标",type:"",el:"hs-switch"},{prop:"showStatus",label:"是否显示单元格新增与修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格新增与修改状态",el:"hs-switch"},{prop:"showUpdateStatus",label:"是否显示单元格修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格修改状态",el:"hs-switch"},{prop:"showInsertStatus",label:"是否显示单元格新增状态",tooltip:"只对 keep-source 开启有效,是否显示单元格新增状态",type:"",el:"hs-switch"},{prop:"showAsterisk",label:"是否显示必填字段的红色星号",tooltip:"是否显示必填字段的红色星号",type:"",el:"hs-switch"},{prop:"autoClear",label:"点空白处是否清除激活状态",type:"",tooltip:"当点击非编辑列之后,是否自动清除单元格的激活状态",el:"hs-switch"},{prop:"beforeEditMethod",label:"该单元格是否允许编辑",tooltip:"该方法的返回值用来决定该单元格是否允许编辑",type:"textarea",el:"hs-input"},{prop:"icon",label:"自定义可编辑列的状态图标",type:"",el:"hs-input"}]},{key:"validConfig",visible:!1,title:"校验配置项",validConfig:[{prop:"autoPos",label:"是否自动定位到校验不通过的单元格",tooltip:"是否自动定位到校验不通过的单元格",type:"",el:"hs-switch"},{prop:"showMessage",label:"是否显示错误显示",type:"",el:"hs-switch"}]},{key:"editRules",visible:!1,title:"校验规则配置项",editRules:[{prop:"required",label:"是否必填",type:"",el:"hs-switch"},{prop:"min",label:"校验值最小长度",tooltip:"校验值最小长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"max",label:"校验值最大长度",tooltip:"校验值最大长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"type",label:"数据校验的类型",type:"",op:[{label:"数值",value:"number"},{label:"字符串",value:"string"},{label:"数组",value:"array"}],el:"hs-select",cel:"hs-option"},{prop:"pattern",label:"正则校验",type:"textarea",el:"hs-input"},{prop:"validator",label:'"自定义校验方法',tooltip:'自定义校验方法返回一个 Error 或者 Promise<new Error("提示消息")>',type:"textarea",el:"hs-input"},{prop:"message",label:"校验提示内容",tooltip:"校验提示内容(支持开启国际化)",type:"",el:"hs-input"}]},{key:"emptyRender",visible:!1,title:"空内容渲染配置项",emptyRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"}]},{key:"loadingConfig",visible:!1,title:"加载中配置项",loadingConfig:[{prop:"icon",label:"显示图标",type:"",el:"hs-input"},{prop:"text",label:"显示文字",type:"",el:"hs-input"}]},{key:"customConfig",visible:!1,title:"个性化信息配置项",customConfig:[{prop:"checkMethod",label:"自定义列是否允许列选中的方法",tooltip:"自定义列是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中",type:"textarea",el:"hs-input"}],second_config:[{key:"storage",visible:!1,title:"是否启用缓存本地保存",storage:[{prop:"visible",label:"启用显示/隐藏列状态缓存",tooltip:"启用显示/隐藏列状态缓存",type:"",el:"hs-switch"},{prop:"resizable",label:"启用列宽状态缓存",type:"",el:"hs-switch"},{prop:"fixed",label:"启用固定列状态缓存",type:"",el:"hs-switch"}]}]},{key:"scrollX",visible:!1,title:"横向虚拟滚动配置",scrollX:[{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"gt",label:"指定大于指定列时自动启动横向虚拟滚动",tooltip:"指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToLeftOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将横向滚动条滚动到左侧",type:"",el:"hs-switch"}]},{key:"scrollY",visible:!1,title:"纵向虚拟滚动配置",scrollY:[{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"滚动模式",type:"",op:[{label:"默认",value:"default"},{label:"无限滚动",value:"wheel"}],el:"hs-select",cel:"hs-option"},{prop:"gt",label:"指定大于指定行时自动启动纵向虚拟滚动",tooltip:"指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToTopOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将纵向滚动条滚动到顶部",type:"",el:"hs-switch"}]}],Met=[{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"中等",value:"medium"},{label:"小号",value:"small"},{label:"迷你",value:"mini"}]},{prop:"loading",label:"是否加载中",el:"hs-switch"},{prop:"layouts",label:"自定义布局",type:"textarea",el:"hs-input"},{prop:"currentPage",label:"当前页",type:"number",el:"hs-input-number"},{prop:"pageSize",label:"每页大小",type:"number",el:"hs-input-number"},{prop:"total",label:"总条数",type:"number",el:"hs-input-number"},{prop:"pagerCount",label:"显示页码按钮的数量",type:"number",el:"hs-input-number"},{prop:"pageSizes",label:"每页大小选项列表",type:"textarea",el:"hs-input"},{prop:"align",label:"对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"border",label:"带边框",el:"hs-switch"},{prop:"background",label:"带背景颜色",el:"hs-switch"},{prop:"perfect",label:"配套的样式",el:"hs-switch"},{prop:"className",label:"给分页附加 className",type:"textarea",el:"hs-input"},{prop:"autoHidden",label:"当只有一页时自动隐藏",el:"hs-switch"},{prop:"iconPrevPage",label:"自定义上一页图标",el:"hs-input"},{prop:"iconJumpPrev",label:"自定义向上跳页图标",el:"hs-input"},{prop:"iconJumpNext",label:"自定义向下跳页图标",el:"hs-input"},{prop:"iconnextPage",label:"自定义下一页图标",el:"hs-input"},{prop:"iconJumpMore",label:"自定义跳页显示图标",el:"hs-input"}],Ret=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),r2={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},Iet=e.ref([{prop:"type",label:"列的类型",tooltip:"列的类型(部分功能需要设置 columnConfig.useKey",type:"",el:"hs-select",cel:"hs-option",op:[{label:"序号",value:"seq"},{label:"复选框",value:"checkbox"},{label:"单选框",value:"radio"},{label:"展开行",value:"expand"},{label:"HTML 标签",value:"html"}]},{prop:"title",label:"列标题",type:"",tooltip:"列标题(支持开启国际化)",el:"hs-input"},{prop:"field",label:"列字段名",slotValue:"field",tooltip:"列字段名(注:属性层级越深,渲染性能就越差,例如:aa.bb.cc.dd.ee)",type:"",el:"hs-input"},{prop:"returnValueType",label:"返回值类型",el:"hs-select",cel:"hs-option",op:[{label:"String",value:"string"},{label:"Number",value:"number"},{label:"String|Number",value:"string|number"},{label:"Boolean",value:"boolean"}]},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"el",label:"插槽模版",tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:UI.value},{prop:"isApply",label:"是否启用",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch"},{prop:"width",label:"列宽度",type:"",tooltip:"列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 % 或者 min-width 布局)",el:"hs-input"},{prop:"minWidth",label:"最小列宽度",type:"",tooltip:"最小列宽度;会自动将剩余空间按比例分配",el:"hs-input"},{prop:"resizable",label:"是否允许调整列宽",type:"",tooltip:"列是否允许拖动列宽调整大小",el:"hs-switch"},{prop:"visible",label:"默认是否显示",type:"",el:"hs-switch"},{prop:"fixed",label:"列固定位置",tooltip:"将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"不固定",value:""},{label:"固定左侧",value:"left"},{label:"固定右侧",value:"right"}]},{prop:"align",label:"列对齐方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"headerAlign",label:"表头列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"footerAlign",label:"表尾列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"showOverflow",label:"当内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showHeaderOverflow",label:"当表头内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showFooterOverflow",label:"当表尾内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"className",label:"给单元格附加 className",type:"textarea",el:"hs-input"},{prop:"headerClassName",label:"给表头的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"footerClassName",label:"给表尾的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"formatter",label:"格式化显示内容",type:"textarea",el:"hs-input"},{prop:"sortable",label:"是否允许列排序",tooltip:"数据排序,是否允许列排序",type:"",el:"hs-switch"},{prop:"sortBy",label:"指定排序字段",tooltip:"数据排序,只对 sortable 有效,指定排序的字段(当值 formatter 格式化后,可以设置该字段,使用值进行排序)",type:"textarea",el:"hs-input"},{prop:"sortType",label:"排序的字段类型",tooltip:"数据排序,排序的字段类型,比如字符串转数值等",type:"",el:"hs-select",cel:"hs-option",op:[{label:"auto",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"filterMultiple",label:"筛选是否允许多选",tooltip:"数据筛选,只对 filters 有效,筛选是否允许多选",type:"",el:"hs-switch"},{prop:"filterMethod",label:"列的筛选方法",tooltip:"数据筛选,只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示",type:"textarea",el:"hs-input"},{prop:"filterResetMethod",label:"自定义筛选重置方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选重置方法",type:"textarea",el:"hs-input"},{prop:"filterRecoverMethod",label:"自定义筛选复原方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选复原方法(使用自定义筛选时可能会用到)",type:"textarea",el:"hs-input"},{prop:"cellType",label:"单元格值类型",tooltip:"只对特定功能有效,单元格值类型(例如:导出数据类型设置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"默认自动转换",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"treeNode",label:"是否指定为树节点",tooltip:"只对 treeConfig 配置时有效,指定为树节点",type:"",el:"hs-switch"},{prop:"params",label:"额外的参数",tooltip:"额外的参数(可以用来存放一些私有参数)",type:"",el:"hs-input"},{prop:"colId",label:"自定义列的唯一主键",tooltip:"自定义列的唯一主键(注:列主键必须确保唯一,操作不正确将导致出现问题)",type:"",el:"hs-input"}]),tP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},Pet=e.ref([{key:"filterRender",visible:!1,title:"筛选渲染器配置项",filterRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"}]},{key:"titlePrefix",visible:!1,title:"标题前缀图标配置项",titlePrefix:[{prop:"content",label:"提示消息",tooltip:"提示消息(支持开启国际化)",el:"hs-input"},{prop:"useHTML",label:"是否显示为HTML标签",tooltip:"是否显示为HTML标签(动态渲染任意 HTML 是非常危险的,很容易导致 XSS 攻击,请确保内容是可信的)",type:"",el:"hs-input"},{prop:"icon",label:"自定义图标",type:"",el:"hs-input"}]},{key:"cellRender",visible:!1,title:"默认的渲染器配置项",cellRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",el:"hs-input"}]},{key:"editRender",visible:!1,title:"可编辑渲染器配置项",editRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",label:"渲染的属性",tooltip:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"",default:"{row,rowIndex,$rowIndex,column,columnIndex,$columnIndex}, ...[自定义的 arguments]",param:"",el:"hs-input"},{prop:"content",label:"渲染组件的内容",tooltip:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"},{prop:"autofocus",label:"指定聚焦的选择器",tooltip:"如果是自定义渲染可以指定聚焦的选择器,例如 .my-input",type:"",el:"hs-input"},{prop:"autoselect",label:"自动选中内容",tooltip:"是否在激活编辑之后自动选中输入框内容",type:"",el:"hs-input"},{prop:"defaultValue",label:"默认值",tooltip:"默认值(插入数据时列的默认值)",type:"",el:"hs-input"},{prop:"immediate",label:"输入值实时更新",tooltip:"输入值实时同步更新(默认情况下单元格编辑的值只会在被触发时同步,如果需要实时同步可以设置为 true)",type:"",el:"hs-input"},{prop:"placeholder",label:"单元格占位符",tooltip:"单元格占位符,但单元格为空值时显示的占位符",type:"",el:"hs-input"}]},{key:"contentRender",visible:!1,title:"内容渲染配置项",contentRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",tooltip:"渲染的属性",label:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"}]}]),Fet=e.ref({key:"filters",visible:!1,title:"配置数据筛选条件",filters:[{prop:"label",label:"显示的值",type:"",el:"hs-input"},{prop:"value",label:"实际的值",type:"",el:"hs-input"},{prop:"checked",label:"默认是否选中",type:"",el:"hs-switch"},{prop:"resetValue",label:"重置时的默认值",type:"textarea",el:"hs-input"},{prop:"data",label:"自定义渲染的数据值(当使用自定义模板时可能会用到)",type:"textarea",el:"hs-input"}]});let zv=e.ref({id:"",sort:0,data:Ret.value,btnData:[]});const zet={list:Iet.value,second_config:Pet.value,filterConfig:Fet.value,rules:{list:tP}};let o2=e.ref({id:"",data:{}}),Let=e.ref({code:{visible:!1,subTitle:"表格配置代码",class:"font-bold my-3",iconSize:20},table:{visible:!1,subTitle:"表格配置",class:"font-bold my-3",iconSize:20},tableItem:{visible:!0,subTitle:"表格元素配置项集合",class:"font-bold my-3",iconSize:20},dynamicTableItem:{visible:!0,subTitle:"动态配置列元素配置项集合",class:"font-bold my-3",iconSize:20}}),Het={baseTableConfig:Oet,baseVisible:!1,pageVisible:!1,tableAttrConfig:Aet,tablePageConfig:Met},xh={id:{isShow:!1,title:"id",returnValueType:"string"}};const Wet={name:"按钮名称",key:"",isApply:!0,isSlot:!1,isShow:!0,size:"default",btnIcon:"",type:"primary",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":"button",dark:!1,tag:"button"},jet={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},nP={title:{subTitle:"按钮配置"},visible:!0,list:[{prop:"name",label:"按钮名称",el:"hs-input",tooltips:"按钮名称"},{prop:"key",label:"按钮key值",el:"hs-input",slotValue:"key",tooltips:"按钮key值"},{prop:"isApply",label:"是否启用",el:"hs-switch",tooltips:"是否启用"},{prop:"isSlot",label:"使用启用插槽",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch",tooltips:"是否显示"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"btnIcon",label:"按钮图标",el:"hs-input",slotValue:"btnIcon"},{prop:"iconPosition",label:"图标位置",el:"hs-select",cel:"hs-option",op:[{label:"左边",value:"left"},{label:"右边",value:"right"}]},{prop:"fnName",label:"方法名称",el:"hs-input",type:"textarea"},{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}]},{prop:"type",label:"类型",el:"hs-select",cel:"hs-option",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{prop:"plain",label:"朴素按钮",el:"hs-switch",tooltips:"是否为朴素按钮"},{prop:"text",label:"文字按钮",el:"hs-switch",tooltips:"是否为文字按钮"},{prop:"bg",label:"文字按钮背景颜色",el:"hs-switch",tooltips:"是否显示文字按钮背景颜色"},{prop:"link",label:"链接按钮",el:"hs-switch",tooltips:"是否为链接按钮"},{prop:"round",label:"圆角按钮",el:"hs-switch",tooltips:"是否为圆角按钮"},{prop:"circle",label:"圆形按钮",el:"hs-switch",tooltips:"是否为圆形按钮"},{prop:"loading",label:"加载状态",el:"hs-switch",tooltips:"是否为加载中状态"},{prop:"loading-icon",label:"加载状态图标",el:"hs-input",tooltips:"自定义加载中状态图标组件"},{prop:"disabled",label:"是否禁用",el:"hs-switch",tooltips:"按钮是否为禁用状态"},{prop:"icon",label:"图标组件",el:"hs-input",tooltips:"图标组件"},{prop:"autofocus",label:"自动聚焦",el:"hs-switch",tooltips:"原生 autofocus 属性"},{prop:"native-type",label:"原生 type 属性",el:"hs-select",cel:"hs-option",op:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}],tooltips:"原生 type 属性"},{prop:"auto-insert-space",label:"中文字符之间插入空格",el:"hs-switch",tooltips:"自动在两个中文字符之间插入空格"},{prop:"color",label:"按钮颜色",el:"hs-input",tooltips:"自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色"},{prop:"dark",label:"dark 模式",el:"hs-switch",tooltips:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色"},{prop:"tag",label:"自定义元素标签",el:"hs-input",tooltips:"自定义元素标签"}],rules:jet},rP={id:"",data:Wet,sort:0},SC={id:"",data:{}},qet=Zf(),Uet=d1();function Ket(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(zet)),a=e.ref(Ge.cloneDeep(t.current)),l=e.ref(Ge.cloneDeep(t.configList).map(b=>b.data.field));const i=()=>{let b=Ge.cloneDeep(tP);return Ge.keys(b).forEach(C=>{let w=b[C].map(y=>(y.required=!a.value.data.type,y));b[C]=w}),b};e.watch(()=>t.current,b=>{b&&b.id!=a.value.id&&(r.value=b,a.value=Ge.cloneDeep(b),l.value=Ge.cloneDeep(t.configList).map(C=>C.data.field),o.value.rules.list=i())},{deep:!0}),e.watch(()=>a.value.data,b=>{b&&(o.value.list=o.value.list.map(C=>(C.prop=="el"&&(C.show=!!a.value.data.isSlot,C.show||(a.value.data.el="")),C)),o.value.rules.list=i())},{deep:!0,immediate:!0});const s=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),u=e.ref(!1),c=async function(){var b;try{if(!await n.value.getSubmitData())return;let w=(b=r.value)==null?void 0:b.data.field,y=a.value.data.field,x=Ge.cloneDeep(l.value),k=x.findIndex(B=>B==w);if(x.splice(k,1),y&&Ge.includes(x,y))return jn.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ge.cloneDeep(a.value));let S=Co.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let B={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:S.project_code};qet.postSaveFieldPool4Config(B)}if(a.value.btnData.length>0){let B=[];if(a.value.btnData.forEach(E=>{E.data.field_id||B.push({btn_name:E.data.key,btn_label:E.data.name,btn_icon:E.data.btnIcon,json_data:JSON.stringify(E.data),project_code:S.project_code})}),B.length==0)return;Uet.postSaveBtnConfigBatch4Config({btnList:B})}}catch(C){console.log("er",C)}},d=()=>{var b,C;(C=(b=a.value)==null?void 0:b.data.filters)==null||C.push({label:"",value:"",checked:!1,resetValue:"",data:""})},f=b=>{let C=a.value.data.filters[b];Yo.confirm(`确认要删除该${C.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(b,1),a.value.filterConfig.splice(b,1),jn.success("删除成功")}).catch(w=>{console.log("err",w)})},p=()=>{let b=Ge.cloneDeep(rP);b.id=new Date().getTime().toString(),a.value.btnData.push(b)},v=b=>{let C=a.value.btnData[b];Yo.confirm(`确认要删除该${C.name?"【"+C.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(b,1),jn.success("删除成功")}).catch(w=>{console.log("err",w)})};let m=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"3",field_code:"",project_code:""},qry_key:"field_code"});return e.onMounted(()=>{let b=Co.get("CURRENT_SYSTEM"),C=m.value.params;C.project_code=b.project_code||"",m.value=Ge.assign(m.value,{params:C})}),{parentConfig:s,visible:u,tableItemConfig:a,tableDataConfig:o,requestData:m,onChangeItem:b=>{a.value.data=Ge.assign(a.value.data,JSON.parse(b.json_data),{field_id:b.id})},saveData:c,addFilterItem:d,deleteFilterConfig:f,addBtnItem:p,deleteBtnItem:v}}const Get={class:"h-full"},Yet={style:{height:"94%"},class:"overflow-y-auto"},Xet=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),Zet=[Xet],Jet=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),Qet=[Jet],ett={class:"text-center",style:{height:"40px"}},ttt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref(),o=e.ref(Ge.cloneDeep(nP));const{parentConfig:a,visible:l,tableItemConfig:i,tableDataConfig:s,requestData:u,onChangeItem:c,addFilterItem:d,saveData:f,deleteFilterConfig:p,addBtnItem:v,deleteBtnItem:m}=Ket(n,r);return(g,b)=>{var x,k,S;const C=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),y=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Get,[e.createElementVNode("div",Yet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(l),"onUpdate:modelValue":b[0]||(b[0]=B=>e.isRef(l)?l.value=B:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(a),data:(x=e.unref(i))==null?void 0:x.data,config:e.unref(s).list,ref_key:"baseTableRef",ref:r,rules:e.unref(s).rules.list||{}},{field:e.withCtx(()=>[e.createVNode(C,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"table",modelValue:e.unref(i).data.field,"onUpdate:modelValue":b[1]||(b[1]=B=>e.unref(i).data.field=B),onChange:e.unref(c)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},8,["parentConfig","data","config","rules"])),[[e.vShow,e.unref(l)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(s))==null?void 0:k.second_config,(B,E)=>{var D;return e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":N=>B.visible=N,expandConfig:{subTitle:B.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),B.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:B[B.key],data:(D=e.unref(i))==null?void 0:D.data[B.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=e.unref(i))==null?void 0:S.data.filters,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":D=>B.visible=D,expandConfig:{subTitle:"筛选配置项"+(B.label?"【"+B.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:D=>e.unref(p)(E),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),B.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:e.unref(s).filterConfig.filters,data:B},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:b[2]||(b[2]=(...B)=>e.unref(d)&&e.unref(d)(...B))},Zet)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).btnData,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:B.visible,"onUpdate:modelValue":D=>B.visible=D,expandConfig:{subTitle:"按钮配置"+(B.data.name?"【"+B.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:D=>e.unref(m)(E),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(eP),{ref_for:!0,ref:"btnItemRef",modelValue:B.data,"onUpdate:modelValue":D=>B.data=D,config:e.unref(o)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,B.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:b[3]||(b[3]=(...B)=>e.unref(v)&&e.unref(v)(...B))},Qet)])]),e.createElementVNode("div",ett,[e.createVNode(y,{onClick:e.unref(f),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),cN=Zf();function ntt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Co.get("CURRENT_SYSTEM"),s=Ge.cloneDeep(zv.value);s.id=new Date().getTime().toString(),s.data=Ge.assign(s.data,{type:"seq",title:"",minWidth:50,width:50}),Ge.assign(n.value,{baseData:Ge.assign(Ge.cloneDeep($et.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url,dynamicColumn:{isDynamicRequestConfig:!1,dynamicMethod:"get",dynamicProxy:i.project_url}}),tableConfig:[s],dynamicTableConfig:[]})},a=(i,s,u,c)=>{let d=i.map(f=>f[u]);cN.getPoolByFieldMap({fieldCodes:d,field_type:"3",project_code:s&&s.project_code}).then(f=>{i.forEach(p=>{var m,g;let v=(m=n.value)==null?void 0:m.tableConfig.map(b=>b.data.field);if(!Ge.includes(v,p[u])){let b=Ge.cloneDeep(zv.value);if(b.id=p[u]+new Date().getTime().toString(),p[u]&&(b.data.field=p[u],b.data.title=p[c]||"展示列名称"),f.code==1&&f.data&&f.data[p[u]]){let C=JSON.parse(f.data[p[u]].json_data);b.data=Ge.assign(b.data,C,{field_id:f.data[p[u]].id})}if(Ge.keys(xh).find(C=>C==b.data.field)){let C=xh[b.data.field];b.data=Ge.assign(b.data,C)}(g=n.value)==null||g.tableConfig.push(b)}})})};return{parseTable:()=>{var i,s;if(t.value){let u=Co.get("CURRENT_SYSTEM");if(!r.value){let c=JSON.parse(t.value);(i=n.value)!=null&&i.baseData.id||o(),console.log("parseApi.value",c),a(c,u,"id","label");return}cN.getFieldByTable({table_name:t.value,project_code:u&&u.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return jn.warning(c.msg);if(c.data.length>0){(d=n.value)!=null&&d.baseData.id||o(),c.data.forEach(f=>{var v,m;let p=Ge.map((v=n.value)==null?void 0:v.tableConfig,g=>g.data.field);if(!Ge.includes(p,f.column_name)){let g=Ge.cloneDeep(zv.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let b=JSON.parse(f.json_data);g.data=Ge.assign(g.data,b,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ge.keys(xh).find(b=>b==f.column_name)&&(g.data=Ge.assign(g.data,xh[f.column_name])),(m=n.value)==null||m.tableConfig.push(g)}});return}})}(s=n.value)!=null&&s.baseData.id||o()},parseName:r}}const rtt={class:"flex flex-row"},ott=e.defineComponent({__name:"hsTableParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(""),r=e.useModel(t,"modelValue");const{parseTable:o,parseName:a}=ntt(n,r);return e.onMounted(()=>{n.value=""}),(l,i)=>{const s=e.resolveComponent("hs-switch"),u=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析表名:"),e.createVNode(s,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",rtt,[e.createVNode(u,{class:"basis-1/4 mr-2",modelValue:e.unref(n),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(n)?n.value=d:n=d),placeholder:"请输入解析表名"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}}),att=e.defineComponent({__name:"hsRecursionConfig",props:e.mergeModels({config:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");return(r,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config,(a,l)=>(e.openBlock(),e.createElementBlock("div",{key:l},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-4",modelValue:a.visible,"onUpdate:modelValue":i=>a.visible=i,expandConfig:{subTitle:a.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),a.visible&&a.second_config?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.second_config,(i,s)=>(e.openBlock(),e.createElementBlock("div",{key:s},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-8",modelValue:i.visible,"onUpdate:modelValue":u=>i.visible=u,expandConfig:{subTitle:i.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),i.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:e.unref(Ge).get(e.unref(Ge).get(n.value,a.key),i.key),config:i[i.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0),a.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:1,data:e.unref(Ge).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),ltt=e.defineComponent({__name:"hsTableConfig",props:e.mergeModels({config:{type:Object,default:()=>({baseTableConfig:[],baseVisible:!1,tableAttrConfig:[],tablePageConfig:[],pageVisible:!1})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;let r=e.ref();e.watch(()=>n.config,a=>{r.value=a},{deep:!0,immediate:!0});let o=e.useModel(t,"modelValue");return(a,l)=>{var i,s,u,c,d,f,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{class:"pl-4",modelValue:e.unref(r).baseVisible,"onUpdate:modelValue":l[0]||(l[0]=v=>e.unref(r).baseVisible=v),expandConfig:{subTitle:"表格基本配置"}},null,8,["modelValue"])),e.unref(r).baseVisible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:(i=e.unref(o))==null?void 0:i.baseData,config:e.unref(r).baseTableConfig},null,8,["data","config"])):e.createCommentVNode("",!0),(u=(s=e.unref(o))==null?void 0:s.baseData)!=null&&u.is_apply_page?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{key:1,class:"pl-4",modelValue:e.unref(r).pageVisible,"onUpdate:modelValue":l[1]||(l[1]=v=>e.unref(r).pageVisible=v),expandConfig:{subTitle:"表格分页配置"}},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(r).pageVisible&&((d=(c=e.unref(o))==null?void 0:c.baseData)!=null&&d.is_apply_page)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:2,data:(p=(f=e.unref(o))==null?void 0:f.baseData)==null?void 0:p.table_page_data,config:e.unref(r).tablePageConfig},null,8,["data","config"])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(att),{key:3,config:e.unref(r).tableAttrConfig,modelValue:e.unref(o).baseData,"onUpdate:modelValue":l[2]||(l[2]=v=>e.unref(o).baseData=v)},null,8,["config","modelValue"])):e.createCommentVNode("",!0)],64)}}});function itt(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(o2.value):i;t("chose",s,"tableConfig")};return{choseTagItem:o,appendField:()=>{let i=Ge.cloneDeep(zv.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return jn.warning("字段名称重复");r.value.tableConfig.push(i);let u=r.value.tableConfig[r.value.tableConfig.length-1];o(u)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value.tableConfig,i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const stt=["onClick"],utt=["onClick"],ctt={class:"p-2"},dtt=e.defineComponent({__name:"hsTableConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=itt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.tableConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.tableConfig=f),animation:150},{default:e.withCtx(()=>{var f;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=a.value)==null?void 0:f.tableConfig,p=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:p.id,onClick:v=>e.unref(u)(p)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==p.id?"bg-blue-200":""])},e.toDisplayString(p.data&&p.data.title||p.data.type&&e.unref(r2)[p.data.type]||""),3),t.current.id==p.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(v=>e.unref(s)(p),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,utt)):e.createCommentVNode("",!0)],8,stt))),128)),e.createElementVNode("div",ctt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...p)=>e.unref(i)&&e.unref(i)(...p)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),ftt=Ar(dtt,[["__scopeId","data-v-d871a518"]]);function ptt(t,n,r){const o=s=>{var c;let u=s.id==((c=n.current)==null?void 0:c.id)?Ge.cloneDeep(o2.value):s;t("chose",u,"dynamicTableConfig")};return{choseTagItem:o,appendField:()=>{let s=Ge.cloneDeep(zv.value);if(s.id=new Date().getTime().toString(),(r.value.dynamicTableConfig.findIndex(d=>d.id==s.id)||-1)>-1)return jn.warning("字段名称重复");r.value.dynamicTableConfig.push(s);let c=r.value.dynamicTableConfig[r.value.dynamicTableConfig.length-1];o(c)},deleteTagItem:s=>{Yo.confirm(`确定删除“${s.data&&s.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value.dynamicTableConfig,s),o(s),jn.success("删除成功")}).catch(u=>{console.log("err",u)})},parseColumn:()=>{var u;let s=(u=r.value)==null?void 0:u.baseData.dynamicColumn;if(s!=null&&s.requestDynamicUrl)if(s!=null&&s.dynamicMethod){if(!(s!=null&&s.dynamicProxy))return jn.warning("请填写动态配置列中的请求代理")}else return jn.warning("请选择动态配置列中的请求方式");else return jn.warning("请填写接口地址")}}}const vtt={class:"flex w-full"},mtt=["onClick"],htt=["onClick"],gtt={class:"p-2"},btt=e.defineComponent({__name:"hsTableDynamicConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u,parseColumn:c}=ptt(o,l,a);return(d,f)=>{const p=e.resolveComponent("hs-input"),v=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",vtt,[e.createVNode(p,{class:"mr-2",style:{width:"25%"},modelValue:a.value.baseData.dynamicColumn.requestDynamicUrl,"onUpdate:modelValue":f[0]||(f[0]=m=>a.value.baseData.dynamicColumn.requestDynamicUrl=m)},null,8,["modelValue"]),e.createVNode(v,{type:"primary",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("解析配置列")]),_:1},8,["onClick"])]),e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.dynamicTableConfig,"onUpdate:modelValue":f[2]||(f[2]=m=>a.value.dynamicTableConfig=m),animation:150},{default:e.withCtx(()=>{var m;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((m=a.value)==null?void 0:m.dynamicTableConfig,g=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:g.id,onClick:b=>e.unref(u)(g)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==g.id?"bg-blue-200":""])},e.toDisplayString(g.data&&g.data.title||g.data.type&&e.unref(r2)[g.data.type]||""),3),t.current.id==g.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(b=>e.unref(s)(g),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,htt)):e.createCommentVNode("",!0)],8,mtt))),128)),e.createElementVNode("div",gtt,[e.createElementVNode("div",{onClick:f[1]||(f[1]=(...g)=>e.unref(i)&&e.unref(i)(...g)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])])}}}),ytt=Ar(btt,[["__scopeId","data-v-d487599c"]]),_tt={class:"mx-auto flex flex-row h-full"},Ctt={class:"flex-1 grow overflow-y-auto"},xtt={key:0},wtt={key:0,class:"flex-none basis-1/4 ml-4"},ktt=e.defineComponent({__name:"hsTablePanel",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(Ge.cloneDeep(Let.value));const r=e.useModel(t,"modelValue"),o=e.ref(Ge.cloneDeep(Het));let a=Ge.cloneDeep(o2),l=e.ref("");e.watch(()=>r.value,u=>{l.value!=(u==null?void 0:u.id)&&(a.value=Ge.cloneDeep(o2),l.value=(u==null?void 0:u.id)||"")},{immediate:!0});const i=e.ref("tableConfig"),s=(u,c)=>{a.value=u,i.value=c};return(u,c)=>{var d,f;return e.openBlock(),e.createElementBlock("div",_tt,[e.createElementVNode("div",Ctt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":c[0]||(c[0]=p=>e.unref(n).code.visible=p),expandConfig:e.unref(n).code},null,8,["modelValue","expandConfig"])),e.unref(n).code.visible?(e.openBlock(),e.createElementBlock("div",xtt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ott),{modelValue:r.value,"onUpdate:modelValue":c[1]||(c[1]=p=>r.value=p)},null,8,["modelValue"])),(d=r.value)!=null&&d.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":c[2]||(c[2]=p=>e.unref(n).table.visible=p),expandConfig:e.unref(n).table},null,8,["modelValue","expandConfig"])),e.unref(n).table.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ltt),{key:0,modelValue:r.value,"onUpdate:modelValue":c[3]||(c[3]=p=>r.value=p),config:o.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":c[4]||(c[4]=p=>e.unref(n).tableItem.visible=p),expandConfig:e.unref(n).tableItem},null,8,["modelValue","expandConfig"])),e.unref(n).tableItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ftt),{key:1,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=p=>r.value=p),current:e.unref(a),onChose:s},null,40,["modelValue","current"])):e.createCommentVNode("",!0),r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{key:2,modelValue:e.unref(n).dynamicTableItem.visible,"onUpdate:modelValue":c[6]||(c[6]=p=>e.unref(n).dynamicTableItem.visible=p),expandConfig:e.unref(n).dynamicTableItem},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(n).dynamicTableItem.visible&&r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ytt),{key:3,modelValue:r.value,"onUpdate:modelValue":c[7]||(c[7]=p=>r.value=p),current:e.unref(a),onChose:s},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((f=r.value)==null?void 0:f.tableConfig)||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",wtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ttt),{current:e.unref(a),configList:r.value[i.value]},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function Ett(t,n,r){const o=i=>{var u;let s=i.id==((u=n.current)==null?void 0:u.id)?Ge.cloneDeep(SC):i;t("chose",s)};return{choseTagItem:o,appendField:()=>{let i=Ge.cloneDeep(rP);i.id=new Date().getTime().toString(),r.value.push(i);let s=r.value[r.value.length-1];o(s)},deleteTagItem:i=>{Yo.confirm(`确定删除“${i.data&&i.data.name}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(r.value||[],i),o(i),jn.success("删除成功")}).catch(s=>{console.log("err",s)})}}}const Stt=["onClick"],Btt=["onClick"],Ntt={class:"p-2"},Ttt=e.defineComponent({__name:"hsBtnConfigList",props:e.mergeModels({current:{type:Object,default(){return{}}}},{modelValue:[],modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue",[]),l=t,{appendField:i,deleteTagItem:s,choseTagItem:u}=Ett(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value=f),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,f=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:f.id,onClick:p=>e.unref(u)(f)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==f.id?"bg-blue-200":""])},e.toDisplayString(f.data&&f.data.name),3),t.current.id==f.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(p=>e.unref(s)(f),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Btt)):e.createCommentVNode("",!0)],8,Stt))),128)),e.createElementVNode("div",Ntt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...f)=>e.unref(i)&&e.unref(i)(...f)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]),_:1},8,["modelValue"])]))}}),Dtt=Ar(Ttt,[["__scopeId","data-v-1bcdcd36"]]),Vtt=d1();function $tt(t,n){let r=e.ref(t.current),o=e.ref(Ge.cloneDeep(t.current));e.watch(()=>t.current,s=>{s&&s.id!=o.value.id&&(r.value=s,o.value=Ge.cloneDeep(s))},{deep:!0});const a=e.ref(Ge.cloneDeep(nP));return{visible:e.ref(!1),btnItemConfig:o,btnConfig:a,saveData:async function(){var s;try{if(!await n.value.getSubmitData())return;let c=(s=r.value)==null?void 0:s.data.key,d=o.value.data.key,f=Ge.map(t.btnList,m=>m.data.key);if(Ge.includes(f,d)&&d!=c)return jn.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ge.cloneDeep(o.value)),o.value.data.field_id)return;let p=Co.get("CURRENT_SYSTEM"),v={btn_name:o.value.data.key,btn_label:o.value.data.name,btn_icon:o.value.data.btnIcon,json_data:JSON.stringify(o.value.data),project_code:p.project_code};Vtt.postSaveBtnConfig4Config(v)}catch(u){console.log("er",u)}}}}const Ott={class:"bg-blue-200 h-full flex flex-col"},Att={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Mtt={key:0},Rtt={class:"text-center grow-0",style:{height:"50rpx"}},Itt=e.defineComponent({__name:"hsAttrBtn",props:{current:{type:Object,default(){return{}}},btnList:{type:Array,default:()=>[]}},setup(t){const n=t,r=e.ref(),{visible:o,btnItemConfig:a,btnConfig:l,saveData:i}=$tt(n,r);return(s,u)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Ott,[e.createElementVNode("div",Att,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(o),"onUpdate:modelValue":u[0]||(u[0]=d=>e.isRef(o)?o.value=d:null),expandConfig:{subTitle:"按钮项代码"}},null,8,["modelValue"])),e.unref(o)?(e.openBlock(),e.createElementBlock("div",Mtt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(vo),{modelValue:e.unref(l).visible,"onUpdate:modelValue":u[1]||(u[1]=d=>e.unref(l).visible=d),expandConfig:e.unref(l).title},null,8,["modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(eP),{ref_key:"btnItemRef",ref:r,modelValue:e.unref(a).data,"onUpdate:modelValue":u[2]||(u[2]=d=>e.unref(a).data=d),config:e.unref(l)},null,8,["modelValue","config"])),[[e.vShow,e.unref(l).visible]])]),e.createElementVNode("div",Rtt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),Ptt={class:"mx-auto flex flex-row h-full"},Ftt={class:"flex-1 grow overflow-y-auto"},ztt={key:0,class:"flex-none basis-1/4 ml-4"},Ltt=e.defineComponent({name:"formPanel"}),Htt=e.defineComponent({...Ltt,props:e.mergeModels({id:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref({visible:!0,subTitle:"按钮配置",class:"font-bold my-3",iconSize:20});let a=e.ref(Ge.cloneDeep(SC));e.watch(()=>n.id,()=>{a.value=Ge.cloneDeep(SC)});const l=i=>{a.value=i};return(i,s)=>(e.openBlock(),e.createElementBlock("div",Ptt,[e.createElementVNode("div",Ftt,[e.createVNode(vo,{modelValue:o.value.visible,"onUpdate:modelValue":s[0]||(s[0]=u=>o.value.visible=u),expandConfig:o.value},null,8,["modelValue","expandConfig"]),o.value.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Dtt),{key:0,modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=u=>r.value=u),current:e.unref(a),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)]),(r.value||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",ztt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Itt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let Wtt={config_name:"",config_unique_id:"",is_auth:"1"};const oP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},aP=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0}],jtt={formData:Wtt,formRule:oP,formConfig:aP};let qtt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const Utt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],dN={formData:qtt,formRule:oP,formConfig:Ge.concat(Utt,aP)},Ktt=d1();function Gtt(t,n,r){const o=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8,minWidth:350});let a=e.ref(!0),l=e.ref(Ge.assign(Ge.cloneDeep(dN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(v,m)=>{if(m=="name"){let g=Ge.cloneDeep(r.configs).find(b=>b.config_unique_id==v);l.value.formData=Ge.assign(l.value.formData,{config_name:g.config_name,config_unique_id:g.config_unique_id,is_auth:g.is_auth}),t("change",g)}},s=()=>new Promise(v=>{let m={id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}],config_unique_id:new Date().getTime().toString(),config_name:"",is_auth:"1",btns:[]};Ktt.getBtnConfigByKeyMap({btnNames:["search","reset"],project_code:"scmp"}).then(g=>{if(console.log("res",g),g.code!==1)return v(m);if(g.data.search&&g.data.search.json_data){let b=JSON.parse(g.data.search.json_data);m.btns.push({id:b.key+new Date().getTime().toString(),data:b})}if(g.data.reset&&g.data.reset.json_data){let b=JSON.parse(g.data.reset.json_data);m.btns.push({id:b.key+new Date().getTime().toString(),data:b})}v(m)}).catch(()=>{v(m)})}),u=async(v,m=0)=>{let g=Ge.cloneDeep(dN);if(g.formData.name=v[m]&&v[m].config_name||"",g.formData.config_name=v[m]&&v[m].config_name||"",g.formData.config_unique_id=v[m]&&v[m].config_unique_id||new Date().getTime().toString(),g.formData.is_auth=v[m]&&v[m].is_auth||"1",v.length>0){let C=v.map(x=>({label:x.config_name,value:x.config_unique_id,is_auth:x.is_auth})),w=Ge.findIndex(g.formConfig,x=>x.prop=="name");if(w<0)return;let y=Ge.assign(g.formConfig[w],{op:C});g.formConfig.splice(w,1,y)}l.value=g,a.value=!0;let b=v[m];b||(b=await s()),b.tables.length>0&&b.tables.map(C=>(C.dynamicTableConfig||(C.dynamicTableConfig=[],C.baseData.dynamicColumn={}),C)),t("change",b)};return{parentConfig:o,formConfig:l,isEdit:a,saveConfig:async()=>{await n.value.getSubmitData()&&t("save",{config_name:l.value.formData.config_name,config_unique_id:l.value.formData.config_unique_id,is_auth:l.value.formData.is_auth})},changeConfig:i,initOriginConfig:u,addConfig:async()=>{if(!(a.value&&!l.value.formData.name)){let v=await s();t("change",v),console.log("initConfig",v)}l.value=Ge.cloneDeep(jtt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{u(Ge.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const Ytt={class:"flex justify-around items-center"},Xtt={class:"basis-3/4"},Ztt={class:"basis-1/4 flex justify-end"},Jtt=e.defineComponent({inheritAttrs:!1,__name:"saveForm",props:{configs:{type:Array,default:[]}},emits:["save","change","delete"],setup(t,{expose:n,emit:r}){const o=t,a=e.ref(),l=r,{parentConfig:i,formConfig:s,isEdit:u,saveConfig:c,changeConfig:d,initOriginConfig:f,addConfig:p,cancel:v,deleteConfig:m}=Gtt(l,a,o);return n({initOriginConfig:f}),(g,b)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Ytt,[e.createElementVNode("div",Xtt,[e.createTextVNode(e.toDisplayString(e.unref(s).formData)+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"saveFormRef",ref:a,parentConfig:e.unref(i),data:e.unref(s).formData,config:e.unref(s).formConfig,rules:e.unref(s).formRule,watchConfig:!0,onChange:e.unref(d)},null,40,["parentConfig","data","config","rules","onChange"]))]),e.createElementVNode("div",Ztt,[!e.unref(u)||e.unref(u)&&e.unref(s).formData.name?(e.openBlock(),e.createBlock(C,{key:0,onClick:e.unref(c),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)?(e.openBlock(),e.createBlock(C,{key:1,type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode("新增配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)&&e.unref(s).formData.name?(e.openBlock(),e.createBlock(C,{key:2,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode("删除配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:3,onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1},8,["onClick"]))])])}}}),fN=Zf();function Qtt(t,n,r,o){let a=e.ref(),l=e.ref();const i=()=>{t.value.tables.push({id:"table_"+new Date().getTime().toString(),baseData:{id:""},tableConfig:[],dynamicTableConfig:[]})},s=x=>{let k=ux.find(t.value.tables,S=>S.id==x);Yo.confirm(`确定删除${(k==null?void 0:k.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ge.remove(t.value.tables,S=>x&&S.id==x),jn.success("删除成功")}).catch(S=>{console.log("err",S)})},u=(x,k)=>{switch(k){case"remove":s(x);break;case"add":i();break}};let c=e.ref();const d=(x,k=!1)=>{if(x.form){if(x.form.formConfig.length>0){let E=0;x.form.formConfig=Ge.filter(x.form.formConfig,D=>{if(D.data.baseData.prop&&!GI[D.data.baseData.prop]&&(k||D.data.baseData.isApply))return D.sort=++E,!0})}x.form.formConfig.length<=0&&delete x.form}x.tables.map(E=>{let D=0;return E.tableConfig=Ge.filter(E.tableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.type&&!N.data.field&&!k&&(N.data.field="type_"+N.data.type),N.data.filters=Ge.filter(N.data.filters,V=>V.value),N.btnData=Ge.filter(N.btnData,V=>(k||V.data.isApply)&&V.data.key),N.sort=++D,!0}),E.dynamicTableConfig=Ge.filter(E.dynamicTableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.field&&!N.data.field&&!k&&(N.data.field="type_"+N.data.field),N.data.filters=Ge.filter(N.data.filters,V=>V.value),N.btnData=Ge.filter(N.btnData,V=>(k||V.data.isApply)&&V.data.key),N.sort=++D,!0}),E});let S=0;x.tables=Ge.filter(x.tables,E=>{if(E.tableConfig.length>0||E.dynamicTableConfig.length>0)return E.sort=++S,!0});let B=0;return x.btns=Ge.filter(x.btns,E=>{if(E.data.key&&(k||E.data.isApply))return E.sort=++B,!0}),x},f=(x={})=>(Object.keys(x).forEach(k=>{x[k]===""||x[k]===null||x[k]===void 0||x[k]instanceof Array&&x[k].length<=0||x[k]instanceof Object&&Ge.isEmpty(x[k])?delete x[k]:x[k]instanceof Object?f(x[k]):x[k]instanceof Array&&x[k].map(S=>f(S))}),x),p=x=>(x.btns=Ge.map(x.btns,(k,S)=>({id:k.id,data:f(k.data),sort:S+1})),x.form&&(x.form.baseData=Ge.assign({},f(x.form.baseData)),x.form.formConfig=Ge.map(x.form.formConfig,(k,S)=>({data:f(k.data),id:k.id,sort:S+1}))),x.tables=Ge.map(x.tables,(k,S)=>{let B=k.tableConfig.map((N,V)=>{let M=N.btnData.map(O=>f(O));return{id:N.id,data:f(N.data),btnData:M,sort:V+1}}),E=k.dynamicTableConfig.map((N,V)=>{let M=N.btnData.map(O=>f(O));return{id:N.id,data:f(N.data),btnData:M,sort:V+1}}),D=f(k.baseData);return k=Ge.assign(k,{tableConfig:B,baseData:D,sort:S+1,dynamicTableConfig:E}),k}),x),v=x=>{var D;let k=(x.btns||[]).map((N,V)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:V+1})),S=(x.tables||[]).map((N,V)=>{let M=N.tableConfig.map((O,P)=>{let I=(O.btnData||[]).map((H,F)=>({id:H.id||"",fieldName:H.data.name||"",showName:H.data.name||"",fieldProp:H.data.key||"",fieldShow:H.data.isShow||"",fieldRequired:!1,sort:F+1}));return{id:O.id,fieldName:O.data.title||(O.data.type?r2[O.data.type]:""),showName:O.data.title||(O.data.type?r2[O.data.type]:""),fieldProp:O.data.field||(O.data.type?"type_"+O.data.type:""),fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:I,sort:P+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:M,sort:V+1}}),B=(((D=x.form)==null?void 0:D.formConfig)||[]).map((N,V)=>({id:N.id,fieldName:N.data.baseData.label||"",showName:N.data.baseData.label||"",fieldProp:N.data.baseData.prop||"",fieldShow:N.data.baseData.isShow||!1,fieldRequired:N.data.elData.rules&&N.data.elData.rules.required||!1,sort:V+1}));return{config_type:"1",config_unique_id:x.config_unique_id,btns:k,tables:S,form:B,menu_id:l.value.id}};let m=e.ref("btn");const g=x=>{t.value=x,m.value="btn"},b=x=>{m.value="btn",r.value&&r.value.initOriginConfig(n.value,x)};return{handleTabsEdit:u,saveFormTableConfig:async x=>{let k=await d(Ge.cloneDeep(t.value),!0);k=Ge.assign(k,x);let B=n.value.map(M=>M.config_unique_id).indexOf(k.config_unique_id);B>-1?n.value.splice(B,1,k):n.value.push(k);let E=await d(Ge.cloneDeep(k),!1),D=await p(Ge.cloneDeep(E)),N=await v(Ge.cloneDeep(D));console.log("originConfig系统配置",k,"businessConfig==业务配置",D,"权限数据",N);let V={field_json:JSON.stringify(k),config_name:k.config_name,config_type:"1",config_unique_id:k.config_unique_id,business_json:JSON.stringify(D),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:k.id||"",project_code:a.value.project_code,update_time:k.update_time||""};fN.postSaveField4Table(V).then(()=>{jn.success("保存配置成功"),c.value=k,o("refresh")}).catch(M=>{console.log("er",M)})},changeConfig:g,initData:(x,k,S)=>{n.value=x,a.value=S,l.value=k,b(0)},tabsActiveName:m,config:c,deleteConfig:()=>{Yo.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{fN.postDelFieldById({id:t.value.id}).then(x=>{x.code==1&&(jn.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{jn.info("已取消删除")})}}}const ent={class:"flex flex-col h-full"},tnt={class:"flex-1 system-user-container",style:{height:"300px"}},nnt=e.defineComponent({__name:"bcPageConfig",emits:["refresh"],setup(t,{expose:n,emit:r}){let o=e.ref({id:"",config_type:"1",config_unique_id:"",config_name:"",btns:[],tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:s,saveFormTableConfig:u,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=Qtt(o,a,l,i);return n({initData:d}),(v,m)=>{const g=e.resolveComponent("hs-tab-pane"),b=e.resolveComponent("hs-tabs");return e.openBlock(),e.createElementBlock("div",ent,[e.createElementVNode("div",tnt,[e.createVNode(b,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":m[2]||(m[2]=C=>e.isRef(f)?f.value=C:null),class:"h-full tabs",type:"border-card",addable:"",onEdit:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(g,{class:"tab-pane",label:"按钮配置",name:"btn"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Htt),{id:e.unref(o).config_unique_id,modelValue:e.unref(o).btns,"onUpdate:modelValue":m[0]||(m[0]=C=>e.unref(o).btns=C)},null,8,["id","modelValue"]))]),_:1}),e.createVNode(g,{class:"tab-pane",label:"查询条件配置",name:"form"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Eet),{modelValue:e.unref(o),"onUpdate:modelValue":m[1]||(m[1]=C=>e.isRef(o)?o.value=C:o=C)},null,8,["modelValue"]))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).tables,(C,w)=>(e.openBlock(),e.createBlock(g,{key:w,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ktt),{closable:"",modelValue:e.unref(o).tables[w],"onUpdate:modelValue":y=>e.unref(o).tables[w]=y},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Jtt),{configs:e.unref(a),ref_key:"saveFormRef",ref:l,onChange:e.unref(c),onSave:e.unref(u),onDelete:e.unref(p)},null,40,["configs","onChange","onSave","onDelete"]))])}}}),rnt=Ar(nnt,[["__scopeId","data-v-8e367ce1"]]),ont=XI();function ant(t){let n=e.ref(""),r=e.ref();const o=i=>{let s=r.value.find(u=>u.value==i);n.value=Ge.get(s,"value",""),Co.set("CURRENT_SYSTEM",s),t("change",s)},a=()=>{ont.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(u=>({...u,label:u.project_name||"",value:u.project_code||""}));let s=Co.get("CURRENT_SYSTEM")||r.value[0];o(s&&s.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=Co.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const lnt={class:"flex"},int={key:0,class:"basis-1/4 flex flex-col justify-center"},snt=e.defineComponent({__name:"bcSwitchSystems",props:{showLabel:{type:Boolean,default:!1},labelText:{type:String,default:"当前系统:"}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{onChange:a,initData:l,curSys:i,systems:s}=ant(o);return e.onMounted(()=>{l()}),(u,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",lnt,[r.showLabel?(e.openBlock(),e.createElementBlock("div",int,e.toDisplayString(r.labelText),1)):e.createCommentVNode("",!0),e.createVNode(f,{class:"flex-1",modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=p=>e.isRef(i)?i.value=p:null),onChange:e.unref(a)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),p=>(e.openBlock(),e.createBlock(d,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])}}});function unt(t,n){let r;const o=i=>new Promise(s=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),s([]);return}let u=Ge.assign(t.params,{[t.qry_key||""]:i});Fn({url:t.url,method:"get",params:u}).then(c=>{if(c.code!=1){clearTimeout(r),s([]);return}clearTimeout(r),console.log("res",t.url,u),c.data?Array.isArray(c.data)?s(c.data):Ge.get(c,"data.customPageList")&&Ge.isArray(Ge.get(c,"data.customPageList"))?s(Ge.get(c,"data.customPageList",[])):s([]):s([])}).catch(()=>{clearTimeout(r),s([])})});return{handleSelect:i=>{n("change",i)},querySearchAsync:async(i,s)=>{const u=await o(i);s(u)}}}const cnt=e.defineComponent({__name:"bcAutoComplete",props:{qry_key:{type:String,default:""},url:{type:String,default:""},params:{type:Object,default:()=>{}},type:{type:String,default:"btn"},value_key:{type:String,default:"field_name"}},emits:["change"],setup(t,{emit:n}){const r=t,o=e.ref(""),a=n,{handleSelect:l,querySearchAsync:i}=unt(r,a);return(s,u)=>{const c=e.resolveComponent("hs-autocomplete");return e.openBlock(),e.createBlock(c,{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),clearable:"",class:"inline-input w-50",placeholder:"请输入",ref:"hsAutocompleteRef","fetch-suggestions":e.unref(i),onSelect:e.unref(l),"value-key":r.value_key||"name"},null,8,["modelValue","fetch-suggestions","onSelect","value-key"])}}}),dnt=e.defineComponent({name:"bcGroupDate",props:{value:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["change"],setup(t,{emit:n,expose:r}){const o=e.inject("bcTableFormApi",{}),a=e.ref(t.value),l=e.ref(t.value),i=e.ref([]);function s(d){const[f,p]=t.value[t.fieldComponent];if(d){const[m,g]=d;l.value[f]=m,l.value[p]=g}else l.value[f]="",l.value[p]="";const v={...t.value,...l.value};o==null||o.updateSearchForm(v),n("change",d)}function u(){s(["",""]),i.value=["",""]}function c(){var d;(d=a.value)==null||d.focus()}return r({clearData:u,focus:c}),{elRef:a,groupData:i,focus:c,onChange:s}}});function fnt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{ref:"elRef",modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const pnt=Ar(dnt,[["render",fnt]]),vnt=Fx();function mnt(t){const n=e.ref([]),r=s=>s.map(u=>{let c=Ge.assign(u,{label:u.meta.title,value:u.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=s=>{vnt.getMenuList({project_code:s.project_code}).then(u=>{u.code==1&&(n.value=r(u.data||[]))}).catch(u=>{console.log("err",u)})};let a=e.ref();return{changeNode:s=>{a.value=s,t("changeNode",s)},onChangeSystem:s=>{o(s),t("changeSystem",s)},menuData:n}}function hnt(t,n){const r=l=>{n.onlyChild?(!l.children||l.children&&l.children.length<=0)&&t("change",l):t("change",l)},o=e.ref([]);return e.watch(()=>n.menu,l=>{o.value=Ge.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const gnt={class:"max-h-full overflow-y-auto"},bnt=e.defineComponent({__name:"bcPageTree",props:{onlyChild:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},menu:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{handleNodeClick:a,menuData:l,defaultProps:i}=hnt(o,r);return(s,u)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",gnt,[e.createVNode(c,{data:e.unref(l),props:e.unref(i),"highlight-current":"","show-checkbox":t.showCheckbox,onNodeClick:e.unref(a)},null,8,["data","props","show-checkbox","onNodeClick"])])}}}),ynt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},_nt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=mnt(o);return n({onChangeSystem:l}),(s,u)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",ynt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(bnt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}});function lP(t){const n=document.createElement("a");n.href=t.url,n.download=t.name,n.target="_blank",document.body.appendChild(n),n.click(),n.addEventListener("click",()=>{document.body.removeChild(n)})}function Cnt(t,n){const r=za(),{postDeleteFile:o,postDelFileNoAttch:a}=JI(),{proxy:l}=e.getCurrentInstance(),{userInfos:i}=Au(r),s=e.computed(()=>{let k=t.fileList||[];return t.annex?k.map(S=>({name:S.name,id:S.id,path:S.path,url:"https://"+i.value.filePath+`${S.path}?x-oss-process=style/tpys_20`})):k.map(S=>({name:S.path,path:S.path,url:"https://"+i.value.filePath+`${S.path}?x-oss-process=style/tpys_20`}))});function u(k){const S=k.size/1024/1024<t.size;return S||l.$message.error(`上传头像图片大小不能超过 ${t.size}MB!`),S}function c(k,S,B){t.annex?b(k,S,B):C(k,S,B)}function d(k,S="id"){t.annex?w(k,S):y(k,"path")}let f=e.ref(!1);function p(k){f.value=!0}function v(){f.value=!1}const m=e.computed(()=>s.value.map(k=>k.url));function g(k){lP(k)}function b(k,S,B){const E=[];k.code===1?(B.forEach(D=>{if(D.response){const{id:N,path:V,name:M}=D.response.data;E.push({id:N,name:M,path:V})}else{const{id:N,path:V,name:M}=D;E.push({id:N,name:M,path:V})}}),n("update:fileList",E)):(x(S,"uid"),l.$message.error(k.msg))}function C(k,S,B){const E=[];k.code===1?(B.forEach(D=>{if(D.response){const N=D.response.data;E.push({path:N})}}),n("update:fileList",E)):(x(S,"uid"),l.$message.error(k.msg))}function w(k,S="id"){let B=k[S]||k.response.data[S];o({attachId:B}).then(E=>{E.code===1&&(x(k,S),l.$message.success(E.data))})}function y(k,S="path"){let B=k[S]||k.response.data[S];a({filePath:B}).then(E=>{E.code===1&&(x(k,S),l.$message.success(E.data))})}function x(k,S="uid"){let B=t.fileList.filter(E=>E[S]!==k[S]);n("update:fileList",B)}return{userInfos:i,imgList:s,beforeUpload:u,onSuccess:c,onRemove:d,onPreview:p,handleDownload:g,showViewer:f,onClose:v,urlList:m}}const xnt={class:"flex flex-col justify-center items-center gap-1"},wnt={class:"w-full"},knt={class:"el-upload-list__item-actions"},Ent=["onClick"],Snt=["onClick"],Bnt=["onClick"],Nnt=e.defineComponent({__name:"bcUpload",props:{action:{type:String,default:""},proxy:{type:String,default:"/qwp-web"},headers:{type:Object,default:()=>({})},method:{type:String,default:"post"},multiple:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},crossorigin:{type:String,default:""},listType:{type:String,default:"picture-card"},disabled:{type:Boolean,default:!1},limit:{type:Number},size:{type:Number,default:20},fileList:{type:Array,default:()=>[]},annex:{type:Boolean,default:!0}},emits:["update:fileList"],setup(t,{emit:n}){const r=t,o=()=>window.location.origin+`${r.proxy}${r.action}`,a=n,{imgList:l,beforeUpload:i,onSuccess:s,onRemove:u,onPreview:c,handleDownload:d,showViewer:f,onClose:p,urlList:v}=Cnt(r,a);return(m,g)=>{const b=e.resolveComponent("bc-icon"),C=e.resolveComponent("hs-image"),w=e.resolveComponent("hs-upload"),y=e.resolveComponent("hs-image-viewer");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,{action:o(),headers:t.headers,method:t.method,multiple:t.multiple,data:t.data,name:t.name,"with-credentials":t.withCredentials,"show-file-list":t.showFileList,drag:t.drag,accept:t.accept,crossorigin:t.crossorigin,"list-type":t.listType,disabled:t.disabled,limit:t.limit,"file-list":e.unref(l),"before-upload":e.unref(i),"on-success":e.unref(s)},{file:e.withCtx(({file:x})=>[e.createElementVNode("div",wnt,[e.createVNode(C,{src:x.url,class:"el-upload-list__item-thumbnail"},null,8,["src"]),e.createElementVNode("span",knt,[e.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:k=>e.unref(c)(x)},[e.createVNode(b,{name:"ele-ZoomIn"})],8,Ent),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:k=>e.unref(d)(x)},[e.createVNode(b,{name:"ele-Download"})],8,Snt)),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"el-upload-list__item-delete",onClick:k=>e.unref(u)(x)},[e.createVNode(b,{name:"ele-Delete"})],8,Bnt))])])]),default:e.withCtx(()=>[e.createElementVNode("div",xnt,[e.createVNode(b,{name:"ele-Plus"}),e.createTextVNode("上传")])]),_:1},8,["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","crossorigin","list-type","disabled","limit","file-list","before-upload","on-success"]),e.unref(f)?(e.openBlock(),e.createBlock(y,{key:0,"url-list":e.unref(v),onClose:e.unref(p)},null,8,["url-list","onClose"])):e.createCommentVNode("",!0)])}}}),Tnt={class:"text-[#606266]"},Dnt={key:1},Vnt={class:"mb-[10px]"},$nt={key:0,class:"flex justify-center align-middle mt-[10px]"},Ont=e.defineComponent({__name:"baseForm",props:{data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},isRecursive:{type:Boolean,default:!1},isVModel:{type:Boolean,default:!1},xs:{type:Number,default:24},sm:{type:Number,default:24},md:{type:Number,default:24},lg:{type:Number,default:24},xl:{type:Number,default:24}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref(r.data);let l=e.ref(r.isRecursive||r.isVModel?r.data:Ge.cloneDeep(r.data)),i=e.ref(r.config);const s=()=>{console.log("submitForm"),o.value&&o.value.validate(c=>{if(c)console.log("submit!",l.value),a.value=Object.assign(a.value,l.value);else return console.log("error submit!",l.value),!1})};return n({validForm:()=>new Promise(c=>{if(!o.value){c(!1);return}o.value.validate(d=>{c(!!d)})})}),(c,d)=>{const f=e.resolveComponent("ele-Warning"),p=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),m=e.resolveComponent("hs-form-item"),g=e.resolveComponent("hs-alert"),b=e.resolveComponent("base-form",!0),C=e.resolveComponent("hs-col"),w=e.resolveComponent("hs-row"),y=e.resolveComponent("hs-form"),x=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["h-full",{"overflow-y-auto":!t.isRecursive}])},[e.createVNode(y,{model:e.unref(l),"label-width":"146px","label-position":"right",ref_key:"formRef",ref:o},{default:e.withCtx(()=>[e.createVNode(w,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,S)=>(e.openBlock(),e.createBlock(C,{key:S,xs:t.isRecursive?t.xs:24,sm:t.isRecursive?t.sm:24,md:t.isRecursive?t.md:24,lg:t.isRecursive?t.lg:24,xl:t.isRecursive?t.xl:24,class:"mb-[20px]"},{default:e.withCtx(()=>[k.el!="title"?(e.openBlock(),e.createBlock(m,e.normalizeProps(e.mergeProps({key:0},k)),{label:e.withCtx(()=>[e.createElementVNode("span",Tnt," "+e.toDisplayString(k.label)+" ",1),e.createVNode(v,{class:"box-item",effect:"dark",content:k.tooltip||k.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.el),e.mergeProps({modelValue:e.unref(l)[k.prop],"onUpdate:modelValue":B=>e.unref(l)[k.prop]=B,clearable:k.clearable!=!1,placeholder:"请输入"},k.attrs||{}),{default:e.withCtx(()=>[k.op?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.op||[],(B,E)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.cel),{key:E,label:B.label,value:B.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Dnt,[e.createElementVNode("div",Vnt,[e.createVNode(g,{title:k.label,type:"info",closable:!1},null,8,["title"])]),k.children?(e.openBlock(),e.createBlock(b,{key:0,data:e.unref(l)[k.prop],config:k.children,isRecursive:!0,xs:t.xs,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl},null,8,["data","config","xs","sm","md","lg","xl"])):e.createCommentVNode("",!0)]))]),_:2},1032,["xs","sm","md","lg","xl"]))),128))]),_:1})]),_:1},8,["model"]),!t.isRecursive&&!t.isVModel?(e.openBlock(),e.createElementBlock("footer",$nt,[e.createVNode(x,{type:"primary",onClick:s},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),qa=Ar(Ont,[["__scopeId","data-v-ec198f7a"]]),Ant={class:"p-[10px] h-full"},Mnt=e.defineComponent({name:"inputAttrConfig"}),Rnt=e.defineComponent({...Mnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ge.cloneDeep(wQe),inputAttrConfigMap:Ge.cloneDeep(c1)});const o=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",Ant,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(r).inputAttrConfig,isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Int={class:"p-[10px] h-full overflow-y-auto"},Pnt=e.defineComponent({name:"inputEventConfig"}),Fnt=e.defineComponent({...Pnt,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ge.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(uN.map(()=>({})));return console.log("formData",a),(l,i)=>{const s=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Int,[e.createVNode(s,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(uN),(u,c)=>(e.openBlock(),e.createElementBlock("div",{key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.el),e.mergeProps({modelValue:a.value[c][u.prop],"onUpdate:modelValue":d=>a.value[c][u.prop]=d,clearable:"",placeholder:"请输入"},u.attrs||{}),null,16,["modelValue","onUpdate:modelValue"]))]))),128))])}}}),znt=[{prop:"attrs",label:"selectAttrs",tooltip:"selectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"dictCode",label:"字典code",tooltip:"字典code",type:"string",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"optionGroupAttrs",tooltip:"optionGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"label",label:"分组的名称",tooltip:"分组的名称",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用分组",tooltip:"是否将该分组下所有选项置为禁用",type:"string",el:"hs-switch"}]},{prop:"optionAttrs",label:"optionAttrs",tooltip:"optionAttrs",type:"object",el:"title",children:[{prop:"value",label:"选项的值",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用选项",tooltip:"是否禁用该选项",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Lnt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,options:"string=",method:"get",proxy:"",params:"",placeholder:"请选择"},groupAttrs:{disabled:!1,isGroupEnabled:!1},optionAttrs:{value:"value",label:"label",disabled:!1},rules:{required:!1,rules:""}},Hnt={class:"p-[10px] h-full"},Wnt=e.defineComponent({name:"selectAttrConfig"}),jnt=e.defineComponent({...Wnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ge.cloneDeep(Lnt));e.onMounted(()=>{let a=Co.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",Hnt,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(znt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),qnt=[{prop:"attrs",label:"datePickerAttrs",tooltip:"datePickerAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"number / string / object",el:"hs-input"},{prop:"readonly",label:"只读",tooltip:"只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"禁用",tooltip:"禁用",type:"boolean",el:"hs-switch"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"editable",label:"文本框可输入",tooltip:"文本框可输入",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮",type:"boolean",el:"hs-switch"},{prop:"placeholder",label:"占位符",tooltip:"非范围选择时的占位内容",type:"string",el:"hs-input"},{prop:"start-placeholder",label:"开始日期占位符",tooltip:"范围选择时开始日期的占位内容",type:"string",el:"hs-input"},{prop:"end-placeholder",label:"结束日期占位符",tooltip:"范围选择时结束日期的占位内容",type:"string",el:"hs-input"},{prop:"type",label:"显示类型",tooltip:"显示类型",type:"enum",el:"hs-select",op:[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}],cel:"hs-option"},{prop:"format",label:"输入框中的格式",tooltip:"显示在输入框中的格式",type:"参见 date formats",el:"hs-input"},{prop:"popper-class",label:"下拉框的类名",tooltip:"DatePicker 下拉框的类名",type:"string",el:"hs-input"},{prop:"popper-options",label:"自定义popper",tooltip:"自定义 popper 选项,更多请参考 popper.js",type:"object",el:"hs-input"},{prop:"range-separator",label:"分隔符",tooltip:"选择范围时的分隔符",type:"string",el:"hs-input"},{prop:"default-time",label:"default-tim",tooltip:"范围选择时选中日期所使用的当日内具体时刻",type:"object",el:"hs-input"},{prop:"value-format",label:"绑定值的格式",tooltip:"可选,绑定值的格式。 不指定则绑定值为 Date 对象",type:"参见 date formats",el:"hs-input"},{prop:"id",label:"id",tooltip:"等价于原生 input id 属性",type:"string / object",el:"hs-input"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string / object",el:"hs-input"},{prop:"unlink-panels",label:"unlink-panels",tooltip:"在范围选择器里取消两个日期面板之间的联动",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",type:"string / object",el:"hs-input"},{prop:"clear-icon",label:"清除图标",tooltip:"清除图标",type:"string / object",el:"hs-input"},{prop:"validate-event",label:"是否表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"disabled-date",label:"disabled-date",tooltip:"一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。",type:"Function",el:"hs-input"},{prop:"shortcuts",label:"设置快捷选项",tooltip:"设置快捷选项,需要传入数组对象",type:"object",el:"hs-input"},{prop:"cell-class-name",label:"设置类名",tooltip:"设置自定义类名",type:"Function",el:"hs-input"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将 date-picker 的下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Unt={attrs:{size:"default",readonly:!1,disabled:!1,editable:!0,clearable:!0,type:"date","range-separator":"-","unlink-panels":!1,"clear-icon":"","validate-event":!0,teleported:!0,placeholder:"请选择",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss"},rules:{required:!1,rules:""}},Knt={class:"p-[10px] h-full"},Gnt=e.defineComponent({name:"datePickerAttrConfig"}),Ynt=e.defineComponent({...Gnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Unt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Knt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(qnt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Xnt=[{prop:"attrs",label:"按钮属性",tooltip:"按钮属性",type:"object",el:"title",children:[{prop:"operate",label:"操作",tooltip:"操作",type:"enum",el:"hs-select",op:[{label:"query",value:"query"},{label:"reset",value:"reset"},{label:"add",value:"add"},{label:"edit",value:"edit"},{label:"delete",value:"delete"},{label:"export",value:"export"},{label:"import",value:"import"}],cel:"hs-option",attrs:{filterable:!0,"allow-create":!0,"default-first-option":!0}},{prop:"type",label:"类型",tooltip:"类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"},{prop:"name",label:"按钮文本内容",tooltip:"按钮文本内容",type:"string",el:"hs-input"},{prop:"disabled",label:"按钮是否禁用",tooltip:"按钮是否为禁用状态",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"plain",label:"是否为朴素按钮",tooltip:"是否为朴素按钮",type:"boolean",el:"hs-switch"},{prop:"text",label:"是否为文字按钮",tooltip:"是否为文字按钮",type:"boolean",el:"hs-switch"},{prop:"bg",label:"是否显示背景色",tooltip:"是否显示文字按钮背景颜色",type:"boolean",el:"hs-switch"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"round",label:"圆角按钮",tooltip:"是否为圆角按钮",type:"boolean",el:"hs-switch"},{prop:"circle",label:"圆形按钮",tooltip:"是否为圆形按钮",type:"boolean",el:"hs-switch"},{prop:"fnName",label:"方法名称",el:"hs-input",attrs:{type:"textarea"}},{prop:"loading",label:"是否为加载中",tooltip:"是否为加载中状态",type:"boolean",el:"hs-switch"},{prop:"loading-icon",label:"加载中图标",tooltip:"自定义加载中状态图标组件",type:"string / Component",el:"hs-input"},{prop:"icon",label:"图标组件",tooltip:"图标组件",type:"string / Component",el:"hs-input"},{prop:"link",label:"链接按钮",tooltip:"是否为链接按钮",type:"boolean",el:"hs-switch"},{prop:"autofocus",label:"autofocus",tooltip:"原生 autofocus 属性",type:"boolean",el:"hs-switch"},{prop:"native-type",label:"原生 type 属性",tooltip:"原生 type 属性",type:"enum",el:"hs-select",op:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}],cel:"hs-option"},{prop:"auto-insert-space",label:"自动插入空格",tooltip:"自动在两个中文字符之间插入空格",type:"boolean",el:"hs-switch"},{prop:"dark",label:"dark 模式",tooltip:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色",type:"boolean",el:"hs-switch"},{prop:"tag",label:"自定义元素标签",tooltip:"自定义元素标签",type:"string / Component",el:"hs-input"}]},{prop:"groupAttrs",label:"buttonGroupAttrs",tooltip:"buttonGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"size",label:"按钮组内按钮大小",tooltip:"用于控制该按钮组内按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"type",label:"按钮组内按钮类型",tooltip:"用于控制该按钮组内按钮的类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"}]}],Znt={attrs:{size:"default",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",autofocus:!1,"native-type":"button",dark:!1,tag:"button"},groupAttrs:{}},Jnt={class:"p-[10px] h-full"},Qnt=e.defineComponent({name:"buttonAttrConfig"}),ert=e.defineComponent({...Qnt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Znt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Jnt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Xnt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),trt=[{prop:"attrs",label:"autocompleteAttrs",tooltip:"autocompleteAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"fetch-suggestions",label:"远程搜索方法",tooltip:"获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它",type:"Function",el:"hs-input"},{prop:"fetch-url",label:"远程搜索地址",tooltip:"远程搜索地址",type:"string",el:"hs-input"},{prop:"clearable",label:"是否可清空",tooltip:"是否可清空",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"自动补全组件是否被禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"用于显示的键名",tooltip:"输入建议对象中用于显示的键名",type:"string",el:"hs-input"},{prop:"debounce",label:"防抖延时",tooltip:"获取输入建议的防抖延时,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"placement",label:"菜单弹出位置",tooltip:"菜单弹出位置",type:"enum",el:"hs-select",op:[{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"}],cel:"hs-option"},{prop:"trigger-on-focus",label:"trigger-on-focus",tooltip:"whether show suggestions when input focus",type:"boolean",el:"hs-switch"},{prop:"select-when-unmatched",label:"回车触发select",tooltip:"在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件",type:"boolean",el:"hs-switch"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"关联的label",tooltip:"输入框关联的 label 文字",type:"string",el:"hs-input"},{prop:"hide-loading",label:"隐藏加载图标",tooltip:"是否隐藏远程加载时的加载图标",type:"boolean",el:"hs-switch"},{prop:"popper-class",label:"下拉列表的类名",tooltip:"下拉列表的类名",type:"string",el:"hs-input"},{prop:"popper-append-to-body",label:"列表插入body",tooltip:"是否将下拉列表插入至 body 元素。 在下拉列表的定位出现问题时,可将该属性设置为 false",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"传送",tooltip:"是否将下拉列表元素插入 append-to 指向的元素下",type:"boolean",el:"hs-switch"},{prop:"highlight-first-item",label:"高亮结果第一项",tooltip:"是否默认高亮远程搜索结果的第一项",type:"boolean",el:"hs-switch"},{prop:"fit-input-width",label:"宽度与输入框相同",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"}]}],nrt={attrs:{size:"default",clearable:!1,disabled:!1,"value-key":"value",debounce:300,placement:"bottom-start","trigger-on-focus":!0,"select-when-unmatched":!1,"hide-loading":!1,teleported:!0,"highlight-first-item":!1,"fit-input-width":!1,placeholder:"请输入"}},rrt={class:"p-[10px] h-full"},ort=e.defineComponent({name:"autocompleteAttrConfig"}),art=e.defineComponent({...ort,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(nrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",rrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(trt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),lrt=[{prop:"attrs",label:"switchAttrs",tooltip:"switchAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"boolean / string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否显示加载中",tooltip:"是否显示加载中",type:"boolean",el:"hs-switch"},{prop:"size",label:"switch 的大小",tooltip:"switch 的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"width",label:"switch 的宽度",tooltip:"switch 的宽度",type:"number / string",el:"hs-input"},{prop:"inline-prompt",label:"只呈现第一个字符",tooltip:"无论图标或文本是否显示在点内,只会呈现文本的第一个字符",type:"boolean",el:"hs-switch"},{prop:"active-icon",label:"激活时所显示图标",tooltip:"switch 状态为 on 时所显示图标,设置此项会忽略 active-text",type:"string / Component",el:"hs-input"},{prop:"inactive-icon",label:"关闭时所显示图标",tooltip:"switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text",type:"string / Component",el:"hs-input"},{prop:"active-action-icon",label:"打开时图标组件",tooltip:"on状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"inactive-action-icon",label:"关闭时图标组件",tooltip:"off状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"active-text",label:"打开时的文字描述",tooltip:"switch 打开时的文字描述",type:"string",el:"hs-input"},{prop:"inactive-text",label:"关闭时的文字描述",tooltip:"switch 的状态为 off 时的文字描述",type:"string",el:"hs-input"},{prop:"active-value",label:"状态为打开时的值",tooltip:"switch 状态为 on 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"inactive-value",label:"状态为关闭时的值",tooltip:"switch的状态为 off 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"name",label:"name",tooltip:"switch 对应的 name 属性",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"before-change",label:"状态改变前的钩子",tooltip:"switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换",type:"boolean / Function",el:"hs-switch"},{prop:"id",label:"id",tooltip:"id",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"input 的 tabindex",type:"string / number",el:"hs-input"},{prop:"label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],irt={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},srt={class:"p-[10px] h-full"},urt=e.defineComponent({name:"switchAttrConfig"}),crt=e.defineComponent({...urt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",srt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),drt=[{prop:"attrs",label:"uploadAttrs",tooltip:"uploadAttrs",type:"object",el:"title",children:[{prop:"action",label:"请求 URL",tooltip:"请求 URL",type:"string",el:"hs-input"},{prop:"headers",label:"设置上传的请求头",tooltip:"设置上传的请求头部",type:"object",el:"hs-input"},{prop:"method",label:"设置上传请求方法",tooltip:"设置上传请求方法",type:"string",el:"hs-select",op:[{label:"post",value:"post"}],cel:"hs-option"},{prop:"multiple",label:"是否支持多选文件",tooltip:"是否支持多选文件",type:"boolean",el:"hs-switch"},{prop:"data",label:"额外参数",tooltip:"上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function",type:"object / Function",el:"hs-input"},{prop:"name",label:"上传文件字段名",tooltip:"上传的文件字段名",type:"string",el:"hs-input"},{prop:"isBase64",label:"是否是base64",tooltip:"是否是base64文件",type:"boolean",el:"hs-switch"},{prop:"isShowCapture",label:"是否显示高拍仪",tooltip:"是否显示高拍仪控件",type:"boolean",el:"hs-switch"},{prop:"with-credentials",label:"支持发送cookie",tooltip:"支持发送 cookie 凭证信息",type:"boolean",el:"hs-switch"},{prop:"show-file-list",label:"show-file-list",tooltip:"是否显示已上传文件列表",type:"boolean",el:"hs-switch"},{prop:"drag",label:"是否启用拖拽上传",tooltip:"是否启用拖拽上传",type:"boolean",el:"hs-switch"},{prop:"accept",label:"上传的文件类型",tooltip:"接受上传的文件类型(thumbnail-mode 模式下此参数无效)",type:"string",el:"hs-input"},{prop:"on-preview",label:"已上传的钩子",tooltip:"点击文件列表中已上传的文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-remove",label:"移除文件的钩子",tooltip:"文件列表移除文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-success",label:"上传成功的钩子",tooltip:"文件上传成功时的钩子",type:"Function",el:"hs-input"},{prop:"on-error",label:"上传失败的钩子",tooltip:"文件上传失败时的钩子",type:"Function",el:"hs-input"},{prop:"on-progress",label:"上传时的钩子",tooltip:"文件上传时的钩子",type:"Function",el:"hs-input"},{prop:"on-change",label:"状态改变时的钩子",tooltip:"文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用",type:"Function",el:"hs-input"},{prop:"on-exceed",label:"超出限制时的钩子",tooltip:"当超出限制时,执行的钩子函数",type:"Function",el:"hs-input"},{prop:"before-upload",label:"上传之前的钩子",tooltip:"上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。",type:"Function",el:"hs-input"},{prop:"before-remove",label:"删除之前的钩子",tooltip:"删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。",type:"Function",el:"hs-input"},{prop:"file-list",label:"默认上传文件",tooltip:"默认上传文件",type:"object",el:"hs-input"},{prop:"list-type",label:"文件列表的类型",tooltip:"文件列表的类型",type:"enum",el:"hs-select",op:[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}],cel:"hs-option"},{prop:"auto-upload",label:"是否自动上传文件",tooltip:"是否自动上传文件",type:"boolean",el:"hs-switch"},{prop:"http-request",label:"覆盖默认的Xhr",tooltip:"覆盖默认的 Xhr 行为,允许自行实现上传文件的请求",type:"Function",el:"hs-input"},{prop:"disabled",label:"是否禁用上传",tooltip:"是否禁用上传",type:"boolean",el:"hs-switch"},{prop:"limit",label:"最大数量",tooltip:"允许上传文件的最大数量",type:"number",el:"hs-input-number"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],frt={attrs:{method:"post",multiple:!1,name:"file","with-credentials":!1,"show-file-list":!0,drag:!1,"list-type":"text","auto-upload":!0,disabled:!1},rules:{}},prt={class:"p-[10px] h-full"},vrt=e.defineComponent({name:"uploadAttrConfig"}),mrt=e.defineComponent({...vrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(frt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(drt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hrt=[{prop:"attrs",label:"checkboxAttrs",tooltip:"checkboxAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"选中状态的值",tooltip:"选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)",type:"string / number / boolean / object",el:"hs-input"},{prop:"true-label",label:"选中时的值",tooltip:"选中时的值",type:"string / number",el:"hs-input"},{prop:"false-label",label:"没有选中时的值",tooltip:"没有选中时的值",type:"string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"Checkbox 的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"checked",label:"当前是否勾选",tooltip:"当前是否勾选",type:"boolean",el:"hs-switch"},{prop:"indeterminate",label:"设置不确定状态",tooltip:"设置不确定状态,仅负责样式控制",type:"boolean",el:"hs-switch"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"id",label:"id",tooltip:"input id",type:"string",el:"hs-input"},{prop:"controls",label:"controls",tooltip:"与 aria-control一致, 当 indeterminate为 true时生效",type:"boolean",el:"hs-switch"}]},{prop:"groupAttrs",label:"checkboxGroupAttrs",tooltip:"checkboxGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"多选框组尺寸",tooltip:"多选框组尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"min",label:"最小数量",tooltip:"最小数量",type:"string",el:"hs-input-number"},{prop:"max",label:"最大数量",tooltip:"最大数量",type:"string",el:"hs-input-number"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"tag",label:"复选框组元素标签",tooltip:"复选框组元素标签",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],grt={attrs:{isButtonEnabled:!1,size:"default",disabled:!1,border:!1,checked:!1,indeterminate:!1,"validate-event":!0},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",disabled:!1,"text-color":"#ffffff",fill:"#409EFF",tag:"div","validate-event":!0},rules:{required:!1,rules:""}},brt={class:"p-[10px] h-full"},yrt=e.defineComponent({name:"checkboxAttrConfig"}),_rt=e.defineComponent({...yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(grt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",brt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Crt=[{prop:"attrs",label:"radioAttrs",tooltip:"radioAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"单选框的label",tooltip:"单选框的 label",type:"string / number / boolean",el:"hs-input"},{prop:"disabled",label:"是否禁用单选框",tooltip:"是否禁用单选框",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"单选框的尺寸",tooltip:"单选框的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原始 name 属性",tooltip:"原始 name 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"radioGroupAttrs",tooltip:"radioGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"单选框按钮大小",tooltip:"单选框按钮或边框按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"id ",label:"原生 id 属性",tooltip:"原生 id 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],xrt={attrs:{isButtonEnabled:!1,disabled:!1,border:!1},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",size:"default",disabled:!1,"text-color":"#ffffff",fill:"#409EFF","validate-event":!0},rules:{required:!1,rules:""}},wrt={class:"p-[10px] h-full"},krt=e.defineComponent({name:"radioAttrConfig"}),Ert=e.defineComponent({...krt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(xrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Crt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Srt=[{prop:"attrs",label:"inputNumberAttrs",tooltip:"inputNumberAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"min",label:"最小值",tooltip:"设置计数器允许的最小值",type:"number",el:"hs-input-number"},{prop:"max",label:"最大值",tooltip:"设置计数器允许的最大值",type:"number",el:"hs-input-number"},{prop:"step",label:"计数器步长",tooltip:"计数器步长",type:"number",el:"hs-input-number"},{prop:"step-strictly",label:"只能输入step倍数",tooltip:"是否只能输入 step 的倍数",type:"boolean",el:"hs-switch"},{prop:"precision",label:"数值精度",tooltip:"数值精度",type:"number",el:"hs-input-number"},{prop:"size",label:"计数器尺寸",tooltip:"计数器尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"等价于原生 input placeholder 属性",type:"string",el:"hs-input"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用状态",tooltip:"是否禁用状态",type:"boolean",el:"hs-switch"},{prop:"controls",label:"是否使用控制按钮",tooltip:"是否使用控制按钮",type:"boolean",el:"hs-switch"},{prop:"controls-position",label:"控制按钮位置",tooltip:"控制按钮位置",type:"enum",el:"hs-select",op:[{label:"right",value:"right"}],cel:"hs-option"},{prop:"name",label:"input name 属性",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"input label 属性",tooltip:"等价于原生 input label 属性",type:"string",el:"hs-input"},{prop:"id",label:"input id 属性",tooltip:"等价于原生 input id 属性",type:"string",el:"hs-input"},{prop:"value-on-clear",label:"被清空时显示的值",tooltip:"当输入框被清空时显示的值",type:"number / null / enum",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Brt={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Nrt={class:"p-[10px] h-full"},Trt=e.defineComponent({name:"inputNumberAttrConfig"}),Drt=e.defineComponent({...Trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Brt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Nrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Srt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义.(JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"是否支持清空选项",tooltip:"是否支持清空选项",type:"boolean",el:"hs-switch"},{prop:"show-all-levels",label:"show-all-levels",tooltip:"输入框中是否显示选中值的完整路径",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"是否折叠Tag",tooltip:"多选模式下是否折叠Tag",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"显示选中的标签",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"separator",label:"分隔选项的字符",tooltip:"用于分隔选项的字符",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可以被搜索",tooltip:"该选项是否可以被搜索",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"自定义搜索逻辑",tooltip:"自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项(Function)",type:"Function",el:"hs-input"},{prop:"debounce",label:" 防抖延迟,毫秒",tooltip:"搜索关键词正在输入时的去抖延迟,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"before-filter",label:"过滤函数前置钩子",tooltip:"过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。",type:"Function",el:"hs-input"},{prop:"popper-class",label:"自定义类名",tooltip:"弹出内容的自定义类名",type:"string",el:"hs-input"},{prop:"teleported",label:"是否使用teleport",tooltip:"弹层是否使用 teleport",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"是否触发表单校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"max-collapse-tags",label:"Tag的最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"}]}],$rt={attrs:{size:"default",placeholder:"请选择",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500},"show-all-levels":!1,"collapse-tags-tooltip":!1,separator:"/",debounce:300,teleported:!0,"tag-type":"info","validate-event":!0,"max-collapse-tags":1}},Ort={class:"p-[10px] h-full"},Art=e.defineComponent({name:"cascaderAttrConfig"}),Mrt=e.defineComponent({...Art,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep($rt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Ort,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义. (JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]}]}],Irt={attrs:{size:"default",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500}}},Prt={class:"p-[10px] h-full"},Frt=e.defineComponent({name:"cascaderPanelAttrConfig"}),zrt=e.defineComponent({...Frt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lrt=[{prop:"attrs",label:"treeSelectAttrs",tooltip:"treeSelectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"treeAttrs",label:"treeAttrs",tooltip:"treeAttrs",type:"title",el:"title"},{prop:"data",label:"data展示数据",tooltip:"data展示数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取data数据",tooltip:"通过url请求获取data展示数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",tooltip:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"系统代理",tooltip:"系统代理",type:"string",el:"hs-input"},{prop:"empty-text",label:"内容为空时的文本",tooltip:"内容为空的时候展示的文本",type:"string",el:"hs-input"},{prop:"node-key",label:"唯一标识",tooltip:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的",type:"string",el:"hs-input"},{prop:"props",label:"props 配置选项",tooltip:"配置选项,具体看下表",type:"title",el:"title",children:[{prop:"label",label:"label",tooltip:"指定节点标签为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定子树为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定节点选择框是否禁用为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"isLeaf",label:"是否为叶子节点",tooltip:"指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效",type:"string",el:"hs-input"},{prop:"class",label:"节点类名",tooltip:"自定义节点类名",type:"string",el:"hs-input"}]},{prop:"render-after-expand",label:"延迟渲染子节点",tooltip:"是否在第一次展开某个树节点后才渲染其子节点",type:"boolean",el:"hs-switch"},{prop:"load",label:"load",tooltip:"加载子树数据的方法,仅当 lazy 属性为true 时生效",type:"function(node, resolve),node为当前点击的节点,resolve为数据加载完成的回调(必须调用)",el:"hs-input"},{prop:"render-content",label:"节点内容区的渲染",tooltip:"树节点的内容区的渲染 Function",type:"Function(h, { node, data, store })",el:"hs-input"},{prop:"highlight-current",label:"高亮当前选中节点",tooltip:"是否高亮当前选中节点,默认值是 false。",type:"boolean",el:"hs-switch"},{prop:"default-expand-all",label:"默认展开所有节点",tooltip:"是否默认展开所有节点",type:"boolean",el:"hs-switch"},{prop:"expand-on-click-node",label:"展开或收缩节点",tooltip:"是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",type:"boolean",el:"hs-switch"},{prop:"check-on-click-node",label:"点击节点选中节点",tooltip:"是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。",type:"boolean",el:"hs-switch"},{prop:"auto-expand-parent",label:"自动展开父节点",tooltip:"展开子节点的时候是否自动展开父节点",type:"boolean",el:"hs-switch"},{prop:"default-expanded-keys",label:"默认展开数组",tooltip:"默认展开的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"show-checkbox",label:"节点是否可被选择",tooltip:"节点是否可被选择",type:"boolean",el:"hs-switch"},{prop:"check-strictly",label:"父子不互相关联",tooltip:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false",type:"boolean",el:"hs-switch"},{prop:"default-checked-keys",label:"默认勾选的数组",tooltip:"默认勾选的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"current-node-key",label:"当前选中的节点",tooltip:"当前选中的节点",type:"string / number",el:"hs-input"},{prop:"filter-node-method",label:"树节点的筛选方法",tooltip:"对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏",type:"Function(value, data, node)",el:"hs-input"},{prop:"accordion",label:"accordion",tooltip:"是否每次只打开一个同级树节点展开",type:"boolean",el:"hs-switch"},{prop:"indent",label:"节点间的缩进",tooltip:"相邻级节点间的水平缩进,单位为像素",type:"number",el:"hs-input"},{prop:"icon",label:"树节点图标组件",tooltip:"自定义树节点图标组件",type:"string | Component",el:"hs-input"},{prop:"lazy",label:"是否懒加载子节点",tooltip:"是否懒加载子节点,需与 load 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"draggable",label:"开启拖拽功能",tooltip:"是否开启拖拽节点功能",type:"boolean",el:"hs-switch"},{prop:"allow-drag",label:"节点能否被拖拽",tooltip:"判断节点能否被拖拽 如果返回 false ,节点不能被拖动",type:"Function(node)",el:"hs-input"},{prop:"allow-drop",label:"allow-drop",tooltip:"拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后",type:"Function(draggingNode, dropNode, type)",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Hrt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!1,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,props:{},data:"string=",placeholder:"请选择"},rules:{required:!1,rules:""}},Wrt={class:"p-[10px] h-full"},jrt=e.defineComponent({name:"treeSelectAttrConfig"}),qrt=e.defineComponent({...jrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ge.isEmpty(n.data)?Object.assign(n.data,Ge.cloneDeep(Hrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Urt=e.defineComponent({name:"hsImageViewer"}),Krt=e.defineComponent({...Urt,setup(t,{expose:n}){const r=e.ref(null),o=e.getCurrentInstance();return e.onMounted(()=>{Qr(r,o)}),n({...o.exposed}),(a,l)=>{const i=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createBlock(i,{ref_key:"imageViewerRef",ref:r},e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),s=>({name:s,fn:e.withCtx(u=>[e.renderSlot(a.$slots,s,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1536)}}}),Grt=[{title:"hs-test",componentName:MEe},{title:"hs-table",componentName:FEe},{title:"hs-bc-table",componentName:LEe},{title:"hs-button",componentName:CSe},{title:"hs-button-group",componentName:kSe},{title:"hs-input",componentName:SSe},{title:"hs-select",componentName:NSe},{title:"hs-option",componentName:VSe},{title:"hs-option-group",componentName:ASe},{title:"hs-form",componentName:RSe},{title:"hs-form-item",componentName:PSe},{title:"hs-row",componentName:zSe},{title:"hs-col",componentName:HSe},{title:"hs-tree",componentName:qSe},{title:"hs-input-number",componentName:KSe},{title:"hs-switch",componentName:YSe},{title:"hs-radio",componentName:ZSe},{title:"hs-radio-group",componentName:QSe},{title:"hs-radio-button",componentName:t5e},{title:"hs-checkbox",componentName:r5e},{title:"hs-checkbox-group",componentName:a5e},{title:"hs-checkbox-button",componentName:i5e},{title:"hs-rate",componentName:u5e},{title:"hs-autocomplete",componentName:d5e},{title:"hs-slider",componentName:p5e},{title:"hs-cascader",componentName:m5e},{title:"hs-cascader-panel",componentName:g5e},{title:"hs-color-picker",componentName:y5e},{title:"hs-upload",componentName:C5e},{title:"hs-transfer",componentName:w5e},{title:"hs-date-picker",componentName:E5e},{title:"hs-scrollbar",componentName:B5e},{title:"hs-calendar",componentName:T5e},{title:"hs-carousel",componentName:V5e},{title:"hs-carousel-item",componentName:O5e},{title:"hs-collapse",componentName:M5e},{title:"hs-collapse-item",componentName:I5e},{title:"hs-progress",componentName:F5e},{title:"hs-result",componentName:L5e},{title:"hs-tour",componentName:W5e},{title:"hs-tour-step",componentName:q5e},{title:"hs-tag",componentName:K5e},{title:"hs-check-tag",componentName:Y5e},{title:"hs-affix",componentName:Z5e},{title:"hs-tabs",componentName:Q5e},{title:"hs-tab-pane",componentName:tBe},{title:"hs-steps",componentName:rBe},{title:"hs-step",componentName:aBe},{title:"hs-alert",componentName:iBe},{title:"hs-dialog",componentName:uBe},{title:"hs-drawer",componentName:dBe},{title:"hs-popconfirm",componentName:pBe},{title:"hs-popover",componentName:mBe},{title:"hs-tooltip",componentName:gBe},{title:"hs-watermark",componentName:yBe},{title:"hs-dropdown",componentName:CBe},{title:"hs-dropdown-menu",componentName:wBe},{title:"hs-dropdown-item",componentName:EBe},{title:"hs-tree-select",componentName:BBe},{title:"hs-badge",componentName:TBe},{title:"hs-empty",componentName:VBe},{title:"hs-image",componentName:OBe},{title:"hs-image-viewer",componentName:Krt},{title:"bc-btn",componentName:LBe},{title:"bc-box",componentName:xXe},{title:"bc-radio",componentName:kXe},{title:"bc-checkbox",componentName:SXe},{title:"bc-icon",componentName:RBe},{title:"bc-form",componentName:lZe},{title:"bc-table",componentName:sZe},{title:"bc-form-table",componentName:fQe},{title:"bc-form-config",componentName:_Qe},{title:"bc-select",componentName:vQe},{title:"bc-tree-select",componentName:xQe},{title:"bc-page-config",componentName:rnt},{title:"bc-switch-systems",componentName:snt},{title:"bc-auto-complete",componentName:cnt},{title:"bc-group-date",componentName:pnt},{title:"bc-page-tree-for-system",componentName:_nt},{title:"bc-upload",componentName:Nnt},{title:"hs-config-input",componentName:Rnt},{title:"hs-config-event",componentName:Fnt},{title:"hs-config-select",componentName:jnt},{title:"hs-config-date-picker",componentName:Ynt},{title:"hs-config-button",componentName:ert},{title:"hs-config-autocomplete",componentName:art},{title:"hs-config-switch",componentName:crt},{title:"hs-config-upload",componentName:mrt},{title:"hs-config-checkbox",componentName:_rt},{title:"hs-config-radio",componentName:Ert},{title:"hs-config-input-number",componentName:Drt},{title:"hs-config-cascader",componentName:Mrt},{title:"hs-config-cascader-panel",componentName:zrt},{title:"hs-config-tree-select",componentName:qrt}],iP={install(t){Grt.forEach(n=>{t.component(n.title,n.componentName)})}};function Yrt(t){t.directive("auth",{mounted(n,r){za().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;za().userInfos.authBtnList.map(l=>{r.value.map(i=>{l===i&&(o=!0)})}),o||n.parentNode.removeChild(n)}}),t.directive("auth-all",{mounted(n,r){const o=za();Nx(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function Xrt(t){t.directive("waves",{mounted(n,r){n.classList.add("waves-effect"),r.value&&n.classList.add(`waves-${r.value}`);function o(l){let i="";for(let s in l)l.hasOwnProperty(s)&&(i+=`${s}:${l[s]};`);return i}function a(l){let i=document.createElement("div");i.classList.add("waves-ripple"),n.appendChild(i);let s={left:`${l.layerX}px`,top:`${l.layerY}px`,opacity:1,transform:`scale(${n.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};i.setAttribute("style",o(s)),setTimeout(()=>{i.setAttribute("style",o({opacity:0,transform:s.transform,left:s.left,top:s.top})),setTimeout(()=>{i&&n.removeChild(i)},750)},450)}n.addEventListener("mousedown",a,!1)},unmounted(n){n.addEventListener("mousedown",()=>{})}})}function Zrt(t){t.directive("drag",{mounted(n,r){if(!r.value)return!1;const o=document.querySelector(r.value[0]),a=document.querySelector(r.value[1]);a.onmouseover=()=>a.style.cursor="move";function l(s,u){const c=u==="pc"?s.clientX-a.offsetLeft:s.touches[0].clientX-a.offsetLeft,d=u==="pc"?s.clientY-a.offsetTop:s.touches[0].clientY-a.offsetTop,f=document.body.clientWidth,p=document.documentElement.clientHeight,v=o.offsetWidth,m=o.offsetHeight,g=o.offsetLeft,b=f-o.offsetLeft-v,C=o.offsetTop,w=p-o.offsetTop-m;let y=getComputedStyle(o).left,x=getComputedStyle(o).top;return y.includes("%")?(y=+document.body.clientWidth*(+y.replace(/\%/g,"")/100),x=+document.body.clientHeight*(+x.replace(/\%/g,"")/100)):(y=+y.replace(/\px/g,""),x=+x.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:b,minDragDomTop:C,maxDragDomTop:w,styL:y,styT:x}}function i(s,u,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:v,minDragDomTop:m,maxDragDomTop:g,styL:b,styT:C}=c,w=u==="pc"?s.clientX-d:s.touches[0].clientX-d,y=u==="pc"?s.clientY-f:s.touches[0].clientY-f;-w>p?w=-p:w>v&&(w=v),-y>m?y=-m:y>g&&(y=g),o.style.cssText+=`;left:${w+b}px;top:${y+C}px;`}a.onmousedown=s=>{const u=l(s,"pc");document.onmousemove=c=>{i(c,"pc",u)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=s=>{const u=l(s,"app");document.ontouchmove=c=>{i(c,"app",u)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function Jrt(t){Yrt(t),Xrt(t),Zrt(t)}const Qrt=Object.freeze(Object.defineProperty({__proto__:null,directive:Jrt},Symbol.toStringTag,{value:"Module"}));function eot(t,n){ei.value=n==null?void 0:n.NEXT_NAME,ad.value=(n==null?void 0:n.IS_DEV)||!1,t.use(_Ee).use(iP)}exports.ClickOutside=Ri;exports.Download=lP;exports.ElConfigProvider=SD;exports.ElMessage=jn;exports.ElMessageBox=Yo;exports.ElTree=k7;exports.NextLoading=H2;exports.Session=Co;exports._=Ge;exports._export_sfc=Ar;exports._sfc_main=QI;exports.avatar_default=hT;exports.baseForm=qa;exports.commonjsGlobal=ln;exports.component=iP;exports.delete_default=ZC;exports.edit_default=xT;exports.formatAxis=bA;exports.getDataType=yA;exports.getDefaultExportFromCjs=Zo;exports.getFormData=BI;exports.getLoadData=SI;exports.index=aXe;exports.index$1=Qrt;exports.index$2=ySe;exports.inputAttrConfigMap=c1;exports.isObjectValueEqual=Tx;exports.lodashExports=ux;exports.mittBus=xA;exports.onBeforeRouteUpdate=$Ve;exports.other=DA;exports.request=Fn;exports.setBackEndControlRefreshRoutes=B$e;exports.setting_default=OT;exports.showPopup=a1;exports.storeToRefs=Au;exports.systemStore=Di;exports.to=Fu;exports.useBtnConfigController=d1;exports.useFieldConfigController=Zf;exports.useFileController=JI;exports.useHsAdminUi=eot;exports.useKeepALiveNames=dA;exports.useMenuController=Fx;exports.usePostMan=YI;exports.useRoute=e$e;exports.useRouter=QVe;exports.useRoutesList=q2;exports.useSystemController=XI;exports.useTagsViewRoutes=Ix;exports.useThemeConfig=Rx;exports.useUserInfo=za;exports.useVModel=fx;exports.verifyUrl=Hx;exports.zhCn=j7;
|