学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1017 B

1 year ago
  1. export default {
  2. props: {
  3. color: {
  4. type: String,
  5. default: uni.$u.props.line.color
  6. },
  7. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  8. length: {
  9. type: [String, Number],
  10. default: uni.$u.props.line.length
  11. },
  12. // 线条方向,col-竖向,row-横向
  13. direction: {
  14. type: String,
  15. default: uni.$u.props.line.direction
  16. },
  17. // 是否显示细边框
  18. hairline: {
  19. type: Boolean,
  20. default: uni.$u.props.line.hairline
  21. },
  22. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  23. margin: {
  24. type: [String, Number],
  25. default: uni.$u.props.line.margin
  26. },
  27. // 是否虚线,true-虚线,false-实线
  28. dashed: {
  29. type: Boolean,
  30. default: uni.$u.props.line.dashed
  31. }
  32. }
  33. }