ThemeColorPicker.894aede5.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.386d9fb7.js";import{b as h}from"./index.82a61f10.js";import"./index.b36a1201.js";import"./index.0fd57566.js";import"./ArrowLeftOutlined.f1e0008b.js";import"./index.aed3fcbc.js";import"./index.a81048fc.js";import"./FullscreenOutlined.9b13e7c7.js";import"./index.3a7a7a02.js";import"./useWindowSizeFn.b46c26df.js";import"./useContentViewHeight.c723fc13.js";import"./uniqBy.3999e323.js";import"./_baseIteratee.3f358b05.js";import"./get.b8c3006a.js";import"./index.581efe0b.js";import"./useRefs.4d8307d4.js";import"./PlusOutlined.a5dd0864.js";import"./RedoOutlined.0f4a624f.js";import"./index.1a1e98a0.js";import"./TabPane.cca26f83.js";import"./lock.c03bf47d.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};