el-text-cceaf178.js 946 B

1
  1. import{aw as c,bF as m,d as s,bG as o,ay as y,K as d,bH as g,o as f,v as _,w as b,az as v,Z as x,a as w,au as S,M as h,aA as k,aB as C,__tla as z}from"./index-6d7b82ba.js";let l,B=Promise.all([(()=>{try{return z}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=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,E)=>(f(),_(h(t.tag),{class:x(w(i)),style:S({"-webkit-line-clamp":t.lineClamp})},{default:b(()=>[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,B as __tla};