2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{J as m,a as l,df as c,b as d,aA as u,o as r,h as o,F as f,aD as C,n as a,bm as _,p as k}from"./index.90da037b.js";import{b as h}from"./index.5a51e5f8.js";import"./index.1659fc81.js";import"./index.8ae3c346.js";import"./ArrowLeftOutlined.d81f11fb.js";import"./index.d233f0c1.js";import"./index.5a33700f.js";import"./FullscreenOutlined.8b01061e.js";import"./index.b0d37896.js";import"./useWindowSizeFn.bb7ce060.js";import"./useContentViewHeight.8af6e3bb.js";import"./uniqBy.2bfac54c.js";import"./_baseIteratee.65dd9fdb.js";import"./get.b86e8352.js";import"./index.b1f9176c.js";import"./useRefs.8dda1daa.js";import"./PlusOutlined.fc498e7a.js";import"./RedoOutlined.a031b067.js";import"./index.5f38c7d8.js";import"./lock.6cdd5448.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(f,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:_({background:t})},[k(p)],14,y))),128))],2)}var K=m(v,[["render",$]]);export{K as default};
|