{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1347","repository_url":"https://api.github.com/repos/RubyLouvre/avalon","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1347/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1347/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1347","id":153291935,"number":1347,"title":"组件BUG","user":{"login":"Megic","id":1814522,"avatar_url":"https://avatars.githubusercontent.com/u/1814522?v=3","gravatar_id":"","url":"https://api.github.com/users/Megic","html_url":"https://github.com/Megic","followers_url":"https://api.github.com/users/Megic/followers","following_url":"https://api.github.com/users/Megic/following{/other_user}","gists_url":"https://api.github.com/users/Megic/gists{/gist_id}","starred_url":"https://api.github.com/users/Megic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Megic/subscriptions","organizations_url":"https://api.github.com/users/Megic/orgs","repos_url":"https://api.github.com/users/Megic/repos","events_url":"https://api.github.com/users/Megic/events{/privacy}","received_events_url":"https://api.github.com/users/Megic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-05T18:22:29Z","updated_at":"2016-05-06T04:46:09Z","closed_at":"2016-05-06T04:46:09Z","body":"```\r\n<script>\r\n            var vm = avalon.define({\r\n                $id:'test'\r\n            });\r\n            avalon.component('ms-pager',{\r\n                template:'<div>{{@totalPages}} <button ms-click=\"@xx\">++</button></div>',\r\n                defaults:{\r\n                totalPages:21,\r\n                    xx:function(){\r\n                    this.totalPages+=1;\r\n\t\t\t\t\tconsole.log(this.totalPages)\r\n                    }\r\n                }\r\n            })\r\n        </script>\r\n```\r\n```\r\n <div ms-controller=\"test\">\r\n        <xmp ms-widget='{is:\"ms-pager\"}'></xmp>\r\n        </div>\r\n```\r\n点击事件不执行\r\n但是在下面随便加上插值表达式，点击事件能执行，不过{{@totalPages}}不会同步更新\r\n```\r\n<div ms-controller=\"test\">\r\n        <xmp ms-widget='{is:\"ms-pager\"}'></xmp>\r\n{{@bbb}}\r\n        </div>\r\n```"}}