From 10b2439c8b6411cb0330d0ab68c6b8b8c7e4ba56 Mon Sep 17 00:00:00 2001 From: Owenlee Date: Wed, 23 Feb 2022 08:44:19 +0800 Subject: [PATCH 1/2] chore: fix typo in keep-alive (#1575) Co-authored-by: LQQ --- src/guide/built-ins/keep-alive.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/built-ins/keep-alive.md b/src/guide/built-ins/keep-alive.md index 620d6e12b..e9017d662 100644 --- a/src/guide/built-ins/keep-alive.md +++ b/src/guide/built-ins/keep-alive.md @@ -129,7 +129,7 @@ export default { Note that: -- `onActivated``activated` is also called on mount, and `onDectivated``deactivated` on unmount. +- `onActivated``activated` is also called on mount, and `onDeactivated``deactivated` on unmount. - Both hooks work for not only the root component cached by ``, but also descendent components in the cached tree. From 0181ee9d0ad6e06a845a8a71aba0ec43ad6e0dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20L=C3=BCnborg?= Date: Wed, 23 Feb 2022 01:38:31 +0100 Subject: [PATCH 2/2] Document v-bind.attr shorthand in API section. (#1571) * Document v-bind.attr shorthand in API section. * Update src/api/built-in-directives.md Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com> Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com> --- src/api/built-in-directives.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/api/built-in-directives.md b/src/api/built-in-directives.md index 4c1992d92..d64cabc1b 100644 --- a/src/api/built-in-directives.md +++ b/src/api/built-in-directives.md @@ -319,13 +319,16 @@ Dynamically bind one or more attributes, or a component prop to an expression. ``` - The `.prop` modifier also has a dedicated shorthand, `.`: + The `.prop` and `.attr` modifiers also have a dedicated shorthand, `.` and `^` respectively: ```vue-html
-
+ +
+ +
``` The `.camel` modifier allows camelizing a `v-bind` attribute name when using in-DOM templates, e.g. the SVG `viewBox` attribute: