niucloud-admin/niucloud/public/wap/assets/u-line.22b8f298.js
全栈小学生 af883ac9e1 update
2024-08-06 17:54:17 +08:00

2 lines
1.1 KiB
JavaScript

import{m as e,p as t,q as i,t as r,x as n,y as s,o as l,c as o,n as a,i as d}from"./index-3788e709.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const m=h({name:"u-line",mixins:[t,i,{props:{color:{type:String,default:()=>e.line.color},length:{type:[String,Number],default:()=>e.line.length},direction:{type:String,default:()=>e.line.direction},hairline:{type:Boolean,default:()=>e.line.hairline},margin:{type:[String,Number],default:()=>e.line.margin},dashed:{type:Boolean,default:()=>e.line.dashed}}}],computed:{lineStyle(){const e={};return e.margin=this.margin,"row"===this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.dashed?"dashed":"solid",e.width=r(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=r(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,n(e,s(this.customStyle))}}},[["render",function(e,t,i,r,n,s){const h=d;return l(),o(h,{class:"u-line",style:a([s.lineStyle])},null,8,["style"])}],["__scopeId","data-v-9482bdca"]]);export{m as _};