mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +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);
|
this.$emit("resize", resizeEvent);
|
||||||
},
|
},
|
||||||
toggle: function(state, params) {
|
toggle: function(state, params) {
|
||||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
if (visible !== state) {
|
||||||
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 beforeEventName = visible ? "before-close" : "before-open";
|
||||||
var stopEventExecution = !1, stop = function() {
|
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||||
stopEventExecution = !0;
|
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");
|
||||||
}, beforeEvent = this.genEventObject({
|
var stopEventExecution = !1, stop = function() {
|
||||||
stop: stop,
|
stopEventExecution = !0;
|
||||||
state: state,
|
}, beforeEvent = this.genEventObject({
|
||||||
params: params
|
stop: stop,
|
||||||
});
|
state: state,
|
||||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
params: params
|
||||||
|
});
|
||||||
|
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getDraggableElement: function() {
|
getDraggableElement: function() {
|
||||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||||
@@ -781,6 +784,9 @@
|
|||||||
key: i,
|
key: i,
|
||||||
class: button.class || "vue-dialog-button",
|
class: button.class || "vue-dialog-button",
|
||||||
style: _vm.buttonStyle,
|
style: _vm.buttonStyle,
|
||||||
|
attrs: {
|
||||||
|
type: "button"
|
||||||
|
},
|
||||||
domProps: {
|
domProps: {
|
||||||
innerHTML: _vm._s(button.title)
|
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);
|
this.$emit("resize", resizeEvent);
|
||||||
},
|
},
|
||||||
toggle: function(state, params) {
|
toggle: function(state, params) {
|
||||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
if (visible !== state) {
|
||||||
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 beforeEventName = visible ? "before-close" : "before-open";
|
||||||
var stopEventExecution = !1, stop = function() {
|
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||||
stopEventExecution = !0;
|
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");
|
||||||
}, beforeEvent = this.genEventObject({
|
var stopEventExecution = !1, stop = function() {
|
||||||
stop: stop,
|
stopEventExecution = !0;
|
||||||
state: state,
|
}, beforeEvent = this.genEventObject({
|
||||||
params: params
|
stop: stop,
|
||||||
});
|
state: state,
|
||||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
params: params
|
||||||
|
});
|
||||||
|
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getDraggableElement: function() {
|
getDraggableElement: function() {
|
||||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||||
@@ -735,6 +738,9 @@
|
|||||||
key: i,
|
key: i,
|
||||||
class: button.class || "vue-dialog-button",
|
class: button.class || "vue-dialog-button",
|
||||||
style: _vm.buttonStyle,
|
style: _vm.buttonStyle,
|
||||||
|
attrs: {
|
||||||
|
type: "button"
|
||||||
|
},
|
||||||
domProps: {
|
domProps: {
|
||||||
innerHTML: _vm._s(button.title)
|
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);
|
this.$emit("resize", resizeEvent);
|
||||||
},
|
},
|
||||||
toggle: function(state, params) {
|
toggle: function(state, params) {
|
||||||
var reset = this.reset, scrollable = this.scrollable, visible = this.visible, beforeEventName = visible ? "before-close" : "before-open";
|
var reset = this.reset, scrollable = this.scrollable, visible = this.visible;
|
||||||
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
if (visible !== state) {
|
||||||
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 beforeEventName = visible ? "before-close" : "before-open";
|
||||||
var stopEventExecution = !1, stop = function() {
|
"before-open" === beforeEventName ? (document.activeElement && document.activeElement.blur(),
|
||||||
stopEventExecution = !0;
|
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");
|
||||||
}, beforeEvent = this.genEventObject({
|
var stopEventExecution = !1, stop = function() {
|
||||||
stop: stop,
|
stopEventExecution = !0;
|
||||||
state: state,
|
}, beforeEvent = this.genEventObject({
|
||||||
params: params
|
stop: stop,
|
||||||
});
|
state: state,
|
||||||
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
params: params
|
||||||
|
});
|
||||||
|
this.$emit(beforeEventName, beforeEvent), stopEventExecution || (this.visible = state);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getDraggableElement: function() {
|
getDraggableElement: function() {
|
||||||
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
var selector = "string" != typeof this.draggable ? ".v--modal-box" : this.draggable;
|
||||||
@@ -666,6 +669,9 @@
|
|||||||
key: i,
|
key: i,
|
||||||
class: button.class || "vue-dialog-button",
|
class: button.class || "vue-dialog-button",
|
||||||
style: _vm.buttonStyle,
|
style: _vm.buttonStyle,
|
||||||
|
attrs: {
|
||||||
|
type: "button"
|
||||||
|
},
|
||||||
domProps: {
|
domProps: {
|
||||||
innerHTML: _vm._s(button.title)
|
innerHTML: _vm._s(button.title)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user