index.ts 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Component({
  2. options: {
  3. multipleSlots: true, // 在组件定义时的选项中启用多slot支持
  4. },
  5. properties: {
  6. tabs: {
  7. type: Array,
  8. value: [{
  9. icon: 'home-o',
  10. text: '首页',
  11. url: '/pages/home/index'
  12. },
  13. {
  14. icon: 'todo-list-o',
  15. text: '挂牌大厅',
  16. url: '/pages/trade/index'
  17. },
  18. {
  19. icon: 'gem-o',
  20. text: '钻石圈',
  21. url: '/pages/circle/index'
  22. },
  23. {
  24. icon: 'contact',
  25. text: '我的',
  26. url: '/pages/mine/index'
  27. }],
  28. },
  29. fixed: {
  30. type: Boolean,
  31. value: false,
  32. },
  33. },
  34. data: {
  35. active:0,
  36. },
  37. methods: {
  38. // 切换标签
  39. changeTab(e: any) {
  40. console.log(e)
  41. }
  42. }
  43. })