diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..1e4efe0
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,5 @@
+{
+ "include": [
+ "./src/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/src/App.vue b/src/App.vue
index b6f8afd..9a1016f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -12,10 +12,19 @@
-
- {{ obj.popisek }}
+
+ Celková cena: {{ cena }} Kč
+
+
+
+
+
+
+
+
{{ obj.popisek }}
+
{{ obj.cena }},-
+
-
@@ -25,7 +34,6 @@ export default {
name: 'App',
data: () => {
return {
- stav: false,
menu: [
{
obrazek: "/img/caj.jpg",
@@ -75,6 +83,15 @@ export default {
sirka: function() {
return this.menu.length * 240 + this.menu.length * 10 + this.menu.length * 2
},
+ cena: function() {
+ let celkem = 0
+ for (let index = 0; index < this.seznam.length; index++) {
+ const element = this.seznam[index];
+ celkem += element.cena
+ }
+
+ return celkem
+ },
},
}
@@ -107,4 +124,19 @@ export default {
width: 50%;
overflow-x: scroll;
}
+
+ .seznam-grid {
+ width: 30%;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: 2fr 3fr 1fr 1fr;
+ }
+
+ .seznam-grid div {
+ align-self: center;
+ }
+
+ .seznam-grid img {
+ width: 100%;
+ }