props.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { defineProps } from '../../libs/util/props';
  2. import theme from '../../libs/config/theme.js'
  3. export default defineProps('divider', {
  4. // 是否虚线
  5. dashed: {
  6. type: Boolean,
  7. default: false
  8. },
  9. // 是否细线
  10. hairline: {
  11. type: Boolean,
  12. default: true
  13. },
  14. // 是否以点替代文字,优先于text字段起作用
  15. dot: {
  16. type: Boolean,
  17. default: false
  18. },
  19. // 内容文本的位置,left-左边,center-中间,right-右边
  20. position: {
  21. type: String,
  22. default: 'center'
  23. },
  24. // 文本内容
  25. text: {
  26. type: [String, Number],
  27. default: ''
  28. },
  29. // 文本大小
  30. size: {
  31. type: [String, Number],
  32. default: 14
  33. },
  34. // 文本颜色
  35. color: {
  36. type: String,
  37. default: theme.tipsColor
  38. },
  39. // 是否加粗
  40. bold: {
  41. type: Boolean,
  42. default: false
  43. },
  44. // 线条颜色
  45. lineColor: {
  46. type: String,
  47. default: theme.borderColor
  48. }
  49. })