From d5f4cc9c42b6bc68fd7ba62e74245cff62c5eec3 Mon Sep 17 00:00:00 2001 From: Rustin <1196089730@qq.com> Date: Tue, 26 Nov 2019 16:26:03 +0800 Subject: [PATCH] chore: fix comment typo (#499) * chore(typo): fix comment typo * chore(typo): fix comment typo of KeepAlive --- packages/runtime-core/src/components/BaseTransition.ts | 4 ++-- packages/runtime-core/src/components/KeepAlive.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index 34403cfc..4f4961b0 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -28,9 +28,9 @@ export interface BaseTransitionProps { // injected hooks (e.g. v-show). persisted?: boolean - // Hooks. Using camel casef for easier usage in render functions & JSX. + // Hooks. Using camel case for easier usage in render functions & JSX. // In templates these can be written as @before-enter="xxx" as prop names - // are camelized + // are camelized. onBeforeEnter?: (el: any) => void onEnter?: (el: any, done: () => void) => void onAfterEnter?: (el: any) => void diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 10c63891..3d76113b 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -67,7 +67,7 @@ const KeepAliveImpl = { // KeepAlive communicates with the instantiated renderer via the "sink" // where the renderer passes in platform-specific functions, and the - // KeepAlivei instance expses activcate/decativate implementations. + // KeepAlive instance exposes activate/deactivate implementations. // The whole point of this is to avoid importing KeepAlive directly in the // renderer to facilitate tree-shaking. const sink = instance.sink as KeepAliveSink