mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
2 lines
878 B
JavaScript
2 lines
878 B
JavaScript
import{a as n}from"./data-BCF1-ihA.js";import{a as i,a6 as m,at as p,p as u,au as h,bg as f,J as d}from"./index-AFhnwzwZ.js";function v(){const a=i(m(n,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:s}=p(),o=u(()=>s.value?"dark":"light");return a.value.forEach((b,e)=>{const{setOptions:r}=h(f(`PieChartRef${e}`),{theme:o});r({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:c}})=>{d(`您点击了第 ${e+1} 行,图表标题为${l},图表数据为:${c}`,{type:"success"})}})}),{columns:t,dataList:a}}export{v as useColumns};
|