process-list.c91f84a9.js 1.1 KB

1
  1. import{a as p}from"./use-response-handle.10a5ad96.js";import{_ as u,q as d,C as f,r as h,as as v,L as m,v as r,o,K as b,H as g,n as c,J as k,I as x,G as C,O as y,V as L,W as B,p as D}from"./index.f00b3728.js";import{h as I}from"./index.342bdce0.js";const S=s=>(L("data-v-39bf9331"),s=s(),B(),s),w=S(()=>D("h1",{"font-bold":"","py-2":""},"\u6D41\u7A0B\u5217\u8868",-1)),P=["onClick"],A=d({__name:"process-list",props:{currentProcess:null},emits:["change-btn-click"],setup(s,{emit:t}){const{run:n,data:a,loading:i}=p({initalData:[],isList:!0,success:()=>t("change-btn-click",a.value[0])});return f(()=>n(I())),(V,q)=>{const l=h("el-scrollbar"),_=v("loading");return m((o(),b(l,{"h-full":"","px-5":"",class:"processs-list__content"},{default:g(()=>[w,(o(!0),c(x,null,k(r(a),e=>(o(),c("p",{class:C(["px-1 hover:bg-#f7f7f7 hover:color-blue cursor-pointer duration-200 rounded",{"is-active":s.currentProcess.id===e.id}]),onClick:()=>t("change-btn-click",e),key:e.id},y(e.process_name),11,P))),128))]),_:1})),[[_,r(i)]])}}});var G=u(A,[["__scopeId","data-v-39bf9331"]]);export{G as default};