Component({ options: { multipleSlots: true, // 在组件定义时的选项中启用多slot支持 }, properties: { tabs: { type: Array, value: [{ icon: 'home-o', text: '首页', url: '/pages/home/index' }, { icon: 'todo-list-o', text: '挂牌大厅', url: '/pages/trade/index' }, { icon: 'gem-o', text: '钻石圈', url: '/pages/circle/index' }, { icon: 'contact', text: '我的', url: '/pages/mine/index' }], }, fixed: { type: Boolean, value: false, }, }, data: { active:0, }, methods: { // 切换标签 changeTab(e: any) { console.log(e) } } })