From 163aa7b81da286e74bec55faefdb8c0e5b12a2f6 Mon Sep 17 00:00:00 2001 From: websir Date: Fri, 25 Jun 2021 14:24:23 +0800 Subject: [PATCH] =?UTF-8?q?el-table=E5=86=85=E6=B8=B2=E6=9F=93=20el-input?= =?UTF-8?q?=20=E4=BC=9A=E5=87=BA=E7=8E=B0=E9=AB=98=E5=BA=A6=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit el-table内渲染 el-input 会出现高度错误,高度运算时机不对 https://codepen.io/zjpzjp/pen/VwporKQ --- packages/input/src/input.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/input/src/input.vue b/packages/input/src/input.vue index 1a66d6a96..d9381a313 100644 --- a/packages/input/src/input.vue +++ b/packages/input/src/input.vue @@ -426,7 +426,9 @@ mounted() { this.setNativeInputValue(); - this.resizeTextarea(); + this.$nextTick(()=>{ + this.resizeTextarea(); + }); this.updateIconOffset(); },