import{_ as M}from"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import{u as R}from"./useModal-CO65vga3.js";import{d as v}from"./plan-n8bSdRD5.js";import{d as C,V as $,r as l,ay as b,c as n,o as e,l as c,w as u,cC as F,h as O,a9 as P,F as S}from"./index-9PRMimni.js";import{_ as T,a as D}from"./TimelineItem-Bkds7ZW8.js";const A=C({__name:"timeLine",props:{title:{type:String},logId:{type:Number,default:null}},emits:["change","register"],setup(d,{expose:g,emit:E}){const{t:f}=$(),o=l([]),s=d,y=l(s.title),k=l(s.logId),[h,{openModal:I,closeModal:m,setProps:L}]=R({title:y,logId:k,subBtuText:"Sure",width:450});async function _(){m()}async function p(a){const t=await v(24),{records:i}=t;o.value=i}return p(),b(()=>s.logId,(a,t)=>{console.log(`logId 从 ${t} 变为 ${a}`),p()},{immediate:!1}),g({openModal:I,closeModal:m,okModal:_,setProps:L}),(a,t)=>{const i=F,w=D,x=T;return e(),n(c(M),{onRegister:c(h),ref:"modalRef",onOnOk:_},{default:u(()=>[o.value.length===0?(e(),n(i,{key:0,description:c(f)("drill.manage.noData")},null,8,["description"])):(e(),n(x,{key:1},{default:u(()=>[(e(!0),O(S,null,P(o.value,(r,B)=>(e(),n(w,{key:B,type:"'success'",title:r.operator,content:r.remark,time:r.createTime},null,8,["title","content","time"]))),128))]),_:1}))]),_:1},8,["onRegister"])}}});export{A as _};
