Просмотр исходного кода

chore: fix comment typo (#499)

* chore(typo): fix comment typo

* chore(typo): fix comment typo of KeepAlive
Rustin 6 лет назад
Родитель
Сommit
d5f4cc9c42

+ 2 - 2
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

+ 1 - 1
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