Commit d3463135 authored by Shen Chang's avatar Shen Chang Committed by GitHub

Update README.zh-CN.md

parent cedfb145
...@@ -144,7 +144,7 @@ npm install react-router@next react-router-dom@next ...@@ -144,7 +144,7 @@ npm install react-router@next react-router-dom@next
我们必须确保 `<KeepAlive>``<Provider>` 里面,这样 `<KeepAlive>` 的子组件才能被缓存。 我们必须确保 `<KeepAlive>``<Provider>` 里面,这样 `<KeepAlive>` 的子组件才能被缓存。
#### Props #### Props
`key``key` 必须存在并且需要确保当前 `<Provider>` 下的所有 `<KeepAlive>``key` 都是唯一的 `name``name` 必须存在并且需要确保当前 `<Provider>` 下的所有 `<KeepAlive>``name` 都是唯一的(1.2.0 新增,替换 `key`
`disabled`:当我们不需要缓存组件时,我们可以禁用它;禁用仅在组件从未激活状态变为激活状态时生效。 `disabled`:当我们不需要缓存组件时,我们可以禁用它;禁用仅在组件从未激活状态变为激活状态时生效。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment