mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-27 04:58:12 +00:00
perf: 聊天输入框iOS输入第一个字母出现抖动的情况
This commit is contained in:
parent
5dddf25e5e
commit
c8e3a5ee4c
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user