vuejs using vuejs-modal pop

vuejs using vuejs-modal pop

Pop component address custom close button to add the attribute main.js

Vue.use(VModal, { dynamic: true, injectModalsContainer: true, dynamicDefaults: { clickToClose: true } })

Wherein dynamicDefaults: {clickToClose: true} custom close button

Finally, just in their own assembly Close button to add events

 <button v-else class="narrow" @click="$emit('close')"></button>
@click = "$ emit ( 'close')" for the event

Guess you like

Origin www.cnblogs.com/yangjunboHTML/p/12167570.html