2020
10-07
10-07
Vue初始化中的选项合并之initInternalComponent详解
今天给大家分享Vue初始化中的选项合并之initInternalComponent的相关知识,具体代码如下所示:exportfunctioninitInternalComponent(vm:Component,options:InternalComponentOptions){constopts=vm.$options=Object.create(vm.constructor.options)//doingthisbecauseit'sfasterthandynamicenumeration.constparentVnode=options._parentVnodeopts.parent=options.parentopts._parentVnode=parent...
继续阅读 >