File tree 3 files changed +29
-1
lines changed
docs/src/.vuepress/components
floating-vue/src/components
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 9
9
arrowPadding: 8,
10
10
autoHide: false,
11
11
}"
12
+ @show =" log('show')"
13
+ @apply-show =" log('apply-show')"
14
+ @hide =" log('hide')"
15
+ @apply-hide =" log('apply-hide')"
16
+ @update:shown =" log('update:shown', $event)"
12
17
>
13
18
<button
14
19
class =" border border-gray-300 rounded px-4 py-3 text-xl"
@@ -59,5 +64,11 @@ export default {
59
64
return list
60
65
},
61
66
},
67
+
68
+ methods: {
69
+ log (... args ) {
70
+ console .log (... args)
71
+ },
72
+ },
62
73
}
63
74
</script >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" example flex justify-center" >
3
- <VDropdown >
3
+ <VDropdown
4
+ @show =" log('show')"
5
+ @apply-show =" log('apply-show')"
6
+ @hide =" log('hide')"
7
+ @apply-hide =" log('apply-hide')"
8
+ @update:shown =" log('update:shown', $event)"
9
+ >
4
10
<button class =" border border-gray-300 rounded px-4 py-2" >
5
11
Click me
6
12
</button >
13
19
</VDropdown >
14
20
</div >
15
21
</template >
22
+
23
+ <script >
24
+ export default {
25
+ methods: {
26
+ log (... args ) {
27
+ console .log (... args)
28
+ },
29
+ },
30
+ }
31
+ </script >
Original file line number Diff line number Diff line change @@ -383,6 +383,7 @@ export default () => ({
383
383
} ,
384
384
385
385
hide ( { event = null , skipDelay = false } = { } ) {
386
+ if ( this . $_hideInProgress ) return
386
387
this . $_scheduleHide ( event , skipDelay )
387
388
388
389
this . $emit ( 'hide' )
You can’t perform that action at this time.
0 commit comments