| 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.bb126a0d.js"],(function(e){"use strict";var n,o,r,c,s,a,l,i,u,f,p,b,y,g,d,m,v,O,k,j,h,w,C;return{setters:[function(e){n=e.v,o=e.u,r=e.d,c=e.a9,s=e.y,a=e.j,l=e.C,i=e.O,u=e.J,f=e.U,p=e.K,b=e.L,y=e.D,g=e.G,d=e.a4,m=e.m,v=e.W,O=e.M,k=e.T,j=e._,h=e.c,w=e.au,C=e.Y}],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=a((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?(l(),i("span",{key:0,class:p(b(C)),style:O({backgroundColor:e.color}),onClick:S},[u("span",{class:p(b(j).e("content"))},[f(e.$slots,"default")],2),e.closable?(l(),y(b(m),{key:0,class:p(b(j).e("close")),onClick:d(P,["stop"])},{default:g((function(){return[h(b(w))]})),_:1},8,["class","onClick"])):v("v-if",!0)],6)):(l(),y(k,{key:1,name:"".concat(b(j).namespace.value,"-zoom-in-center"),appear:""},{default:g((function(){return[u("span",{class:p(b(C)),style:O({backgroundColor:e.color}),onClick:S},[u("span",{class:p(b(j).e("content"))},[f(e.$slots,"default")],2),e.closable?(l(),y(b(m),{key:0,class:p(b(j).e("close")),onClick:d(P,["stop"])},{default:g((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"]])))}}}))}();
|