props.js 1.0 KB

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