cr vc-select

pull/1040/head
tangjinzhou 2019-06-30 21:56:24 +08:00
parent e444ca1c7e
commit 413b9b19bd
1 changed files with 6 additions and 8 deletions

View File

@ -156,6 +156,9 @@ const Select = {
if (this.autoFocus || this._open) { if (this.autoFocus || this._open) {
this.focus(); this.focus();
} }
// this.setState({
// _ariaId: generateUUID(),
// });
}); });
}, },
watch: { watch: {
@ -665,11 +668,9 @@ const Select = {
} else { } else {
// why not use setState? // why not use setState?
this.$data._inputValue = ''; this.$data._inputValue = '';
this.$nextTick(() => { if (this.getInputDOMNode && this.getInputDOMNode()) {
if (this.getInputDOMNode && this.getInputDOMNode()) { this.getInputDOMNode().value = '';
this.getInputDOMNode().value = ''; }
}
});
} }
const tmpValue = this.getValueByInput(inputValue); const tmpValue = this.getValueByInput(inputValue);
if (tmpValue !== undefined) { if (tmpValue !== undefined) {
@ -1405,9 +1406,6 @@ const Select = {
return null; return null;
} }
// if loading have loading icon // if loading have loading icon
// if (multiple && !loading) {
// return null;
// }
const defaultIcon = loading ? ( const defaultIcon = loading ? (
<i class={`${prefixCls}-arrow-loading`} /> <i class={`${prefixCls}-arrow-loading`} />
) : ( ) : (