From 8ad6d3fc7ba437add4d677e4834e016b48c4118d Mon Sep 17 00:00:00 2001 From: monastyr Date: Fri, 9 Nov 2018 23:30:49 +0100 Subject: [PATCH] idealny efekt rozwijania do menu --- frontend/app/src/App.vue | 1 + frontend/app/src/components/HelloWorld.vue | 3 +- .../app/src/components/TransitionElement.vue | 60 +++++++++++++++++++ frontend/app/src/main.js | 3 + 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 frontend/app/src/components/TransitionElement.vue diff --git a/frontend/app/src/App.vue b/frontend/app/src/App.vue index 34eaeba..42fe887 100644 --- a/frontend/app/src/App.vue +++ b/frontend/app/src/App.vue @@ -9,6 +9,7 @@ export default { name: 'App' } +// https://codepen.io/anon/pen/BGzVpK diff --git a/frontend/app/src/main.js b/frontend/app/src/main.js index dde9e10..c099f2c 100644 --- a/frontend/app/src/main.js +++ b/frontend/app/src/main.js @@ -5,9 +5,12 @@ import App from './App' import router from './router' import { store } from './store/store' //importowanie central store; import SidenavMenu from '@/components/SidenavMenu' +import TransitionElement from '@/components/TransitionElement' Vue.component('sidenav-menu', SidenavMenu) // globalnby import menu +Vue.component('transition-element', TransitionElement) // globalnby import menu + Vue.config.productionTip = false /* eslint-disable no-new */