2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{J as m,a as l,d3 as c,b as d,aA as u,o as r,h as o,F as C,aD as _,n as a,bm as f,p as k}from"./index.6748bdd0.js";import{b as h}from"./index.2475a9bc.js";import"./index.afbaf8ef.js";import"./index.547e0df9.js";import"./ArrowLeftOutlined.260ffe5c.js";import"./index.c9e2eb68.js";import"./index.182020c8.js";import"./FullscreenOutlined.74a6e43c.js";import"./index.d691926a.js";import"./useWindowSizeFn.df19d895.js";import"./useContentViewHeight.ae4f0cd5.js";import"./uniqBy.102c2d42.js";import"./_baseIteratee.7cd6d531.js";import"./get.1a92c246.js";import"./index.2fa844fb.js";import"./useRefs.7023f327.js";import"./PlusOutlined.5683999e.js";import"./RedoOutlined.c36fc200.js";import"./index.252ee80e.js";import"./lock.b3425b0d.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 K=m(v,[["render",$]]);export{K as default};
|