Gogs 7 лет назад
Родитель
Сommit
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>