add AutoComplete component

This commit is contained in:
梁灏 2017-08-23 14:42:54 +08:00
parent 1183836a92
commit fed3e09d15
11 changed files with 255 additions and 31 deletions

View file

@ -212,12 +212,19 @@
this.textareaStyles = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
},
focus() {
focus () {
if (this.type === 'textarea') {
this.$refs.textarea.focus();
} else {
this.$refs.input.focus();
}
},
blur () {
if (this.type === 'textarea') {
this.$refs.textarea.blur();
} else {
this.$refs.input.blur();
}
}
},
watch: {