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.4c322715.js";import{b as h}from"./index.b96586f1.js";import"./index.ecf9ef1b.js";import"./index.d6d0063a.js";import"./ArrowLeftOutlined.375c84ed.js";import"./index.ab45e30f.js";import"./index.2cd25ab1.js";import"./FullscreenOutlined.abe4e3bc.js";import"./index.b961ba3f.js";import"./useWindowSizeFn.485f7a2c.js";import"./useContentViewHeight.26384ef1.js";import"./uniqBy.e7749ed9.js";import"./_baseIteratee.41f6738e.js";import"./get.dd9ca609.js";import"./index.1d73febb.js";import"./useRefs.cd3feee7.js";import"./PlusOutlined.2d04ea11.js";import"./RedoOutlined.90152b7a.js";import"./index.f265dae1.js";import"./lock.17c288d7.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};
|