cr vc-select
parent
e444ca1c7e
commit
413b9b19bd
|
@ -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`} />
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue