ThemeColorPicker-5QJGsOTk.js 1.1 KB

1
  1. import{f as m,_ as l}from"./entry/index-CgYc8-8R-1727925932396.js";import{b as c}from"./index-DPmmXIHO.js";import{aR as d}from"./antd-Cvjlt_sO.js";import{d as f,a6 as u,_ as r,$ as n,F as C,a9 as k,a3 as a,ad as _,k as h}from"./vue-CmlY4eyV.js";import"./index-B_8huA1N.js";import"./index-GEqPWMG5.js";import"./useContentViewHeight-C2Zl5lMP.js";import"./useWindowSizeFn-V_14vZqv.js";import"./useSortable-CnIIRr1x.js";import"./index-YjO3zeaG.js";import"./lock-Cuvxdko2.js";const $=f({name:"ThemeColorPicker",components:{CheckOutlined:d},props:{colorList:{type:Array,default:()=>[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:o}=m("setting-theme-picker");function s(i){e.event&&c(e.event,i)}return{prefixCls:o,handleClick:s}}}),v=["onClick"];function y(e,o,s,i,g,b){const p=u("CheckOutlined");return r(),n("div",{class:a(e.prefixCls)},[(r(!0),n(C,null,k(e.colorList||[],t=>(r(),n("span",{key:t,onClick:L=>e.handleClick(t),class:a([`${e.prefixCls}__item`,{[`${e.prefixCls}__item--active`]:e.def===t}]),style:_({background:t})},[h(p)],14,v))),128))],2)}const E=l($,[["render",y]]);export{E as default};