Carlos Rodrigues 6 лет назад
Родитель
Сommit
6c80e13986

+ 1 - 1
packages/compiler-core/src/errors.ts

@@ -88,7 +88,7 @@ export const enum ErrorCodes {
   X_PREFIX_ID_NOT_SUPPORTED,
   X_MODULE_MODE_NOT_SUPPORTED,
 
-  // Sepcial value for higher-order compilers to pick up the last code
+  // Special value for higher-order compilers to pick up the last code
   // to avoid collision of error codes. This should always be kept as the last
   // item.
   __EXTEND_POINT__

+ 1 - 1
packages/compiler-dom/__tests__/transforms/vOn.spec.ts

@@ -31,7 +31,7 @@ function parseVOnProperties(
 }
 
 describe('compiler-dom: transform v-on', () => {
-  it('should support muliple modifiers w/ prefixIdentifiers: true', () => {
+  it('should support multiple modifiers w/ prefixIdentifiers: true', () => {
     const [prop] = parseVOnProperties(`<div @click.stop.prevent="test"/>`, {
       prefixIdentifiers: true
     })

+ 1 - 1
packages/compiler-dom/src/transforms/vModel.ts

@@ -66,7 +66,7 @@ export const transformModel: DirectiveTransform = (dir, node, context) => {
       }
       // inject runtime directive
       // by returning the helper symbol via needRuntime
-      // the import will replaced a resovleDirective call.
+      // the import will replaced a resolveDirective call.
       if (!isInvalidType) {
         baseResult.needRuntime = context.helper(directiveToUse)
       }

+ 1 - 1
packages/compiler-dom/src/transforms/vOn.ts

@@ -16,7 +16,7 @@ const isEventOptionModifier = /*#__PURE__*/ makeMap(`passive,once,capture`)
 const isNonKeyModifier = /*#__PURE__*/ makeMap(
   // event propagation management
   `stop,prevent,self,` +
-    // system modifers + exact
+    // system modifiers + exact
     `ctrl,shift,alt,meta,exact,` +
     // mouse
     `left,middle,right`

+ 1 - 1
packages/runtime-test/__tests__/testRuntime.spec.ts

@@ -173,7 +173,7 @@ describe('test renderer', () => {
     expect(serialize(root)).toBe(`<div><span>1</span></div>`)
   })
 
-  it('should be able to trigger events with muliple listeners', async () => {
+  it('should be able to trigger events with multiple listeners', async () => {
     const count = ref(0)
     const count2 = ref(1)