vant-weapp icon indicating copy to clipboard operation
vant-weapp copied to clipboard

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

Open nanhai-13 opened this issue 1 year ago • 1 comments

重现链接

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

Vant Weapp 版本

1.11.6

描述一下你遇到的问题。

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

重现步骤

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

设备/浏览器

Android的微信小程序

nanhai-13 avatar May 16 '24 06:05 nanhai-13

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

TallNutAlt avatar May 23 '24 08:05 TallNutAlt