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: {
|
||||
styles () {
|
||||
let style = {};
|
||||
if (this.width) style.width = `${this.width}px`;
|
||||
if (this.width) style.minWidth = `${this.width}px`;
|
||||
return style;
|
||||
}
|
||||
},
|
||||
|
|
|
@ -201,9 +201,9 @@
|
|||
},
|
||||
placement: {
|
||||
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: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -235,6 +235,10 @@
|
|||
min-width: 100%;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
& &-dropdown{
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.select-item(@select-prefix-cls, @select-item-prefix-cls);
|
||||
|
|
Loading…
Add table
Reference in a new issue