2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-05-17 04:39:37 +03:00

Update test files

This commit is contained in:
Randall Wilk
2019-06-03 18:31:17 -05:00
parent a4586a17f7
commit d7768a7c44
3 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
</li>
</ul>
<vue-context ref="menu">
<vue-context ref="menu" @close="onClose">
<template slot-scope="child">
<li tabindex="0">
<a href="#" class="v-context-item"
+6 -6
View File
File diff suppressed because one or more lines are too long
+7 -1
View File
@@ -9,6 +9,7 @@ new Vue({
data: {
close: true,
closeCount: 0,
items: [
'Cras justo odio',
'Dapibus ac facilisis in',
@@ -20,7 +21,12 @@ new Vue({
methods: {
onClick (text) {
alert(text);
// alert(text);
},
onClose() {
console.log('close fired');
console.log(++this.closeCount);
},
},
}).$mount('#app');