import{defineComponent as i,ref as s,createVNode as f}from"vue";const p=i({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(d,{expose:a,attrs:n}){const t=s();return a({domRef:t}),()=>{const{prefixCls:o,editable:e,locale:l}=d;return!e||e.showAdd===!1?null:f("button",{ref:t,type:"button",class:`${o}-nav-add`,style:n.style,"aria-label":l?.addAriaLabel||"Add tab",onClick:r=>{e.onEdit("add",{event:r})}},[e.addIcon?e.addIcon():"+"])}}});export{p as default};
