lcny-vue3-antd-admin/dist/assets/ThemeColorPicker.085c8e9e.js

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.d96edf17.js";import{b as h}from"./index.fd662824.js";import"./index.a356c616.js";import"./index.6ed59d49.js";import"./ArrowLeftOutlined.55cc27b9.js";import"./index.906d86c1.js";import"./index.4d87f5ef.js";import"./FullscreenOutlined.9bc0f929.js";import"./index.e36aef98.js";import"./useWindowSizeFn.5175ecea.js";import"./useContentViewHeight.3c1802ad.js";import"./uniqBy.8ce4edf2.js";import"./_baseIteratee.bd44177f.js";import"./get.2b65a8fc.js";import"./index.5bcb1d9d.js";import"./useRefs.fa86f359.js";import"./PlusOutlined.b8e9d20a.js";import"./RedoOutlined.4f0e90dc.js";import"./index.14b0935e.js";import"./lock.d606b8e4.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};