Keeping componentName as class' field

This commit is contained in:
Yev Vlasenko
2018-02-17 19:31:10 +00:00
parent 507c74c252
commit 63dd8f77e0

View File

@@ -16,7 +16,7 @@ const Plugin = {
this.installed = true
this.event = new Vue()
this.dynamicContainer = null
this.componentName = options.componentName || defaultComponentName
/**
* Plugin API
*/
@@ -46,8 +46,7 @@ const Plugin = {
/**
* Sets custom component name (if provided)
*/
const componentName = options.componentName || defaultComponentName
Vue.component(componentName, Modal)
Vue.component(this.componentName, Modal)
/**
* Registration of <Dialog/> component
*/