import{d as p,as as n,ad as f,o as t,g as a,B as u,m,a as I,bM as k,V as b,h as c,O as g,D as x,U as y,H as _}from"./index-BP6bNRoi.js";const C=_(p({name:"XTextButton",__name:"XTextButton",props:{modelValue:n.bool.def(!1),loading:n.bool.def(!1),preIcon:n.string.def(""),postIcon:n.string.def(""),title:n.string.def(""),type:n.oneOf(["","primary","success","warning","danger","info"]).def("primary"),circle:n.bool.def(!1),round:n.bool.def(!1),plain:n.bool.def(!1),onClick:{type:Function,default:null}},setup(e){const i=e,r=f(()=>{const l=["title","preIcon","postIcon","onClick"],s={...k(),...i};for(const o in s)l.indexOf(o)!==-1&&delete s[o];return s});return(l,s)=>{const o=y,d=b;return t(),a(d,m({link:""},I(r),{onClick:e.onClick}),{default:u(()=>[e.preIcon?(t(),a(o,{key:0,icon:e.preIcon,class:"mr-1px"},null,8,["icon"])):c("",!0),g(" "+x(e.title?e.title:"")+" ",1),e.postIcon?(t(),a(o,{key:1,icon:e.postIcon,class:"mr-1px"},null,8,["icon"])):c("",!0)]),_:1},16,["onClick"])}}}),[["__scopeId","data-v-7561ab3f"]]);export{C as _};
|