lcny-vue3-antd-admin/dist/assets/ThemeColorPicker.8049530f.js

2 lines
1.3 KiB
JavaScript

import{L as m,a as l,d0 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.10d06543.js";import{b as h}from"./index.c06d2458.js";import"./index.f4cd53d5.js";import"./index.92c669b8.js";import"./ArrowLeftOutlined.804f6521.js";import"./index.a5e82843.js";import"./index.18988f8a.js";import"./FullscreenOutlined.bc4a08a6.js";import"./index.915ff3c0.js";import"./useWindowSizeFn.a9703094.js";import"./useContentViewHeight.1f792a27.js";import"./uniqBy.eed4f041.js";import"./_baseIteratee.ce67176e.js";import"./get.bd6d3db4.js";import"./index.e8eaf16a.js";import"./useRefs.335cb825.js";import"./PlusOutlined.caedd276.js";import"./RedoOutlined.9008bb6f.js";import"./index.1565d633.js";import"./lock.09621c9c.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};