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

对象中的属性无法双向绑定 #5794

Open
nanhai-13 opened this issue May 16, 2024 · 1 comment
Open

对象中的属性无法双向绑定 #5794

nanhai-13 opened this issue May 16, 2024 · 1 comment

Comments

@nanhai-13
Copy link

重现链接

Page({
data: {
sInfo: {cName:'xxxx'},
},
onShow() {
}
});

Vant Weapp 版本

1.11.6

描述一下你遇到的问题。

sInfo.cName值可以页面上显示出来;但不能双向绑定变化

重现步骤

1:页面上手动改变van-field的内容
2:点击提交按钮后进行判断,this.data.Info.cName的值没有随着变化。

设备/浏览器

Android的微信小程序

@TallNutAlt
Copy link

(https://developers.weixin.qq.com/miniprogram/dev/framework/view/two-way-bindings.html)
微信文档同理仅支持建议双向绑定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants