UNPKG

@gitlab/ui

Version:
15 lines (11 loc) 251 B
import { extend } from '../vue'; // --- Mixin --- // @vue/component const useParentMixin = extend({ computed: { bvParent() { return this.$parent || this.$root === this && this.$options.bvParent; } } }); export { useParentMixin };