File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11---
22type : api
3- updated : 2017-06-26 00:00:00
3+ updated : 2017-07-08 00:00:00
44---
55
66## グローバル設定
@@ -2111,8 +2111,8 @@ updated: 2017-06-26 00:00:00
21112111### keep-alive
21122112
21132113- ** プロパティ:**
2114- - ` include ` - 文字列または正規表現 。これと一致するコンポーネントだけがキャッシュされます。
2115- - ` exclude ` - 文字列または正規表現 。これと一致するコンポーネントはキャッシュされません。
2114+ - ` include ` - 文字列または正規表現または配列 。これと一致するコンポーネントだけがキャッシュされます。
2115+ - ` exclude ` - 文字列または正規表現または配列 。これと一致するコンポーネントはキャッシュされません。
21162116
21172117- ** 使用方法:**
21182118
@@ -2151,7 +2151,7 @@ updated: 2017-06-26 00:00:00
21512151
21522152 > New in 2.1.0
21532153
2154- ` include ` と ` exclude ` プロパティは、コンポーネントが条件付きでキャッシュされることを可能にします。両方のプロパティはコンマ区切りの文字列か正規表現のどちらかです :
2154+ ` include ` と ` exclude ` プロパティは、コンポーネントが条件付きでキャッシュされることを可能にします。両方のプロパティはコンマ区切りの文字列、正規表現または配列のいずれかです :
21552155
21562156 ``` html
21572157 <!-- コンマで区切れた文字列 -->
@@ -2163,6 +2163,11 @@ updated: 2017-06-26 00:00:00
21632163 <keep-alive :include =" /a|b/" >
21642164 <component :is =" view" ></component >
21652165 </keep-alive >
2166+
2167+ <!-- Array (v-bind を使用する) -->
2168+ <keep-alive :include =" ['a', 'b']" >
2169+ <component :is =" view" ></component >
2170+ </keep-alive >
21662171 ```
21672172
21682173 一致は、まず ` name ` オプションが利用できない場合、コンポーネント自身の ` name ` オプションでローカル登録名(親の ` components ` オプションのキー)をチェックします。匿名のコンポーネントは照合できません。
You can’t perform that action at this time.
0 commit comments