1 |
- import{j as l}from"./entry/index-DHk75Dkc.js";import{b as p}from"./index-P0WZOtLb.js";import{d as u,Z as n,_ as s,F as d,aa as f,a1 as m,u as t,ag as k,k as C}from"./vue-ByATgq5d.js";import{aF as _}from"./antd-B5uHptHh.js";import"./index-B7yep2Fg.js";import"./useContentViewHeight-D8mdT192.js";import"./useWindowSizeFn-D9YbvWYE.js";import"./useSortable-BmaEIOXj.js";import"./index-Bsi9EG-N.js";import"./lock-CBuEOnkV.js";const h=["onClick"],S=u({name:"ThemeColorPicker",__name:"ThemeColorPicker",props:{colorList:{type:Array,default:()=>[]},event:{type:Number},def:{type:String}},setup(r){const i=r,{prefixCls:a}=l("setting-theme-picker");function c(o){i.event&&p(i.event,o)}return(o,y)=>(n(),s("div",{class:m(t(a))},[(n(!0),s(d,null,f(r.colorList||[],e=>(n(),s("span",{key:e,onClick:g=>c(e),class:m([`${t(a)}__item`,{[`${t(a)}__item--active`]:r.def===e}]),style:k({background:e})},[C(t(_))],14,h))),128))],2))}});export{S as default};
|