el-text-2f236ec9.js 947 B

1
  1. import{aK as i,b9 as m,d as s,bA as o,aM as y,e as d,cp as g,o as f,C as _,A as b,aN as x,ac as v,a as C,aG as S,$ as h,aO as k,aP as w,__tla as A}from"./index-6e0fa573.js";let l,E=Promise.all([(()=>{try{return A}catch{}})()]).then(async()=>{const n=i({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=w(k(s({...r,props:n,setup(p){const e=p,u=o(),a=y("text"),c=d(()=>[a.b(),a.m(e.type),a.m(u.value),a.is("truncated",e.truncated),a.is("line-clamp",!g(e.lineClamp))]);return(t,N)=>(f(),_(h(t.tag),{class:v(C(c)),style:S({"-webkit-line-clamp":t.lineClamp})},{default:b(()=>[x(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,E as __tla};