vue+mint-ui踩坑指南—— 顶部选项卡Navbar的自定义css样式使用方法

html 


 
 
  1. <div class="content">
  2. <mt-navbar class="page-part" v-model="selected">
  3. <mt-tab-item class="my" id="1">我发布的 </mt-tab-item>
  4. <mt-tab-item id="2">我相关的 </mt-tab-item>
  5. </mt-navbar>
  6. <mt-tab-container v-model="selected">
  7. <mt-tab-container-item id="1">
  8. <!-- <mt-cell :key="n" v-for="n in 10" :title="'内容 ' + n"/> -->
  9. <div class="myRelease">
  10. <div class="myReleaseOne">
  11. <div class="top">
  12. <span>5月总裁 </span>
  13. <span>已结束 </span>
  14. </div>
  15. <div class="middle">
  16. <span>发起人: </span>
  17. <span>程小 </span>
  18. <span>2019.05.16 11:30 - 14:30 </span>
  19. <br>
  20. <span>第三会议室 </span>
  21. </div>
  22. <div class="bottom">
  23. <span @click="this.releaseDetails">会议详情 </span>
  24. <span @click="this.releaseAttachment">会议附件 </span>
  25. <span @click="this.fellowIssues">跟进事项 </span>
  26. </div>
  27. </div>
  28. <div class="btn">
  29. <mt-button type="default" size="large">返回新建 </mt-button>
  30. <mt-button type="default" size="large">确认提交 </mt-button>
  31. </div>
  32. </div>
  33. </mt-tab-container-item>
  34. <mt-tab-container-item id="2">
  35. <!-- <mt-cell :key="n" v-for="n in 4" :title="'测试 ' + n"/> -->
  36. <div class="myRelease">
  37. <div class="myReleaseOne">
  38. <div class="top">
  39. <span>5月总裁2 </span>
  40. <span>已结束 </span>
  41. </div>
  42. <div class="middle">
  43. <span>发起人: </span>
  44. <span>程小 </span>
  45. <span>2019.05.16 11:30 - 14:30 </span>
  46. <br>
  47. <span>第三会议室 </span>
  48. </div>
  49. <div class="bottom">
  50. <span @click="this.correlationDetails">会议详情 </span>
  51. <span>会议附件 </span>
  52. <span>跟进事项 </span>
  53. </div>
  54. </div>
  55. <div class="btn">
  56. <mt-button type="default" size="large">返回新建 </mt-button>
  57. <mt-button type="default" size="large">确认提交 </mt-button>
  58. </div>
  59. </div>
  60. </mt-tab-container-item>
  61. </mt-tab-container>
  62. </div>

 css


 
 
  1. .content {
  2. background: #efefef;
  3. padding: 0 30px 0 30px;
  4. .mint-navbar {
  5. background: #efefef;
  6. // 切换 顶部 tab
  7. .is-selected {
  8. border-bottom: none;
  9. color: #ffffff;
  10. margin-bottom: -0.04rem;
  11. .mint-tab-item-label {
  12. background: #3c86f1;
  13. color: #ffffff;
  14. }
  15. }
  16. .mint-tab-item {
  17. &:nth-child(1) {
  18. color: #3c86f1;
  19. .mint-tab-item-label {
  20. float: right;
  21. width: 344px;
  22. height: 70px;
  23. line-height: 70px;
  24. border-radius: 15px 0 0 15px;
  25. border-top: 2px solid rgba(60, 134, 241, 1);
  26. border-bottom: 2px solid rgba(60, 134, 241, 1);
  27. border-left: 2px solid rgba(60, 134, 241, 1);
  28. }
  29. }
  30. &:nth-child(2) {
  31. color: #3c86f1;
  32. .mint-tab-item-label {
  33. float: left;
  34. width: 344px;
  35. height: 70px;
  36. line-height: 70px;
  37. border-top: 2px solid rgba(60, 134, 241, 1);
  38. border-bottom: 2px solid rgba(60, 134, 241, 1);
  39. border-right: 2px solid rgba(60, 134, 241, 1);
  40. border-radius: 0 15px 15px 0;
  41. }
  42. }
  43. }
  44. }
  45. }

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值