ThemeColorPicker-BEmDhXIB.js 1.1 KB

1
  1. import{f as m,_ as l}from"./entry/index-CcR3XhtN-1721963535400.js";import{b as c}from"./index-CklBI4OW.js";import{aR as d}from"./antd-c1uHJHtu.js";import{d as f,a7 as u,_ as r,$ as n,F as C,aa as k,a2 as i,af as _,k as h}from"./vue-YAQxJ0SI.js";import"./index-D0dQHoLY.js";import"./index-DtKdEmxH.js";import"./useContentViewHeight-WqgjfXjv.js";import"./useWindowSizeFn-D6dCWzyH.js";import"./useSortable-X3pPIR41.js";import"./index-Dqidnd8s.js";import"./lock-B9ovXdoF.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(a){e.event&&c(e.event,a)}return{prefixCls:o,handleClick:s}}}),v=["onClick"];function y(e,o,s,a,g,b){const p=u("CheckOutlined");return r(),n("div",{class:i(e.prefixCls)},[(r(!0),n(C,null,k(e.colorList||[],t=>(r(),n("span",{key:t,onClick:L=>e.handleClick(t),class:i([`${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};