mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 09:50:22 +00:00
v1.3.12
This commit is contained in:
18
dist/index.js
vendored
18
dist/index.js
vendored
@@ -631,15 +631,15 @@
|
||||
},
|
||||
methods: {
|
||||
add: function(modal, params, config) {
|
||||
var _this = this, id = this.uid++, name = "_dynamic-modal-" + id;
|
||||
var _this = this, id = this.uid++;
|
||||
config = config ? Object.assign({}, config) : {}, config.name || (config.name = "_dynamic-modal-" + id),
|
||||
this.modals.push({
|
||||
id: id,
|
||||
name: name,
|
||||
component: modal,
|
||||
params: params || {},
|
||||
config: config || {}
|
||||
config: config
|
||||
}), this.$nextTick(function() {
|
||||
_this.$modal.show(name);
|
||||
_this.$modal.show(config.name);
|
||||
});
|
||||
},
|
||||
remove: function(id) {
|
||||
@@ -791,16 +791,18 @@
|
||||
}, _vm._l(_vm.modals, function(modal) {
|
||||
return _c("modal", _vm._b({
|
||||
key: modal.id,
|
||||
attrs: {
|
||||
name: modal.name
|
||||
},
|
||||
on: {
|
||||
closed: function($event) {
|
||||
_vm.remove(modal.id);
|
||||
}
|
||||
}
|
||||
}, "modal", modal.config, !1), [ _c(modal.component, _vm._b({
|
||||
tag: "component"
|
||||
tag: "component",
|
||||
on: {
|
||||
close: function($event) {
|
||||
_vm.$modal.hide(modal.config.name);
|
||||
}
|
||||
}
|
||||
}, "component", modal.params, !1)) ], 1);
|
||||
}));
|
||||
},
|
||||
|
||||
18
dist/ssr.index.js
vendored
18
dist/ssr.index.js
vendored
@@ -585,15 +585,15 @@
|
||||
},
|
||||
methods: {
|
||||
add: function(modal, params, config) {
|
||||
var _this = this, id = this.uid++, name = "_dynamic-modal-" + id;
|
||||
var _this = this, id = this.uid++;
|
||||
config = config ? Object.assign({}, config) : {}, config.name || (config.name = "_dynamic-modal-" + id),
|
||||
this.modals.push({
|
||||
id: id,
|
||||
name: name,
|
||||
component: modal,
|
||||
params: params || {},
|
||||
config: config || {}
|
||||
config: config
|
||||
}), this.$nextTick(function() {
|
||||
_this.$modal.show(name);
|
||||
_this.$modal.show(config.name);
|
||||
});
|
||||
},
|
||||
remove: function(id) {
|
||||
@@ -745,16 +745,18 @@
|
||||
}, _vm._l(_vm.modals, function(modal) {
|
||||
return _c("modal", _vm._b({
|
||||
key: modal.id,
|
||||
attrs: {
|
||||
name: modal.name
|
||||
},
|
||||
on: {
|
||||
closed: function($event) {
|
||||
_vm.remove(modal.id);
|
||||
}
|
||||
}
|
||||
}, "modal", modal.config, !1), [ _c(modal.component, _vm._b({
|
||||
tag: "component"
|
||||
tag: "component",
|
||||
on: {
|
||||
close: function($event) {
|
||||
_vm.$modal.hide(modal.config.name);
|
||||
}
|
||||
}
|
||||
}, "component", modal.params, !1)) ], 1);
|
||||
}));
|
||||
},
|
||||
|
||||
18
dist/ssr.nocss.js
vendored
18
dist/ssr.nocss.js
vendored
@@ -522,15 +522,15 @@
|
||||
},
|
||||
methods: {
|
||||
add: function(modal, params, config) {
|
||||
var _this = this, id = this.uid++, name = "_dynamic-modal-" + id;
|
||||
var _this = this, id = this.uid++;
|
||||
config = config ? Object.assign({}, config) : {}, config.name || (config.name = "_dynamic-modal-" + id),
|
||||
this.modals.push({
|
||||
id: id,
|
||||
name: name,
|
||||
component: modal,
|
||||
params: params || {},
|
||||
config: config || {}
|
||||
config: config
|
||||
}), this.$nextTick(function() {
|
||||
_this.$modal.show(name);
|
||||
_this.$modal.show(config.name);
|
||||
});
|
||||
},
|
||||
remove: function(id) {
|
||||
@@ -676,16 +676,18 @@
|
||||
}, _vm._l(_vm.modals, function(modal) {
|
||||
return _c("modal", _vm._b({
|
||||
key: modal.id,
|
||||
attrs: {
|
||||
name: modal.name
|
||||
},
|
||||
on: {
|
||||
closed: function($event) {
|
||||
_vm.remove(modal.id);
|
||||
}
|
||||
}
|
||||
}, "modal", modal.config, !1), [ _c(modal.component, _vm._b({
|
||||
tag: "component"
|
||||
tag: "component",
|
||||
on: {
|
||||
close: function($event) {
|
||||
_vm.$modal.hide(modal.config.name);
|
||||
}
|
||||
}
|
||||
}, "component", modal.params, !1)) ], 1);
|
||||
}));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user