2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{q as m,a as l,d5 as c,b as d,aC as u,o as r,h as o,F as C,aF as _,n as a,bo as f,p as k}from"./index.96e740c6.js";import{b as h}from"./index.7cd8519d.js";import"./index.92355b32.js";import"./index.2bed69b0.js";import"./ArrowLeftOutlined.2ed7c2a1.js";import"./index.55c7cf53.js";import"./index.b30dc02e.js";import"./FullscreenOutlined.6f7d8842.js";import"./index.c1d7d73f.js";import"./useWindowSizeFn.90138703.js";import"./useContentViewHeight.d128193e.js";import"./uniqBy.743d7474.js";import"./_baseIteratee.c057c387.js";import"./get.f812c6f0.js";import"./index.bf080904.js";import"./useRefs.096b7468.js";import"./PlusOutlined.be5bfb66.js";import"./RedoOutlined.c6cde412.js";import"./index.fce5b5e4.js";import"./lock.2a98d76a.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:F=>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 K=m(v,[["render",$]]);export{K as default};
|