1 |
- import{f as m,_ as l}from"./entry/index-BOVpYCVt-1731915664217.js";import{b as c}from"./index-DXPgbbvn.js";import{aR as d}from"./antd-DXvsKA0x.js";import{d as f,_ as r,$ as n,F as u,a8 as C,a3 as a,ad as k,k as _,a9 as h}from"./vue-B5pbXMv7.js";import"./index-EdNvCi60.js";import"./index-tXeR2Yb0.js";import"./useContentViewHeight-0Tf8Jxwa.js";import"./useWindowSizeFn-CzjmevD7.js";import"./useSortable-CRwDSVfI.js";import"./index-CwBw3p8r.js";import"./lock-BXXmP9_P.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=h("CheckOutlined");return r(),n("div",{class:a(e.prefixCls)},[(r(!0),n(u,null,C(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:k({background:t})},[_(p)],14,v))),128))],2)}const E=l($,[["render",y]]);export{E as default};
|