import{e as i,p as n,r as p}from"./index-5df52834.js";import{a as c}from"./data-3da52ac2.js";import{m as u}from"./message-5a54ef00.js";import{t as f}from"./index-fb246486.js";function v(){const e=Vue.ref(i(c,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:r}=n(),s=Vue.computed(()=>r.value?"dark":"light");return e.value.forEach((h,a)=>{const{setOptions:o}=p(f(`PieChartRef${a}`),{theme:s});o({tooltip:{trigger:"item",confine:!0},series:[{name:"Github信息",type:"pie",data:[{value:1067,name:"watchers"},{value:4037,name:"star"},{value:859,name:"forks"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},{name:"click",callback:({data:{name:l,value:m}})=>{u(`您点击了第 ${a+1} 行，图表标题为${l}，图表数据为：${m}`,{type:"success"})}})}),{columns:t,dataList:e}}export{v as useColumns};
