From 3f752280f267f70b7610506fae101fb2271e2bf6 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Tue, 7 Aug 2018 13:42:29 -0400 Subject: [PATCH] trying to add a textinput component --- js/components/text_input.js | 3 +++ js/index.js | 9 ++++++++- templates/styleguide.html | 20 +++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 js/components/text_input.js diff --git a/js/components/text_input.js b/js/components/text_input.js new file mode 100644 index 00000000..8baf14b8 --- /dev/null +++ b/js/components/text_input.js @@ -0,0 +1,3 @@ +export default { + name: 'textinput' +} diff --git a/js/index.js b/js/index.js index 72dbda3d..b1d81898 100644 --- a/js/index.js +++ b/js/index.js @@ -1,6 +1,12 @@ import classes from '../styles/atat.scss' import Vue from 'vue/dist/vue' +import TextInput from './components/text_input' + +const components = { + TextInput +} + const app = new Vue({ el: '#app-root', methods: { @@ -17,5 +23,6 @@ const app = new Vue({ styleguideModal: false, } } - } + }, + components: components }) diff --git a/templates/styleguide.html b/templates/styleguide.html index b57e45ac..dd313184 100644 --- a/templates/styleguide.html +++ b/templates/styleguide.html @@ -130,15 +130,17 @@
-
- - -
+ +
+ + +
+