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.2c8fd916.js";import{b as h}from"./index.c1b41549.js";import"./index.eaa5fe48.js";import"./index.88bd2e47.js";import"./ArrowLeftOutlined.889429f0.js";import"./index.014ca1d3.js";import"./index.4ff14b0e.js";import"./FullscreenOutlined.2f05c247.js";import"./index.f35b6645.js";import"./useWindowSizeFn.d0fad18a.js";import"./useContentViewHeight.f0055632.js";import"./uniqBy.565a6da4.js";import"./_baseIteratee.c05f666b.js";import"./get.e497368a.js";import"./index.9c8662c0.js";import"./useRefs.6faa132d.js";import"./PlusOutlined.b2db69d1.js";import"./RedoOutlined.c889c338.js";import"./index.ea1d7a5b.js";import"./lock.b2d33efe.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};
|