props.js 1.3 KB

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