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.0af5f3c7.js";import{b as h}from"./index.701b13be.js";import"./index.20c076a8.js";import"./index.365ce481.js";import"./ArrowLeftOutlined.87e755e9.js";import"./index.1ad38bf5.js";import"./index.5e5087ba.js";import"./FullscreenOutlined.51e1a299.js";import"./index.f9150d71.js";import"./useWindowSizeFn.bea1b5d7.js";import"./useContentViewHeight.7a4fda07.js";import"./uniqBy.ebd435aa.js";import"./_baseIteratee.f2a8dc4d.js";import"./get.177a5851.js";import"./index.5f8636d8.js";import"./useRefs.50da323c.js";import"./PlusOutlined.4f056954.js";import"./RedoOutlined.ab77ea04.js";import"./index.e0b081a9.js";import"./lock.084b3b93.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};
|