1 |
- import{f as m,_ as l}from"./entry/index-CP6zkLsN-1726190694502.js";import{b as c}from"./index-C4eNP-MA.js";import{aR as d}from"./antd-Bp5u6ujY.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-caYAhZot.js";import"./index-D3SS0e0s.js";import"./useContentViewHeight-DQ1krU9_.js";import"./useWindowSizeFn-c2oM7mG1.js";import"./useSortable-Dv9W1z21.js";import"./index-Bh1SitHa.js";import"./lock-CM_wkXw_.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};
|