1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.60a2d2dd.js"],(function(e){"use strict";var n,o,r,c,s,l,a,i,u,f,p,b,y,d,g,m,v,k,O,j,h,w,C;return{setters:[function(e){n=e.m,o=e.q,r=e.d,c=e.s,s=e.t,l=e.k,a=e.v,i=e.x,u=e.y,f=e.z,p=e.A,b=e.B,y=e.C,d=e.D,g=e.G,m=e.H,v=e.I,k=e.J,O=e.T,j=e._,h=e.c,w=e.K,C=e.L}],execute:function(){var P=e("t",n({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:o,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean})),S={close:function(e){return e instanceof MouseEvent},click:function(e){return e instanceof MouseEvent}},E=r(t(t({},{name:"ElTag"}),{},{props:P,emits:S,setup:function(e,t){var n=t.emit,o=e,r=c(),j=s("tag"),C=l((function(){var e=o.type,t=o.hit,n=o.effect,c=o.closable,s=o.round;return[j.b(),j.is("closable",c),j.m(e),j.m(r.value),j.m(n),j.is("hit",t),j.is("round",s)]})),P=function(e){n("close",e)},S=function(e){n("click",e)};return function(e,t){return e.disableTransitions?(a(),i("span",{key:0,class:p(b(C)),style:k({backgroundColor:e.color}),onClick:S},[u("span",{class:p(b(j).e("content"))},[f(e.$slots,"default")],2),e.closable?(a(),y(b(m),{key:0,class:p(b(j).e("close")),onClick:g(P,["stop"])},{default:d((function(){return[h(b(w))]})),_:1},8,["class","onClick"])):v("v-if",!0)],6)):(a(),y(O,{key:1,name:"".concat(b(j).namespace.value,"-zoom-in-center"),appear:""},{default:d((function(){return[u("span",{class:p(b(C)),style:k({backgroundColor:e.color}),onClick:S},[u("span",{class:p(b(j).e("content"))},[f(e.$slots,"default")],2),e.closable?(a(),y(b(m),{key:0,class:p(b(j).e("close")),onClick:g(P,["stop"])},{default:d((function(){return[h(b(w))]})),_:1},8,["class","onClick"])):v("v-if",!0)],6)]})),_:3},8,["name"]))}}}));e("E",C(j(E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])))}}}))}();
|