mirror of
				https://github.com/KevinMidboe/vue-js-modal.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Keeping componentName as class' field
This commit is contained in:
		| @@ -16,7 +16,7 @@ const Plugin = { | |||||||
|     this.installed = true |     this.installed = true | ||||||
|     this.event = new Vue() |     this.event = new Vue() | ||||||
|     this.dynamicContainer = null |     this.dynamicContainer = null | ||||||
|  |     this.componentName = options.componentName || defaultComponentName | ||||||
|     /** |     /** | ||||||
|      * Plugin API |      * Plugin API | ||||||
|      */ |      */ | ||||||
| @@ -46,8 +46,7 @@ const Plugin = { | |||||||
|     /** |     /** | ||||||
|      * Sets custom component name (if provided) |      * Sets custom component name (if provided) | ||||||
|      */ |      */ | ||||||
|     const componentName = options.componentName || defaultComponentName |     Vue.component(this.componentName, Modal) | ||||||
|     Vue.component(componentName, Modal) |  | ||||||
|     /** |     /** | ||||||
|      * Registration of <Dialog/> component |      * Registration of <Dialog/> component | ||||||
|      */ |      */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user