import b from"./1fihc6v4p87-a850a7b3.js";import{D as x,_ as B}from"./index-59bc3b6e.js";import{A as v,m as L,w as $,x as D}from"./element-plus-bd23c18b.js";import{I as G,_ as M,ag as n,o as r,c as i,X as p,a9 as C,W as t,O as a,M as T,U as d,V as u,S as V}from"./@vue-2b7f1207.js";import"./vue-router-0de4a90b.js";import"./monaco-editor-530c6fe2.js";import"./vue-a9a7eb42.js";import"./@element-plus-b40d27ee.js";import"./@vueuse-bbff6225.js";import"./lodash-es-8470c7e9.js";import"./async-validator-b6b8d38d.js";import"./@ctrl-b0f23ca4.js";import"./@popperjs-7c8154ca.js";import"./escape-html-19374969.js";import"./dayjs-39b5b250.js";import"./normalize-wheel-es-ed76fb12.js";const z=G({name:"TestApi",components:{ElContainer:v,ElButton:L,MySlot:b,ElTable:$,ElTableColumn:D},setup(o){const s=x();return{state:M({list:[{a:1},{a:2}]}),props:o,provider:s}},methods:{click_handler_fyud2xtp2r({item:o,index:s,citem:l,cindex:h},c){return(S=>{alert(l)}).apply(this,c)}}});function F(o,s,l,h,c,S){const _=n("ElButton"),g=n("ElContainer"),k=n("MySlot"),m=n("ElTableColumn"),A=n("ElTable");return r(),i(p,null,[(r(),i(p,null,C(3,(e,f)=>t(g,{style:{width:"100%",height:"100px"}},{default:a(()=>[(r(!0),i(p,null,C(o.state.list,(y,E)=>(r(),T(_,{type:"primary",round:!0,onClick:(...N)=>o.click_handler_fyud2xtp2r({item:y,index:E,citem:e,cindex:f},N)},{default:a(()=>[d(u(e+","+E),1)]),_:2},1032,["onClick"]))),256))]),_:2},1024)),64)),t(k,null,{button:a(e=>[t(_,{type:"primary",size:""},{default:a(()=>[d(u(e==null?void 0:e.item),1)]),_:2},1024)]),_:1}),t(A,{data:[{date:"2016-05-03",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-04",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-01",name:"Tom",address:"No. 189, Grove St, Los Angeles"}]},{default:a(()=>[t(m,{prop:"date",label:"Date"}),t(m,{prop:"name",label:"Name"},{default:a(({row:e,column:f,$index:y})=>[(r(),T(V("div"),null,{default:a(()=>[d(u((e==null?void 0:e.name)+"-"+(e==null?void 0:e.date)),1)]),_:2},1024))]),_:1}),t(m,{prop:"address",label:"Address"})]),_:1},8,["data"])],64)}const ee=B(z,[["render",F]]);export{ee as default};
