This commit is contained in:
rhyme 2022-01-18 15:15:53 +08:00
parent ec7bc02abf
commit 1ce5746303

View file

@ -104,6 +104,9 @@
popperClass: { popperClass: {
type: String type: String
}, },
popperStyle: {
type: String
},
wordWrap: { wordWrap: {
type: Boolean, type: Boolean,
default: false default: false
@ -163,15 +166,17 @@
]; ];
}, },
styles () { styles () {
let style = {}; const style = [];
if (this.width) { if (this.width) {
style.width = `${this.width}px`; style.push(`width: ${this.width}px`);
} }
if (this.transfer) {
if (this.transfer) style['z-index'] = 1060 + this.tIndex; style.push(`z-index: ${1060 + this.tIndex}`);
}
return style; if (this.popperStyle) {
style.push(this.popperStyle);
}
return style.join(';');
}, },
localeOkText () { localeOkText () {
if (this.okText === undefined) { if (this.okText === undefined) {