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:
+1
-1
@@ -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"
|
||||
|
||||
Vendored
+6
-6
File diff suppressed because one or more lines are too long
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user