Files
qhmes/deploy-qhmes/frontend/js/CheckListPop-BztTYK7e-CR3Blf-x.js
2026-05-15 11:34:12 +08:00

2 lines
1.8 KiB
Java

import{d as B,f as F,e as N,ah as n,aC as f,as as t,aF as o,k as s,G as V,au as l,ar as r,ag as A,F as k,aD as v,av as C}from"./vue-vendor-C7Zq48Yl.js";import{d as D}from"./NodeIcon.vue_vue_type_script_setup_true_lang-BoLiA9zm-4v-htOuh.js";import{s as I}from"./_plugin-vue_export-helper-CHgC5LLL-lGy7RumW.js";import"./index-Crt100Db-kwMQ9qxI.js";const T={class:"j-ai-flow-check-list-pop"},j=["onClick"],E={class:"check-header"},L={class:"node-name airag-node-label"},M={class:"problem-container"},P={class:"problem-item"},R={class:"problem-text"},S=B({__name:"CheckListPop",props:{nodeChecklist:{type:Array}},setup(i,{expose:h}){const p=i,c=F(!1),d=N(()=>Array.isArray(p.nodeChecklist)?p.nodeChecklist.flatMap(({problems:u})=>u).length:0);function g(){c.value=!0}return h({openPop:g}),(u,a)=>{const m=n("a-space"),y=n("a-empty"),b=n("a-button"),_=n("a-badge"),w=n("a-popover");return t(),f(w,{open:c.value,"onUpdate:open":a[0]||(a[0]=e=>c.value=e),title:"问题清单",placement:"bottomRight",arrow:!1,trigger:"click"},{content:o(()=>[l("div",T,[(t(!0),r(k,null,v(i.nodeChecklist,e=>(t(),r("div",{key:e.node.id,class:"j-ai-flow-check-list-pop-node",onClick:()=>{e.onClick(),c.value=!1}},[l("div",E,[s(m,{class:"node-icon-wrapper"},{default:o(()=>[s(D,{type:e.node.type},null,8,["type"]),l("div",L,C(e.nodeText),1)]),_:2},1024)]),l("div",M,[(t(!0),r(k,null,v(e.problems,x=>(t(),r("div",P,[s(m,null,{default:o(()=>[a[1]||(a[1]=l("div",{class:"warning-icon"},"",-1)),l("div",R,C(x),1)]),_:2},1024)]))),256))])],8,j))),128)),d.value==0?(t(),f(y,{key:0,description:"暂未发现问题"})):A("",!0)])]),default:o(()=>[s(_,{count:d.value,offset:[-4,4],overflowCount:9},{default:o(()=>[s(b,{preIcon:"mingcute:list-check-3-line"},{default:o(()=>[...a[2]||(a[2]=[V("问题",-1)])]),_:1})]),_:1},8,["count"])]),_:1},8,["open"])}}}),q=I(S,[["__scopeId","data-v-46cb3713"]]);export{q as default};