mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 09:50:22 +00:00
Update index.js
This commit is contained in:
@@ -24,7 +24,7 @@ const Plugin = {
|
|||||||
_setDynamicContainer (dynamicContainer) {
|
_setDynamicContainer (dynamicContainer) {
|
||||||
Plugin.dynamicContainer = dynamicContainer
|
Plugin.dynamicContainer = dynamicContainer
|
||||||
},
|
},
|
||||||
show (modal, paramsOrProps, params, events = null) {
|
show (modal, paramsOrProps, params, events = {}) {
|
||||||
if (typeof modal === 'string') {
|
if (typeof modal === 'string') {
|
||||||
Plugin.event.$emit('toggle', modal, true, paramsOrProps)
|
Plugin.event.$emit('toggle', modal, true, paramsOrProps)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user