chore: add trailingComma
This commit is contained in:
@@ -54,15 +54,15 @@ export default {
|
||||
customLength: '自定义长度',
|
||||
removeMask: '明文展示',
|
||||
hintError: '错误提示',
|
||||
errorInfo: '密码错误'
|
||||
errorInfo: '密码错误',
|
||||
},
|
||||
'en-US': {
|
||||
info: 'Some tips',
|
||||
customLength: 'Custom Length',
|
||||
removeMask: 'Remove Mask',
|
||||
hintError: 'Hint Error',
|
||||
errorInfo: 'Password Mistake'
|
||||
}
|
||||
errorInfo: 'Password Mistake',
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
value3: '123',
|
||||
value4: '123',
|
||||
keyboard: 'value1',
|
||||
errorInfo: ''
|
||||
errorInfo: '',
|
||||
};
|
||||
},
|
||||
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
onDelete() {
|
||||
const { keyboard } = this;
|
||||
this[keyboard] = this[keyboard].slice(0, this[keyboard].length - 1);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -69,16 +69,16 @@ PasswordInput.props = {
|
||||
errorInfo: String,
|
||||
mask: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
length: {
|
||||
type: Number,
|
||||
default: 6
|
||||
}
|
||||
default: 6,
|
||||
},
|
||||
};
|
||||
|
||||
export default createComponent<PasswordInputProps>(PasswordInput);
|
||||
|
||||
@@ -6,9 +6,9 @@ test('focus event', () => {
|
||||
const wrapper = mount(PasswordInput, {
|
||||
context: {
|
||||
on: {
|
||||
focus
|
||||
}
|
||||
}
|
||||
focus,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-password-input__security').trigger('touchstart');
|
||||
|
||||
Reference in New Issue
Block a user