chore: fix comment typo (#499)

* chore(typo): fix comment typo

* chore(typo): fix comment typo of KeepAlive
This commit is contained in:
Rustin 2019-11-26 16:26:03 +08:00 committed by Eduardo San Martin Morote
parent c6fb506fc0
commit d5f4cc9c42
2 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ export interface BaseTransitionProps {
// injected hooks (e.g. v-show). // injected hooks (e.g. v-show).
persisted?: boolean 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 // In templates these can be written as @before-enter="xxx" as prop names
// are camelized // are camelized.
onBeforeEnter?: (el: any) => void onBeforeEnter?: (el: any) => void
onEnter?: (el: any, done: () => void) => void onEnter?: (el: any, done: () => void) => void
onAfterEnter?: (el: any) => void onAfterEnter?: (el: any) => void

View File

@ -67,7 +67,7 @@ const KeepAliveImpl = {
// KeepAlive communicates with the instantiated renderer via the "sink" // KeepAlive communicates with the instantiated renderer via the "sink"
// where the renderer passes in platform-specific functions, and the // 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 // The whole point of this is to avoid importing KeepAlive directly in the
// renderer to facilitate tree-shaking. // renderer to facilitate tree-shaking.
const sink = instance.sink as KeepAliveSink const sink = instance.sink as KeepAliveSink