Skip to content

Commit

Permalink
fix(Input): 修复Input 组件 切换 type 后不生效的问题 (#1148)
Browse files Browse the repository at this point in the history
修复Input 组件 切换 type 后不生效的问题,官网 Input 中组件示例 选择 type 切换时 Input 中的 type 不会变化。
  • Loading branch information
hi-zhaoyeqing authored Jul 11, 2022
1 parent c349cdb commit d42c8f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ export default mixins(getConfigReceiverMixins<InputInstance, InputConfig>('input
},
immediate: true,
},
type: {
handler(val) {
this.renderType = val;
},
immediate: true,
},
},

created() {
Expand Down

0 comments on commit d42c8f9

Please sign in to comment.