import{_ as s}from"./vendor-vue-esign.3f5af73e.js";import{b8 as l,b2 as t,av as d,bu as n,ax as c,ae as r,ay as u,aw as f,H as y,ah as m}from"./vendor-@vue.d54eea3a.js";const _={name:"y-btn",props:{size:{default:"default"},type:{default:"default"},text:{},disabled:{default:!1},icon:{},eventName:{}},data(){return{}},created(){},methods:{clickCallback(a){return this.$emit("callback",this.eventName),a.preventDefault(),a.stopPropagation(),!1}}},b={key:1,class:"icon yo-icon-icons","aria-hidden":"true"},h=["xlink:href"];function k(a,x,e,C,v,i){const o=l("a-button");return t(),d(o,{size:e.size,ghost:!!e.type&&e.type!="primary"&&e.type!="default",type:e.type=="danger"?"primary":e.type,disabled:e.disabled,onClick:i.clickCallback},{icon:n(()=>[["yo-icon-baocun1","yo-icon-fuzhi"].includes(e.icon)?(t(),c("span",{key:0,class:r(["icon yo-icon-icons",[e.icon]])},null,2)):e.icon?(t(),c("svg",b,[u("use",{"xlink:href":"#"+e.icon},null,8,h)])):f("",!0)]),default:n(()=>[y(" "+m(e.text),1)]),_:1},8,["size","ghost","type","disabled","onClick"])}var N=s(_,[["render",k]]);export{N as default};
