From d42c8f9b8e5263d4955e86cc3b8031344c52617b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AD=90=E9=BE=99?= <32627250+qdzhaoxiaodao@users.noreply.github.com> Date: Mon, 11 Jul 2022 14:35:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(Input):=20=E4=BF=AE=E5=A4=8DInput=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20=E5=88=87=E6=8D=A2=20type=20=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=20(#1148?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复Input 组件 切换 type 后不生效的问题,官网 Input 中组件示例 选择 type 切换时 Input 中的 type 不会变化。 --- src/_common | 2 +- src/input/input.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/_common b/src/_common index 1d69c2169..431f7a9d9 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 1d69c2169a645e6ce4655d2b5b29d86a797aa8e7 +Subproject commit 431f7a9d9cc5f7f63b7eb9d5879da2e6c6149ae5 diff --git a/src/input/input.tsx b/src/input/input.tsx index 347763d8d..6df3f6989 100644 --- a/src/input/input.tsx +++ b/src/input/input.tsx @@ -121,6 +121,12 @@ export default mixins(getConfigReceiverMixins('input }, immediate: true, }, + type: { + handler(val) { + this.renderType = val; + }, + immediate: true, + }, }, created() {