Commit ef397572 authored by hetech's avatar hetech Committed by GitHub

Select: fix size attribute not working (#13070)

parent 9b1d120a
...@@ -854,7 +854,12 @@ ...@@ -854,7 +854,12 @@
const reference = this.$refs.reference; const reference = this.$refs.reference;
if (reference && reference.$el) { if (reference && reference.$el) {
this.initialInputHeight = reference.$el.getBoundingClientRect().height; const sizeMap = {
medium: 36,
small: 32,
mini: 28
};
this.initialInputHeight = reference.$el.getBoundingClientRect().height || sizeMap[this.selectSize];
} }
if (this.remote && this.multiple) { if (this.remote && this.multiple) {
this.resetInputHeight(); this.resetInputHeight();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment