Browse Source

样式微调

haojianlong 4 năm trước cách đây
mục cha
commit
ffe4069809
2 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 7 1
      src/components/homeView/topoImageCard.vue
  2. 1 1
      src/router/index.ts

+ 7 - 1
src/components/homeView/topoImageCard.vue

@@ -1,6 +1,6 @@
 <!--拓扑图缩略图卡片-->
 <template>
-  <el-card class="box-card">
+  <el-card class="box-card" shadow="hover">
     <div slot="header" class="clearfix">
       <span>卡片名称</span>
       <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
@@ -17,9 +17,15 @@ export default {
 </script>
 <style lang="less" scoped>
 .box-card {
+  position: relative;
   width: 260px;
   height: 200px;
+  border-radius: 8px;
   margin-right: 20px;
   margin-bottom: 20px;
+  cursor: pointer;
+  &:hover {
+    border-color: #0091FF80;
+  }
 }
 </style>

+ 1 - 1
src/router/index.ts

@@ -12,7 +12,7 @@ const routes: Array<RouteConfig> = [
   {
     path: '/home',
     name: 'home',
-    component: () => import('../views/home.vue')
+    component: () => import('../views/Home.vue')
   }
 ]