diff --git a/README.md b/README.md index 2d87acb..7221205 100644 --- a/README.md +++ b/README.md @@ -47,18 +47,18 @@ import { VueContext } from 'vue-context'; new Vue({ components: { - VueContext + VueContext }, methods: { - /** - * Alert the text of the menu item that was clicked on. - * - * @param {string} text - */ - onClick (text) { + /** + * Alert the text of the menu item that was clicked on. + * + * @param {string} text + */ + onClick (text) { alert(`You clicked ${text}!`); - } + } } }).$mount('#app'); ``` @@ -124,22 +124,22 @@ import { VueContext } from 'vue-context'; new Vue({ components: { - VueContext + VueContext }, methods: { - /** - * Alert the text of the menu item that was clicked on. - * Console log the data sent from the menu. - * - * @param {string} text - * @param {object} data - */ - onClick (text, data) { + /** + * Alert the text of the menu item that was clicked on. + * Console log the data sent from the menu. + * + * @param {string} text + * @param {object} data + */ + onClick (text, data) { alert(`You clicked ${text}!`); console.log(data); // => { foo: 'bar' } - } + } } }).$mount('#app'); ``` diff --git a/test/index.html b/test/index.html index 64d2f50..0dd8e5b 100644 --- a/test/index.html +++ b/test/index.html @@ -1,23 +1,23 @@ - - - Vue Context Test Page - - -
-

- Right click on me -

+ + + Vue Context Test Page + + +
+

+ Right click on me +

- -
    -
  • Option 1 {{ child.data && child.data.foo }}
  • -
  • Option 2
  • -
-
-
+ + + +
- - + + \ No newline at end of file diff --git a/test/js/src/index.js b/test/js/src/index.js index f8e13fc..27008b7 100644 --- a/test/js/src/index.js +++ b/test/js/src/index.js @@ -2,17 +2,17 @@ import Vue from 'vue'; import { VueContext } from '../../../dist/vue-context'; new Vue({ - components: { - VueContext - }, + components: { + VueContext + }, - data: { - close: true - }, + data: { + close: true + }, - methods: { - onClick (data) { - console.log(data); - }, - }, + methods: { + onClick (data) { + console.log(data); + }, + }, }).$mount('#app'); \ No newline at end of file