
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.hurui.me
 */
  
import{pn as e}from"./src-CLMBPGj1.js";import{B as t,Ct as n,Tt as r}from"./reactivity.esm-bundler-D9OPVc9J.js";import{_ as i,b as a,mt as o,o as s,xt as c,y as l}from"./runtime-core.esm-bundler-D-xeQwTN.js";import{t as u}from"./rolldown-runtime-Dy4uBu1J-DK3Fl9T5.js";import{t as d}from"./useNestedProp-BYfiWVP8-DbrxFlsg.js";var f=e({n:()=>m,t:()=>p}),p=u({default:()=>m}),m={__name:`Title`,props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(e){let u=d({userConfig:e.config,defaultConfig:{title:{cy:``,text:``,color:``,fontSize:20,bold:!0,textAlign:`center`,paddingLeft:0,paddingRight:0},subtitle:{cy:``,text:``,color:``,fontSize:14,bold:!1}}});return(d,f)=>(o(),a(s,null,[i(`div`,{class:`atom-title`,style:n({width:`calc(100% - ${t(u).title.paddingLeft+t(u).title.paddingRight}px)`,textAlign:t(u).title.textAlign,color:t(u).title.color,fontSize:`var(--title-font-size, ${t(u).title.fontSize}px)`,fontWeight:t(u).title.bold?`bold`:``,paddingLeft:t(u).title.paddingLeft+`px`,paddingRight:t(u).title.paddingRight+`px`,lineHeight:e.lineHeight?e.lineHeight:void 0})},r(t(u).title.text),5),t(u).subtitle.text?(o(),a(`div`,{key:0,class:`atom-subtitle`,style:n({width:`calc(100% - ${t(u).title.paddingLeft+t(u).title.paddingRight}px)`,textAlign:t(u).title.textAlign,color:t(u).subtitle.color,fontSize:`var(--subtitle-font-size, ${t(u).subtitle.fontSize}px)`,fontWeight:t(u).subtitle.bold?`bold`:``,paddingLeft:t(u).title.paddingLeft+`px`,paddingRight:t(u).title.paddingRight+`px`,lineHeight:e.lineHeight?e.lineHeight:void 0})},r(t(u).subtitle.text),5)):l(``,!0),t(u).subtitle.text?(o(),a(`div`,{key:1,style:n({width:`calc(100% - ${t(u).title.paddingLeft+t(u).title.paddingRight}px)`,textAlign:t(u).title.textAlign,color:t(u).subtitle.color,fontSize:`var(--subtitle-font-size, ${t(u).subtitle.fontSize}px)`,fontWeight:t(u).subtitle.bold?`bold`:``,paddingLeft:t(u).title.paddingLeft+`px`,paddingRight:t(u).title.paddingRight+`px`,lineHeight:e.lineHeight?e.lineHeight:void 0})},[c(d.$slots,`default`)],4)):l(``,!0)],64))}};export{m as n,f as t};