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.

46 lines
1.3 KiB

4 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 是否虚线
  6. dashed: {
  7. type: Boolean,
  8. default: () => defProps.divider.dashed
  9. },
  10. // 是否细线
  11. hairline: {
  12. type: Boolean,
  13. default: () => defProps.divider.hairline
  14. },
  15. // 是否以点替代文字,优先于text字段起作用
  16. dot: {
  17. type: Boolean,
  18. default: () => defProps.divider.dot
  19. },
  20. // 内容文本的位置,left-左边,center-中间,right-右边
  21. textPosition: {
  22. type: String,
  23. default: () => defProps.divider.textPosition
  24. },
  25. // 文本内容
  26. text: {
  27. type: [String, Number],
  28. default: () => defProps.divider.text
  29. },
  30. // 文本大小
  31. textSize: {
  32. type: [String, Number],
  33. default: () => defProps.divider.textSize
  34. },
  35. // 文本颜色
  36. textColor: {
  37. type: String,
  38. default: () => defProps.divider.textColor
  39. },
  40. // 线条颜色
  41. lineColor: {
  42. type: String,
  43. default: () => defProps.divider.lineColor
  44. }
  45. }
  46. })