Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const spanCustom = {
- functional: true,
- render(h) {
- return h('span', {
- props: {
- show: // Não sei o que colocar aqui para fazer o binding da prop vinda pai
- }
- }, 'See me')
- }
- };
- const vm = new Vue({
- data: {
- show: false
- }
- }).$mount('#app');
- <div id="app">
- <span-custom v-if="show"></span-custom>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement