XButton-5f4b0954.js 1.1 KB

1
  1. import{d as f,ah as n,e as u,o as l,j as a,w as _,ak as m,a as k,b4 as I,q as b,l as c,m as y,t as g,_ as C,__tla as x}from"./index-1e808f2e.js";import{_ as h}from"./_plugin-vue_export-helper-1b428a4d.js";let r,w=Promise.all([(()=>{try{return x}catch{}})()]).then(async()=>{r=h(f({name:"XButton",__name:"XButton",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(""),link:n.bool.def(!1),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,d=u(()=>{const s=["title","preIcon","postIcon","onClick"],t={...I(),...i};for(const o in t)s.indexOf(o)!==-1&&delete t[o];return t});return(s,t)=>{const o=C,p=b;return l(),a(p,m(k(d),{onClick:e.onClick}),{default:_(()=>[e.preIcon?(l(),a(o,{key:0,icon:e.preIcon,class:"mr-1px"},null,8,["icon"])):c("",!0),y(" "+g(e.title?e.title:"")+" ",1),e.postIcon?(l(),a(o,{key:1,icon:e.postIcon,class:"mr-1px"},null,8,["icon"])):c("",!0)]),_:1},16,["onClick"])}}}),[["__scopeId","data-v-9ff26ce2"]])});export{r as _,w as __tla};