2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{L as m,a as l,da as c,b as d,aG as u,o as r,h as o,F as C,aJ as _,q as a,bn as f,n as k}from"./index.66fda55f.js";import{b as h}from"./index.6d28eaa8.js";import"./index.68bb645f.js";import"./index.641dc06f.js";import"./ArrowLeftOutlined.476002b8.js";import"./index.b2ee3398.js";import"./index.146dcad7.js";import"./FullscreenOutlined.9844a14c.js";import"./index.d706fae7.js";import"./useWindowSizeFn.543fbdda.js";import"./useContentViewHeight.a4f5c104.js";import"./uniqBy.300580fe.js";import"./_baseIteratee.d3cd63c9.js";import"./get.6f471eb6.js";import"./index.bd8788ce.js";import"./useRefs.023c9fad.js";import"./PlusOutlined.2e281232.js";import"./RedoOutlined.13d433c5.js";import"./index.dba243ce.js";import"./lock.a41847f4.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};
|