chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ const DELETE_KEY_THEME = ['delete', 'big', 'gray'];
export default createComponent({
mixins: [
BindEventMixin(function(bind) {
BindEventMixin(function (bind) {
if (this.hideOnClickOutside) {
bind(document.body, 'touchstart', this.onBlur);
}
@@ -165,7 +165,7 @@ export default createComponent({
},
genKeys() {
return this.keys.map(key => (
return this.keys.map((key) => (
<Key
key={key.text}
text={key.text}
+2 -2
View File
@@ -151,7 +151,7 @@ test('bind value', () => {
value: '',
},
listeners: {
'update:value': value => {
'update:value': (value) => {
wrapper.setProps({ value });
},
},
@@ -176,7 +176,7 @@ test('maxlength', () => {
},
listeners: {
input: onInput,
'update:value': value => {
'update:value': (value) => {
wrapper.setProps({ value });
},
},