2 lines
2.7 KiB
Java
2 lines
2.7 KiB
Java
import v from"./ErrorTip-BTY2OfD5.js";import D from"./ChartTabsRender-ClzWAewK.js";import R from"./ChartSingleRender-D_yG-oyt.js";import T from"./ChartDoubleRender-CxRSy9VF.js";import{e as y,h as _,c as a,S as g,r as l,y as u,H as S,z as c,M as d,B as h,K as f}from"./vue-vendor-DNhG1Cve.js";import{au as P}from"./index-X7Y8jykP.js";import"./useChartRender-Ctx-lg-5.js";import"./usePrintJS-Bi_9y7xu.js";import"./print-CBZdh_NG.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./download-CygB1orH.js";import"./base64Conver-24EVOS6V.js";import"./JDictSelectUtil-DwVTEDM5.js";import"./index-Cq6YxX27.js";import"./Bar-DCEyn2jh.js";import"./useECharts-BKJWOWs-.js";import"./useTimeout-D5AmIBZw.js";import"./useEventListener-BRXjwk7A.js";import"./useBreakpoint-DXhPW7nV.js";import"./breakpointEnum-BhAg6bcX.js";import"./echarts-O0zoDaFZ.js";import"./Pie-BfX96_-a.js";import"./BarMulti--ZxpkIeN.js";import"./LineMulti-0TfPtS_j.js";import"./index-BwqG9R3y.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./Group-DBzJABA_.js";import"./Checkbox-Dbxs4we4.js";import"./RadioButton-DRBix2Fq.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./index-DsixALRt.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./index-BuONesFs.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-DfHu-LAS.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";const k=y({name:"ChartAutoRender",components:{ErrorTip:v,ChartTabsRender:D,ChartSingleRender:R,ChartDoubleRender:T},props:{chartsData:{type:Object,default:null},isCombination:{type:Boolean,default:!1}},setup(t){const m=g("setErrorTip"),p=l(null),o=l("tab"),C=l({}),n=a(()=>o.value==="tab"),e=a(()=>o.value==="single"),i=a(()=>o.value==="double"),s=a(()=>({title:t.isCombination?null:p.value,chartsData:t.chartsData,isCombination:t.isCombination,onError:r=>m(r)}));_(()=>t.chartsData,()=>b(t.chartsData),{immediate:!0});function b(r){r&&(p.value=r.head.name,o.value=r.head.displayTemplate,C.value=r,!n.value&&!i.value&&!e.value&&m("未识别的布局模式"))}return{isTabs:n,isSingle:e,isDouble:i,templateProps:s}}});function B(t,m,p,o,C,n){const e=f("ChartTabsRender"),i=f("ChartSingleRender"),s=f("ChartDoubleRender");return t.isTabs?(c(),u(e,d(h({key:0},t.templateProps)),null,16)):t.isSingle?(c(),u(i,d(h({key:1},t.templateProps)),null,16)):t.isDouble?(c(),u(s,d(h({key:2},t.templateProps)),null,16)):S("",!0)}const gt=P(k,[["render",B]]);export{gt as default};
|