u-line.BZikr4Fp.js 937 Bytes
import{o as t,c as e,M as r,i}from"./index-Bq-zIvxa.js";import{_ as o}from"./_plugin-vue_export-helper.BCo6x5W8.js";const n=o({name:"u-line",props:{color:{type:String,default:"#e4e7ed"},length:{type:String,default:"100%"},direction:{type:String,default:"row"},hairLine:{type:Boolean,default:!0},margin:{type:String,default:"0"},borderStyle:{type:String,default:"solid"}},computed:{lineStyle(){let t={};return t.margin=this.margin,"row"==this.direction?(t.borderBottomWidth="1px",t.borderBottomStyle=this.borderStyle,t.width=this.$u.addUnit(this.length),this.hairLine&&(t.transform="scaleY(0.5)")):(t.borderLeftWidth="1px",t.borderLeftStyle=this.borderStyle,t.height=this.$u.addUnit(this.length),this.hairLine&&(t.transform="scaleX(0.5)")),t.borderColor=this.color,t}}},[["render",function(o,n,l,s,d,a){const h=i;return t(),e(h,{class:"u-line",style:r([a.lineStyle])},null,8,["style"])}],["__scopeId","data-v-85e19575"]]);export{n as _};