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.

44 lines
1.3 KiB

10 months ago
  1. export default {
  2. props: {
  3. // 当前匹配项的name
  4. value: {
  5. type: [String, Number, null],
  6. default: uni.$u.props.tabbar.value
  7. },
  8. // 是否为iPhoneX留出底部安全距离
  9. safeAreaInsetBottom: {
  10. type: Boolean,
  11. default: uni.$u.props.tabbar.safeAreaInsetBottom
  12. },
  13. // 是否显示上方边框
  14. border: {
  15. type: Boolean,
  16. default: uni.$u.props.tabbar.border
  17. },
  18. // 元素层级z-index
  19. zIndex: {
  20. type: [String, Number],
  21. default: uni.$u.props.tabbar.zIndex
  22. },
  23. // 选中标签的颜色
  24. activeColor: {
  25. type: String,
  26. default: uni.$u.props.tabbar.activeColor
  27. },
  28. // 未选中标签的颜色
  29. inactiveColor: {
  30. type: String,
  31. default: uni.$u.props.tabbar.inactiveColor
  32. },
  33. // 是否固定在底部
  34. fixed: {
  35. type: Boolean,
  36. default: uni.$u.props.tabbar.fixed
  37. },
  38. // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
  39. placeholder: {
  40. type: Boolean,
  41. default: uni.$u.props.tabbar.placeholder
  42. }
  43. }
  44. }