XButton-d8b49223.js 1.1 KB

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