1.3.31
- Refactoring.
- Added default props for dynamic modals:
Vue.use(VueJsModal, {
dynamic: true,
dynamicDefaults: {
foo: 'foo'
}
})
showDynamicRuntimeModal () {
this.$modal.show({
template: `
<div class="example-modal-content">
<p>{{ text }}</p>
<p>Default Property: {{ foo }}</p>
</div>
`,
props: ['text', 'foo']
}, {
text: 'This text is passed as a property'
})
},