build 1.3.10

This commit is contained in:
yev
2018-02-10 19:11:54 +00:00
parent 8eeac77f07
commit 5b2db5b38a
3 changed files with 51 additions and 33 deletions

28
dist/index.js vendored
View File

@@ -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
View File

@@ -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
View File

@@ -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)
}, },