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.867f48c0.js";import{b as h}from"./index.cde5909a.js";import"./index.8577e943.js";import"./index.0f1fec62.js";import"./ArrowLeftOutlined.2294d66c.js";import"./index.f860d291.js";import"./index.1bbe7242.js";import"./FullscreenOutlined.292b4326.js";import"./index.c6c750d7.js";import"./useWindowSizeFn.08bc7e9a.js";import"./useContentViewHeight.221a05c7.js";import"./uniqBy.d1706606.js";import"./_baseIteratee.79381cc0.js";import"./get.b0df836b.js";import"./index.dc7db57d.js";import"./useRefs.01fce650.js";import"./RedoOutlined.ab0376f6.js";import"./index.74f80d65.js";import"./lock.c6a9bed2.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 I=m(v,[["render",$]]);export{I as default};
|