Blame view

node_modules/bootstrap-vue/src/mixins/use-parent.js 229 Bytes
4cd4fd28   郭伟龙   feat: 初始化项目
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)
    }
  }
})