perf: 聊天输入框iOS输入第一个字母出现抖动的情况

This commit is contained in:
kuaifan 2023-06-19 12:07:57 +08:00
parent 5dddf25e5e
commit c8e3a5ee4c

View File

@ -386,16 +386,17 @@ export default {
},
editorStyle() {
const {wrapperWidth, editorHeight} = this;
const {wrapperWidth, editorHeight, value} = this;
const style = {};
if (value.length < 10) {
style.height = '30px';
}
if (wrapperWidth > 0
&& editorHeight > 0
&& (wrapperWidth < 280 || editorHeight > 40)) {
return {
width: '100%'
};
} else {
return {};
style.width = '100%';
}
return style;
},
recordTransferStyle() {