From 8eb6e0ec93252d78de5eb81a1576ee8465e9e9fb Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Fri, 18 Sep 2020 17:20:10 +0200 Subject: [PATCH] update examples --- src/App.vue | 7 ++++--- src/components/Test1.vue | 15 +-------------- src/components/Test2.vue | 13 +------------ src/components/Test3.vue | 13 +------------ src/components/Test4.vue | 18 ++++++++++++++++++ src/main.js | 2 ++ 6 files changed, 27 insertions(+), 41 deletions(-) create mode 100644 src/components/Test4.vue diff --git a/src/App.vue b/src/App.vue index fefee56..49f2895 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,17 +11,18 @@ import Test1 from './components/Test1.vue'; import Test2 from './components/Test2.vue'; import Test3 from './components/Test3.vue'; +import Test4 from './components/Test4.vue'; import TestGLTF from './components/TestGLTF.vue'; export default { name: 'App', components: { - Test1, Test2, Test3, TestGLTF, + Test1, Test2, Test3, Test4, TestGLTF, }, data() { return { - tests: ['Test1', 'Test2', 'Test3', 'TestGLTF'], - test: 'Test2', + tests: ['Test1', 'Test2', 'Test3', 'Test4', 'TestGLTF'], + test: 'Test1', }; }, }; diff --git a/src/components/Test1.vue b/src/components/Test1.vue index 0baf2d1..420c166 100644 --- a/src/components/Test1.vue +++ b/src/components/Test1.vue @@ -3,27 +3,14 @@ - + diff --git a/src/main.js b/src/main.js index b48a52e..bf6e537 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,8 @@ import { createApp } from 'vue'; import App from './App.vue'; +import TroisJSPlugin from './plugin.js'; import './index.css'; const app = createApp(App); +app.use(TroisJSPlugin); app.mount('#app');