XButton-210d16b4.js 1.2 KB

1
  1. import{d as f,ag as o,K as u,o as a,v as s,w as _,aj as m,a as g,bn as I,C as k,P as c,n as b,t as y,j as x,_ as C,__tla as B}from"./index-bd9277a1.js";let i,X=Promise.all([(()=>{try{return B}catch{}})()]).then(async()=>{i=C(f({name:"XButton",__name:"XButton",props:{modelValue:o.bool.def(!1),loading:o.bool.def(!1),preIcon:o.string.def(""),postIcon:o.string.def(""),title:o.string.def(""),type:o.oneOf(["","primary","success","warning","danger","info"]).def(""),link:o.bool.def(!1),circle:o.bool.def(!1),round:o.bool.def(!1),plain:o.bool.def(!1),onClick:{type:Function,default:null}},setup(n){const r=n,d=u(()=>{const l=["title","preIcon","postIcon","onClick"],t={...I(),...r};for(const e in t)l.indexOf(e)!==-1&&delete t[e];return t});return(l,t)=>{const e=x,p=k;return a(),s(p,m(g(d),{onClick:n.onClick}),{default:_(()=>[n.preIcon?(a(),s(e,{key:0,icon:n.preIcon,class:"mr-1px"},null,8,["icon"])):c("",!0),b(" "+y(n.title?n.title:"")+" ",1),n.postIcon?(a(),s(e,{key:1,icon:n.postIcon,class:"mr-1px"},null,8,["icon"])):c("",!0)]),_:1},16,["onClick"])}}}),[["__scopeId","data-v-440d118d"],["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/XButton/src/XButton.vue"]])});export{i as _,X as __tla};