mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-02-17 22:23:49 +00:00
2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{a7 as e,a8 as t,a9 as i,ad as r,ax as a,ae as s,o as l,c as n,j as o,m as d}from"./index-9beb7d4b.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,a(e,s(this.customStyle))}}},[["render",function(e,t,i,r,a,s){const h=d;return l(),n(h,{class:"u-line",style:o([s.lineStyle])},null,8,["style"])}],["__scopeId","data-v-9482bdca"]]);export{m as _};
|