cocos_creator_mvvm_tools icon indicating copy to clipboard operation
cocos_creator_mvvm_tools copied to clipboard

bindPath只能指定到具体的字段吗?

Open yuanshuli11 opened this issue 2 years ago • 0 comments

我使用的VMParent来自己控制UI

VM.setValue("group.groupMyInfo.nextAdTime", 123)

如果这样变化数据, 那bindPath "group.groupMyInfo.nextAdTime” 就可以监听到数据变化。

但是如果: VM.setValue("group.groupMyInfo", $groupMyInfo ) 也就是直接设置一个json Object 那 bindPath "group.groupMyInfo” 就会监听不到变化。

请问为什么呢? 我应该如果解决

yuanshuli11 avatar Jul 06 '22 04:07 yuanshuli11