el-text-0fe23cf3.js 942 B

1
  1. import{b2 as c,bd as m,d as s,bP as o,b4 as y,b,bE as d,o as g,l as _,w as f,aJ as v,W as x,a as w,av as S,aQ as h,b6 as k,b7 as C,__tla as E}from"./index-af173888.js";let l,P=Promise.all([(()=>{try{return E}catch{}})()]).then(async()=>{const n=c({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:m,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),r=s({name:"ElText"});l=C(k(s({...r,props:n,setup(p){const e=p,u=o(),a=y("text"),i=b(()=>[a.b(),a.m(e.type),a.m(u.value),a.is("truncated",e.truncated),a.is("line-clamp",!d(e.lineClamp))]);return(t,z)=>(g(),_(h(t.tag),{class:x(w(i)),style:S({"-webkit-line-clamp":t.lineClamp})},{default:f(()=>[v(t.$slots,"default")]),_:3},8,["class","style"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]))});export{l as E,P as __tla};