{"action":"reopened","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/9922","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/9922/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/9922/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/9922/events","html_url":"https://github.com/ElemeFE/element/issues/9922","id":300838779,"number":9922,"title":"[Bug Report] el-popover cannot be used with v-for and v-popover directive","user":{"login":"gim-m","id":3241971,"avatar_url":"https://avatars2.githubusercontent.com/u/3241971?v=4","gravatar_id":"","url":"https://api.github.com/users/gim-m","html_url":"https://github.com/gim-m","followers_url":"https://api.github.com/users/gim-m/followers","following_url":"https://api.github.com/users/gim-m/following{/other_user}","gists_url":"https://api.github.com/users/gim-m/gists{/gist_id}","starred_url":"https://api.github.com/users/gim-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gim-m/subscriptions","organizations_url":"https://api.github.com/users/gim-m/orgs","repos_url":"https://api.github.com/users/gim-m/repos","events_url":"https://api.github.com/users/gim-m/events{/privacy}","received_events_url":"https://api.github.com/users/gim-m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-27T23:53:25Z","updated_at":"2018-03-01T04:07:37Z","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.2.0\r\n\r\n### OS/Browsers version\r\nMac OSX / Chrome 64\r\n\r\n### Vue version\r\n2.5.13\r\n\r\n### Reproduction Link\r\n[https://jsfiddle.net/mmx38qxw/346/](https://jsfiddle.net/mmx38qxw/346/)\r\n\r\n### Steps to reproduce\r\nHere I was trying to create popovers (or tooltips) for each el-step. Since el-step needs to be an immediate child of el-steps, I couldn't use the default content slot and instead had to use the popover directive.\r\n\r\n### What is Expected?\r\nI would expect the popover to show for each el-step.\r\n\r\n### What is actually happening?\r\nThere appears to be a bug where you cannot create the popovers with v-for as the binding code is attempting to access the vue component directly via:\r\n\r\n`vnode.context.$refs[_ref].$refs.reference = el;` (note, the second `$refs`)\r\n\r\nWhen a component is create by v-for, the $refs (the first one) end up being an Array of VueComponents. We should support the array format for refs here as well.\r\n\r\n<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n"}}
{"actor":{"display_login":"QingWei-Li"}}