We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1d3b547 commit 8b2bc2bCopy full SHA for 8b2bc2b
docs/pages/components/tooltip/api/tooltip.js
@@ -102,6 +102,18 @@ export default [
102
values: '—',
103
default: '<code>false</code>'
104
}
105
+ ],
106
+ events: [
107
+ {
108
+ name: '<code>open</code>',
109
+ description: 'Triggers when the tooltip is opened',
110
+ parameters: '—'
111
+ },
112
113
+ name: '<code>close</code>',
114
+ description: 'Triggers when the tooltip is closed',
115
116
117
]
118
119
src/components/tooltip/Tooltip.vue
@@ -107,7 +107,8 @@ export default {
},
watch: {
- isActive(value) {
+ isActive() {
+ this.$emit(this.isActive ? 'open' : 'close')
if (this.appendToBody) {
this.updateAppendToBody()
0 commit comments