From: Kid <44045911+kidonng@users.noreply.github.com>
Date: Sat, 24 Sep 2022 07:13:39 +0000 (+0800)
Subject: chore: fix typos (#6708)
X-Git-Tag: v3.2.40~20
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96ba71d0cffbb8a736365d92d1f5cd6be9afdcff;p=thirdparty%2Fvuejs%2Fcore.git
chore: fix typos (#6708)
---
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index fe5e82b04a..11853cec30 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -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.
diff --git a/packages/compiler-sfc/__tests__/compileScript.spec.ts b/packages/compiler-sfc/__tests__/compileScript.spec.ts
index 08d404b9c1..f7a796949a 100644
--- a/packages/compiler-sfc/__tests__/compileScript.spec.ts
+++ b/packages/compiler-sfc/__tests__/compileScript.spec.ts
@@ -471,7 +471,7 @@ defineExpose({ foo: 123 })
-
+
`)
})
})
diff --git a/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts b/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts
index 6cbb0d3a95..44b113c68b 100644
--- a/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts
+++ b/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts
@@ -37,7 +37,7 @@ describe('ssr: attrs fallthrough', () => {
`)
})
- test('fallthrough component content (root with coomments)', () => {
+ test('fallthrough component content (root with comments)', () => {
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { ssrRenderAttrs: _ssrRenderAttrs } = require(\\"vue/server-renderer\\")
diff --git a/packages/runtime-dom/src/modules/attrs.ts b/packages/runtime-dom/src/modules/attrs.ts
index a80936345e..41648ed50d 100644
--- a/packages/runtime-dom/src/modules/attrs.ts
+++ b/packages/runtime-dom/src/modules/attrs.ts
@@ -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 (
diff --git a/packages/vue-compat/README.md b/packages/vue-compat/README.md
index 0bc84b3340..23e4ce9ebc 100644
--- a/packages/vue-compat/README.md
+++ b/packages/vue-compat/README.md
@@ -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 | â | `` 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) |