洪海涛 пре 8 година
родитељ
комит
d570f83150
1 измењених фајлова са 20 додато и 1 уклоњено
  1. 20 1
      www/vue/src/components/navTitle.vue

+ 20 - 1
www/vue/src/components/navTitle.vue

@@ -7,7 +7,8 @@ export default {
   name: 'navTitle',
   name: 'navTitle',
   data () {
   data () {
     return {
     return {
-      navTitle: '首页'
+      navTitle: '首页',
+      iconLocal: 'http://oduj3utzz.bkt.clouddn.com/icon_local.png'
     }
     }
   }
   }
 }
 }
@@ -19,5 +20,23 @@ export default {
   text-align: center;
   text-align: center;
   padding: 0.2rem 0;
   padding: 0.2rem 0;
   background-color: #FFF;
   background-color: #FFF;
+  position: relative;
+}
+.navTitle::after{
+  content: '';
+  width: 25px;
+  height: 25px;
+  position: absolute;
+  top:5px;
+  left: 5px;
+  background: url('http://oduj3utzz.bkt.clouddn.com/icon_local.png');
+  background-size: 25px;
+  background-repeat: no-repeat;
+  /*border: 1px solid;*/
+}
+.navTitle img{
+  display: block;
+  width: 25px;
+  margin-left: 15px;
 }
 }
 </style>
 </style>