]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typos (#6708)
authorKid <44045911+kidonng@users.noreply.github.com>
Sat, 24 Sep 2022 07:13:39 +0000 (15:13 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Sep 2022 07:13:39 +0000 (15:13 +0800)
.github/ISSUE_TEMPLATE/bug_report.yml
packages/compiler-sfc/__tests__/compileScript.spec.ts
packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts
packages/runtime-dom/src/modules/attrs.ts
packages/vue-compat/README.md

index fe5e82b04a45d50803ddc92b1d2243aeac5d63a8..11853cec30c1aa980d81672d292d8bf0e5907f47 100644 (file)
@@ -30,7 +30,7 @@ body:
       description: |
         The easiest way to provide a reproduction is by showing the bug in [The SFC Playground](https://sfc.vuejs.org/).
         If it cannot be reproduced in the playground and requires a proper build setup, try [StackBlitz](https://vite.new/vue).
-        If neither of these are suitable, you can always provide a GitHub reporistory.
+        If neither of these are suitable, you can always provide a GitHub repository.
 
         The reproduction should be **minimal** - i.e. it should contain only the bare minimum amount of code needed
         to show the bug. See [Bug Reproduction Guidelines](https://github.com/vuejs/core/blob/main/.github/bug-repro-guidelines.md) for more details.
index 08d404b9c162c38ee6f5b8a02e39fc0120b3a3fc..f7a796949a944f818293632c7e4b909a1e59e3f4 100644 (file)
@@ -471,7 +471,7 @@ defineExpose({ foo: 123 })
       </script>
       <template>
         <div @click="$emit('update:a');"></div>
-      </tempalte>
+      </template>
       `)
     })
   })
index 6cbb0d3a9562e2508cb27de06ff59efe21110ff4..44b113c68bef59a3cbfe3641aea57edd811d79f5 100644 (file)
@@ -37,7 +37,7 @@ describe('ssr: attrs fallthrough', () => {
     `)
   })
 
-  test('fallthrough component content (root with coomments)', () => {
+  test('fallthrough component content (root with comments)', () => {
     expect(compile(`<!--root--><transition><div/></transition>`).code)
       .toMatchInlineSnapshot(`
               "const { ssrRenderAttrs: _ssrRenderAttrs } = require(\\"vue/server-renderer\\")
index a80936345ed130ad76b3d6ccf90c9a2b55caf475..41648ed50dc80e15cc22f48ccf846e44d0712dd2 100644 (file)
@@ -53,23 +53,23 @@ export function compatCoerceAttr(
   instance: ComponentInternalInstance | null = null
 ): boolean {
   if (isEnumeratedAttr(key)) {
-    const v2CocercedValue =
+    const v2CoercedValue =
       value === null
         ? 'false'
         : typeof value !== 'boolean' && value !== undefined
         ? 'true'
         : null
     if (
-      v2CocercedValue &&
+      v2CoercedValue &&
       compatUtils.softAssertCompatEnabled(
         DeprecationTypes.ATTR_ENUMERATED_COERCION,
         instance,
         key,
         value,
-        v2CocercedValue
+        v2CoercedValue
       )
     ) {
-      el.setAttribute(key, v2CocercedValue)
+      el.setAttribute(key, v2CoercedValue)
       return true
     }
   } else if (
index 0bc84b3340220f45a3e553405040ef7daafbbe80..23e4ce9ebcc500bca727c8e983c199a043ff4aca 100644 (file)
@@ -311,7 +311,7 @@ Features that start with `COMPILER_` are compiler-specific: if you are using the
 | V_ON_KEYCODE_MODIFIER        | ✔    | `v-on` no longer supports keyCode modifiers                           | [link](https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html)                                            |
 | CUSTOM_DIR                   | ✔    | Custom directive hook names changed                                   | [link](https://v3-migration.vuejs.org/breaking-changes/custom-directives.html)                                            |
 | ATTR_FALSE_VALUE             | ✔    | No longer removes attribute if binding value is boolean `false`       | [link](https://v3-migration.vuejs.org/breaking-changes/attribute-coercion.html)                                           |
-| ATTR_ENUMERATED_COERSION     | ✔    | No longer special case enumerated attributes                          | [link](https://v3-migration.vuejs.org/breaking-changes/attribute-coercion.html)                                           |
+| ATTR_ENUMERATED_COERCION     | ✔    | No longer special case enumerated attributes                          | [link](https://v3-migration.vuejs.org/breaking-changes/attribute-coercion.html)                                           |
 | TRANSITION_GROUP_ROOT        | ✔    | `<transition-group>` no longer renders a root element by default      | [link](https://v3-migration.vuejs.org/breaking-changes/transition-group.html)                                             |
 | COMPONENT_ASYNC              | ✔    | Async component API changed (now requires `defineAsyncComponent`)     | [link](https://v3-migration.vuejs.org/breaking-changes/async-components.html)                                             |
 | COMPONENT_FUNCTIONAL         | ✔    | Functional component API changed (now must be plain functions)        | [link](https://v3-migration.vuejs.org/breaking-changes/functional-components.html)                                        |