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.78bf44cb.js";import{b as h}from"./index.f36d81bf.js";import"./index.0ac429b9.js";import"./index.4e88fed7.js";import"./ArrowLeftOutlined.3f664644.js";import"./index.5ffdb515.js";import"./index.6f9a21f7.js";import"./FullscreenOutlined.0d89f50e.js";import"./index.e01793fa.js";import"./useWindowSizeFn.17456a25.js";import"./useContentViewHeight.8345518e.js";import"./uniqBy.92064fd0.js";import"./_baseIteratee.ce9ec913.js";import"./get.9d515986.js";import"./index.05a03ca0.js";import"./useRefs.6f73fc2f.js";import"./RedoOutlined.6da51422.js";import"./index.21e4e1d1.js";import"./lock.879e169a.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};
|