mirror of
				https://github.com/KevinMidboe/vue-js-modal.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Rebuild, updated readme (#53)
This commit is contained in:
		| @@ -28,7 +28,7 @@ Vue.use(VModal) | ||||
|  | ||||
| /* | ||||
| By default plugin will use "modal" name for the component. | ||||
| If you need to change it, you can do so by supplying "componentName" option.  | ||||
| If you need to change it, you can do so by providing "componentName" param.  | ||||
|  | ||||
| Example: | ||||
|  | ||||
|   | ||||
							
								
								
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -93,6 +93,8 @@ var _Modal2 = _interopRequireDefault(_Modal); | ||||
|  | ||||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||||
|  | ||||
| var defaultComponentName = 'modal'; | ||||
|  | ||||
| var Plugin = { | ||||
|   install: function install(Vue) { | ||||
|     var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||||
| @@ -116,7 +118,8 @@ var Plugin = { | ||||
|       } | ||||
|     }; | ||||
|  | ||||
|     Vue.component('modal', _Modal2.default); | ||||
|     var componentName = options.componentName || defaultComponentName; | ||||
|     Vue.component(componentName, _Modal2.default); | ||||
|   } | ||||
| }; | ||||
|  | ||||
|   | ||||
							
								
								
									
										5
									
								
								dist/ssr.index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/ssr.index.js
									
									
									
									
										vendored
									
									
								
							| @@ -93,6 +93,8 @@ var _Modal2 = _interopRequireDefault(_Modal); | ||||
|  | ||||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||||
|  | ||||
| var defaultComponentName = 'modal'; | ||||
|  | ||||
| var Plugin = { | ||||
|   install: function install(Vue) { | ||||
|     var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||||
| @@ -116,7 +118,8 @@ var Plugin = { | ||||
|       } | ||||
|     }; | ||||
|  | ||||
|     Vue.component('modal', _Modal2.default); | ||||
|     var componentName = options.componentName || defaultComponentName; | ||||
|     Vue.component(componentName, _Modal2.default); | ||||
|   } | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user