ThemeColorPicker-DSbB20vx.js 1.1 KB

1
  1. import{f as m,_ as l}from"./entry/index-Bx18cJez-1725359284503.js";import{b as c}from"./index-CvNL0NiB.js";import{aR as d}from"./antd-DubAfnNp.js";import{d as f,a5 as u,_ as r,$ as n,F as C,a8 as k,a2 as a,ad as _,k as h}from"./vue-Ba_NIFIa.js";import"./index-Cs79j4m5.js";import"./index-Dcl9vXlk.js";import"./useContentViewHeight-BzjlFY-4.js";import"./useWindowSizeFn-BOhi1LU6.js";import"./useSortable-DgU7IA__.js";import"./index-C2TwXk8M.js";import"./lock-C8j4gE5q.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};