epic-designer-gold 1.0.31 → 1.0.33
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/{_vue_commonjs-external-BbihI59z.cjs → _vue_commonjs-external-CccDNqHl.cjs} +1 -1
- package/dist/{attributeView-CSiGWdPc.js → attributeView-BAtvUAhV.js} +22 -22
- package/dist/attributeView-BF8AFFq3.cjs +1 -0
- package/dist/{az-CJXcaytS.cjs → az-BHlmRKxT.cjs} +1 -1
- package/dist/be-Bix86zGn.cjs +1 -0
- package/dist/be-kPl6P6VI.js +37 -0
- package/dist/{bg-DCT06eJE.cjs → bg-DRyWA3-W.cjs} +1 -1
- package/dist/{bn-bd-DaKs5QkR.cjs → bn-bd-DsQtVph4.cjs} +1 -1
- package/dist/{button-BbHi0DmU.js → button-q-1FLMFj.js} +2 -2
- package/dist/{ca-DCcDFeSK.js → ca-B_2hM20M.js} +6 -6
- package/dist/core/components/asyncLoader/index.vue.d.ts +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +6 -11
- package/dist/core/components/designer/src/designer.vue.d.ts +200 -9
- package/dist/core/components/designer/src/modules/actionBar/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/attributeView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/styleView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/componentView/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/editContainer/editNodeItem.vue.d.ts +4 -5
- package/dist/core/components/designer/src/modules/editContainer/editScreenContainer.vue.d.ts +7 -2
- package/dist/core/components/designer/src/modules/editContainer/index.vue.d.ts +19 -1
- package/dist/core/components/designer/src/modules/editContainer/nodeItem.vue.d.ts +3 -5
- package/dist/core/components/designer/src/modules/editContainer/previewJson.vue.d.ts +3 -1
- package/dist/core/components/designer/src/modules/editContainer/previewWidgets.vue.d.ts +5 -1
- package/dist/core/components/designer/src/modules/editContainer/toolbar.vue.d.ts +17 -1
- package/dist/core/components/designer/src/modules/header/index.vue.d.ts +6 -5
- package/dist/core/components/designer/src/modules/outline/outline.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/preview/index.vue.d.ts +85 -1
- package/dist/core/components/designer/src/modules/rightSidebar/breadcrumb.vue.d.ts +1 -1
- package/dist/core/components/icon/src/icon.vue.d.ts +4 -6
- package/dist/core/components/node/src/dynamicFormItem.vue.d.ts +12 -11
- package/dist/core/components/node/src/node.vue.d.ts +19 -24
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/core/components/tree/src/treeNodeItem.vue.d.ts +3 -4
- package/dist/core/components/tree/src/treeNodes.vue.d.ts +4 -6
- package/dist/core/extensions/EActionEditor/index.vue.d.ts +25 -1
- package/dist/core/extensions/EActionEditor/src/EArgsEditor.vue.d.ts +5 -7
- package/dist/core/extensions/EActionEditor/src/EScriptEdit.vue.d.ts +3 -1
- package/dist/core/extensions/EColEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +4 -5
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +5 -9
- package/dist/core/extensions/EDataSource/index.vue.d.ts +3 -1
- package/dist/core/extensions/EDescribe/index.vue.d.ts +9 -0
- package/dist/core/extensions/EInputSize/index.vue.d.ts +4 -5
- package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +9 -13
- package/dist/core/extensions/EOptionsEditor/optionItem.vue.d.ts +4 -5
- package/dist/core/extensions/ERuleEditor/ERuleItem.vue.d.ts +5 -6
- package/dist/core/extensions/ERuleEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +6 -18
- package/dist/core/extensions/EValidateParam/index.vue.d.ts +13 -0
- package/dist/core/extensions/MonacoEditor/index.vue.d.ts +15 -21
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +5 -6
- package/dist/core/extensions/Page/index.vue.d.ts +7 -7
- package/dist/{cs-D_hyDJBU.cjs → cs-fe0nQEUY.cjs} +1 -1
- package/dist/{de-CjumkRE8.js → de-DC7xuNPN.js} +3 -3
- package/dist/{el-DyUHskgW.js → el-C0J72FUl.js} +2 -2
- package/dist/{el-BCec0wpC.cjs → el-CUlPbKiq.cjs} +1 -1
- package/dist/{en-gb-C8f1Enek.js → en-gb-D42jaZg9.js} +5 -5
- package/dist/{es-DP04S73E.js → es-C058DgcQ.js} +4 -4
- package/dist/{es-BFLRglxD.cjs → es-CV4N9sQJ.cjs} +1 -1
- package/dist/{et-ipLqjCDG.js → et-hoTk9uxt.js} +5 -5
- package/dist/{eventView-5fa6mfSD.cjs → eventView-BExxE07B.cjs} +1 -1
- package/dist/{eventView-C2wKhfU_.js → eventView-eNaiVabA.js} +4 -4
- package/dist/{fade-in-scale-up.cssr-C_UMnGtI.cjs → fade-in-scale-up.cssr-D5DdSaTl.cjs} +1 -1
- package/dist/{fade-in-scale-up.cssr-BXjoIAAA.js → fade-in-scale-up.cssr-XJx96aae.js} +1 -1
- package/dist/{form-ChuxpD-f.cjs → form-BfnGWRf4.cjs} +1 -1
- package/dist/form-CUbklubB.cjs +1 -0
- package/dist/form-DGbjgAvD.js +208 -0
- package/dist/{form-Cr7tBgLQ.js → form-DkDGcNCH.js} +7 -7
- package/dist/{form-BPH0cDFl.js → form-r1D2WYPd.js} +3 -3
- package/dist/{formItem-D10Om12T.js → formItem-B6XaNgi9.js} +2 -2
- package/dist/{formItem-cj8JQT2r.js → formItem-BJ-M4LAL.js} +2 -2
- package/dist/{formItem-Do31LPIz.cjs → formItem-DS5AjuJ9.cjs} +1 -1
- package/dist/{formItem-DPnbV4m-.js → formItem-E3dd7dU1.js} +3 -3
- package/dist/{fr-D1kezmpm.cjs → fr-B_IotmK8.cjs} +1 -1
- package/dist/{fr-ca-EPfCD7sc.js → fr-ca-DfJb7eFN.js} +4 -4
- package/dist/ga-DP4_Ma79.js +22 -0
- package/dist/ga-Upa8swLh.cjs +1 -0
- package/dist/{gl-CBMDu4db.js → gl-L0SOKqrF.js} +1 -1
- package/dist/{gl-DI-aVaAh.cjs → gl-buZ-VDaz.cjs} +1 -1
- package/dist/{he-O14-JKYm.cjs → he-CwFEkyZP.cjs} +1 -1
- package/dist/{hi-nXeMgLvO.js → hi-CG6raJ8L.js} +2 -2
- package/dist/{hy-am-BLnv1pCz.cjs → hy-am-IbMCW8s4.cjs} +1 -1
- package/dist/{hy-am-CvHDFapi.js → hy-am-QWdQfrnZ.js} +2 -2
- package/dist/{icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js → icon.vue_vue_type_script_setup_true_lang-DW206h_7.js} +2 -2
- package/dist/{id-CO78nlWo.js → id-CXRpiOjX.js} +4 -4
- package/dist/index-3k1IXN1T.js +1772 -0
- package/dist/{index-B0OgKtuT.js → index-9Mn4Y5ul.js} +30 -30
- package/dist/index-B7v1JNbf.cjs +351 -0
- package/dist/{index-DgcFxYFp.js → index-BMXnkqXx.js} +3 -3
- package/dist/{index-CCCx1tbF.cjs → index-BRAbfTxT.cjs} +1 -1
- package/dist/index-BRSms-yQ.cjs +10 -0
- package/dist/{index-WkZdU_zw.js → index-BTaKazMR.js} +3 -3
- package/dist/index-BU3ulVXO.cjs +51 -0
- package/dist/index-BVGB9juO.cjs +352 -0
- package/dist/index-BWTbnurN.cjs +102 -0
- package/dist/index-B_ZNp-FD.cjs +10 -0
- package/dist/index-BakH-Ay7.js +1513 -0
- package/dist/{index-tSmvj7CR.js → index-BdXFwT-C.js} +749 -721
- package/dist/{index-D1ZL6feZ.js → index-Bf7gu4Ub.js} +28210 -27533
- package/dist/index-BlIhb2K5.cjs +65 -0
- package/dist/{index-DYQi05p8.cjs → index-BozsQqds.cjs} +1 -1
- package/dist/index-BtKa0UKV.cjs +326 -0
- package/dist/index-BwHmwZ5G.cjs +1 -0
- package/dist/{index-D2GF87Tg.cjs → index-Bxdmlmwu.cjs} +1 -1
- package/dist/index-C3ri9kGU.cjs +110 -0
- package/dist/index-C4CkFEzv.cjs +1 -0
- package/dist/{index-COyKmK8p.js → index-C4laxGCk.js} +532 -529
- package/dist/{index-B2RMcVgD.js → index-C5yUsiJH.js} +3 -3
- package/dist/{index-CpTA2IRB.js → index-CAYHjLKP.js} +10 -10
- package/dist/index-CFChTrwc.cjs +1 -0
- package/dist/index-CFHEVgng.cjs +1 -0
- package/dist/index-CHYKgo9A.cjs +1 -0
- package/dist/{index-CNOUPCih.js → index-CLAopW_w.js} +143 -142
- package/dist/index-CLeSXOVj.js +122 -0
- package/dist/{index-CdnV7DS4.js → index-CQSYlqUB.js} +3 -3
- package/dist/{index-Hdc_C4Xg.js → index-CRaEQ5ns.js} +116 -115
- package/dist/{index-BbTWJKHb.js → index-CT056ccv.js} +23 -23
- package/dist/index-CcXd7BgN.js +451 -0
- package/dist/{index-RL7vrExY.js → index-Cecp9t8s.js} +17 -17
- package/dist/index-ClgIpXW0.cjs +1 -0
- package/dist/index-CnPBVx5Y.cjs +181 -0
- package/dist/index-CpTUkT9o.cjs +159 -0
- package/dist/index-CqIGF1hQ.cjs +86 -0
- package/dist/{index-DymbM-qI.js → index-CrVn9CfT.js} +79 -72
- package/dist/{index-Cmfhlo_3.js → index-D2n96wxz.js} +5 -5
- package/dist/{index-FgdbKgb5.cjs → index-DER3z6SG.cjs} +1 -1
- package/dist/{index-Dk0fyxAJ.cjs → index-DExGgrX9.cjs} +1 -1
- package/dist/{index-lCYWKDlK.js → index-DI-E5Cpq.js} +6 -6
- package/dist/{index-Cx7gKpkD.js → index-DMnyvgEN.js} +3 -3
- package/dist/{index-DaRhLTx9.js → index-DMuf-r1U.js} +489 -489
- package/dist/{index-gA02bxwJ.js → index-DUFhAGX3.js} +3443 -3361
- package/dist/{index-CjcjqKkB.js → index-DWSlxQBe.js} +87 -86
- package/dist/index-DYU07eGb.cjs +1 -0
- package/dist/{index-BENF2JDS.cjs → index-Di9sEDRc.cjs} +1 -1
- package/dist/{index-DQ9Vb0QH.js → index-Dkj_Zz4E.js} +309 -308
- package/dist/index-DlWUR7vt.cjs +6 -0
- package/dist/index-Dp0hJSh5.js +4 -0
- package/dist/{index-3fW_aWMH.js → index-Ds_DeGh-.js} +581 -567
- package/dist/index-FaOdtMdB.cjs +214 -0
- package/dist/index-K9w-efBB.cjs +1 -0
- package/dist/{index-DiDIFoTk.js → index-KXG0ExdR.js} +3 -3
- package/dist/index-UpNznhhe.js +19 -0
- package/dist/index-XEUPyaqB.js +655 -0
- package/dist/index-Xnqspbxj.js +59 -0
- package/dist/{index-v2u1WTMm.cjs → index-aIGMRk0a.cjs} +1 -1
- package/dist/{index-BEUYVwRA.cjs → index-eAXbC_rr.cjs} +1 -1
- package/dist/index-lf6yCev-.cjs +1 -0
- package/dist/{index-BhMVNODR.js → index-natF7VzY.js} +9 -12
- package/dist/index-o6azVcPr.js +11903 -0
- package/dist/{index-Cln9MN7u.js → index-ocw8DZly.js} +5 -5
- package/dist/index-r7I2iBup.cjs +9 -0
- package/dist/index-sFE9uQIP.js +1712 -0
- package/dist/{index-IGxCNti8.js → index-syyNmnFq.js} +5 -5
- package/dist/index-t1QZ07qC.cjs +864 -0
- package/dist/{index-R2r9Rw5O.cjs → index-uyQPLEww.cjs} +1 -1
- package/dist/{index-CpevxZqj.cjs → index-waYHs7SN.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/{is-C40R_fdL.cjs → is-DKGME0z-.cjs} +1 -1
- package/dist/{it-BFF7WzRR.js → it-BtbhD8pq.js} +1 -1
- package/dist/{it-D7K-0U_k.cjs → it-ZWKZeGyD.cjs} +1 -1
- package/dist/{ja-4CWMghxy.js → ja--ZXRcv9f.js} +4 -4
- package/dist/{ja-CAXCMb11.cjs → ja-pfO_QIN1.cjs} +1 -1
- package/dist/{ka-DrA_EMLP.js → ka-2eqGlkEl.js} +2 -2
- package/dist/{kk-Bv8yYeRk.cjs → kk-8gl4nJDr.cjs} +1 -1
- package/dist/{kk-QVPqpI2b.js → kk-U2vwYR0_.js} +2 -2
- package/dist/{km-BmycjYfj.cjs → km-BhO_ypYk.cjs} +1 -1
- package/dist/{km-CBMnSWv_.js → km-CvriZlET.js} +2 -2
- package/dist/{kn-TECqDIit.js → kn-B3fo7baQ.js} +2 -2
- package/dist/{kn-CFiXt5hu.cjs → kn-DbnERw-L.cjs} +1 -1
- package/dist/{lt-D0cq_0yM.js → lt-LJQA5IUB.js} +8 -8
- package/dist/{lv-CoTNe47-.cjs → lv-BOhsxkyH.cjs} +1 -1
- package/dist/{lv-CVdYvxq8.js → lv-mhTNPcB7.js} +6 -6
- package/dist/{mk-DVN6iYK_.cjs → mk-Bjsw8OIP.cjs} +1 -1
- package/dist/{mk-DDuk7A3P.js → mk-CwQCoXyz.js} +2 -2
- package/dist/{ml-DnXJOqZ0.cjs → ml-B2Uwy4uy.cjs} +1 -1
- package/dist/{ml-CPI3tJe8.js → ml-Cb3T32D6.js} +2 -2
- package/dist/{mn-CNbMEx0y.js → mn-CNzb6fwh.js} +2 -2
- package/dist/{mn-DMIrWGkN.cjs → mn-CsItTiQc.cjs} +1 -1
- package/dist/{modal-3Iw7tqyx.js → modal-BRQmBRpE.js} +4 -4
- package/dist/{modal-DZRJyZfk.cjs → modal-BgQNXEZY.cjs} +1 -1
- package/dist/{ms-my-BoMZ8Hzl.cjs → ms-my-BgFBTdYR.cjs} +1 -1
- package/dist/{ms-my-BcgYEtml.js → ms-my-CQBECOnt.js} +6 -6
- package/dist/{nb-BL5QmNEa.js → nb-ChJHZ1i8.js} +2 -2
- package/dist/{ne-9klrwaIE.js → ne-KSsPp_--.js} +4 -4
- package/dist/{ne-VNPqdWFn.cjs → ne-wk64JT9v.cjs} +1 -1
- package/dist/{nl-DBFNL8wC.cjs → nl-B5Fclgi6.cjs} +1 -1
- package/dist/ocrUpload-CMskfGHX.cjs +1 -0
- package/dist/ocrUpload-Cxxs1GtD.js +521 -0
- package/dist/orcSelectPage-CXd59VaA.js +47 -0
- package/dist/orcSelectPage-DY_4W3lm.cjs +1 -0
- package/dist/{outline-BE98qFHQ.cjs → outline-BkNtj_2a.cjs} +1 -1
- package/dist/{outline-Ch5PHy3c.js → outline-S7RIV1S6.js} +4 -4
- package/dist/{pluginManager-BCnrHPYv.js → pluginManager-B0y107-1.js} +1 -1
- package/dist/{pluginManager-DWHAX8kP.cjs → pluginManager-C8aQylGX.cjs} +1 -1
- package/dist/{pt-BaTZB0XW.cjs → pt-BfCV6EE0.cjs} +1 -1
- package/dist/{pt-br-C1mqj5qX.js → pt-br-BC7LLaiM.js} +3 -3
- package/dist/{pt-br-B_N58uu_.cjs → pt-br-Cmqeku7l.cjs} +1 -1
- package/dist/{ro-Cnuhxb40.cjs → ro-BoP4bVrV.cjs} +1 -1
- package/dist/row-CAcx39Av.cjs +1 -0
- package/dist/row-DhORW-4_.js +34 -0
- package/dist/{ru-CCbLARi0.js → ru-CLqP_yvB.js} +5 -5
- package/dist/select-957IpcJa.js +38 -0
- package/dist/select-BgVmNynq.cjs +1 -0
- package/dist/{selectPage-CrdVWKGk.cjs → selectPage-H4G0pWhK.cjs} +1 -1
- package/dist/{selectPage-Bm45M31g.js → selectPage-oM1OpHbJ.js} +3 -3
- package/dist/{sign-BS-9u6is.cjs → sign-Cusu4oCD.cjs} +1 -1
- package/dist/{sign-l63EYvVo.js → sign-Cz5OCE1C.js} +12 -12
- package/dist/{sk-DRjgEzVO.cjs → sk-DvU2x_On.cjs} +1 -1
- package/dist/{sl-CL8MnX8D.js → sl-MH1u3xWj.js} +9 -9
- package/dist/style.css +1 -1
- package/dist/{styleView-CrBDikDV.cjs → styleView-DAskd_e3.cjs} +1 -1
- package/dist/{styleView-DONajUQ-.js → styleView-oSuNX97o.js} +8 -8
- package/dist/{ta-CsfYqZQU.js → ta-CeKe4tRh.js} +2 -2
- package/dist/{tabs-CYH9lAUk.cjs → tabs-5lcSnurM.cjs} +1 -1
- package/dist/{tabs-DCyifACM.js → tabs-Cu4PLnTU.js} +1 -1
- package/dist/{th-C-CGWPlT.cjs → th-B1vCpSkb.cjs} +1 -1
- package/dist/{th-CC5sx7mS.js → th-DuVrYobw.js} +2 -2
- package/dist/theme/var.less +6 -5
- package/dist/{tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs → tree.vue_vue_type_script_setup_true_lang-583kvI0Q.cjs} +1 -1
- package/dist/{tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js → tree.vue_vue_type_script_setup_true_lang-M13R0TPV.js} +4 -4
- package/dist/ui/antd/button/button.vue.d.ts +2 -1
- package/dist/ui/antd/index.cjs +2 -2
- package/dist/ui/antd/index.js +40 -40
- package/dist/ui/antd/modal/modal.vue.d.ts +3 -2
- package/dist/ui/antd/upload-image/uploadImage.vue.d.ts +1 -1
- package/dist/ui/elementPlus/form/form.vue.d.ts +372 -7
- package/dist/ui/elementPlus/formItem/formItem.vue.d.ts +346 -3
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +556 -253
- package/dist/ui/elementPlus/modal/modal.d.ts +1 -1
- package/dist/ui/elementPlus/ocr-select-page/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-select-page/orcSelectPage.d.ts +8 -0
- package/dist/ui/elementPlus/ocr-upload/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-upload/ocrUpload.d.ts +21 -0
- package/dist/ui/naiveUi/form-item/formItem.vue.d.ts +772 -3
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +11 -11
- package/dist/ui/naiveUi/modal/modal.d.ts +1 -1
- package/dist/{uk-Cc6k-QUE.cjs → uk-8RCZke0G.cjs} +1 -1
- package/dist/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
- package/dist/{uploadImage-nwjqcVFU.cjs → uploadImage-r7uyNOKB.cjs} +1 -1
- package/dist/{ur-C0tmW1hr.js → ur-Dj65NIKf.js} +3 -3
- package/dist/utils/manager/pluginManager.d.ts +16 -16
- package/dist/{vi-j1PGHz1o.js → vi-BEZaL78_.js} +4 -4
- package/dist/{vi-Dyfq5Qgz.cjs → vi-aBc6LsS_.cjs} +1 -1
- package/dist/{vuedraggable.umd-BqhSJIAi.cjs → vuedraggable.umd-CxOWsXm8.cjs} +6 -6
- package/dist/{vuedraggable.umd-D2S7Eo7p.js → vuedraggable.umd-D908YPOr.js} +396 -400
- package/dist/{zh-cn-BKQHxHe9.cjs → zh-cn-DTp5Vsak.cjs} +1 -1
- package/dist/{zh-hk-hNFRxlrX.cjs → zh-hk-DvIiOtyL.cjs} +1 -1
- package/dist/{zh-tw-BT16WIrT.js → zh-tw-BZt76cZl.js} +7 -7
- package/dist/{zh-tw-SGOlw9Wo.cjs → zh-tw-OGVt40m9.cjs} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-UzP3tU2D.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/be--_CkdeMD.cjs +0 -1
- package/dist/be-DJzFjqtL.js +0 -22
- package/dist/form-Bofkrmkd.cjs +0 -1
- package/dist/form-VbfBmb63.js +0 -72
- package/dist/ga-B7Rd2JIZ.cjs +0 -1
- package/dist/ga-BcnAx7jm.js +0 -22
- package/dist/index-4PPmJYKt.cjs +0 -51
- package/dist/index-B72l3XQl.js +0 -453
- package/dist/index-B8exdhvc.cjs +0 -1
- package/dist/index-BB9rZNCd.cjs +0 -181
- package/dist/index-BCk0LJsg.cjs +0 -347
- package/dist/index-BHZbtFEF.cjs +0 -1
- package/dist/index-BVUz9lFN.cjs +0 -325
- package/dist/index-BhICtIH5.js +0 -1433
- package/dist/index-BsXm6fLD.js +0 -1493
- package/dist/index-BwLkOBWy.cjs +0 -10
- package/dist/index-C9PHR_YC.js +0 -4
- package/dist/index-CR_tJiJv.js +0 -653
- package/dist/index-CU1ZFiwn.cjs +0 -1
- package/dist/index-CZFPJ6vM.cjs +0 -1
- package/dist/index-Cap7FkuS.cjs +0 -1
- package/dist/index-Cphndmia.cjs +0 -214
- package/dist/index-CraRg8wh.js +0 -107
- package/dist/index-D5WpEOUO.cjs +0 -351
- package/dist/index-DEBQD_h0.cjs +0 -1
- package/dist/index-DMszow96.cjs +0 -110
- package/dist/index-DTzB2pWI.cjs +0 -159
- package/dist/index-DWCSzZfR.cjs +0 -80
- package/dist/index-DyWFUxn5.js +0 -11674
- package/dist/index-RdEhd65J.cjs +0 -65
- package/dist/index-XU85x6vz.cjs +0 -9
- package/dist/index-g5ZjtbqH.cjs +0 -102
- package/dist/index-jx5A2kt8.cjs +0 -850
- package/dist/index-n6H8b6fT.cjs +0 -1
- package/dist/index-zYoSB4fa.cjs +0 -9
- package/dist/row-CkyJ9pQh.js +0 -35
- package/dist/row-NNlPGZRG.cjs +0 -1
- package/dist/select-BvJWp4t6.cjs +0 -1
- package/dist/select-CjWTf5kk.js +0 -45
- package/dist/ui/antd/form/form.vue.d.ts +0 -64
- package/dist/ui/antd/form-item/formItem.vue.d.ts +0 -18
package/dist/index-BhICtIH5.js
DELETED
|
@@ -1,1433 +0,0 @@
|
|
|
1
|
-
import { ref as P, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
|
|
2
|
-
import { p as z, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as j, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
|
|
3
|
-
import { a as pe, u as Oe } from "./index-B1s67XDZ.js";
|
|
4
|
-
import { a as _e } from "./axios-CXDYiOMX.js";
|
|
5
|
-
function Lt(e, n) {
|
|
6
|
-
let s = null;
|
|
7
|
-
return (...r) => {
|
|
8
|
-
s && clearTimeout(s), s = setTimeout(() => {
|
|
9
|
-
e(...r);
|
|
10
|
-
}, n);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function Pe() {
|
|
14
|
-
const e = P({}), n = P({}), s = P(!1), r = P([]), c = re({});
|
|
15
|
-
function a(p) {
|
|
16
|
-
return e.value[p];
|
|
17
|
-
}
|
|
18
|
-
function w(p, S) {
|
|
19
|
-
e.value[p] = S;
|
|
20
|
-
}
|
|
21
|
-
function g(p) {
|
|
22
|
-
delete e.value[p];
|
|
23
|
-
}
|
|
24
|
-
function h(p, S = !1) {
|
|
25
|
-
const I = Object.entries(z.publicMethods).reduce(
|
|
26
|
-
(C, [m, U]) => (C[m] = U.handler, C),
|
|
27
|
-
{}
|
|
28
|
-
);
|
|
29
|
-
try {
|
|
30
|
-
new Function(`const epic = this;${p}`).bind({
|
|
31
|
-
...I,
|
|
32
|
-
getComponent: a,
|
|
33
|
-
find: a,
|
|
34
|
-
defineExpose: N,
|
|
35
|
-
publicMethods: I,
|
|
36
|
-
pluginManager: z
|
|
37
|
-
})();
|
|
38
|
-
} catch (C) {
|
|
39
|
-
S && console.error("[epic:自定义函数]异常:", C);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function N(p) {
|
|
43
|
-
p != null && (n.value = p);
|
|
44
|
-
}
|
|
45
|
-
function O(p, ...S) {
|
|
46
|
-
if (!p || p.length === 0) {
|
|
47
|
-
console.warn("未提供任何动作");
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
p.forEach((I) => {
|
|
51
|
-
const C = I.args ? JSON.parse(I.args) : S;
|
|
52
|
-
switch (I.type) {
|
|
53
|
-
case "public":
|
|
54
|
-
t(I, C);
|
|
55
|
-
break;
|
|
56
|
-
case "custom":
|
|
57
|
-
x(I, C);
|
|
58
|
-
break;
|
|
59
|
-
case "component":
|
|
60
|
-
d(I, C);
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
console.warn(`未知的动作类型: ${I.type}`);
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function t(p, S) {
|
|
69
|
-
var I;
|
|
70
|
-
try {
|
|
71
|
-
(I = z.publicMethods[p.methodName]) == null || I.handler(...S);
|
|
72
|
-
} catch (C) {
|
|
73
|
-
console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, C);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function x(p, S) {
|
|
77
|
-
var I, C;
|
|
78
|
-
try {
|
|
79
|
-
(C = (I = n.value)[p.methodName]) == null || C.call(I, ...S);
|
|
80
|
-
} catch (m) {
|
|
81
|
-
console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, m);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function d(p, S) {
|
|
85
|
-
const I = p.componentId != null && a(p.componentId);
|
|
86
|
-
if (!I) {
|
|
87
|
-
console.warn(`[Epic:组件${p.componentId}]未找到`);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
try {
|
|
91
|
-
I[p.methodName](...S);
|
|
92
|
-
} catch (C) {
|
|
93
|
-
console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, C);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function D(p = !0) {
|
|
97
|
-
s.value = p;
|
|
98
|
-
}
|
|
99
|
-
function y(p) {
|
|
100
|
-
const S = Qe(p, () => !0);
|
|
101
|
-
r.value = S.map((I) => I.id);
|
|
102
|
-
}
|
|
103
|
-
function E(p, S = "default") {
|
|
104
|
-
if (c[S]) {
|
|
105
|
-
const I = c[S];
|
|
106
|
-
ae(p, I);
|
|
107
|
-
}
|
|
108
|
-
c[S] = p;
|
|
109
|
-
}
|
|
110
|
-
function M(p, S = "default") {
|
|
111
|
-
if (c[S]) {
|
|
112
|
-
ae(c[S], p, !1);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
c[S] = p;
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
componentInstances: e,
|
|
119
|
-
funcs: n,
|
|
120
|
-
isDesignMode: s,
|
|
121
|
-
defaultComponentIds: r,
|
|
122
|
-
forms: c,
|
|
123
|
-
addFormData: E,
|
|
124
|
-
setFormData: M,
|
|
125
|
-
getComponentInstance: a,
|
|
126
|
-
// 简化查询函数, 推荐使用
|
|
127
|
-
find: a,
|
|
128
|
-
addComponentInstance: w,
|
|
129
|
-
removeComponentInstance: g,
|
|
130
|
-
setMethods: h,
|
|
131
|
-
doActions: O,
|
|
132
|
-
setDesignMode: D,
|
|
133
|
-
setDefaultComponentIds: y
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function ke() {
|
|
137
|
-
const e = P([]), n = P([]), s = P(null);
|
|
138
|
-
let r = 0;
|
|
139
|
-
function c(h, N = "插入组件") {
|
|
140
|
-
const O = Date.now();
|
|
141
|
-
r + 150 > O || (r = O, s.value != null && (e.value.push(s.value), n.value.splice(0, n.value.length)), s.value = {
|
|
142
|
-
type: N,
|
|
143
|
-
componentSchema: JSON.stringify(h)
|
|
144
|
-
}, e.value.length > 60 && e.value.unshift());
|
|
145
|
-
}
|
|
146
|
-
function a() {
|
|
147
|
-
if (e.value.length === 0)
|
|
148
|
-
return !1;
|
|
149
|
-
const h = e.value.pop();
|
|
150
|
-
return s.value != null && n.value.push(s.value), s.value = h, JSON.parse(h.componentSchema);
|
|
151
|
-
}
|
|
152
|
-
function w() {
|
|
153
|
-
if (n.value.length === 0)
|
|
154
|
-
return !1;
|
|
155
|
-
const h = n.value.pop();
|
|
156
|
-
return s.value != null && e.value.push(s.value), s.value = h, JSON.parse(h.componentSchema);
|
|
157
|
-
}
|
|
158
|
-
function g() {
|
|
159
|
-
e.value = [], n.value = [], s.value = null;
|
|
160
|
-
}
|
|
161
|
-
return {
|
|
162
|
-
recordList: e,
|
|
163
|
-
undoList: n,
|
|
164
|
-
currentRecord: s,
|
|
165
|
-
push: c,
|
|
166
|
-
undo: a,
|
|
167
|
-
redo: w,
|
|
168
|
-
reset: g
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
const je = /* @__PURE__ */ le({
|
|
172
|
-
__name: "dynamicFormItem",
|
|
173
|
-
props: {
|
|
174
|
-
hasFormItem: { type: Boolean },
|
|
175
|
-
formItemProps: {}
|
|
176
|
-
},
|
|
177
|
-
emits: ["updateFormItemRef"],
|
|
178
|
-
setup(e, { emit: n }) {
|
|
179
|
-
const s = z.getComponent("form-item"), r = e, c = n, a = P(), w = () => {
|
|
180
|
-
c("updateFormItemRef", a.value);
|
|
181
|
-
};
|
|
182
|
-
return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
|
|
183
|
-
key: 0,
|
|
184
|
-
ref_key: "formItemRef",
|
|
185
|
-
ref: a,
|
|
186
|
-
onVnodeMounted: w
|
|
187
|
-
}, r.formItemProps), {
|
|
188
|
-
default: T(() => [
|
|
189
|
-
K(g.$slots, "default")
|
|
190
|
-
]),
|
|
191
|
-
_: 3
|
|
192
|
-
}, 16, ["onVnodeMounted"])) : K(g.$slots, "default", { key: 1 });
|
|
193
|
-
}
|
|
194
|
-
}), et = /* @__PURE__ */ le({
|
|
195
|
-
name: "ENode",
|
|
196
|
-
__name: "node",
|
|
197
|
-
props: {
|
|
198
|
-
componentSchema: {},
|
|
199
|
-
modelValue: {},
|
|
200
|
-
ruleField: {},
|
|
201
|
-
resetFormData: { type: Boolean },
|
|
202
|
-
name: {},
|
|
203
|
-
dynamicId: {},
|
|
204
|
-
sourceDateUrl: {},
|
|
205
|
-
id: {}
|
|
206
|
-
},
|
|
207
|
-
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
208
|
-
setup(e, { emit: n }) {
|
|
209
|
-
const { proxy: s } = ue(), r = e, c = P(null);
|
|
210
|
-
let a = ne("formData", re({}));
|
|
211
|
-
const w = ne("slots", {}), g = ne("pageManager", {}), h = ne("disabled", { value: !1 }), N = ne("ruleFieldPrefix", null), O = ne("resetFormData", !1);
|
|
212
|
-
let t = re(G(r.componentSchema));
|
|
213
|
-
D();
|
|
214
|
-
async function x(o) {
|
|
215
|
-
if (["cascader", "checkbox", "select", "radio"].includes(o.type) && o.componentProps.dynamicId && r.sourceDateUrl) {
|
|
216
|
-
const u = (await _e({
|
|
217
|
-
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
218
|
-
url: r.sourceDateUrl,
|
|
219
|
-
method: "get",
|
|
220
|
-
params: {
|
|
221
|
-
id: o.componentProps.dynamicId
|
|
222
|
-
},
|
|
223
|
-
headers: {
|
|
224
|
-
Authorization: "Bearer " + pe.get("Admin-Token"),
|
|
225
|
-
lang: pe.get("saas-locale") || "zh-CN",
|
|
226
|
-
//语言
|
|
227
|
-
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
228
|
-
//时区
|
|
229
|
-
}
|
|
230
|
-
})).data.data;
|
|
231
|
-
let _ = await _e({
|
|
232
|
-
url: u.url,
|
|
233
|
-
method: u.method,
|
|
234
|
-
data: u.body ? JSON.parse(u.body) : {},
|
|
235
|
-
params: u.params ? JSON.parse(u.params) : {},
|
|
236
|
-
headers: {
|
|
237
|
-
...JSON.parse(u.headers),
|
|
238
|
-
Authorization: "Bearer " + pe.get("Admin-Token"),
|
|
239
|
-
lang: pe.get("saas-locale") || "zh-CN",
|
|
240
|
-
//语言
|
|
241
|
-
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
242
|
-
//时区
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
if (u && (u != null && u.dataPath)) {
|
|
246
|
-
const q = u.dataPath.split(".").reduce((de, fe) => de[fe], _.data);
|
|
247
|
-
o.componentProps.options = d(q, u.dataKey, u.dataValue);
|
|
248
|
-
} else
|
|
249
|
-
o.componentProps.options = d(_.data, u.dataKey, u.dataValue);
|
|
250
|
-
return o;
|
|
251
|
-
}
|
|
252
|
-
return o;
|
|
253
|
-
}
|
|
254
|
-
function d(o, l, $) {
|
|
255
|
-
return o && Object.prototype.toString.call(o) === "[object Array]" ? o.map((u) => u.children && u.children.length ? {
|
|
256
|
-
label: u[l],
|
|
257
|
-
value: u[$] + "",
|
|
258
|
-
children: d(u.children, l, $)
|
|
259
|
-
} : {
|
|
260
|
-
label: u[l],
|
|
261
|
-
value: u[$] + ""
|
|
262
|
-
}) : [];
|
|
263
|
-
}
|
|
264
|
-
B(
|
|
265
|
-
() => r.componentSchema,
|
|
266
|
-
(o) => {
|
|
267
|
-
Ve(t, o, ["children"]) || (ae(t, G(o)), D());
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
deep: !0
|
|
271
|
-
}
|
|
272
|
-
);
|
|
273
|
-
function D() {
|
|
274
|
-
g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
|
|
275
|
-
}
|
|
276
|
-
(r.resetFormData || O) && (a = {});
|
|
277
|
-
const y = n, E = P(), M = P(), p = (o) => {
|
|
278
|
-
M.value = o;
|
|
279
|
-
}, S = Re();
|
|
280
|
-
Object.keys(S).length && Z("nodeAttrs", S);
|
|
281
|
-
const I = Ue(null), C = W(() => {
|
|
282
|
-
var o, l;
|
|
283
|
-
return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: a })) ?? !0;
|
|
284
|
-
}), m = W(() => {
|
|
285
|
-
var u;
|
|
286
|
-
const o = C.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
|
|
287
|
-
..._,
|
|
288
|
-
validator: _.validator && g.funcs.value[_.validator]
|
|
289
|
-
// 自定义校验函数
|
|
290
|
-
})));
|
|
291
|
-
let l = t.field;
|
|
292
|
-
r.ruleField ? l = r.ruleField : N && t.field && (l = G(N), l.push(t.field));
|
|
293
|
-
const $ = {
|
|
294
|
-
...t,
|
|
295
|
-
rules: o,
|
|
296
|
-
rule: o,
|
|
297
|
-
field: l
|
|
298
|
-
};
|
|
299
|
-
return $.children && delete $.children, $;
|
|
300
|
-
}), U = W(() => {
|
|
301
|
-
var $, u, _;
|
|
302
|
-
const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
|
|
303
|
-
return t.on && Object.keys(t.on).forEach((J) => {
|
|
304
|
-
l[`on${Ye(J)}`] = (...q) => g.doActions(t.on[J], ...q);
|
|
305
|
-
}), t.type === "selectpage" && (t.componentProps.defaultData = {
|
|
306
|
-
value: a[t.field],
|
|
307
|
-
label: a[a[t.field]]
|
|
308
|
-
}), {
|
|
309
|
-
...r,
|
|
310
|
-
...t.componentProps,
|
|
311
|
-
sourceDateUrl: r.sourceDateUrl,
|
|
312
|
-
// 为了避免禁用对超链接输入框点击的影响
|
|
313
|
-
disabled: r.componentSchema.type === "input" && r.componentSchema.componentProps && ((u = r.componentSchema.componentProps) != null && u.isLink) ? !1 : (h == null ? void 0 : h.value) || ((_ = t.componentProps) == null ? void 0 : _.disabled),
|
|
314
|
-
bindModel: o,
|
|
315
|
-
...l
|
|
316
|
-
};
|
|
317
|
-
}), L = W(() => z.getComponentConfingByType(t.type) ?? null);
|
|
318
|
-
he(() => {
|
|
319
|
-
c.value = r.modelValue ?? a[t.field ?? ""];
|
|
320
|
-
}), B(
|
|
321
|
-
() => c.value,
|
|
322
|
-
() => {
|
|
323
|
-
c.value !== (r.modelValue ?? a[t.field ?? ""]) && i(c.value);
|
|
324
|
-
}
|
|
325
|
-
), B(
|
|
326
|
-
() => E.value,
|
|
327
|
-
() => {
|
|
328
|
-
A();
|
|
329
|
-
},
|
|
330
|
-
{ immediate: !0 }
|
|
331
|
-
);
|
|
332
|
-
function A() {
|
|
333
|
-
var l;
|
|
334
|
-
const o = E.value || s;
|
|
335
|
-
t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = i, o.getValue = () => a[t.field] || r.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && M.value && g.addComponentInstance(t.id + "formItem", M.value));
|
|
336
|
-
}
|
|
337
|
-
function v() {
|
|
338
|
-
var o;
|
|
339
|
-
t.id && (g.removeComponentInstance(t.id), (o = L.value) != null && o.defaultSchema.input && t.noFormItem !== !0 && g.removeComponentInstance(t.id + "formItem"));
|
|
340
|
-
}
|
|
341
|
-
async function ee() {
|
|
342
|
-
var l, $, u;
|
|
343
|
-
if (t = await x(t), typeof ((l = t.componentProps) == null ? void 0 : l.defaultValue) < "u") {
|
|
344
|
-
const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : a[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
|
|
345
|
-
i(G(_));
|
|
346
|
-
}
|
|
347
|
-
if (t.type === "slot") {
|
|
348
|
-
const _ = t.slotName;
|
|
349
|
-
if (!_) return;
|
|
350
|
-
I.value = le({
|
|
351
|
-
setup() {
|
|
352
|
-
return () => K(w, _, {
|
|
353
|
-
componentSchema: t,
|
|
354
|
-
model: a
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
const o = z.getComponent(t.type);
|
|
361
|
-
if (!o) {
|
|
362
|
-
console.error(`组件${t.type}未注册`);
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
if (typeof o == "function") {
|
|
366
|
-
const _ = await o();
|
|
367
|
-
I.value = _.default ?? _;
|
|
368
|
-
} else
|
|
369
|
-
I.value = o;
|
|
370
|
-
}
|
|
371
|
-
function f(o) {
|
|
372
|
-
Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
|
|
373
|
-
a[l.value] = l.label;
|
|
374
|
-
}) : a[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
|
|
375
|
-
}
|
|
376
|
-
function i(o) {
|
|
377
|
-
y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o), r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
|
|
378
|
-
}
|
|
379
|
-
function F(o) {
|
|
380
|
-
y("update:dynamicId", o);
|
|
381
|
-
}
|
|
382
|
-
let V = null;
|
|
383
|
-
return B(
|
|
384
|
-
() => t,
|
|
385
|
-
async (o) => {
|
|
386
|
-
const l = JSON.stringify({
|
|
387
|
-
...o,
|
|
388
|
-
children: void 0,
|
|
389
|
-
componentProps: {
|
|
390
|
-
...o.componentProps,
|
|
391
|
-
options: null
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
if (l === V)
|
|
395
|
-
return !1;
|
|
396
|
-
V = l, ee();
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
immediate: !0,
|
|
400
|
-
deep: !0
|
|
401
|
-
}
|
|
402
|
-
), $e(v), (o, l) => {
|
|
403
|
-
var u;
|
|
404
|
-
const $ = Te("ENode");
|
|
405
|
-
return I.value && C.value ? (H(), Y(je, {
|
|
406
|
-
key: 0,
|
|
407
|
-
hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
|
|
408
|
-
formItemProps: m.value,
|
|
409
|
-
onUpdateFormItemRef: p
|
|
410
|
-
}, {
|
|
411
|
-
default: T(() => [
|
|
412
|
-
(H(), Y(Be(I.value), be({
|
|
413
|
-
ref_key: "componentInstance",
|
|
414
|
-
ref: E,
|
|
415
|
-
onVnodeMounted: A,
|
|
416
|
-
model: R(a),
|
|
417
|
-
sourceDateUrl: r.sourceDateUrl
|
|
418
|
-
}, { ...U.value }, {
|
|
419
|
-
[U.value.bindModel]: c.value,
|
|
420
|
-
["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
|
|
421
|
-
[`onUpdate:${U.value.bindModel}` || ""]: i,
|
|
422
|
-
"onUpdate:modelValueLabel": f,
|
|
423
|
-
"onUpdate:dynamicId": F
|
|
424
|
-
}), {
|
|
425
|
-
node: T((_) => [
|
|
426
|
-
Q($, be({
|
|
427
|
-
id: r.id
|
|
428
|
-
}, _, {
|
|
429
|
-
sourceDateUrl: r.sourceDateUrl
|
|
430
|
-
}), null, 16, ["id", "sourceDateUrl"])
|
|
431
|
-
]),
|
|
432
|
-
"edit-node": T(() => [
|
|
433
|
-
K(o.$slots, "edit-node")
|
|
434
|
-
]),
|
|
435
|
-
_: 3
|
|
436
|
-
}, 16, ["model", "sourceDateUrl"]))
|
|
437
|
-
]),
|
|
438
|
-
_: 3
|
|
439
|
-
}, 8, ["hasFormItem", "formItemProps"])) : Ne("", !0);
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
function tt() {
|
|
444
|
-
const e = P(!1), n = Pe(), s = P({});
|
|
445
|
-
function r() {
|
|
446
|
-
return new Promise((d) => {
|
|
447
|
-
if (e.value)
|
|
448
|
-
d();
|
|
449
|
-
else {
|
|
450
|
-
const D = B(e, () => {
|
|
451
|
-
D(), d();
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
async function c(d = "default") {
|
|
457
|
-
var y;
|
|
458
|
-
await r();
|
|
459
|
-
const D = (y = s.value) == null ? void 0 : y[d];
|
|
460
|
-
if (!D) throw new Error(`表单 [name=${d}] 不存在`);
|
|
461
|
-
return D;
|
|
462
|
-
}
|
|
463
|
-
async function a(d, D) {
|
|
464
|
-
const y = await c(d);
|
|
465
|
-
return G(await D(y));
|
|
466
|
-
}
|
|
467
|
-
async function w(d = "default") {
|
|
468
|
-
return await a(d, (D) => D.getData());
|
|
469
|
-
}
|
|
470
|
-
function g(d, D = "default", y = void 0) {
|
|
471
|
-
var E, M;
|
|
472
|
-
if (y && Object.keys(y).length) {
|
|
473
|
-
let p = function(m) {
|
|
474
|
-
let U = [];
|
|
475
|
-
return m.forEach((L) => {
|
|
476
|
-
L.children && (U = [...U, ...p(L.children)]), U.push(L);
|
|
477
|
-
}), U;
|
|
478
|
-
}, I = function(m) {
|
|
479
|
-
var L;
|
|
480
|
-
let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
|
|
481
|
-
return Object.keys(m).forEach((A) => {
|
|
482
|
-
var f, i, F, V, o, l, $;
|
|
483
|
-
const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
484
|
-
if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
|
|
485
|
-
m[A] = (o = m[A]) == null ? void 0 : o.split(",");
|
|
486
|
-
else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof m[A] == "string")
|
|
487
|
-
m[A].indexOf(";") === -1 && m[A].indexOf(";") === -1 ? m[A][m[A]] : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 ? m[A] = m[A].split(",") : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 && (m[A] = m[A].split(","));
|
|
488
|
-
else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof m[A] == "string") {
|
|
489
|
-
let u = [];
|
|
490
|
-
Object.entries(m).forEach(([_, J]) => {
|
|
491
|
-
m[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
|
|
492
|
-
}), m[A] = m[A].split(",").map((_, J) => ({
|
|
493
|
-
url: _,
|
|
494
|
-
name: u[J] || _
|
|
495
|
-
}));
|
|
496
|
-
} else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? m[A] = Number(m[A]) : (v == null ? void 0 : v.type) === "switch" && (m[A] = typeof m[A] == "boolean" ? m[A] : m[A].indexOf("true") > -1);
|
|
497
|
-
}), m;
|
|
498
|
-
}(d);
|
|
499
|
-
n.setFormData(I, D);
|
|
500
|
-
const C = (E = s.value) == null ? void 0 : E[D];
|
|
501
|
-
C == null || C.clearValidate();
|
|
502
|
-
} else {
|
|
503
|
-
n.setFormData(d, D);
|
|
504
|
-
const p = (M = s.value) == null ? void 0 : M[D];
|
|
505
|
-
p == null || p.clearValidate();
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
async function h(d = "default") {
|
|
509
|
-
return await a(d, async (D) => (await D.validate(), await D.getData()));
|
|
510
|
-
}
|
|
511
|
-
async function N(d) {
|
|
512
|
-
await r();
|
|
513
|
-
const D = {};
|
|
514
|
-
for (const y in s.value) {
|
|
515
|
-
const E = s.value[y];
|
|
516
|
-
E && (D[y] = G(await d(E)));
|
|
517
|
-
}
|
|
518
|
-
return D;
|
|
519
|
-
}
|
|
520
|
-
async function O() {
|
|
521
|
-
return await N((d) => d.getData());
|
|
522
|
-
}
|
|
523
|
-
function t(d) {
|
|
524
|
-
for (const D in d)
|
|
525
|
-
g(d[D], D);
|
|
526
|
-
}
|
|
527
|
-
async function x() {
|
|
528
|
-
return await N(async (d) => (await d.validate(), await d.getData()));
|
|
529
|
-
}
|
|
530
|
-
return {
|
|
531
|
-
ready: e,
|
|
532
|
-
pageManager: n,
|
|
533
|
-
forms: s,
|
|
534
|
-
getData: w,
|
|
535
|
-
setData: g,
|
|
536
|
-
validate: h,
|
|
537
|
-
getForms: O,
|
|
538
|
-
setForms: t,
|
|
539
|
-
validateAll: x,
|
|
540
|
-
getFormInstance: c
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
const nt = {
|
|
544
|
-
key: 0,
|
|
545
|
-
class: "epic-loading-box"
|
|
546
|
-
}, ot = { class: "epic-builder-main" }, st = { class: "epic-loading-box" }, rt = /* @__PURE__ */ le({
|
|
547
|
-
__name: "builder",
|
|
548
|
-
props: {
|
|
549
|
-
pageSchema: {},
|
|
550
|
-
formData: {},
|
|
551
|
-
disabled: { type: Boolean },
|
|
552
|
-
sourceDateUrl: {},
|
|
553
|
-
id: {}
|
|
554
|
-
},
|
|
555
|
-
emits: ["change", "ready"],
|
|
556
|
-
setup(e, { expose: n, emit: s }) {
|
|
557
|
-
const r = se(() => import("./index-DgcFxYFp.js")), c = s, a = P([]), w = P({}), { ready: g, pageManager: h, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: D, validateAll: y, getFormInstance: E } = tt(), M = e, p = re({
|
|
558
|
-
schemas: []
|
|
559
|
-
});
|
|
560
|
-
B(
|
|
561
|
-
() => M.pageSchema,
|
|
562
|
-
(f) => {
|
|
563
|
-
ae(p, f);
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
immediate: !0,
|
|
567
|
-
deep: !0
|
|
568
|
-
}
|
|
569
|
-
), B(
|
|
570
|
-
() => M.formData,
|
|
571
|
-
(f) => {
|
|
572
|
-
if (f) {
|
|
573
|
-
let i = L(f);
|
|
574
|
-
w.value = i, t(i);
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
immediate: !0,
|
|
579
|
-
deep: !0
|
|
580
|
-
}
|
|
581
|
-
);
|
|
582
|
-
function S(f) {
|
|
583
|
-
let i = [];
|
|
584
|
-
return f.forEach((F) => {
|
|
585
|
-
F.children && (i = [...i, ...S(F.children)]), i.push(F);
|
|
586
|
-
}), i;
|
|
587
|
-
}
|
|
588
|
-
function I(f, i) {
|
|
589
|
-
function F(o) {
|
|
590
|
-
return JSON.parse(JSON.stringify(o));
|
|
591
|
-
}
|
|
592
|
-
function V(o, l) {
|
|
593
|
-
if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
|
|
594
|
-
return l[o.field].map((u) => {
|
|
595
|
-
var J;
|
|
596
|
-
const _ = F({ ...o, multiple: !0 });
|
|
597
|
-
return _.children = (J = _.children) == null ? void 0 : J.map((q) => V(q, u)).flat(), _;
|
|
598
|
-
});
|
|
599
|
-
const $ = F(o);
|
|
600
|
-
return Array.isArray($.children) && ($.children = $.children.map((u) => V(u, l)).flat()), $;
|
|
601
|
-
}
|
|
602
|
-
return f.map((o) => V(o, i)).flat();
|
|
603
|
-
}
|
|
604
|
-
function C(f, i = "", F = { root: 0 }) {
|
|
605
|
-
const V = i || "root";
|
|
606
|
-
return i || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
|
|
607
|
-
o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
|
|
608
|
-
const l = { ...o };
|
|
609
|
-
if (o.type === "card") {
|
|
610
|
-
const $ = o.field || "";
|
|
611
|
-
o.multiple ? (l.field = i ? `${i}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && i && (l.field = `${i}.${$}`);
|
|
612
|
-
const u = l.field || i;
|
|
613
|
-
F[u] = 0;
|
|
614
|
-
} else o.field && i && (l.field = `${i}.${o.field}`);
|
|
615
|
-
return o.children && (l.children = C(o.children, l.field || i, F)), l;
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
function m(f, i, F = "", V = {}) {
|
|
619
|
-
const o = F || "root";
|
|
620
|
-
return V[o] === void 0 && (V[o] = 0), f.forEach((l) => {
|
|
621
|
-
const $ = l.field || "";
|
|
622
|
-
let u = F ? `${F}.${$}` : `${$}`;
|
|
623
|
-
l.type === "card" && l.multiple ? (typeof i[u][`${V[o]}`] == "object" ? Object.keys(i[u][`${V[o]}`]).forEach((_) => {
|
|
624
|
-
i[`${u}[${V[o]}].${_}`] = i[u][`${V[o]}`][_];
|
|
625
|
-
}) : i[`${u}[${V[o]}]`] = i[u][`${V[o]}`], l.children && (l.children = m(
|
|
626
|
-
l.children,
|
|
627
|
-
i,
|
|
628
|
-
`${u}[${V[o]}]` || F,
|
|
629
|
-
V
|
|
630
|
-
)), V[o]++) : l.children && (l.children = m(l.children, i, F, V));
|
|
631
|
-
}), V[o] = 0, i;
|
|
632
|
-
}
|
|
633
|
-
function U(f, i, F) {
|
|
634
|
-
let V = m(G(f), G(i));
|
|
635
|
-
return {
|
|
636
|
-
obj: C(f),
|
|
637
|
-
dataObj: V
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
|
-
function L(f) {
|
|
641
|
-
let i = S(M.pageSchema.schemas[0].children);
|
|
642
|
-
a.value = i.filter((l) => l.type === "card" && l.multiple);
|
|
643
|
-
const F = I(M.pageSchema.schemas[0].children, f);
|
|
644
|
-
let { obj: V, dataObj: o } = U(F, f, a.value);
|
|
645
|
-
return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
|
|
646
|
-
var $, u, _, J, q, de, fe;
|
|
647
|
-
if (l.indexOf("@") < 0) {
|
|
648
|
-
const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
649
|
-
if ((b && (b == null ? void 0 : b.type) === "checkbox" || (b == null ? void 0 : b.type) === "select" && (($ = b == null ? void 0 : b.componentProps) != null && $.multiple) || (b == null ? void 0 : b.type) === "cascader" && !((_ = (u = b == null ? void 0 : b.componentProps) == null ? void 0 : u.props) != null && _.multiple) || (b == null ? void 0 : b.type) === "date" && Me.includes((J = b == null ? void 0 : b.componentProps) == null ? void 0 : J.type)) && typeof f[l] == "string")
|
|
650
|
-
f[l] = (q = f[l]) == null ? void 0 : q.split(",");
|
|
651
|
-
else if ((b == null ? void 0 : b.type) === "cascader" && ((fe = (de = b == null ? void 0 : b.componentProps) == null ? void 0 : de.props) != null && fe.multiple) && typeof f[l] == "string")
|
|
652
|
-
f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(",");
|
|
653
|
-
else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
|
|
654
|
-
let X = [];
|
|
655
|
-
Object.entries(f).forEach(([te, ye]) => {
|
|
656
|
-
f[l] === ye && te !== b.field && te.indexOf("@") > -1 && te.indexOf(l) > -1 && (X = te.split("@")[1].split(","));
|
|
657
|
-
}), f[l] = f[l].split(",").map((te, ye) => ({
|
|
658
|
-
url: te,
|
|
659
|
-
name: X[ye] || te
|
|
660
|
-
}));
|
|
661
|
-
} else (b == null ? void 0 : b.type) === "number" || (b == null ? void 0 : b.type) === "slider" ? f[l] = Number(f[l]) : (b == null ? void 0 : b.type) === "switch" && (f[l] = typeof f[l] == "boolean" ? f[l] : f[l].indexOf("true") > -1);
|
|
662
|
-
}
|
|
663
|
-
}), f;
|
|
664
|
-
}
|
|
665
|
-
B(
|
|
666
|
-
() => p.script,
|
|
667
|
-
(f) => {
|
|
668
|
-
f && h.setMethods(f, !0);
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
immediate: !0
|
|
672
|
-
}
|
|
673
|
-
), Z("slots", Le()), Z("pageManager", h), Z("forms", N), Z("pageSchema", p), Z(
|
|
674
|
-
"disabled",
|
|
675
|
-
W(() => M.disabled)
|
|
676
|
-
);
|
|
677
|
-
const A = ue(), v = A == null ? void 0 : A.proxy;
|
|
678
|
-
function ee() {
|
|
679
|
-
ce(() => {
|
|
680
|
-
g.value = !0, c("ready", h), v && h.addComponentInstance("builder", v);
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
|
|
684
|
-
c("change", f);
|
|
685
|
-
}), n({
|
|
686
|
-
ready: g,
|
|
687
|
-
pageManager: h,
|
|
688
|
-
getData: O,
|
|
689
|
-
setData: t,
|
|
690
|
-
validate: x,
|
|
691
|
-
getForms: d,
|
|
692
|
-
setForms: D,
|
|
693
|
-
validateAll: y,
|
|
694
|
-
getFormInstance: E
|
|
695
|
-
}), (f, i) => R(z).initialized.value ? (H(), Y(Fe, {
|
|
696
|
-
key: 1,
|
|
697
|
-
onResolve: ee
|
|
698
|
-
}, {
|
|
699
|
-
default: T(() => [
|
|
700
|
-
k("div", ot, [
|
|
701
|
-
(H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(R(et), {
|
|
702
|
-
id: M.id,
|
|
703
|
-
key: V,
|
|
704
|
-
sourceDateUrl: M.sourceDateUrl,
|
|
705
|
-
componentSchema: F
|
|
706
|
-
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
707
|
-
])
|
|
708
|
-
]),
|
|
709
|
-
fallback: T(() => [
|
|
710
|
-
k("div", st, [
|
|
711
|
-
Q(R(r))
|
|
712
|
-
])
|
|
713
|
-
]),
|
|
714
|
-
_: 1
|
|
715
|
-
})) : (H(), Ee("div", nt));
|
|
716
|
-
}
|
|
717
|
-
});
|
|
718
|
-
function xe(e) {
|
|
719
|
-
return Ze() ? (We(e), !0) : !1;
|
|
720
|
-
}
|
|
721
|
-
function lt(e) {
|
|
722
|
-
let n = 0, s, r;
|
|
723
|
-
const c = () => {
|
|
724
|
-
n -= 1, r && n <= 0 && (r.stop(), s = void 0, r = void 0);
|
|
725
|
-
};
|
|
726
|
-
return (...a) => (n += 1, r || (r = He(!0), s = r.run(() => e(...a))), xe(c), s);
|
|
727
|
-
}
|
|
728
|
-
function ie(e) {
|
|
729
|
-
return typeof e == "function" ? e() : R(e);
|
|
730
|
-
}
|
|
731
|
-
const at = typeof window < "u" && typeof document < "u";
|
|
732
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
733
|
-
const it = (e) => typeof e < "u", ct = Object.prototype.toString, ut = (e) => ct.call(e) === "[object Object]", dt = () => {
|
|
734
|
-
};
|
|
735
|
-
function ft(e) {
|
|
736
|
-
return ue();
|
|
737
|
-
}
|
|
738
|
-
function pt(e, n = !0, s) {
|
|
739
|
-
ft() ? Ae(e, s) : n ? e() : ce(e);
|
|
740
|
-
}
|
|
741
|
-
function mt(e = !1, n = {}) {
|
|
742
|
-
const {
|
|
743
|
-
truthyValue: s = !0,
|
|
744
|
-
falsyValue: r = !1
|
|
745
|
-
} = n, c = Ke(e), a = P(e);
|
|
746
|
-
function w(g) {
|
|
747
|
-
if (arguments.length)
|
|
748
|
-
return a.value = g, a.value;
|
|
749
|
-
{
|
|
750
|
-
const h = ie(s);
|
|
751
|
-
return a.value = a.value === h ? ie(r) : h, a.value;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
return c ? w : [a, w];
|
|
755
|
-
}
|
|
756
|
-
function Jt(e, n, s) {
|
|
757
|
-
const r = B(e, (...c) => (ce(() => r()), n(...c)), s);
|
|
758
|
-
return r;
|
|
759
|
-
}
|
|
760
|
-
const ve = at ? window : void 0;
|
|
761
|
-
function oe(e) {
|
|
762
|
-
var n;
|
|
763
|
-
const s = ie(e);
|
|
764
|
-
return (n = s == null ? void 0 : s.$el) != null ? n : s;
|
|
765
|
-
}
|
|
766
|
-
function ht(...e) {
|
|
767
|
-
let n, s, r, c;
|
|
768
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, r, c] = e, n = ve) : [n, s, r, c] = e, !n)
|
|
769
|
-
return dt;
|
|
770
|
-
Array.isArray(s) || (s = [s]), Array.isArray(r) || (r = [r]);
|
|
771
|
-
const a = [], w = () => {
|
|
772
|
-
a.forEach((O) => O()), a.length = 0;
|
|
773
|
-
}, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), h = B(
|
|
774
|
-
() => [oe(n), ie(c)],
|
|
775
|
-
([O, t]) => {
|
|
776
|
-
if (w(), !O)
|
|
777
|
-
return;
|
|
778
|
-
const x = ut(t) ? { ...t } : t;
|
|
779
|
-
a.push(
|
|
780
|
-
...s.flatMap((d) => r.map((D) => g(O, d, D, x)))
|
|
781
|
-
);
|
|
782
|
-
},
|
|
783
|
-
{ immediate: !0, flush: "post" }
|
|
784
|
-
), N = () => {
|
|
785
|
-
h(), w();
|
|
786
|
-
};
|
|
787
|
-
return xe(N), N;
|
|
788
|
-
}
|
|
789
|
-
function vt(e) {
|
|
790
|
-
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
791
|
-
}
|
|
792
|
-
function Ce(...e) {
|
|
793
|
-
let n, s, r = {};
|
|
794
|
-
e.length === 3 ? (n = e[0], s = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, s = e[0], r = e[1]) : (n = e[0], s = e[1]) : (n = !0, s = e[0]);
|
|
795
|
-
const {
|
|
796
|
-
target: c = ve,
|
|
797
|
-
eventName: a = "keydown",
|
|
798
|
-
passive: w = !1,
|
|
799
|
-
dedupe: g = !1
|
|
800
|
-
} = r, h = vt(n);
|
|
801
|
-
return ht(c, a, (O) => {
|
|
802
|
-
O.repeat && ie(g) || h(O) && s(O);
|
|
803
|
-
}, w);
|
|
804
|
-
}
|
|
805
|
-
function we(e, n, s = {}) {
|
|
806
|
-
return Ce(e, n, { ...s, eventName: "keydown" });
|
|
807
|
-
}
|
|
808
|
-
function De(e, n, s = {}) {
|
|
809
|
-
return Ce(e, n, { ...s, eventName: "keyup" });
|
|
810
|
-
}
|
|
811
|
-
function gt() {
|
|
812
|
-
const e = P(!1), n = ue();
|
|
813
|
-
return n && Ae(() => {
|
|
814
|
-
e.value = !0;
|
|
815
|
-
}, n), e;
|
|
816
|
-
}
|
|
817
|
-
function yt(e) {
|
|
818
|
-
const n = gt();
|
|
819
|
-
return W(() => (n.value, !!e()));
|
|
820
|
-
}
|
|
821
|
-
function wt(e) {
|
|
822
|
-
return JSON.parse(JSON.stringify(e));
|
|
823
|
-
}
|
|
824
|
-
function Dt(e, n, s = {}) {
|
|
825
|
-
const { window: r = ve, ...c } = s;
|
|
826
|
-
let a;
|
|
827
|
-
const w = yt(() => r && "ResizeObserver" in r), g = () => {
|
|
828
|
-
a && (a.disconnect(), a = void 0);
|
|
829
|
-
}, h = W(() => {
|
|
830
|
-
const t = ie(e);
|
|
831
|
-
return Array.isArray(t) ? t.map((x) => oe(x)) : [oe(t)];
|
|
832
|
-
}), N = B(
|
|
833
|
-
h,
|
|
834
|
-
(t) => {
|
|
835
|
-
if (g(), w.value && r) {
|
|
836
|
-
a = new ResizeObserver(n);
|
|
837
|
-
for (const x of t)
|
|
838
|
-
x && a.observe(x, c);
|
|
839
|
-
}
|
|
840
|
-
},
|
|
841
|
-
{ immediate: !0, flush: "post" }
|
|
842
|
-
), O = () => {
|
|
843
|
-
g(), N();
|
|
844
|
-
};
|
|
845
|
-
return xe(O), {
|
|
846
|
-
isSupported: w,
|
|
847
|
-
stop: O
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
function zt(e, n = { width: 0, height: 0 }, s = {}) {
|
|
851
|
-
const { window: r = ve, box: c = "content-box" } = s, a = W(() => {
|
|
852
|
-
var t, x;
|
|
853
|
-
return (x = (t = oe(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
|
|
854
|
-
}), w = P(n.width), g = P(n.height), { stop: h } = Dt(
|
|
855
|
-
e,
|
|
856
|
-
([t]) => {
|
|
857
|
-
const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
858
|
-
if (r && a.value) {
|
|
859
|
-
const d = oe(e);
|
|
860
|
-
if (d) {
|
|
861
|
-
const D = d.getBoundingClientRect();
|
|
862
|
-
w.value = D.width, g.value = D.height;
|
|
863
|
-
}
|
|
864
|
-
} else if (x) {
|
|
865
|
-
const d = Array.isArray(x) ? x : [x];
|
|
866
|
-
w.value = d.reduce((D, { inlineSize: y }) => D + y, 0), g.value = d.reduce((D, { blockSize: y }) => D + y, 0);
|
|
867
|
-
} else
|
|
868
|
-
w.value = t.contentRect.width, g.value = t.contentRect.height;
|
|
869
|
-
},
|
|
870
|
-
s
|
|
871
|
-
);
|
|
872
|
-
pt(() => {
|
|
873
|
-
const t = oe(e);
|
|
874
|
-
t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
|
|
875
|
-
});
|
|
876
|
-
const N = B(
|
|
877
|
-
() => oe(e),
|
|
878
|
-
(t) => {
|
|
879
|
-
w.value = t ? n.width : 0, g.value = t ? n.height : 0;
|
|
880
|
-
}
|
|
881
|
-
);
|
|
882
|
-
function O() {
|
|
883
|
-
h(), N();
|
|
884
|
-
}
|
|
885
|
-
return {
|
|
886
|
-
width: w,
|
|
887
|
-
height: g,
|
|
888
|
-
stop: O
|
|
889
|
-
};
|
|
890
|
-
}
|
|
891
|
-
function Ht(e, n, s, r = {}) {
|
|
892
|
-
var c, a, w;
|
|
893
|
-
const {
|
|
894
|
-
clone: g = !1,
|
|
895
|
-
passive: h = !1,
|
|
896
|
-
eventName: N,
|
|
897
|
-
deep: O = !1,
|
|
898
|
-
defaultValue: t,
|
|
899
|
-
shouldEmit: x
|
|
900
|
-
} = r, d = ue(), D = s || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (a = d == null ? void 0 : d.proxy) == null ? void 0 : a.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
|
|
901
|
-
let y = N;
|
|
902
|
-
n || (n = "modelValue"), y = y || `update:${n.toString()}`;
|
|
903
|
-
const E = (S) => g ? typeof g == "function" ? g(S) : wt(S) : S, M = () => it(e[n]) ? E(e[n]) : t, p = (S) => {
|
|
904
|
-
x ? x(S) && D(y, S) : D(y, S);
|
|
905
|
-
};
|
|
906
|
-
if (h) {
|
|
907
|
-
const S = M(), I = P(S);
|
|
908
|
-
let C = !1;
|
|
909
|
-
return B(
|
|
910
|
-
() => e[n],
|
|
911
|
-
(m) => {
|
|
912
|
-
C || (C = !0, I.value = E(m), ce(() => C = !1));
|
|
913
|
-
}
|
|
914
|
-
), B(
|
|
915
|
-
I,
|
|
916
|
-
(m) => {
|
|
917
|
-
!C && (m !== e[n] || O) && p(m);
|
|
918
|
-
},
|
|
919
|
-
{ deep: O }
|
|
920
|
-
), I;
|
|
921
|
-
} else
|
|
922
|
-
return W({
|
|
923
|
-
get() {
|
|
924
|
-
return M();
|
|
925
|
-
},
|
|
926
|
-
set(S) {
|
|
927
|
-
p(S);
|
|
928
|
-
}
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
function Kt() {
|
|
932
|
-
const { isDark: e } = ge(), n = mt(e);
|
|
933
|
-
return {
|
|
934
|
-
isDark: e,
|
|
935
|
-
toggleDark: n
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
function St() {
|
|
939
|
-
const e = P(!1);
|
|
940
|
-
return Ae(() => {
|
|
941
|
-
bt(e), Et(e);
|
|
942
|
-
}), B(
|
|
943
|
-
() => e.value,
|
|
944
|
-
() => {
|
|
945
|
-
e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
946
|
-
}
|
|
947
|
-
), {
|
|
948
|
-
isDark: e
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
function bt(e) {
|
|
952
|
-
var n = document.documentElement;
|
|
953
|
-
n && (n.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
954
|
-
}
|
|
955
|
-
function Et(e) {
|
|
956
|
-
var n = document.querySelector("html"), s = new MutationObserver(function(r) {
|
|
957
|
-
for (var c of r)
|
|
958
|
-
if (c.type === "attributes" && c.attributeName === "class") {
|
|
959
|
-
const a = c.target;
|
|
960
|
-
new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
s.observe(n, {
|
|
964
|
-
attributes: !0,
|
|
965
|
-
attributeFilter: ["class"]
|
|
966
|
-
}), $e(() => {
|
|
967
|
-
s.disconnect();
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
function At() {
|
|
971
|
-
const e = P(1), n = P(!1), { isDark: s } = St(), { pressSpace: r, pressShift: c, pressCtrl: a } = Ot();
|
|
972
|
-
return {
|
|
973
|
-
canvasScale: e,
|
|
974
|
-
pressSpace: r,
|
|
975
|
-
pressShift: c,
|
|
976
|
-
pressCtrl: a,
|
|
977
|
-
disabledZoom: n,
|
|
978
|
-
isDark: s
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
const ge = lt(At);
|
|
982
|
-
function Ot() {
|
|
983
|
-
const e = P(!1), n = P(!1), s = P(!1);
|
|
984
|
-
return we(" ", () => {
|
|
985
|
-
e.value = !0;
|
|
986
|
-
}), De(" ", () => {
|
|
987
|
-
e.value = !1;
|
|
988
|
-
}), we("Shift", (r) => {
|
|
989
|
-
r.preventDefault(), n.value = !0;
|
|
990
|
-
}), De("Shift", () => {
|
|
991
|
-
n.value = !1;
|
|
992
|
-
}), we("Control", (r) => {
|
|
993
|
-
r.preventDefault(), s.value = !0;
|
|
994
|
-
}), De("Control", () => {
|
|
995
|
-
s.value = !1;
|
|
996
|
-
}), { pressSpace: e, pressShift: n, pressCtrl: s };
|
|
997
|
-
}
|
|
998
|
-
function Zt(e) {
|
|
999
|
-
const { pressSpace: n } = ge(), s = new Image(1, 1);
|
|
1000
|
-
s.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1001
|
-
let r = 0, c = 0;
|
|
1002
|
-
function a(h) {
|
|
1003
|
-
var N;
|
|
1004
|
-
n.value && (r = h.x, c = h.y, (N = h.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
|
|
1005
|
-
}
|
|
1006
|
-
function w(h) {
|
|
1007
|
-
if (h.preventDefault(), !h.x || !h.y || !n.value)
|
|
1008
|
-
return;
|
|
1009
|
-
const N = h.x - r, O = h.y - c;
|
|
1010
|
-
r = h.x, c = h.y, e.value && (e.value.scrollTop -= O, e.value.scrollLeft -= N);
|
|
1011
|
-
}
|
|
1012
|
-
function g() {
|
|
1013
|
-
n.value = !1;
|
|
1014
|
-
}
|
|
1015
|
-
return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
|
|
1016
|
-
}
|
|
1017
|
-
function Wt(e) {
|
|
1018
|
-
const { pressCtrl: n, canvasScale: s, disabledZoom: r } = ge();
|
|
1019
|
-
function c(a) {
|
|
1020
|
-
if (!n.value || r.value)
|
|
1021
|
-
return;
|
|
1022
|
-
a.preventDefault();
|
|
1023
|
-
let w = 0;
|
|
1024
|
-
a.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
|
|
1025
|
-
}
|
|
1026
|
-
return B(
|
|
1027
|
-
() => s.value,
|
|
1028
|
-
(a) => {
|
|
1029
|
-
e.value && !r.value && (e.value.style.transform = `scale(${a})`);
|
|
1030
|
-
}
|
|
1031
|
-
), { handleZoom: c, canvasScale: s };
|
|
1032
|
-
}
|
|
1033
|
-
function Gt(e, n = 16.66) {
|
|
1034
|
-
let s;
|
|
1035
|
-
function r() {
|
|
1036
|
-
c(), s = window.setInterval(e, n);
|
|
1037
|
-
}
|
|
1038
|
-
function c() {
|
|
1039
|
-
window.clearInterval(s);
|
|
1040
|
-
}
|
|
1041
|
-
return {
|
|
1042
|
-
startTimedQuery: r,
|
|
1043
|
-
stopTimedQuery: c
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ le({
|
|
1047
|
-
__name: "index",
|
|
1048
|
-
setup(e, { expose: n }) {
|
|
1049
|
-
const s = z.getComponent("monacoEditor"), r = z.getComponent("modal"), c = P(null), a = P(!1), w = P(!1), g = P({}), h = ne("pageSchema"), N = P(null), O = P("");
|
|
1050
|
-
function t() {
|
|
1051
|
-
w.value = !1;
|
|
1052
|
-
}
|
|
1053
|
-
function x() {
|
|
1054
|
-
a.value = !1;
|
|
1055
|
-
}
|
|
1056
|
-
function d() {
|
|
1057
|
-
a.value = !0, O.value = qe();
|
|
1058
|
-
}
|
|
1059
|
-
async function D() {
|
|
1060
|
-
try {
|
|
1061
|
-
let y = await N.value.validateAll();
|
|
1062
|
-
if (!Object.keys(y).length) {
|
|
1063
|
-
alert("请添加表单组件后再尝试!");
|
|
1064
|
-
return;
|
|
1065
|
-
}
|
|
1066
|
-
Object.keys(y).length === 1 && (y = y.default), g.value = JSON.stringify(y, null, 2), ce(() => {
|
|
1067
|
-
var E;
|
|
1068
|
-
(E = c.value) == null || E.setValue(g.value);
|
|
1069
|
-
}), w.value = !0;
|
|
1070
|
-
} catch (y) {
|
|
1071
|
-
console.error(y);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return n({
|
|
1075
|
-
handleOpen: d
|
|
1076
|
-
}), (y, E) => (H(), Y(R(r), {
|
|
1077
|
-
modelValue: a.value,
|
|
1078
|
-
"onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
|
|
1079
|
-
title: "预览",
|
|
1080
|
-
class: "w-900px",
|
|
1081
|
-
width: "900px",
|
|
1082
|
-
onClose: x,
|
|
1083
|
-
onOk: D,
|
|
1084
|
-
okText: "表单数据"
|
|
1085
|
-
}, {
|
|
1086
|
-
default: T(() => [
|
|
1087
|
-
k("div", xt, [
|
|
1088
|
-
(H(), Y(R(rt), {
|
|
1089
|
-
key: O.value,
|
|
1090
|
-
ref_key: "kb",
|
|
1091
|
-
ref: N,
|
|
1092
|
-
"page-schema": R(h)
|
|
1093
|
-
}, null, 8, ["page-schema"])),
|
|
1094
|
-
Q(R(r), {
|
|
1095
|
-
modelValue: w.value,
|
|
1096
|
-
"onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
|
|
1097
|
-
title: "表单数据",
|
|
1098
|
-
class: "w-860px",
|
|
1099
|
-
width: "860px",
|
|
1100
|
-
onClose: t,
|
|
1101
|
-
onOk: t
|
|
1102
|
-
}, {
|
|
1103
|
-
default: T(() => [
|
|
1104
|
-
k("div", It, [
|
|
1105
|
-
Q(R(s), {
|
|
1106
|
-
ref_key: "monacoEditorRef",
|
|
1107
|
-
ref: c,
|
|
1108
|
-
autoToggleTheme: "",
|
|
1109
|
-
readOnly: "",
|
|
1110
|
-
class: "h-full editor",
|
|
1111
|
-
"model-value": g.value
|
|
1112
|
-
}, null, 8, ["model-value"])
|
|
1113
|
-
])
|
|
1114
|
-
]),
|
|
1115
|
-
_: 1
|
|
1116
|
-
}, 8, ["modelValue"])
|
|
1117
|
-
])
|
|
1118
|
-
]),
|
|
1119
|
-
_: 1
|
|
1120
|
-
}, 8, ["modelValue"]));
|
|
1121
|
-
}
|
|
1122
|
-
}), $t = {
|
|
1123
|
-
key: 0,
|
|
1124
|
-
class: "epic-loading-box"
|
|
1125
|
-
}, Nt = { class: "epic-designer-main" }, Ft = { class: "epic-header-container" }, Vt = { class: "epic-loading-box" }, Qt = /* @__PURE__ */ le({
|
|
1126
|
-
__name: "designer",
|
|
1127
|
-
props: {
|
|
1128
|
-
disabledZoom: { type: Boolean, default: !1 },
|
|
1129
|
-
hiddenHeader: { type: Boolean, default: !1 },
|
|
1130
|
-
lockDefaultSchemaEdit: { type: Boolean, default: !1 },
|
|
1131
|
-
formMode: { type: Boolean, default: !1 },
|
|
1132
|
-
title: { default: "EpicDesigner默认项目" },
|
|
1133
|
-
defaultSchema: {},
|
|
1134
|
-
sourceCodeReadOnly: { type: Boolean },
|
|
1135
|
-
source: { default: [] },
|
|
1136
|
-
updateSourceId: {}
|
|
1137
|
-
},
|
|
1138
|
-
emits: [
|
|
1139
|
-
"ready",
|
|
1140
|
-
"save",
|
|
1141
|
-
"reset",
|
|
1142
|
-
"toggleDeviceMode",
|
|
1143
|
-
"saveSourceData",
|
|
1144
|
-
"deleteSourceData",
|
|
1145
|
-
"updateSourceData"
|
|
1146
|
-
],
|
|
1147
|
-
setup(e, { expose: n, emit: s }) {
|
|
1148
|
-
const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-BbTWJKHb.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
|
|
1149
|
-
let x = {
|
|
1150
|
-
schemas: [
|
|
1151
|
-
{
|
|
1152
|
-
type: "form",
|
|
1153
|
-
id: "root",
|
|
1154
|
-
label: r("page"),
|
|
1155
|
-
children: [],
|
|
1156
|
-
componentProps: {
|
|
1157
|
-
name: r("form"),
|
|
1158
|
-
style: {
|
|
1159
|
-
padding: "16px"
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
// {
|
|
1164
|
-
// type: "form",
|
|
1165
|
-
// id: "root",
|
|
1166
|
-
// label: "表单",
|
|
1167
|
-
// children: [],
|
|
1168
|
-
// componentProps: {
|
|
1169
|
-
// style: {
|
|
1170
|
-
// margin: "0px",
|
|
1171
|
-
// },
|
|
1172
|
-
// name: "default",
|
|
1173
|
-
// labelWidth: "100px",
|
|
1174
|
-
// labelLayout: "fixed",
|
|
1175
|
-
// labelCol: {
|
|
1176
|
-
// span: 5,
|
|
1177
|
-
// },
|
|
1178
|
-
// wrapperCol: {
|
|
1179
|
-
// span: 19,
|
|
1180
|
-
// },
|
|
1181
|
-
// },
|
|
1182
|
-
// },
|
|
1183
|
-
],
|
|
1184
|
-
script: `const { defineExpose, find } = epic;
|
|
1185
|
-
|
|
1186
|
-
function test (){
|
|
1187
|
-
console.log('test')
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
// 通过defineExpose暴露的函数或者属性
|
|
1191
|
-
defineExpose({
|
|
1192
|
-
test
|
|
1193
|
-
})`
|
|
1194
|
-
};
|
|
1195
|
-
he(() => {
|
|
1196
|
-
if (t.defaultSchema) {
|
|
1197
|
-
x = t.defaultSchema;
|
|
1198
|
-
return;
|
|
1199
|
-
}
|
|
1200
|
-
t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
|
|
1201
|
-
}), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
|
|
1202
|
-
const d = s, D = P(null), y = re({
|
|
1203
|
-
checkedNode: null,
|
|
1204
|
-
hoverNode: null,
|
|
1205
|
-
disableHover: !1,
|
|
1206
|
-
matched: []
|
|
1207
|
-
}), E = re({
|
|
1208
|
-
schemas: [],
|
|
1209
|
-
script: x.script
|
|
1210
|
-
}), { disabledZoom: M } = ge();
|
|
1211
|
-
he(() => {
|
|
1212
|
-
M.value = t.disabledZoom;
|
|
1213
|
-
}), he(() => {
|
|
1214
|
-
const i = E.script;
|
|
1215
|
-
i && i !== "" && N.setMethods(i);
|
|
1216
|
-
}), Z("pageSchema", E), Z("revoke", O), Z("pageManager", N), Z(
|
|
1217
|
-
"designerProps",
|
|
1218
|
-
W(() => t)
|
|
1219
|
-
), Z("designer", {
|
|
1220
|
-
setCheckedNode: S,
|
|
1221
|
-
setHoverNode: I,
|
|
1222
|
-
setDisableHover: m,
|
|
1223
|
-
handleToggleDeviceMode: ee,
|
|
1224
|
-
reset: A,
|
|
1225
|
-
state: y
|
|
1226
|
-
}), j.on("saveSourceData", (i) => {
|
|
1227
|
-
d("saveSourceData", i);
|
|
1228
|
-
}), j.on("deleteSourceData", (i) => {
|
|
1229
|
-
d("deleteSourceData", i);
|
|
1230
|
-
}), j.on("updateSourceData", (i) => {
|
|
1231
|
-
d("updateSourceData", i);
|
|
1232
|
-
});
|
|
1233
|
-
function p() {
|
|
1234
|
-
E.schemas = G(x.schemas), S(E.schemas[0]), O.push(E.schemas, "初始化撤销功能");
|
|
1235
|
-
}
|
|
1236
|
-
async function S(i = E.schemas[0]) {
|
|
1237
|
-
y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
|
|
1238
|
-
}
|
|
1239
|
-
async function I(i = null) {
|
|
1240
|
-
var F;
|
|
1241
|
-
if (!i || y.disableHover)
|
|
1242
|
-
return y.hoverNode = null, !1;
|
|
1243
|
-
if ((i == null ? void 0 : i.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
|
|
1244
|
-
return !1;
|
|
1245
|
-
y.hoverNode = i;
|
|
1246
|
-
}
|
|
1247
|
-
function C() {
|
|
1248
|
-
ce(() => {
|
|
1249
|
-
d("ready", { pageManager: N });
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
async function m(i = !1) {
|
|
1253
|
-
y.disableHover = i;
|
|
1254
|
-
}
|
|
1255
|
-
function U(i) {
|
|
1256
|
-
ae(E, G(i));
|
|
1257
|
-
}
|
|
1258
|
-
function L() {
|
|
1259
|
-
return Ie(E);
|
|
1260
|
-
}
|
|
1261
|
-
function A() {
|
|
1262
|
-
Ve(E.schemas, x.schemas) && E.script === x.script || (ae(E.schemas, x.schemas), E.script = x.script, S(E.schemas[0]), O.push(E.schemas, "重置操作"), d("reset", E));
|
|
1263
|
-
}
|
|
1264
|
-
function v() {
|
|
1265
|
-
d("save", Ie(E));
|
|
1266
|
-
}
|
|
1267
|
-
function ee(i) {
|
|
1268
|
-
d("toggleDeviceMode", i);
|
|
1269
|
-
}
|
|
1270
|
-
function f() {
|
|
1271
|
-
D.value.handleOpen();
|
|
1272
|
-
}
|
|
1273
|
-
return p(), n({
|
|
1274
|
-
revoke: O,
|
|
1275
|
-
setData: U,
|
|
1276
|
-
getData: L,
|
|
1277
|
-
reset: A,
|
|
1278
|
-
preview: f
|
|
1279
|
-
}), (i, F) => R(z).initialized.value ? (H(), Y(Fe, {
|
|
1280
|
-
key: 1,
|
|
1281
|
-
onResolve: C
|
|
1282
|
-
}, {
|
|
1283
|
-
default: T(() => [
|
|
1284
|
-
k("div", Nt, [
|
|
1285
|
-
k("div", Ft, [
|
|
1286
|
-
K(i.$slots, "header", {}, () => [
|
|
1287
|
-
t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
|
|
1288
|
-
key: 0,
|
|
1289
|
-
onPreview: f,
|
|
1290
|
-
onSave: v
|
|
1291
|
-
}, {
|
|
1292
|
-
header: T(() => [
|
|
1293
|
-
K(i.$slots, "header-prefix")
|
|
1294
|
-
]),
|
|
1295
|
-
prefix: T(() => [
|
|
1296
|
-
K(i.$slots, "header-prefix")
|
|
1297
|
-
]),
|
|
1298
|
-
title: T(() => [
|
|
1299
|
-
K(i.$slots, "header-title")
|
|
1300
|
-
]),
|
|
1301
|
-
"right-prefix": T(() => [
|
|
1302
|
-
K(i.$slots, "header-right-prefix")
|
|
1303
|
-
]),
|
|
1304
|
-
"right-action": T(() => [
|
|
1305
|
-
K(i.$slots, "header-right-action")
|
|
1306
|
-
]),
|
|
1307
|
-
"right-suffix": T(() => [
|
|
1308
|
-
K(i.$slots, "header-right-suffix")
|
|
1309
|
-
]),
|
|
1310
|
-
_: 3
|
|
1311
|
-
}))
|
|
1312
|
-
])
|
|
1313
|
-
]),
|
|
1314
|
-
k("div", {
|
|
1315
|
-
class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
|
|
1316
|
-
}, [
|
|
1317
|
-
Q(R(a)),
|
|
1318
|
-
Q(R(w)),
|
|
1319
|
-
Q(R(g))
|
|
1320
|
-
], 2),
|
|
1321
|
-
Q(_t, {
|
|
1322
|
-
ref_key: "previewRef",
|
|
1323
|
-
ref: D
|
|
1324
|
-
}, null, 512)
|
|
1325
|
-
])
|
|
1326
|
-
]),
|
|
1327
|
-
fallback: T(() => [
|
|
1328
|
-
k("div", Vt, [
|
|
1329
|
-
Q(R(h))
|
|
1330
|
-
])
|
|
1331
|
-
]),
|
|
1332
|
-
_: 3
|
|
1333
|
-
})) : (H(), Ee("div", $t));
|
|
1334
|
-
}
|
|
1335
|
-
}), Pt = {
|
|
1336
|
-
component: async () => await import("./index-B2RMcVgD.js"),
|
|
1337
|
-
defaultSchema: {
|
|
1338
|
-
label: "代码编辑器",
|
|
1339
|
-
type: "monacoEditor",
|
|
1340
|
-
field: "monacoEditor",
|
|
1341
|
-
icon: "epic-icon-write",
|
|
1342
|
-
input: !0
|
|
1343
|
-
},
|
|
1344
|
-
config: {
|
|
1345
|
-
attribute: [
|
|
1346
|
-
{
|
|
1347
|
-
label: "字段名",
|
|
1348
|
-
type: "input",
|
|
1349
|
-
field: "field"
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
label: "标题",
|
|
1353
|
-
type: "input",
|
|
1354
|
-
field: "label"
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
label: "默认值",
|
|
1358
|
-
type: "monacoEditor",
|
|
1359
|
-
field: "componentProps.defaultValue"
|
|
1360
|
-
}
|
|
1361
|
-
]
|
|
1362
|
-
},
|
|
1363
|
-
bindModel: "model-value"
|
|
1364
|
-
}, { t: Se } = Oe(), Ct = {
|
|
1365
|
-
component: async () => await import("./index-DiDIFoTk.js"),
|
|
1366
|
-
defaultSchema: {
|
|
1367
|
-
label: Se("page"),
|
|
1368
|
-
type: "page",
|
|
1369
|
-
componentProps: {},
|
|
1370
|
-
children: []
|
|
1371
|
-
},
|
|
1372
|
-
config: {
|
|
1373
|
-
attribute: [
|
|
1374
|
-
{
|
|
1375
|
-
label: Se("pageName"),
|
|
1376
|
-
type: "input",
|
|
1377
|
-
componentProps: {
|
|
1378
|
-
placeholder: Se("pleaseEnter")
|
|
1379
|
-
},
|
|
1380
|
-
field: "componentProps.name"
|
|
1381
|
-
}
|
|
1382
|
-
]
|
|
1383
|
-
}
|
|
1384
|
-
}, { t: me } = Oe();
|
|
1385
|
-
function Mt(e) {
|
|
1386
|
-
e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-DymbM-qI.js")), e.component("ERuleEditor", async () => await import("./index-RL7vrExY.js")), e.component("EOptionsEditor", async () => await import("./index-lCYWKDlK.js")), e.component("ENode", async () => await import("./index-C9PHR_YC.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-Cmfhlo_3.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-BhMVNODR.js")), e.registerActivitybar({
|
|
1387
|
-
id: "component_view",
|
|
1388
|
-
title: me("component"),
|
|
1389
|
-
icon: "icon--epic--extension-outline",
|
|
1390
|
-
component: async () => await import("./index-CraRg8wh.js")
|
|
1391
|
-
}), e.registerActivitybar({
|
|
1392
|
-
id: "outline_view",
|
|
1393
|
-
title: me("outline"),
|
|
1394
|
-
icon: "icon--epic--account-tree-outline-rounded",
|
|
1395
|
-
component: async () => await import("./outline-Ch5PHy3c.js")
|
|
1396
|
-
}), e.registerRightSidebar({
|
|
1397
|
-
id: "attribute_view",
|
|
1398
|
-
title: me("attribute"),
|
|
1399
|
-
component: async () => await import("./attributeView-CSiGWdPc.js")
|
|
1400
|
-
}), e.registerRightSidebar({
|
|
1401
|
-
id: "style_view",
|
|
1402
|
-
title: me("style"),
|
|
1403
|
-
component: async () => await import("./styleView-DONajUQ-.js")
|
|
1404
|
-
}), e.registerRightSidebar({
|
|
1405
|
-
id: "event_view",
|
|
1406
|
-
title: "事件",
|
|
1407
|
-
component: async () => await import("./eventView-C2wKhfU_.js")
|
|
1408
|
-
}), [Pt, Ct].forEach((s) => {
|
|
1409
|
-
e.registerComponent(s);
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
Mt(z);
|
|
1413
|
-
export {
|
|
1414
|
-
et as _,
|
|
1415
|
-
Gt as a,
|
|
1416
|
-
Dt as b,
|
|
1417
|
-
Zt as c,
|
|
1418
|
-
zt as d,
|
|
1419
|
-
Wt as e,
|
|
1420
|
-
Lt as f,
|
|
1421
|
-
Ht as g,
|
|
1422
|
-
Kt as h,
|
|
1423
|
-
rt as i,
|
|
1424
|
-
Qt as j,
|
|
1425
|
-
Pe as k,
|
|
1426
|
-
ke as l,
|
|
1427
|
-
Ot as m,
|
|
1428
|
-
St as n,
|
|
1429
|
-
bt as o,
|
|
1430
|
-
At as p,
|
|
1431
|
-
ge as u,
|
|
1432
|
-
Jt as w
|
|
1433
|
-
};
|