mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 09:50:22 +00:00
build 1.3.10
This commit is contained in:
28
dist/index.js
vendored
28
dist/index.js
vendored
@@ -531,17 +531,20 @@
|
||||
this.$emit("resize", resizeEvent);
|
||||
},
|
||||
toggle: function(state, params) {
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||
if (visible !== state) {
|
||||
var beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
}
|
||||
},
|
||||
getDraggableElement: function() {
|
||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||
@@ -781,6 +784,9 @@
|
||||
key: i,
|
||||
class: button.class || "vue-dialog-button",
|
||||
style: _vm.buttonStyle,
|
||||
attrs: {
|
||||
type: "button"
|
||||
},
|
||||
domProps: {
|
||||
innerHTML: _vm._s(button.title)
|
||||
},
|
||||
|
||||
28
dist/ssr.index.js
vendored
28
dist/ssr.index.js
vendored
@@ -485,17 +485,20 @@
|
||||
this.$emit("resize", resizeEvent);
|
||||
},
|
||||
toggle: function(state, params) {
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||
if (visible !== state) {
|
||||
var beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
}
|
||||
},
|
||||
getDraggableElement: function() {
|
||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||
@@ -735,6 +738,9 @@
|
||||
key: i,
|
||||
class: button.class || "vue-dialog-button",
|
||||
style: _vm.buttonStyle,
|
||||
attrs: {
|
||||
type: "button"
|
||||
},
|
||||
domProps: {
|
||||
innerHTML: _vm._s(button.title)
|
||||
},
|
||||
|
||||
28
dist/ssr.nocss.js
vendored
28
dist/ssr.nocss.js
vendored
@@ -422,17 +422,20 @@
|
||||
this.$emit("resize", resizeEvent);
|
||||
},
|
||||
toggle: function(state, params) {
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||
if (visible !== state) {
|
||||
var beforeEventName = visible ? "before-close" : "before-open";
|
||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||
reset && (this.setInitialSize(), this.shift.left = 0, this.shift.top = 0), scrollable && document.body.classList.add("v--modal-block-scroll")) : scrollable && document.body.classList.remove("v--modal-block-scroll");
|
||||
var stopEventExecution = !1, stop = function() {
|
||||
stopEventExecution = !0;
|
||||
}, beforeEvent = this.genEventObject({
|
||||
stop: stop,
|
||||
state: state,
|
||||
params: params
|
||||
});
|
||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||
}
|
||||
},
|
||||
getDraggableElement: function() {
|
||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||
@@ -666,6 +669,9 @@
|
||||
key: i,
|
||||
class: button.class || "vue-dialog-button",
|
||||
style: _vm.buttonStyle,
|
||||
attrs: {
|
||||
type: "button"
|
||||
},
|
||||
domProps: {
|
||||
innerHTML: _vm._s(button.title)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user