import{defineComponent as s,createVNode as n}from"vue";const u=s({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?n("div",{class:`${e.prefixCls}-presets`},[n("ul",null,[e.presets.map(({label:r,value:t},o)=>n("li",{key:o,onClick:l=>{l.stopPropagation(),e.onClick(t)},onMouseenter:()=>{e.onHover?.(t)},onMouseleave:()=>{e.onHover?.(null)}},[r]))])]):null}});export{u as default};
