import{d as x,U as r,a2 as i,a3 as m,k as a,af as o,G as p,V as s,a4 as d}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{useListPage as I}from"./useListPage-CevWQ3ci.js";import N from"./BasicTable-DUJWN3yz.js";import{_ as C}from"./index-CLZzJyTP.js";import"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./injectionKey-DPVn4AgL.js";const c=[{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"}],l=[];for(let e=0;e<3;++e)l.push({key:e,name:"Screem",platform:"iOS",version:"10.3.4.5654",upgradeNum:500,creator:"Jack",createdAt:"2014-12-24 23:12:00"});const A=[{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"}],_=[];for(let e=0;e<3;++e)_.push({key:e,date:"2014-12-24 23:12:00",name:"This is production name",upgradeNum:"Upgraded: 56"});const T=x({components:{BasicTable:N},setup(){const{tableContext:e}=I({tableProps:{title:"内嵌表格",dataSource:l,columns:c,showActionColumn:!1,rowKey:"key",useSearchForm:!1}}),[t]=e;return{data:l,columns:c,innerColumns:A,innerData:_,registerTable:t}}}),S={class:"p-4"},v={key:0},w={key:0},B={key:1,class:"table-operation"};function V(e,t,D,P,R,U){const f=r("a-badge"),u=r("a-menu-item"),k=r("a-menu"),y=r("a-dropdown"),b=r("a-table"),g=r("BasicTable");return i(),m("div",S,[a(g,{onRegister:e.registerTable,class:"components-table-demo-nested"},{bodyCell:o(({column:n})=>[n.key==="operation"?(i(),m("a",v,"Publish")):s("",!0)]),expandedRowRender:o(()=>[a(b,{columns:e.innerColumns,"data-source":e.innerData,pagination:!1},{bodyCell:o(({column:n})=>[n.dataIndex==="state"?(i(),m("span",w,[a(f,{status:"success"}),t[0]||(t[0]=p(" Finished "))])):s("",!0),n.dataIndex==="operation"?(i(),m("span",B,[t[4]||(t[4]=d("a",null,"Pause",-1)),t[5]||(t[5]=d("a",null,"Stop",-1)),a(y,null,{overlay:o(()=>[a(k,null,{default:o(()=>[a(u,null,{default:o(()=>t[1]||(t[1]=[p("Action 1")])),_:1}),a(u,null,{default:o(()=>t[2]||(t[2]=[p("Action 2")])),_:1})]),_:1})]),default:o(()=>[t[3]||(t[3]=d("a",null," More ",-1))]),_:1})])):s("",!0)]),_:1},8,["columns","data-source"])]),_:1},8,["onRegister"])])}const Ft=C(T,[["render",V]]);export{Ft as default};
