ss-component-new 1.3.321 → 1.3.323
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/{MTLLoader-CK9k2OkC.js → MTLLoader-CWm4zRXg.js} +1 -1
- package/dist/{MTLLoader-sFjooHYy.cjs → MTLLoader-D31u_J1I.cjs} +1 -1
- package/dist/{OrbitControls-s3zz-OdY.js → OrbitControls-BHymD-uS.js} +1 -1
- package/dist/{OrbitControls-C8tvN177.cjs → OrbitControls-CNPfT-k2.cjs} +1 -1
- package/dist/{URDFLoader-F13ne6AZ.cjs → URDFLoader-B6fSdZBW.cjs} +1 -1
- package/dist/{URDFLoader-C4CxlYaQ.js → URDFLoader-CwxwkM1Z.js} +2 -2
- package/dist/{animationData-30iUya9L.cjs → animationData-Cj4Vg9K7.cjs} +1 -1
- package/dist/{animationData-Bq0ZKGU5.js → animationData-Dr4AL7Tn.js} +15 -15
- package/dist/{array-Bv-GB6_m.js → array-4MUsfO8Y.js} +4 -4
- package/dist/{array-Bnm7Uy8H.cjs → array-DhFIb8Ci.cjs} +1 -1
- package/dist/clone-D6y-bsE3.cjs +1 -0
- package/dist/{clone-BkoeZZPJ.js → clone-DkUTKKWA.js} +1 -1
- package/dist/{dayjs.min-D2kum5JL.js → dayjs.min-BL2Zt4iO.js} +1 -1
- package/dist/{dayjs.min-CKeZNApM.cjs → dayjs.min-DYXCWUDw.cjs} +1 -1
- package/dist/{iconfont-CAf85VWB.js → iconfont-B4tW5MMA.js} +2 -2
- package/dist/{iconfont-m42I_Zch.cjs → iconfont-sC2feAth.cjs} +1 -1
- package/dist/{JSEncrypt-B36c1iN5.js → index-4L13fekz.js} +743 -453
- package/dist/index-7psGt_5p.cjs +1 -0
- package/dist/{index-BVH050w0.cjs → index-8S3bQzsS.cjs} +1 -1
- package/dist/{index-DwxZZ2Rv.js → index-B1u8xeDs.js} +2 -2
- package/dist/{index-86Qtt4Gi.cjs → index-B88VGc4X.cjs} +2 -2
- package/dist/{index-DG7fwVK4.js → index-BBFKG5Lg.js} +3667 -3954
- package/dist/{index-TdRQ4U-0.cjs → index-BBtFM-Ge.cjs} +1 -1
- package/dist/{index-BuytoK__.cjs → index-BE9ZWUsI.cjs} +1 -1
- package/dist/{index-_WSPThGL.cjs → index-BFlrYtOA.cjs} +1 -1
- package/dist/{index-BG_BTIbd.js → index-BGsbzbfR.js} +1 -1
- package/dist/{index-CQVWTddk.js → index-BNEyTIe4.js} +4 -4
- package/dist/{index-BhssV5Si.js → index-BRxMnV1e.js} +3 -3
- package/dist/{index-B1vAZHjo.js → index-BU1ISY19.js} +1 -1
- package/dist/{index-C6e8tITh.js → index-BWNRm72Z.js} +1194 -1185
- package/dist/{index-Cf8X898z.cjs → index-BbtC7Ji7.cjs} +1 -1
- package/dist/{index-BbN4AWqw.js → index-BiHyvosO.js} +2 -2
- package/dist/index-Bkqa7S3G.js +132 -0
- package/dist/{index-C4FN-3yG.cjs → index-BlX6PtgC.cjs} +1 -1
- package/dist/{index-DyNe1ivN.js → index-BnKm-Z6I.js} +3 -3
- package/dist/index-BnpnirTe.js +9581 -0
- package/dist/{index-DcEc7R08.js → index-BoX2OxZA.js} +4 -4
- package/dist/{index-xRIUu3ui.js → index-ByOP4S4w.js} +70 -71
- package/dist/{index-BY8CAuth.cjs → index-C1eYjrgp.cjs} +1 -1
- package/dist/{index-DLlv5Kx4.js → index-C5Ftg2Ji.js} +9 -9
- package/dist/{index-BfoNwJYn.cjs → index-CO4nfCVV.cjs} +1 -1
- package/dist/{index-DTia9oJS.js → index-CURV4Sc-.js} +4 -4
- package/dist/{index-BfGzv-hd.js → index-CXS2rLtC.js} +1 -1
- package/dist/{index-EwzDPuOE.js → index-CdBuyUt1.js} +6 -6
- package/dist/{JSEncrypt-IYbV4kRj.cjs → index-Cg7sjq06.cjs} +11 -11
- package/dist/index-ChruFvf_.cjs +2 -0
- package/dist/{index-C8xNjOoe.cjs → index-Ci8QRYNC.cjs} +1 -1
- package/dist/index-CkhEA2q9.cjs +1 -0
- package/dist/{index-CG6BDUaD.js → index-CmuaqOdl.js} +1 -1
- package/dist/{index-CB-G5qY8.cjs → index-CoGh0s71.cjs} +1 -1
- package/dist/{index-D6Rv9ZER.cjs → index-D8TUy7GH.cjs} +1 -1
- package/dist/{index-Dxa2zPqr.cjs → index-D8sIT3Vh.cjs} +1 -1
- package/dist/{index-MSe7REup.cjs → index-DBT-8yul.cjs} +1 -1
- package/dist/{index-kCIwjtpa.cjs → index-DM4xlAcv.cjs} +1 -1
- package/dist/{index-CUvGyQdt.js → index-DN-7yQww.js} +11 -10
- package/dist/{index-BS1qv-TP.cjs → index-DON2Zslz.cjs} +1 -1
- package/dist/{index-CCMOSYej.js → index-DPBG_wGE.js} +61 -60
- package/dist/{index-CgyXQw5s.cjs → index-DR7h_uyW.cjs} +1 -1
- package/dist/index-DUvD0wQS.cjs +1 -0
- package/dist/index-DayoUCBG.cjs +1 -0
- package/dist/{index-CTi_kU2w.cjs → index-Dfv0Mqza.cjs} +1 -1
- package/dist/index-DjT2Wfww.cjs +7 -0
- package/dist/index-DmGKehIr.js +666 -0
- package/dist/{index-EZOEpeg0.js → index-Dn7_myZr.js} +1 -1
- package/dist/index-DqCM7s8O.cjs +104 -0
- package/dist/{index-CBshL1g5.js → index-DuIvsQ90.js} +6 -6
- package/dist/{index-DKlVcN6L.cjs → index-JU7i7uT2.cjs} +1 -1
- package/dist/{index-DtjSUQQ4.cjs → index-MoS_Z1Sz.cjs} +1 -1
- package/dist/{index-Chkv6RvP.js → index-bSrw4Jt0.js} +2 -2
- package/dist/{index-0hNM9dP5.js → index-d9w5FXdk.js} +3 -3
- package/dist/{index-B-TORwhC.js → index-gbjjuq3H.js} +2 -2
- package/dist/{index-DH0ChZga.js → index-lH4Qm1Ga.js} +1 -1
- package/dist/{index-BmDdag7O.cjs → index-tIBP_Zfx.cjs} +1 -1
- package/dist/{index-DweESdia.js → index-umip598j.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js} +1843 -1848
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B1YdRpLC.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DXfPRq7d.cjs} +62 -62
- package/dist/{main-vQ17tgzX.cjs → main-DQcF01Xl.cjs} +1 -1
- package/dist/{main-BjTVrhEn.js → main-eAThV5_B.js} +4 -4
- package/dist/{menu-B5Ed9tCx.js → menu-B6brhvAI.js} +2 -1
- package/dist/{menu-FU5yiMy8.cjs → menu-D-MiErGd.cjs} +1 -1
- package/dist/{menuIndex-CqjGgoWs.cjs → menuIndex-B0wuhry0.cjs} +1 -1
- package/dist/{menuIndex-Bofzhsc4.js → menuIndex-uEOgSHtu.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-DV88nk0c.js → threeModel-BEEBOb-O.js} +4 -4
- package/dist/{threeModel-B0JqdXMa.cjs → threeModel-VpTZXnvK.cjs} +1 -1
- package/dist/{threePreview-YeMZY7Qw.cjs → threePreview-Q8fSB5U0.cjs} +1 -1
- package/dist/{threePreview-fM_yCMMk.js → threePreview-w_rSKqjy.js} +4 -4
- package/dist/{threeSceneView-B0Si-K-g.js → threeSceneView-BEX9gMj3.js} +16 -15
- package/dist/{threeSceneView-DNqHyTyD.cjs → threeSceneView-_RnUHKEx.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-QqobgKqL.js → threeSceneViewForCPMPIP-C9VdJLKv.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-B7VfFwXj.cjs → threeSceneViewForCPMPIP-CB2f5jlV.cjs} +1 -1
- package/dist/{threeTrackPathView-7k2jorHI.cjs → threeTrackPathView-92QVfAiq.cjs} +1 -1
- package/dist/{threeTrackPathView-4fzrYO07.js → threeTrackPathView-BeCkYlv6.js} +4 -4
- package/dist/{threeViewerHost-BfyPonp9.cjs → threeViewerHost-72UwjSXh.cjs} +1 -1
- package/dist/{threeViewerHost-_yA6hGHE.js → threeViewerHost-DdoyfVK0.js} +3 -3
- package/dist/{urdfTree-DK450tLa.cjs → urdfTree-B72ps0XA.cjs} +1 -1
- package/dist/{urdfTree-Crc6_c_f.js → urdfTree-DY_PJG4H.js} +1 -1
- package/dist/{workpieceTreePanel-g8lvT_yP.js → workpieceTreePanel-B3oPVOh9.js} +4 -4
- package/dist/{workpieceTreePanel-a72VDGqM.cjs → workpieceTreePanel-ZO1UvaT0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/clone-D6Ofpm75.cjs +0 -1
- package/dist/index-BBuhs0ay.cjs +0 -1
- package/dist/index-B_K-miXW.cjs +0 -1
- package/dist/index-Bi3chwDQ.cjs +0 -104
- package/dist/index-C7RuokDP.cjs +0 -1
- package/dist/index-CFjmSYEv.cjs +0 -1
- package/dist/index-CLiXOvYt.js +0 -159
- package/dist/index-CMDhafac.js +0 -620
- package/dist/index-CjYwnKjV.js +0 -56
- package/dist/index-CwTW_wuh.js +0 -9561
- package/dist/index-DLQrTFGN.cjs +0 -1
- package/dist/index-DmBnQ7BX.cjs +0 -2
- package/dist/index-aziCJXBJ.cjs +0 -7
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),K=require("./index-86Qtt4Gi.cjs"),f=require("./menu-FU5yiMy8.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-BfoNwJYn.cjs"),Re=require("./index-CUw6nGTo.cjs"),Le=require("./index-aziCJXBJ.cjs"),Me=require("./request-BC2w2vGr.cjs"),$e={class:"type-select"},Fe={class:"group-label"},He={class:"group-items"},Oe=["onDragstart"],Ae={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=f.useModelComp(f.pinia),{itemData:r,activeItemIndex:y}=f.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",Fe,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,Oe))),128))])]))),128))])}}},qe=oe._export_sfc(Ae,[["__scopeId","data-v-951fb5b4"]]),le=f.useModelComp(f.pinia),{pageMapState:Ue}=f.storeToRefs(le),ze=f.useMenuState(),{activeMenuPath:Z}=f.storeToRefs(ze),U=e.ref([]),W=e.ref([]),Ge=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:U.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ke=()=>{A.show=!1},je=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=f.cloneDeep(n),l==="删除")return Y.value==="任务配置"?U.value=(r=U.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:U.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},Pe=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Xe()),te.value="data"},We=l=>{},Ye=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?U.value.push(l==null?void 0:l.data):U.value=(n=U.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",U.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:U.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Je=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};Ye(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Xe=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(U.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Qe={class:"fill-content"},Ze={class:"overall-config-wrapper"},et={class:"operate-content"},tt=["onClick"],lt={class:"collapse-title-item",title:"编辑"},at={key:1},ot=["onClick"],nt={class:"icon-content"},st={key:0,class:"edit-content"},rt=["onClick"],ct={title:"设置"},ut=["onClick"],it={class:"parent-main"},dt={style:{display:"flex","justify-content":"space-between"}},pt={title:"样式"},vt={title:"交互"},ft={title:"扩展"},ht={style:{width:"100%","max-height":"500px",overflow:"auto"}},mt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,originalData:r}=f.storeToRefs(n),y=f.useMenuState(),{activeMenuPath:c}=f.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(g=M.value)==null?void 0:g[0])==null?void 0:v.comp:null}),E=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!0),v));h.value=o},S=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!1),v));h.value=o,M.value=f.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=f.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const v=f.cloneDeep(d.value),m=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.map((v,m)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=f.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(v=f.cloneDeep(w.value))==null?void 0:v.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,v)=>{var L,F;if(!i)return;let m=f.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(v&&_===g){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=f.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{Le.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.filter((v,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Me.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Qe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",et,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(Pe),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var q,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",lt,[(T=(q=h.value)==null?void 0:q.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ie.ssInput,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,ot))]),e.createElementVNode("div",nt,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,rt))])],8,tt)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",ct,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ut),e.createElementVNode("div",it,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",dt,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",ft,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(We)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ge),(p,q)=>(e.openBlock(),e.createBlock(v,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:q,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(je)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ke)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ht,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(U),onChange:e.unref(Te),onOnButtonClick:e.unref(Je)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},gt=oe._export_sfc(mt,[["__scopeId","data-v-0ecba574"]]),Ct={style:{display:"flex"}},kt={style:{display:"flex"}},yt={key:2},_t={key:4,style:{"margin-top":"30px"}},bt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=f.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=f.useMenuState(f.pinia),{activeMenuPath:I}=f.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),v=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=f.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=f.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=f.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=f.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",Ct,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",kt,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>v(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Dt=oe._export_sfc(bt,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),wt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=wt;exports.modelFill=gt;exports.modelSelect=qe;exports.modelShow=Dt;
|
|
1
|
+
"use strict";const e=require("vue"),K=require("./index-B88VGc4X.cjs"),f=require("./menu-D-MiErGd.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-CO4nfCVV.cjs"),Re=require("./index-CUw6nGTo.cjs"),Le=require("./index-DjT2Wfww.cjs"),Me=require("./request-BC2w2vGr.cjs"),$e={class:"type-select"},Fe={class:"group-label"},He={class:"group-items"},Oe=["onDragstart"],Ae={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=f.useModelComp(f.pinia),{itemData:r,activeItemIndex:y}=f.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",Fe,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,Oe))),128))])]))),128))])}}},qe=oe._export_sfc(Ae,[["__scopeId","data-v-951fb5b4"]]),le=f.useModelComp(f.pinia),{pageMapState:Ue}=f.storeToRefs(le),ze=f.useMenuState(),{activeMenuPath:Z}=f.storeToRefs(ze),U=e.ref([]),W=e.ref([]),Ge=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:U.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ke=()=>{A.show=!1},je=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=f.cloneDeep(n),l==="删除")return Y.value==="任务配置"?U.value=(r=U.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:U.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},Pe=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Xe()),te.value="data"},We=l=>{},Ye=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?U.value.push(l==null?void 0:l.data):U.value=(n=U.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",U.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:U.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Je=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};Ye(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Xe=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(U.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Qe={class:"fill-content"},Ze={class:"overall-config-wrapper"},et={class:"operate-content"},tt=["onClick"],lt={class:"collapse-title-item",title:"编辑"},at={key:1},ot=["onClick"],nt={class:"icon-content"},st={key:0,class:"edit-content"},rt=["onClick"],ct={title:"设置"},ut=["onClick"],it={class:"parent-main"},dt={style:{display:"flex","justify-content":"space-between"}},pt={title:"样式"},vt={title:"交互"},ft={title:"扩展"},ht={style:{width:"100%","max-height":"500px",overflow:"auto"}},mt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,originalData:r}=f.storeToRefs(n),y=f.useMenuState(),{activeMenuPath:c}=f.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(g=M.value)==null?void 0:g[0])==null?void 0:v.comp:null}),E=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!0),v));h.value=o},S=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!1),v));h.value=o,M.value=f.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=f.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const v=f.cloneDeep(d.value),m=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.map((v,m)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=f.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(v=f.cloneDeep(w.value))==null?void 0:v.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,v)=>{var L,F;if(!i)return;let m=f.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(v&&_===g){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=f.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{Le.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.filter((v,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Me.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Qe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",et,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(Pe),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var q,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",lt,[(T=(q=h.value)==null?void 0:q.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ie.ssInput,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,ot))]),e.createElementVNode("div",nt,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,rt))])],8,tt)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",ct,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ut),e.createElementVNode("div",it,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",dt,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",ft,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(We)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ge),(p,q)=>(e.openBlock(),e.createBlock(v,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:q,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(je)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ke)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ht,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(U),onChange:e.unref(Te),onOnButtonClick:e.unref(Je)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},gt=oe._export_sfc(mt,[["__scopeId","data-v-0ecba574"]]),Ct={style:{display:"flex"}},kt={style:{display:"flex"}},yt={key:2},_t={key:4,style:{"margin-top":"30px"}},bt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=f.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=f.useMenuState(f.pinia),{activeMenuPath:I}=f.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),v=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=f.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=f.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=f.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=f.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",Ct,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",kt,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>v(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Dt=oe._export_sfc(bt,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),wt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=wt;exports.modelFill=gt;exports.modelSelect=qe;exports.modelShow=Dt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./menu-D-MiErGd.cjs");var r=4;function c(e){return n.baseClone(e,r)}exports.clone=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const z=require("./menu-
|
|
1
|
+
"use strict";const z=require("./menu-D-MiErGd.cjs");function B(a){return a}function rt(a,f,l){switch(l.length){case 0:return a.call(f);case 1:return a.call(f,l[0]);case 2:return a.call(f,l[0],l[1]);case 3:return a.call(f,l[0],l[1],l[2])}return a.apply(f,l)}var it=800,ut=16,st=Date.now;function at(a){var f=0,l=0;return function(){var h=st(),p=ut-(h-l);if(l=h,p>0){if(++f>=it)return arguments[0]}else f=0;return a.apply(void 0,arguments)}}function ot(a){return function(){return a}}var ct=z.defineProperty?function(a,f){return z.defineProperty(a,"toString",{configurable:!0,enumerable:!1,value:ot(f),writable:!0})}:B,ft=at(ct),V=Math.max;function lt(a,f,l){return f=V(f===void 0?a.length-1:f,0),function(){for(var h=arguments,p=-1,x=V(h.length-f,0),w=Array(x);++p<x;)w[p]=h[f+p];p=-1;for(var D=Array(f+1);++p<f;)D[p]=h[p];return D[f]=l(w),rt(a,this,D)}}var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ht(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var f=a.default;if(typeof f=="function"){var l=function h(){return this instanceof h?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};l.prototype=f.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(a).forEach(function(h){var p=Object.getOwnPropertyDescriptor(a,h);Object.defineProperty(l,h,p.get?p:{enumerable:!0,get:function(){return a[h]}})}),l}var I={exports:{}},$t=I.exports,G;function K(){return G||(G=1,function(a,f){(function(l,h){a.exports=h()})($t,function(){var l=1e3,h=6e4,p=36e5,x="millisecond",w="second",D="minute",k="hour",S="day",L="week",M="month",E="quarter",b="year",H="date",J="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,tt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,et={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},U=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},nt={s:U,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(r,2,"0")+":"+U(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,M),u=t-e<0,s=n.clone().add(r+(u?-1:1),M);return+(-(r+(t-e)/(u?e-s:s-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M,y:b,w:L,d:S,D:H,h:k,m:D,s:w,ms:x,Q:E}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},C="en",_={};_[C]=et;var R="$isDayjsObject",q=function(i){return i instanceof W||!(!i||!i[R])},P=function i(n,t,r){var e;if(!n)return C;if(typeof n=="string"){var u=n.toLowerCase();_[u]&&(e=u),t&&(_[u]=t,e=u);var s=n.split("-");if(!e&&s.length>1)return i(s[0])}else{var c=n.name;_[c]=n,e=c}return!r&&e&&(C=e),e||!r&&C},$=function(i,n){if(q(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new W(t)},o=nt;o.l=P,o.i=q,o.w=function(i,n){return $(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var W=function(){function i(t){this.$L=P(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[R]=!0}var n=i.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,u=r.utc;if(e===null)return new Date(NaN);if(o.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var s=e.match(X);if(s){var c=s[2]-1||0,d=(s[7]||"0").substring(0,3);return u?new Date(Date.UTC(s[1],c,s[3]||1,s[4]||0,s[5]||0,s[6]||0,d)):new Date(s[1],c,s[3]||1,s[4]||0,s[5]||0,s[6]||0,d)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return o},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=$(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return $(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<$(t)},n.$g=function(t,r,e){return o.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,u=!!o.u(r)||r,s=o.p(t),c=function(T,v){var O=o.w(e.$u?Date.UTC(e.$y,v,T):new Date(e.$y,v,T),e);return u?O:O.endOf(S)},d=function(T,v){return o.w(e.toDate()[T].apply(e.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(v)),e)},y=this.$W,m=this.$M,g=this.$D,Y="set"+(this.$u?"UTC":"");switch(s){case b:return u?c(1,0):c(31,11);case M:return u?c(1,m):c(0,m+1);case L:var j=this.$locale().weekStart||0,N=(y<j?y+7:y)-j;return c(u?g-N:g+(6-N),m);case S:case H:return d(Y+"Hours",0);case k:return d(Y+"Minutes",1);case D:return d(Y+"Seconds",2);case w:return d(Y+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,u=o.p(t),s="set"+(this.$u?"UTC":""),c=(e={},e[S]=s+"Date",e[H]=s+"Date",e[M]=s+"Month",e[b]=s+"FullYear",e[k]=s+"Hours",e[D]=s+"Minutes",e[w]=s+"Seconds",e[x]=s+"Milliseconds",e)[u],d=u===S?this.$D+(r-this.$W):r;if(u===M||u===b){var y=this.clone().set(H,1);y.$d[c](d),y.init(),this.$d=y.set(H,Math.min(this.$D,y.daysInMonth())).$d}else c&&this.$d[c](d);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[o.p(t)]()},n.add=function(t,r){var e,u=this;t=Number(t);var s=o.p(r),c=function(m){var g=$(u);return o.w(g.date(g.date()+Math.round(m*t)),u)};if(s===M)return this.set(M,this.$M+t);if(s===b)return this.set(b,this.$y+t);if(s===S)return c(1);if(s===L)return c(7);var d=(e={},e[D]=h,e[k]=p,e[w]=l,e)[s]||1,y=this.$d.getTime()+t*d;return o.w(y,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var u=t||"YYYY-MM-DDTHH:mm:ssZ",s=o.z(this),c=this.$H,d=this.$m,y=this.$M,m=e.weekdays,g=e.months,Y=e.meridiem,j=function(v,O,A,F){return v&&(v[O]||v(r,u))||A[O].slice(0,F)},N=function(v){return o.s(c%12||12,v,"0")},T=Y||function(v,O,A){var F=v<12?"AM":"PM";return A?F.toLowerCase():F};return u.replace(tt,function(v,O){return O||function(A){switch(A){case"YY":return String(r.$y).slice(-2);case"YYYY":return o.s(r.$y,4,"0");case"M":return y+1;case"MM":return o.s(y+1,2,"0");case"MMM":return j(e.monthsShort,y,g,3);case"MMMM":return j(g,y);case"D":return r.$D;case"DD":return o.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return j(e.weekdaysMin,r.$W,m,2);case"ddd":return j(e.weekdaysShort,r.$W,m,3);case"dddd":return m[r.$W];case"H":return String(c);case"HH":return o.s(c,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return T(c,d,!0);case"A":return T(c,d,!1);case"m":return String(d);case"mm":return o.s(d,2,"0");case"s":return String(r.$s);case"ss":return o.s(r.$s,2,"0");case"SSS":return o.s(r.$ms,3,"0");case"Z":return s}return null}(v)||s.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var u,s=this,c=o.p(r),d=$(t),y=(d.utcOffset()-this.utcOffset())*h,m=this-d,g=function(){return o.m(s,d)};switch(c){case b:u=g()/12;break;case M:u=g();break;case E:u=g()/3;break;case L:u=(m-y)/6048e5;break;case S:u=(m-y)/864e5;break;case k:u=m/p;break;case D:u=m/h;break;case w:u=m/l;break;default:u=m}return e?u:o.a(u)},n.daysInMonth=function(){return this.endOf(M).$D},n.$locale=function(){return _[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),u=P(t,r,!0);return u&&(e.$L=u),e},n.clone=function(){return o.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i}(),Z=W.prototype;return $.prototype=Z,[["$ms",x],["$s",w],["$m",D],["$H",k],["$W",S],["$M",M],["$y",b],["$D",H]].forEach(function(i){Z[i[1]]=function(n){return this.$g(n,i[0],i[1])}}),$.extend=function(i,n){return i.$i||(i(n,W,$),i.$i=!0),$},$.locale=P,$.isDayjs=q,$.unix=function(i){return $(1e3*i)},$.en=_[C],$.Ls=_,$.p={},$})}(I)),I.exports}var yt=K();const mt=Q(yt);exports.commonjsGlobal=dt;exports.dayjs=mt;exports.getAugmentedNamespace=ht;exports.getDefaultExportFromCjs=Q;exports.identity=B;exports.overRest=lt;exports.requireDayjs_min=K;exports.setToString=ft;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as i2, ref as T, defineComponent as c2, computed as Z, createElementBlock as o2, openBlock as n2, createElementVNode as B } from "vue";
|
|
2
|
-
import { V as r, av as h2, E as Y, B as k, j as S, ax as s2, G as p2, h as j, i as r2, S as d2, C as v2, P as z2, W as f2, e as A2, A as m2, f as M2, M as t2, bk as u2, X as F2, k as g2, D as J, H as y2, l as l2, b1 as w2, m as B2, n as b2, o as K } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
3
|
-
import { O as H2 } from "./OrbitControls-
|
|
2
|
+
import { V as r, av as h2, E as Y, B as k, j as S, ax as s2, G as p2, h as j, i as r2, S as d2, C as v2, P as z2, W as f2, e as A2, A as m2, f as M2, M as t2, bk as u2, X as F2, k as g2, D as J, H as y2, l as l2, b1 as w2, m as B2, n as b2, o as K } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js";
|
|
3
|
+
import { O as H2 } from "./OrbitControls-BHymD-uS.js";
|
|
4
4
|
import { _ as V2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const n1 = (i, a = "YZX") => {
|
|
6
6
|
const t = new r(), o = new h2(), h = new r(), p = new Y();
|