{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/4161","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/4161/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/4161/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/4161/events","html_url":"https://github.com/vuejs/vue/issues/4161","id":188161392,"number":4161,"title":"render functional模式下slot被重置","user":{"login":"nateyang","id":4901717,"avatar_url":"https://avatars.githubusercontent.com/u/4901717?v=3","gravatar_id":"","url":"https://api.github.com/users/nateyang","html_url":"https://github.com/nateyang","followers_url":"https://api.github.com/users/nateyang/followers","following_url":"https://api.github.com/users/nateyang/following{/other_user}","gists_url":"https://api.github.com/users/nateyang/gists{/gist_id}","starred_url":"https://api.github.com/users/nateyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateyang/subscriptions","organizations_url":"https://api.github.com/users/nateyang/orgs","repos_url":"https://api.github.com/users/nateyang/repos","events_url":"https://api.github.com/users/nateyang/events{/privacy}","received_events_url":"https://api.github.com/users/nateyang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-09T03:42:22Z","updated_at":"2016-11-09T03:47:11Z","closed_at":"2016-11-09T03:47:11Z","body":"export default {\r\n\r\n    functional: true,\r\n\r\n    props: ['show', 'title'],\r\n\r\n    render(h, context) {\r\n        return h(Confirm, {\r\n            props: context.props\r\n        }, [ h('div', {\r\n            slot: 'content'\r\n        }, context.slots().content) ] )\r\n    },\r\n\r\n    components: {\r\n        Confirm\r\n    }\r\n}\r\n\r\n上面的组件，第一次渲染，传递进来的name为slot的元素能正确被Confirm组件分发，当我从父组件改变title属性时，会导致 slot.content回到Confirm被重置为默认内容，functional模式下的这种情况，导致我的组件根本不可用，不知是何原因，非functional模式下无此问题"}}
{"actor":{"display_login":"nateyang"}}