From bc5122526febb6ca32098d7cc5ee709dcc37b7fd Mon Sep 17 00:00:00 2001 From: FAKER-A <1037881273@qq.com> Date: Mon, 19 Oct 2020 16:00:49 +0800 Subject: [PATCH] style: Unified style --- src/guide/migration/custom-directives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/migration/custom-directives.md b/src/guide/migration/custom-directives.md index 4bdaab2e01..0dbec65558 100644 --- a/src/guide/migration/custom-directives.md +++ b/src/guide/migration/custom-directives.md @@ -49,7 +49,7 @@ In Vue 3, however, we’ve created a more cohesive API for custom directives. As - **beforeUpdate**: new! this is called before the element itself is updated, much like the component lifecycle hooks. - update → removed! There were too many similarities to updated, so this is redundant. Please use updated instead. - componentUpdated → **updated** -- **beforeUnmount** new! similar to component lifecycle hooks, this will be called right before an element is unmounted. +- **beforeUnmount**: new! similar to component lifecycle hooks, this will be called right before an element is unmounted. - unbind -> **unmounted** The final API is as follows: