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.15bf95a0.js";import{b as h}from"./index.13c3b32e.js";import"./index.bc0989a7.js";import"./index.6b3f1a50.js";import"./ArrowLeftOutlined.2f86be89.js";import"./index.b95f149a.js";import"./index.6858ef6d.js";import"./FullscreenOutlined.dca4c038.js";import"./index.aaf498b4.js";import"./useWindowSizeFn.496bb47f.js";import"./useContentViewHeight.f193840f.js";import"./uniqBy.b7a1b0f6.js";import"./_baseIteratee.08430898.js";import"./get.05ad8139.js";import"./index.253e68b1.js";import"./useRefs.5c9b400e.js";import"./RedoOutlined.42c5349c.js";import"./lock.aa41b2e8.js";const v=l({name:"ThemeColorPicker",components:{CheckOutlined:c},props:{colorList:{type:Array,defualt:[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:n}=d("setting-theme-picker");function i(s){e.event&&h(e.event,s)}return{prefixCls:n,handleClick:i}}}),y=["onClick"];function $(e,n,i,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 w=m(v,[["render",$]]);export{w as default};
|