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-BN5Ac_IG.js";import{useListPage as I}from"./useListPage-i3Wl0_Fg.js";import N from"./BasicTable-DAfCfXmD.js";import{_ as C}from"./index-CYriLmQo.js";import"./componentMap-7D1QIeNI.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.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};
