Skip to content

1.3.31

Compare
Choose a tag to compare
@euvl euvl released this 28 Apr 12:53
· 158 commits to master since this release
  • 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'
      })
    },