props,methods,inject,computed
strats
对象上添加props,methods,inject,computed
四个相同的方法
分析:
如果
parentVal
不存在,直接返回childVal
如果
parentVal
存在,合并childVal
和parentVal
到ret
对象并返回
Last updated
Was this helpful?
strats
对象上添加props,methods,inject,computed
四个相同的方法
分析:
如果parentVal
不存在,直接返回childVal
如果parentVal
存在,合并childVal
和parentVal
到ret
对象并返回
Last updated
Was this helpful?