Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

严重错误 prop type name is invalid Taro 1.0.4 Taro-UI 1.2.2 #85

Closed
upbill opened this issue Sep 27, 2018 · 4 comments
Closed

严重错误 prop type name is invalid Taro 1.0.4 Taro-UI 1.2.2 #85

upbill opened this issue Sep 27, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@upbill
Copy link

upbill commented Sep 27, 2018

重现步骤

Failed prop type: AtInput: prop type name is invalid;
Failed prop type: Invalid prop maxlength of type string supplied to AtInput, expected number.

依赖的版本号

Taro 1.0.4
Taro-UI 1.2.2

预期结果

实际结果

相关链接

@jimczj
Copy link
Contributor

jimczj commented Sep 27, 2018

请展示代码

@jimczj
Copy link
Contributor

jimczj commented Sep 27, 2018

name 的错误确实是bug,maxlength 需要传数字 {100},而不是字符串‘100’

@jimczj jimczj added the bug Something isn't working label Sep 27, 2018
@jimczj jimczj closed this as completed in cb94a89 Sep 27, 2018
@upbill
Copy link
Author

upbill commented Sep 28, 2018

必须加editable 否则 input disabled状态

@canaanjin
Copy link

canaanjin commented Sep 28, 2018

@jimczj
taro-ui 1.2.2
同样遇到了prop type 'name' is invalid 的错误
目前还不知道会有什么影响
希望可以尽快解决
还有希望可以出一个类似小程序中的Picker的组件

jimczj added a commit that referenced this issue Sep 29, 2018
* dev:
  fix: #84 style 为null 处理
  fix(button): type - sendMessageTitle (#86)
  fix(action-sheet): 完善 UI 问题 #78
  fix(action-sheet): 修复 ActionSheetFooter 样式问题 closed #78
  fix(input): fix #85 types 错误
  docs: 对原生组件在Modal中的异常行为作出了说明 (#80)
  fix(input): onClick type optional
  fix(input): types
jimczj added a commit that referenced this issue Sep 29, 2018
* release_v1.3.0: (27 commits)
  feat(search-bar): 按照设计稿修改
  feat(swipe-action): 完善测试案例
  fix: #84 style 为null 处理
  feat(search-bar): 新增组件
  fix(button): type - sendMessageTitle (#86)
  fix(action-sheet): 完善 UI 问题 #78
  fix(action-sheet): 修复 ActionSheetFooter 样式问题 closed #78
  feat(swipe-action): 完成 SwipeAction 组件 + 编写文档 + 编写 d.ts 文件
  fix(input): fix #85 types 错误
  docs: 对原生组件在Modal中的异常行为作出了说明 (#80)
  fix(input): onClick type optional
  fix(input): types
  feat(component): 完成 SwipeAction 组件编写
  fix(types): grid - columnNum (#73)
  fix(tabs): 规范 css
  chore(release): 发布 v1.2.2 版本
  docs: 更新开发计划
  test(input): 更新镜像
  fix(button): 修复button案例页
  fix(toast): overlay z-index
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants