chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+6 -6
View File
@@ -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>
+4 -4
View File
@@ -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);
+3 -3
View File
@@ -6,9 +6,9 @@ test('focus event', () => {
const wrapper = mount(PasswordInput, {
context: {
on: {
focus
}
}
focus,
},
},
});
wrapper.find('.van-password-input__security').trigger('touchstart');