12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <div id="naitve">
- <el-row v-loading="loading">
- <el-col :span="24" class="native">
- <el-tabs v-model="activeName" type="card">
- <el-tab-pane name="0">
- <span slot="label">网站导航</span>
- <el-col :span="6" v-for="(tag, index) in nativeList" :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: () => ({
- loading: true,
- activeName: '0',
- }),
- watch: {
- nativeList: {
- handler(val) {
- if (val) this.loading = false;
- },
- },
- },
- 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: 14px 0;
- border-bottom: 1px dashed #ccc;
- }
- .title {
- font-size: 14px;
- color: #5b5b5b;
- text-align: center;
- }
- </style>
|