{"action":"created","issue":{"url":"https://api.github.com/repos/snokier/v-contextmenu/issues/32","repository_url":"https://api.github.com/repos/snokier/v-contextmenu","labels_url":"https://api.github.com/repos/snokier/v-contextmenu/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/snokier/v-contextmenu/issues/32/comments","events_url":"https://api.github.com/repos/snokier/v-contextmenu/issues/32/events","html_url":"https://github.com/snokier/v-contextmenu/issues/32","id":315738610,"number":32,"title":"动态绑定的元素，无法挂载到菜单","user":{"login":"lerit","id":4743467,"avatar_url":"https://avatars1.githubusercontent.com/u/4743467?v=4","gravatar_id":"","url":"https://api.github.com/users/lerit","html_url":"https://github.com/lerit","followers_url":"https://api.github.com/users/lerit/followers","following_url":"https://api.github.com/users/lerit/following{/other_user}","gists_url":"https://api.github.com/users/lerit/gists{/gist_id}","starred_url":"https://api.github.com/users/lerit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerit/subscriptions","organizations_url":"https://api.github.com/users/lerit/orgs","repos_url":"https://api.github.com/users/lerit/repos","events_url":"https://api.github.com/users/lerit/events{/privacy}","received_events_url":"https://api.github.com/users/lerit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-19T06:05:03Z","updated_at":"2018-04-30T09:36:39Z","closed_at":null,"author_association":"NONE","body":"```vue\r\n<template>\r\n  <div class=\"example\">\r\n    <v-contextmenu ref=\"contextmenu1\" :theme=\"theme\">\r\n      <v-contextmenu-item>菜单1</v-contextmenu-item>\r\n      <v-contextmenu-item>菜单2</v-contextmenu-item>\r\n      <v-contextmenu-item>菜单3</v-contextmenu-item>\r\n    </v-contextmenu>\r\n <span v-for=\"(data,index) in datas\" :key=\"index\" v-contextmenu:contextmenu1>右键点击此区域{{data}}</span>\r\n  </div>\r\n</template>\r\n<script>\r\n  export default {\r\n    name: 'Multiple',\r\n    props: {\r\n      theme: String,\r\n    },\r\n data() {\r\n      return {\r\n        datas: []\r\n        }\r\n  },\r\n    mounted() {\r\n      setTimeout(() => {// 模拟异步加载过程，延时\r\n        this.datas = [1, 2, 3, 4]\r\n      }, 2000);\r\n    },\r\n    methods: {},\r\n  }\r\n</script>\r\n```\r\n\r\n\r\n当前数据是通过异步加载出来的，则菜单不会挂载到数据上。\r\n如果一开始datas就有数据，就可以，但是我认为菜单应该支持相应数据变化\r\n"},"comment":{"url":"https://api.github.com/repos/snokier/v-contextmenu/issues/comments/385351820","html_url":"https://github.com/snokier/v-contextmenu/issues/32#issuecomment-385351820","issue_url":"https://api.github.com/repos/snokier/v-contextmenu/issues/32","id":385351820,"user":{"login":"jian22446688","id":9110852,"avatar_url":"https://avatars3.githubusercontent.com/u/9110852?v=4","gravatar_id":"","url":"https://api.github.com/users/jian22446688","html_url":"https://github.com/jian22446688","followers_url":"https://api.github.com/users/jian22446688/followers","following_url":"https://api.github.com/users/jian22446688/following{/other_user}","gists_url":"https://api.github.com/users/jian22446688/gists{/gist_id}","starred_url":"https://api.github.com/users/jian22446688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jian22446688/subscriptions","organizations_url":"https://api.github.com/users/jian22446688/orgs","repos_url":"https://api.github.com/users/jian22446688/repos","events_url":"https://api.github.com/users/jian22446688/events{/privacy}","received_events_url":"https://api.github.com/users/jian22446688/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T09:36:39Z","updated_at":"2018-04-30T09:36:39Z","author_association":"NONE","body":"可以使用自定义 显示隐藏 可解决这个问题"}}
{"actor":{"display_login":"jian22446688"}}