组件:topTabbar
<template>
<div>
<div class="tab-bar">
<div class="tab-bar-item" v-for="(item, index) in showInfo" :key="index">
<span
class="item-text"
@click="onclick(item, index)"
:class="{ isActive: activeIndex == index }"
>
{
{
item.name }}
</span>
</div>
</div>
</div>
</template>
<script>
export default {
name: "topTabbar",
props: {
showInfo: {
type: Array,
}