ThemeColorPicker.b1da5626.js 1.4 KB

1
  1. import{av as m,a as l,di as c,b as d,a_ as u,o as r,h as o,F as _,b2 as C,q as a,bk as f,n as k}from"./index.e732a6c4.js";import{b as h}from"./index.7abf7db1.js";import"./index.0d21dfda.js";import"./index.040d81ad.js";import"./ArrowLeftOutlined.ed827216.js";import"./index.7a5d609f.js";import"./index.324f6411.js";import"./FullscreenOutlined.67299bdd.js";import"./index.a0b3d302.js";import"./useWindowSizeFn.ef03f01e.js";import"./useContentViewHeight.b55f3b98.js";import"./uniqBy.1074b370.js";import"./_baseIteratee.9ce959b8.js";import"./get.cddfc9f0.js";import"./index.3b319fd0.js";import"./useRefs.c7c3b4e2.js";import"./PlusOutlined.4b135b37.js";import"./RedoOutlined.2f084204.js";import"./index.85ccf554.js";import"./TabPane.1757a2dd.js";import"./lock.a2ee251f.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 b(e,i,n,s,$,g){const p=u("CheckOutlined");return r(),o("div",{class:a(e.prefixCls)},[(r(!0),o(_,null,C(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 M=m(v,[["render",b]]);export{M as default};