From c8e3a5ee4c4e3a53ece338c5829714290059a2cf Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 19 Jun 2023 12:07:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=81=8A=E5=A4=A9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86iOS=E8=BE=93=E5=85=A5=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E5=87=BA=E7=8E=B0=E6=8A=96=E5=8A=A8=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/ChatInput/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index e63ab0194..2130d6754 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -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() {