XButton-1d951fe4.js 1.1 KB

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