From d06b4ca8738846efa80f6dd60d85144c389a9278 Mon Sep 17 00:00:00 2001 From: petr Date: Mon, 10 May 2021 19:25:53 +0200 Subject: [PATCH] vue --- README.md | 8 ++++ src/App.vue | 23 ++++------- src/components/seat.vue | 90 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 16 deletions(-) create mode 100644 src/components/seat.vue diff --git a/README.md b/README.md index 28c791c..ed531b8 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,11 @@ npm run lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + +# instalace vue + projekt +1 vytvoření složky +2 npm install @vue/cli +3 node_modules\.bin\vue create název_projektu +4 Zvolíme [Vue 2] +5 cd název_projektu\ +6 npm run serve \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index ff4d017..8540540 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,22 +68,9 @@

+ + -
-
-
- {{ seat }} -
-
- {{ seat }} -
-
- {{ seat }} -
- - -
-

@@ -128,10 +115,11 @@
{{ seat }} - +
+ @@ -156,9 +144,12 @@ import Vue from 'vue'; import VCalendar from 'v-calendar'; +import seat from './components/seat'; + Vue.use(VCalendar, {}); export default { + components: { seat }, name: 'App', data: function() { return { diff --git a/src/components/seat.vue b/src/components/seat.vue new file mode 100644 index 0000000..b930a45 --- /dev/null +++ b/src/components/seat.vue @@ -0,0 +1,90 @@ + + + + + \ No newline at end of file