lcny-vue3-antd-admin/dist/assets/ThemeColorPicker.43c2aa4f.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.00dffb67.js";import{b as h}from"./index.ab910246.js";import"./index.ef9d0f1d.js";import"./index.6b79819c.js";import"./ArrowLeftOutlined.c1ad9358.js";import"./index.23298376.js";import"./index.e5d8c4c7.js";import"./FullscreenOutlined.5259b253.js";import"./index.267ec8ac.js";import"./useWindowSizeFn.7dd1520b.js";import"./useContentViewHeight.1fe5c865.js";import"./uniqBy.05dc0a2e.js";import"./_baseIteratee.d85effb8.js";import"./get.321b638a.js";import"./index.ed3eb290.js";import"./useRefs.42f8c0f7.js";import"./PlusOutlined.bbfcedbd.js";import"./RedoOutlined.f60b7ba9.js";import"./index.e1dd5e37.js";import"./lock.85bb6488.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};