2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-19 10:20:32 +03:00

formatting

This commit is contained in:
Randall Wilk
2018-05-30 12:27:29 -05:00
parent e4b1cc6cc3
commit 7bc40333d3
3 changed files with 47 additions and 47 deletions
+18 -18
View File
@@ -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');
```