2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{J as m,a as l,d3 as c,b as d,aA as u,o as r,h as o,F as C,aD as _,n as a,bm as f,p as k}from"./index.f3d16645.js";import{b as h}from"./index.0f94c9b4.js";import"./index.e806ea73.js";import"./index.1447dcbf.js";import"./ArrowLeftOutlined.18b9a4f0.js";import"./index.b59c68c9.js";import"./index.9e297863.js";import"./FullscreenOutlined.41c227ef.js";import"./index.49379707.js";import"./useWindowSizeFn.d9de8593.js";import"./useContentViewHeight.f4c7b3a8.js";import"./uniqBy.7797e2be.js";import"./_baseIteratee.92be297d.js";import"./get.ba7ac0de.js";import"./index.d4a28329.js";import"./useRefs.62fdbff4.js";import"./PlusOutlined.b93a6608.js";import"./RedoOutlined.abb73429.js";import"./index.d9733f84.js";import"./lock.636ce7fc.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};
|