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-LwlFn7Y4.js";import{useListPage as I}from"./useListPage-BEtybUiF.js";import N from"./BasicTable-Clbg3fHx.js";import{_ as C}from"./index-B_2CoVdl.js";import"./componentMap-CzCGDP7x.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.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 $t=C(T,[["render",V]]);export{$t as default};
