File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 3636
3737 プログラムによる新しい URL へのナビゲーション。 [ プログラムによるナビゲーション] ( ../essentials/navigation.md ) をご参照ください。
3838
39- - ** router.getMatchedComponents()**
39+ - ** router.getMatchedComponents(location? )**
4040
41- 現在のルートにマッチしているコンポーネント (インスタンスではなく定義 / コンストラクタ) の配列を返します。これは大抵の場合データ取得を行うサーバーサイドレンダリングで使用されます。
41+ 現在のルートまたは提供されたロケーションにマッチしているコンポーネント (インスタンスではなく定義 / コンストラクタ) の配列を返します。これは大抵の場合データ取得を行うサーバーサイドレンダリングで使用されます。
4242
4343- ** router.resolve(location, current?, append?)**
4444
45- 逆 URL 解決します。` <router-link/> ` で使われているものと同じ形式の location が与えられた場合は、文字列プロパティ ` href ` のオブジェクトを返します。
45+ > 2.1.0+
46+
47+ 逆 URL 解決します。` <router-link/> ` で使われているものと同じ形式の location が与えられた場合は、以下の解決されたプロパティを返します。
48+
49+ ``` js
50+ {
51+ normalizedTo: Location ;
52+ resolved: Route;
53+ href: string;
54+ }
55+ ```
Original file line number Diff line number Diff line change 105105
106106 アクティブリンククラスをより説明している例としてこちらの [ 動作] ( https://jsfiddle.net/8xrk1n9f/ ) を確認してください。
107107
108+ - ** events**
109+
110+ > 2.1.0+
111+
112+ - 型: ` string | Array<string> `
113+
114+ - デフォルト: ` 'click' `
115+
116+ リンクナビゲーションをトリガーできるイベントを指定します。
117+
108118### 外側の要素へのアクティブクラスの適用
109119
110120アクティブクラスを ` <a> ` タグ自身よりも、外側の要素に対して適用したいことがあるでしょう。その場合、 ` <router-link> ` を使って外側の要素レンダリングして、その内側に生の ` <a> ` タグをラップすることができます。
You can’t perform that action at this time.
0 commit comments