import{r as c,c as i,o as s,w as a,m as n,n as o,E as g}from"./vue.esm-bundler.js?ver=1.5.4";import{_ as h}from"./_plugin-vue_export-helper.js?ver=1.5.4";const u={name:"IconButton",props:{title:{type:String},href:{type:String},target:{type:String},border:{type:String},router_link:{type:Boolean},to:{type:Object},size:{type:String},tag:{type:String},circle:{type:Boolean},bg:{type:String},hover:{type:String}},computed:{isBorder(){return this.border?"border-"+this.border:""},isSize(){return this.size?this.size:""},isTag(){return this.tag?this.tag:"div"},isCircle(){return this.circle?"is-circle":""},isBg(){return this.bg?this.bg:""},isHover(){return this.hover?"hover-"+this.hover:""}}};function d(r,f,e,y,m,t){const l=c("router-link");return e.to?(s(),i(l,{key:0,to:e.to,class:o(["icon-button",[t.isBorder,t.isSize,t.isCircle,t.isBg,t.isHover]]),title:e.title,target:e.target},{default:a(()=>[n(r.$slots,"default")]),_:3},8,["to","class","title","target"])):(s(),i(g(t.isTag),{key:1,class:o(["icon-button",[t.isBorder,t.isSize,t.isCircle,t.isBg,t.isHover]]),href:e.href,title:e.title,target:e.target},{default:a(()=>[n(r.$slots,"default")]),_:3},8,["class","href","title","target"]))}const S=h(u,[["render",d]]);export{S as I};
