Component({ options: { multipleSlots: true, // 在组件定义时的选项中启用多slot支持 }, properties: { tabs: { type: Array, value: [], }, fixed: { type: Boolean, value: false, }, }, data: { active:0, }, methods: { // 切换标签 changeTab(e: any) { console.log(e) } } })