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

virtual-keyboard-vm自定义金融键盘无效 #355

Closed
bwqgithub opened this issue Mar 12, 2019 · 6 comments
Closed

virtual-keyboard-vm自定义金融键盘无效 #355

bwqgithub opened this issue Mar 12, 2019 · 6 comments
Assignees
Labels
bug Something isn't working @Components Components related

Comments

@bwqgithub
Copy link

版本2.0.0
使用virtual-keyboard-vm设置自定义键盘为无小数点键盘,可是调出来的依然是默认键盘。如图。
QQ截图20190312111627

@xxyan0205
Copy link
Collaborator

vue 什么版本

@bwqgithub
Copy link
Author

bwqgithub commented Mar 12, 2019

vue 2.6.6
直接使用NumberKeyboard设置成无小数点的键盘是可以的,但是使用InputItem关联不行。

@xxyan0205
Copy link
Collaborator

我在本地试了下没有付现,请用https://codesandbox.io 提供一个复现问题的示例

@bwqgithub
Copy link
Author

@xxyan0205 xxyan0205 added bug Something isn't working @Components Components related labels Mar 12, 2019
@xxyan0205 xxyan0205 self-assigned this Mar 12, 2019
@xxyan0205
Copy link
Collaborator

xxyan0205 commented Mar 12, 2019

InputItem初始化时有概率父组件$refs还未完成挂载,挂载后也无法触发InputItem props更新,所以内部使用的是内置键盘。后面版本会让virtualKeyboardVm支持传递自定义键盘的ref信息,避免直接传递引用。

@xxyan0205
Copy link
Collaborator

fixed@2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @Components Components related
Projects
None yet
Development

No branches or pull requests

2 participants