Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const spanCustom = {
  2. functional: true,
  3. render(h) {
  4. return h('span', {
  5. props: {
  6. show: // Não sei o que colocar aqui para fazer o binding da prop vinda pai
  7. }
  8. }, 'See me')
  9. }
  10. };
  11.  
  12. const vm = new Vue({
  13. data: {
  14. show: false
  15. }
  16. }).$mount('#app');
  17.  
  18. <div id="app">
  19. <span-custom v-if="show"></span-custom>
  20. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement