Skip to content

Commit

Permalink
feat(tc): 兼容input password 写法
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongxin committed Jun 11, 2018
1 parent e74e87c commit d248ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-components/src/components/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const types = {
text: 'text',
number: 'number',
idcard: 'idcard',
digit: 'digit'
digit: 'digit',
password: 'password'
}
function parseType (type, isPassword, confirmType) {
if (!types[type]) {
throw new Error('unexpected type')
}
// return isPassword ? 'password' : 'text'
if (isPassword) {
return isPassword ? 'password' : 'text'
} else if (confirmType) {
Expand Down

0 comments on commit d248ee8

Please sign in to comment.