import{d as x,U as o,a2 as s,ad as I,af as a,k as n,a3 as r,G as l,V as u,a4 as i}from"./vue-vendor-CxLCUzY4.js";import{_ as N}from"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";const g=[{title:"Name",dataIndex:"name",key:"name"},{title:"Platform",dataIndex:"platform",key:"platform"},{title:"Version",dataIndex:"version",key:"version"},{title:"Upgraded",dataIndex:"upgradeNum",key:"upgradeNum"},{title:"Creator",dataIndex:"creator",key:"creator"},{title:"Date",dataIndex:"createdAt",key:"createdAt"},{title:"Action",key:"operation"}],c=[];for(let e=0;e<3;++e)c.push({key:e,name:"Screem",platform:"iOS",version:"10.3.4.5654",upgradeNum:500,creator:"Jack",createdAt:"2014-12-24 23:12:00"});const b=[{title:"Date",dataIndex:"date",key:"date"},{title:"Name",dataIndex:"name",key:"name"},{title:"Status",dataIndex:"state",key:"state"},{title:"Upgrade Status",dataIndex:"upgradeNum",key:"upgradeNum"},{title:"Action",dataIndex:"operation",key:"operation"}],k=[];for(let e=0;e<3;++e)k.push({key:e,date:"2014-12-24 23:12:00",name:"This is production name",upgradeNum:"Upgraded: 56"});const C=x({components:{},setup(){return{data:c,columns:g,innerColumns:b,innerData:k}}}),A={key:0},V={key:0},v={key:1,class:"table-operation"};function S(e,t,w,B,D,U){const y=o("a-badge"),m=o("a-menu-item"),_=o("a-menu"),f=o("a-dropdown"),p=o("a-table");return s(),I(p,{columns:e.columns,"data-source":e.data,class:"components-table-demo-nested"},{bodyCell:a(({column:d})=>[d.key==="operation"?(s(),r("a",A,"Publish")):u("",!0)]),expandedRowRender:a(()=>[n(p,{columns:e.innerColumns,"data-source":e.innerData,pagination:!1},{bodyCell:a(({column:d})=>[d.dataIndex==="state"?(s(),r("span",V,[n(y,{status:"success"}),t[0]||(t[0]=l(" Finished "))])):u("",!0),d.dataIndex==="operation"?(s(),r("span",v,[t[4]||(t[4]=i("a",null,"Pause",-1)),t[5]||(t[5]=i("a",null,"Stop",-1)),n(f,null,{overlay:a(()=>[n(_,null,{default:a(()=>[n(m,null,{default:a(()=>t[1]||(t[1]=[l("Action 1")])),_:1}),n(m,null,{default:a(()=>t[2]||(t[2]=[l("Action 2")])),_:1})]),_:1})]),default:a(()=>[t[3]||(t[3]=i("a",null," More ",-1))]),_:1})])):u("",!0)]),_:1},8,["columns","data-source"])]),_:1},8,["columns","data-source"])}const E=N(C,[["render",S]]);export{E as default};
