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

[BUG] v-model与v-models都不支持动态传入修饰符及v-model的参数 #635

Open
yzh1234567 opened this issue Jan 11, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@yzh1234567
Copy link

🐛 Bug description

v-model与v-models都不支持变量传入修饰符及v-model的参数;一旦参数及修饰符为变量就不能双向绑定;

屏幕截图 2023-01-11 153155

@yzh1234567 yzh1234567 added the bug Something isn't working label Jan 11, 2023
@funny-family
Copy link

funny-family commented Jan 12, 2023

@yzh1234567, v-model's argument and modifiers must be in line.

<input v-model={[this.value, 'something', ['trim']]}

edit1: It is not a bug.

@zhiyuanzmj
Copy link
Collaborator

#642

@yzh1234567
Copy link
Author

@funny-family , 你这样写是已知修饰符及参数,我的意思是父组件动态传入修饰符及参数

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