index.ts 446 B

123456789101112131415161718192021222324
  1. Component({
  2. options: {
  3. multipleSlots: true, // 在组件定义时的选项中启用多slot支持
  4. },
  5. properties: {
  6. tabs: {
  7. type: Array,
  8. value: [],
  9. },
  10. fixed: {
  11. type: Boolean,
  12. value: false,
  13. },
  14. },
  15. data: {
  16. active:0,
  17. },
  18. methods: {
  19. // 切换标签
  20. changeTab(e: any) {
  21. console.log(e)
  22. }
  23. }
  24. })