| 1 |
- var N=Object.defineProperty,V=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var g=(e,s,o)=>s in e?N(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o,C=(e,s)=>{for(var o in s||(s={}))I.call(s,o)&&g(e,o,s[o]);if(k)for(var o of k(s))P.call(s,o)&&g(e,o,s[o]);return e},y=(e,s)=>V(e,$(s));import{v as j,u as D,d as G,a9 as J,y as K,j as L,C as c,O,J as i,U as h,K as t,L as n,D as r,G as u,a4 as v,m as b,W as _,M as S,T as U,_ as W,c as B,au as E,Y}from"./index.f06d32fc.js";const q=j({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:D,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),A={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},F={name:"ElTag"},H=G(y(C({},F),{props:q,emits:A,setup(e,{emit:s}){const o=e,z=J(),l=K("tag"),p=L(()=>{const{type:a,hit:m,effect:T,closable:w,round:M}=o;return[l.b(),l.is("closable",w),l.m(a),l.m(z.value),l.m(T),l.is("hit",m),l.is("round",M)]}),d=a=>{s("close",a)},f=a=>{s("click",a)};return(a,m)=>a.disableTransitions?(c(),O("span",{key:0,class:t(n(p)),style:S({backgroundColor:a.color}),onClick:f},[i("span",{class:t(n(l).e("content"))},[h(a.$slots,"default")],2),a.closable?(c(),r(n(b),{key:0,class:t(n(l).e("close")),onClick:v(d,["stop"])},{default:u(()=>[B(n(E))]),_:1},8,["class","onClick"])):_("v-if",!0)],6)):(c(),r(U,{key:1,name:`${n(l).namespace.value}-zoom-in-center`,appear:""},{default:u(()=>[i("span",{class:t(n(p)),style:S({backgroundColor:a.color}),onClick:f},[i("span",{class:t(n(l).e("content"))},[h(a.$slots,"default")],2),a.closable?(c(),r(n(b),{key:0,class:t(n(l).e("close")),onClick:v(d,["stop"])},{default:u(()=>[B(n(E))]),_:1},8,["class","onClick"])):_("v-if",!0)],6)]),_:3},8,["name"]))}}));var Q=W(H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Z=Y(Q);export{Z as E,q as t};
|