🎨 add eslint

This commit is contained in:
jingsam 2016-12-25 22:49:42 +08:00
parent 829a2e4cfc
commit b0893113b3
88 changed files with 376 additions and 370 deletions

View file

@ -14,7 +14,7 @@
data () {
return {
popper: null
}
};
},
methods: {
update () {
@ -62,5 +62,5 @@
this.popper.destroy();
}
}
}
</script>
};
</script>

View file

@ -19,7 +19,7 @@
data () {
return {
prefixCls: prefixCls
}
};
}
}
};
</script>

View file

@ -26,7 +26,7 @@
isFocus: false,
hidden: false, // for search
searchLabel: '' // the value is slot,only for search
}
};
},
computed: {
classes () {
@ -37,10 +37,10 @@
[`${prefixCls}-selected`]: this.selected,
[`${prefixCls}-focus`]: this.isFocus
}
]
];
},
showLabel () {
return (!!this.label) ? this.label : this.value;
return (this.label) ? this.label : this.value;
}
},
methods: {
@ -69,5 +69,5 @@
this.queryChange(val);
}
}
}
</script>
};
</script>

View file

@ -96,7 +96,7 @@
inputLength: 20,
notFound: false,
slotChangeDuration: false // if slot change duration and in multiple, set true and after slot change, set false
}
};
},
computed: {
classes () {
@ -110,7 +110,7 @@
[`${prefixCls}-show-clear`]: this.showCloseIcon,
[`${prefixCls}-${this.size}`]: !!this.size
}
]
];
},
showPlaceholder () {
let status = false;
@ -174,7 +174,7 @@
if (this.optionInstances.length) {
this.optionInstances.forEach((child) => {
find(child);
})
});
} else {
this.$children.forEach((child) => {
find(child);
@ -252,7 +252,7 @@
selected.push({
value: option.value,
label: option.label
})
});
}
}
}
@ -435,7 +435,7 @@
const model = this.model;
if (this.multiple) {
//
} else {
if (model !== '') {
this.findChild((child) => {
@ -561,5 +561,5 @@
}
}
}
}
};
</script>