import{_ as t,o as e,p as i,w as s,f as l,a4 as n,aq as a,B as o,k as d,t as c,v as r,i as u,C as p}from"./index-2PZN6pGH.js";const _=t({name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return"string"==typeof this.padding?this.padding:this.padding?"10px":""}},watch:{title(t){uni.report&&""!==t&&uni.report("title",t)}},methods:{onClick(){this.$emit("click")}}},[["render",function(t,_,f,y,g,h){const S=u,k=p;return e(),i(S,{class:"uni-section"},{default:s((()=>[l(S,{class:"uni-section-header",onClick:h.onClick},{default:s((()=>[f.type?(e(),i(S,{key:0,class:n(["uni-section-header__decoration",f.type])},null,8,["class"])):a(t.$slots,"decoration",{key:1},void 0,!0),l(S,{class:"uni-section-header__content"},{default:s((()=>[l(k,{style:o({"font-size":f.titleFontSize,color:f.titleColor}),class:n(["uni-section__content-title",{distraction:!f.subTitle}])},{default:s((()=>[d(c(f.title),1)])),_:1},8,["style","class"]),f.subTitle?(e(),i(k,{key:0,style:o({"font-size":f.subTitleFontSize,color:f.subTitleColor}),class:"uni-section-header__content-sub"},{default:s((()=>[d(c(f.subTitle),1)])),_:1},8,["style"])):r("",!0)])),_:1}),l(S,{class:"uni-section-header__slot-right"},{default:s((()=>[a(t.$slots,"right",{},void 0,!0)])),_:3})])),_:3},8,["onClick"]),l(S,{class:"uni-section-content",style:o({padding:h._padding})},{default:s((()=>[a(t.$slots,"default",{},void 0,!0)])),_:3},8,["style"])])),_:3})}],["__scopeId","data-v-0a8818d5"]]);export{_};
