import{r as u,o as s,c as n,a as t,F as h,d as _,A as i,t as e}from"./index.js";const p={id:"ThreadIndex",class:"page-container"},g={class:"my-table"},y=t("thead",{class:"my-table-thead"},[t("tr",null,[t("th",null,"ID"),t("th",null,"Name"),t("th",null,"State"),t("th",null,"Priority"),t("th",null,"StackSize"),t("th",null,"StackSpace")])],-1),k={class:"my-table-tbody"},f={__name:"thread",setup(m){const o="ThreadIndex",r=u([]);function c(){i.Thread.get().then(l=>{console.log(o,"getData res:",l),r.value=l.threads}).catch(l=>{console.log(o,"getData err:",l)})}return c(),(l,b)=>(s(),n("div",p,[t("table",g,[y,t("tbody",k,[(s(!0),n(h,null,_(r.value,(a,d)=>(s(),n("tr",{key:d},[t("td",null,e(a.id),1),t("td",null,e(a.name),1),t("td",null,e(a.state),1),t("td",null,e(a.priority),1),t("td",null,e(a.stack_size),1),t("td",null,e(a.stack_space),1)]))),128))])])]))}};export{f as default};
