{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/19","repository_url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx","labels_url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/19/comments","events_url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/19/events","html_url":"https://github.com/vuejs/babel-plugin-transform-vue-jsx/issues/19","id":172070750,"number":19,"title":"Supported slot from Component's inside?","user":{"login":"rwu823","id":890063,"avatar_url":"https://avatars2.githubusercontent.com/u/890063?v=3","gravatar_id":"","url":"https://api.github.com/users/rwu823","html_url":"https://github.com/rwu823","followers_url":"https://api.github.com/users/rwu823/followers","following_url":"https://api.github.com/users/rwu823/following{/other_user}","gists_url":"https://api.github.com/users/rwu823/gists{/gist_id}","starred_url":"https://api.github.com/users/rwu823/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwu823/subscriptions","organizations_url":"https://api.github.com/users/rwu823/orgs","repos_url":"https://api.github.com/users/rwu823/repos","events_url":"https://api.github.com/users/rwu823/events{/privacy}","received_events_url":"https://api.github.com/users/rwu823/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-19T07:26:47Z","updated_at":"2017-07-10T04:09:10Z","closed_at":null,"body":"In some nested components case, we don't want to pass `slot` from outside, cloud we defined in component first?\n\n``` jsx\nconst Compo = {\n  render(h) {\n    return (\n      <div slot=\"foo\">\n\n      </div> \n    )\n  }\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/comments/313997180","html_url":"https://github.com/vuejs/babel-plugin-transform-vue-jsx/issues/19#issuecomment-313997180","issue_url":"https://api.github.com/repos/vuejs/babel-plugin-transform-vue-jsx/issues/19","id":313997180,"user":{"login":"nickmessing","id":1633826,"avatar_url":"https://avatars1.githubusercontent.com/u/1633826?v=3","gravatar_id":"","url":"https://api.github.com/users/nickmessing","html_url":"https://github.com/nickmessing","followers_url":"https://api.github.com/users/nickmessing/followers","following_url":"https://api.github.com/users/nickmessing/following{/other_user}","gists_url":"https://api.github.com/users/nickmessing/gists{/gist_id}","starred_url":"https://api.github.com/users/nickmessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickmessing/subscriptions","organizations_url":"https://api.github.com/users/nickmessing/orgs","repos_url":"https://api.github.com/users/nickmessing/repos","events_url":"https://api.github.com/users/nickmessing/events{/privacy}","received_events_url":"https://api.github.com/users/nickmessing/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T04:09:10Z","updated_at":"2017-07-10T04:09:10Z","body":"@rwu823, you can do that by doing:\r\n```js\r\nexport default {\r\n  render () {\r\n    return (\r\n      <div>\r\n        {this.$slots.tabhead\r\n          ? <this.$slots.tabhead />\r\n          : <h1>Your content here</h1>} \r\n      </div>\r\n    )\r\n  }\r\n}\r\n```\r\ninstead of:\r\n```js\r\nexport default {\r\n  render () {\r\n    return (\r\n      <div slot=\"tabhead\">\r\n        <h1>Your content here</h1>\r\n      </div>\r\n    )\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"nickmessing"}}