您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

39 行
1.2 KiB

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