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.

49 lines
1.3 KiB

8 months ago
  1. export default {
  2. props: {
  3. // tab的数据
  4. list: {
  5. type: Array,
  6. default: uni.$u.props.subsection.list
  7. },
  8. // 当前活动的tab的index
  9. current: {
  10. type: [String, Number],
  11. default: uni.$u.props.subsection.current
  12. },
  13. // 激活的颜色
  14. activeColor: {
  15. type: String,
  16. default: uni.$u.props.subsection.activeColor
  17. },
  18. // 未激活的颜色
  19. inactiveColor: {
  20. type: String,
  21. default: uni.$u.props.subsection.inactiveColor
  22. },
  23. // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
  24. mode: {
  25. type: String,
  26. default: uni.$u.props.subsection.mode
  27. },
  28. // 字体大小
  29. fontSize: {
  30. type: [String, Number],
  31. default: uni.$u.props.subsection.fontSize
  32. },
  33. // 激活tab的字体是否加粗
  34. bold: {
  35. type: Boolean,
  36. default: uni.$u.props.subsection.bold
  37. },
  38. // mode = button时,组件背景颜色
  39. bgColor: {
  40. type: String,
  41. default: uni.$u.props.subsection.bgColor
  42. },
  43. // 从list元素对象中读取的键名
  44. keyName: {
  45. type: String,
  46. default: uni.$u.props.subsection.keyName
  47. }
  48. }
  49. }