import{c as e,r as t,Z as s,v as a,N as p,B as n,M as o,x as l,A as r,m as c,y as d,aS as u,bp as f}from"./base-lib.js?v=1761009159";const i=e({__name:"index",props:{text:{default:""},placement:{default:"top"},popperClass:{default:""}},setup(e){const{proxy:i}=f(),m=t(!1),x=e=>{const t=e.target.offsetWidth,s=i.$refs.tlp.$el.parentNode.clientWidth;m.value=s<t},b=!!s().content;return(e,t)=>{const s=u;return a(),p(s,{ref:"tlp",content:e.text,disabled:!d(m),placement:e.placement,"popper-class":e.popperClass},{default:n(()=>[b?o(e.$slots,"contentSlot",{key:0,onMouseenter:t[0]||(t[0]=e=>x(e))}):(a(),l("span",c({key:1},e.$attrs,{onMouseenter:t[1]||(t[1]=e=>x(e))}),r(e.text),17))]),_:3},8,["content","disabled","placement","popper-class"])}}});export{i as _};
