2 lines
1.8 KiB
Java
2 lines
1.8 KiB
Java
import{c as I,f as s,e as o}from"./vue-vendor-C7Zq48Yl.js";import{l as w}from"./propStore-Cl0CojEU-DVRhovlH.js";var N=Object.defineProperty,d=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(n,a,r)=>a in n?N(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r,P=(n,a)=>{for(var r in a||(a={}))T.call(a,r)&&y(n,r,a[r]);if(d)for(var r of d(a))x.call(a,r)&&y(n,r,a[r]);return n};function V(n,a){const r=I("lfRef",s()),u=s(),b=o(()=>P(P({},n),a)),c=w();function A(e){var t;(t=u.value)==null||t.updateHeight(e)}const g=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.$node)!=null?t:{}}),l=o(()=>{var e;return c.getProps((e=n.node)==null?void 0:e.id)}),j=o(()=>{var e,t;return(t=(e=u.value)==null?void 0:e.runStatus)!=null?t:["",""]}),O=o(h),m=o(()=>{var e;return Array.isArray((e=l.value)==null?void 0:e.inputParams)?l.value.inputParams:[]}),f=o(()=>{var e;return Array.isArray((e=l.value)==null?void 0:e.outputParams)?l.value.outputParams:[]});function R(e={}){const{filter:t=()=>!0,label:i="输入参数"}=e,p=m.value.filter(t).map(({name:v})=>v).join(",");return{label:i,value:p,emptyAction:e.emptyAction?e.emptyAction:"tip",emptyTip:"尚未设置"}}function S(e={}){const{filter:t=()=>!0,label:i="输出参数"}=e,p=f.value.filter(t).map(({name:v})=>v).join(",");return{label:i,value:p,emptyAction:e.emptyAction?e.emptyAction:"tip",emptyTip:"尚未设置"}}function $(e){var t;return c.createStoreRef((t=n.node)==null?void 0:t.id,e)}function h(){if(!r.value)return[];const{graphModel:e}=r.value;return e.$J.getAllPrevNodes(n.node)}return{lfRef:r,$node:g,$properties:l,runStatus:j,updateHeight:A,prevNodes:O,inputParams:m,outputParams:f,containerRef:u,containerProps:b,createStoreRef:$,getInputParamKVItem:R,getOutputParamKVItem:S}}export{V as O};
|