lcny-vue3-antd-admin/dist/assets/ThemeColorPicker.028cdd9d.js

2 lines
1.3 KiB
JavaScript

import{J as m,a as l,d0 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.447fcd47.js";import{b as h}from"./index.8ff9e81f.js";import"./index.48c99b5b.js";import"./index.b53971bb.js";import"./ArrowLeftOutlined.92b7f9df.js";import"./index.39a016d6.js";import"./index.c5e84787.js";import"./FullscreenOutlined.1a2449a1.js";import"./index.23f5b46e.js";import"./useWindowSizeFn.10277ba6.js";import"./useContentViewHeight.cd643d8d.js";import"./uniqBy.8c6ea8ad.js";import"./_baseIteratee.156fdacb.js";import"./get.db2ca295.js";import"./index.38a5c08f.js";import"./useRefs.bc1e0f8a.js";import"./PlusOutlined.85be7614.js";import"./RedoOutlined.84275451.js";import"./index.cc22d934.js";import"./lock.f98e74c4.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};