综合办公系统
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

props.js 959B

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