mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore: fix blurred typo (#8916)
This commit is contained in:
parent
e3b7411185
commit
dc8f190733
@ -178,7 +178,7 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
|||||||
|
|
||||||
**Bug Fixes**
|
**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)
|
- 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)
|
- Tabs: incorrect horizontal slip judgment [#8388](https://github.com/youzan/vant/issues/8388)
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ Field support all native events of input tag
|
|||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| update:model-value | Emitted when input value changed | _value: string_ |
|
| update:model-value | Emitted when input value changed | _value: string_ |
|
||||||
| focus | Emitted when input is focused | _event: Event_ |
|
| 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_ |
|
| clear | Emitted when the clear icon is clicked | _event: MouseEvent_ |
|
||||||
| click | Emitted when component is clicked | _event: MouseEvent_ |
|
| click | Emitted when component is clicked | _event: MouseEvent_ |
|
||||||
| click-input | Emitted when the input is clicked | _event: MouseEvent_ |
|
| click-input | Emitted when the input is clicked | _event: MouseEvent_ |
|
||||||
|
@ -312,7 +312,7 @@ test('should allow to format value with formatter prop', () => {
|
|||||||
expect(wrapper.emitted('update:modelValue')[1][0]).toEqual('efg');
|
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, {
|
const wrapper = mount(Field, {
|
||||||
props: {
|
props: {
|
||||||
modelValue: 'abc123',
|
modelValue: 'abc123',
|
||||||
|
@ -3,7 +3,7 @@ import { Field } from '../../field';
|
|||||||
import { mountForm } from './shared';
|
import { mountForm } from './shared';
|
||||||
import { later } from '../../../test';
|
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 validator = (val: string) => val.length > 4;
|
||||||
const wrapper = mountForm({
|
const wrapper = mountForm({
|
||||||
data() {
|
data() {
|
||||||
|
@ -192,7 +192,7 @@ export default {
|
|||||||
| input | Emitted when keydown | key: Content of the key |
|
| input | Emitted when keydown | key: Content of the key |
|
||||||
| delete | Emitted when the delete key is pressed | - |
|
| delete | Emitted when the delete key is pressed | - |
|
||||||
| close | Emitted when the close button is clicked | - |
|
| 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 | - |
|
| show | Emitted when keyboard is fully displayed | - |
|
||||||
| hide | Emitted when keyboard is fully hidden | - |
|
| hide | Emitted when keyboard is fully hidden | - |
|
||||||
|
|
||||||
|
@ -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_ |
|
| search | Emitted when confirming search | _value: string_ |
|
||||||
| update:model-value | Emitted when input value changed | _value: string_ |
|
| update:model-value | Emitted when input value changed | _value: string_ |
|
||||||
| focus | Emitted when input is focused | _event: Event_ |
|
| 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_ |
|
| clear | Emitted when the clear icon is clicked | _event: Event_ |
|
||||||
| cancel | Emitted when the cancel button is clicked | - |
|
| cancel | Emitted when the cancel button is clicked | - |
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
|||||||
| plus | Emitted when the plus button is clicked | - |
|
| plus | Emitted when the plus button is clicked | - |
|
||||||
| minus | Emitted when the minus button is clicked | - |
|
| minus | Emitted when the minus button is clicked | - |
|
||||||
| focus | Emitted when the input is focused | _event: Event_ |
|
| 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
|
### CSS Variables
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ test('should emit focus event when input is focused', async () => {
|
|||||||
expect(wrapper.emitted('focus')).toBeTruthy();
|
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, {
|
const wrapper = mount(Stepper, {
|
||||||
props: {
|
props: {
|
||||||
min: 3,
|
min: 3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user