2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{L as m,a as l,da as c,b as d,aG as u,o as r,h as o,F as C,aJ as _,q as a,bn as f,n as k}from"./index.49914b5a.js";import{b as h}from"./index.43108da9.js";import"./index.c456af0b.js";import"./index.964646e3.js";import"./ArrowLeftOutlined.f959b13b.js";import"./index.42090798.js";import"./index.ee354771.js";import"./FullscreenOutlined.6747fb97.js";import"./index.ed9035b4.js";import"./useWindowSizeFn.96491139.js";import"./useContentViewHeight.36f98ca6.js";import"./uniqBy.a8ee5355.js";import"./_baseIteratee.44597bea.js";import"./get.eb15741f.js";import"./index.d52f9af6.js";import"./useRefs.4a1afb1f.js";import"./RedoOutlined.061065da.js";import"./index.1493e146.js";import"./lock.ac3d5d6f.js";const v=l({name:"ThemeColorPicker",components:{CheckOutlined:c},props:{colorList:{type:Array,defualt:[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:i}=d("setting-theme-picker");function n(s){e.event&&h(e.event,s)}return{prefixCls:i,handleClick:n}}}),y=["onClick"];function $(e,i,n,s,b,g){const p=u("CheckOutlined");return r(),o("div",{class:a(e.prefixCls)},[(r(!0),o(C,null,_(e.colorList||[],t=>(r(),o("span",{key:t,onClick:L=>e.handleClick(t),class:a([`${e.prefixCls}__item`,{[`${e.prefixCls}__item--active`]:e.def===t}]),style:f({background:t})},[k(p)],14,y))),128))],2)}var I=m(v,[["render",$]]);export{I as default};
|