浏览代码

[FIX] customers grid style

Gogs 7 年之前
父节点
当前提交
66a117a010
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/components/CustomersGrid.vue

+ 5 - 2
src/components/CustomersGrid.vue

@@ -1,7 +1,6 @@
 <template lang="pug">
     .customers-grid
-        template(v-for="customer in customers")
-            customer-card(:data="customer")
+        customer-card(v-for="customer in customers" :key="customer" :data="customer")
 </template>
 
 <script>
@@ -19,4 +18,8 @@
 </script>
 
 <style lang="sass">
+    .customers-grid
+        width: 100%
+        heigth: calc(100% - 30px)
+        margin: 0 15px
 </style>