title: How to define Vue Events on Render Method using createElement
body: <p>I'm using ElementUi NavMenu, and render function with the <code>createElement</code> method to make the items of the menu just using JSON with titles and index of the menu, just HTML and JS files, not .vue files.</p>
  
  <p>The menu is mounted, the submenus are shown when I click it, but the actions of the submenu (el-menu-item) does not work. I even try the attributes click, item-click, v-on: click when creating the-menu-item (the documentation of ElementUi tells that <code>@click</code> must be used, but this causes an error on <code>createElement</code> when the attributes are defined), but no one works, no error occurs, as if the method was not been declared.</p>
  
  <p>Only <code>onclick</code> attribute works on the el-menu-item, but when I use it, the method of vue component is not called, and so I have to make a function outside of component (on a class for example), and when this function is called it performs a call to component method (I try $ emits) and an error occurs, because the method of component is not found.</p>
  
  <p>How can I add <code>@click</code> (or similar) event on the el-menu-item inside render function of the component to call a method of the same component?</p>
  
  <p><a href="http://element.eleme.io/#/en-US/component/menu" rel="nofollow noreferrer">Documenation of NavMenu of ElementUI</a>.</p>
  
  <p>How I'm creating menu item:</p>
  
  <pre><code>createElement("el-menu-item",{
      attrs:{
          index:json[i].id,
          click:json[i].onclick
      }},
      json[i].title
  )
  </code></pre>