props.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. export default {
  2. value: {
  3. type: Number,
  4. default: 0
  5. },
  6. modelValue: {
  7. type: Number,
  8. default: 0
  9. },
  10. tabs: {
  11. type: Array,
  12. default() {
  13. return []
  14. }
  15. },
  16. bgColor: {
  17. type: String,
  18. default: '#fff'
  19. },
  20. padding: {
  21. type: String,
  22. default: '0'
  23. },
  24. color: {
  25. type: String,
  26. default: '#333'
  27. },
  28. activeColor: {
  29. type: String,
  30. default: '#2979ff'
  31. },
  32. fontSize: {
  33. type: String,
  34. default: '28rpx'
  35. },
  36. activeFontSize: {
  37. type: String,
  38. default: '32rpx'
  39. },
  40. bold: {
  41. type: Boolean,
  42. default: false
  43. },
  44. scroll: {
  45. type: Boolean,
  46. default: true
  47. },
  48. height: {
  49. type: String,
  50. default: '70rpx'
  51. },
  52. lineColor: {
  53. type: String,
  54. default: '#2979ff'
  55. },
  56. lineHeight: {
  57. type: [String, Number],
  58. default: '10rpx'
  59. },
  60. lineScale: {
  61. type: Number,
  62. default: 0.5
  63. },
  64. lineRadius: {
  65. type: String,
  66. default: '10rpx'
  67. },
  68. pills: {
  69. type: Boolean,
  70. default: false
  71. },
  72. pillsColor: {
  73. type: String,
  74. default: '#2979ff'
  75. },
  76. pillsBorderRadius: {
  77. type: String,
  78. default: '10rpx'
  79. },
  80. field: {
  81. type: String,
  82. default: ''
  83. },
  84. fixed: {
  85. type: Boolean,
  86. default: false
  87. },
  88. paddingItem: {
  89. type: String,
  90. default: '0 22rpx'
  91. },
  92. lineAnimation: {
  93. type: Boolean,
  94. default: true
  95. },
  96. zIndex: {
  97. type: Number,
  98. default: 1993
  99. }
  100. }