Files
qhmes/web-dist/js/useNode-DryF6TH6-6dWLb65C.js
2026-06-16 18:19:57 +08:00

2 lines
1.9 KiB
Java

import{l as M}from"./propStore-Cl0CojEU-BjnqDV4W.js";import{S as w,c as l,r as f}from"./vue-vendor-DNhG1Cve.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=w("lfRef",f()),o=f(),b=l(()=>P(P({},n),a)),c=M();function A(e){var t;(t=o.value)==null||t.updateHeight(e)}const g=l(()=>{var e,t;return(t=(e=o.value)==null?void 0:e.$node)!=null?t:{}}),u=l(()=>{var e;return c.getProps((e=n.node)==null?void 0:e.id)}),S=l(()=>{var e,t;return(t=(e=o.value)==null?void 0:e.runStatus)!=null?t:["",""]}),j=l(()=>{var e,t;return(t=(e=o.value)==null?void 0:e.isSilentMode)!=null?t:!1}),O=l($),m=l(()=>{var e;return Array.isArray((e=u.value)==null?void 0:e.inputParams)?u.value.inputParams:[]}),s=l(()=>{var e;return Array.isArray((e=u.value)==null?void 0:e.outputParams)?u.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 h(e={}){const{filter:t=()=>!0,label:i="输出参数"}=e,p=s.value.filter(t).map(({name:v})=>v).join(",");return{label:i,value:p,emptyAction:e.emptyAction?e.emptyAction:"tip",emptyTip:"尚未设置"}}function I(e){var t;return c.createStoreRef((t=n.node)==null?void 0:t.id,e)}function $(){if(!r.value)return[];const{graphModel:e}=r.value;return e.$J.getAllPrevNodes(n.node)}return{lfRef:r,$node:g,$properties:u,runStatus:S,isSilentMode:j,updateHeight:A,prevNodes:O,inputParams:m,outputParams:s,containerRef:o,containerProps:b,createStoreRef:I,getInputParamKVItem:R,getOutputParamKVItem:h}}export{V as k};