From 50f7bb03bf7e5ceef4857c460e6d27714f2e5af6 Mon Sep 17 00:00:00 2001 From: Xiphin Date: Fri, 29 Jul 2022 16:51:33 +0800 Subject: [PATCH] Update reactive-object.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 出现一处拼写错误 --- v2/reactive/reactive-object.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/reactive/reactive-object.html b/v2/reactive/reactive-object.html index ad74527..29aa26a 100644 --- a/v2/reactive/reactive-object.html +++ b/v2/reactive/reactive-object.html @@ -59,7 +59,7 @@ initWatch(vm, opts.watch) } } -

initState 方法主要是对 propsmethodsdatacomputedwathcer 等属性做了初始化操作。这里我们重点分析 propsdata,对于其它属性的初始化我们之后再详细分析。

function initProps (vm: Component, propsOptions: Object) {
+

initState 方法主要是对 propsmethodsdatacomputedwatcher 等属性做了初始化操作。这里我们重点分析 propsdata,对于其它属性的初始化我们之后再详细分析。

function initProps (vm: Component, propsOptions: Object) {
   const propsData = vm.$options.propsData || {}
   const props = vm._props = {}
   // cache prop keys so that future props updates can iterate using Array