mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-02 19:08:12 +00:00
perf: 聊天输入框iOS输入第一个字母出现抖动的情况
This commit is contained in:
parent
5dddf25e5e
commit
c8e3a5ee4c
@ -386,16 +386,17 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
editorStyle() {
|
editorStyle() {
|
||||||
const {wrapperWidth, editorHeight} = this;
|
const {wrapperWidth, editorHeight, value} = this;
|
||||||
|
const style = {};
|
||||||
|
if (value.length < 10) {
|
||||||
|
style.height = '30px';
|
||||||
|
}
|
||||||
if (wrapperWidth > 0
|
if (wrapperWidth > 0
|
||||||
&& editorHeight > 0
|
&& editorHeight > 0
|
||||||
&& (wrapperWidth < 280 || editorHeight > 40)) {
|
&& (wrapperWidth < 280 || editorHeight > 40)) {
|
||||||
return {
|
style.width = '100%';
|
||||||
width: '100%'
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
return style;
|
||||||
},
|
},
|
||||||
|
|
||||||
recordTransferStyle() {
|
recordTransferStyle() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user