import{d as r,a as n,c as i,I as p,j as f,t as u,e as h,w as s,h as c,i as g,cq as y,g as x,b8 as b}from"./index-6c60ffba.js";const B=["title"],S=r({__name:"LabelTip",props:{label:{type:String},tooltip:{type:String},help:{type:Boolean,default:!1},message:{type:String,default:""},fixWidth:{type:Boolean,default:!0}},setup(e){return(t,v)=>{var a,l,o;const d=n("el-icon"),m=n("el-tooltip");return i(),p("div",{class:"inline-flex items-center",style:b(e.fixWidth?{maxWidth:"calc(100% - 16px)"}:void 0)},[f("div",{class:"text-clip overflow-hidden whitespace-nowrap",title:(a=e.label)!=null?a:t.$t(e.message)},u((l=e.label)!=null?l:t.$t(e.message)),9,B),e.help?(i(),h(m,{key:0,content:(o=e.tooltip)!=null?o:t.$t(e.message+".tooltip"),placement:"top"},{default:s(()=>[c(d,{class:"text-base align-text-top"},{default:s(()=>[c(g(y))]),_:1})]),_:1},8,["content"])):x("",!0)],4)}}});export{S as _};
