test_lgq/niucloud/public/wap/assets/u-line.19eb5c40.js

2 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{U as e,V as t,W as i,h as n,i as r,n as l,t as s}from"./index-849cf30e.js";import{_ as a}from"./_plugin-vue_export-helper.1b428a4d.js";const d=a({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=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,i,a,d,o){const h=s;return n(),r(h,{class:"u-line",style:l([o.lineStyle])},null,8,["style"])}],["__scopeId","data-v-45e31c7a"]]);export{d as _};