import{f as r}from"./vendor-@vue.d54eea3a.js";var m=r({data(){return{columns:[],data:[]}},mounted(){this.init()},computed:{totals(){let e=0,t=0;return this.data.forEach(({borrow:a,repayment:o})=>{e+=a,t+=o}),{totalBorrow:e,totalRepayment:t}}},methods:{init(){this.columns=[{title:"Name",dataIndex:"name"},{title:"Borrow",dataIndex:"borrow"},{title:"Repayment",dataIndex:"repayment"}],this.data=[{key:"1",name:"John Brown",borrow:10,repayment:33},{key:"2",name:"Jim Green",borrow:100,repayment:0},{key:"3",name:"Joe Black",borrow:10,repayment:10},{key:"4",name:"Jim Red",borrow:75,repayment:45}]}}});export{m as default};
