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.

37 lines
1.2 KiB

4 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // item标签的名称,作为与u-tabbar的value参数匹配的标识符
  6. name: {
  7. type: [String, Number, null],
  8. default: () => defProps.tabbarItem.name
  9. },
  10. // uView内置图标或者绝对路径的图片
  11. icon: {
  12. icon: String,
  13. default: () => defProps.tabbarItem.icon
  14. },
  15. // 右上角的角标提示信息
  16. badge: {
  17. type: [String, Number, null],
  18. default: () => defProps.tabbarItem.badge
  19. },
  20. // 是否显示圆点,将会覆盖badge参数
  21. dot: {
  22. type: Boolean,
  23. default: () => defProps.tabbarItem.dot
  24. },
  25. // 描述文本
  26. text: {
  27. type: String,
  28. default: () => defProps.tabbarItem.text
  29. },
  30. // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
  31. badgeStyle: {
  32. type: [Object, String],
  33. default: () => defProps.tabbarItem.badgeStyle
  34. }
  35. }
  36. })