use-parent.js 229 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 import { extend } from '../vue' // --- Mixin --- // @vue/component export const useParentMixin = extend({ computed: { bvParent() { return this.$parent || (this.$root === this && this.$options.bvParent) } } })