| 1 |
- import{d as p,cg as m,c,j as d,o as n,m as r,F as u,D as C,s as a,k as _,ah as f,g as k}from"./index-d3600154.js";import{b as h}from"./index-f0246b9c.js";import"./index-87d6eb60.js";import"./useWindowSizeFn-89902ab2.js";import"./index-670a4efc.js";import"./index-b06c40a8.js";import"./index-4097e659.js";import"./useContentViewHeight-ee38db3f.js";import"./uniqBy-2d445bc4.js";import"./clickOutside-53868c41.js";import"./RedoOutlined-8977b36a.js";const v=p({name:"ThemeColorPicker",components:{CheckOutlined:m},props:{colorList:{type:Array,defualt:[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:s}=c("setting-theme-picker");function o(i){e.event&&h(e.event,i)}return{prefixCls:s,handleClick:o}}});const y=["onClick"];function g(e,s,o,i,$,b){const l=_("CheckOutlined");return n(),r("div",{class:a(e.prefixCls)},[(n(!0),r(u,null,C(e.colorList||[],t=>(n(),r("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(l)],14,y))),128))],2)}const A=d(v,[["render",g]]);export{A as default};
|