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