{"action":"created","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1670","repository_url":"https://api.github.com/repos/RubyLouvre/avalon","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1670/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1670/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1670/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1670","id":169844586,"number":1670,"title":"组件嵌套 属性配置问题","user":{"login":"shanzhongke","id":18737791,"avatar_url":"https://avatars1.githubusercontent.com/u/18737791?v=4","gravatar_id":"","url":"https://api.github.com/users/shanzhongke","html_url":"https://github.com/shanzhongke","followers_url":"https://api.github.com/users/shanzhongke/followers","following_url":"https://api.github.com/users/shanzhongke/following{/other_user}","gists_url":"https://api.github.com/users/shanzhongke/gists{/gist_id}","starred_url":"https://api.github.com/users/shanzhongke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanzhongke/subscriptions","organizations_url":"https://api.github.com/users/shanzhongke/orgs","repos_url":"https://api.github.com/users/shanzhongke/repos","events_url":"https://api.github.com/users/shanzhongke/events{/privacy}","received_events_url":"https://api.github.com/users/shanzhongke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T05:13:02Z","updated_at":"2018-04-30T03:12:13Z","closed_at":"2016-08-08T06:32:25Z","author_association":"NONE","body":"嵌套的组件属性没有更新 子组件的值无法传回父组件\nbuilt in 2016-8-8:11 version 2.110 by 司徒正美\n\n```\n    <body ms-controller=\"test\">\n        <xmp ms-widget=\"[{is:'ms-div',$id:'123'}]\"></xmp>\n        <script>\n            avalon.component('ms-div', {\n                template: '<div><xmp ms-widget=\"[{is:\"ms-div2\",$id:\"1234\",aaa:@aaa,c:@c}]\"></xmp></div>',\n                defaults: {\n                    aaa: {\n                        b: 2\n                    },\n                    c: 1\n                }\n            })\n\n            avalon.component('ms-div2', {\n                template: '<div></div>',\n                defaults: {\n                    aaa: {},\n                    c: 0,\n                    onInit: function() {\n                        this.aaa = {\n                            a: 1\n                        };\n                        this.c = 2;\n                    }\n                }\n            })\n\n            var vm = avalon.define({\n                $id: 'test'\n            });\n            vm.$watch('onReady', function() {\n                console.log(avalon.vmodels['123'].aaa.$model); //没变\n                console.log(avalon.vmodels['123'].c); //没变\n            })\n        </script>\n    </body>\n```\n"},"comment":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/comments/385306087","html_url":"https://github.com/RubyLouvre/avalon/issues/1670#issuecomment-385306087","issue_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1670","id":385306087,"user":{"login":"Captain-Alan","id":21187901,"avatar_url":"https://avatars3.githubusercontent.com/u/21187901?v=4","gravatar_id":"","url":"https://api.github.com/users/Captain-Alan","html_url":"https://github.com/Captain-Alan","followers_url":"https://api.github.com/users/Captain-Alan/followers","following_url":"https://api.github.com/users/Captain-Alan/following{/other_user}","gists_url":"https://api.github.com/users/Captain-Alan/gists{/gist_id}","starred_url":"https://api.github.com/users/Captain-Alan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Captain-Alan/subscriptions","organizations_url":"https://api.github.com/users/Captain-Alan/orgs","repos_url":"https://api.github.com/users/Captain-Alan/repos","events_url":"https://api.github.com/users/Captain-Alan/events{/privacy}","received_events_url":"https://api.github.com/users/Captain-Alan/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T03:12:13Z","updated_at":"2018-04-30T03:12:13Z","author_association":"NONE","body":"我开发过程中也有这么用到，子组件的数据变化无法影响父组件中的数据变化"}}
{"actor":{"display_login":"Captain-Alan"}}