File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# ` canDeactivate(transition) [-> Promise | Boolean] `
2
2
3
- Called on a leaving component during the validation phase.
3
+ 検証フェーズの間でコンポーネントから離れるときに呼び出されます。
4
4
5
- ### Arguments
5
+ ### 引数
6
6
7
7
- [ ` transition {Transition} ` ] ( hooks.md#transition-object )
8
8
9
- Call ` transition.next() ` to resolve the hook. Calling ` transition.abort() ` will invalidate and cancel the transition.
9
+ フックを解決するために、 ` transition.next() ` を呼び出します。 ` transition.abort() ` を呼び出すと、無効とトランジションをキャンセルします。
10
10
11
- ### Return Value
11
+ ### 戻り値
12
12
13
- - Optionally return a Promise:
13
+ - 任意で Promise を返します。
14
14
15
15
- ` resolve(true) ` -> ` transition.next() `
16
16
- ` resolve(false) ` -> ` transition.abort() `
17
17
- ` reject(reason) ` -> ` transition.abort(reason) `
18
18
19
- - Optionally return a Boolean:
19
+ - 任意で Boolean を返します。
20
20
21
21
- ` true ` -> ` transition.next() `
22
22
- ` false ` -> ` transition.abort() `
23
23
24
- ### Details
24
+ ### 詳細
25
25
26
- This hook is called from bottom-up. A parent view component's ` canDeactivate ` only gets called when its child's ` canDeactivate ` has resolved.
26
+ このフックはボトムアップから呼ばれます。親の view コンポーネント の ` canDeactivate ` は、子の ` canDeactivate ` が解決された時にのみ、呼び出されます。
You can’t perform that action at this time.
0 commit comments