This commit is contained in:
梁灏 2018-08-08 15:18:24 +08:00
parent ab719ff2be
commit 74ef0a6ae1
3 changed files with 7 additions and 3 deletions

View file

@ -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;
}
},

View file

@ -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,

View file

@ -235,6 +235,10 @@
min-width: 100%;
list-style: none;
}
& &-dropdown{
width: auto;
}
}
.select-item(@select-prefix-cls, @select-item-prefix-cls);