From dc8f190733326b0c69c74945cce512dd43829acf Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 23 Jun 2021 17:08:32 +0800 Subject: [PATCH] chore: fix blurred typo (#8916) --- docs/markdown/changelog.en-US.md | 2 +- src/field/README.md | 2 +- src/field/test/index.spec.js | 2 +- src/form/test/index.spec.tsx | 2 +- src/number-keyboard/README.md | 2 +- src/search/README.md | 2 +- src/stepper/README.md | 2 +- src/stepper/test/index.spec.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/markdown/changelog.en-US.md b/docs/markdown/changelog.en-US.md index 09550e28c..1498ad854 100644 --- a/docs/markdown/changelog.en-US.md +++ b/docs/markdown/changelog.en-US.md @@ -178,7 +178,7 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/). **Bug Fixes** -- Field: should not reset validation after blured [#8409](https://github.com/youzan/vant/issues/8409) +- Field: should not reset validation after blurred [#8409](https://github.com/youzan/vant/issues/8409) - Sticky: Element not exist during SSR [#8407](https://github.com/youzan/vant/issues/8407) - Tabs: incorrect horizontal slip judgment [#8388](https://github.com/youzan/vant/issues/8388) diff --git a/src/field/README.md b/src/field/README.md index c55fe829c..cdecf50bb 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -282,7 +282,7 @@ Field support all native events of input tag | --- | --- | --- | | update:model-value | Emitted when input value changed | _value: string_ | | focus | Emitted when input is focused | _event: Event_ | -| blur | Emitted when input is blured | _event: Event_ | +| blur | Emitted when input is blurred | _event: Event_ | | clear | Emitted when the clear icon is clicked | _event: MouseEvent_ | | click | Emitted when component is clicked | _event: MouseEvent_ | | click-input | Emitted when the input is clicked | _event: MouseEvent_ | diff --git a/src/field/test/index.spec.js b/src/field/test/index.spec.js index babb4b0c4..cfb0d7264 100644 --- a/src/field/test/index.spec.js +++ b/src/field/test/index.spec.js @@ -312,7 +312,7 @@ test('should allow to format value with formatter prop', () => { expect(wrapper.emitted('update:modelValue')[1][0]).toEqual('efg'); }); -test('should trigger format after bluring when format-trigger prop is blur', async () => { +test('should trigger format after blurring when format-trigger prop is blur', async () => { const wrapper = mount(Field, { props: { modelValue: 'abc123', diff --git a/src/form/test/index.spec.tsx b/src/form/test/index.spec.tsx index c5d09d9be..36dcca3be 100644 --- a/src/form/test/index.spec.tsx +++ b/src/form/test/index.spec.tsx @@ -3,7 +3,7 @@ import { Field } from '../../field'; import { mountForm } from './shared'; import { later } from '../../../test'; -test('should not reset validation after blured when validate-trigger is onChange', async () => { +test('should not reset validation after blurred when validate-trigger is onChange', async () => { const validator = (val: string) => val.length > 4; const wrapper = mountForm({ data() { diff --git a/src/number-keyboard/README.md b/src/number-keyboard/README.md index 62d033753..93d5c65c6 100644 --- a/src/number-keyboard/README.md +++ b/src/number-keyboard/README.md @@ -192,7 +192,7 @@ export default { | input | Emitted when keydown | key: Content of the key | | delete | Emitted when the delete key is pressed | - | | close | Emitted when the close button is clicked | - | -| blur | Emitted when the close button is clicked or the keyboard is blured | - | +| blur | Emitted when the close button is clicked or the keyboard is blurred | - | | show | Emitted when keyboard is fully displayed | - | | hide | Emitted when keyboard is fully hidden | - | diff --git a/src/search/README.md b/src/search/README.md index f203488b5..ca5175ed5 100644 --- a/src/search/README.md +++ b/src/search/README.md @@ -146,7 +146,7 @@ Use `action` slot to custom right button, `cancel` event will no longer be Emitt | search | Emitted when confirming search | _value: string_ | | update:model-value | Emitted when input value changed | _value: string_ | | focus | Emitted when input is focused | _event: Event_ | -| blur | Emitted when input is blured | _event: Event_ | +| blur | Emitted when input is blurred | _event: Event_ | | clear | Emitted when the clear icon is clicked | _event: Event_ | | cancel | Emitted when the cancel button is clicked | - | diff --git a/src/stepper/README.md b/src/stepper/README.md index 6e9a55b37..4627c549f 100644 --- a/src/stepper/README.md +++ b/src/stepper/README.md @@ -155,7 +155,7 @@ export default { | plus | Emitted when the plus button is clicked | - | | minus | Emitted when the minus button is clicked | - | | focus | Emitted when the input is focused | _event: Event_ | -| blur | Emitted when the input is blured | _event: Event_ | +| blur | Emitted when the input is blurred | _event: Event_ | ### CSS Variables diff --git a/src/stepper/test/index.spec.ts b/src/stepper/test/index.spec.ts index 35da88595..10aed02ab 100644 --- a/src/stepper/test/index.spec.ts +++ b/src/stepper/test/index.spec.ts @@ -230,7 +230,7 @@ test('should emit focus event when input is focused', async () => { expect(wrapper.emitted('focus')).toBeTruthy(); }); -test('should format input value when stepper blured', async () => { +test('should format input value when stepper blurred', async () => { const wrapper = mount(Stepper, { props: { min: 3,