{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/8111","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/8111/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/8111/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/8111/events","html_url":"https://github.com/ElemeFE/element/issues/8111","id":272136555,"number":8111,"title":"[Bug Report] tooltip render","user":{"login":"Cecilxx","id":20623617,"avatar_url":"https://avatars2.githubusercontent.com/u/20623617?v=4","gravatar_id":"","url":"https://api.github.com/users/Cecilxx","html_url":"https://github.com/Cecilxx","followers_url":"https://api.github.com/users/Cecilxx/followers","following_url":"https://api.github.com/users/Cecilxx/following{/other_user}","gists_url":"https://api.github.com/users/Cecilxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Cecilxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cecilxx/subscriptions","organizations_url":"https://api.github.com/users/Cecilxx/orgs","repos_url":"https://api.github.com/users/Cecilxx/repos","events_url":"https://api.github.com/users/Cecilxx/events{/privacy}","received_events_url":"https://api.github.com/users/Cecilxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-08T09:52:20Z","updated_at":"2017-11-08T09:52:23Z","closed_at":null,"author_association":"NONE","body":"<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n\r\n### Element UI version\r\n2.0.3\r\n\r\n### OS/Browsers version\r\nmac chrome\r\n\r\n### Vue version\r\n2.5.3\r\n\r\n### Reproduction Link\r\n[https://jsfiddle.net/cecil_jser/rqd8L3wy/](https://jsfiddle.net/cecil_jser/rqd8L3wy/)\r\n\r\n### Steps to reproduce\r\n\r\n1. 引入tooltip（按需加载、全局引入都试过）\r\n2. 调用 <el-tooltip>\r\n<el-tooltip>鼠标移入到这</el-tooltip>\r\n<el-tooltip><span>鼠标移入到这</span></el-tooltip>\r\n\r\n\r\n### What is Expected?\r\n两种写法都能正常渲染\r\n\r\n### What is actually happening?\r\n第一种写法不能渲染，第二种写法正常渲染。\r\n\r\n###可能原因\r\n一开始以为是vue版本问题，自己写了个组件试了下slot 不加外层标签也是可以渲染的。然后看了下element代码，好像是el-tooltip会渲染两次，第一次渲染vnode正常，第二次渲染会改变vnode，猜测是重新包装了一下，添加了tag等属性，改变了text， text为undefined，所有导致node节点没有渲染出来。\r\n\r\n<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/342766423","html_url":"https://github.com/ElemeFE/element/issues/8111#issuecomment-342766423","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/8111","id":342766423,"user":{"login":"element-bot","id":23526893,"avatar_url":"https://avatars0.githubusercontent.com/u/23526893?v=4","gravatar_id":"","url":"https://api.github.com/users/element-bot","html_url":"https://github.com/element-bot","followers_url":"https://api.github.com/users/element-bot/followers","following_url":"https://api.github.com/users/element-bot/following{/other_user}","gists_url":"https://api.github.com/users/element-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/element-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/element-bot/subscriptions","organizations_url":"https://api.github.com/users/element-bot/orgs","repos_url":"https://api.github.com/users/element-bot/repos","events_url":"https://api.github.com/users/element-bot/events{/privacy}","received_events_url":"https://api.github.com/users/element-bot/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T09:52:23Z","updated_at":"2017-11-08T09:52:23Z","author_association":"COLLABORATOR","body":"Translation of this issue:\n\n### Element UI version\n2.0.3\n\n### OS/Browsers version\nMac Chrome\n\n### Vue version\n2.5.3\n\n### Reproduction Link\n[https://jsfiddle.net/cecil_jser/rqd8L3wy/](https://jsfiddle.net/cecil_jser/rqd8L3wy/)\n\n### Steps to reproduce\n1. introduce tooltip (loading on demand, global introduction)\n\n2. call <el-tooltip>\n<el-tooltip> mouse moves into this </el-tooltip>\n\n<el-tooltip><span> mouse moves into this </span></el-tooltip>\n### What is Expected?\n\nTwo kinds of writing can be normal rendering\n### What is actually happening?\n\nThe first type of writing can not be rendered, and the second method is normally rendered.\n### may cause\n\nAt first I thought it was a Vue version, and I wrote a component, and I tried the slot without adding an outer label. And then look at the element code, as el-tooltip will render the first two times, second times the normal vnode rendering, rendering vnode will change, speculation is re packaging, add the tag attribute, changed text, text undefined, all leading to node node does not render.\n"}}
{"actor":{"display_login":"element-bot"}}