"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@ant-design/icons-vue"),l=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const r=require("../../../config-provider/hooks/use-namespace.js"),p={style:{display:"inline-flex"}},u=e.defineComponent({__name:"index",props:{helpMessage:{},label:{}},setup(o){const c=o,{m:n}=r.useNamespace("ap-descriptions"),s=e.computed(()=>{const t=c.label;return typeof t!="object"?e.createVNode("div",{class:n("item-label"),style:{maxWidth:"var(--ap-descriptions-item-label-width, auto)"}},[e.createVNode(l.TypographyText,{ellipsis:{tooltip:t},content:t},null)]):t});return(t,a)=>(e.openBlock(),e.createElementBlock("span",p,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value))),o.helpMessage?(e.openBlock(),e.createBlock(e.unref(l.Tooltip),{key:0,placement:"topLeft",title:o.helpMessage},{default:e.withCtx(()=>[e.createVNode(e.unref(i.QuestionCircleOutlined),{class:"ap-descriptions-item-content__help"})]),_:1},8,["title"])):e.createCommentVNode("",!0)]))}});exports.default=u;
