lcny-vue3-antd-admin/dist/assets/ThemeColorPicker.02f29db0.js

2 lines
1.3 KiB
JavaScript

import{J as m,a as l,d5 as c,b as d,aC as u,o as r,h as o,F as C,aF as _,n as a,bo as f,p as k}from"./index.10bef8d9.js";import{b as h}from"./index.ae175441.js";import"./index.11d0d4f7.js";import"./index.88228e57.js";import"./ArrowLeftOutlined.00865997.js";import"./index.7c202422.js";import"./index.e436a39a.js";import"./FullscreenOutlined.1a57dd79.js";import"./index.67f05a07.js";import"./useWindowSizeFn.828b4ed1.js";import"./useContentViewHeight.34af3465.js";import"./uniqBy.3a475547.js";import"./_baseIteratee.ca4916de.js";import"./get.54ea2f74.js";import"./index.8b456bbf.js";import"./useRefs.c7d6606b.js";import"./PlusOutlined.0369c814.js";import"./RedoOutlined.5e7f9ab6.js";import"./index.18155631.js";import"./lock.64dfded4.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:F=>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};