2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
import{d as V,be as N,ae as O,O as H,j as L,a1 as m,aC as M,r,o as s,c,b as o,w as a,u as h,F as f,q as g,D as R,n as u,e as $,t as q,au as v,av as F,ac as P,s as j,x as U,h as G}from"./index-4ec2ce15.js";import{u as J,E as K}from"./chartEditStore-bfc6c223.js";import{i as Q}from"./icon-42fa39e7.js";import{l as W}from"./index-64867e41.js";import"./plugin-ae137233.js";const X=n=>(j("data-v-4ce90fea"),n=n(),U(),n),Y={class:"go-chart-theme-color"},Z=X(()=>u("span",null,"自定义颜色",-1)),ee={class:"go-flex-items-center"},oe=V({__name:"index",setup(n){N(e=>({d133daf6:w.value}));const x=W(()=>O(()=>import("./index-fb9121e3.js"),["./index-fb9121e3.js","./index-4ec2ce15.js","../css/index-9c2eb289.css","./noData-e5cefb25.js","./plugin-ae137233.js","./icon-42fa39e7.js","./chartEditStore-bfc6c223.js","./index-64867e41.js","../css/index-d825de9b.css","../css/index-db178c17.css"],import.meta.url)),{SquareIcon:te,AddIcon:S}=Q.ionicons5,l=J(),E=H(),d=L(!1),b=m(()=>M(l.getEditCanvasConfig.chartCustomThemeColorInfo)),w=m(()=>E.getAppTheme),I=m(()=>l.getEditCanvasConfig.chartThemeColor),k=()=>{d.value=!0},T=e=>`linear-gradient(to right, ${e.color[0]} 0%, ${e.color[5]} 100%)`,y=e=>P(e).splice(0,6),z=e=>{l.setEditCanvasConfig(K.CHART_THEME_COLOR,e)};return(e,p)=>{const A=r("n-icon"),B=r("n-text"),C=r("n-card"),D=r("n-ellipsis");return s(),c("div",Y,[o(C,{class:"card-box",size:"small",hoverable:"",embedded:"",onClick:k},{default:a(()=>[o(B,{class:"go-flex-items-center"},{default:a(()=>[Z,o(A,{size:"16"},{default:a(()=>[o(h(S))]),_:1})]),_:1})]),_:1}),(s(!0),c(f,null,g(b.value,(t,i)=>(s(),R(C,{key:i,class:F(["card-box",{selected:i===I.value}]),size:"small",hoverable:"",embedded:"",onClick:_=>z(i)},{default:a(()=>[u("div",ee,[o(D,{style:{"text-align":"left",width:"60px"}},{default:a(()=>[$(q(t.name),1)]),_:2},1024),(s(!0),c(f,null,g(y(t.color),_=>(s(),c("span",{class:"theme-color-item",key:_,style:v({backgroundColor:_})},null,4))),128))]),u("div",{class:"theme-bottom",style:v({backgroundImage:T(t)})},null,4)]),_:2},1032,["class","onClick"]))),128)),o(h(x),{modelShow:d.value,"onUpdate:modelShow":p[0]||(p[0]=t=>d.value=t)},null,8,["modelShow"])])}}});const le=G(oe,[["__scopeId","data-v-4ce90fea"]]);export{le as default};
|