今天给大家分享Vue初始化中的选项合并之initInternalComponent的相关知识,具体代码如下所示:
export function initInternalComponent (vm: Component, options: InternalComponentOptions) {
const opts = vm.$options = Object.create(vm.constructor.options)
// doing this because it's faster than dynamic enumeration.
const parentVnode = opt