<template>
  <div id="naitve">
    <el-row>
      <el-col :span="24" class="native">
        <el-tabs v-model="activeName" type="card">
          <el-tab-pane disabled name="disabled">
            <span slot="label">网站导航</span>
          </el-tab-pane>
          <el-tab-pane v-for="(item, index) in nativeList" :key="index" :name="`${index}`">
            <span slot="label">{{ item.title }}</span>
            <el-col :span="6" v-for="(tag, index) in item.children" :key="index" class="enterList">
              <el-col :span="24" class="title">
                <el-link :underline="false" :href="tag.url" target="_blank">{{ tag.title }} </el-link>
              </el-col>
            </el-col>
          </el-tab-pane>
        </el-tabs>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'naitve',
  props: {
    nativeList: null,
  },
  components: {},
  data: () => ({
    activeName: 0,
  }),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
/deep/.el-tabs__nav-scroll {
  background-color: #e3eaf7;
}
/deep/.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  border-bottom-color: none;
}
/deep/.el-tabs__item.is-active {
  color: #fff;
  background: #0d5cb8;
}
/deep/.el-tabs__item {
  color: #0d5cb8;
}
.enterList {
  padding: 5px 20px;
}
.title {
  font-size: 14px;
  color: #5b5b5b;
  text-align: left;
}
</style>
