migrate to v-slot

This commit is contained in:
Henry Jameson 2021-04-07 22:42:34 +03:00
parent 95e74319e1
commit 8d46fd78c7
20 changed files with 238 additions and 279 deletions

View file

@ -54,7 +54,7 @@ const Popover = {
}
// Popover will be anchored around this element, trigger ref is the container, so
// its children are what are inside the slot. Expect only one slot="trigger".
// its children are what are inside the slot. Expect only one v-slot:trigger.
const anchorEl = (this.$refs.trigger && this.$refs.trigger.children[0]) || this.$el
// SVGs don't have offsetWidth/Height, use fallback
const anchorWidth = anchorEl.offsetWidth || anchorEl.clientWidth