fixed #4194
This commit is contained in:
parent
ab719ff2be
commit
74ef0a6ae1
3 changed files with 7 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
computed: {
|
computed: {
|
||||||
styles () {
|
styles () {
|
||||||
let style = {};
|
let style = {};
|
||||||
if (this.width) style.width = `${this.width}px`;
|
if (this.width) style.minWidth = `${this.width}px`;
|
||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -201,9 +201,9 @@
|
||||||
},
|
},
|
||||||
placement: {
|
placement: {
|
||||||
validator (value) {
|
validator (value) {
|
||||||
return oneOf(value, ['top', 'bottom']);
|
return oneOf(value, ['top', 'bottom', 'top-start', 'bottom-start', 'top-end', 'bottom-end']);
|
||||||
},
|
},
|
||||||
default: 'bottom'
|
default: 'bottom-start'
|
||||||
},
|
},
|
||||||
transfer: {
|
transfer: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
|
@ -235,6 +235,10 @@
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& &-dropdown{
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-item(@select-prefix-cls, @select-item-prefix-cls);
|
.select-item(@select-prefix-cls, @select-item-prefix-cls);
|
||||||
|
|
Loading…
Add table
Reference in a new issue