| 1 |
- import{h as l}from"./entry/index-CmhrO5H0.js";import{b as p}from"./index-DIvIqkPo.js";import{b2 as d}from"./antd-BfqWtMX3.js";import{d as u,Z as n,_ as i,F as f,a7 as k,a1 as m,u as t,ad as C,k as _}from"./vue-DM5HGU8Z.js";import"./index-_fAOg_Kh.js";import"./useContentViewHeight-76YH3VRI.js";import"./useWindowSizeFn-I9CCvWhY.js";import"./imageEnum-BRgYKvjO.js";import"./uuid-BUBnBT7J.js";import"./useSortable-CQfe9Urb.js";import"./index-YFXu3gX7.js";import"./lock-4k-sZ02L.js";const h=["onClick"],A=u({name:"ThemeColorPicker",__name:"ThemeColorPicker",props:{colorList:{type:Array,default:()=>[]},event:{type:Number},def:{type:String}},setup(r){const o=r,{prefixCls:a}=l("setting-theme-picker");function c(s){o.event&&p(o.event,s)}return(s,y)=>(n(),i("div",{class:m(t(a))},[(n(!0),i(f,null,k(r.colorList||[],e=>(n(),i("span",{key:e,onClick:v=>c(e),class:m([`${t(a)}__item`,{[`${t(a)}__item--active`]:r.def===e}]),style:C({background:e})},[_(t(d))],14,h))),128))],2))}});export{A as default};
|