mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-24 19:30:33 +03:00
Update test files
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<vue-context ref="menu">
|
<vue-context ref="menu" @close="onClose">
|
||||||
<template slot-scope="child">
|
<template slot-scope="child">
|
||||||
<li tabindex="0">
|
<li tabindex="0">
|
||||||
<a href="#" class="v-context-item"
|
<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: {
|
data: {
|
||||||
close: true,
|
close: true,
|
||||||
|
closeCount: 0,
|
||||||
items: [
|
items: [
|
||||||
'Cras justo odio',
|
'Cras justo odio',
|
||||||
'Dapibus ac facilisis in',
|
'Dapibus ac facilisis in',
|
||||||
@@ -20,7 +21,12 @@ new Vue({
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onClick (text) {
|
onClick (text) {
|
||||||
alert(text);
|
// alert(text);
|
||||||
|
},
|
||||||
|
|
||||||
|
onClose() {
|
||||||
|
console.log('close fired');
|
||||||
|
console.log(++this.closeCount);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}).$mount('#app');
|
}).$mount('#app');
|
||||||
|
|||||||
Reference in New Issue
Block a user