{"action":"closed","issue":{"url":"https://api.github.com/repos/yoxjs/yox/issues/16","repository_url":"https://api.github.com/repos/yoxjs/yox","labels_url":"https://api.github.com/repos/yoxjs/yox/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/yoxjs/yox/issues/16/comments","events_url":"https://api.github.com/repos/yoxjs/yox/issues/16/events","html_url":"https://github.com/yoxjs/yox/issues/16","id":308828251,"number":16,"title":"我又遇到一个问题 深度数组 第2层有更改了之后 dom层没有反应","user":{"login":"kelyljk","id":10511872,"avatar_url":"https://avatars1.githubusercontent.com/u/10511872?v=4","gravatar_id":"","url":"https://api.github.com/users/kelyljk","html_url":"https://github.com/kelyljk","followers_url":"https://api.github.com/users/kelyljk/followers","following_url":"https://api.github.com/users/kelyljk/following{/other_user}","gists_url":"https://api.github.com/users/kelyljk/gists{/gist_id}","starred_url":"https://api.github.com/users/kelyljk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelyljk/subscriptions","organizations_url":"https://api.github.com/users/kelyljk/orgs","repos_url":"https://api.github.com/users/kelyljk/repos","events_url":"https://api.github.com/users/kelyljk/events{/privacy}","received_events_url":"https://api.github.com/users/kelyljk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-27T05:37:44Z","updated_at":"2018-03-27T05:49:53Z","closed_at":"2018-03-27T05:49:53Z","author_association":"NONE","body":"`  <div id=\"app\"></div>\r\n    <script id=\"template\" type=\"plain/text\">\r\n        <div>\r\n            {{#each it:i}}\r\n            <div>\r\n                <div><input type=\"checkbox\" model=\"Cbks\"> {{GysName}}</div>\r\n                {{#each listcg:ii}}\r\n                <input type=\"checkbox\" model=\"Cbk\"> {{GID}}---{{Num}}<button on-click=\"sub($keypath)\">-</button><input type=\"text\" model=\"Num\"><button on-click=\"add($keypath)\">+</button> {{/each}}\r\n            </div>\r\n            {{/each}}\r\n        </div>\r\n    </script>\r\n <script src=\"../dist/yox-legacy.min.js\"></script>\r\n    <script>\r\n        var instance = new Yox({\r\n            el: '#app',\r\n            template: '#template',\r\n            data: {\r\n                it: [{\r\n                    \"GysName\": \"A\",\r\n                    \"Cbks\": false,\r\n                    \"listcg\": [{\r\n                        \"Num\": 1,\r\n                        \"Multiple\": 24,\r\n                        \"GID\": 6800,\r\n                        \"Cbk\": false\r\n                    }, {\r\n                        \"Num\": 10,\r\n                        \"Multiple\": 10,\r\n                        \"GID\": 9857,\r\n                        \"Cbk\": true\r\n                    }, {\r\n                        \"Num\": 10,\r\n                        \"Multiple\": 10,\r\n                        \"GID\": 10013,\r\n                        \"Cbk\": true\r\n                    }]\r\n                }, {\r\n                    \"GysName\": \"B\",\r\n                    \"Cbks\": false,\r\n                    \"listcg\": [{\r\n                        \"Num\": 1,\r\n                        \"Multiple\": 24,\r\n                        \"GID\": 17739,\r\n                        \"Cbk\": false\r\n                    }]\r\n                }]\r\n            },\r\n            methods: {\r\n                add: function(keypath) {\r\n                    console.log(keypath);\r\n                    var tt = this.get(keypath);\r\n                    tt.Num = parseInt((tt.Num + tt.Multiple) / tt.Multiple) * tt.Multiple;\r\n                    this.set(keypath, tt);\r\n                    console.log(JSON.stringify(this.get('it')));\r\n                },\r\n                sub: function(keypath) {\r\n                    console.log(keypath);\r\n\r\n                }\r\n            }\r\n        });\r\n\r\n        // console.log(1)\r\n    </script>`"}}
{"actor":{"display_login":"musicode"}}