import{o as t,c as e,w as r,t as i,G as o,R as l,a2 as d,A as a,i as s}from"./index-DL8B2Mxu.js";import{_ as n}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=n({name:"u-divider",props:{halfWidth:{type:[Number,String],default:150},borderColor:{type:String,default:"#dcdfe6"},type:{type:String,default:"primary"},color:{type:String,default:"#909399"},fontSize:{type:[Number,String],default:26},bgColor:{type:String,default:"#ffffff"},height:{type:[Number,String],default:"auto"},marginTop:{type:[String,Number],default:0},marginBottom:{type:[String,Number],default:0},paddingBottom:{type:[String,Number],default:0},useSlot:{type:Boolean,default:!0}},computed:{lineStyle(){let t={};return-1!=String(this.halfWidth).indexOf("%")?t.width=this.halfWidth:t.width=this.halfWidth+"rpx",this.borderColor&&(t.borderColor=this.borderColor),t}},methods:{click(){this.$emit("click")}}},[["render",function(n,u,p,f,y,g){const c=s;return t(),e(c,{class:"u-divider",style:l({height:"auto"==p.height?"auto":p.height+"rpx",backgroundColor:p.bgColor,marginBottom:p.marginBottom+"rpx",marginTop:p.marginTop+"rpx",paddingBottom:p.paddingBottom+"rpx"}),onClick:g.click},{default:r((()=>[i(c,{class:o(["u-divider-line",[p.type?"u-divider-line--bordercolor--"+p.type:""]]),style:l([g.lineStyle])},null,8,["class","style"]),p.useSlot?(t(),e(c,{key:0,class:"u-divider-text",style:l({color:p.color,fontSize:p.fontSize+"rpx"})},{default:r((()=>[d(n.$slots,"default",{},void 0,!0)])),_:3},8,["style"])):a("",!0),i(c,{class:o(["u-divider-line",[p.type?"u-divider-line--bordercolor--"+p.type:""]]),style:l([g.lineStyle])},null,8,["class","style"])])),_:3},8,["style","onClick"])}],["__scopeId","data-v-e20112e1"]]);export{u as _};
