naitve.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div id="naitve">
  3. <el-row v-loading="loading">
  4. <el-col :span="24" class="native">
  5. <el-tabs v-model="activeName" type="card">
  6. <el-tab-pane name="0">
  7. <span slot="label">网站导航</span>
  8. <el-col :span="6" v-for="(tag, index) in nativeList" :key="index" class="enterList">
  9. <el-col :span="24" class="title">
  10. <el-link :underline="false" :href="tag.url" target="_blank">{{ tag.title }} </el-link>
  11. </el-col>
  12. </el-col>
  13. </el-tab-pane>
  14. </el-tabs>
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'naitve',
  22. props: {
  23. nativeList: null,
  24. },
  25. components: {},
  26. data: () => ({
  27. loading: true,
  28. activeName: '0',
  29. }),
  30. watch: {
  31. nativeList: {
  32. handler(val) {
  33. if (val) this.loading = false;
  34. },
  35. },
  36. },
  37. created() {},
  38. computed: {},
  39. methods: {},
  40. };
  41. </script>
  42. <style lang="less" scoped>
  43. /deep/.el-tabs__nav-scroll {
  44. background-color: #e3eaf7;
  45. }
  46. /deep/.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  47. border-bottom-color: none;
  48. }
  49. /deep/.el-tabs__item.is-active {
  50. color: #fff;
  51. background: #0d5cb8;
  52. }
  53. /deep/.el-tabs__item {
  54. color: #0d5cb8;
  55. }
  56. .enterList {
  57. padding: 14px 0;
  58. border-bottom: 1px dashed #ccc;
  59. }
  60. .title {
  61. font-size: 14px;
  62. color: #5b5b5b;
  63. text-align: center;
  64. }
  65. </style>