XButton-9933c2d2.js 1.2 KB

1
  1. import{d as u,p as n,b as f,o as s,l as a,w as _,ai as m,a as k,bn as I,J as b,a2 as c,j as y,t as g,v as x,_ as C,__tla as X}from"./index-af173888.js";let i,B=Promise.all([(()=>{try{return X}catch{}})()]).then(async()=>{i=C(u({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 r=e,d=f(()=>{const l=["title","preIcon","postIcon","onClick"],t={...I(),...r};for(const o in t)l.indexOf(o)!==-1&&delete t[o];return t});return(l,t)=>{const o=x,p=b;return s(),a(p,m(k(d),{onClick:e.onClick}),{default:_(()=>[e.preIcon?(s(),a(o,{key:0,icon:e.preIcon,class:"mr-1px"},null,8,["icon"])):c("",!0),y(" "+g(e.title?e.title:"")+" ",1),e.postIcon?(s(),a(o,{key:1,icon:e.postIcon,class:"mr-1px"},null,8,["icon"])):c("",!0)]),_:1},16,["onClick"])}}}),[["__scopeId","data-v-440d118d"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/XButton/src/XButton.vue"]])});export{i as _,B as __tla};