import{P as d,a0 as f,q as l,m as _,v as x,d as i,e as y,x as c,y as p,z as u,I as S,B as g,C as m,O as C,N as v,_ as z,T,V as k,K as b,L as h}from"./index-ChIvyT7m.js";const w=d({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:f,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),B=l({name:"ElText"}),N=l({...B,props:w,setup(n){const t=n,o=_(),e=x("text"),s=i(()=>[e.b(),e.m(t.type),e.m(o.value),e.is("truncated",t.truncated),e.is("line-clamp",!y(t.lineClamp))]);return(a,r)=>(c(),p(v(a.tag),{class:g(m(s)),style:C({"-webkit-line-clamp":a.lineClamp})},{default:u(()=>[S(a.$slots,"default")]),_:3},8,["class","style"]))}});var E=z(N,[["__file","text.vue"]]);const I=T(E),D=l({__name:"TextItem",props:{k:{}},setup(n){const t=k(),o=n,e=i(()=>{for(let s of t.data.itemList)if(s.key===o.k)return s});return(s,a)=>{const r=I;return c(),p(r,null,{default:u(()=>[b(h(m(e).text),1)]),_:1})}}});export{D as default};
